:root{--primary:#0b5ea8;--primary-hover:#084c89;--ink:#171717;--secondary:#404040;--tertiary:#525252;--muted:#737373;--border:#e5e5e5;--subtle:#fafafa;--shadow:0 1px 2px rgb(0 0 0/.05);--radius:12px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:#fff;font-size:16px;line-height:24px}a{color:inherit;text-decoration:none}button,input{font:inherit}button,a,input,summary{-webkit-tap-highlight-color:transparent}button,a,summary{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default}svg{width:20px;height:20px;flex-shrink:0}img{display:block}h1,h2,p{margin:0}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #78b5e7;outline-offset:3px}input:focus{outline:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}.skip-link{position:fixed;left:20px;top:8px;z-index:100;background:#fff;border:1px solid var(--border);padding:10px 16px;transform:translateY(-150%);border-radius:8px}.skip-link:focus{transform:none}
.portal-layout{display:grid;grid-template-columns:276px minmax(0,1fr);min-height:100vh;max-width:1720px;margin:0 auto}.portal-workspace{min-width:0;display:flex;flex-direction:column}.category-sidebar{position:sticky;top:0;height:100vh;overflow:auto;border-right:1px solid var(--border);padding:32px 16px 20px;background:#fff;scrollbar-width:thin;display:flex;flex-direction:column}.sidebar-brand{display:flex;align-items:center;justify-content:space-between;padding:0 12px}.brand img{width:158px;height:auto}.sidebar-heading{font-size:14px;line-height:20px;color:var(--tertiary);padding:20px 12px 24px}.sidebar-content{flex:1}.sidebar-link{display:flex;align-items:center;gap:8px;padding:8px;border-radius:6px;color:var(--secondary);font-size:14px;font-weight:600;line-height:20px;min-height:36px;margin:2px 0}.sidebar-link>svg{color:#a1a1a1;width:20px;height:20px}.sidebar-link>span:first-of-type{flex:1;min-width:0}.sidebar-link:hover,.sidebar-link.is-active{background:var(--subtle);color:var(--ink)}.sidebar-link.is-active>svg{color:var(--tertiary)}.link-count{flex:0 0 auto;min-width:24px;text-align:center;border:1px solid var(--border);border-radius:6px;font-size:12px;line-height:18px;padding:0 4px;font-weight:500;color:var(--tertiary);background:#fff}.all-categories{margin-bottom:24px}.sidebar-group{margin:0 0 20px}.sidebar-group summary{display:flex;align-items:center;gap:8px;justify-content:space-between;padding:0 8px 10px;list-style:none;font-size:12px;line-height:18px;text-transform:uppercase;font-weight:600;letter-spacing:.02em;color:var(--muted);cursor:pointer}.sidebar-group summary::-webkit-details-marker{display:none}.sidebar-group summary svg{width:16px;height:16px;transition:transform 200ms}.sidebar-group[open] summary svg{transform:rotate(180deg)}.sidebar-site-links{border-top:1px solid var(--border);padding:16px 8px 0;margin-top:16px;display:flex;flex-wrap:wrap;gap:8px 16px;color:var(--tertiary);font-size:14px}.sidebar-site-links a:hover{color:var(--primary)}.mobile-header,.drawer-close{display:none}
.page-content{width:100%;max-width:1280px;padding:32px 32px 48px;margin:0 auto;flex:1}.breadcrumb{display:flex;align-items:center;gap:12px;font-size:14px;font-weight:500;color:var(--tertiary);line-height:20px;margin-bottom:24px;min-width:0}.breadcrumb a{display:flex;align-items:center}.breadcrumb>a:first-child svg{color:#a1a1a1}.breadcrumb>span>svg{width:16px;height:16px;color:#d4d4d4;transform:rotate(-90deg)}.breadcrumb-current{padding:4px 8px;background:var(--subtle);border-radius:6px;overflow-wrap:anywhere;color:var(--secondary)}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:24px;border-bottom:1px solid var(--border)}h1{font-size:30px;line-height:38px;letter-spacing:0;font-weight:600;overflow-wrap:anywhere}.page-heading p{margin-top:4px;color:var(--tertiary);font-size:16px;line-height:24px}.filter-bar{display:grid;grid-template-columns:minmax(180px,220px) minmax(180px,1fr) auto;align-items:start;gap:16px;margin:24px 0}.field{min-width:0}.field label{display:block;font-size:14px;line-height:20px;font-weight:500;color:var(--secondary);margin-bottom:6px}.search-input{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #d4d4d4;border-radius:8px;height:44px;padding:0 12px;box-shadow:var(--shadow)}.search-input>svg{width:20px;height:20px;color:#a1a1a1}.search-input input{padding:0;width:100%;min-width:0;border:0;background:transparent;color:var(--ink);font-size:16px;line-height:24px;height:42px}.search-input input::placeholder{color:var(--muted);opacity:1}.search-input:focus-within,.select-trigger:focus-visible{outline:3px solid #dceeff;outline-offset:1px;border-color:var(--primary)}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:7px 12px;border:1px solid transparent;border-radius:8px;font-size:14px;line-height:20px;font-weight:600;white-space:nowrap;box-shadow:var(--shadow);transition:background-color 200ms,border-color 200ms,color 200ms}.button svg{width:18px;height:18px}.button-primary{background:var(--primary);color:#fff;border-color:var(--primary)}.button-primary:hover{background:var(--primary-hover);border-color:var(--primary-hover)}.button-secondary{background:#fff;border-color:#d4d4d4;color:var(--secondary)}.button-secondary:hover{background:var(--subtle);color:var(--ink)}.search-submit{margin-top:26px;min-height:44px;padding:11px 18px}.custom-select{position:relative}.select-trigger{display:flex;align-items:center;gap:8px;justify-content:space-between;width:100%;height:44px;padding:10px 12px;border:1px solid #d4d4d4;border-radius:8px;background:#fff;box-shadow:var(--shadow);font-size:16px;line-height:24px;color:var(--ink);text-align:left;font-weight:400}.select-trigger svg{width:20px;height:20px;color:#a1a1a1;transition:transform 200ms}.select-trigger[aria-expanded=true] svg{transform:rotate(180deg)}.select-trigger:disabled{background:#fafafa;color:#a1a1a1}.select-list{position:absolute;top:calc(100% + 6px);left:0;z-index:40;min-width:100%;width:max-content;max-width:min(350px,calc(100vw - 48px));background:#fff;padding:4px;border:1px solid var(--border);border-radius:8px;box-shadow:0 4px 6px -2px rgb(0 0 0/.04),0 12px 16px -4px rgb(0 0 0/.08);max-height:300px;overflow:auto;opacity:0;transform:translateY(-4px);transition:opacity 200ms,transform 200ms}.select-list.is-open{opacity:1;transform:none}.select-option{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px;width:100%;padding:8px 12px;border:0;border-radius:6px;background:#fff;color:var(--ink);font-size:16px;line-height:24px;text-align:left;font-weight:400}.select-option:hover,.select-option:focus-visible{background:var(--subtle);outline:none}.select-option[aria-selected=true]{font-weight:500;background:var(--subtle)}.select-option[aria-selected=true]::after{content:"✓";color:var(--primary);font-size:18px}.select-option:disabled{color:#a1a1a1;cursor:default}.query-state{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 20px;color:var(--tertiary);font-size:14px}.query-state a{font-weight:600;color:var(--primary)}
.table-card{border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);background:#fff;margin-bottom:24px;overflow:visible}.table-card-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;min-height:76px}.table-card-title{display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}.table-card-title h2{font-size:16px;line-height:24px;font-weight:600;overflow-wrap:anywhere}.count-badge{font-size:12px;line-height:18px;font-weight:500;color:var(--secondary);background:var(--subtle);border:1px solid var(--border);border-radius:100px;padding:1px 8px}.documents-table,.categories-table{width:100%;border-collapse:collapse;table-layout:fixed;color:var(--tertiary);font-size:14px;line-height:20px}.document-column{width:auto}.reference-column{width:115px}.status-column{width:118px}.action-column{width:110px}.quantity-column{width:105px}.period-column{width:136px}thead{height:44px;background:var(--subtle)}th{padding:12px 16px;font-size:12px;line-height:18px;font-weight:500;color:var(--muted);text-align:left;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}th:first-child{padding-left:24px}td{padding:16px;vertical-align:middle;border-bottom:1px solid var(--border);height:72px}td:first-child{padding-left:24px}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:var(--subtle)}.file-entry{display:flex;align-items:center;gap:12px;min-width:0}.file-icon{width:40px;height:40px;flex:0 0 40px}.file-details{flex:1;min-width:0}.document-title,.category-title{font-size:14px;line-height:20px;font-weight:500;color:var(--ink);overflow-wrap:anywhere}.document-title:hover,.category-title:hover{text-decoration:underline;text-underline-offset:3px;color:var(--primary)}.file-meta{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 6px;margin-top:2px;color:var(--tertiary);font-size:14px;line-height:20px;overflow-wrap:anywhere}.status-badge{display:inline-flex;align-items:center;gap:5px;color:var(--secondary);background:var(--subtle);border:1px solid var(--border);font-size:12px;line-height:18px;font-weight:500;border-radius:100px;padding:1px 6px;white-space:nowrap}.status-dot{width:6px;height:6px;flex:0 0 6px;background:#a1a1a1;border-radius:50%}.status-current{background:#ecfdf3;color:#067647;border-color:#abefc6}.status-current .status-dot{background:#17b26a}.action-cell{text-align:right;padding-left:0}.action-cell .button{padding:7px 10px}.action-cell svg{width:16px;height:16px}.table-card-footer{border-top:1px solid var(--border);padding:12px 24px;color:var(--tertiary);font-size:14px;line-height:20px}.folder-icon{width:40px;height:40px;flex:0 0 40px;border:1px solid var(--border);border-radius:8px;display:flex;align-items:center;justify-content:center;color:#737373;background:#fff}.folder-icon svg{width:22px;height:22px}.empty-state{text-align:center;padding:48px 24px}.empty-state h2{font-size:16px;line-height:24px;font-weight:600;margin:16px 0 4px}.empty-state p{color:var(--tertiary);font-size:14px;line-height:20px;margin-bottom:24px}.empty-icon{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;background:var(--subtle);border:1px solid var(--border);border-radius:12px;color:#737373}.related-page{margin-top:0}.page-footer{max-width:1280px;width:100%;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 32px;border-top:1px solid var(--border);color:var(--muted);font-size:12px;line-height:18px}.page-footer a:hover{color:var(--primary)}.icon-button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;background:#fff;border:0;border-radius:8px;color:var(--secondary)}.icon-button:hover{background:var(--subtle)}.icon-button svg{width:24px;height:24px}.drawer-backdrop{position:fixed;inset:0;z-index:60;background:rgb(23 23 23/.5)}
@media(min-width:1720px){.portal-layout{border-right:1px solid var(--border);border-left:1px solid var(--border)}}
@media(max-width:1100px) and (min-width:900px){.portal-layout{grid-template-columns:240px minmax(0,1fr)}.page-content{padding:28px 24px 40px}.category-sidebar{padding-left:12px;padding-right:12px}.reference-column{width:95px}.status-column{width:108px}.action-column{width:98px}.quantity-column{width:80px}.period-column{width:106px}td,th{padding-left:12px;padding-right:12px}td:first-child,th:first-child{padding-left:16px}.table-card-header{padding-left:16px;padding-right:16px}.filter-bar{grid-template-columns:160px minmax(0,1fr) auto;gap:12px}}
@media(max-width:899px){.portal-layout{display:block;min-height:calc(100vh - 72px)}.mobile-header{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;height:72px;border-bottom:1px solid var(--border);background:#fff}.mobile-header .brand img{width:140px}.category-sidebar{position:fixed;top:0;left:0;z-index:70;width:min(320px,calc(100vw - 48px));height:100dvh;transform:translateX(-102%);visibility:hidden;transition:transform 200ms,visibility 200ms;box-shadow:0 8px 24px rgb(0 0 0/.12);padding-top:20px}.category-sidebar.is-open{transform:none;visibility:visible}.drawer-close{display:flex}.sidebar-brand{padding:0 4px}.sidebar-heading{padding-left:8px;padding-top:16px;padding-bottom:20px}.sidebar-link{font-size:16px;line-height:24px;min-height:44px}.sidebar-group summary{font-size:12px;min-height:40px;align-items:center;padding-top:8px}.sidebar-site-links{font-size:14px;gap:12px}.sidebar-site-links a{padding:8px 0}.page-content{padding:24px 24px 40px}.page-footer{padding-left:24px;padding-right:24px}.drawer-open{overflow:hidden}.filter-bar{grid-template-columns:200px minmax(0,1fr) auto;gap:12px}}
@media(max-width:600px){.page-content{padding:20px 16px 32px}.mobile-header{padding:14px 16px}.breadcrumb{font-size:12px;line-height:18px;gap:8px;margin-bottom:16px}.breadcrumb>a:first-child{display:none}.breadcrumb>a:first-child+span{display:none}.breadcrumb-current{padding:2px 6px}.page-heading{padding-bottom:20px}h1{font-size:28px;line-height:36px}.page-heading p{font-size:16px;line-height:24px;margin-top:6px}.filter-bar{grid-template-columns:minmax(0,1fr) auto;gap:12px 8px;margin:20px 0}.custom-select{grid-column:1/-1}.search-field{grid-column:1;grid-row:2}.search-submit{grid-column:2;grid-row:2;margin-top:26px;padding-left:14px;padding-right:14px}.field label{font-size:14px}.select-list{max-width:calc(100vw - 32px)}.select-option{min-height:44px}.query-state{font-size:14px;gap:8px}.table-card{margin-bottom:20px}.table-card-header{padding:16px;gap:8px;min-height:70px}.table-card-title h2{font-size:16px;line-height:24px}.copy-page{min-width:36px;min-height:36px;padding:8px}.copy-page>span{display:none}.copy-page svg{width:18px;height:18px}.documents-table,.categories-table,.documents-table tbody,.categories-table tbody{display:block;width:100%}.documents-table colgroup,.categories-table colgroup,thead{display:none}.documents-table tr,.categories-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 8px;padding:20px 16px;border-top:1px solid var(--border)}td,td:first-child{display:block;height:auto;padding:0!important;border:0!important}.document-cell,.category-cell{grid-column:1/-1}.file-entry{align-items:flex-start;gap:12px}.document-title,.category-title{font-size:16px;line-height:24px;font-weight:500}.file-meta{font-size:14px;line-height:20px}.reference-cell,.quantity-cell{grid-column:1;grid-row:2;padding-left:52px!important;font-size:14px;line-height:20px}.reference-cell::before,.quantity-cell::before,.period-cell::before{content:attr(data-label);display:block;font-size:12px;line-height:18px;color:var(--muted);margin-bottom:2px}.status-cell{grid-column:1;grid-row:3;padding-left:52px!important}.action-cell{grid-column:2;grid-row:2/4;align-self:end}.action-cell .button{min-height:40px;padding:9px 10px}.table-card-footer{padding:12px 16px;font-size:12px;line-height:18px}.period-cell{grid-column:1;grid-row:3;padding-left:52px!important;font-size:14px}.categories-table .action-cell{grid-column:2;grid-row:2/4}.empty-state{padding:32px 16px}.empty-state p{font-size:14px}.page-footer{padding:16px;font-size:12px;align-items:start}.page-footer>a{max-width:190px;text-align:right}.button{min-height:40px}}
.categories-table .action-column{width:136px}
.sidebar-brand .drawer-close{display:none}
@media(max-width:899px){.sidebar-brand .drawer-close{display:flex}}
@media(max-width:600px){.filter-bar .field label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.search-submit{margin-top:0}.button,.copy-page{min-height:44px}.copy-page{min-width:44px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition-duration:0ms!important;scroll-behavior:auto!important}}
/* Reserve the full badge and button widths, including cell padding. */
@media(min-width:601px){
  .documents-table .reference-column{width:112px}
  .documents-table .status-column{width:176px}
  .documents-table .action-column{width:152px}
  .documents-table .reference-cell{overflow-wrap:anywhere}
  .documents-table .action-cell{padding-left:16px;padding-right:16px}
}
@media(max-width:600px){
  .documents-table .status-cell{grid-column:1/-1}
  .documents-table .action-cell{grid-row:2;align-self:center}
  .documents-table .action-cell .button{min-height:44px}
  .documents-table .status-badge{max-width:100%;white-space:normal}
}
