:root{--ink:#12233f;--muted:#68758a;--line:#e4e9f1;--surface:#fff;--bg:#f5f7fb;--primary:#0f6cbd;--primary-dark:#0a4f8d;--navy:#071d36;--cyan:#4bc4d5;--success:#087a55;--danger:#b42318;--shadow:0 18px 45px rgba(18,35,63,.08);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:var(--bg)}a{color:var(--primary);text-decoration:none}button,input,select{font:inherit}.topbar{height:76px;padding:0 4vw;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:32px;position:sticky;top:0;z-index:5}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);min-width:230px}.brand-mark{width:40px;height:40px;border-radius:12px;background:linear-gradient(135deg,var(--primary),var(--cyan));color:#fff;display:grid;place-items:center;font-weight:800;letter-spacing:-.04em}.brand-mark.large{width:54px;height:54px;border-radius:16px}.brand span:last-child{display:flex;flex-direction:column}.brand small,.user-menu small{color:var(--muted);font-size:12px}.topbar nav{display:flex;gap:24px;flex:1}.topbar nav a{color:#40506a;font-weight:650;font-size:14px}.topbar nav a:hover{color:var(--primary)}.user-menu{display:flex;align-items:center;gap:14px}.user-menu>span{display:flex;flex-direction:column;text-align:right;font-size:13px}.page{width:min(1180px,92vw);margin:38px auto 80px}.page.narrow{width:min(860px,92vw)}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:26px}.page-heading h1{font-size:34px;margin:4px 0 6px;letter-spacing:-.035em}.page-heading p{margin:0;color:var(--muted)}.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:11px;font-weight:800;color:var(--primary)}.card{background:var(--surface);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px}.stat-card span{display:block;color:var(--muted);font-size:13px}.stat-card strong{display:block;font-size:32px;margin-top:8px}.section-card{padding:24px}.section-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.section-title h2,.form-card h2{margin:0 0 4px}.muted{color:var(--muted);margin:0}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:14px 12px;border-bottom:1px solid var(--line);font-size:14px;vertical-align:middle}th{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}tr:last-child td{border-bottom:0}.table-sub{display:block;color:var(--muted);margin-top:3px}.status{display:inline-flex;padding:6px 10px;border-radius:999px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;background:#edf2f8;color:#53627a}.status-uploaded,.status-review{background:#fff4db;color:#8c5d00}.status-completed,.status-approved{background:#e5f7ef;color:var(--success)}.status-draft{background:#f1f3f6;color:#68758a}.empty{text-align:center;padding:46px 20px}.empty h3{margin:0 0 8px}.form-card{padding:28px;display:grid;gap:20px}.form-grid.two{display:grid;grid-template-columns:1fr 1fr;gap:18px}label{display:grid;gap:8px;font-size:13px;font-weight:750}input,select{width:100%;border:1px solid #cfd7e5;border-radius:12px;padding:13px 14px;background:#fff;color:var(--ink);outline:none}input:focus,select:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(15,108,189,.12)}.button{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:11px;padding:12px 18px;font-weight:800;cursor:pointer}.button.primary{background:var(--primary);color:#fff}.button.primary:hover{background:var(--primary-dark)}.button.secondary{background:#e8f2fb;color:var(--primary)}.button.ghost{background:#fff;border:1px solid var(--line);color:#40506a}.button.small{padding:8px 12px;font-size:12px}.button.full{width:100%}.form-actions{display:flex;justify-content:flex-end;gap:12px}.upload-box{border:1.5px dashed #b9c6d8;border-radius:16px;padding:24px;background:#f9fbfe}.upload-box input{padding:0;border:0;box-shadow:none}.upload-box span,.upload-box small{font-weight:500;color:var(--muted)}.notice{padding:14px 16px;border-radius:12px;background:#eef6fd;color:#29577f;font-size:13px}.alert{padding:13px 15px;border-radius:12px;margin-bottom:18px;font-size:14px}.alert-error{background:#fff0ef;color:var(--danger);border:1px solid #f3c9c5}.alert-success{background:#eaf8f2;color:var(--success);border:1px solid #bee8d6}.login-shell{min-height:calc(100vh - 50px);display:grid;grid-template-columns:1.05fr .95fr}.login-panel{background:linear-gradient(145deg,#061b32,#0a3d68);color:#fff;padding:8vh 8vw;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-panel:after{content:"";position:absolute;width:460px;height:460px;border-radius:50%;background:rgba(75,196,213,.16);right:-150px;bottom:-180px}.login-brand{display:flex;align-items:center;gap:14px;position:relative;z-index:1}.login-brand h1,.login-brand p{margin:0}.login-brand p{color:#b9d5e9}.login-copy{max-width:580px;position:relative;z-index:1;margin-bottom:10vh}.login-copy .eyebrow{color:#79dce8}.login-copy h2{font-size:54px;line-height:1.06;margin:14px 0 18px;letter-spacing:-.045em}.login-copy p{font-size:18px;line-height:1.7;color:#c8d9e7}.login-card-wrap{display:grid;place-items:center;padding:40px}.login-card{width:min(440px,100%);padding:36px;display:grid;gap:20px}.login-card h2{font-size:32px;margin:6px 0}.security-note{text-align:center;color:var(--muted);font-size:11px;line-height:1.5}.footer{text-align:center;padding:16px;color:#8792a5;font-size:12px}.details-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:20px}.detail-card{padding:20px}.detail-card span{display:block;color:var(--muted);font-size:12px}.detail-card strong{display:block;margin-top:7px}.document-list{list-style:none;padding:0;margin:0;display:grid;gap:12px}.document-list li{display:flex;align-items:center;gap:14px;padding:14px;border:1px solid var(--line);border-radius:13px}.file-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:10px;background:#edf5fc;color:var(--primary);font-size:10px;font-weight:900}.document-list div{display:flex;flex-direction:column}.document-list small{color:var(--muted);margin-top:4px}.locked-feature{margin-top:20px;background:linear-gradient(135deg,#fff,#f2f8fd)}.locked-feature h2{margin:8px 0}.admin-grid{display:grid;grid-template-columns:340px 1fr;gap:20px;align-items:start}.error-card{text-align:center;padding:60px 30px}.error-code{margin:auto;width:56px;height:56px;border-radius:50%;display:grid;place-items:center;background:#fff0ef;color:var(--danger);font-size:28px;font-weight:900}.error-card h1{margin:18px 0 8px}.error-card p{color:var(--muted);margin-bottom:24px}@media(max-width:900px){.topbar{height:auto;padding:16px 4vw;flex-wrap:wrap}.topbar nav{order:3;width:100%;overflow:auto}.user-menu{margin-left:auto}.stats{grid-template-columns:repeat(2,1fr)}.login-shell{grid-template-columns:1fr}.login-panel{min-height:360px;padding:50px 7vw}.login-copy{margin:60px 0 0}.login-copy h2{font-size:38px}.admin-grid{grid-template-columns:1fr}}@media(max-width:620px){.page-heading{align-items:flex-start;flex-direction:column}.form-grid.two,.details-grid{grid-template-columns:1fr}.stats{grid-template-columns:1fr 1fr}.topbar nav{gap:16px}.brand{min-width:0}.user-menu>span{display:none}.login-card-wrap{padding:24px}.login-card{padding:26px}}
.inline-upload{display:grid;gap:16px}.upload-box.compact{padding:18px}.upload-box.compact label{margin:0}
.review-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.review-grid>div{border:1px solid var(--line);border-radius:13px;padding:14px;background:#fbfdff}.review-grid span{display:block;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.06em;font-weight:800}.review-grid strong{display:block;margin-top:6px;font-size:15px}.review-grid .exporter-lines{white-space:pre-line}.review-table th,.review-table td{font-size:12px}.review-table td:nth-child(7){min-width:260px}.notice-card{margin-top:20px}.form-actions.left{justify-content:flex-start;align-items:center;flex-wrap:wrap}@media(max-width:900px){.review-grid{grid-template-columns:1fr 1fr}}@media(max-width:620px){.review-grid{grid-template-columns:1fr}}
.sad-review-actions .button{display:inline-flex;align-items:center;justify-content:center;text-align:center}
.cell-pre{white-space:pre-wrap;margin:0;font:inherit;line-height:1.35;}
.warning-card{border-color:#f3d49a;background:#fffaf0;margin-bottom:18px}.warning-card h2{margin:0 0 10px}.warning-card ul{margin:0;padding-left:20px;color:#7a4d00}.edit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.edit-grid label,.full-field{font-size:12px}.full-field{margin-top:16px}textarea{width:100%;border:1px solid #cfd7e5;border-radius:12px;padding:11px 12px;background:#fff;color:var(--ink);outline:none;resize:vertical;font:inherit}textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(15,108,189,.12)}.review-page{width:min(1500px,96vw)}.edit-table th,.edit-table td{padding:8px 7px;vertical-align:top}.edit-table input,.edit-table textarea{min-width:76px;border-radius:8px;padding:8px;font-size:12px}.edit-table textarea{min-width:240px}.edit-table .mini{min-width:58px}.edit-table .num{min-width:88px}.edit-table .code-input{min-width:112px;font-weight:800}.sticky-actions{position:sticky;bottom:0;background:#fff;border-top:1px solid var(--line);padding-top:14px;margin-top:14px}.status-review{background:#fff4db;color:#8c5d00}@media(max-width:900px){.edit-grid{grid-template-columns:1fr 1fr}}@media(max-width:620px){.edit-grid{grid-template-columns:1fr}.review-page{width:94vw}}
.compact-review .section-title{align-items:flex-start}.compact-review .section-title .form-actions{justify-content:flex-end}.inline-edit{cursor:pointer;border-radius:7px;display:inline-block;min-height:20px;min-width:18px;padding:2px 3px;transition:background .12s,box-shadow .12s}.inline-edit:hover{background:#eef6fd;box-shadow:0 0 0 2px #d7e9f9}.inline-edit.dirty{background:#fff4db}.inline-editor{width:100%;min-width:70px;border:1px solid var(--primary);border-radius:8px;padding:7px 8px;background:#fff;box-shadow:0 0 0 3px rgba(15,108,189,.12);font:inherit;color:var(--ink)}.inline-editor-textarea{min-width:220px;min-height:80px;resize:vertical}.inline-review-table td:nth-child(7){min-width:260px}.inline-review-table .inline-edit{white-space:pre-wrap}.soft-sticky-actions{border-top:0;background:linear-gradient(180deg,rgba(255,255,255,.8),#fff)}.save-hint{font-size:13px;color:#8c5d00;font-weight:700}.editable-grid strong .inline-edit{font-weight:800}.editable-grid>div{position:relative}.editable-grid>div:after{content:'double-click to edit';position:absolute;right:12px;top:10px;font-size:10px;color:#aab5c4;opacity:0;transition:opacity .12s}.editable-grid>div:hover:after{opacity:1}@media(max-width:700px){.compact-review .section-title{gap:14px;flex-direction:column}.compact-review .section-title .form-actions{width:100%}.compact-review .section-title .button{flex:1}.inline-review-table{min-width:1200px}}
.carrier-nationality-required{background:#fff1f1!important;box-shadow:inset 0 0 0 2px #d92d20}.carrier-nationality-required>span,.carrier-nationality-required>strong{color:#9b1c1c}

/* Review-only HS tariff reference lines. Not exported to Excel. */
.item-with-tariff td{border-bottom:0;padding-bottom:8px}
.tariff-reference-row td{border-top:0;padding-top:0;background:#fff;border-bottom:1px solid var(--line)}
.tariff-reference-row td:first-child{border-bottom:1px solid var(--line)}
.tariff-reference{margin:0 0 14px 0;color:#40506a;font-weight:650;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:12px;line-height:1.45;text-transform:none;max-width:980px}
.tariff-reference strong{color:var(--ink);font-weight:800}
.tariff-reference .tariff-desc{white-space:normal;text-transform:uppercase;letter-spacing:.01em}
.tariff-reference .tariff-rates{margin-top:4px;color:#68758a}
.tariff-reference .tariff-rates span{color:#c0cad8;margin:0 6px}
.tariff-reference-row.permit-reference-row td{padding-top:12px!important}.permit-review-message,.permit-matched-message{margin:0 0 5px;font-size:11px;font-weight:750;letter-spacing:.01em;text-transform:none}.tariff-reference .permit-review-message{color:#b42318!important;background:transparent!important;border:0!important;padding:0}.tariff-reference .permit-matched-message{color:#17633a!important;background:transparent!important;border:0!important;border-left:0!important;box-shadow:none!important;padding:0}

/* v37 HS tariff reference visual fix - review only, not exported */
.item-with-tariff td{border-bottom:0!important;}
.tariff-reference-row td{border-top:0!important;background:#fff!important;border-bottom:1px solid #e4e9f1!important;padding-top:0!important;padding-bottom:16px!important;}
.tariff-reference-row td:nth-child(2){padding-left:12px!important;}
.tariff-reference{margin:0!important;color:#40506a!important;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;font-size:12px!important;font-weight:650!important;line-height:1.45!important;text-transform:none!important;max-width:980px!important;}
.tariff-reference,.tariff-reference *{color:inherit!important;}
.tariff-reference strong{color:#12233f!important;font-weight:800!important;}
.review-page{--review-tariff-value:#40506a;--review-tariff-separator:#c0cad8;}
.tariff-reference .tariff-desc{color:var(--review-tariff-value,#40506a)!important;white-space:normal!important;text-transform:uppercase!important;letter-spacing:.01em!important;}
.tariff-reference .tariff-rates{margin-top:4px!important;color:#68758a!important;}
.tariff-reference .tariff-rates span{color:var(--review-tariff-separator,#c0cad8)!important;margin:0 6px!important;}
.tariff-reference .tariff-rates span[data-tariff-unit],.tariff-reference .tariff-rates span[data-tariff-mfn],.tariff-reference .tariff-rates span[data-tariff-safta],.tariff-reference .tariff-rates span[data-tariff-cmfta],.tariff-reference .tariff-rates span[data-tariff-mtpta]{color:var(--review-tariff-value,#40506a)!important;}
.review-item-procedure .procedure-combined-divider{color:var(--review-tariff-separator,#c0cad8)!important;}

/* v46 dashboard/create cleanup and logo branding */
.brand-logo{width:54px;height:54px;object-fit:contain;display:block;filter:drop-shadow(0 5px 10px rgba(18,35,63,.10))}.brand{min-width:260px}.login-logo{width:96px;height:96px;object-fit:contain;display:block;background:rgba(255,255,255,.94);border-radius:24px;padding:6px;box-shadow:0 18px 35px rgba(0,0,0,.18)}.field-help{font-weight:500;color:var(--muted);font-size:12px;line-height:1.45}.button.danger{background:#fff0ef;color:#b42318;border:1px solid #f3c9c5}.button.danger:hover{background:#ffe2df}.action-cell{display:flex;gap:8px;align-items:center;white-space:nowrap}.action-cell form{margin:0}.danger-zone{margin-top:20px;border-color:#f3c9c5;background:linear-gradient(135deg,#fff,#fff7f6)}.status-unknown{background:#eef2f7;color:#53627a}@media(max-width:620px){.brand-logo{width:44px;height:44px}.login-logo{width:76px;height:76px}.action-cell{align-items:flex-start;flex-direction:column}.action-cell .button{width:100%}}


/* v47 logo sizing hard fix */
.topbar .brand{height:76px;max-height:76px;overflow:hidden;align-items:center!important;}
.topbar .brand-logo, header.topbar a.brand img.brand-logo{width:48px!important;height:48px!important;max-width:48px!important;max-height:48px!important;min-width:48px!important;min-height:48px!important;object-fit:contain!important;display:block!important;flex:0 0 48px!important;position:static!important;}
.login-brand .login-logo{width:96px!important;height:96px!important;max-width:96px!important;max-height:96px!important;object-fit:contain!important;position:static!important;}
@media(max-width:620px){.topbar .brand-logo, header.topbar a.brand img.brand-logo{width:42px!important;height:42px!important;max-width:42px!important;max-height:42px!important;min-width:42px!important;min-height:42px!important;flex-basis:42px!important;}}

/* v48 user permissions and admin controls */
.limit-form{display:flex;gap:8px;align-items:center;margin:0}.mini-limit-input{max-width:88px;padding:8px 9px;border-radius:9px}.admin-grid{grid-template-columns:minmax(320px,360px) 1fr}.permission-note{font-size:12px;color:var(--muted)}


/* v49 admin users UI polish */
.admin-users-card .table-wrap{overflow:auto;}
.admin-users-table{min-width:920px;}
.admin-users-table th,.admin-users-table td{vertical-align:middle!important;padding:18px 12px!important;line-height:1.28;}
.admin-users-table th{white-space:nowrap;}
.admin-users-table .table-sub{line-height:1.25;margin-top:4px;}
.admin-users-table .role-cell{font-weight:700;color:var(--ink);}
.admin-users-table .center-cell{text-align:center;font-weight:800;font-size:16px;}
.admin-users-table .last-login-cell{line-height:1.25;white-space:normal;min-width:118px;}
.admin-users-table .limit-cell{min-width:180px;}
.limit-form{display:flex!important;gap:12px!important;align-items:center!important;justify-content:flex-start!important;margin:0!important;white-space:nowrap;}
.mini-limit-input{width:92px!important;min-width:92px!important;max-width:92px!important;height:46px!important;padding:10px 13px!important;border-radius:14px!important;text-align:center!important;font-weight:850!important;font-size:15px!important;line-height:1!important;}
.mini-limit-input::-webkit-outer-spin-button,.mini-limit-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0;}
.mini-limit-input[type=number]{-moz-appearance:textfield;appearance:textfield;}
.limit-form .button{height:46px!important;min-width:86px!important;padding:10px 18px!important;border-radius:14px!important;}
.admin-users-table .action-cell{align-items:center!important;gap:10px!important;}
.admin-users-table .button.small{height:44px!important;min-width:86px!important;border-radius:14px!important;font-size:13px!important;}
.user-menu small{text-transform:capitalize;}
@media(max-width:900px){.admin-users-table{min-width:980px;}.mini-limit-input{width:96px!important;min-width:96px!important;}.limit-form .button{min-width:90px!important;}}

/* v57/v59 contacts + general segment additions */
.contacts-admin-grid{grid-template-columns:minmax(320px,440px) minmax(0,1fr);}
.contacts-card .table-wrap{overflow:auto;}
.contacts-table{min-width:860px;}
.contacts-table th,.contacts-table td{vertical-align:middle!important;padding:16px 12px!important;}
.contacts-table .code-cell{font-weight:800;color:var(--ink);letter-spacing:.03em;white-space:nowrap;}
.table-pre{margin:0;font:inherit;white-space:pre-wrap;color:var(--muted);line-height:1.3;}
.contacts-table .action-cell{align-items:center!important;gap:10px!important;}
.contacts-table .button.small{height:44px!important;min-width:86px!important;border-radius:14px!important;font-size:13px!important;}
.form-card textarea{width:100%;border:1px solid #cbd7e8;border-radius:14px;padding:12px 14px;font:inherit;resize:vertical;background:white;color:var(--ink);}
@media(max-width:900px){.contacts-admin-grid{grid-template-columns:1fr;}.contacts-table{min-width:900px;}}


/* v59 contacts declarant cleanup */
.contacts-admin-grid .form-card label{gap:8px;}
.contacts-table td,.contacts-table th{text-align:left;}
.contacts-table .code-cell{text-align:center;}


/* v60 contacts inline declarant edit */
.contacts-table .declarant-edit-cell{min-width:190px!important;}
.inline-declarant-form{display:flex!important;align-items:center!important;gap:10px!important;margin:0!important;white-space:nowrap!important;}
.inline-declarant-form .mini-code-input{width:110px!important;min-width:110px!important;height:44px!important;padding:9px 12px!important;border-radius:14px!important;text-align:center!important;font-weight:850!important;letter-spacing:.04em!important;text-transform:uppercase!important;}
.inline-declarant-form .button.small{height:44px!important;min-width:74px!important;padding:8px 14px!important;}
@media(max-width:900px){.contacts-table .declarant-edit-cell{min-width:210px!important;}.inline-declarant-form .mini-code-input{width:120px!important;min-width:120px!important;}}


/* v61 contacts compact inline declarant edit */
.contacts-table .declarant-edit-cell{min-width:150px!important;}
.inline-declarant-form{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;margin:0!important;white-space:nowrap!important;}
.inline-declarant-form .mini-code-input.compact-code-input{width:86px!important;min-width:86px!important;height:34px!important;padding:5px 8px!important;border-radius:10px!important;text-align:center!important;font-size:14px!important;font-weight:850!important;letter-spacing:.03em!important;text-transform:uppercase!important;line-height:1!important;}
.inline-declarant-form .compact-save-button{width:34px!important;min-width:34px!important;height:34px!important;padding:0!important;border-radius:10px!important;font-size:16px!important;font-weight:900!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;}
.contacts-table th,.contacts-table td{vertical-align:middle!important;}
@media(max-width:900px){.contacts-table .declarant-edit-cell{min-width:160px!important;}.inline-declarant-form .mini-code-input.compact-code-input{width:92px!important;min-width:92px!important;}}

/* v64 combined uploaded documents PDF download */
.documents-download-form{margin:0;}
.documents-section-title{align-items:center!important;gap:18px;}
.button.outline-red{background:#fff!important;color:#ff2f2f!important;border:3px solid #101010!important;box-shadow:none!important;text-transform:uppercase;letter-spacing:.02em;min-width:190px;justify-content:center;}
.button.outline-red:hover{background:#fff5f5!important;color:#d91f1f!important;}
.select-all-documents{display:inline-flex;align-items:center;gap:10px;margin:4px 0 12px 0;font-weight:800;color:var(--ink);cursor:pointer;}
.select-all-documents input,.document-choice input{width:18px;height:18px;accent-color:#1776c8;flex:0 0 auto;}
.selectable-documents li{padding:0!important;}
.document-choice{display:flex;align-items:center;gap:16px;width:100%;padding:18px 20px;cursor:pointer;}
.document-choice .file-icon{flex:0 0 auto;}
.document-meta{display:flex;flex-direction:column;gap:4px;min-width:0;}
.document-download-note{margin:12px 0 0 0;font-size:13px;}
@media(max-width:700px){.documents-section-title{align-items:flex-start!important;flex-direction:column;}.button.outline-red{width:100%;}}

/* v65 fixed uploaded-document checkbox layout and stale cache selection */
.documents-download-form .documents-section-title{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;}
.documents-download-form .document-download-button{min-width:190px!important;height:56px!important;border-radius:18px!important;font-size:18px!important;}
.documents-download-form .document-download-button:disabled,.documents-download-form .document-download-button.is-disabled{background:#c9c9c9!important;color:#1f1f1f!important;border-color:#c9c9c9!important;cursor:not-allowed!important;}
.button.is-disabled[aria-disabled="true"]{background:#b8c1ce!important;color:#fff!important;cursor:not-allowed!important;pointer-events:none}.unit-mismatch-cell{background:transparent!important;box-shadow:none!important;border-left:0!important}.unit-mismatch-value{color:#b42318!important;font-weight:800!important;text-decoration-line:underline!important;text-decoration-color:#b42318!important;text-decoration-thickness:2px!important;text-underline-offset:3px!important}.unit-compatible-cell{background:#fff8e6!important;box-shadow:inset 3px 0 0 #b7791f}.unit-validation-message{margin-top:6px;font-size:11px;font-weight:800;letter-spacing:.02em}.tariff-reference .unit-validation-incompatible{color:#b42318!important;font-weight:850;background:transparent!important}.tariff-reference .unit-validation-incompatible::before{content:'⚠ ';color:#b42318}.unit-validation-compatible{color:#8c5d00}.unit-mismatch-row>td:first-child{box-shadow:none!important;border-left:0!important}.unit-compatible-row>td:first-child{box-shadow:inset 3px 0 0 #d69e2e}
.documents-download-form .select-all-documents{display:flex!important;grid-template-columns:none!important;grid-auto-flow:column!important;align-items:center!important;justify-content:flex-start!important;gap:12px!important;width:max-content!important;max-width:100%!important;margin:4px 0 12px 0!important;font-weight:850!important;line-height:1.2!important;}
.documents-download-form .selectable-documents{display:grid!important;gap:14px!important;margin:0!important;padding:0!important;}
.documents-download-form .selectable-documents li{display:block!important;padding:0!important;border:1px solid var(--line)!important;border-radius:14px!important;overflow:hidden!important;}
.documents-download-form .document-choice{display:flex!important;grid-template-columns:none!important;align-items:center!important;justify-content:flex-start!important;gap:16px!important;width:100%!important;padding:18px 20px!important;margin:0!important;line-height:1.25!important;}
.documents-download-form .select-all-documents input,.documents-download-form .document-choice input{display:inline-block!important;width:22px!important;min-width:22px!important;max-width:22px!important;height:22px!important;min-height:22px!important;max-height:22px!important;padding:0!important;margin:0!important;box-shadow:none!important;border-radius:5px!important;accent-color:#1776c8!important;flex:0 0 22px!important;}
.documents-download-form .document-choice .file-icon{width:58px!important;height:58px!important;min-width:58px!important;flex:0 0 58px!important;}
.documents-download-form .document-meta{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:4px!important;min-width:0!important;}
.documents-download-form .document-meta strong{display:block!important;word-break:break-word!important;}
.documents-download-form .document-meta small{display:block!important;margin:0!important;}
@media(max-width:700px){.documents-download-form .documents-section-title{align-items:flex-start!important;flex-direction:column!important;}.documents-download-form .document-download-button{width:100%!important;}}

/* v73 smarter courier/post slip brand recognition plus BL/AWB/HAWB/MAWB detection */
.documents-download-form .document-type-badge{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:max-content!important;max-width:100%!important;padding:4px 10px!important;border-radius:999px!important;background:#eaf4ff!important;color:#176cba!important;font-size:11px!important;font-weight:900!important;letter-spacing:.08em!important;text-transform:uppercase!important;line-height:1!important;margin-bottom:2px!important;}
.documents-download-form .document-meta strong{text-transform:uppercase!important;}
.documents-download-form .document-meta small{line-height:1.35!important;}

/* v81 contacts declarant autosave: text-style display, double-click to edit */
.contacts-table .declarant-edit-cell{min-width:120px!important;text-align:center!important;}
.contacts-table .declarant-value{display:inline-block;font-weight:850;color:var(--ink);letter-spacing:.04em;text-transform:uppercase;padding:4px 0;border-radius:0;cursor:text;line-height:1.25;}
.contacts-table .declarant-value:hover{color:var(--blue);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:5px;}
.contacts-table .autosave-status{display:block;min-height:16px;margin-top:3px;font-size:11px;font-weight:800;color:var(--muted);letter-spacing:.03em;text-transform:uppercase;}
.contacts-table .declarant-inline-input{width:92px;max-width:110px;border:0;border-bottom:2px solid var(--blue);background:transparent;box-shadow:none;outline:none;border-radius:0;padding:3px 2px;text-align:center;font-size:16px;font-weight:850;color:var(--ink);letter-spacing:.04em;text-transform:uppercase;line-height:1.25;}
.contacts-table .declarant-inline-input.input-error{border-bottom-color:#dc2626;color:#991b1b;}
.contacts-table .saving-declarant .declarant-inline-input{opacity:.7;}
.contacts-table .inline-declarant-form,.contacts-table .compact-save-button{display:none!important;}



/* v91 contacts declarant alignment */
.contacts-table th:nth-child(3),
.contacts-table td.declarant-edit-cell{
  text-align:left!important;
}
.contacts-table td.declarant-edit-cell{
  min-width:150px!important;
  padding-left:12px!important;
  padding-right:12px!important;
}
.contacts-table .declarant-value{
  display:inline-block!important;
  min-width:82px;
  text-align:left!important;
}
.contacts-table .declarant-inline-input{
  text-align:left!important;
  width:96px!important;
  max-width:120px!important;
}
.contacts-table .autosave-status{
  text-align:left!important;
}

/* v92 contacts page: compact searchable list + clean declarant alignment */
.contacts-admin-grid{
  align-items:start!important;
  grid-template-columns:minmax(320px,440px) minmax(0,1fr)!important;
}
.contacts-card{
  position:relative;
}
.contacts-tools{
  margin:4px 0 14px!important;
  display:grid!important;
  gap:7px!important;
}
.contacts-search-label{
  font-size:12px!important;
  font-weight:850!important;
  letter-spacing:.07em!important;
  text-transform:uppercase!important;
  color:var(--muted)!important;
}
.contacts-search-input{
  height:48px!important;
  border-radius:14px!important;
  font-weight:800!important;
  letter-spacing:.03em!important;
  text-transform:uppercase!important;
}
.contacts-table-shell{
  position:relative!important;
  overflow:auto!important;
  transition:max-height .2s ease!important;
}
.contacts-table-shell.contacts-table-collapsed{
  max-height:430px!important;
  overflow:hidden!important;
}
.contacts-table-shell.contacts-table-expanded,
.contacts-table-shell.contacts-searching{
  max-height:none!important;
  overflow:auto!important;
}
.contacts-table-shell.contacts-table-collapsed::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:54px;
  pointer-events:none;
  background:linear-gradient(to bottom, rgba(255,255,255,0), var(--surface));
}
.contacts-table{
  min-width:820px!important;
  table-layout:fixed!important;
}
.contacts-table th,
.contacts-table td{
  height:72px!important;
  padding:14px 12px!important;
  vertical-align:middle!important;
}
.contacts-table th:nth-child(1){width:38%!important;}
.contacts-table th:nth-child(2){width:16%!important;}
.contacts-table th:nth-child(3){width:17%!important;}
.contacts-table th:nth-child(4){width:15%!important;}
.contacts-table th:nth-child(5){width:14%!important;}
.contacts-table th:nth-child(6),
.contacts-table td.action-cell{display:none!important;}

/* Vehicle details stay separate from the compact SAD item grid. */
.vehicle-link-badge,.vehicle-count-badge{display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border-radius:999px;background:#eaf3ff;color:#1457a6;font-weight:800;font-size:12px;text-decoration:none;white-space:nowrap}
.vehicle-status-matched{background:#e9f7ef;color:#176b3a}
.vehicle-status-required,.vehicle-status-partial{background:#fff4df;color:#8b570d}
.vehicle-status-too_many{background:#feeeee;color:#a12b2b}
.vehicle-details-section{padding-top:20px!important}
.vehicle-details-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:14px}
.vehicle-heading-copy{min-width:0}
.vehicle-heading-line{display:flex;align-items:center;gap:10px;margin-top:2px}
.vehicle-heading-line h2{margin:0}
.vehicle-status-line{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;margin-top:7px;color:#68758a;font-size:13px;font-weight:700}
.vehicle-validation{font-weight:850;white-space:nowrap}
.vehicle-validation-ok{color:#176b3a}
.vehicle-validation-warning{color:#9a5b09}
.vehicle-ready-status{padding-left:14px;border-left:1px solid #d8e0eb}
.vehicle-header-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:8px}
.vehicle-header-actions .button{white-space:nowrap}
.vehicle-warning{display:flex;align-items:center;gap:12px;margin:10px 0;padding:10px 12px;border:1px solid #f1d69f;border-radius:10px;background:#fff9ed;color:#80500d;font-size:13px}
.vehicle-item-group{border:1px solid #dfe6ef;border-radius:14px;margin:12px 0;overflow:hidden}
.vehicle-item-group>summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:12px 15px;background:#f8fafc;color:#18263d;list-style-position:outside}
.vehicle-group-main{display:grid;gap:3px;min-width:0;flex:1}
.vehicle-group-main small{font-size:10px;letter-spacing:.09em;color:#718096;font-weight:850}
.vehicle-group-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.vehicle-group-metrics{display:flex;align-items:center;justify-content:flex-end;gap:14px;white-space:nowrap;color:#68758a;font-size:12px;font-weight:750}
.vehicle-group-badge{padding:4px 8px;border-radius:999px;font-weight:850}
.vehicle-group-badge.matched{background:#e9f7ef;color:#176b3a}
.vehicle-group-badge.mismatch{background:#feeeee;color:#a12b2b}
.vehicle-group-warning{padding:8px 15px;background:#fff4f2;color:#982e2e;font-size:12px;font-weight:750;border-top:1px solid #f3d2cd}
.vehicle-table-wrap{border-top:1px solid #e5eaf1}
.vehicle-table{min-width:1120px;table-layout:auto}
.vehicle-table th{font-size:11px;white-space:nowrap}
.vehicle-table td{vertical-align:top;padding:8px}
.vehicle-table input:not([type="hidden"]){width:100%;min-width:78px;padding:7px 8px;border:1px solid #d5deea;border-radius:7px;background:#fff;font-size:12px}
.vehicle-inline-edit{display:block;min-height:20px;padding:2px 3px;border-radius:5px}
.vehicle-inline-edit:hover,.vehicle-cell-secondary.inline-edit:hover{background:#edf4ff}
.vehicle-cell-secondary{display:block;margin-top:3px;color:#68758a;font-size:11px}
.vehicle-code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.vehicle-table td:nth-child(3) input,.vehicle-table td:nth-child(4) input{min-width:175px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.vehicle-table td:nth-child(2) input+input,.vehicle-secondary-inputs{margin-top:5px}
.vehicle-secondary-inputs{display:grid;grid-template-columns:70px minmax(90px,1fr);gap:5px}
.vehicle-table label{display:flex;align-items:center;gap:5px;margin-top:5px;color:#718096;font-size:10px;font-weight:800}
.vehicle-input-short{max-width:64px!important;min-width:52px!important}
.vehicle-row-menu{position:relative}
.vehicle-row-menu>summary{display:grid;place-items:center;width:30px;height:28px;border:1px solid #d7e0eb;border-radius:8px;cursor:pointer;font-size:20px;line-height:1;list-style:none;background:#fff;color:#45546a}
.vehicle-row-menu>summary::-webkit-details-marker{display:none}
.vehicle-row-menu[open]{display:grid;gap:4px;min-width:82px}
.vehicle-row-menu button{border:0;background:transparent;padding:5px 7px;text-align:left;border-radius:6px;font-size:12px;cursor:pointer}
.vehicle-row-menu button:hover{background:#eef3f8}
.vehicle-row-menu .vehicle-delete{color:#a12b2b}
@media (max-width:900px){.vehicle-details-header{display:grid}.vehicle-header-actions{justify-content:flex-start}.vehicle-item-group>summary{align-items:flex-start}.vehicle-group-metrics{flex-wrap:wrap;justify-content:flex-start}.vehicle-group-main strong{white-space:normal}.vehicle-ready-status{padding-left:0;border-left:0}}
.contacts-table .code-cell,
.contacts-table th:nth-child(2),
.contacts-table th:nth-child(3){
  text-align:left!important;
}
.contacts-table td.declarant-edit-cell{
  position:relative!important;
  display:table-cell!important;
  min-width:0!important;
  padding-left:12px!important;
  padding-right:12px!important;
  text-align:left!important;
  vertical-align:middle!important;
}
.contacts-table .declarant-value{
  display:inline-block!important;
  min-width:0!important;
  padding:0!important;
  margin:0!important;
  line-height:1!important;
  vertical-align:middle!important;
  text-align:left!important;
  font-weight:850!important;
  letter-spacing:.04em!important;
}
.contacts-table .declarant-inline-input{
  display:inline-block!important;
  width:88px!important;
  height:28px!important;
  padding:0 1px 3px!important;
  margin:0!important;
  border:0!important;
  border-bottom:2px solid var(--primary)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  text-align:left!important;
  font-size:16px!important;
  line-height:1!important;
}
.contacts-table .autosave-status{
  position:absolute!important;
  left:12px!important;
  top:calc(50% + 14px)!important;
  display:block!important;
  min-height:0!important;
  margin:0!important;
  line-height:1!important;
  font-size:10px!important;
  text-align:left!important;
  white-space:nowrap!important;
}
.contacts-table tr.is-hidden-by-contact-search{
  display:none!important;
}
.contacts-expand-row{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin-top:14px!important;
}
.contacts-count-note{
  color:var(--muted)!important;
  font-size:13px!important;
  font-weight:750!important;
}
.contacts-expand-button{
  min-width:112px!important;
  height:42px!important;
  border-radius:14px!important;
}
@media(max-width:900px){
  .contacts-admin-grid{grid-template-columns:1fr!important;}
  .contacts-table{min-width:820px!important;}
  .contacts-table-shell.contacts-table-collapsed{max-height:420px!important;}
}

/* v93 contacts/users UI cleanup */
.contacts-table-simple{
  min-width:620px!important;
}
.contacts-table-simple th,
.contacts-table-simple td{
  height:72px!important;
  vertical-align:middle!important;
}
.contacts-table-simple th:nth-child(1){width:48%!important;}
.contacts-table-simple th:nth-child(2){width:22%!important;}
.contacts-table-simple th:nth-child(3){width:30%!important;}
.contacts-table-simple .code-cell,
.contacts-table-simple th:nth-child(2),
.contacts-table-simple th:nth-child(3){
  text-align:left!important;
}
.contacts-table-simple td.declarant-edit-cell{
  display:table-cell!important;
  padding-top:14px!important;
  padding-bottom:14px!important;
  vertical-align:middle!important;
}
.contacts-table-simple .declarant-value{
  line-height:1.25!important;
  vertical-align:baseline!important;
}
.contacts-table-simple .autosave-status{
  top:calc(50% + 13px)!important;
}

.admin-users-table .limit-cell{
  min-width:132px!important;
  position:relative!important;
  text-align:left!important;
  font-weight:850!important;
  letter-spacing:.03em!important;
}
.admin-users-table .limit-value{
  display:inline-block!important;
  padding:0!important;
  margin:0!important;
  color:var(--ink)!important;
  cursor:text!important;
  line-height:1.25!important;
}
.admin-users-table .limit-value:hover{
  color:var(--primary)!important;
  text-decoration:underline!important;
  text-decoration-thickness:2px!important;
  text-underline-offset:5px!important;
}
.admin-users-table .limit-inline-input{
  width:84px!important;
  height:28px!important;
  border:0!important;
  border-bottom:2px solid var(--primary)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  outline:none!important;
  padding:0 1px 3px!important;
  font-size:16px!important;
  font-weight:850!important;
  color:var(--ink)!important;
  text-align:left!important;
}
.admin-users-table .limit-save-status{
  display:block!important;
  position:absolute!important;
  left:12px!important;
  top:calc(50% + 16px)!important;
  font-size:10px!important;
  font-weight:850!important;
  letter-spacing:.05em!important;
  text-transform:uppercase!important;
  color:var(--muted)!important;
  white-space:nowrap!important;
}
.admin-users-table .limit-save-status.status-error{
  color:var(--danger)!important;
}
.user-actions-cell{
  min-width:136px!important;
  position:relative!important;
}
.user-action-dropdown{
  position:relative!important;
  display:inline-block!important;
}
.user-action-dropdown summary{
  list-style:none!important;
  cursor:pointer!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
}
.user-action-dropdown summary::-webkit-details-marker{display:none!important;}
.user-action-dropdown .action-dropdown-button::after{
  content:'▾';
  font-size:11px;
  line-height:1;
  margin-left:2px;
}
.user-action-dropdown[open] .action-dropdown-button::after{
  content:'▴';
}
.user-action-menu{
  position:absolute!important;
  right:0!important;
  top:calc(100% + 8px)!important;
  min-width:170px!important;
  padding:8px!important;
  border:1px solid var(--line)!important;
  border-radius:16px!important;
  background:var(--surface)!important;
  box-shadow:0 18px 45px rgba(18,35,63,.16)!important;
  z-index:20!important;
}
.user-action-menu form{margin:0!important;}
.dropdown-action{
  width:100%!important;
  border:0!important;
  background:transparent!important;
  padding:10px 12px!important;
  border-radius:11px!important;
  text-align:left!important;
  font-weight:800!important;
  color:var(--ink)!important;
  cursor:pointer!important;
}
.dropdown-action:hover{background:#f3f7fc!important;color:var(--primary)!important;}
.dropdown-action.danger-text{color:var(--danger)!important;}
.dropdown-action.danger-text:hover{background:#fff1f0!important;}
@media(max-width:900px){
  .contacts-table-simple{min-width:620px!important;}
  .admin-users-table .limit-cell{min-width:120px!important;}
}


/* v94 users dropdown overflow fix */
.admin-users-card{
  overflow:visible!important;
}
.admin-users-card .table-wrap{
  overflow:visible!important;
}
.admin-users-table{
  min-width:0!important;
  width:100%!important;
  table-layout:fixed!important;
}
.admin-users-table th,
.admin-users-table td{
  overflow:visible!important;
}
.admin-users-table th:nth-child(1),
.admin-users-table td:nth-child(1){width:25%!important;}
.admin-users-table th:nth-child(2),
.admin-users-table td:nth-child(2){width:8%!important;}
.admin-users-table th:nth-child(3),
.admin-users-table td:nth-child(3){width:10%!important;}
.admin-users-table th:nth-child(4),
.admin-users-table td:nth-child(4){width:9%!important;}
.admin-users-table th:nth-child(5),
.admin-users-table td:nth-child(5){width:10%!important;}
.admin-users-table th:nth-child(6),
.admin-users-table td:nth-child(6){width:22%!important;}
.admin-users-table th:nth-child(7),
.admin-users-table td:nth-child(7){width:16%!important;}
.user-actions-cell{
  overflow:visible!important;
  z-index:2!important;
}
.user-action-dropdown[open]{
  z-index:50!important;
}
.user-action-menu{
  top:auto!important;
  bottom:calc(100% + 8px)!important;
  right:0!important;
  z-index:999!important;
}
.user-action-menu::after{
  content:"";
  position:absolute;
  right:26px;
  bottom:-7px;
  width:12px;
  height:12px;
  background:var(--surface);
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  transform:rotate(45deg);
}
@media(max-width:900px){
  .admin-users-card .table-wrap{overflow-x:auto!important;overflow-y:visible!important;}
  .admin-users-table{min-width:920px!important;table-layout:auto!important;}
  .user-action-menu{top:calc(100% + 8px)!important;bottom:auto!important;}
}

/* v95 users/contacts final UI fixes */
.users-admin-grid{
  grid-template-columns:1fr!important;
}
.admin-users-card{
  overflow:visible!important;
}
.admin-users-card .table-wrap{
  overflow:visible!important;
  max-width:100%!important;
}
.admin-users-table{
  width:100%!important;
  min-width:0!important;
  table-layout:fixed!important;
}
.admin-users-table th,
.admin-users-table td{
  padding:18px 12px!important;
  vertical-align:middle!important;
  overflow:visible!important;
}
.admin-users-table th{
  white-space:normal!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
  line-height:1.18!important;
  font-size:11px!important;
  letter-spacing:.09em!important;
}
.admin-users-table th:nth-child(1),
.admin-users-table td:nth-child(1){width:24%!important;}
.admin-users-table th:nth-child(2),
.admin-users-table td:nth-child(2){width:8%!important;}
.admin-users-table th:nth-child(3),
.admin-users-table td:nth-child(3){width:10%!important;}
.admin-users-table th:nth-child(4),
.admin-users-table td:nth-child(4){width:11%!important;text-align:center!important;}
.admin-users-table th:nth-child(5),
.admin-users-table td:nth-child(5){width:11%!important;text-align:center!important;}
.admin-users-table th:nth-child(6),
.admin-users-table td:nth-child(6){width:19%!important;}
.admin-users-table th:nth-child(7),
.admin-users-table td:nth-child(7){width:17%!important;text-align:left!important;}
.admin-users-table .limit-cell{
  min-width:0!important;
  text-align:center!important;
}
.admin-users-table .limit-save-status{
  left:50%!important;
  transform:translateX(-50%)!important;
}
.user-actions-cell{
  position:relative!important;
  overflow:visible!important;
  z-index:3!important;
}
.user-action-dropdown{
  position:relative!important;
  display:inline-block!important;
}
.user-action-dropdown[open]{z-index:1000!important;}
.user-action-dropdown .action-dropdown-button{
  min-width:118px!important;
  height:44px!important;
  padding:0 18px!important;
  border:1px solid #aeb7c4!important;
  border-radius:6px!important;
  background:#f2f3f5!important;
  color:#2f3540!important;
  font-size:16px!important;
  font-weight:500!important;
  box-shadow:0 1px 2px rgba(18,35,63,.12)!important;
}
.user-action-dropdown .action-dropdown-button::after{
  content:''!important;
  margin-left:0!important;
}
.user-action-dropdown summary::after{
  content:'▾'!important;
  font-size:13px!important;
  line-height:1!important;
  margin-left:2px!important;
  color:#2f3540!important;
}
.user-action-dropdown[open] summary::after{
  content:'▴'!important;
}
.user-action-menu{
  top:calc(100% + 6px)!important;
  bottom:auto!important;
  right:0!important;
  min-width:230px!important;
  padding:0!important;
  border:1px solid #9aa4b2!important;
  border-radius:4px!important;
  background:#f4f5f6!important;
  box-shadow:0 10px 24px rgba(18,35,63,.22)!important;
  overflow:hidden!important;
  z-index:2000!important;
}
.user-action-menu::after{display:none!important;}
.dropdown-action{
  display:block!important;
  width:100%!important;
  padding:14px 20px!important;
  border-radius:0!important;
  border-bottom:1px solid #cfd5dd!important;
  background:#f4f5f6!important;
  color:#2f3540!important;
  font-size:16px!important;
  font-weight:500!important;
  text-align:left!important;
}
.user-action-menu form:last-child .dropdown-action{border-bottom:0!important;}
.dropdown-action:hover{background:#e7ebf0!important;color:#111827!important;}
.dropdown-action.danger-text{color:#b42318!important;}
.dropdown-action.danger-text:hover{background:#ffe9e7!important;color:#991b1b!important;}

.contacts-table-simple{
  min-width:720px!important;
}
.contacts-table-simple th:nth-child(1){width:42%!important;}
.contacts-table-simple th:nth-child(2){width:18%!important;}
.contacts-table-simple th:nth-child(3){width:22%!important;}
.contacts-table-simple th:nth-child(4){width:18%!important;}
.contacts-table-simple th:nth-child(4),
.contacts-table-simple td.contact-actions-cell{
  display:table-cell!important;
  text-align:left!important;
}
.contacts-table-simple td.contact-actions-cell{
  vertical-align:middle!important;
}
.contact-delete-form{
  margin:0!important;
}
.contact-delete-button{
  border:1px solid #f3c9c5!important;
  background:#fff7f6!important;
  color:#b42318!important;
  border-radius:12px!important;
  height:38px!important;
  min-width:78px!important;
  padding:0 14px!important;
  font-size:13px!important;
  font-weight:850!important;
  cursor:pointer!important;
}
.contact-delete-button:hover{
  background:#ffe4e1!important;
}
@media(max-width:900px){
  .users-admin-grid{grid-template-columns:1fr!important;}
  .admin-users-card .table-wrap{overflow-x:auto!important;overflow-y:visible!important;}
  .admin-users-table{min-width:980px!important;table-layout:auto!important;}
  .admin-users-table th{white-space:nowrap!important;}
  .user-action-menu{top:calc(100% + 6px)!important;bottom:auto!important;}
  .contacts-table-simple{min-width:760px!important;}
}


/* v96 users table header spacing fix */
.admin-users-card .table-wrap{
  overflow:visible!important;
  width:100%!important;
}
.admin-users-table{
  table-layout:fixed!important;
  width:100%!important;
  min-width:0!important;
}
.admin-users-table th,
.admin-users-table td{
  box-sizing:border-box!important;
}
.admin-users-table th{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  letter-spacing:.075em!important;
  line-height:1.18!important;
}
.admin-users-table .users-head-break{
  display:inline-block!important;
  white-space:normal!important;
  line-height:1.15!important;
  min-width:72px!important;
}
.admin-users-table th:nth-child(1),
.admin-users-table td:nth-child(1){width:27%!important;}
.admin-users-table th:nth-child(2),
.admin-users-table td:nth-child(2){width:8%!important;}
.admin-users-table th:nth-child(3),
.admin-users-table td:nth-child(3){width:10%!important;}
.admin-users-table th:nth-child(4),
.admin-users-table td:nth-child(4){width:11%!important;text-align:center!important;}
.admin-users-table th:nth-child(5),
.admin-users-table td:nth-child(5){width:11%!important;text-align:center!important;}
.admin-users-table th:nth-child(6),
.admin-users-table td:nth-child(6){width:20%!important;}
.admin-users-table th:nth-child(7),
.admin-users-table td:nth-child(7){width:13%!important;text-align:left!important;}
.admin-users-table th:nth-child(4),
.admin-users-table th:nth-child(5){
  text-align:center!important;
}
.admin-users-table th:nth-child(6){
  padding-left:18px!important;
}
.admin-users-table td.last-login-cell{
  white-space:nowrap!important;
  min-width:0!important;
}
.admin-users-table .user-actions-cell{
  min-width:0!important;
}
.user-action-dropdown .action-dropdown-button{
  min-width:110px!important;
}
@media(max-width:900px){
  .admin-users-card .table-wrap{overflow-x:auto!important;overflow-y:visible!important;}
  .admin-users-table{min-width:980px!important;table-layout:fixed!important;}
}


/* v97 compact create user dropdown and action menu sizing */
.create-user-card{
  padding:0!important;
  overflow:visible!important;
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
}
.create-user-details{
  display:block!important;
}
.create-user-summary{
  list-style:none!important;
  cursor:pointer!important;
  padding:0!important;
  margin:0!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  background:transparent!important;
  border:none!important;
  outline:none!important;
}
.create-user-summary::-webkit-details-marker{display:none!important;}
.create-user-summary::marker{content:''!important;font-size:0!important;color:transparent!important;}
.create-user-toggle{
  flex:0 0 auto!important;
  min-width:230px!important;
  height:48px!important;
  border-radius:13px!important;
}
.create-user-toggle::after{
  content:'▾'!important;
  margin-left:10px!important;
  font-size:13px!important;
}
.create-user-details[open] .create-user-toggle::after{
  content:'▴'!important;
}
.create-user-form{
  border:1px solid var(--line)!important;
  margin-top:16px!important;
  padding:24px 28px 28px!important;
  box-shadow:none!important;
  border-radius:18px!important;
  background:#fbfdff!important;
}
.create-user-form-intro{
  display:grid!important;
  gap:4px!important;
}
.create-user-form-intro h2{
  margin:0!important;
  font-size:24px!important;
  letter-spacing:-.03em!important;
}
.create-user-form-intro .muted{
  margin:0!important;
  line-height:1.35!important;
}
.create-user-form.form-card{
  display:grid!important;
  gap:18px!important;
}
.create-user-form input,
.create-user-form select{
  min-height:46px!important;
}
.admin-users-table th:nth-child(1),
.admin-users-table td:nth-child(1){width:28%!important;}
.admin-users-table th:nth-child(2),
.admin-users-table td:nth-child(2){width:8%!important;}
.admin-users-table th:nth-child(3),
.admin-users-table td:nth-child(3){width:10%!important;}
.admin-users-table th:nth-child(4),
.admin-users-table td:nth-child(4){width:10%!important;text-align:center!important;}
.admin-users-table th:nth-child(5),
.admin-users-table td:nth-child(5){width:10%!important;text-align:center!important;}
.admin-users-table th:nth-child(6),
.admin-users-table td:nth-child(6){width:21%!important;}
.admin-users-table th:nth-child(7),
.admin-users-table td:nth-child(7){width:13%!important;text-align:left!important;}
.user-action-dropdown .action-dropdown-button{
  min-width:110px!important;
  width:110px!important;
  height:42px!important;
  padding:0 12px!important;
  justify-content:center!important;
}
.user-action-menu{
  min-width:110px!important;
  width:110px!important;
  right:0!important;
}
.dropdown-action{
  font-size:14px!important;
  padding:12px 12px!important;
  white-space:nowrap!important;
}
.current-user-label{
  display:inline-flex!important;
  align-items:center!important;
  min-height:42px!important;
  color:var(--muted)!important;
  font-weight:700!important;
  white-space:nowrap!important;
}
@media(max-width:900px){
  .create-user-summary{align-items:flex-start!important;flex-direction:column!important;}
  .create-user-toggle{width:100%!important;min-width:0!important;}
  .create-user-form .form-grid.two{grid-template-columns:1fr!important;}
}


/* v100: real button-only create user toggle, no details marker or collapsed white card */
.create-user-card{
  padding:0!important;
  margin:0 0 24px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.create-user-card::before,
.create-user-card::after,
.create-user-summary,
.create-user-details{
  display:none!important;
}
.create-user-toggle{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:auto!important;
  min-width:230px!important;
  max-width:max-content!important;
  height:52px!important;
  padding:0 24px!important;
  margin:0!important;
  border-radius:14px!important;
}
.create-user-toggle::before,
.create-user-toggle::after{
  content:none!important;
  display:none!important;
}
.create-user-form[hidden]{
  display:none!important;
}
.create-user-form{
  margin-top:18px!important;
  border:1px solid var(--line)!important;
  border-radius:22px!important;
  background:#fbfdff!important;
  padding:24px 28px 28px!important;
}


/* v109: uploaded document type correction + learning */
.document-choice-editable{
  display:flex!important;
  align-items:center!important;
  gap:18px!important;
  width:100%!important;
}
.document-select-wrap{
  display:flex!important;
  align-items:center!important;
  gap:18px!important;
  cursor:pointer!important;
}
.document-type-row{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:10px!important;
  margin-bottom:6px!important;
}
.document-type-correct-form{
  margin:0!important;
  display:inline-flex!important;
}
.document-type-correct-form select{
  height:32px!important;
  border:1px solid var(--line)!important;
  border-radius:999px!important;
  background:#fff!important;
  color:var(--ink)!important;
  font-weight:800!important;
  font-size:12px!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
  padding:0 30px 0 12px!important;
  max-width:230px!important;
}
.document-type-correct-form select:focus{
  outline:2px solid rgba(23,113,196,.25)!important;
  border-color:#1771c4!important;
}
@media (max-width: 760px){
  .document-choice-editable{align-items:flex-start!important;}
  .document-type-correct-form select{max-width:180px!important;}
}


/* v110: cleaner uploaded document actions + staged document-type corrections */
.document-choice-editable{
  position:relative!important;
  align-items:center!important;
}
.document-choice-editable .document-meta{
  flex:1 1 auto!important;
}
.document-actions{
  margin-left:auto!important;
  flex:0 0 auto!important;
  position:relative!important;
}
.document-action-dropdown{
  position:relative!important;
  display:inline-block!important;
}
.document-action-dropdown summary{
  list-style:none!important;
  cursor:pointer!important;
  display:inline-flex!important;
}
.document-action-dropdown summary::-webkit-details-marker{display:none!important;}
.document-action-dropdown .action-dropdown-button{
  min-width:112px!important;
  height:44px!important;
  border-radius:14px!important;
  border:3px solid #101010!important;
  background:#fff!important;
  color:#111!important;
  font-size:15px!important;
  font-weight:750!important;
  text-transform:none!important;
  letter-spacing:0!important;
}
.document-action-dropdown .action-dropdown-button::after{
  content:'▾'!important;
  margin-left:8px!important;
  font-size:10px!important;
}
.document-action-dropdown[open] .action-dropdown-button::after{
  content:'▴'!important;
}
.document-action-menu{
  position:absolute!important;
  right:0!important;
  top:calc(100% + 8px)!important;
  width:112px!important;
  min-width:112px!important;
  padding:6px!important;
  border:1px solid var(--line)!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 18px 45px rgba(18,35,63,.16)!important;
  z-index:50!important;
}
.document-action-menu .dropdown-action{
  width:100%!important;
  border:0!important;
  background:transparent!important;
  padding:9px 10px!important;
  border-radius:10px!important;
  text-align:left!important;
  font-size:14px!important;
  font-weight:800!important;
  color:var(--ink)!important;
  cursor:pointer!important;
}
.document-action-menu .dropdown-action:hover{background:#f3f7fc!important;color:var(--primary)!important;}
.document-action-menu .danger-text{color:var(--danger)!important;}
.document-type-inline-select{
  height:32px!important;
  border:1px solid var(--line)!important;
  border-radius:999px!important;
  background:#fff!important;
  color:var(--ink)!important;
  font-weight:900!important;
  font-size:12px!important;
  letter-spacing:.08em!important;
  text-transform:uppercase!important;
  padding:0 30px 0 12px!important;
  max-width:260px!important;
}
.document-type-inline-select.is-editing{
  display:inline-flex!important;
}
.editable-document-type.is-pending-change{
  background:#fff6dc!important;
  color:#8a5b00!important;
}
.document-row.is-pending-remove{
  opacity:.48!important;
}
.document-row.is-pending-remove .document-choice{
  border:2px dashed #efb0aa!important;
  background:#fff8f7!important;
}
.document-pending-note{
  color:#9a6500!important;
  font-weight:800!important;
}
.document-view-modal[hidden]{display:none!important;}
.document-view-modal{
  position:fixed!important;
  inset:0!important;
  z-index:9999!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:24px!important;
}
.document-view-backdrop{
  position:absolute!important;
  inset:0!important;
  background:rgba(15,30,52,.58)!important;
}
.document-view-panel{
  position:relative!important;
  width:min(1000px,94vw)!important;
  height:min(820px,88vh)!important;
  background:#fff!important;
  border-radius:22px!important;
  box-shadow:0 30px 90px rgba(0,0,0,.3)!important;
  overflow:hidden!important;
  z-index:1!important;
}
.document-view-panel iframe{
  width:100%!important;
  height:100%!important;
  border:0!important;
  background:#fff!important;
}
.document-view-close{
  position:absolute!important;
  top:10px!important;
  right:12px!important;
  width:42px!important;
  height:42px!important;
  border:0!important;
  border-radius:999px!important;
  background:#11203a!important;
  color:#fff!important;
  font-size:28px!important;
  line-height:1!important;
  cursor:pointer!important;
  z-index:2!important;
}
@media (max-width:760px){
  .document-choice-editable{align-items:flex-start!important;}
  .document-actions{position:absolute!important;right:14px!important;top:14px!important;}
  .document-meta{padding-right:124px!important;}
  .document-type-inline-select{max-width:190px!important;}
}


/* v111: restore compact uploaded-document row layout while keeping Action/Edit/View/Remove */
.documents-download-form .selectable-documents{
  display:grid!important;
  gap:14px!important;
}
.documents-download-form .selectable-documents li.document-row{
  display:block!important;
  padding:0!important;
  border:1px solid var(--line)!important;
  border-radius:14px!important;
  overflow:visible!important;
}
.documents-download-form .document-choice.document-choice-editable{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:18px!important;
  width:100%!important;
  min-height:104px!important;
  padding:18px 20px!important;
  margin:0!important;
  text-align:left!important;
}
.documents-download-form .document-select-wrap{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:18px!important;
  flex:0 0 auto!important;
  width:auto!important;
  margin:0!important;
}
.documents-download-form .document-select-wrap .document-checkbox{
  position:static!important;
  flex:0 0 22px!important;
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  min-height:22px!important;
  margin:0!important;
}
.documents-download-form .document-select-wrap .file-icon{
  flex:0 0 68px!important;
  width:68px!important;
  height:68px!important;
  margin:0!important;
}
.documents-download-form .document-choice-editable .document-meta{
  flex:1 1 auto!important;
  min-width:0!important;
  width:auto!important;
  max-width:none!important;
  padding:0!important;
  margin:0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  text-align:left!important;
}
.documents-download-form .document-type-row{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  width:auto!important;
  max-width:100%!important;
  margin:0 0 6px 0!important;
  text-align:left!important;
}
.documents-download-form .editable-document-type,
.documents-download-form .document-type-badge{
  flex:0 0 auto!important;
  margin:0!important;
}
.documents-download-form .document-type-inline-select{
  display:none!important;
  width:260px!important;
  min-width:220px!important;
  max-width:260px!important;
  height:32px!important;
  margin:0!important;
  flex:0 0 260px!important;
}
.documents-download-form .document-type-inline-select.is-editing{
  display:inline-block!important;
}
.documents-download-form .document-display-name,
.documents-download-form .document-meta strong{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  text-align:left!important;
  word-break:break-word!important;
}
.documents-download-form .document-meta small{
  display:block!important;
  width:100%!important;
  text-align:left!important;
}
.documents-download-form .document-pending-note{
  font-size:12px!important;
  line-height:1.35!important;
  margin-top:2px!important;
}
.documents-download-form .document-actions{
  position:relative!important;
  right:auto!important;
  top:auto!important;
  margin-left:auto!important;
  flex:0 0 auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
}
.documents-download-form .document-action-dropdown summary{
  list-style:none!important;
  list-style-type:none!important;
  margin:0!important;
  padding:0!important;
}
.documents-download-form .document-action-dropdown summary::marker{
  content:''!important;
  font-size:0!important;
  color:transparent!important;
}
.documents-download-form .document-action-dropdown summary::-webkit-details-marker{
  display:none!important;
}
.documents-download-form .document-action-dropdown .action-dropdown-button{
  min-width:112px!important;
  width:112px!important;
  height:44px!important;
  margin:0!important;
}
.documents-download-form .document-action-menu{
  width:112px!important;
  min-width:112px!important;
  max-width:112px!important;
}
@media (max-width:760px){
  .documents-download-form .document-choice.document-choice-editable{
    flex-direction:row!important;
    align-items:center!important;
    gap:14px!important;
    min-height:104px!important;
    padding:16px!important;
  }
  .documents-download-form .document-select-wrap{
    flex-direction:row!important;
    align-items:center!important;
    gap:12px!important;
  }
  .documents-download-form .document-select-wrap .file-icon{
    flex-basis:60px!important;
    width:60px!important;
    height:60px!important;
  }
  .documents-download-form .document-actions{
    position:relative!important;
    right:auto!important;
    top:auto!important;
    margin-left:auto!important;
  }
  .documents-download-form .document-action-dropdown .action-dropdown-button{
    width:96px!important;
    min-width:96px!important;
  }
  .documents-download-form .document-action-menu{
    width:96px!important;
    min-width:96px!important;
    max-width:96px!important;
  }
  .documents-download-form .document-type-inline-select{
    width:220px!important;
    min-width:180px!important;
    max-width:220px!important;
    flex-basis:220px!important;
  }
}


/* v112: force compact uploaded-document design and ensure latest CSS wins */
.documents-download-form .document-list.selectable-documents > .document-row{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
}
.documents-download-form .document-row > .document-choice.document-choice-editable{
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  width:100%!important;
  max-width:100%!important;
  min-height:104px!important;
  gap:18px!important;
  padding:18px 20px!important;
  box-sizing:border-box!important;
}
.documents-download-form .document-select-wrap{
  display:flex!important;
  flex-flow:row nowrap!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:18px!important;
  flex:0 0 auto!important;
  width:auto!important;
  max-width:none!important;
  padding:0!important;
  margin:0!important;
}
.documents-download-form .document-meta{
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:center!important;
  flex:1 1 auto!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  padding:0!important;
  margin:0!important;
  text-align:left!important;
}
.documents-download-form .document-actions{
  flex:0 0 auto!important;
  margin-left:auto!important;
  align-self:center!important;
}
.documents-download-form .document-type-inline-select[hidden]{
  display:none!important;
}
.documents-download-form .document-type-inline-select.is-editing{
  display:inline-block!important;
  width:260px!important;
  max-width:260px!important;
}
.document-action-menu a.dropdown-action{
  display:block!important;
  text-decoration:none!important;
  box-sizing:border-box!important;
}
.document-modal-open{
  overflow:hidden!important;
}
@media (max-width:760px){
  .documents-download-form .document-row > .document-choice.document-choice-editable{
    flex-flow:row nowrap!important;
    align-items:center!important;
  }
}


/* v115: Authorised users Action dropdown cleanup */
.admin-users-card,
.admin-users-card .table-wrap,
.admin-users-table,
.admin-users-table tbody,
.admin-users-table tr,
.admin-users-table td{
  overflow:visible!important;
}
.admin-users-table tbody tr{
  position:relative!important;
  z-index:1!important;
}
.admin-users-table tbody tr.is-action-menu-open,
.admin-users-table tbody tr:has(.user-action-dropdown[open]){
  z-index:9999!important;
}
.admin-users-table tbody tr.is-action-menu-open td,
.admin-users-table tbody tr:has(.user-action-dropdown[open]) td{
  position:relative!important;
  z-index:9999!important;
}
.admin-users-table .user-actions-cell{
  position:relative!important;
  overflow:visible!important;
  z-index:10000!important;
}
.user-action-dropdown{
  position:relative!important;
  display:inline-block!important;
  z-index:1!important;
}
.user-action-dropdown[open]{
  z-index:10001!important;
}
.user-action-dropdown summary{
  list-style:none!important;
  list-style-type:none!important;
  margin:0!important;
  padding:0!important;
}
.user-action-dropdown summary::marker{
  content:''!important;
  color:transparent!important;
  font-size:0!important;
}
.user-action-dropdown summary::-webkit-details-marker{
  display:none!important;
}
.user-action-dropdown .action-dropdown-button{
  width:118px!important;
  min-width:118px!important;
  max-width:118px!important;
  height:44px!important;
  justify-content:center!important;
  padding:0 12px!important;
}
.user-action-menu{
  position:absolute!important;
  top:calc(100% + 8px)!important;
  bottom:auto!important;
  right:0!important;
  width:118px!important;
  min-width:118px!important;
  max-width:118px!important;
  padding:6px!important;
  border:1px solid #aeb7c4!important;
  border-radius:8px!important;
  background:#ffffff!important;
  box-shadow:0 18px 42px rgba(18,35,63,.28)!important;
  overflow:hidden!important;
  z-index:10002!important;
  opacity:1!important;
  isolation:isolate!important;
}
.user-action-menu::before,
.user-action-menu::after{
  display:none!important;
  content:none!important;
}
.user-action-menu form{
  margin:0!important;
}
.user-action-menu .dropdown-action,
.user-action-menu button.dropdown-action{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  padding:10px 8px!important;
  border:0!important;
  border-radius:6px!important;
  background:#ffffff!important;
  color:#1f2937!important;
  font-size:14px!important;
  font-weight:800!important;
  line-height:1.15!important;
  text-align:left!important;
  white-space:nowrap!important;
}
.user-action-menu .dropdown-action:hover{
  background:#f1f5f9!important;
  color:#0f172a!important;
}
.user-action-menu .dropdown-action.danger-text{
  color:#b42318!important;
}
.user-action-menu .dropdown-action.danger-text:hover{
  background:#fff1f0!important;
  color:#9f1c14!important;
}
.current-user-label{
  position:relative!important;
  z-index:1!important;
}


/* v116: Authorised users menu opens upward to avoid covering the next row/current-user text */
.admin-users-card,
.admin-users-card .table-wrap{
  overflow:visible!important;
}
.admin-users-table{
  overflow:visible!important;
  border-collapse:separate!important;
  border-spacing:0!important;
}
.admin-users-table tbody tr{
  position:relative!important;
}
.admin-users-table tbody tr:has(.user-action-dropdown[open]),
.admin-users-table tbody tr.is-action-menu-open{
  z-index:10000!important;
}
.admin-users-table .user-actions-cell{
  position:relative!important;
  overflow:visible!important;
}
.user-action-dropdown[open]{
  z-index:10001!important;
}
.user-action-menu{
  top:auto!important;
  bottom:calc(100% + 8px)!important;
  right:0!important;
  width:118px!important;
  min-width:118px!important;
  max-width:118px!important;
  background:#fff!important;
  border:1px solid #aeb7c4!important;
  border-radius:8px!important;
  box-shadow:0 18px 42px rgba(18,35,63,.28)!important;
  z-index:10002!important;
}
.current-user-label{
  z-index:0!important;
}
.user-action-menu .dropdown-action{
  background:#fff!important;
}
@media(max-width:900px){
  .user-action-menu{
    top:auto!important;
    bottom:calc(100% + 8px)!important;
  }
}


/* v118: Broker menu and broker tool pages */
.topbar nav .nav-dropdown{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
}
.nav-dropdown-button{
  border:0!important;
  background:transparent!important;
  color:#40506a!important;
  font-weight:650!important;
  font-size:14px!important;
  cursor:pointer!important;
  padding:0!important;
  font-family:inherit!important;
}
.nav-dropdown-button::after{
  content:'▾'!important;
  font-size:10px!important;
  margin-left:6px!important;
}
.nav-dropdown-menu{
  position:absolute!important;
  top:calc(100% + 16px)!important;
  left:0!important;
  min-width:250px!important;
  padding:8px!important;
  border:1px solid var(--line)!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 22px 55px rgba(18,35,63,.18)!important;
  display:none!important;
  z-index:50!important;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu{
  display:grid!important;
  gap:3px!important;
}
.topbar nav .nav-dropdown-menu a{
  display:block!important;
  padding:10px 12px!important;
  border-radius:10px!important;
  color:var(--ink)!important;
  font-size:13px!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
.topbar nav .nav-dropdown-menu a:hover{
  background:#eef6ff!important;
  color:var(--primary)!important;
}
.nav-dropdown-label{
  display:block!important;
  padding:10px 12px 4px!important;
  color:var(--muted)!important;
  font-size:10px!important;
  font-weight:900!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
  border-top:1px solid var(--line)!important;
  margin-top:5px!important;
}
.broker-grid{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:18px!important;
}
.broker-card{
  padding:24px!important;
  display:grid!important;
  gap:14px!important;
  align-content:start!important;
}
.broker-card h2{
  margin:0!important;
  font-size:24px!important;
  letter-spacing:-.03em!important;
}
.broker-card p{
  margin:0!important;
  color:var(--muted)!important;
}
.broker-pill{
  width:max-content!important;
  display:inline-flex!important;
  align-items:center!important;
  padding:6px 12px!important;
  border-radius:999px!important;
  background:#eaf4ff!important;
  color:var(--primary)!important;
  font-size:11px!important;
  font-weight:900!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
}
.broker-placeholder h2{
  margin-top:0!important;
}
.broker-placeholder-box{
  margin-top:18px!important;
  padding:22px!important;
  border:1px dashed #b8c7da!important;
  border-radius:18px!important;
  background:#f8fbff!important;
  display:grid!important;
  gap:6px!important;
}
.broker-placeholder-box span{
  color:var(--muted)!important;
}
@media (max-width:900px){
  .broker-grid{
    grid-template-columns:1fr!important;
  }
  .topbar nav{
    gap:14px!important;
  }
  .nav-dropdown-menu{
    left:auto!important;
    right:0!important;
  }
}


/* v119: Broker menu click-stable dropdown */
.topbar nav details.nav-dropdown{
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  height:auto!important;
}
.topbar nav details.nav-dropdown summary.nav-dropdown-button{
  list-style:none!important;
  list-style-type:none!important;
  display:inline-flex!important;
  align-items:center!important;
  color:#40506a!important;
  font-weight:650!important;
  font-size:14px!important;
  cursor:pointer!important;
  padding:0!important;
  user-select:none!important;
}
.topbar nav details.nav-dropdown summary.nav-dropdown-button::-webkit-details-marker{
  display:none!important;
}
.topbar nav details.nav-dropdown summary.nav-dropdown-button::marker{
  content:''!important;
  font-size:0!important;
}
.topbar nav details.nav-dropdown summary.nav-dropdown-button::after{
  content:'▾'!important;
  font-size:10px!important;
  margin-left:6px!important;
}
.topbar nav details.nav-dropdown[open] summary.nav-dropdown-button::after{
  content:'▴'!important;
}
.topbar nav details.nav-dropdown .nav-dropdown-menu{
  position:absolute!important;
  top:calc(100% + 8px)!important;
  left:0!important;
  min-width:260px!important;
  padding:8px!important;
  border:1px solid var(--line)!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 22px 55px rgba(18,35,63,.18)!important;
  display:none!important;
  z-index:500!important;
}
.topbar nav details.nav-dropdown[open] .nav-dropdown-menu,
.topbar nav details.nav-dropdown:hover .nav-dropdown-menu,
.topbar nav details.nav-dropdown:focus-within .nav-dropdown-menu{
  display:grid!important;
  gap:3px!important;
}
.topbar nav details.nav-dropdown .nav-dropdown-menu a{
  display:block!important;
  padding:10px 12px!important;
  border-radius:10px!important;
  color:var(--ink)!important;
  font-size:13px!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
.topbar nav details.nav-dropdown .nav-dropdown-menu a:hover{
  background:#eef6ff!important;
  color:var(--primary)!important;
}
.topbar nav details.nav-dropdown .nav-dropdown-label{
  display:block!important;
  padding:10px 12px 4px!important;
  color:var(--muted)!important;
  font-size:10px!important;
  font-weight:900!important;
  letter-spacing:.12em!important;
  text-transform:uppercase!important;
  border-top:1px solid var(--line)!important;
  margin-top:5px!important;
}
@media (max-width:900px){
  .topbar nav details.nav-dropdown .nav-dropdown-menu{
    left:auto!important;
    right:0!important;
  }
}


/* v132: Broker form filler */
.broker-form-page{width:min(1120px,92vw)!important;}
.broker-form-card{gap:26px!important;}
.broker-form-section{display:grid!important;gap:16px!important;padding-bottom:22px!important;border-bottom:1px solid var(--line)!important;}
.broker-form-section:last-of-type{border-bottom:0!important;padding-bottom:0!important;}
.compact-title{margin-bottom:0!important;}
.compact-title h2{margin:0 0 4px!important;}
.broker-form-card textarea{min-height:72px!important;}
.broker-form-actions{border-top:1px solid var(--line)!important;padding-top:20px!important;}
.broker-form-actions .button{min-width:190px!important;}
@media(max-width:760px){.broker-form-actions{flex-direction:column!important;}.broker-form-actions .button{width:100%!important;}}


/* v133: Broker ID auto-fill and MCS-102 form filler */
.broker-id-upload-card{margin-bottom:20px!important;gap:14px!important;}
.broker-id-upload-row{display:flex!important;align-items:center!important;gap:14px!important;flex-wrap:wrap!important;}
.broker-id-upload-row input[type="file"]{flex:1 1 340px!important;padding:14px!important;border:1px dashed #b8c7da!important;border-radius:16px!important;background:#f8fbff!important;font-weight:800!important;color:var(--ink)!important;}
.manual-badge{display:inline-flex!important;margin-left:6px!important;padding:2px 8px!important;border-radius:999px!important;background:#fff3d7!important;color:#8a5a00!important;font-size:10px!important;font-weight:900!important;text-transform:uppercase!important;letter-spacing:.08em!important;}
.small-note{font-size:13px!important;margin:0!important;}
@media(max-width:760px){.broker-id-upload-row{align-items:stretch!important;}.broker-id-upload-row .button{width:100%!important;}}


/* v135: broker form required-field cleanup */
.broker-form-page .manual-badge{
  display:none!important;
}
.broker-form-page input:required::placeholder,
.broker-form-page textarea:required::placeholder{
  color:#9aa6b8;
}



/* v151 compact centered live backend SAD generation progress */
.sad-progress-modal[hidden] { display: none; }
.sad-progress-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 20px; }
.sad-progress-backdrop { position: absolute; inset: 0; background: rgba(8, 18, 32, .58); backdrop-filter: blur(2px); }
.sad-progress-loader { position: relative; width: min(520px, calc(100vw - 32px)); padding: 25px 34px 26px; border-radius: 15px; background: #fff; box-shadow: 0 22px 70px rgba(0,0,0,.30); }
.sad-progress-topline { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 16px; }
.sad-progress-spinner { width: 48px; height: 48px; border: 7px dotted #2f75df; border-radius: 50%; animation: sad-progress-spin 1s linear infinite; }
@keyframes sad-progress-spin { to { transform: rotate(360deg); } }
.sad-progress-loader h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.025em; color: #12233f; }
.sad-progress-loader #sad-progress-percent { font-size: 1.55rem; color: #2f6edb; }
.sad-progress-loader p { margin: 5px 0 18px 74px; min-height: 20px; color: #52617a; font-size: .94rem; }
.sad-progress-track { width: 100%; height: 12px; overflow: hidden; border-radius: 999px; background: #e6ebf2; }
.sad-progress-fill { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#2f75df,#2367d1); transition: width .35s ease; }
.sad-progress-error { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: rgba(225,45,57,.1); color: #b42318; text-align: left; font-size: .9rem; overflow-wrap: anywhere; }
.sad-progress-loader .button { display: block; margin: 14px auto 0; }
body.sad-progress-open { overflow: hidden; }
@media (max-width: 560px) {
  .sad-progress-loader { padding: 22px 20px 23px; }
  .sad-progress-topline { grid-template-columns: 46px 1fr auto; gap: 10px; }
  .sad-progress-spinner { width: 40px; height: 40px; border-width: 6px; }
  .sad-progress-loader h2, .sad-progress-loader #sad-progress-percent { font-size: 1.2rem; }
  .sad-progress-loader p { margin-left: 56px; font-size: .84rem; }
}
/* v162 — Smart Cargo Portal Option B foundation */
:root{
  --portal-sidebar:#071a2f;
  --portal-sidebar-soft:#0c2745;
  --portal-accent:#1f7bd8;
  --portal-accent-soft:#eaf3fd;
  --portal-canvas:#f4f7fb;
}
body{background:var(--portal-canvas)}
.portal-sidebar{position:fixed;inset:0 auto 0 0;width:252px;background:linear-gradient(180deg,#071a2f 0%,#08213b 100%);color:#fff;z-index:30;display:flex;flex-direction:column;padding:24px 16px 18px;box-shadow:18px 0 45px rgba(7,26,47,.08)}
.portal-brand{display:flex;align-items:center;gap:12px;color:#fff;padding:0 10px 25px;border-bottom:1px solid rgba(255,255,255,.1)}
.portal-brand img{width:44px;height:44px;object-fit:contain;filter:drop-shadow(0 8px 14px rgba(0,0,0,.22))}
.portal-brand span{display:flex;flex-direction:column;min-width:0}.portal-brand strong{font-size:16px;letter-spacing:-.01em}.portal-brand small{font-size:11px;color:#9cb3ca;margin-top:3px;letter-spacing:.04em;text-transform:uppercase}
.portal-nav{display:flex;flex-direction:column;gap:5px;overflow-y:auto;padding:20px 0;flex:1}.portal-nav-label{font-size:10px;text-transform:uppercase;letter-spacing:.13em;color:#708ba5;font-weight:850;padding:14px 13px 7px}
.portal-nav-link{display:flex;align-items:center;gap:12px;min-height:44px;padding:10px 12px;border-radius:11px;color:#bfd0df;font-size:14px;font-weight:720;cursor:pointer;transition:.18s ease;list-style:none}.portal-nav-link::-webkit-details-marker{display:none}.portal-nav-link:hover{background:rgba(255,255,255,.07);color:#fff}.portal-nav-link.is-active{background:linear-gradient(135deg,#1974ca,#2689e8);color:#fff;box-shadow:0 10px 24px rgba(19,105,188,.3)}
.portal-nav-icon{width:22px;height:22px;border-radius:7px;display:grid;place-items:center;font-size:17px;line-height:1}.portal-nav-chevron{margin-left:auto;font-size:22px;transition:transform .18s}.portal-nav-group[open] .portal-nav-chevron{transform:rotate(90deg)}
.portal-nav-submenu{display:grid;gap:3px;padding:5px 0 8px 46px}.portal-nav-submenu a{color:#91aac1;font-size:12px;font-weight:700;padding:7px 8px;border-radius:8px}.portal-nav-submenu a:hover{background:rgba(255,255,255,.06);color:#fff}
.portal-sidebar-footer{display:grid;grid-template-columns:38px minmax(0,1fr) 32px;align-items:center;gap:10px;padding:16px 8px 0;border-top:1px solid rgba(255,255,255,.1)}.portal-user-avatar{width:38px;height:38px;border-radius:12px;background:#1f7bd8;display:grid;place-items:center;font-weight:900}.portal-user-copy{display:flex;flex-direction:column;min-width:0}.portal-user-copy strong{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.portal-user-copy small{font-size:10px;color:#8fa8bf;margin-top:3px}.portal-signout{width:32px;height:32px;border:0;border-radius:9px;background:rgba(255,255,255,.07);color:#bdd0df;cursor:pointer;font-size:17px}.portal-signout:hover{background:rgba(255,255,255,.14);color:#fff}
.portal-topbar{position:fixed;left:252px;right:0;top:0;height:70px;background:rgba(255,255,255,.94);backdrop-filter:blur(16px);border-bottom:1px solid #e3e9f1;z-index:20;display:flex;align-items:center;padding:0 34px;gap:16px}.portal-menu-button{display:none}.portal-topbar-title{display:flex;flex-direction:column}.portal-topbar-title strong{font-size:14px}.portal-topbar-title small{font-size:11px;color:var(--muted);margin-top:2px}.portal-quick-create{margin-left:auto;padding:10px 15px;font-size:13px}
.page{width:auto;max-width:none;margin:0;padding:104px 36px 80px 288px}.page.narrow{width:auto;max-width:1100px;margin:0;padding-left:288px}.footer{margin-left:252px;background:transparent;color:#8a97a9;padding:22px 36px;text-align:left;border-top:1px solid #e5eaf1;font-size:11px}
.portal-dashboard-page{max-width:1720px}.portal-welcome{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:26px}.portal-welcome h1{font-size:35px;letter-spacing:-.04em;margin:5px 0 7px}.portal-welcome p{margin:0;color:var(--muted)}.portal-welcome-actions{display:flex;gap:10px}
.portal-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.portal-metric-card{position:relative;overflow:hidden;display:grid;grid-template-columns:48px 1fr;align-items:center;gap:15px;background:#fff;border:1px solid #e3e9f1;border-radius:17px;padding:20px;box-shadow:0 10px 30px rgba(20,43,75,.045)}.portal-metric-card:after{content:"";position:absolute;inset:auto -22px -34px auto;width:90px;height:90px;border-radius:50%;background:currentColor;opacity:.045}.portal-metric-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;font-weight:900;font-size:20px}.portal-metric-card span{display:block;color:var(--muted);font-size:12px;font-weight:750}.portal-metric-card strong{display:block;font-size:30px;letter-spacing:-.04em;margin:3px 0}.portal-metric-card small{display:block;color:#96a1b2;font-size:10px}.metric-blue{color:#176fca}.metric-blue .portal-metric-icon{background:#eaf3fd}.metric-slate{color:#52657b}.metric-slate .portal-metric-icon{background:#edf1f5}.metric-amber{color:#b2760d}.metric-amber .portal-metric-icon{background:#fff4d9}.metric-green{color:#087a55}.metric-green .portal-metric-icon{background:#e7f7f0}
.portal-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(290px,.7fr);gap:20px;align-items:start}.portal-recent-card,.portal-quick-card,.portal-engine-card{border-radius:18px;box-shadow:0 10px 32px rgba(20,43,75,.045)}.portal-recent-card{padding:23px}.portal-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:17px}.portal-section-heading h2{font-size:19px;margin:3px 0 4px}.portal-section-heading p{font-size:12px;color:var(--muted);margin:0}.portal-section-heading.compact{margin-bottom:12px}.portal-text-link{font-size:12px;font-weight:800;padding-top:5px}
.portal-shipment-list{display:grid}.portal-shipment-row{display:grid;grid-template-columns:42px minmax(160px,1.5fr) minmax(110px,1fr) auto 80px 15px;align-items:center;gap:13px;padding:13px 4px;border-top:1px solid #edf0f5;color:var(--ink);transition:.15s}.portal-shipment-row:hover{background:#f8fbff;border-radius:12px;padding-left:10px;padding-right:10px}.portal-shipment-row:first-child{border-top:0}.portal-shipment-mark{width:38px;height:38px;border-radius:12px;background:#eaf3fd;color:#176fca;display:grid;place-items:center;font-weight:900}.portal-shipment-main,.portal-shipment-ref{display:flex;flex-direction:column;min-width:0}.portal-shipment-main strong{font-size:13px}.portal-shipment-main span,.portal-shipment-ref span{font-size:10px;color:#8996a8;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.portal-shipment-ref strong{font-size:11px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.portal-shipment-row time{font-size:10px;color:#8c98aa;text-align:right}.portal-row-arrow{font-size:23px;color:#9aa7b8}
.portal-quick-panel{display:grid;gap:18px}.portal-quick-card{padding:21px}.portal-action-tile{display:grid;grid-template-columns:39px minmax(0,1fr) 15px;align-items:center;gap:11px;color:var(--ink);padding:12px 4px;border-top:1px solid #edf0f5}.portal-action-tile:hover strong{color:var(--primary)}.portal-action-icon{width:36px;height:36px;border-radius:11px;background:#edf5fd;color:#1773cc;display:grid;place-items:center;font-size:18px;font-weight:900}.portal-action-tile>span:nth-child(2){display:flex;flex-direction:column}.portal-action-tile strong{font-size:12px}.portal-action-tile small{font-size:10px;color:#8c98aa;margin-top:3px}.portal-action-tile b{color:#9ba8b9;font-size:20px}.portal-engine-card{padding:22px;background:linear-gradient(145deg,#0a2845,#0b365d);color:#fff;border:0}.portal-engine-badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:rgba(78,190,255,.14);color:#8bd8ff;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.portal-engine-card h3{margin:14px 0 7px;font-size:18px}.portal-engine-card p{color:#a9bfd2;font-size:11px;line-height:1.55}.portal-engine-line{display:flex;justify-content:space-between;border-top:1px solid rgba(255,255,255,.1);padding-top:10px;margin-top:10px;font-size:10px;color:#9fb5c9}.portal-engine-line strong{color:#fff}
/* Existing pages inside portal shell */
.topbar{display:none!important}.page-heading{align-items:center}.page-heading h1{font-size:30px}.section-card,.form-card{box-shadow:0 10px 32px rgba(20,43,75,.045);border-radius:17px}table thead{background:#f8fafc}th{font-size:10px}.card{box-shadow:0 10px 32px rgba(20,43,75,.045)}
.portal-sidebar-backdrop{display:none}
@media(max-width:1150px){.portal-metric-grid{grid-template-columns:repeat(2,1fr)}.portal-dashboard-grid{grid-template-columns:1fr}.portal-quick-panel{grid-template-columns:1fr 1fr}.portal-shipment-row{grid-template-columns:42px minmax(150px,1.5fr) minmax(100px,1fr) auto 70px 15px}}
@media(max-width:820px){.portal-sidebar{transform:translateX(-105%);transition:transform .22s ease}.portal-sidebar.is-open{transform:translateX(0)}.portal-topbar{left:0;padding:0 18px}.portal-menu-button{display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--line);border-radius:10px;background:#fff}.page,.page.narrow{padding:94px 18px 60px;margin:0;width:auto}.footer{margin-left:0;padding:20px}.portal-sidebar-backdrop{position:fixed;inset:0;background:rgba(4,18,33,.48);z-index:25}.portal-sidebar-backdrop.is-visible{display:block}.portal-welcome{align-items:flex-start;flex-direction:column}.portal-welcome-actions{width:100%}.portal-welcome-actions .button{flex:1}.portal-dashboard-grid{grid-template-columns:1fr}.portal-quick-panel{grid-template-columns:1fr}.portal-shipment-row{grid-template-columns:40px minmax(0,1fr) auto 14px}.portal-shipment-ref,.portal-shipment-row time{display:none}}
@media(max-width:560px){.portal-metric-grid{grid-template-columns:1fr 1fr;gap:10px}.portal-metric-card{grid-template-columns:38px 1fr;padding:14px;gap:10px}.portal-metric-icon{width:36px;height:36px;border-radius:10px;font-size:16px}.portal-metric-card strong{font-size:24px}.portal-metric-card small{display:none}.portal-welcome h1{font-size:29px}.portal-topbar-title small{display:none}.portal-quick-create{font-size:0;padding:10px 13px}.portal-quick-create:after{content:"+ New";font-size:12px}.portal-shipment-row .status{font-size:9px;padding:5px 7px}}

/* v172 Shipments foundation */
.compact-welcome{margin-bottom:18px}.shipment-status-cards{display:grid;grid-template-columns:repeat(6,minmax(110px,1fr));gap:12px;margin-bottom:18px}.shipment-status-card{display:flex;align-items:center;justify-content:space-between;padding:16px;border:1px solid var(--border,#dfe5ec);border-radius:14px;background:#fff;text-decoration:none;color:inherit}.shipment-status-card span{font-size:13px;color:#64748b}.shipment-status-card strong{font-size:22px}.shipment-status-card.is-selected{box-shadow:0 0 0 2px #1f5eff inset}.shipment-filter-bar{display:grid;grid-template-columns:minmax(260px,1fr) 180px 160px auto auto;gap:10px;margin-bottom:18px}.shipment-filter-bar input,.shipment-filter-bar select,.shipment-edit-form input,.shipment-edit-form select,.shipment-edit-form textarea,.timeline-add-form input,.timeline-add-form textarea{width:100%;border:1px solid #d8e0e8;border-radius:10px;padding:11px 12px;background:#fff;font:inherit}.shipment-table td{vertical-align:middle}.table-subtext{display:block;color:#8190a3;margin-top:3px}.billing-pill{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:700;background:#eef2f7}.billing-paid{background:#dcfce7;color:#166534}.billing-billed{background:#dbeafe;color:#1e40af}.shipment-status-pending{background:#f1f5f9;color:#475569}.shipment-status-review{background:#fef3c7;color:#92400e}.shipment-status-registered{background:#dbeafe;color:#1e40af}.shipment-status-released{background:#dcfce7;color:#166534}.shipment-status-completed{background:#d1fae5;color:#065f46}.shipment-status-archived{background:#e5e7eb;color:#374151}.shipment-detail-heading{align-items:center}.shipment-heading-actions{display:flex;gap:10px;align-items:center}.shipment-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.shipment-workspace-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(320px,.8fr);gap:18px}.shipment-side-column{display:flex;flex-direction:column;gap:18px}.form-grid.two-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}.shipment-edit-form label{display:flex;flex-direction:column;gap:7px;font-weight:600;font-size:13px}.compact-document-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}.compact-document-list li{display:flex;gap:10px;align-items:center;padding:10px;border:1px solid #edf1f5;border-radius:10px}.compact-document-list strong,.compact-document-list small{display:block}.compact-document-list small{color:#7b8796;margin-top:3px}.timeline-add-form{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}.shipment-timeline{list-style:none;margin:0;padding:0 0 0 6px}.shipment-timeline li{display:grid;grid-template-columns:18px 1fr;gap:9px;position:relative;padding-bottom:16px}.shipment-timeline li:not(:last-child):before{content:"";position:absolute;left:6px;top:13px;bottom:0;width:2px;background:#e5eaf0}.timeline-dot{width:14px;height:14px;border-radius:50%;background:#2f6fed;margin-top:3px;z-index:1}.shipment-timeline p{margin:4px 0;color:#526071}.shipment-timeline small{color:#8491a1}.empty.compact{padding:20px 8px}
@media(max-width:1050px){.shipment-status-cards{grid-template-columns:repeat(3,1fr)}.shipment-filter-bar{grid-template-columns:1fr 1fr}.shipment-workspace-grid{grid-template-columns:1fr}.shipment-summary-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.shipment-status-cards,.shipment-summary-grid,.form-grid.two-columns,.shipment-filter-bar{grid-template-columns:1fr}.shipment-heading-actions{align-items:flex-start;flex-direction:column}}

/* SAD Review ASYCUDA unit selector. Keep every rule scoped so global button,
   badge and chip treatments cannot turn the menu rows into inline pills. */
.asycuda-unit-edit{font:inherit;line-height:inherit;color:inherit;letter-spacing:normal;vertical-align:baseline}
.asycuda-unit-edit.unit-code-invalid{background:#fff0ef;box-shadow:0 0 0 2px #f0a8a2}
.asycuda-unit-menu{position:fixed;z-index:10000;width:min(340px,calc(100vw - 16px));max-height:min(420px,calc(100vh - 16px));display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;background:#fff;border:1px solid #d8e0eb;border-radius:10px;box-shadow:0 14px 36px rgba(18,35,63,.22);color:#12233f}
.asycuda-unit-menu .asycuda-unit-menu-title{flex:0 0 auto;padding:9px 12px 5px;font-size:10px;font-weight:900;letter-spacing:.1em;color:#68758a}
.asycuda-unit-menu .asycuda-unit-menu-search{position:sticky;top:0;z-index:1;flex:0 0 auto;display:block;width:calc(100% - 18px);margin:4px 9px 8px;border:1px solid #cbd5e1;border-radius:8px;padding:8px 9px;background:#fff;font:inherit;color:#12233f;outline:none}
.asycuda-unit-menu .asycuda-unit-menu-search:focus{border-color:#0f6cbd;box-shadow:0 0 0 3px rgba(15,108,189,.12)}
.asycuda-unit-menu .asycuda-unit-menu-list{display:block;flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:3px 5px 7px}
.asycuda-unit-menu .asycuda-unit-menu-item{-webkit-appearance:none;appearance:none;display:grid;grid-template-columns:18px 44px minmax(0,1fr);align-items:center;width:100%;max-width:none;min-width:0;margin:0;border:0;border-radius:4px;background:transparent;padding:6px 8px;text-align:left;white-space:nowrap;font:inherit;font-size:12px;line-height:1.25;color:#40506a;cursor:pointer}
.asycuda-unit-menu .asycuda-unit-menu-item>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis}
.asycuda-unit-menu .asycuda-unit-menu-item strong{color:#12233f;letter-spacing:.04em}
.asycuda-unit-menu .asycuda-unit-menu-item:hover,.asycuda-unit-menu .asycuda-unit-menu-item:focus{background:#eef6fd;outline:none}
.asycuda-unit-menu .asycuda-unit-menu-item.is-current{background:#e6f1fb;color:#0b568f}
.asycuda-unit-menu .asycuda-unit-check{color:#0f6cbd;font-weight:900}
.asycuda-unit-menu .asycuda-unit-menu-empty{padding:18px 12px;text-align:center;color:#68758a;font-size:12px}
.sad-item-action-menu .sad-item-delete{display:block;color:var(--danger);background:#fff1f0;border:1px solid #f1c3be}
.sad-item-action-menu .sad-item-delete strong{color:var(--danger)}
.sad-item-action-menu .sad-item-delete:hover,.sad-item-action-menu .sad-item-delete:focus{color:#991b1b;background:#ffe2df;border-color:#e7a8a2}
.sad-item-action-menu .sad-item-delete:hover strong,.sad-item-action-menu .sad-item-delete:focus strong{color:#991b1b}
.sad-item-action-menu .sad-item-add{display:block;color:#17633a}
.sad-item-action-menu .sad-item-add strong{color:#17633a}
.sad-item-action-menu .sad-item-add:hover,.sad-item-action-menu .sad-item-add:focus{background:#edf9f1}
.sad-item-delete-confirmation{position:fixed;inset:0;z-index:10020;display:grid;place-items:center;padding:20px;background:rgba(7,29,54,.42)}
.sad-item-delete-confirmation-panel{width:min(440px,100%);padding:24px;background:#fff;border:1px solid #f1c3be;border-radius:16px;box-shadow:0 20px 55px rgba(18,35,63,.25)}
.sad-item-delete-confirmation-panel h2{margin:0;color:#12233f;font-size:20px;line-height:1.4}
.sad-item-delete-confirmation-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}
.sad-review-leave-dialog{position:fixed;inset:0;z-index:10040;display:grid;place-items:center;padding:20px;background:rgba(7,29,54,.42)}
.sad-review-leave-dialog[hidden]{display:none}
.sad-review-leave-panel{width:min(480px,100%);padding:24px;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 20px 55px rgba(18,35,63,.25)}
.sad-review-leave-panel h2{margin:0;color:var(--ink);font-size:20px;line-height:1.4}
.sad-review-leave-panel p{margin:12px 0 0;line-height:1.5}
.sad-review-leave-panel [data-review-leave-error]{color:var(--danger)}
.sad-review-leave-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:22px}
.sad-review-leave-actions .button{padding:10px 14px;font-size:14px}
@media(max-width:620px){.asycuda-unit-menu{width:min(300px,calc(100vw - 16px));max-height:min(420px,calc(100vh - 16px))}}

/* One visual Procedure card with two independently editable code targets. */
.review-grid strong.procedure-combined-values{display:flex;align-items:center;gap:10px;white-space:nowrap}
.review-grid .procedure-combined-values .procedure-combined-code,.review-grid .procedure-combined-values .procedure-combined-divider{display:inline-block;flex:0 0 auto;margin:0;font:inherit;color:inherit;letter-spacing:inherit;text-transform:none;vertical-align:baseline}
.review-grid .procedure-combined-values .procedure-combined-divider{pointer-events:none;user-select:none}
.review-grid .procedure-combined-values .procedure-combined-code:focus-visible{background:#eef6fd;box-shadow:0 0 0 2px #9fcbed;outline:none}

/* One monetary value card with independently editable currency and amount. */
.review-grid strong.money-combined-values{display:flex;align-items:center;gap:10px;white-space:nowrap}
.review-grid .money-combined-values .money-currency,.review-grid .money-combined-values .money-amount,.review-grid .money-combined-values .money-value-divider{display:inline-block;flex:0 0 auto;margin:0;font:inherit;color:inherit;letter-spacing:inherit;text-transform:none;vertical-align:baseline}
.review-grid .money-combined-values .money-value-divider{pointer-events:none;user-select:none}
.review-grid .money-combined-values .money-currency:focus-visible,.review-grid .money-combined-values .money-amount:focus-visible{background:#eef6fd;box-shadow:0 0 0 2px #9fcbed;outline:none}

/* SAD Review final-state presentation overrides. Kept last to win tariff/table !important rules. */
.compact-review #personal-document-field[aria-disabled="true"]:after{content:none}
.compact-review #personal-document-field [aria-disabled="true"]{color:var(--muted);cursor:not-allowed}
.compact-review #personal-document-field [aria-disabled="true"]:hover{background:none;box-shadow:none}
.compact-review .cmfta-success-message{
  color:#17633a;
  font-weight:800;
  margin:0 0 14px;
  padding:0;
  background:none;
  border:0;
  box-shadow:none;
}
.compact-review .payment-relationship-banner{margin:0 0 18px}
.compact-review .payment-relationship-banner h2{margin:0 0 6px;font-size:17px}
.compact-review .payment-relationship-banner p{margin:3px 0}
.compact-review .payment-relationship-summary{font-weight:750}
.compact-review .payment-relationship-review ul{margin:8px 0 0;padding-left:20px;color:#7a4d00}
.compact-review .tariff-reference .permit-matched-message{
  color:#17633a!important;
  background:none!important;
  border:0!important;
  border-left:0!important;
  box-shadow:none!important;
  padding:0!important;
}
.compact-review .unit-validation-item .unit-mismatch-cell{
  background:transparent!important;
  border-left:0!important;
  box-shadow:none!important;
}
.compact-review .unit-validation-item .unit-mismatch-value,
.compact-review .unit-validation-item .unit-mismatch-cell>.inline-edit{
  color:#b42318!important;
  font-weight:800!important;
  background:#fff0ef!important;
  box-shadow:0 0 0 2px #f0a8a2!important;
  text-decoration:none!important;
}
.compact-review .unit-validation-item .unit-mismatch-cell>.inline-edit:empty::before{
  content:'-';
  color:#b42318;
  text-decoration:none;
}
.compact-review .unit-validation-item .unit-mismatch-value .inline-editor,
.compact-review .unit-validation-item .unit-mismatch-cell>.inline-edit .inline-editor{
  color:#b42318!important;
  border-color:#b42318!important;
  background:#fff0ef!important;
  box-shadow:0 0 0 2px #f0a8a2!important;
}
.compact-review [data-review-save]:disabled{
  opacity:.5!important;
  cursor:not-allowed!important;
  box-shadow:none!important;
  filter:saturate(.45)!important;
}
.compact-review .requirement-badge{display:inline-flex;align-items:center;width:max-content;max-width:100%;margin:0 0 6px;padding:2px 7px;border-radius:999px;font-size:10px;font-weight:850;line-height:1.35;letter-spacing:.025em;white-space:normal}
.compact-review .requirement-badge-required{color:#7a4d00;background:#fff4db;border:1px solid #efd49a}
.compact-review .requirement-badge-verified{color:#17633a;background:#edf9f1;border:1px solid #b9dfc8}
.compact-review .requirement-badge-error{color:#b42318;background:#fff1f0;border:1px solid #f1c3be}

/* Freeze only the item-number rail, including its blank tariff-detail cell.
   Inherit row backgrounds so the rail stays opaque without losing row styling. */
.compact-review .inline-review-table tbody{
  background:var(--surface);
}
.compact-review .inline-review-table tr{
  background:inherit;
}
.compact-review .inline-review-table thead>tr>th:first-child,
.compact-review .inline-review-table tr[data-sad-item-row]>td:first-child,
.compact-review .inline-review-table tr[data-sad-item-detail-row]>td:first-child{
  position:sticky;
  left:0;
  z-index:1;
  background:inherit;
}
.compact-review .inline-review-table thead>tr>th:first-child{
  z-index:2;
}

/* A single continuous soft edge on the existing rail, including blank detail
   segments. Mask the inherited cell background so alternating rows still match. */
.compact-review .inline-review-table thead>tr>th:first-child::after,
.compact-review .inline-review-table tr[data-sad-item-row]>td:first-child::after,
.compact-review .inline-review-table tr[data-sad-item-detail-row]>td:first-child::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  right:-16px;
  width:16px;
  background:inherit;
  -webkit-mask-image:linear-gradient(to right,#000,transparent);
  mask-image:linear-gradient(to right,#000,transparent);
  opacity:0;
  pointer-events:none;
}
.compact-review .table-wrap.item-number-scrolled .inline-review-table thead>tr>th:first-child::after,
.compact-review .table-wrap.item-number-scrolled .inline-review-table tr[data-sad-item-row]>td:first-child::after,
.compact-review .table-wrap.item-number-scrolled .inline-review-table tr[data-sad-item-detail-row]>td:first-child::after{
  opacity:1;
}

/* SAD Review item-table alignment. Relative selectors keep packing columns stable with optional Vehicles. */
.compact-review .inline-review-table thead th:nth-child(-n+8),
.compact-review .inline-review-table thead th:nth-last-child(10),
.compact-review .inline-review-table thead th:nth-last-child(9),
.compact-review .inline-review-table thead th:nth-last-child(8),
.compact-review .inline-review-table thead th:nth-last-child(7),
.compact-review .inline-review-table thead th:nth-last-child(2),
.compact-review .inline-review-table thead th:last-child,
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-child(-n+8),
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-last-child(10),
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-last-child(9),
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-last-child(8),
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-last-child(7),
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-last-child(2),
.compact-review .inline-review-table tr[data-sad-item-row]>td:last-child,
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-child(-n+8) .inline-edit,
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-child(-n+8) .inline-editor,
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-last-child(10) .inline-edit,
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-last-child(10) .inline-editor,
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-last-child(9) .inline-edit,
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-last-child(9) .inline-editor,
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-last-child(8) .inline-edit,
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-last-child(8) .inline-editor,
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-last-child(7) .inline-edit,
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-last-child(7) .inline-editor,
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-last-child(2) .inline-edit,
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-last-child(2) .inline-editor,
.compact-review .inline-review-table tr[data-sad-item-row]>td:last-child .inline-edit,
.compact-review .inline-review-table tr[data-sad-item-row]>td:last-child .inline-editor{
  text-align:center;
}
.compact-review .inline-review-table thead th:nth-child(-n+8),
.compact-review .inline-review-table thead th:nth-last-child(10),
.compact-review .inline-review-table thead th:nth-last-child(9),
.compact-review .inline-review-table thead th:nth-last-child(8),
.compact-review .inline-review-table thead th:nth-last-child(7),
.compact-review .inline-review-table thead th:nth-last-child(2),
.compact-review .inline-review-table thead th:last-child{
  vertical-align:middle;
  line-height:1.15;
}
.compact-review .inline-review-table td:nth-child(7),.compact-review .inline-review-table td:nth-child(8){min-width:0;}
.compact-review .inline-review-table td:nth-child(9){min-width:260px;}
/* Keep Qty content-sized rather than sharing spare auto-table width. Tighten
   only its shared edge with Description; retain the description reading area. */
.compact-review .inline-review-table thead th:nth-child(8),
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-child(8){
  width:1%;
  white-space:nowrap;
  padding-right:6px;
}
.compact-review .inline-review-table thead th:nth-child(9),
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-child(9){
  padding-left:6px;
}
.review-item-procedure{white-space:nowrap;min-width:125px;}
.compact-review .inline-review-table thead th:nth-child(9),
.compact-review .inline-review-table thead th:nth-last-child(6),
.compact-review .inline-review-table thead th:nth-last-child(5),
.compact-review .inline-review-table thead th:nth-last-child(4),
.compact-review .inline-review-table thead th:nth-last-child(3),
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-child(9),
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-last-child(6),
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-last-child(5),
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-last-child(4),
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-last-child(3),
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-child(9) .inline-edit,
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-child(9) .inline-editor,
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-last-child(6) .inline-edit,
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-last-child(6) .inline-editor,
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-last-child(5) .inline-edit,
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-last-child(5) .inline-editor,
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-last-child(4) .inline-edit,
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-last-child(4) .inline-editor,
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-last-child(3) .inline-edit,
.compact-review .inline-review-table tr[data-sad-item-row]>td:nth-last-child(3) .inline-editor{
  text-align:left;
}

/* Alternate complete SAD item groups, keeping each item and its detail row together. */
.compact-review .inline-review-table thead{
  background:#eef3f8;
}
.compact-review .inline-review-table tbody>tr[data-sad-item-row]:nth-child(4n+1)>td,
.compact-review .inline-review-table tbody>tr[data-sad-item-row]:nth-child(4n+1)+tr[data-sad-item-detail-row]>td{
  background:#f8fafc!important;
}

/* SAD jobs table row actions. */
.jobs-table{table-layout:fixed}
.jobs-table th:nth-child(1){width:16%}.jobs-table th:nth-child(2){width:22%}.jobs-table th:nth-child(3){width:21%}.jobs-table th:nth-child(4){width:8%}.jobs-table th:nth-child(5){width:7%}.jobs-table th:nth-child(6){width:14%}.jobs-table th:nth-child(7){width:12%}
.jobs-table tr[data-job-row]{cursor:context-menu}
.jobs-table tr[data-job-row]:hover td{background:#f8fbff}
.job-row-context-menu{position:fixed;z-index:10000;width:170px;padding:5px;background:#fff;border:1px solid #d8e0eb;border-radius:10px;box-shadow:0 14px 36px rgba(18,35,63,.22)}
.job-row-menu-action{display:block;width:100%;border:0;border-radius:6px;padding:9px 10px;background:transparent;color:#40506a;text-align:left;font-size:12px;font-weight:750;cursor:pointer}
.job-row-menu-action:hover,.job-row-menu-action:focus{background:#eef6fd;outline:none}
.job-row-menu-delete{color:var(--danger)}
.job-row-menu-delete:hover,.job-row-menu-delete:focus{background:#fff1f0;color:#991b1b}
.job-delete-confirmation{position:fixed;inset:0;z-index:10020;display:grid;place-items:center;padding:20px;background:rgba(7,29,54,.42)}
.job-delete-confirmation-panel{width:min(440px,100%);padding:24px;background:#fff;border:1px solid #f1c3be;border-radius:16px;box-shadow:0 20px 55px rgba(18,35,63,.25)}
.job-delete-confirmation-panel h2{margin:0;color:#12233f;font-size:20px;line-height:1.4}
.job-delete-confirmation-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}

/* Temporary completed-SAD HS-code import preview. */
.compact-review .sad-review-item-actions{justify-content:flex-end}
.sad-hs-import-dialog{position:fixed;inset:0;z-index:10030;display:grid;place-items:center;padding:24px;background:rgba(7,29,54,.48)}
.sad-hs-import-dialog[hidden]{display:none}
.sad-hs-import-panel{width:min(980px,96vw);max-height:90vh;display:flex;flex-direction:column;gap:14px;padding:24px;background:#fff;border:1px solid #d8e0eb;border-radius:18px;box-shadow:0 24px 65px rgba(18,35,63,.28)}
.sad-hs-import-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.sad-hs-import-heading h2{margin:3px 0 0}
.sad-hs-import-summary{display:grid;grid-template-columns:repeat(8,minmax(72px,1fr));gap:8px;margin:0}.sad-hs-import-summary>div{padding:9px 10px;background:#f5f7fb;border-radius:9px;text-align:center}.sad-hs-import-summary dt{color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase}.sad-hs-import-summary dd{margin:3px 0 0;font-size:18px;font-weight:850}
.sad-hs-import-table-wrap{min-height:180px;overflow:auto;border:1px solid var(--line);border-radius:10px}.sad-hs-import-table th{position:sticky;top:0;background:#eef3f8;z-index:1}.sad-hs-import-table th,.sad-hs-import-table td{padding:8px 10px;text-align:center}.sad-hs-import-table tr[data-import-status="unresolved"] td{color:var(--danger);background:#fff1f0}.sad-hs-import-table tr[data-import-status="changed"] td:last-child{color:#8c5d00;font-weight:800}.sad-hs-import-table tr[data-import-status="unchanged"] td:last-child{color:var(--success);font-weight:800}
.sad-hs-import-actions{display:flex;justify-content:flex-end;gap:10px}
@media(max-width:760px){.sad-hs-import-summary{grid-template-columns:repeat(4,1fr)}.sad-hs-import-panel{padding:18px}}

/* Phase 1 read-only normalized transport evidence. */
.compact-review .normalized-transport-panel{border-color:#dce5ef;background:#fbfdff}
.compact-review .normalized-transport-panel .section-title{align-items:center}
.transport-evidence-version{padding:5px 9px;border-radius:999px;background:#eef3f8;color:#52627a;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.normalized-transport-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.normalized-transport-field{min-width:0;padding:11px 12px;border:1px solid #e3e9f1;border-radius:10px;background:#fff}
.normalized-transport-field>span{display:block;color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.normalized-transport-field>strong{display:block;min-height:20px;margin-top:4px;overflow-wrap:anywhere;color:#12233f;font-size:13px}
.normalized-transport-relationship{margin-top:14px;padding-top:12px;border-top:1px solid #dce5ef}
.normalized-transport-relationship h3{margin:0 0 8px;color:#33455f;font-size:12px}
.transport-evidence-status{display:block;margin-top:5px;font-size:10px;font-weight:750}.transport-evidence-confirmed{color:#17633a}.transport-evidence-review{color:#9a6700}.transport-evidence-unresolved{color:#7d899a}
.compact-review .normalized-transport-panel .normalized-transport-field{position:relative}
.compact-review .normalized-transport-panel .normalized-transport-field>span{padding-right:24px}
.compact-review .normalized-transport-panel .transport-source-info>summary{position:absolute;top:8px;right:9px;display:grid;place-items:center;width:20px;height:20px;border:1px solid #dce5ef;border-radius:50%;color:#64748b;background:#fff;font-size:11px;line-height:1;cursor:pointer;list-style:none}
.compact-review .normalized-transport-panel .transport-source-info>summary::-webkit-details-marker{display:none}
.compact-review .normalized-transport-panel .transport-source-info>summary::marker{content:''}
.compact-review .normalized-transport-panel .transport-source-info>summary:hover{background:#eef3f8;color:#33455f}
.compact-review .normalized-transport-panel .transport-source-info>summary:focus-visible{outline:2px solid #526f95;outline-offset:2px}
.compact-review .normalized-transport-panel .transport-source-info[open]{margin-top:8px;padding-top:8px;border-top:1px solid #e3e9f1}
.compact-review .normalized-transport-panel .transport-source-info>small{display:block;color:#64748b;font-size:10px;overflow-wrap:anywhere}
@media(max-width:900px){.normalized-transport-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.normalized-transport-grid{grid-template-columns:1fr}}
.shared-shipment-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 20px;margin:12px 0}
.shared-shipment-fields dt{font-size:11px;color:#64748b;margin-bottom:4px}
.shared-shipment-fields dd{font-size:13px;font-weight:600;margin:0;overflow-wrap:anywhere}
.shipment-reconciliation{display:flex;flex-wrap:wrap;gap:8px 24px;border-top:1px solid #e3e9f1;padding-top:10px;font-size:12px}
.shipment-reconciliation p{margin:0}.reconciliation-matched{color:#17633a}.reconciliation-review{color:#8a530f}
.sad-declaration-tabs{display:flex;gap:10px;overflow-x:auto;padding:2px 1px 12px;margin:0 0 12px;scrollbar-width:thin}
.sad-declaration-tab{display:flex;flex:1 0 260px;flex-direction:column;gap:6px;border:1px solid #dbe3ec;border-radius:10px;padding:13px 16px;color:#40506a;background:#f8fafc;text-decoration:none}
.sad-declaration-tab.is-active{background:#edf4ff;border-color:#759bd2;color:#183f76}
.sad-declaration-tab:focus-visible{outline:2px solid #526f95;outline-offset:2px}
.sad-tab-heading{font-size:13px;font-weight:700}.sad-tab-summary{font-size:12px}.sad-declaration-tab small{font-size:10px;color:#64748b}
@media(max-width:900px){.shared-shipment-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.sad-declaration-tab{flex:0 0 250px}.shared-shipment-fields{gap:12px}.shared-shipment-fields dd{font-size:12px}}

/* SAD Review HS status. The description is available on hover and keyboard focus. */
.hs-status-cell { position: relative; }
.hs-status-cell .hs-status-green { color: #087044; }
.hs-status-cell .hs-status-red { color: #b42318; }
.hs-status-cell .hs-status-grey { color: #596473; }
.hs-status-tooltip {
  position: absolute;
  inset: 100% auto auto 0;
  z-index: 4;
  width: max-content;
  max-width: 15rem;
  padding: .25rem .5rem;
  border: 1px solid var(--line);
  border-radius: .3rem;
  background: var(--surface);
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
}
.hs-status-cell:hover .hs-status-tooltip,
.hs-status-cell:focus-within .hs-status-tooltip { opacity: 1; }
[data-theme="dark"] .hs-status-cell .hs-status-green { color: #77dda7; }
[data-theme="dark"] .hs-status-cell .hs-status-red { color: #ff9a92; }
[data-theme="dark"] .hs-status-cell .hs-status-grey { color: #bcc4cf; }
