/* Customer portal presentation. All selectors are scoped to the portal. */
body.client-sgs{margin:0;min-width:0;background:#f6f6f5;color:#222;font:16px/1.45 "Segoe UI",Arial,sans-serif}
:is(.sgs-portal,#staff-portal-view){--portal-ink:#202020;--portal-muted:#707070;--portal-line:#dededb;--portal-yellow:#ebef27;--portal-surface:#fff;color:var(--portal-ink);font:16px/1.45 "Segoe UI",Arial,sans-serif;min-width:0;background:#f6f6f5}
:is(.sgs-portal,#staff-portal-view) *{box-sizing:border-box}
:is(.sgs-portal,#staff-portal-view) [hidden]{display:none!important}
:is(.sgs-portal,#staff-portal-view) h1,:is(.sgs-portal,#staff-portal-view) h2,:is(.sgs-portal,#staff-portal-view) h3,:is(.sgs-portal,#staff-portal-view) p{margin:0;padding:0;background:none;border:0;color:inherit}
:is(.sgs-portal,#staff-portal-view) h1{font-size:34px;font-weight:600;line-height:1.2;letter-spacing:-1.2px;overflow-wrap:anywhere}
:is(.sgs-portal,#staff-portal-view) h2{font-size:24px;font-weight:600;letter-spacing:-.65px;line-height:1.3}
:is(.sgs-portal,#staff-portal-view) h3{font-size:14px;font-weight:600;letter-spacing:0}
:is(.sgs-portal,#staff-portal-view) a{color:#303030;text-decoration:none}
:is(.sgs-portal,#staff-portal-view) a:hover{text-decoration:underline;text-underline-offset:3px}
:is(.sgs-portal,#staff-portal-view) button{appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:9px 13px;border:1px solid #d5d5d1;border-radius:5px;background:#fff;color:#333;box-shadow:none;font:500 14px/1.3 "Segoe UI",Arial,sans-serif;cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s}
:is(.sgs-portal,#staff-portal-view) button::before,:is(.sgs-portal,#staff-portal-view) button::after{content:none;display:none}
:is(.sgs-portal,#staff-portal-view) button:hover:not(:disabled){background:#eeeeeb;border-color:#9c9c95;color:#202020}
:is(.sgs-portal,#staff-portal-view) button:disabled{background:#f5f5f3;color:#a0a09b;border-color:#e3e3de;cursor:default;opacity:1}
:is(.sgs-portal,#staff-portal-view) button.primary{background:#232323;color:white;border-color:#232323}
:is(.sgs-portal,#staff-portal-view) button.primary:hover:not(:disabled){background:#404040;color:white;border-color:#404040}
:is(.sgs-portal,#staff-portal-view) button.primary:disabled{background:#e7e7e2;color:#93938b;border-color:#e7e7e2}
:is(.sgs-portal,#staff-portal-view) button.quiet{background:transparent;border-color:transparent;color:#64645e}
:is(.sgs-portal,#staff-portal-view) button.quiet:hover:not(:disabled){background:#eeeeeb;color:#222}
:is(.sgs-portal,#staff-portal-view) :is(button,input,select,a,[tabindex]):focus-visible{outline:2px solid #737800;outline-offset:3px}
:is(.sgs-portal,#staff-portal-view) input,:is(.sgs-portal,#staff-portal-view) select{width:100%;min-width:0;min-height:40px;border:1px solid #d8d8d2;border-radius:5px;background:#fff;color:#252525;padding:9px 11px;font:14px/1.4 "Segoe UI",Arial,sans-serif;box-shadow:none}
:is(.sgs-portal,#staff-portal-view) select{appearance:none;padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23666' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
:is(.sgs-portal,#staff-portal-view) input::placeholder{color:#868680}
:is(.sgs-portal,#staff-portal-view) input[type=checkbox]{appearance:auto;width:16px;height:16px;min-height:0;padding:0;margin:0;accent-color:#272727;cursor:pointer;vertical-align:middle}
:is(.sgs-portal,#staff-portal-view) input[type=hidden]{display:none}
:is(.sgs-portal,#staff-portal-view) .portal-icon{width:17px;height:17px;flex:none;vertical-align:middle}
:is(.sgs-portal,#staff-portal-view) .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%)}
:is(.sgs-portal,#staff-portal-view) .portal-brand{display:flex;align-items:center;gap:28px;padding:19px max(32px,calc((100vw - 1560px)/2));min-height:84px;background:#fff;border-top:4px solid #e7eb29;border-bottom:1px solid #e0e0db}
:is(.sgs-portal,#staff-portal-view) .brand-home{display:flex;align-items:center;flex:none}
:is(.sgs-portal,#staff-portal-view) .brand-home img{width:174px;height:auto;display:block}
:is(.sgs-portal,#staff-portal-view) .brand-caption{padding-left:26px;border-left:1px solid #dcdcd6;font-size:12px;letter-spacing:1.6px;color:#5c5c56}
:is(.sgs-portal,#staff-portal-view) .brand-caption>span{display:none}
:is(.sgs-portal,#staff-portal-view) .portal-identity{display:flex;align-items:center;gap:10px;margin-left:auto}
:is(.sgs-portal,#staff-portal-view) .customer-avatar{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#f0f0e9;color:#464641;font-size:12px;font-weight:600}
:is(.sgs-portal,#staff-portal-view) .customer-name{font-size:13px;color:#30302f;max-width:230px;overflow-wrap:anywhere;margin-right:18px}
:is(.sgs-portal,#staff-portal-view) .customer-name small{display:block;color:#7a7a74;font-size:12px;margin-top:1px}
:is(.sgs-portal,#staff-portal-view) .portal-identity button{font-size:13px;min-height:36px}
:is(.sgs-portal,#staff-portal-view) .portal-content{padding:0}
:is(.sgs-portal,#staff-portal-view) .portal-main{max-width:1624px;margin:0 auto;padding:0 32px}
:is(.sgs-portal,#staff-portal-view) .company-heading{display:flex;align-items:center;gap:22px;padding:34px 0 27px;min-height:156px}
:is(.sgs-portal,#staff-portal-view) .company-brand-tile{width:80px;height:80px;border:1px solid #deded8;background:white;border-radius:8px;display:flex;align-items:center;justify-content:center;padding:10px;flex:none}
:is(.sgs-portal,#staff-portal-view) .company-logo{display:block;width:100%;height:100%;object-fit:contain}
:is(.sgs-portal,#staff-portal-view) .company-monogram{font-size:27px;letter-spacing:-1px;color:#3e3e38;font-weight:600}
:is(.sgs-portal,#staff-portal-view) .company-title{flex:1;min-width:0}
:is(.sgs-portal,#staff-portal-view) .eyebrow{display:block;font-size:11px;letter-spacing:1.5px;font-weight:600;color:#7a7a73;margin-bottom:7px}
:is(.sgs-portal,#staff-portal-view) .company-title p{color:#77776f;font-size:14px;margin-top:7px}
:is(.sgs-portal,#staff-portal-view) .brand-edit{font-size:13px}
:is(.sgs-portal,#staff-portal-view) .company-switch{display:flex;gap:8px;align-items:center;font-size:13px;color:#77776f;margin-top:8px}
:is(.sgs-portal,#staff-portal-view) .company-switch select{max-width:330px;min-height:30px;padding:4px 32px 4px 8px}
:is(.sgs-portal,#staff-portal-view) .summary{display:flex;gap:10px;border-bottom:1px solid #d9d9d3;margin-bottom:30px;overflow-x:auto}
:is(.sgs-portal,#staff-portal-view) .summary button{position:relative;border:0;border-bottom:3px solid transparent;border-radius:0;background:none;padding:13px 20px 15px;min-height:52px;gap:10px;color:#70706a;font-size:14px}
:is(.sgs-portal,#staff-portal-view) .summary button:first-child{padding-left:0;padding-right:24px}
:is(.sgs-portal,#staff-portal-view) .summary button:hover{background:transparent;color:#222}
:is(.sgs-portal,#staff-portal-view) .summary button.active{color:#202020;border-bottom-color:#222;background:transparent}
:is(.sgs-portal,#staff-portal-view) .summary strong{font-size:12px;font-weight:600;min-width:24px;padding:2px 7px;background:#e9e9e3;border-radius:4px;font-variant-numeric:tabular-nums;color:#60605a}
:is(.sgs-portal,#staff-portal-view) .summary .active strong{color:#222;background:#e9ec51}
:is(.sgs-portal,#staff-portal-view) .summary .expired:not(.active) strong{background:#f3e5df;color:#985b43}
:is(.sgs-portal,#staff-portal-view) .summary .soon:not(.active) strong{background:#f3ecd5;color:#8b6c22}
:is(.sgs-portal,#staff-portal-view) .inventory-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:23px}
:is(.sgs-portal,#staff-portal-view) .inventory-heading p{font-size:14px;color:#77776f;margin-top:5px}
:is(.sgs-portal,#staff-portal-view) .portal-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
:is(.sgs-portal,#staff-portal-view) .portal-actions button{font-size:13px;min-height:38px;padding:9px 11px}
:is(.sgs-portal,#staff-portal-view) .portal-actions button[data-portal-action=sign]{background:#e9ec31;border-color:#dadd27;color:#23231d}
:is(.sgs-portal,#staff-portal-view) .portal-actions button[data-portal-action=sign]:hover:not(:disabled){background:#dce024;border-color:#c7cb1a}
:is(.sgs-portal,#staff-portal-view) .portal-actions button[data-portal-action=sign]:disabled{background:#eeeedf;border-color:#deded3;color:#a0a092}
:is(.sgs-portal,#staff-portal-view) .icon-button{width:38px;padding:8px!important}
:is(.sgs-portal,#staff-portal-view) .records-workspace{display:grid;grid-template-columns:minmax(0,1fr) 328px;gap:24px;align-items:start}
:is(.sgs-portal,#staff-portal-view) .panel{padding:0;margin:0;border:1px solid #deded8;border-radius:8px;background:#fff;min-width:0;overflow:hidden;box-shadow:0 3px 7px #20202003}
:is(.sgs-portal,#staff-portal-view) .filters{padding:20px 20px 0;margin:0;background:white;border:0}
:is(.sgs-portal,#staff-portal-view) .search-row{display:flex;gap:8px;align-items:center}
:is(.sgs-portal,#staff-portal-view) .search-input{flex:1;min-width:0;position:relative;margin:0}
:is(.sgs-portal,#staff-portal-view) .search-input>.portal-icon{position:absolute;left:13px;top:13px;color:#909087}
:is(.sgs-portal,#staff-portal-view) .search-input input{padding-left:39px;min-height:43px;background:#fafaf8;font-size:14px}
:is(.sgs-portal,#staff-portal-view) .search-row button{font-size:13px;min-height:41px}
:is(.sgs-portal,#staff-portal-view) .filter-count{background:#ebedc8;border-radius:3px;padding:1px 5px;font-size:12px}
:is(.sgs-portal,#staff-portal-view) .advanced-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:20px 0 9px}
:is(.sgs-portal,#staff-portal-view) .advanced-filters label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#66665f;min-width:0;margin:0}
:is(.sgs-portal,#staff-portal-view) .filter-period{grid-column:span 2;border:0;background:none;padding:0;margin:0;min-width:0}
:is(.sgs-portal,#staff-portal-view) .filter-period legend{font-size:13px;font-weight:400;color:#66665f;margin-bottom:6px;padding:0}
:is(.sgs-portal,#staff-portal-view) .datepair{display:grid;grid-template-columns:1fr 1fr;gap:8px}
:is(.sgs-portal,#staff-portal-view) .datepair label{font-size:12px}
:is(.sgs-portal,#staff-portal-view) .datepair input{font-size:13px;padding:8px}
:is(.sgs-portal,#staff-portal-view) .selection-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 20px;font-size:12px;color:#81817a}
:is(.sgs-portal,#staff-portal-view) .selection-bar button{font-size:12px;min-height:26px;padding:3px 0}
:is(.sgs-portal,#staff-portal-view) .grid-scroll{overflow:auto;max-height:510px;min-width:0;scrollbar-width:thin;background:#fff}
:is(.sgs-portal,#staff-portal-view) table{border-collapse:collapse;width:100%;font:14px/1.4 "Segoe UI",Arial,sans-serif;color:#333;background:white;border:0}
:is(.sgs-portal,#staff-portal-view) th,:is(.sgs-portal,#staff-portal-view) td{border:0;border-bottom:1px solid #ecece6;padding:16px 12px;text-align:left;height:auto;vertical-align:middle;white-space:nowrap;background:transparent;font-weight:400}
:is(.sgs-portal,#staff-portal-view) th{position:sticky;top:0;z-index:1;font-size:12px;letter-spacing:.1px;font-weight:500;color:#72726a;background:#f7f7f3;padding:12px;border-top:1px solid #e6e6df;border-bottom:1px solid #e6e6df}
:is(.sgs-portal,#staff-portal-view) tbody tr,:is(.sgs-portal,#staff-portal-view) tbody tr:nth-child(even){background:white!important}
:is(.sgs-portal,#staff-portal-view) tbody tr:hover{background:#f8f8f3!important}
:is(.sgs-portal,#staff-portal-view) tbody tr.selected,:is(.sgs-portal,#staff-portal-view) tbody tr.selected td{background:#f5f5e9!important;color:#262620!important;font-weight:400}
:is(.sgs-portal,#staff-portal-view) tbody tr.selected td:first-child{box-shadow:inset 3px 0 #c7ca31}
:is(.sgs-portal,#staff-portal-view) tbody tr:last-child td{border-bottom:0}
:is(.sgs-portal,#staff-portal-view) .check-col{width:36px}
:is(.sgs-portal,#staff-portal-view) .instrument-grid td:first-child,:is(.sgs-portal,#staff-portal-view) .instrument-grid th:first-child{padding-left:18px;padding-right:2px}
:is(.sgs-portal,#staff-portal-view) [data-instrument],:is(.sgs-portal,#staff-portal-view) [data-history]{cursor:pointer}
:is(.sgs-portal,#staff-portal-view) .description{white-space:normal;min-width:190px;max-width:310px}
:is(.sgs-portal,#staff-portal-view) .instrument-code{display:block;font-size:12px;font-weight:500;color:#77776c;margin-bottom:4px;letter-spacing:.2px}
:is(.sgs-portal,#staff-portal-view) .instrument-name{display:block;font-size:14px;font-weight:600;color:#25251f}
:is(.sgs-portal,#staff-portal-view) .cell-meta{display:block;font-size:12px;color:#858579;font-weight:400;margin-top:4px;white-space:normal}
:is(.sgs-portal,#staff-portal-view) .serial{display:block;margin-top:2px}
:is(.sgs-portal,#staff-portal-view) .date-cell{font-size:13px;font-variant-numeric:tabular-nums}
:is(.sgs-portal,#staff-portal-view) .status{display:table;font-size:11px;line-height:1.3;color:#6d6d65;background:#f0f0ea;padding:3px 6px;border-radius:3px;margin-top:5px}
:is(.sgs-portal,#staff-portal-view) .status.valid{color:#52735a;background:#edf2e9}
:is(.sgs-portal,#staff-portal-view) .status.soon{color:#8b6e1c;background:#faf1d7}
:is(.sgs-portal,#staff-portal-view) .status.expired{color:#a0573c;background:#f6eae2}
:is(.sgs-portal,#staff-portal-view) .certificate-link{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:#35352c}
:is(.sgs-portal,#staff-portal-view) .certificate-link .portal-icon{color:#858666;width:16px;height:16px}
:is(.sgs-portal,#staff-portal-view) .unavailable{color:#9a9a90;font-size:12px}
:is(.sgs-portal,#staff-portal-view) .signed-mark{color:#55745b;font-size:12px}
:is(.sgs-portal,#staff-portal-view) .result-code{display:inline-flex;border:1px solid #deded3;background:#fafaf5;border-radius:3px;color:#78786d;font-size:11px;padding:3px 6px}
:is(.sgs-portal,#staff-portal-view) .pagination{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:14px 18px;border-top:1px solid #e6e6df;color:#88887d;font-size:12px;flex-wrap:wrap}
:is(.sgs-portal,#staff-portal-view) .pagination>span:first-child{margin-right:auto;font-size:11px;max-width:260px}
:is(.sgs-portal,#staff-portal-view) .pagination button{min-height:30px;padding:6px 8px;font-size:12px}
:is(.sgs-portal,#staff-portal-view) .empty{padding:30px 20px!important;color:#7e7e72;white-space:normal;text-align:center;font-size:13px}
:is(.sgs-portal,#staff-portal-view) .empty strong{display:block;font-weight:500;font-size:15px;color:#56564c}
:is(.sgs-portal,#staff-portal-view) .empty>span{display:block;margin-top:5px}
:is(.sgs-portal,#staff-portal-view) .detail-area{min-width:0;border:1px solid #d9d9d1;background:#fff;border-radius:8px;overflow:hidden;scroll-margin-top:15px}
:is(.sgs-portal,#staff-portal-view) .detail-heading{padding:22px 22px 16px;background:#fafaf7;border-bottom:1px solid #eeeeea}
:is(.sgs-portal,#staff-portal-view) .detail-heading .eyebrow{font-size:10px;letter-spacing:1.2px;color:#8a8a7a}
:is(.sgs-portal,#staff-portal-view) .detail-heading h2{font-size:26px;letter-spacing:-.8px;margin-top:9px;overflow-wrap:anywhere}
:is(.sgs-portal,#staff-portal-view) .detail-heading p{font-size:14px;line-height:1.5;margin:4px 0 9px;color:#58584e}
:is(.sgs-portal,#staff-portal-view) .detail-meta{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:12px;color:#929280}
:is(.sgs-portal,#staff-portal-view) .detail-heading .location-button{font-size:12px;min-height:28px;padding:7px 0 0;color:#777762;justify-content:flex-start}
:is(.sgs-portal,#staff-portal-view) .document-feature{position:relative;margin:20px 20px 18px;padding:18px;border:1px solid #deded2;border-top:3px solid #e2e637;border-radius:3px;background:#fff;box-shadow:3px 3px 0 #f2f2ea}
:is(.sgs-portal,#staff-portal-view) .document-caption{display:flex;align-items:center;gap:6px;font-size:12px;letter-spacing:0;color:#76765d;font-weight:600;white-space:nowrap}
:is(.sgs-portal,#staff-portal-view) .document-caption>.portal-icon{width:16px;height:16px}
:is(.sgs-portal,#staff-portal-view) .document-caption>span{margin-left:auto;font-size:11px;background:#f1f1e8;padding:3px;border-radius:2px}
:is(.sgs-portal,#staff-portal-view) .document-feature>strong{display:block;margin:17px 0 7px;font-size:21px;line-height:1.2;letter-spacing:-.6px;overflow-wrap:anywhere}
:is(.sgs-portal,#staff-portal-view) .document-issued{display:block;font-size:11px;line-height:1.4;color:#77776b;margin-bottom:18px}
:is(.sgs-portal,#staff-portal-view) .document-open{display:flex;align-items:center;justify-content:center;gap:8px;padding:10px;border-radius:3px;background:#282821;color:white;font-size:13px;font-weight:500}
:is(.sgs-portal,#staff-portal-view) .document-open:hover{background:#44443a;text-decoration:none}
:is(.sgs-portal,#staff-portal-view) .document-empty{display:flex;align-items:center;gap:12px;margin:20px;padding:16px;background:#f8f8f3;color:#919181;font-size:12px;border:1px dashed #dcdcd0;border-radius:4px}
:is(.sgs-portal,#staff-portal-view) .detail-tabs{display:flex;gap:18px;padding:0 20px;border-bottom:1px solid #e5e5dc}
:is(.sgs-portal,#staff-portal-view) .detail-tabs button{padding:10px 0;border:0;border-bottom:2px solid transparent;border-radius:0;background:none;font-size:13px;color:#77776b;min-height:43px}
:is(.sgs-portal,#staff-portal-view) .detail-tabs button.active{border-bottom-color:#303024;color:#303024}
:is(.sgs-portal,#staff-portal-view) .detail-tabs button:hover{background:none;color:#222}
:is(.sgs-portal,#staff-portal-view) .history-list,:is(.sgs-portal,#staff-portal-view) .trace-list{max-height:410px;overflow:auto;scrollbar-width:thin}
:is(.sgs-portal,#staff-portal-view) .history-entry{padding:18px 22px;position:relative;border-bottom:1px solid #efefe8;background:white}
:is(.sgs-portal,#staff-portal-view) .history-entry:last-child,:is(.sgs-portal,#staff-portal-view) .trace-entry:last-child{border-bottom:0}
:is(.sgs-portal,#staff-portal-view) .history-entry.selected{background:#fafaf2}
:is(.sgs-portal,#staff-portal-view) .history-entry.selected::before{content:"";position:absolute;left:0;top:18px;bottom:18px;width:3px;background:#c9cb44}
:is(.sgs-portal,#staff-portal-view) .history-entry:hover{background:#f5f5eb}
:is(.sgs-portal,#staff-portal-view) .history-date{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;font-weight:600;color:#535347}
:is(.sgs-portal,#staff-portal-view) .history-number{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font-size:13px;margin-top:10px;font-weight:500;color:#555543}
:is(.sgs-portal,#staff-portal-view) .history-entry .cell-meta{font-size:11px;margin-top:6px;color:#77776b}
:is(.sgs-portal,#staff-portal-view) .acceptance-note{display:flex;align-items:center;gap:5px;font-size:12px;color:#57705c;margin-top:7px}
:is(.sgs-portal,#staff-portal-view) .panelhead{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:16px 20px;border-bottom:1px solid #eeeeE5;background:white}
:is(.sgs-portal,#staff-portal-view) .panelhead h3{font-size:12px;color:#85856d}
:is(.sgs-portal,#staff-portal-view) .panelhead button{font-size:11px;padding:3px 0;min-height:26px}
:is(.sgs-portal,#staff-portal-view) .trace-entry{padding:18px 20px;border-bottom:1px solid #eeeeE6}
:is(.sgs-portal,#staff-portal-view) .trace-code{display:flex;gap:7px;align-items:center;font-size:14px;color:#555542}
:is(.sgs-portal,#staff-portal-view) .trace-entry p{font-size:12px;margin:6px 0 10px;color:#7a7a68}
:is(.sgs-portal,#staff-portal-view) .trace-entry dl{margin:0;font-size:12px}
:is(.sgs-portal,#staff-portal-view) .trace-entry dl>div{display:flex;justify-content:space-between;gap:10px;margin-top:5px}
:is(.sgs-portal,#staff-portal-view) .trace-entry dt{color:#77776b}
:is(.sgs-portal,#staff-portal-view) .trace-entry dd{margin:0;color:#61614d;overflow-wrap:anywhere;text-align:right}
:is(.sgs-portal,#staff-portal-view) .trace-files a{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:500;margin-top:13px;overflow-wrap:anywhere;color:#676741}
:is(.sgs-portal,#staff-portal-view) .table-help{padding:15px 20px;font-size:12px;color:#7e7e6a;border-top:1px solid #e9e9e0}
:is(.sgs-portal,#staff-portal-view) .table-help button{font-size:12px;padding:2px 0;min-height:26px}
:is(.sgs-portal,#staff-portal-view) .portal-bottom{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:25px 0 17px;margin-top:24px;border-top:1px solid #ddddd4;font-size:11px;color:#909081}
:is(.sgs-portal,#staff-portal-view) .footer-separator{padding:0 12px;color:#bbbba9}
:is(.sgs-portal,#staff-portal-view) .portal-sync{max-width:1624px;padding:0 32px 20px;margin:0 auto;text-align:right;font-size:11px;color:#a3a38e}
:is(.sgs-portal,#staff-portal-view) .preview-identity{margin:0;padding:12px 24px;border-bottom:1px solid #dcdcd3;font-size:12px;color:#797969;background:#f1f1e9}
#staff-portal-view{border:1px solid #d9d9cf;border-radius:7px;overflow:hidden}
.portal-select{display:flex;gap:10px;align-items:flex-end;flex-wrap:wrap;margin-bottom:8px}.portal-select label{display:flex;flex-direction:column;gap:4px}.portal-select label:first-child{flex:0 1 280px}.portal-select label:nth-child(2){flex:1;min-width:280px}.portal-select input,.portal-select select{width:100%}
:is(.sgs-portal,#staff-portal-view) dialog{width:min(760px,94vw);max-height:90vh;min-width:0;padding:0;border:1px solid #d9d9cf;border-radius:9px;background:#fff;color:#333;font:15px/1.5 "Segoe UI",Arial,sans-serif;box-shadow:0 25px 90px #0003}
:is(.sgs-portal,#staff-portal-view) dialog::backdrop{background:#20201866;backdrop-filter:blur(2px)}
:is(.sgs-portal,#staff-portal-view) dialog header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px 24px;border-bottom:1px solid #e3e3d8;background:#fafaf6;font-weight:600;font-size:18px}
:is(.sgs-portal,#staff-portal-view) dialog header button{background:none;border:0;min-height:26px;padding:1px 7px;font-size:23px}
:is(.sgs-portal,#staff-portal-view) dialog .body{padding:22px 24px;max-height:75vh;overflow:auto}
:is(.sgs-portal,#staff-portal-view) dialog label{display:block;margin:13px 0;font-size:14px}
:is(.sgs-portal,#staff-portal-view) dialog label input:not([type=checkbox]),:is(.sgs-portal,#staff-portal-view) dialog label select{display:block;margin-top:5px}
:is(.sgs-portal,#staff-portal-view) dialog footer{display:flex;justify-content:flex-end;gap:8px;margin-top:22px;flex-wrap:wrap}
:is(.sgs-portal,#staff-portal-view) .info,:is(.sgs-portal,#staff-portal-view) .scope-note{font-size:13px;line-height:1.55;color:#7e7e6b;margin-top:12px}
:is(.sgs-portal,#staff-portal-view) .error{color:#9c482b;background:#fff1e7;padding:12px;border:1px solid #edd7c5;border-radius:4px;font-size:14px}
:is(.sgs-portal,#staff-portal-view) .sign-list{padding:12px;background:#f6f6eb;border:1px solid #e4e4cf;border-radius:4px;max-height:160px;overflow:auto;margin:12px 0}
:is(.sgs-portal,#staff-portal-view) .chart-title{display:flex;gap:12px}
:is(.sgs-portal,#staff-portal-view) .chart{width:100%;height:285px;border:1px solid #e0e0d6;background:#fafaf5}
:is(.sgs-portal,#staff-portal-view) .chart text{font:11px Arial;fill:#7c7c64}
:is(.sgs-portal,#staff-portal-view) .branding-current{display:flex;flex-direction:column;align-items:center;gap:10px;margin:18px 0;padding:22px;background:#f9f9f4;border:1px solid #e6e6d9;border-radius:5px;font-size:12px;color:#969681}
:is(.sgs-portal,#staff-portal-view) .branding-current img{max-width:240px;max-height:100px;width:auto;height:auto;object-fit:contain}
:is(.sgs-portal,#staff-portal-view) label.logo-upload{position:relative;display:flex;align-items:center;flex-direction:column;gap:8px;cursor:pointer;padding:25px;background:#fcfcf6;border:1px dashed #c7c7a4;border-radius:6px}
:is(.sgs-portal,#staff-portal-view) .logo-upload>span{font-size:12px;color:#929273}
:is(.sgs-portal,#staff-portal-view) .logo-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0!important}
:is(.sgs-portal,#staff-portal-view) .logo-upload:focus-within{outline:2px solid #7e820d;outline-offset:3px}
:is(.sgs-portal,#staff-portal-view) #notice{position:fixed;bottom:24px;right:24px;max-width:540px;padding:14px 20px;background:#29291f;color:#fff;box-shadow:0 5px 25px #0002;border-radius:5px;z-index:100;font-size:14px}
:is(.sgs-portal,#staff-portal-view) .login{max-width:440px;margin:50px auto;padding:26px;border:1px solid #dcdcd0;border-radius:7px;background:#fff}
:is(.sgs-portal,#staff-portal-view) .login h1{font-size:26px}
:is(.sgs-portal,#staff-portal-view) .login p{margin:14px 0;color:#777762;font-size:14px}
:is(.sgs-portal,#staff-portal-view) .login label{display:block;margin:14px 0}
:is(.sgs-portal,#staff-portal-view) .login footer{display:flex;gap:8px;margin-top:18px}
:is(.sgs-portal,#staff-portal-view) .portal-loading{padding:30px}
@media(min-width:1800px){:is(.sgs-portal,#staff-portal-view) .records-workspace{grid-template-columns:minmax(0,1fr) 350px;gap:28px}}
@media(max-width:1350px){:is(.sgs-portal,#staff-portal-view) .portal-main{padding:0 24px}:is(.sgs-portal,#staff-portal-view) .records-workspace{grid-template-columns:minmax(0,1fr) 302px;gap:18px}:is(.sgs-portal,#staff-portal-view) .inventory-heading{align-items:flex-start;gap:16px}:is(.sgs-portal,#staff-portal-view) .portal-actions{max-width:510px}:is(.sgs-portal,#staff-portal-view) .inventory-heading p{max-width:330px}:is(.sgs-portal,#staff-portal-view) .instrument-grid th,:is(.sgs-portal,#staff-portal-view) .instrument-grid td{padding-left:10px;padding-right:10px}:is(.sgs-portal,#staff-portal-view) .instrument-grid .description{min-width:170px}:is(.sgs-portal,#staff-portal-view) .brand-caption{display:none}}
@media(max-width:1100px){:is(.sgs-portal,#staff-portal-view) .records-workspace{grid-template-columns:1fr}:is(.sgs-portal,#staff-portal-view) .detail-area{display:grid;grid-template-columns:300px minmax(0,1fr);column-gap:16px;align-items:start}:is(.sgs-portal,#staff-portal-view) .detail-heading{grid-column:1;grid-row:1/3;border:0}:is(.sgs-portal,#staff-portal-view) #document-feature{grid-column:1;grid-row:3/5}:is(.sgs-portal,#staff-portal-view) .detail-tabs{grid-column:2;grid-row:1}:is(.sgs-portal,#staff-portal-view) #portal-history-section,:is(.sgs-portal,#staff-portal-view) #portal-traceability{grid-column:2;grid-row:2/5}:is(.sgs-portal,#staff-portal-view) .document-feature{margin-top:8px}:is(.sgs-portal,#staff-portal-view) .history-list,:is(.sgs-portal,#staff-portal-view) .trace-list{max-height:360px}:is(.sgs-portal,#staff-portal-view) .inventory-heading{flex-direction:column}:is(.sgs-portal,#staff-portal-view) .inventory-heading p{max-width:none}:is(.sgs-portal,#staff-portal-view) .portal-actions{max-width:none;justify-content:flex-start}}
@media(max-width:760px){:is(.sgs-portal,#staff-portal-view) .portal-brand{padding:16px 20px;gap:14px;flex-wrap:wrap}:is(.sgs-portal,#staff-portal-view) .brand-home img{width:150px}:is(.sgs-portal,#staff-portal-view) .portal-identity{gap:6px}:is(.sgs-portal,#staff-portal-view) .customer-avatar,:is(.sgs-portal,#staff-portal-view) .customer-name{display:none}:is(.sgs-portal,#staff-portal-view) .portal-identity button{font-size:12px;padding:7px}:is(.sgs-portal,#staff-portal-view) .portal-main{padding:0 16px}:is(.sgs-portal,#staff-portal-view) .company-heading{gap:14px;padding:25px 0 16px;flex-wrap:wrap;min-height:0}:is(.sgs-portal,#staff-portal-view) .company-brand-tile{height:62px;width:62px}:is(.sgs-portal,#staff-portal-view) h1{font-size:28px}:is(.sgs-portal,#staff-portal-view) .company-title p{font-size:12px}:is(.sgs-portal,#staff-portal-view) .company-title{flex-basis:calc(100% - 80px)}:is(.sgs-portal,#staff-portal-view) .brand-edit{margin-left:76px;padding:0!important;min-height:26px;font-size:12px}:is(.sgs-portal,#staff-portal-view) .summary{margin-bottom:22px;gap:0}:is(.sgs-portal,#staff-portal-view) .summary button{padding:12px;gap:7px;font-size:13px;min-height:48px}:is(.sgs-portal,#staff-portal-view) .summary button:first-child{padding-right:18px}:is(.sgs-portal,#staff-portal-view) .inventory-heading h2{font-size:23px}:is(.sgs-portal,#staff-portal-view) .inventory-heading p{font-size:13px}:is(.sgs-portal,#staff-portal-view) .portal-actions{gap:6px}:is(.sgs-portal,#staff-portal-view) .portal-actions button{font-size:12px;padding:8px;gap:6px}:is(.sgs-portal,#staff-portal-view) .filters{padding:14px 14px 0}:is(.sgs-portal,#staff-portal-view) .search-row{flex-wrap:wrap}:is(.sgs-portal,#staff-portal-view) .search-input{flex-basis:100%}:is(.sgs-portal,#staff-portal-view) .search-input input{font-size:13px}:is(.sgs-portal,#staff-portal-view) .advanced-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}:is(.sgs-portal,#staff-portal-view) .selection-bar{padding:10px 14px;flex-wrap:wrap}:is(.sgs-portal,#staff-portal-view) .selection-bar button{font-size:11px}:is(.sgs-portal,#staff-portal-view) .pagination>span:first-child{flex-basis:100%;max-width:none}:is(.sgs-portal,#staff-portal-view) .detail-area{display:block}:is(.sgs-portal,#staff-portal-view) .document-feature{margin-top:18px}:is(.sgs-portal,#staff-portal-view) .detail-heading h2{font-size:25px}:is(.sgs-portal,#staff-portal-view) .portal-bottom{flex-direction:column;align-items:flex-start;gap:8px;padding:20px 0 12px}:is(.sgs-portal,#staff-portal-view) .portal-sync{padding:0 16px 16px}:is(.sgs-portal,#staff-portal-view) #notice{left:16px;right:16px;bottom:16px}:is(.sgs-portal,#staff-portal-view) .chart-title{flex-direction:column;gap:0}}
@media(max-width:600px){:is(.sgs-portal,#staff-portal-view) .instrument-grid{max-height:640px}:is(.sgs-portal,#staff-portal-view) .instrument-grid table,:is(.sgs-portal,#staff-portal-view) .instrument-grid tbody{display:block;width:100%}:is(.sgs-portal,#staff-portal-view) .instrument-grid thead{display:none}:is(.sgs-portal,#staff-portal-view) .instrument-grid tr{display:grid;grid-template-columns:28px 1fr 1fr;gap:10px 6px;padding:18px 14px;border-bottom:1px solid #e4e4d9}:is(.sgs-portal,#staff-portal-view) .instrument-grid td{display:block;padding:0!important;border:0!important;font-size:13px;white-space:normal;min-width:0}:is(.sgs-portal,#staff-portal-view) .instrument-grid td:first-child{grid-column:1;grid-row:1;padding-top:4px!important;box-shadow:none!important}:is(.sgs-portal,#staff-portal-view) .instrument-grid td.description{grid-column:2/4;min-width:0;max-width:none}:is(.sgs-portal,#staff-portal-view) .instrument-grid td[data-label=Localização]{grid-column:2/4}:is(.sgs-portal,#staff-portal-view) .instrument-grid td[data-label=Localização] .cell-meta{display:inline;margin-left:8px}:is(.sgs-portal,#staff-portal-view) .instrument-grid td[data-label="Calibrado em"]{grid-column:2}:is(.sgs-portal,#staff-portal-view) .instrument-grid td[data-label=Validade]{grid-column:3}:is(.sgs-portal,#staff-portal-view) .instrument-grid td[data-label=Certificado]{grid-column:2}:is(.sgs-portal,#staff-portal-view) .instrument-grid td[data-label=Resultado]{grid-column:3}:is(.sgs-portal,#staff-portal-view) .instrument-grid td[data-label]::before{content:attr(data-label);display:block;font-size:10px;letter-spacing:.3px;color:#8c8c7a;margin-bottom:3px}:is(.sgs-portal,#staff-portal-view) .instrument-grid tr.selected{box-shadow:inset 3px 0 #c8cb35}:is(.sgs-portal,#staff-portal-view) .instrument-grid .empty{grid-column:1/-1;padding:24px!important}:is(.sgs-portal,#staff-portal-view) .certificate-link{overflow-wrap:anywhere}:is(.sgs-portal,#staff-portal-view) .portal-actions{width:100%}:is(.sgs-portal,#staff-portal-view) .portal-actions button[data-portal-action=sign]{flex:1}:is(.sgs-portal,#staff-portal-view) .portal-actions button[data-portal-action=export-pdf],:is(.sgs-portal,#staff-portal-view) .portal-actions button[data-portal-action=export-xlsx]{flex:1 1 43%}}
@media(prefers-reduced-motion:reduce){:is(.sgs-portal,#staff-portal-view) *{scroll-behavior:auto!important;transition:none!important}}
@media print{:is(.sgs-portal,#staff-portal-view) .portal-brand,:is(.sgs-portal,#staff-portal-view) .portal-actions,:is(.sgs-portal,#staff-portal-view) .summary,:is(.sgs-portal,#staff-portal-view) .filters,:is(.sgs-portal,#staff-portal-view) .selection-bar,:is(.sgs-portal,#staff-portal-view) .pagination,:is(.sgs-portal,#staff-portal-view) .brand-edit,:is(.sgs-portal,#staff-portal-view) .portal-sync,:is(.sgs-portal,#staff-portal-view) .detail-area{display:none!important}:is(.sgs-portal,#staff-portal-view) .records-workspace{display:block}:is(.sgs-portal,#staff-portal-view) .portal-main{padding:0}:is(.sgs-portal,#staff-portal-view) .grid-scroll{max-height:none;overflow:visible}:is(.sgs-portal,#staff-portal-view) th{position:static}}
