/* Zeikan Material foundation. Shared geometry belongs here, not in page overrides. */
:root {
  --bg: #f4f8fa; --surface: #fff; --surface-soft: #edf5f7;
  --text: #263d49; --muted: #566274; --line: #e0e8ec;
  --blue: #006b83; --radius: 24px;
  --shadow: 0 1px 2px #263d4908, 0 8px 24px #263d490b;
  --zk-control-height: 48px; --zk-control-radius: 12px;
  --zk-motion: 180ms cubic-bezier(.2,0,0,1);
}

/* Shared five-step navigation for Tráfico and Contabilidad y finanzas. */
.workflow-stepper { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; margin:0 0 16px; }
.finance-stage-nav.workflow-stepper { margin-top:24px; }
.expedient-stepper.workflow-stepper { max-width:1440px; margin:0 auto 24px; padding:0 clamp(16px,3vw,40px); }
.workflow-stepper > :is(a,span) { --step-accent:#006b83; position:relative; display:grid; grid-template-columns:24px minmax(0,1fr); align-items:center; gap:8px; min-width:0; min-height:72px; padding:12px; overflow:hidden; border:1px solid #d9e4e8; border-radius:16px; background:#fff; color:#536873; text-decoration:none; transition:border-color var(--zk-motion),background-color var(--zk-motion),transform var(--zk-motion); }
.workflow-stepper > :is(a,span):nth-child(2) { --step-accent:#0b806f; }
.workflow-stepper > :is(a,span):nth-child(3) { --step-accent:#7c55bd; }
.workflow-stepper > :is(a,span):nth-child(4) { --step-accent:#b05a29; }
.workflow-stepper > :is(a,span):nth-child(5) { --step-accent:#2773b8; }
.workflow-stepper > :is(a,span)::after { content:""; position:absolute; inset:auto 12px 0; height:3px; border-radius:999px; background:var(--step-accent); opacity:0; }
.workflow-stepper > a:hover { border-color:color-mix(in srgb,var(--step-accent) 48%,#d9e4e8); transform:translateY(-1px); }
.workflow-stepper > a:focus-visible { outline:3px solid var(--step-accent); outline-offset:2px; }
.workflow-stepper > :is(.is-active,.is-current) { border-color:var(--step-accent); background:color-mix(in srgb,var(--step-accent) 5%,#fff); }
.workflow-stepper > :is(.is-active,.is-current)::after { opacity:1; }
.workflow-stepper > .is-unavailable { color:#6b7e87; }
.workflow-stepper .workflow-step-number { position:absolute; top:5px; right:9px; color:var(--step-accent); font-size:12px; font-weight:600; font-variant-numeric:tabular-nums; }
.workflow-stepper .material-symbols-rounded { width:24px; height:24px; color:var(--step-accent); font-size:24px; font-variation-settings:'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 24; }
.workflow-stepper .workflow-step-copy { display:flex; flex-direction:column; gap:2px; min-width:0; }
.workflow-stepper strong { color:var(--text); font-size:14px; font-weight:500; line-height:1.2; overflow-wrap:anywhere; }
.workflow-stepper small { color:var(--muted); font-size:13px; line-height:1.25; overflow-wrap:anywhere; }
.expedient-identity { display:grid; grid-template-columns:minmax(180px,1fr) minmax(240px,1.7fr) auto; align-items:center; gap:16px 24px; margin:0 0 20px; padding:16px 20px; border-radius:20px; }
.expedient-identity__main { display:flex; align-items:center; min-width:0; gap:12px; }
.expedient-identity__main > .material-symbols-rounded { color:var(--blue); font-size:28px; width:28px; height:28px; }
.expedient-identity__main > div { display:grid; min-width:0; gap:2px; }
.expedient-identity small,.expedient-identity dt { color:var(--muted); font-size:13px; line-height:1.35; }
.expedient-identity strong { overflow-wrap:anywhere; color:var(--text); font-size:16px; font-weight:500; }
.expedient-identity dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; min-width:0; margin:0; }
.expedient-identity dl > div { min-width:0; }
.expedient-identity dd { margin:3px 0 0; overflow-wrap:anywhere; color:var(--text); font-size:14px; font-weight:450; line-height:1.4; }
.expedient-identity__state { display:grid; justify-items:end; gap:6px; text-align:right; }
.operations-sections > .expedient-identity { margin-bottom:0; }
@media(max-width:1000px) { .expedient-identity { grid-template-columns:minmax(0,1fr) auto; } .expedient-identity dl { grid-column:1/-1; grid-row:2; } }
@media(max-width:600px) { .expedient-identity { grid-template-columns:1fr; padding:16px; } .expedient-identity dl { grid-column:1; grid-row:auto; grid-template-columns:1fr; gap:12px; } .expedient-identity__state { justify-items:start; text-align:left; } }
.workspace-tasks { margin:0 0 24px; padding:24px; }
.workspace-tasks > header { display:flex; align-items:end; justify-content:space-between; gap:16px; margin-bottom:16px; }
.workspace-tasks > header h2 { margin:2px 0 0; color:var(--text); font-size:22px; font-weight:450; }
.workspace-tasks > header > span { color:var(--muted); font-size:13px; }
.workspace-task-list { display:grid; gap:8px; }
.task-filters { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto; align-items:end; gap:16px; }
.document-search { display:grid; grid-template-columns:minmax(200px,2fr) minmax(160px,1fr) minmax(140px,1fr) auto; gap:16px; align-items:end; }
@media(max-width:1100px) { .document-search { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .document-search { grid-template-columns:minmax(0,1fr); } }
.release-list-reference { display:block; margin-top:8px; font-size:13px; color:var(--muted); }
.area-expedient-filters { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) auto; align-items:end; gap:16px; }
.area-report-content { padding:24px; }
.area-report-navigation { margin-bottom:24px; }
.report-section-navigation { display:grid; gap:8px; margin:0 0 24px; }
.report-section-navigation summary { display:flex; align-items:center; gap:8px; width:fit-content; min-height:48px; padding:12px 16px; border:1px solid #cbdde5; border-radius:12px; background:var(--surface); color:var(--blue); font-size:14px; font-weight:500; list-style:none; cursor:pointer; }
.report-section-navigation summary::-webkit-details-marker { display:none; }
.report-section-navigation summary:focus-visible { outline:3px solid var(--blue); outline-offset:2px; }
.report-section-navigation details > div { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.report-section-navigation details[open] summary > .material-symbols-rounded:last-child { transform:rotate(180deg); }
.report-section-navigation a { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:8px 16px; border:1px solid #cbdde5; border-radius:999px; background:var(--surface); color:var(--blue); font-size:14px; font-weight:500; text-decoration:none; transition:background-color var(--zk-motion),border-color var(--zk-motion); }
.report-section-navigation a:hover { background:#e8f3f6; border-color:#98bdcc; }
.report-section-navigation a:focus-visible { outline:3px solid var(--blue); outline-offset:2px; }
.report-section-navigation .material-symbols-rounded { font-size:20px; width:20px; height:20px; }
.customer-detail-sections :is(section[id],h2[id]) { scroll-margin-block-start:112px; }
@media(max-width:980px) { .customer-detail-sections :is(section[id],h2[id]) { scroll-margin-block-start:168px; } }
.area-report-content > .customer-detail-grid { margin: 0; }
.area-report-content > .customer-detail-grid dd { overflow-wrap: anywhere; }
:is(#report-merchandise, #report-capture-documents, #report-customs-history, .external-process-report) .customer-container > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; }
@media (max-width: 600px) {
    :is(#report-merchandise, #report-capture-documents, #report-customs-history, .external-process-report) .customer-container > summary { grid-template-columns: minmax(0, 1fr) 24px; }
    :is(#report-merchandise, #report-capture-documents, #report-customs-history, .external-process-report) .customer-container > summary > strong { grid-column: 1; grid-row: 1; }
    :is(#report-merchandise, #report-capture-documents, #report-customs-history, .external-process-report) .customer-container > summary > .traffic-status { grid-column: 1; grid-row: 2; justify-self: start; white-space: normal; }
    :is(#report-merchandise, #report-capture-documents, #report-customs-history, .external-process-report) .customer-container > summary > .material-symbols-rounded { grid-column: 2; grid-row: 1; }
}
.area-report-search { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:16px; }
.general-expense-search { display:grid; grid-template-columns:minmax(0,1fr) minmax(200px,.5fr) auto; align-items:end; gap:16px; }
@media(max-width:800px) { .general-expense-search { grid-template-columns:minmax(0,1fr); } }
@media(max-width:800px) { .area-expedient-filters,.area-report-search { grid-template-columns:minmax(0,1fr); } .area-report-content { padding:16px; } }
.task-reservation-list { display:grid; gap:16px; }
.task-reservation { padding:24px; border:1px solid var(--line); border-radius:16px; }
.task-reservation.information-stack { gap:12px; }
.task-reservation > header { display:flex; justify-content:space-between; align-items:start; gap:16px; }
.task-reservation h3 { margin:8px 0; font-size:20px; font-weight:450; }
.task-reservation > header p { margin:0; overflow-wrap:anywhere; }
.task-detail summary { display:flex; align-items:center; min-height:44px; color:var(--blue); cursor:pointer; font-size:14px; }
.task-detail summary:focus-visible { outline:3px solid var(--blue); outline-offset:2px; border-radius:8px; }
.task-detail p { margin:8px 0 0; overflow-wrap:anywhere; line-height:1.6; }
.configuration-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.configuration-entry { display:flex; flex-direction:column; gap:16px; padding:24px; border:1px solid var(--line); border-radius:16px; min-width:0; }
.configuration-entry > .material-symbols-rounded { font-size:32px; color:var(--blue); }
.configuration-entry h3 { font-size:20px; font-weight:450; margin:0 0 8px; }
.configuration-entry p { line-height:1.6; overflow-wrap:anywhere; }
.configuration-entry > a { margin-top:auto; }
@media(max-width:1000px) { .configuration-grid { grid-template-columns:minmax(0,1fr); } }
#google-access { scroll-margin-block-start:168px; }
.task-owner { display:flex; align-items:start; gap:8px; }
.task-owner > .material-symbols-rounded { flex:0 0 24px; color:var(--blue); }
.task-reservation-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:12px; }
.task-reservation-actions form { margin:0; }
@media(max-width:600px) { .task-filters { grid-template-columns:minmax(0,1fr); } .task-reservation { padding:16px; } .task-reservation > header { flex-direction:column; } .task-reservation-actions > a,.task-reservation-actions > form,.task-reservation-actions > form > button { width:100%; } }
.workspace-task-list > a { display:grid; grid-template-columns:104px minmax(0,1fr) 24px; align-items:center; gap:16px; min-height:64px; padding:12px 16px; border:1px solid #e2ebee; border-radius:14px; background:#fbfdfe; color:var(--text); text-decoration:none; transition:background-color var(--zk-motion),border-color var(--zk-motion); }
.workspace-task-list > a:hover { border-color:#a9dce7; background:#eef8fa; }
.workspace-task-list > a:focus-visible { outline:3px solid var(--blue); outline-offset:2px; }
.workspace-task-area { color:var(--blue); font-size:13px; font-weight:500; }
.workspace-task-copy { display:grid; min-width:0; gap:3px; }
.workspace-task-copy strong { font-size:15px; font-weight:500; }
.workspace-task-copy small { color:var(--muted); font-size:13px; line-height:1.4; overflow-wrap:anywhere; }
.workspace-task-list > a > .material-symbols-rounded { color:var(--blue); }
.workspace-modules-title { margin:24px 0 16px; color:var(--text); font-size:22px; font-weight:450; }
.form-save-state { display:inline-flex; align-items:center; min-height:24px; margin:0; color:var(--muted); font-size:13px; line-height:1.4; }
.form-save-state.is-unsaved { color:#8a5700; font-weight:500; }
.validation-alert:focus { outline:3px solid var(--blue); outline-offset:3px; scroll-margin-top:120px; }
.alert-box, .validation-summary-errors, .finance-errors.validation-summary-errors { margin-block:24px; }
.alert-box { align-items:flex-start; padding:16px; }
.alert-box > .material-symbols-rounded { flex:0 0 24px; }
.alert-box[hidden] { display: none; }
.alert-box > span:last-child { min-width:0; overflow-wrap:anywhere; }
.field-validation-error:not(:empty):not([hidden]) { display:flex; align-items:flex-start; gap:8px; margin-block:12px; color:#902d25; font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
.field-validation-error:not(:empty):not([hidden])::before { content:"error"; flex:0 0 20px; font-family:"Material Symbols Rounded"; font-size:20px; font-weight:400; line-height:1.25; font-variation-settings:'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 20; }
#traffic-merchandise-list, #traffic-reconciliation-comparisons, #traffic-expedients-list, #history-records { scroll-margin-top:100px; }
.validation-summary-errors, .alert-box.validation-alert.validation-summary-errors, .finance-errors.validation-summary-errors {
  border:1px solid #f1d2cc;
  border-radius:16px;
  background:#fff4f2;
  color:#902d25;
  font-size:14px;
  line-height:1.5;
}
.validation-summary-errors ul, .validation-alert ul, .finance-errors.validation-summary-errors ul {
  display:grid;
  width:100%;
  min-width:0;
  margin:0;
  padding:0;
  list-style:none;
}
.validation-summary-errors li, .validation-alert li, .finance-errors.validation-summary-errors li {
  display:grid;
  grid-template-columns:20px minmax(0,1fr);
  align-items:start;
  gap:10px;
  min-width:0;
  margin:0;
  padding:8px 0;
  overflow-wrap:anywhere;
}
.validation-summary-errors li:only-child, .validation-alert li:only-child { padding:0; }
.validation-summary-errors li + li, .validation-alert li + li { border-top:1px solid #eedbd8; }
.validation-summary-errors li::before, .validation-alert li::before {
  content:"error";
  font-family:"Material Symbols Rounded";
  font-size:20px;
  font-weight:400;
  line-height:1.25;
  font-variation-settings:'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 20;
  -webkit-font-smoothing:antialiased;
}
p.alert-box.validation-alert::before, .document-drop-error:not([hidden])::before {
  content:"error";
  flex:0 0 20px;
  font-family:"Material Symbols Rounded";
  font-size:20px;
  font-weight:400;
  line-height:1.25;
  font-variation-settings:'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 20;
  -webkit-font-smoothing:antialiased;
}
.document-drop-error:not([hidden]) { display:flex; align-items:flex-start; gap:10px; }
.document-drop-error[data-tone="status"]::before { content:"info"; }
.registration-actions > .form-save-state { order:2; margin-left:auto; }
.registration-actions > .primary-action { order:3; }
.traffic-commercial-actions > .form-save-state { margin-right:auto; }
@media(max-width:600px) { .workspace-tasks { padding:20px 16px; } .workspace-task-list > a { grid-template-columns:minmax(0,1fr) 24px; gap:6px 12px; } .workspace-task-area { grid-column:1; } .workspace-task-copy { grid-column:1; } .workspace-task-list > a > .material-symbols-rounded { grid-column:2; grid-row:1 / span 2; } }
.document-analysis-card .file-drop-zone { grid-column:1/-1; }
.document-analysis-card .ai-analyze-action { grid-column:1/-1; justify-self:stretch; order:5; }
.document-analysis-card .new-expedient-action { grid-column:1/-1; justify-self:end; order:6; }

/* Catálogos administrables */
.catalog-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:24px; }
.catalog-heading > a { flex-shrink:0; }
.catalog-import-review { overflow:auto; max-height:560px; border:1px solid var(--line); border-radius:16px; }
.catalog-import-review:focus-visible { outline:3px solid var(--action); outline-offset:3px; }
.catalog-import-review table { width:100%; min-width:640px; border-collapse:collapse; }
.catalog-import-review th,.catalog-import-review td { padding:12px 16px; text-align:left; vertical-align:top; border-bottom:1px solid var(--line); font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.catalog-import-review thead th { position:sticky; top:0; background:var(--canvas,#f4f8fa); z-index:1; font-weight:500; }
.catalog-import-review tbody td:first-child { width:72px; }
.catalog-import-review td:nth-child(2) { min-width:240px; }
.catalog-import-review td:nth-child(3) { min-width:140px; }
.catalog-import-review td .material-symbols-rounded { font-size:20px; vertical-align:middle; color:var(--muted); }
.catalog-import-choice { display:grid; place-items:center; width:44px; height:44px; cursor:pointer; }
.catalog-import-choice input { width:20px; height:20px; accent-color:var(--action); }
.catalog-import-fiscal { display:grid; grid-template-columns:1fr; gap:4px; margin:12px 0 0; }
.catalog-import-fiscal dt { color:var(--muted); font-size:13px; }
.catalog-import-fiscal dd { margin:0 0 8px; }
@media(max-width:600px){.catalog-heading { align-items:flex-start; flex-direction:column; }.catalog-heading > a { align-self:flex-start; }}
.catalog-heading h1 { margin:4px 0 8px; font-size:clamp(30px,4vw,40px); font-weight:450; letter-spacing:-.017em; }
.catalog-heading p:last-child { max-width:760px; margin:0; color:var(--muted); line-height:1.55; }
.catalog-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; margin:24px 0; }
.catalog-summary a { display:flex; align-items:center; gap:14px; min-height:88px; padding:16px 20px; border:1px solid var(--line); border-radius:20px; background:#fff; color:var(--text); text-decoration:none; box-shadow:var(--shadow); }
.catalog-summary .material-symbols-rounded { color:var(--action); font-size:28px; }
.catalog-summary span:last-child { display:grid; gap:2px; color:var(--muted); font-size:14px; }
.catalog-summary strong { color:var(--text); font-size:24px; font-weight:500; }
.catalog-section { margin:16px 0; padding:24px; border-radius:24px; }
.catalog-section > header { display:grid; grid-template-columns:32px minmax(0,1fr) auto; align-items:center; gap:16px; padding-bottom:20px; border-bottom:1px solid var(--line); }
.catalog-section > header > .material-symbols-rounded { color:var(--action); font-size:28px; }
.catalog-section h2 { margin:0 0 4px; font-size:22px; font-weight:450; }
.catalog-section header p { margin:0; color:var(--muted); font-size:14px; }
.catalog-count { padding:7px 12px; border-radius:999px; background:#edf7f9; color:#005d70; font-size:13px; font-weight:500; }
.catalog-tools { display:grid; grid-template-columns:minmax(240px,1fr) minmax(360px,1.4fr); gap:16px; padding:20px 0; }
.catalog-search { display:flex; align-items:center; gap:10px; min-height:48px; padding:0 14px; border:1px solid #b7c7cd; border-radius:12px; background:#fff; }
.catalog-search:focus-within { border-color:var(--action); outline:3px solid rgba(0,107,131,.14); }
.catalog-search .material-symbols-rounded { color:var(--muted); font-size:22px; }
.catalog-search input { width:100%; min-width:0; height:44px; border:0; outline:0; background:transparent; font:inherit; }
.catalog-add-form { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; }
.catalog-add-form input,.catalog-row input { width:100%; height:48px; padding:0 14px; border:1px solid #b7c7cd; border-radius:12px; background:#fff; color:var(--text); font:inherit; }
.catalog-add-form input:focus,.catalog-row input:focus { border-color:var(--action); outline:3px solid rgba(0,107,131,.14); }
.catalog-list { display:grid; gap:8px; max-height:520px; overflow:auto; padding-right:4px; }
.catalog-row { display:grid; grid-template-columns:24px minmax(0,1fr) 44px 44px; align-items:center; gap:10px; padding:8px 10px; border:1px solid #e0eaed; border-radius:16px; background:#f9fbfc; }
.catalog-row > .material-symbols-rounded { color:#55707a; font-size:22px; }
.catalog-row input[readonly] { border-color:transparent; background:transparent; }
.catalog-row--enhanced { grid-template-columns:24px minmax(0,1fr) 44px; min-height:56px; padding-block:5px; }
.catalog-row--enhanced.is-editing { grid-template-columns:24px minmax(0,1fr) repeat(3,44px); background:#fff; border-color:#9bcdd8; }
.catalog-row-name { min-width:0; overflow:hidden; color:var(--text); font-size:15px; text-overflow:ellipsis; white-space:nowrap; }
.catalog-row .icon-action[hidden],.catalog-row [data-catalog-name][hidden],.catalog-row input[hidden] { display:none; }
.catalog-list [data-catalog-row][hidden] { display:none; }
.icon-action { display:grid; place-items:center; width:44px; height:44px; padding:0; border:0; border-radius:50%; background:transparent; color:var(--action); cursor:pointer; }
.icon-action:hover,.icon-action:focus-visible { background:#dff3f7; }
.icon-action:focus-visible { outline:3px solid #006b83; outline-offset:2px; }
.icon-action.is-danger { color:#b3261e; }
.icon-action.is-danger:hover,.icon-action.is-danger:focus-visible { background:#fce8e6; }
.catalog-empty { display:grid; justify-items:center; gap:6px; padding:40px 20px; border:1px dashed #b7c7cd; border-radius:16px; color:var(--muted); text-align:center; }
.catalog-empty .material-symbols-rounded { color:var(--action); font-size:32px; }
.catalog-empty strong { color:var(--text); font-weight:500; }
.catalog-empty p { margin:0; }
.catalog-filter-status { margin:12px 0 0; color:var(--muted); font-size:13px; }
.catalog-consignee-tools { display:grid; gap:20px; padding:20px 0; }
.catalog-consignee-tools > .catalog-search { width:min(100%,480px); }
.catalog-consignee-add { display:grid; gap:16px; padding:20px; border:1px solid var(--line); border-radius:16px; background:#f8fbfc; }
.catalog-consignee-add > .primary-action { justify-self:start; }
.catalog-consignee-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 24px; align-items:start; }
.catalog-consignee-fields .material-field { min-width:0; }
.catalog-consignee-address { grid-column:1/-1; }
.catalog-consignee-fields :is(input,textarea) { display:block; width:100%; min-height:48px; padding:12px 14px; border:1px solid #b7c7cd; border-radius:12px; background:#fff; color:var(--text); font:inherit; font-size:16px; font-weight:400; }
.catalog-consignee-fields textarea { min-height:84px; line-height:1.5; resize:vertical; }
.catalog-consignee-fields :is(input,textarea):focus-visible { outline:3px solid color-mix(in srgb,var(--blue) 28%,transparent); border-color:var(--blue); }
.catalog-consignee-list { max-height:none; overflow:visible; padding-right:0; }
.catalog-consignee-card { border:1px solid #dce8eb; border-radius:16px; background:#fff; }
.catalog-consignee-card > summary { display:grid; grid-template-columns:24px minmax(0,1fr) 24px; align-items:center; gap:12px; min-height:64px; padding:12px 16px; cursor:pointer; list-style:none; }
.catalog-consignee-card > summary::-webkit-details-marker { display:none; }
.catalog-consignee-card > summary > .material-symbols-rounded:first-child { color:var(--blue); }
.catalog-consignee-card > summary:focus-visible { outline:3px solid var(--blue); outline-offset:3px; border-radius:16px; }
.catalog-consignee-identity { display:grid; min-width:0; gap:2px; }
.catalog-consignee-identity strong { overflow-wrap:anywhere; font-size:15px; font-weight:500; }
.catalog-consignee-identity small { color:var(--muted); font-size:13px; }
.catalog-consignee-chevron { color:var(--blue); transition:transform var(--zk-motion); }
.catalog-consignee-card[open] .catalog-consignee-chevron { transform:rotate(180deg); }
.catalog-consignee-edit,.catalog-consignee-readonly { display:grid; gap:16px; margin:0; padding:20px 16px; border-top:1px solid var(--line); }
.catalog-consignee-actions { display:flex; flex-wrap:wrap; gap:12px; }
.catalog-consignee-delete { color:#a72922; }
.catalog-consignee-delete:hover { background:#fce8e6; }
.catalog-consignee-readonly { grid-template-columns:repeat(2,minmax(0,1fr)); }
.catalog-consignee-readonly div { min-width:0; }
.catalog-consignee-readonly dt { color:var(--muted); font-size:13px; }
.catalog-consignee-readonly dd { margin:4px 0 0; overflow-wrap:anywhere; font-size:15px; }
@media(max-width:760px) {
  .catalog-summary { grid-template-columns:1fr; }
  .catalog-section { padding:20px 16px; }
  .catalog-section > header { grid-template-columns:28px minmax(0,1fr); }
  .catalog-count { grid-column:2; justify-self:start; }
  .catalog-tools { grid-template-columns:1fr; }
  .catalog-add-form { grid-template-columns:1fr; }
  .catalog-add-form .primary-action { width:100%; }
  .catalog-row { grid-template-columns:20px minmax(0,1fr) 44px 44px; padding:8px; }
  .catalog-row--enhanced { grid-template-columns:20px minmax(0,1fr) 44px; }
  .catalog-row--enhanced.is-editing { grid-template-columns:20px minmax(0,1fr) repeat(3,44px); gap:8px; }
  .catalog-row--enhanced.is-editing > .material-symbols-rounded { grid-row:1; }
  .catalog-row--enhanced.is-editing input:not([type=hidden]) { grid-column:2/-1; grid-row:1; }
  .catalog-row--enhanced.is-editing [data-catalog-save] { grid-column:3; grid-row:2; }
  .catalog-row--enhanced.is-editing [data-catalog-delete] { grid-column:4; grid-row:2; }
  .catalog-row--enhanced.is-editing [data-catalog-cancel] { grid-column:5; grid-row:2; }
  .catalog-consignee-add { padding:16px; }
  .catalog-consignee-fields,.catalog-consignee-readonly { grid-template-columns:1fr; }
  .catalog-consignee-actions > button,.catalog-consignee-add > .primary-action { width:100%; }
}
@media(prefers-reduced-motion:reduce) { .catalog-consignee-chevron { transition:none; } }
.document-type-list { grid-column:1/-1; display:grid; gap:8px; order:4; }
.document-type-list > span { display:grid; grid-template-columns:24px minmax(0,1fr) auto; align-items:center; gap:12px; padding:12px 16px; border:1px solid #dce8eb; border-radius:12px; background:#f8fbfc; }
.document-type-list .material-symbols-rounded { color:#188038; font-size:22px; }
.document-type-list strong { overflow-wrap:anywhere; font-size:14px; font-weight:500; }
.document-type-list small { color:var(--muted); font-size:13px; }
.provisional-reference-note,.provisional-link-banner { display:flex; align-items:flex-start; gap:16px; padding:16px; border:1px solid #e4c36a; border-radius:16px; background:#fff9e8; color:var(--text); }
.provisional-reference-note { grid-column:1/-1; order:4; }
.provisional-reference-note > .material-symbols-rounded,.provisional-link-banner > .material-symbols-rounded { width:28px; height:28px; color:#8a5a00; font-size:28px; }
.provisional-reference-note strong,.provisional-link-banner h2 { margin:0; font-size:16px; font-weight:500; }
.provisional-reference-note p,.provisional-link-banner p { margin:4px 0 0; color:#604b1a; font-size:14px; line-height:1.5; }
.provisional-link-banner { margin-bottom:24px; padding:20px 24px; }
.material-field .field-validation-state { display:inline-flex; align-items:center; gap:6px; color:#8a5a00; font-size:13px; font-weight:500; }
.material-field .field-validation-state .material-symbols-rounded { width:18px; height:18px; font-size:18px; }
.registration-review-overview { margin:8px 0 16px; padding:10px 14px; border-radius:12px; background:#fff8e8; color:#705006; font-size:13px; line-height:1.5; }
.registration-accordion.has-review-overview .material-field:not(:focus-within) .field-validation-state { display:none; }
.material-field .field-help { color:var(--muted); font-size:13px; font-weight:400; line-height:1.45; }
.material-field.is-pending-validation input:not([type="hidden"]),.material-field.is-pending-validation select { border-color:#d9b657; background:#fffdf7; }
.document-stage-actions { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:12px; }
.traffic-data-stage { display:grid; gap:24px; scroll-margin-top:24px; }
.traffic-data-stage.is-collapsed { display:none; }
.ai-evidence-open-label { margin-left:auto; color:var(--action,#006b83); font-size:13px; font-weight:500; white-space:nowrap; }
.traffic-drafts { margin-bottom:24px; padding:24px; }
.traffic-drafts h2 { margin:4px 0 16px; font-size:22px; font-weight:450; }
.traffic-draft-list { display:grid; gap:8px; }
.traffic-draft-list article { display:grid; grid-template-columns:28px minmax(0,1fr) auto; align-items:center; gap:12px; padding:12px 0; border-top:1px solid #e3ecef; }
.traffic-draft-list article > .material-symbols-rounded { color:var(--action,#006b83); }
.traffic-draft-list article div { display:grid; gap:3px; }
.traffic-draft-list article strong { font-weight:500; }
.traffic-draft-list article small { color:var(--muted); }
@media (max-width:1180px) {
  .workflow-stepper { display:flex; overflow-x:auto; overscroll-behavior-inline:contain; scroll-snap-type:x mandatory; scrollbar-width:thin; scrollbar-color:#c4dce3 transparent; }
  .workflow-stepper > :is(span,a) { flex:0 0 210px; scroll-snap-align:start; }
}
@media (max-width:760px) { .workflow-stepper > :is(span,a) { flex-basis:230px; } }
@media (max-width:600px) {
  .expedient-stepper.workflow-stepper { padding:0 16px 8px; margin-bottom:20px; }
  .document-stage-actions { display:grid; }
  .document-stage-actions .primary-action,.document-stage-actions .secondary-action { width:100%; }
  .document-type-list > span { grid-template-columns:24px minmax(0,1fr); }
  .document-type-list small { grid-column:2; }
  .traffic-draft-list article { grid-template-columns:24px minmax(0,1fr); }
  .traffic-draft-list article .traffic-open { grid-column:1/-1; width:100%; }
}
html { background: var(--bg); }
body, body.login-screen { font-family: "Google Sans Flex", "Google Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif; font-optical-sizing: auto; font-weight: 400; line-height: 1.5; background: var(--bg); }
body::before { background: var(--bg); }
button, input, select, textarea { font-family: inherit; font-optical-sizing: auto; }
strong { font-weight: 600; }
.material-symbols-rounded { font-size: 24px; font-weight: 400; font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; width: 24px; height: 24px; flex-shrink: 0; align-items: center; justify-content: center; white-space: nowrap; word-wrap: normal; direction: ltr; font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; }
.app-shell { grid-template-columns: 248px minmax(0,1fr); }
.content-shell { display: flex; min-height: 100vh; min-height: 100dvh; flex-direction: column; }
.public-body { display: flex; min-height: 100vh; min-height: 100dvh; flex-direction: column; }
.public-shell { flex: 1 0 auto; }
.side-nav {
  display:flex;
  flex-direction:column;
  height:100dvh;
  overflow:hidden;
  overscroll-behavior-y: contain;
  background-color: #b4c9d5;
  background-image: none;
  backdrop-filter: none;
  border-right: 1px solid #90adbd;
  padding: 24px 16px;
}
.brand { gap: 8px; font-size: 28px; font-weight: 500; padding-bottom: 32px; }
.side-nav .brand { justify-content: flex-start; padding-left: 16px; flex-shrink:0; }
.nav-close-button { display:none; position:absolute; top:16px; right:16px; place-items:center; width:44px; height:44px; padding:0; border:0; border-radius:999px; background:transparent; color:var(--text); cursor:pointer; }
.nav-close-button:hover { background:#dff1f5; }
.nav-close-button:focus-visible { outline:3px solid var(--blue); outline-offset:2px; }
@media(max-width:980px) { .nav-close-button { display:grid; } body.nav-open { overflow:hidden; } }
/* Original 500x284 artwork. Clip only its tagline; preserve the symbol's proportions. */
.portal-logo { display: block; position: relative; width: 92px; height: 53px; overflow: hidden; flex: none; }
.portal-logo img { display: block; position: absolute; width: 140px; height: auto; max-width: none; left: -25px; top: -6px; }
.login-logo { margin: 0 0 32px; }
.footer-mark { display: none; }
.public-top-bar { background: #f4f8fa; background-image: none; }
.public-brand { justify-content: flex-start; }
.ai-intake-card { background: #fff; border-color: #c9e3e9; }
.ai-intake-icon, .ai-evidence-sparkle { color: #006b83; }
.ai-intake-icon, .ai-evidence-sparkle, .registration-hero-icon,
.registration-accordion .section-icon, .expediente-cierre-card__icon,
.access-avatar, .page-heading > .material-symbols-rounded { background: transparent; border: 0; box-shadow: none; }
.dashboard-hero { display:flex; align-items:end; justify-content:space-between; gap:24px; margin:8px 0 32px; }
.dashboard-hero > div:first-child { min-width:0; }
.dashboard-hero-label { margin:0 0 8px; color:var(--blue); font-size:13px; font-weight:500; }
.dashboard-hero h1 { margin:0; color:var(--text); font-size:clamp(28px,2.6vw,36px); font-weight:450; line-height:1.14; letter-spacing:-.017em; }
.dashboard-hero h1 + p { max-width:680px; margin:8px 0 0; color:var(--muted); font-size:15px; line-height:1.55; }
.dashboard-hero-actions { display:flex; flex:0 0 auto; align-items:center; flex-wrap:wrap; gap:8px; }
.dashboard-section { margin:0 0 24px; }
.dashboard-workspace { display:grid; grid-template-columns:minmax(0,1fr); align-items:start; gap:24px; margin-bottom:32px; scroll-margin-top:120px; }
.dashboard-inbox,.dashboard-notices { min-width:0; padding:24px; }
.dashboard-inbox > .inbox-views,.dashboard-workspace .dashboard-section-heading { margin:0; }
.dashboard-expedient-table { min-width:940px; width:100%; table-layout:fixed; }
.dashboard-expedient-table td { vertical-align:top; }
.dashboard-expedient-table :is(th,td):nth-child(1) { width:170px; }
.dashboard-expedient-table :is(th,td):nth-child(2) { width:170px; }
.dashboard-expedient-table :is(th,td):nth-child(3) { width:190px; }
.dashboard-expedient-table :is(th,td):nth-child(4) { width:140px; }
.dashboard-expedient-table :is(th,td):nth-child(5) { width:190px; }
.dashboard-expedient-table :is(th,td):nth-child(6) { width:80px; }
.dashboard-expedient-table .traffic-status { max-width:100%; white-space:normal; line-height:1.5; }
.dashboard-expedient-table td > strong,.dashboard-expedient-table td > small { display:block; overflow-wrap:anywhere; }
.dashboard-expedient-table td > small { margin-top:4px; color:var(--muted); font-size:13px; }
.dashboard-expedient-table td > .secondary-action { margin-top:12px; }
.dashboard-notice { padding-top:16px; border-top:1px solid var(--line); gap:12px; }
.dashboard-notice > div { display:grid; grid-template-columns:24px minmax(0,1fr); align-items:start; gap:12px; }
.dashboard-notice .material-symbols-rounded { color:var(--blue); }
.dashboard-notice p { overflow-wrap:anywhere; font-size:14px; color:var(--muted); }
.dashboard-notice .text-link { display:inline-flex; align-items:center; gap:8px; min-height:44px; }
@media(min-width:1550px) { .dashboard-workspace { grid-template-columns:minmax(0,1fr) 320px; } }
@media(max-width:650px) { .dashboard-inbox,.dashboard-notices { padding:16px; } }
.dashboard-section-heading { display:flex; align-items:end; justify-content:space-between; gap:16px; margin:0 0 16px; }
.dashboard-section-heading .eyebrow { margin:0 0 4px; color:var(--blue); font-size:13px; font-weight:500; }
.dashboard-section-heading h2 { margin:0; color:var(--text); font-size:22px; font-weight:450; line-height:1.2; }
.dashboard-section-heading > span { color:var(--muted); font-size:13px; line-height:1.4; text-align:right; }
.dashboard-indicators { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; }
.dashboard-indicator { --indicator-ink:var(--blue); display:grid; grid-template-columns:28px minmax(0,1fr) 20px; align-items:start; gap:14px; min-height:150px; padding:20px; color:var(--text); text-decoration:none; transition:border-color var(--zk-motion),transform var(--zk-motion),box-shadow var(--zk-motion); }
.dashboard-indicator:nth-child(2) { --indicator-ink:#a05b1a; }
.dashboard-indicator:nth-child(3) { --indicator-ink:#2b7965; }
.dashboard-indicator:nth-child(4) { --indicator-ink:#6666a0; }
.dashboard-indicator-icon { width:28px; height:28px; color:var(--indicator-ink); font-size:28px; font-variation-settings:'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 28; }
.dashboard-indicator-copy { display:grid; min-width:0; gap:5px; }
.dashboard-indicator-copy small { color:var(--muted); font-size:13px; line-height:1.3; }
.dashboard-indicator-copy strong { color:var(--text); font-size:32px; font-weight:450; line-height:1; font-variant-numeric:tabular-nums; }
.dashboard-indicator-copy > span { color:var(--indicator-ink); font-size:13px; font-weight:500; line-height:1.4; }
.dashboard-indicator-arrow { width:20px; height:20px; color:var(--indicator-ink); font-size:20px; }
.dashboard-indicator.is-loading .dashboard-indicator-icon { animation:dashboard-records-spin 1s linear infinite; }
@keyframes dashboard-records-spin { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) { .dashboard-indicator.is-loading .dashboard-indicator-icon { animation:none; } }
.dashboard-indicator:hover { border-color:#a9cdd6; box-shadow:0 5px 18px #263d4910; transform:translateY(-2px); }
.dashboard-indicator:focus-visible, .dashboard-priority:focus-visible, .dashboard-priorities-more:focus-visible { outline:3px solid var(--blue); outline-offset:3px; }
.dashboard-indicator[aria-current="true"] { border-color:var(--blue); background:var(--surface); }
.traffic-attention-table.operational-report-table { min-width:1200px; }
.global-expedient-inbox > .task-filters { margin-bottom:24px; }
.expedient-overview-layout { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr); align-items:start; gap:24px; margin-top:24px; }
.customer-detail-grid.expedient-overview-identity { grid-template-columns:repeat(4,minmax(0,1fr)); }
.expedient-overview-layout > :is(div,aside) { min-width:0; gap:24px; }
.expedient-overview-layout--wide { grid-template-columns:minmax(0,1fr); }
.expedient-overview-layout--wide > aside { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.expedient-overview-layout h2 { margin:0; font-size:22px; font-weight:450; }
.expedient-area-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.expedient-area-links a { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:48px; padding:12px 16px; border:1px solid var(--line); border-radius:12px; color:var(--blue); font-weight:500; text-decoration:none; }
.expedient-area-links a:hover { background:var(--surface-soft); }
.expedient-area-links a:focus-visible { outline:3px solid var(--blue); outline-offset:2px; }
.expedient-activity { display:grid; gap:24px; margin:0; padding:0; list-style:none; }
.expedient-activity li { display:grid; gap:4px; padding-left:16px; border-left:2px solid #bddce5; overflow-wrap:anywhere; }
.expedient-activity strong { font-size:14px; font-weight:500; }
.expedient-activity span { font-size:14px; }
.expedient-activity time { font-size:13px; color:var(--muted); }
.expedient-activity .expedient-activity-context { color:var(--muted); font-size:13px; }
.activity-note summary { display:flex; align-items:center; min-height:44px; color:var(--blue); font-size:14px; cursor:pointer; }
.activity-note summary:focus-visible { outline:3px solid var(--blue); outline-offset:2px; border-radius:8px; }
.activity-note p { margin:8px 0 0; font-size:14px; overflow-wrap:anywhere; }
.global-validation-check > summary { display:grid; grid-template-columns:minmax(0,1fr) auto 24px; }
.traffic-attention-table.global-merchandise-table { min-width:900px; table-layout:fixed; }
.traffic-attention-table.global-merchandise-table :is(th,td) { width:20%; padding:16px; vertical-align:top; overflow-wrap:anywhere; }
.global-merchandise-table td small { display:block; margin:8px 0; color:var(--muted); font-size:13px; }
.traffic-attention-table.global-merchandise-table td:last-child { text-align:left; }
.global-merchandise-table .traffic-status { max-width:100%; white-space:normal; line-height:1.4; }
.payment-overview-item { display:grid; gap:16px; padding:16px; border:1px solid var(--line); border-radius:16px; }
.payment-overview-item > header { display:flex; justify-content:space-between; align-items:start; flex-wrap:wrap; gap:12px; }
.payment-overview-item > header > div { min-width:0; overflow-wrap:anywhere; }
.payment-overview-item > header p { margin:4px 0 0; font-size:14px; color:var(--muted); }
.payment-overview-item .customer-detail-grid { grid-template-columns:repeat(3,minmax(0,1fr)); margin:0; }
@media(max-width:600px) { .payment-overview-item .customer-detail-grid { grid-template-columns:minmax(0,1fr); } }
.payment-tracking-group > summary { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.payment-tracking-group > summary > strong { flex:1; min-width:180px; }
.payment-tracking-group > summary > span:not(.material-symbols-rounded) { color:var(--muted); font-size:13px; }
@media(max-width:600px) { .global-validation-check > summary { grid-template-columns:minmax(0,1fr) 24px; } .global-validation-check > summary > .traffic-status { grid-column:1; grid-row:2; justify-self:start; } .global-validation-check > summary > .material-symbols-rounded { grid-column:2; grid-row:1; } }
#overview-documents,#overview-content,#overview-merchandise,#overview-payments,#overview-activity { scroll-margin-block-start:112px; }
@media(max-width:980px) { .expedient-overview-layout { grid-template-columns:minmax(0,1fr); } .customer-detail-grid.expedient-overview-identity { grid-template-columns:repeat(2,minmax(0,1fr)); } #overview-documents,#overview-content,#overview-merchandise,#overview-payments,#overview-activity { scroll-margin-block-start:168px; } }
@media(max-width:600px) { .expedient-area-links,.customer-detail-grid.expedient-overview-identity,.expedient-overview-layout--wide > aside { grid-template-columns:minmax(0,1fr); } }
.inbox-views { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px; }
.inbox-views a { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:8px 16px; border:1px solid #cbdde5; border-radius:999px; color:var(--blue); font-size:14px; font-weight:500; text-decoration:none; }
.inbox-views a[aria-current="page"] { background:#e0f0f5; border-color:var(--blue); box-shadow:inset 0 -2px 0 var(--blue); }
.inbox-views a:hover { background:#edf5f7; }
.inbox-views a:focus-visible { outline:3px solid var(--blue); outline-offset:2px; }
.inbox-views a > span { font-size:13px; font-variant-numeric:tabular-nums; }
.inbox-views a > .material-symbols-rounded { font-size:20px; }
.expedient-panel-tabs { gap:8px; margin:0; }
.expedient-overview-areas { margin:0; }
.inbox-view-help { margin:0 0 24px; color:var(--muted); font-size:13px; line-height:1.5; }
.traffic-attention-table.global-expedient-table { min-width:900px; table-layout:fixed; }
.global-expedient-report-link { display:inline-flex; align-items:center; gap:8px; min-height:44px; color:var(--blue); font-size:14px; font-weight:500; text-decoration:none; }
.global-expedient-report-link:hover { text-decoration:underline; }
.global-expedient-report-link:focus-visible { outline:3px solid var(--blue); outline-offset:2px; border-radius:8px; }
.global-expedient-table td strong,.global-expedient-table td small { display:block; }
.global-expedient-table td small { margin-top:8px; font-size:13px; color:var(--muted); }
.global-expedient-table td:first-child { overflow-wrap:anywhere; }
.global-expedient-table td .customer-container { margin-top:16px; }
.global-expedient-table td .information-stack { gap:12px; }
.traffic-attention-table.global-expedient-table th:last-child,.traffic-attention-table.global-expedient-table td:last-child { width:auto; text-align:left; }
.global-expedient-table td .secondary-action { white-space:normal; text-align:center; }
.operational-report-table th, .operational-report-table td { padding:16px; vertical-align:top; }
.operational-report-table td:first-child { min-width:240px; }
.operational-report-table td .information-stack { gap:8px; }
.metric-popover { position:absolute; top:calc(100% + 10px); right:0; z-index:20; display:grid; gap:12px; width:min(360px,calc(100vw - 56px)); padding:16px; border:1px solid var(--line); border-radius:16px; background:var(--surface); box-shadow:var(--shadow); opacity:0; visibility:hidden; pointer-events:none; transform:translateY(-4px); transition:opacity var(--zk-motion),transform var(--zk-motion); }
.metric-popover::before { content:""; position:absolute; top:-6px; right:22px; width:10px; height:10px; border-left:1px solid var(--line); border-top:1px solid var(--line); background:var(--surface); transform:rotate(45deg); }
.stat-has-popover:hover .metric-popover, .stat-has-popover:focus-within .metric-popover, .stat-has-popover:focus .metric-popover { opacity:1; visibility:visible; pointer-events:auto; transform:translateY(0); }
.dashboard-indicators-empty { display:flex; align-items:center; gap:12px; min-height:100px; padding:20px 24px; color:var(--muted); }
.dashboard-indicators-empty .material-symbols-rounded { color:var(--blue); font-size:28px; }
.dashboard-indicators-empty p { margin:0; font-size:14px; }
.dashboard-priorities { padding:24px; margin-bottom:24px; }
.dashboard-priorities .dashboard-section-heading { margin-bottom:12px; }
.dashboard-priority-list { display:grid; }
.dashboard-priority { display:grid; grid-template-columns:108px minmax(0,1fr) 24px; align-items:center; gap:16px; min-height:70px; padding:12px 4px; color:var(--text); text-decoration:none; transition:background-color var(--zk-motion),color var(--zk-motion); }
.dashboard-priority + .dashboard-priority { border-top:1px solid #e5ecef; }
.dashboard-priority:hover { background:#f4f9fa; }
.dashboard-priority-area { color:var(--blue); font-size:13px; font-weight:500; }
.dashboard-priority-detail { display:grid; min-width:0; gap:3px; }
.dashboard-priority-detail strong { font-size:15px; font-weight:500; line-height:1.35; }
.dashboard-priority-detail small { color:var(--muted); font-size:13px; line-height:1.4; overflow-wrap:anywhere; }
.dashboard-priority > .material-symbols-rounded { color:var(--blue); font-size:20px; }
.dashboard-priorities-empty { display:flex; align-items:center; gap:12px; margin:0; padding:20px 0 4px; color:var(--muted); font-size:14px; line-height:1.5; }
.dashboard-priorities-empty > .material-symbols-rounded { color:#2b7965; font-size:28px; }
.dashboard-priorities-empty strong { color:var(--text); font-size:15px; font-weight:500; }
.dashboard-priorities-empty p { margin:3px 0 0; }
.dashboard-priorities-more { display:inline-flex; align-items:center; gap:8px; min-height:44px; margin-top:8px; color:var(--blue); font-size:14px; font-weight:500; text-decoration:none; }
.dashboard-priorities-more .material-symbols-rounded { font-size:20px; }
@media(max-width:700px) {
  .dashboard-hero { display:grid; margin-bottom:24px; }
  .dashboard-hero-actions .primary-action { width:100%; }
  .dashboard-section-heading { align-items:start; }
  .dashboard-section-heading > span { max-width:125px; }
  .dashboard-indicators { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dashboard-indicator { grid-template-columns:24px minmax(0,1fr); min-height:145px; padding:16px; gap:10px; }
  .dashboard-indicator-icon { width:24px; height:24px; font-size:24px; }
  .dashboard-indicator-arrow { display:none; }
  .dashboard-indicator-copy strong { font-size:28px; }
  .dashboard-priorities { padding:20px 16px; }
}
@media(max-width:460px) {
  .dashboard-indicators { grid-template-columns:1fr; }
  .dashboard-indicator { min-height:112px; }
  .dashboard-priority { grid-template-columns:minmax(0,1fr) 20px; gap:4px 8px; }
  .dashboard-priority-area { grid-column:1; }
  .dashboard-priority-detail { grid-column:1; }
  .dashboard-priority > .material-symbols-rounded { grid-column:2; grid-row:1 / span 2; }
}
@media(prefers-reduced-motion:reduce) { .dashboard-indicator { transition:none; } .dashboard-indicator:hover { transform:none; } .dashboard-priority { transition:none; } }
.ai-intake-icon > .material-symbols-rounded,
.access-module > .material-symbols-rounded { font-size: 32px; width: 32px; height: 32px; font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 32; }
.registration-accordion .section-icon { font-size: 28px; width: 40px; height: 40px; font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 28; }
.ai-evidence-sparkle, .container-ai-source > .material-symbols-rounded,
.ai-evidence-modal-content > header > .material-symbols-rounded { font-size: 28px; width: 36px; height: 36px; flex-shrink: 0; background: transparent; box-shadow: none; font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 28; }
.ai-review-summary .material-symbols-rounded { font-size: 28px; width: 28px; height: 28px; }
.cinematic-aura { background: radial-gradient(ellipse,#00b4e530,transparent 70%); }
.side-nav nav { display:grid; align-content:start; gap:16px; flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; padding:8px; margin-inline:-8px; }
.side-nav-group { display: grid; gap: 4px; }
.side-nav-group--administration { margin-top: 0; padding-top: 0; border-top: 0; }
.side-nav-label { padding: 0 16px 6px; color: #3d5560; font-size: 13px; font-weight: 500; line-height: 20px; }
.side-nav nav a { min-height: 44px; padding: 10px 16px; gap: 12px; border-radius: 16px; color:#304b59; font-size: 14px; font-weight: 450; transition: background-color var(--zk-motion),color var(--zk-motion),box-shadow var(--zk-motion); }
.side-nav nav a:hover { background:#d9e6ed; color:#173e50; }
.side-nav nav a:focus-visible { outline:3px solid var(--blue); outline-offset:2px; background:#fff; color:#173e50; }
.side-nav nav a[aria-current="page"] {
  background: #fff;
  color: #004f63;
  font-weight: 500;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: inset 3px 0 0 #006b83, inset 0 0 0 1px #b7d2de, 0 2px 6px #263d490a;
  animation:side-nav-active-pop 180ms cubic-bezier(.2,0,0,1) both;
}
@keyframes side-nav-active-pop {
  0% { opacity:.86; transform:translateY(2px); }
  100% { opacity:1; transform:none; }
}
.side-nav nav a[data-nav-tone] > .material-symbols-rounded { color: var(--nav-icon); font-size: 24px; font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.side-nav nav a[data-nav-tone="workspace"] { --nav-icon: #006f87; }
.side-nav nav a[data-nav-tone="dashboard"] { --nav-icon: #38658f; }
.side-nav nav a[data-nav-tone="customers"] { --nav-icon: #47628c; }
.side-nav nav a[data-nav-tone="traffic"] { --nav-icon: #2b7965; }
.side-nav nav a[data-nav-tone="registry"] { --nav-icon: #6666a0; }
.side-nav nav a[data-nav-tone="maritime"] { --nav-icon: #276e8b; }
.side-nav nav a[data-nav-tone="operations"] { --nav-icon: #247773; }
.side-nav nav a[data-nav-tone="finance"] { --nav-icon: #765f85; }
.side-nav nav a[data-nav-tone="release"] { --nav-icon: #826044; }
.side-nav nav a[data-nav-tone="catalogs"] { --nav-icon: #5d6e48; }
.side-nav nav a[data-nav-tone="security"] { --nav-icon: #875b6a; }
.side-nav nav a[aria-current="page"] > .material-symbols-rounded { color: var(--nav-icon, #005d76); }
.side-nav-disclosure__row { display: grid; grid-template-columns: minmax(0,1fr) 44px; align-items: center; border-radius: 16px; transition: background-color var(--zk-motion); }
.side-nav-disclosure__row:hover { background:#d9e6ed; }
.side-nav-disclosure__row--active {
  background:#fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: inset 3px 0 0 #006b83, inset 0 0 0 1px #b7d2de, 0 2px 6px #263d490a;
  animation:side-nav-active-pop 180ms cubic-bezier(.2,0,0,1) both;
}
.side-nav nav .side-nav-disclosure__row > a { min-width: 0; padding-right: 0; background: transparent; }
.side-nav nav .side-nav-disclosure__row > a:hover, .side-nav nav .side-nav-disclosure__row > a:focus-visible, .side-nav nav .side-nav-disclosure__row > a[aria-current="location"] { background: transparent; }
.side-nav nav .side-nav-disclosure__row > a[aria-current="location"] {
  color:#004f63;
  font-weight:500;
}
.side-nav-disclosure__toggle { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #426679; cursor: pointer; }
.side-nav-disclosure__toggle:hover { background: rgba(0, 107, 131, .09); color: #005d76; }
.side-nav-disclosure__toggle:focus-visible { outline: 3px solid #006b83; outline-offset: 2px; }
.side-nav-disclosure__toggle .material-symbols-rounded { transition: transform var(--zk-motion); }
.side-nav-disclosure__toggle[aria-expanded="true"] .material-symbols-rounded { transform: rotate(180deg); }
.side-nav-submenu { display: grid; gap: 4px; margin: 8px 0 4px 28px; padding-left: 12px; border-left: 1px solid #90adbd; }
.side-nav-submenu[hidden] { display: none; }
.side-nav-submenu:not([hidden]) { animation: side-nav-reveal 180ms ease-out both; }
@keyframes side-nav-reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .side-nav-submenu:not([hidden]), .side-nav nav a[aria-current="page"],
  .side-nav-disclosure__row--active { animation:none; }
  .side-nav-disclosure__toggle .material-symbols-rounded { transition:none; }
}
.side-nav nav .side-nav-submenu a { min-height: 44px; padding: 10px 14px; font-size: 13px; }
@media (prefers-reduced-transparency: reduce) {
  .side-nav nav a[aria-current="page"], .side-nav-disclosure__row--active {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
.nav-signout { margin: 16px 0 0; flex-shrink:0; }
.nav-signout button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 10px 16px; border: 0; border-radius: 24px; background: transparent; color: #004f63; font: inherit; font-size: 14px; font-weight: 450; cursor: pointer; text-align: left; }
.nav-signout .material-symbols-rounded { color: #527487; }
.nav-signout button:hover { background: #d9e6ed; }
.nav-signout button:active { background: #c5d8e3; }
.top-bar {
  min-height: 80px;
  padding: 16px 32px;
  isolation: isolate;
  background: var(--bg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
.top-bar::before {
  content: none;
}
@media (prefers-reduced-transparency: reduce) {
  .top-bar { background: #f4f8fa; }
  .top-bar::before { display: none; }
}
.top-bar-location { display: flex; align-items: center; gap: 12px; min-width: 0; margin-right: auto; color: var(--text); }
.top-bar-location > .material-symbols-rounded { width: 28px; height: 28px; color: var(--blue); font-size: 28px; font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 28; }
.top-bar-location > span:last-child { display: grid; min-width: 0; gap: 0; }
.top-bar-location small { color: var(--muted); font-size: 13px; font-weight: 400; line-height: 18px; }
.top-bar-location strong { overflow: hidden; font-size: 15px; font-weight: 500; line-height: 20px; text-overflow: ellipsis; white-space: nowrap; }
.global-expedient-search { display:flex; align-items:center; flex:1 1 240px; min-width:0; max-width:420px; min-height:48px; padding:0 4px 0 16px; border:1px solid var(--line); border-radius:999px; background:var(--surface); }
.global-expedient-search input { width:100%; min-width:0; height:46px; padding:0; border:0; border-radius:0; background:transparent; color:var(--text); font-size:16px; }
.global-expedient-search:focus-within { outline:2px solid var(--blue); outline-offset:2px; }
.global-expedient-search input:focus-visible { outline:none; box-shadow:none; }
.global-expedient-search button { display:grid; place-items:center; flex:0 0 44px; width:44px; height:44px; padding:0; border:0; border-radius:999px; background:transparent; color:var(--blue); cursor:pointer; }
.global-expedient-search button:hover { background:#edf8fa; }
.global-expedient-search button:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
.top-notices { position:relative; display:grid; place-items:center; flex:0 0 44px; width:44px; height:44px; border-radius:999px; color:var(--blue); text-decoration:none; transition:background-color var(--zk-motion),color var(--zk-motion); }
.top-notices:hover,.top-notices[aria-current="page"] { background:#e4f0f4; color:#004f63; }
.top-notices:focus-visible { outline:3px solid var(--blue); outline-offset:2px; }
.top-notices > .material-symbols-rounded { width:24px; height:24px; font-size:24px; }
.top-notices-count { position:absolute; top:-2px; right:-4px; min-width:20px; height:20px; padding:0 4px; border-radius:999px; background:var(--blue); color:#fff; font-size:12px; font-weight:500; line-height:20px; text-align:center; }
.top-notices-count[hidden] { display:none; }
@media(min-width:981px) and (max-width:1200px) { .top-bar { flex-wrap:wrap; } .global-expedient-search { order:3; flex-basis:100%; max-width:none; } }
.profile-pill { min-height:48px; max-width:240px; border:1px solid var(--line); background:white; box-shadow:0 1px 2px #263d4905; border-radius:28px; }
.profile-pill > span:not(.material-symbols-rounded),.profile-pill small { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.skip-to-content { position:fixed; top:12px; left:12px; z-index:10000; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); opacity:0; pointer-events:none; white-space:nowrap; font-size:14px; font-weight:500; text-decoration:none; }
.skip-to-content:focus-visible { width:auto; height:auto; min-height:44px; padding:10px 16px; overflow:visible; clip-path:none; opacity:1; pointer-events:auto; border:1px solid var(--line); border-radius:12px; background:var(--surface); color:var(--blue); box-shadow:var(--shadow); outline:2px solid var(--blue); outline-offset:2px; }
.page-content { width: 100%; max-width: 1440px; flex: 1 0 auto; margin-inline: auto; padding: 20px 32px 32px; }
.page-content:focus { outline:none; }
.context-navigation { display: flex; align-items: center; gap: 12px; min-width: 0; margin: 0 0 12px; }
.context-navigation--overview .context-breadcrumb a { display:inline-flex; align-items:center; min-height:44px; }
.context-back { display: inline-flex; min-height: 44px; flex: 0 0 auto; align-items: center; gap: 8px; padding: 5px 14px 5px 10px; border: 1px solid #c8d3db; border-radius: 999px; background: var(--surface); color: var(--blue); text-decoration: none; transition: background var(--zk-motion), border-color var(--zk-motion), box-shadow var(--zk-motion), transform var(--zk-motion); }
.context-back:hover { border-color: #8db9c3; background: #edf8fa; box-shadow: 0 2px 8px #263d490a; transform: translateX(-1px); }
.context-back > .material-symbols-rounded { width: 24px; height: 24px; font-size: 24px; }
.context-back > span:last-child { display: grid; gap: 0; text-align: left; }
.context-back small { color: var(--muted); font-size: 13px; font-weight: 400; line-height: 16px; }
.context-back strong { font-size: 14px; font-weight: 500; line-height: 17px; }
.context-breadcrumb { display: flex; min-width: 0; align-items: center; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; color: var(--muted); font-size: 13px; line-height: 20px; list-style: none; }
.context-breadcrumb li { display: inline-flex; min-width: 0; align-items: center; gap: 4px; }
.context-breadcrumb a { color: var(--muted); text-decoration: none; }
.context-breadcrumb a:hover { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.context-breadcrumb [aria-current="page"] { overflow: hidden; max-width: min(36vw, 360px); color: var(--text); font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.context-breadcrumb .material-symbols-rounded { width: 18px; height: 18px; color: #89949d; font-size: 18px; }
.page-heading, .registration-hero, .access-heading { margin-bottom: 24px; }
.page-heading h1, .registration-hero h1, .security-page .access-heading h1, .access-heading h1 { font-size: clamp(28px,2.6vw,36px); font-weight: 450; letter-spacing: -.017em; line-height: 1.2; }
.side-nav nav a { font-weight: 450; letter-spacing: .1px; }
.access-eyebrow, .security-page .access-heading .access-eyebrow, .registration-accordion .registration-section-header .eyebrow, .identification-section .registration-section-header .eyebrow, .ai-review-header .eyebrow, .container-ai-source small, .cierre-datum__label, .expediente-doc-dl dt { text-transform: none; font-size: 13px; font-weight: 450; line-height: 1.5; letter-spacing: normal; }
.security-page .access-panel h2, .registration-accordion .registration-section-header h2, .ai-intake-copy h2 { font-weight: 450; letter-spacing: -.017em; }
.page-heading p, .registration-hero-copy > p:last-child, .security-page .access-heading p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.operations-expedient-heading { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.operations-expedient-heading > div { min-width: 0; flex: 1 1 320px; }
.operations-expedient-heading > .secondary-action { margin-left: auto; white-space: nowrap; }
@media (max-width: 600px) { .operations-expedient-heading > .secondary-action { width: 100%; margin-left: 0; } }
.surface, .access-panel, .access-module { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.primary-action, .secondary-action, .security-page .primary-action, .security-cancel, .ai-upload-control { min-height:44px; padding:10px 22px; border-radius:24px; font-size:14px; font-weight:500; display:inline-flex; align-items:center; justify-content:center; gap:8px; line-height:20px; transition:background-color var(--zk-motion),border-color var(--zk-motion),color var(--zk-motion),transform var(--zk-motion); }
.primary-action, .security-page .primary-action { background:var(--blue); color:white; box-shadow:inset 0 1px 0 #ffffff20, 0 2px 4px #006b8310; }
.primary-action:not(:disabled):not([aria-disabled="true"]):hover, .security-page .primary-action:not(:disabled):not([aria-disabled="true"]):hover { background:#005366; box-shadow:inset 0 1px 0 #ffffff20,0 4px 10px #006b831c; transform:translateY(-1px); }
.secondary-action { background: #fff; border: 1px solid #aab7ca; color: var(--blue); }
.secondary-action:hover { background: #e8f6f8; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .6; }
:where(a,button,input,select,textarea,summary):focus-visible { outline: 3px solid #006b83; outline-offset: 3px; }
.side-nav nav a:focus-visible { outline: 3px solid #006b83; outline-offset: 2px; }
.access-form input:not([type=checkbox]), .access-form select, .security-page .access-form input:not([type=checkbox]), .security-page .access-form select { height: var(--zk-control-height); min-height: var(--zk-control-height); border-radius: var(--zk-control-radius); font-size: 16px; font-weight: 400; padding: 12px 14px; }
.access-form label, .security-page .access-form label { font-size: 14px; font-weight: 500; line-height: 20px; }
.access-form label small, .security-page .access-form label small { font-size: 13px; font-weight: 400; line-height: 20px; }
.access-grid, .security-page .access-grid { align-items: start; gap: 24px; }
.security-page .access-grid>label>input:not([type=checkbox]), .security-page .access-grid>label>select { height: 48px; min-height: 48px; max-height: 48px; }
.security-page { width:100%; min-width:0; color:var(--text); }
.security-page [hidden] { display:none!important; }
.security-page .access-heading { margin:8px 0 24px; }
.security-page .access-grid>label:not(.access-check) { display:flex; flex-direction:column; gap:8px; min-width:0; padding-left:0; }
.security-page .access-grid>label.form-label--required::before { left:-10px; line-height:20px; }
.security-page .access-grid>label>input:not([type=checkbox]), .security-page .access-grid>label>select { flex:none; margin:0; }
.security-page .access-grid>label>small { margin:0; }
.security-page .access-stats { display:flex; flex-wrap:wrap; gap:12px 24px; margin-bottom:24px; }
.security-page .access-stats>div { display:flex; align-items:center; gap:8px; padding:0; background:transparent; border:0; box-shadow:none; }
.security-page .access-stats strong { font-size:15px; font-weight:600; color:var(--text); }
.security-page .access-stats span { font-size:13px; color:var(--muted); }
.security-tabs { display:flex; border:1px solid var(--line); border-bottom:0; border-radius:24px 24px 0 0; gap:24px; padding:0 28px; background:var(--surface); }
.security-tabs a { position:relative; display:flex; align-items:center; gap:8px; min-height:64px; padding:16px 0; font-size:14px; font-weight:500; color:var(--muted); text-decoration:none; }
.security-tabs a.is-active { color:var(--blue); }
.security-tabs a.is-active::after { content:""; position:absolute; inset:auto 0 0; height:3px; background:var(--blue); border-radius:3px 3px 0 0; }
.security-tabs a>span:last-child { padding:2px 6px; border-radius:6px; background:var(--bg); font-size:13px; }
.security-page .access-panel { margin:0; padding:28px; border-radius:0 0 24px 24px; box-shadow:var(--shadow); }
.security-page .access-panel--google { margin-top:24px; border-radius:24px; }
.security-page .access-panel>.access-muted { max-width:720px; margin:12px 0 24px; }
.security-toolbar { display:flex; align-items:center; justify-content:space-between; gap:24px; margin:24px 0; color:var(--muted); font-size:14px; }
.security-search { display:flex; align-items:center; gap:12px; border:1px solid var(--line); border-radius:12px; padding:0 16px; flex:1; max-width:480px; min-width:0; }
.security-search input { width:100%; min-width:0; min-height:48px; border:0; background:transparent; font:400 16px "Google Sans Flex",sans-serif; color:var(--text); }
.security-search:focus-within { outline:3px solid var(--blue); outline-offset:3px; }
.security-page .access-row { padding:0; border:1px solid var(--line); border-radius:16px; margin:12px 0; overflow:hidden; }
.security-page .access-row>summary { padding:16px 24px; gap:12px; min-height:72px; box-sizing:border-box; list-style:none; }
.security-page .access-row>summary::-webkit-details-marker { display:none; }
.security-page .access-row>summary:hover { background:var(--bg); }
.security-page .access-row summary strong { font-size:15px; font-weight:500; overflow-wrap:anywhere; }
.security-page .access-row summary small { font-size:13px; line-height:1.5; }
.security-page .access-row[open]>summary { background:var(--bg); border-bottom:1px solid var(--line); }
.security-page .access-row[open]>p { padding:16px 24px; margin:0; color:var(--muted); }
.security-page #usuarios .access-row:not(.security-new)>summary { display:grid; grid-template-columns:40px minmax(0,1fr) auto 64px; gap:12px; }
.security-page #usuarios .access-row>summary>span:nth-child(2) { overflow-wrap:anywhere; }
.security-page #usuarios .access-row>summary>span:last-child { justify-self:end; }
.security-page .access-avatar { width:40px; height:40px; flex-shrink:0; }
.security-page .access-badge { font-size:13px; white-space:normal; }
.security-page #roles summary>.material-symbols-rounded, .security-page .security-new summary>.material-symbols-rounded { display:grid; place-items:center; width:28px; height:28px; flex-shrink:0; font-size:28px; color:var(--blue); }
.security-page .access-form { background:var(--bg); padding:24px; margin:0; gap:24px; }
.security-page .access-form button { justify-self:end; }
.security-page .access-check { align-self:center; min-height:44px; font-weight:400; }
.security-page .access-permissions { border:1px solid var(--line); border-radius:12px; overflow:hidden; background:var(--surface); margin-top:24px; }
.security-page .access-permissions>div { grid-template-columns:minmax(120px,1fr) 100px 100px; min-height:56px; padding:0 16px; font-size:14px; }
.security-page .access-permissions label { min-height:44px; padding:12px; margin:0; cursor:pointer; }
.security-page .access-permission-head { font-size:13px; color:var(--muted); }
.security-page .access-permission-head strong { font-weight:500; }
.security-actions { display:flex; justify-content:flex-end; gap:12px; grid-column:1/-1; padding-top:24px; }
.security-cancel { border:0; background:transparent; color:var(--blue); font-family:inherit; cursor:pointer; }
.security-cancel:hover { background:#e5f5f8; }
.security-empty { padding:24px; text-align:center; color:var(--muted); }
.security-page .security-delete-confirm { margin:0; padding:0 24px 24px; background:var(--bg); }
.security-page .security-delete-confirm>summary { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:8px 12px; border-radius:24px; color:#a12e36; font-size:14px; font-weight:500; cursor:pointer; }
.security-page .security-delete-confirm>summary::marker { content:""; }
.security-page .security-delete-confirm>summary::-webkit-details-marker { display:none; }
.security-page .security-delete-confirm>div { max-width:560px; padding-top:12px; }
.security-page .security-delete-confirm p, .security-page .security-delete-note { margin:0 0 16px; color:var(--muted); font-size:13px; line-height:1.6; }
.security-page .security-delete-note { padding:0 24px 24px; }
.security-page .security-delete-action { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:8px 20px; border:1px solid #d8a8ad; border-radius:24px; background:var(--surface); color:#a12e36; font:500 14px "Google Sans Flex",sans-serif; cursor:pointer; }
.security-page .security-delete-action:hover, .security-page .security-delete-confirm>summary:hover { background:#fff1f1; }
@media (max-width:650px) {
  .security-toolbar { align-items:stretch; flex-direction:column; gap:16px; }
  .security-toolbar button { align-self:flex-start; }
  .security-search { max-width:none; }
  .security-page .access-grid { grid-template-columns:1fr; }
  .security-page .access-row>summary { padding:16px; }
  .security-page #roles summary { flex-wrap:wrap; }
  .security-page .access-permissions>div { grid-template-columns:minmax(90px,1fr) 64px 64px; padding:0 8px; }
  .security-page .security-delete-confirm, .security-page .security-delete-note { padding:0 16px 24px; }
  .security-page #usuarios .access-row:not(.security-new)>summary { grid-template-columns:36px minmax(0,1fr); gap:8px 12px; }
  .security-page #usuarios .access-row>summary>.access-avatar { grid-column:1; grid-row:1 / 3; }
  .security-page #usuarios .access-row>summary>span:nth-child(2) { grid-column:2; grid-row:1; min-width:0; }
  .security-page #usuarios .access-row>summary>.access-badge { grid-column:2; grid-row:2; justify-self:start; }
  .security-page #usuarios .access-row>summary>span:last-child { grid-column:2; grid-row:2; }
}
.module-tabs { margin-bottom: 24px; }
.module-tabs a { min-height: 48px; font-size: 14px; gap: 8px; }
.history-surface, .history-table-wrap { min-width: 0; max-width: 100%; }
.history-search { min-width: 0; width: min(100%,480px); }
.history-search input { min-width: 0; width: 100%; min-height:48px; font-size: 16px; }
.history-search .secondary-action { min-height:44px; }
.history-search:focus-within { outline:3px solid color-mix(in srgb,var(--blue) 24%,transparent); outline-offset:2px; }
.history-table { font-size: 14px; }
.history-table th, .history-table td { padding: 16px; }
.history-view-tools { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:0 0 12px; color:var(--muted); font-size:13px; }
.history-view-button { min-height:44px; padding:8px 16px; border:1px solid var(--line); border-radius:999px; background:#fff; color:var(--blue); font:500 14px "Google Sans Flex",sans-serif; cursor:pointer; }
.history-view-button[aria-pressed="true"] { border-color:#9bcdd8; background:#e7f6fa; color:var(--text); }
.history-view-button:focus-visible { outline:3px solid #006b83; outline-offset:2px; }
.history-table.is-focused .history-optional-column { display:none; }
.registration-form { gap: 24px; max-width: none; width: 100%; }
.material-field, .container-fields-grid .material-field { font-size: 14px; font-weight: 500; gap: 8px; align-content: start; }
.material-field > span, .container-fields-grid .material-field > span { font-size: 14px; white-space: normal; overflow: visible; line-height: 20px; }
.material-field input:not([type="hidden"]), .material-field select, .container-fields-grid .material-field input, .container-fields-grid .material-field select { height: 48px; min-height: 48px; padding: 12px 14px; border-radius: 12px; font-size: 16px; font-weight: 400; }
.registration-accordion-content .material-field textarea { display: block; width: 100%; min-height: 88px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); font: inherit; font-size: 16px; font-weight: 400; line-height: 1.5; resize: vertical; }
.registration-accordion-content .material-field textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 28%, transparent); border-color: var(--blue); }
.registration-accordion-content { padding: 8px 24px 24px; }
.registration-accordion-content .form-grid { gap: 24px; align-items: start; }
.registration-sections { gap: 16px; }
.ai-intake-card { padding: 24px; gap: 20px; }
.ai-intake-copy h2 { font-size: 20px; font-weight: 450; }
.ai-intake-copy p, .ai-privacy-note { font-size: 13px; line-height: 1.6; }
.ai-intake-card .ai-selected-files { grid-column: 1 / -1; order: 1; align-items: flex-start; gap: 12px; margin: 0; padding: 4px 0; border: 0; border-radius: 0; background: transparent; }
.ai-intake-card .ai-selected-files > .material-symbols-rounded { width: 24px; height: 24px; margin: 0; font-size: 24px; color: var(--blue); }
.ai-intake-card .ai-selected-files > div { gap: 4px; }
.ai-intake-card .ai-selected-files strong { font-size: 14px; line-height: 24px; font-weight: 500; color: var(--text); }
.ai-intake-card .ai-selected-files small { font-size: 13px; line-height: 20px; color: var(--muted); white-space: normal; overflow-wrap: anywhere; }
.ai-intake-card .ai-selected-files.has-files { padding: 16px; border: 1px solid #c9e3e9; border-radius: 16px; background: #f4fafb; }
.ai-intake-card .ai-privacy-note { grid-column: 1 / -1; order: 2; align-items: flex-start; gap: 12px; max-width: 78ch; margin: 0; padding: 0; font-size: 14px; line-height: 22px; color: var(--muted); }
.ai-intake-card .ai-privacy-note > .material-symbols-rounded { width: 24px; height: 24px; font-size: 20px; line-height: 22px; flex-shrink: 0; }
.document-drop > .material-symbols-rounded { background: transparent; box-shadow: none; font-size: 32px; }
/* A top accent identifies a workflow stage; reference, catalog and dashboard cards stay neutral. */
.workflow-stage-surface { --workflow-accent:var(--blue); border-top:4px solid var(--workflow-accent); border-radius:24px; }
[data-capture-tone="identification"], .identification-section { --section-accent: #006b83; }
[data-capture-tone="participants"], .participant-section { --section-accent: #7040a0; }
[data-capture-tone="transport"], .transport-section { --section-accent: #087f78; }
[data-capture-tone="containers"], .containers-section { --section-accent: #a45b09; }
[data-capture-tone="cargo"], .cargo-section { --section-accent: #28743e; }
.capture-order-heading { align-items: baseline; flex-wrap: wrap; gap: 8px 24px; }
.capture-order-heading p { font-size: 16px; font-weight: 500; }
.capture-order-heading > span { font-size: 14px; line-height: 1.5; }
.capture-order-track { gap: 12px; }
.capture-order-step { position: relative; grid-template-columns: minmax(0,1fr) auto; grid-template-rows: 32px auto; align-content: start; align-items: start; gap: 16px 12px; min-height: 140px; border-radius: 20px; padding: 20px; border-top: 3px solid var(--section-accent); background: white; box-shadow: none; }
.capture-order-step.is-current { border-color: var(--section-accent); background: white; box-shadow: none; }
.capture-order-step .capture-order-icon { width: 32px; height: 32px; font-size: 32px; color: var(--section-accent); background: transparent; font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 32; }
.capture-order-step .capture-order-number { width: auto; height: 32px; align-self: start; background: transparent; color: var(--muted); border-radius: 0; font-size: 13px; font-weight: 450; font-variant-numeric: tabular-nums; }
.capture-order-step.is-current .capture-order-number, .capture-order-step.is-complete .capture-order-number { background: transparent; color: var(--section-accent); }
.capture-order-step > div { grid-column: 1 / -1; gap: 4px; }
.capture-order-step strong { font-size: 16px; font-weight: 500; line-height: 24px; white-space: normal; overflow: visible; overflow-wrap: anywhere; }
.capture-order-step small { font-size: 13px; line-height: 20px; color: var(--muted); }
.registration-accordion.workflow-stage-surface { --workflow-accent:var(--section-accent); border-radius:24px; }
.registration-accordion.workflow-stage-surface::before { content:none; }
.registration-accordion .section-icon, .registration-accordion .registration-section-header .eyebrow { color: var(--section-accent); }
.registration-accordion[open] { border-color: color-mix(in srgb, var(--section-accent) 40%, var(--line)); }
.registration-accordion.workflow-stage-surface[open] { border-top-color:var(--section-accent); }
@media(min-width:651px) and (max-width:1200px) { .capture-order-track { grid-template-columns: repeat(3,minmax(0,1fr)); } }
.registration-accordion { border-radius: 20px; box-shadow: none; }
.registration-accordion .registration-section-header { padding: 20px 24px; min-height: 96px; }
.registration-accordion .registration-section-header h2 { font-size: 22px; font-weight: 450; }
.registration-accordion .registration-section-header p:last-child { font-size: 13px; line-height: 1.5; }
.registration-accordion .registration-section-header .eyebrow { font-size: 13px; }
.registration-section-progress, .registration-section-progress strong { font-size: 12px; }
.container-capture-card { border-radius: 16px; box-shadow: none; }
.container-capture-card > header { padding: 16px; }
.container-capture-card > header strong { font-size: 15px; }
.container-capture-card > header small, .container-section-heading p { font-size: 13px; }
.container-seal-panel { margin: 0 16px 16px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.container-seal-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.container-seal-panel-heading > div { display: grid; gap: 4px; }
.container-seal-panel-heading strong { font-size: 15px; font-weight: 500; color: var(--text); }
.container-seal-panel-heading p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.container-seal-panel .container-add-action { min-height: 44px; font-size: 14px; font-weight: 500; }
.container-seal-history { display: grid; gap: 12px; margin-top: 12px; }
.container-seal-history:empty { display: none; }
.container-seal-entry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 12px 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.container-seal-entry .material-field { min-width: 0; }
.container-seal-entry .material-field textarea { display: block; width: 100%; min-height: 72px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); font: inherit; font-size: 16px; resize: vertical; }
.container-seal-entry .material-field textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 28%, transparent); border-color: var(--blue); }
.container-seal-entry .material-field input[readonly] { background: var(--surface); color: var(--text); }
.container-seal-audit { font-size: 13px; color: var(--muted); }
.container-seal-cancel { justify-self: end; min-height: 44px; border: 0; background: transparent; color: var(--blue); font: inherit; font-size: 14px; cursor: pointer; }
@media(max-width:650px) { .container-seal-panel { margin: 0 12px 12px; padding: 12px; } .container-seal-panel-heading { align-items: stretch; flex-direction: column; } .container-seal-entry { grid-template-columns: 1fr; } .container-seal-cancel { justify-self: start; } }
.registration-actions { padding: 24px; border-radius: 24px; }
.access-module { padding: 28px; transition: border-color var(--zk-motion),box-shadow var(--zk-motion); }
.access-module:hover { box-shadow: 0 4px 16px #263d490b; }
.app-footer { width: 100%; max-width: 1440px; flex: 0 0 auto; margin: 0 auto; padding: 24px 32px max(28px, env(safe-area-inset-bottom)); border: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.app-footer a { font-weight: 500; }
.app-footer a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.public-footer { width: min(1200px, calc(100% - 32px)); padding-inline: 0; }

/* MG Guía: el color se desplaza solo por el contorno; el botón permanece inmóvil. */
.mg-guide { position: relative; display: inline-flex; flex: 0 0 auto; align-items: center; z-index: 6; font-family: inherit; }
.mg-guide-launch { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; min-width: 48px; padding: 0 15px; border: 2px solid transparent; border-radius: 999px; background: linear-gradient(#fff,#fff) padding-box, linear-gradient(105deg,#006b83,#00b4e5,#a0c4ef,#5b8fc3,#006b83) border-box; background-size: 100% 100%, 240% 100%; color: #17495b; box-shadow: 0 3px 12px #263d4912; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; animation: mg-guide-border-flow 5s ease-in-out infinite alternate; transition: box-shadow 180ms ease; }
.mg-guide-launch:hover { box-shadow: 0 5px 16px #263d491b; }
.mg-guide-launch:focus-visible,.mg-guide-close:focus-visible,.mg-guide-form button:focus-visible,.mg-guide-actions a:focus-visible { outline: 3px solid #006b83; outline-offset: 3px; }
.mg-guide-launch > .material-symbols-rounded { width: 24px; height: 24px; color: #006b83; font-size: 24px; }
.mg-guide-launch__label { position: relative; white-space: nowrap; }
.mg-guide[data-state="open"] .mg-guide-launch { box-shadow: 0 0 0 3px #00b4e51a, 0 5px 16px #263d491b; }
.mg-guide[data-state="thinking"] .mg-guide-launch { animation-duration: 1.5s; }
.mg-guide-panel { position: fixed; top: 84px; right: 32px; display: flex; flex-direction: column; width: min(420px, calc(100vw - 32px)); max-height: min(680px, calc(100dvh - 104px)); overflow: hidden; border: 1px solid #bbdce3; border-radius: 28px; background: #fff; box-shadow: 0 18px 58px #263d4925, 0 4px 14px #263d4912; transform-origin: top right; animation: mg-guide-enter 220ms cubic-bezier(.18,.8,.22,1) both; }
.mg-guide-panel[hidden] { display: none; }
.mg-guide-panel::before { position: absolute; top: 0; left: 24px; right: 24px; height: 3px; border-radius: 0 0 999px 999px; background: linear-gradient(90deg, #006b83, #00b4e5 48%, #6dc7d4); content: ""; transform-origin: left; animation: mg-guide-sweep 420ms ease-out both; }
.mg-guide[data-state="thinking"] .mg-guide-panel::before { background-size: 220% 100%; animation: mg-guide-flow 1.3s linear infinite; }
.mg-guide-head { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; padding: 20px 20px 14px; }
.mg-guide-emblem { display: grid; place-items: center; width: 32px; height: 32px; border: 0; color: #006b83; background: transparent; }
.mg-guide-emblem .material-symbols-rounded { width: 32px; height: 32px; font-size: 32px; font-variation-settings:'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 32; }
.mg-guide-head__copy { display: grid; flex: 1; line-height: 1.25; }
.mg-guide-head__copy strong { color: #263d49; font-size: 16px; font-weight: 500; }
.mg-guide-head__copy small { color: #60737d; font-size: 13px; }
.mg-guide-close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: #48616d; cursor: pointer; }
.mg-guide-close:hover { background: #f0f6f8; }
.mg-guide-close .material-symbols-rounded { width: 24px; height: 24px; font-size: 24px; }
.mg-guide-scroll { min-height: 0; overflow-y: auto; padding: 4px 20px 18px; overscroll-behavior: contain; }
.mg-guide-intro h2 { margin: 8px 0 5px; color: #263d49; font-size: 25px; font-weight: 450; letter-spacing: -.017em; line-height: 1.16; }
.mg-guide-intro p { margin: 0; color: #526774; font-size: 14px; line-height: 1.55; }
.mg-guide-messages { display: grid; gap: 12px; margin-top: 20px; }
.mg-guide-message { max-width: 92%; padding: 12px 15px; border-radius: 16px; background: #f3f8fa; color: #263d49; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.mg-guide-message--user { justify-self: end; border-radius: 16px 16px 4px 16px; background: #e4f4f8; }
.mg-guide-message--guide { justify-self: start; border-radius: 16px 16px 16px 4px; }
.mg-guide-message--thinking { display: flex; gap: 6px; align-items: center; min-height: 42px; }
.mg-guide-message--thinking i { width: 5px; height: 5px; border-radius: 50%; background: #006b83; animation: mg-guide-breathe 1s ease-in-out infinite; }
.mg-guide-message--thinking i:nth-child(2) { animation-delay: .16s; }.mg-guide-message--thinking i:nth-child(3) { animation-delay: .32s; }
.mg-guide-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.mg-guide-actions a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid #bbd9e1; border-radius: 999px; background: #fff; color: #006b83; font-size: 14px; font-weight: 500; line-height: 1.25; text-decoration: none; transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease; }
.mg-guide-actions a:hover { border-color: #006b83; background: #eff8fa; transform: translateY(-1px); }
.mg-guide-actions .material-symbols-rounded { width: 20px; height: 20px; font-size: 20px; }
.mg-guide-form { display: flex; align-items: end; gap: 8px; flex: 0 0 auto; margin: 0 16px; padding: 6px 6px 6px 14px; border: 1px solid #b9d3dc; border-radius: 20px; background: #fff; }
.mg-guide-form:focus-within { border-color: #006b83; box-shadow: 0 0 0 3px #00b4e526; }
.mg-guide-form textarea { flex: 1; width: 100%; min-width: 0; min-height: 44px; max-height: 120px; padding: 8px 0; border: 0; outline: 0; resize: none; background: transparent; color: #263d49; font: inherit; font-size: 16px; line-height: 1.35; }
.mg-guide-form textarea::placeholder { color: #71818a; }
.mg-guide-form textarea:focus { box-shadow: none; }
.mg-guide-form button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 0; border-radius: 999px; background: #006b83; color: #fff; cursor: pointer; }
.mg-guide-form button:hover { background: #005c70; }
.mg-guide-form button:disabled { opacity: .55; cursor: wait; }
.mg-guide-note { margin: 8px 20px 16px; color: #637782; font-size: 13px; line-height: 1.5; }
@keyframes mg-guide-border-flow { from { background-position: 0 0, 0 0; } to { background-position: 0 0, 100% 0; } }
@keyframes mg-guide-breathe { 0%,100% { opacity: .55; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes mg-guide-enter { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes mg-guide-sweep { from { transform: scaleX(.12); opacity: .35; } to { transform: scaleX(1); opacity: 1; } }
@keyframes mg-guide-flow { to { background-position: -220% 0; } }
@media (max-width: 650px) {
  .mg-guide-launch { width: 48px; min-width: 48px; min-height: 48px; padding: 0; }
  .mg-guide-launch__label { display: none; }
  .mg-guide-panel { top: 76px; right: 16px; max-height: calc(100dvh - 92px); }
}
@media (prefers-reduced-motion: reduce) {
  .mg-guide-launch,.mg-guide-actions a { transition: none; }
  .mg-guide-launch,.mg-guide-panel,.mg-guide-panel::before,.mg-guide-message--thinking i { animation: none !important; }
}
.operations-sections, .operations-list { display: grid; gap: 24px; }
.operations-panel { padding: 28px; min-width: 0; }
.operations-panel h2 { margin: 8px 0 16px; font-size: 24px; font-weight: 450; }
.operations-panel p, .operations-panel li { font-size: 14px; line-height: 1.6; }
.operations-traffic-context { overflow:hidden; min-width:0; box-shadow:0 2px 10px #263d4908; }
.operations-traffic-context > summary { display:grid; grid-template-columns:28px minmax(0,1fr) auto; align-items:center; gap:14px; min-height:76px; padding:14px 20px; cursor:pointer; list-style:none; }
.operations-traffic-context > summary::-webkit-details-marker { display:none; }
.operations-traffic-context-icon { width:28px; height:28px; color:#24774a; background:transparent; font-size:28px; }
.operations-traffic-context-copy { display:grid; min-width:0; gap:2px; }
.operations-traffic-context-copy small { color:#24774a; font-size:13px; font-weight:500; line-height:20px; }
.operations-traffic-context-copy strong { display:flex; min-width:0; align-items:baseline; flex-wrap:wrap; gap:2px 8px; color:var(--text); font-size:16px; font-weight:450; line-height:24px; }
.operations-traffic-context-copy strong span { min-width:0; overflow-wrap:anywhere; }
.operations-traffic-context-copy strong span + span::before { margin-right:8px; color:#8a9aa2; content:"·"; }
.operations-traffic-context-action { display:inline-flex; align-items:center; gap:6px; color:var(--blue); font-size:14px; font-weight:500; white-space:nowrap; }
.operations-traffic-context-action .when-open { display:none; }
.operations-traffic-context[open] .operations-traffic-context-action .when-closed { display:none; }
.operations-traffic-context[open] .operations-traffic-context-action .when-open { display:inline; }
.operations-traffic-context-action .material-symbols-rounded { width:22px; height:22px; background:transparent; font-size:22px; }
.operations-traffic-context[open] .operations-traffic-context-action .operations-card-chevron { transform:rotate(180deg); }
.operations-traffic-context-detail { padding:20px; border-top:1px solid var(--line); background:#fbfcfd; }
.operations-traffic-detail-heading { display:grid; grid-template-columns:24px minmax(0,1fr); align-items:start; gap:10px; }
.operations-traffic-detail-heading > .material-symbols-rounded { width:24px; height:24px; color:var(--muted); background:transparent; font-size:24px; }
.operations-traffic-detail-heading strong { display:block; color:var(--text); font-size:15px; font-weight:500; line-height:22px; }
.operations-traffic-detail-heading p { margin:2px 0 0; color:var(--muted); font-size:13px; line-height:20px; }
.operations-traffic-context .operations-data { gap:12px; margin:18px 0; }
.operations-traffic-context .operations-data > div { min-width:0; padding:14px 16px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.operations-traffic-context .operations-data dt { color:var(--muted); font-size:12px; line-height:18px; }
.operations-traffic-context .operations-data dd { margin:3px 0 0; overflow-wrap:anywhere; color:var(--text); font-size:15px; font-weight:500; line-height:22px; }
.operations-traffic-documents { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
.operations-traffic-documents a { display:inline-flex; min-height:44px; align-items:center; gap:8px; padding:9px 14px; border:1px solid var(--line); border-radius:999px; color:var(--blue); font-size:14px; font-weight:500; text-decoration:none; }
.operations-traffic-documents a:hover { border-color:var(--blue); background:#f4fafb; }
.operations-traffic-documents a .material-symbols-rounded { width:20px; height:20px; background:transparent; font-size:20px; }
.operations-traffic-documents p { margin:0; color:var(--muted); font-size:13px; line-height:20px; }
.operations-file { display: flex; align-items: center; gap: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; color: var(--text); text-decoration: none; }
.operations-file > div { flex: 1; min-width: 0; }
.operations-file > .material-symbols-rounded { color: var(--blue); background: transparent; }
.operations-file:hover { border-color: var(--blue); }
.operations-version-notice { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: #8a5600; font-size: 13px; font-weight: 500; }
.operations-version-notice--success { color: #157347; }
.operations-version-notice .material-symbols-rounded { font-size: 20px; }
.operations-traffic-update { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 16px 0 24px; border: 1px solid #efdcac; }
.operations-traffic-update > .material-symbols-rounded { font-size: 24px; }
.operations-traffic-update > div { flex: 1 1 320px; }
.operations-traffic-update strong { display: block; font-weight: 500; }
.operations-traffic-update p { margin: 4px 0 0; line-height: 1.5; }
.operations-traffic-update form { margin-left: auto; }
@media (max-width: 600px) { .operations-traffic-update form,.operations-traffic-update .secondary-action { width: 100%; } }
.maritime-detail,.maritime-list { min-width:0; margin: 24px 0; padding: clamp(20px,3vw,32px); }
.maritime-list { overflow:hidden; contain:paint; }
.maritime-list .traffic-attention-table td small { display:block; margin-top:4px; font-size:13px; color:var(--muted); }
.maritime-list-heading h2 { scroll-margin-top:120px; }
.maritime-detail-heading,.maritime-list-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; }
.maritime-detail-heading h2,.maritime-list-heading h2 { margin:4px 0 8px; }
.maritime-detail-heading p,.maritime-list-heading p { margin:0; color:var(--muted); }
.maritime-current-state { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:24px 0; }
.maritime-current-state > div { min-width:0; padding:16px; border:1px solid var(--line); border-radius:16px; }
.maritime-current-state > div > span { display:block; margin-bottom:8px; color:var(--muted); font-size:13px; }
.maritime-current-state strong { font-size:16px; font-weight:500; overflow-wrap:anywhere; }
.maritime-forms { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin-top:24px; }
.maritime-form { display:grid; grid-template-columns:minmax(0,1fr); min-width:0; align-content:start; gap:16px; padding:24px; border:1px solid var(--line); border-radius:16px; scroll-margin-top:120px; }
.maritime-form h3,.maritime-history h3 { margin:0; font-size:20px; font-weight:450; }
.maritime-form p { margin:0; color:var(--muted); }
.maritime-form .material-field { margin:0; min-width:0; }
.maritime-form .material-field[hidden] { display:none; }
.maritime-form .primary-action { justify-self:start; min-width:0; max-width:100%; white-space:normal; }
.maritime-history { margin-top:32px; }
.maritime-history ol { display:grid; gap:12px; margin:16px 0 0; padding:0; list-style:none; }
.maritime-history li { display:grid; gap:4px; padding:16px; border:1px solid var(--line); border-radius:12px; }
.maritime-history li strong { font-weight:500; }
.maritime-history li span,.maritime-history li small { color:var(--muted); }
.maritime-history li p { margin:0; }
.maritime-search { display:flex; align-items:end; gap:12px; margin:24px 0; }
.maritime-search .material-field { flex:1; margin:0; }
.maritime-home-notices { margin:24px 0; padding:clamp(20px,3vw,32px); }
.maritime-home-notice { display:flex; align-items:center; gap:16px; margin-top:12px; padding:16px; border:1px solid var(--line); border-radius:16px; color:var(--text); text-decoration:none; }
.maritime-home-notice:hover { border-color:var(--blue); }
.maritime-home-notice > .material-symbols-rounded { color:var(--blue); }
.maritime-home-notice > span:nth-child(2) { flex:1; min-width:0; }
.maritime-home-notice strong,.maritime-home-notice small { display:block; }
.maritime-home-notice small { margin-top:4px; color:var(--muted); }
.release-detail { min-width:0; margin:24px 0; padding:clamp(20px,3vw,32px); }
.release-summary { display:flex; align-items:center; flex-wrap:wrap; gap:16px; margin:24px 0; }
.release-summary > span:last-child { color:var(--muted); font-size:14px; }
.release-payment-form { display:grid; gap:20px; padding:24px; border:1px solid var(--line); border-radius:16px; }
.release-payment-form h3,.release-payments h3 { margin:0 0 4px; font-size:20px; font-weight:450; }
.release-payment-form p { margin:0; color:var(--muted); }
.release-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 24px; }
.release-fields .material-field { min-width:0; margin:0; }
.release-fields input[type=file] { min-height:48px; padding:10px; }
.release-payment-form > .primary-action { justify-self:start; }
.release-authorize-form { display:grid; gap:16px; margin:24px 0; padding:24px; border:1px solid #b7d9c1; border-radius:16px; background:#f7fbf8; }
.release-authorize-form h3 { margin:0 0 4px; font-size:20px; font-weight:450; }
.release-authorize-form p { margin:0; }
.release-authorize-form .primary-action { justify-self:start; }
.release-upload-progress { font-size:14px; }
.release-upload-progress.is-error { color:#a82323; }
.release-payments { margin-top:32px; }
.release-payments > p { color:var(--muted); }
.release-payment { display:grid; gap:16px; margin-top:12px; padding:20px; border:1px solid var(--line); border-radius:16px; }
.release-payment-heading { display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:12px; }
.release-payment-heading strong,.release-payment-heading span:not(.traffic-status) { display:block; }
.release-payment-heading strong { font-weight:500; }
.release-payment-heading span:not(.traffic-status) { margin-top:4px; color:var(--muted); font-size:14px; }
.release-payment > .secondary-action { justify-self:start; }
.release-payment > p { margin:0; font-size:14px; }
.release-review-form { display:grid; gap:12px; padding-top:16px; border-top:1px solid var(--line); }
.release-review-actions { display:flex; flex-wrap:wrap; gap:12px; }
@media (max-width:720px) { .release-fields { grid-template-columns:1fr; } .release-payment-form > .primary-action,.release-authorize-form .primary-action,.release-payment > .secondary-action,.release-review-form button { width:100%; } .release-review-actions { flex-direction:column; } }
@media (max-width: 720px) { .maritime-detail-heading,.maritime-search { flex-direction:column; align-items:stretch; } .maritime-current-state,.maritime-forms { grid-template-columns:1fr; } .maritime-form .primary-action { justify-self:stretch; } }
.operations-data { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 24px; margin: 24px 0; }
.operations-source { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.operations-master-source { margin-block: 16px; overflow-wrap: anywhere; }
.operations-master-source p { white-space: pre-line; }
.ai-evidence-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 26px; border-top: 1px solid var(--line, #e0e7ed); background: #fff; }
.ai-evidence-legend { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.ai-evidence-legend > .material-symbols-rounded { color: #956500; font-size: 28px; flex: 0 0 28px; background: none; }
.ai-evidence-legend strong { display: block; font-size: 15px; font-weight: 500; color: #263d49; }
.ai-evidence-legend p { margin: 4px 0 0; max-width: 52ch; font-size: 14px; line-height: 1.5; color: var(--muted); }
.ai-evidence-toolbar > button { flex-shrink: 0; min-height: 44px; margin: 0; }
.ai-evidence-modal-content > header { padding: 28px 80px 24px 28px; min-height: 104px; }
.ai-evidence-modal-content > header p { font-size: 14px; line-height: 1.5; }
.ai-evidence-dialog { position: relative; }
.ai-evidence-dialog .ai-evidence-close {
    position: absolute;
    top: 20px;
    right: 20px;
    float: none;
    z-index: 4;
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    color: #5f6368;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color var(--zk-motion), color var(--zk-motion), transform var(--zk-motion);
}
.ai-evidence-dialog .ai-evidence-close .material-symbols-rounded {
    width: 24px;
    height: 24px;
    color: currentColor;
    font-size: 24px;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.ai-evidence-dialog .ai-evidence-close:hover { background: #edf2f4; color: #263d49; }
.ai-evidence-dialog .ai-evidence-close:active { background: #e3eaed; transform: scale(.96); }
.ai-evidence-dialog .ai-evidence-close:focus-visible { outline: 3px solid #9bd8e3; outline-offset: 2px; }
@media (max-width: 600px) {
    .ai-evidence-toolbar { align-items: stretch; flex-direction: column; gap: 16px; padding: 20px; }
    .ai-evidence-toolbar > button { align-self: flex-start; }
    .ai-evidence-modal-content > header { padding: 24px 76px 20px 20px; }
    .ai-evidence-dialog .ai-evidence-close { top: 12px; right: 12px; }
}
.operations-panel dt { font-size: 13px; color: var(--muted); }
.operations-panel dd { margin: 4px 0 16px; font-size: 16px; overflow-wrap: anywhere; white-space: pre-wrap; }
.operations-item { margin-top: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.operations-item h3 { margin: 0; font-size: 20px; font-weight: 450; }
.operations-classification-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.operations-classification-heading > .material-symbols-rounded { width: 28px; height: 28px; color: var(--blue); font-size: 28px; background: transparent; }
.operations-classification-heading p { margin: 0 0 2px; color: var(--muted); font-size: 13px; line-height: 20px; }
.operations-ai-suggestion { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 12px; margin-bottom: 20px; padding: 16px; border: 1px solid #c8e1e7; border-radius: 16px; background: #f5fafb; }
.operations-ai-suggestion > .material-symbols-rounded { width: 28px; height: 28px; color: #7040a0; font-size: 28px; background: transparent; }
.operations-ai-suggestion div { display: grid; gap: 3px; min-width: 0; }
.operations-ai-suggestion span:not(.material-symbols-rounded) { color: var(--muted); font-size: 13px; line-height: 20px; }
.operations-ai-suggestion strong { font-size: 16px; font-weight: 500; line-height: 24px; overflow-wrap: anywhere; }
.operations-ai-suggestion p { margin: 2px 0 0; color: var(--muted); font-size: 13px; line-height: 20px; }
.operations-ai-suggestion.is-accepted { border-color:#b9dcc7; background:#f4fbf6; }
.operations-ai-suggestion.is-accepted > .material-symbols-rounded { color:#278052; }
.operations-category-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:20px 0 0; }
.operations-category-actions form { margin:0; }
.operations-category-chooser { display:none; }
.operations-category-chooser.is-open { display:block; }
.operations-classification-form { display: grid; grid-template-columns: minmax(220px,.8fr) minmax(280px,1.2fr) auto; align-items: end; gap: 12px 16px; margin: 20px 0 24px; padding: 20px; border-radius: 16px; background: #f7fafc; }
.operations-classification-form label { min-width: 0; }
.operations-classification-form [data-type-count] { grid-column: 1 / 3; margin: -4px 0 0; color: var(--muted); font-size: 13px; line-height: 20px; }
.operations-classification-form button { grid-column: 3; grid-row: 1; }
.operations-search-control { position: relative; }
.operations-search-control > .material-symbols-rounded { position: absolute; z-index: 1; top: 12px; left: 14px; width: 24px; height: 24px; color: var(--muted); font-size: 24px; background: transparent; pointer-events: none; }
.operations-search-control input[type="search"] { width: 100%; padding-left: 48px; }
.operations-results-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.operations-results-heading h2 { margin-bottom: 8px; }
.operations-results-heading p:last-child { margin: 0; color: var(--muted); }
.operations-result-count { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; min-height: 44px; color: var(--blue); font-size: 14px; }
.operations-result-count .material-symbols-rounded { width: 28px; height: 28px; font-size: 28px; background: transparent; }
.operations-result-count strong { font-size: 20px; font-weight: 500; }
.operations-result-count > span:not(.material-symbols-rounded) { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 0 5px; }
.operations-result-count small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 18px; }
.operations-stage { --operations-stage-color: #006b83; --operations-stage-soft: #eaf6f8; --operations-stage-line: #c1dfe5; position: relative; overflow: hidden; border-color: var(--operations-stage-line); box-shadow: 0 3px 14px #263d4909; }
.operations-stage::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--operations-stage-color); }
.operations-stage--upload { --operations-stage-color: #5c4ab3; --operations-stage-soft: #f4f1ff; --operations-stage-line: #d9d1f1; }
.operations-stage--results { --operations-stage-color: #00796b; --operations-stage-soft: #edf8f5; --operations-stage-line: #c3e4dc; }
.operations-stage--classification { --operations-stage-color: #956500; --operations-stage-soft: #fff8e9; --operations-stage-line: #ead5a9; }
.operations-stage--validation { --operations-stage-color: #2e7d4f; --operations-stage-soft: #eff8f2; --operations-stage-line: #c7e1d0; }
.operations-stage-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin: 0 0 24px; padding: 4px 0 22px; border-bottom: 1px solid var(--operations-stage-line); }
.operations-results-heading.operations-stage-header { align-items: flex-start; margin-bottom: 24px; }
.operations-stage-heading { display: grid; grid-template-columns: 36px minmax(0,1fr); align-items: start; gap: 16px; min-width: 0; }
.operations-stage-heading > .material-symbols-rounded { width: 32px; height: 32px; margin-top: 2px; color: var(--operations-stage-color); background: transparent; font-size: 32px; }
.operations-stage-heading .access-eyebrow { margin: 0 0 2px; color: var(--operations-stage-color); font-size: 13px; font-weight: 500; line-height: 20px; }
.operations-panel .operations-stage-heading h2 { margin: 0 0 6px; font-size: 24px; line-height: 1.2; }
.operations-stage-heading p:last-child { max-width: 72ch; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.operations-stage-state { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; min-height: 36px; padding: 7px 12px; border: 1px solid var(--operations-stage-line); border-radius: 999px; background: var(--operations-stage-soft); color: var(--operations-stage-color); font-size: 13px; font-weight: 500; line-height: 20px; }
.operations-stage-state .material-symbols-rounded { width: 18px; height: 18px; background: transparent; font-size: 18px; }
.operations-stage--upload .operations-drop { border-color: #b9afe3; background: #faf9ff; }
.operations-stage--upload .operations-upload-step > .material-symbols-rounded, .operations-stage--upload .operations-drop > .material-symbols-rounded { color: var(--operations-stage-color); }
.operations-stage--results .operations-result-count { color: var(--operations-stage-color); }
.operations-stage--results .operations-merchandise-card[open] { border-color: var(--operations-stage-line); }
.operations-stage--classification .operations-item { border-color: #eadfc6; }
.operations-stage--classification .operations-classification-heading > .material-symbols-rounded { color: var(--operations-stage-color); }
.operations-stage--validation .operations-actions { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--operations-stage-line); }
.operations-validation-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.operations-validation-group { --validation-accent:#006b83; --validation-line:#c8dde3; display:flex; min-width:0; min-height:220px; padding:22px; border:1px solid var(--validation-line); border-radius:20px; background:#fff; flex-direction:column; box-shadow:0 2px 8px #263d4908; }
.operations-validation-group--classification { --validation-accent:#5c4ab3; --validation-line:#d9d1f1; }
.operations-validation-group--missing { --validation-accent:#a33a32; --validation-line:#edcbc7; }
.operations-validation-group--requirements { --validation-accent:#956500; --validation-line:#ead5a9; }
.operations-validation-group--images { --validation-accent:#00796b; --validation-line:#c3e4dc; }
.operations-validation-group-heading { display:grid; grid-template-columns:32px minmax(0,1fr); align-items:start; gap:14px; }
.operations-validation-group-heading > .material-symbols-rounded { width:32px; height:32px; color:var(--validation-accent); background:transparent; font-size:32px; }
.operations-validation-group-heading strong,.operations-validation-group-heading span { display:block; }
.operations-validation-group-heading strong { color:var(--text); font-size:30px; font-weight:450; line-height:32px; letter-spacing:-.017em; }
.operations-validation-group-heading div > span { margin-top:4px; color:var(--text); font-size:17px; font-weight:500; line-height:24px; }
.operations-validation-group > p { margin:14px 0 20px; color:var(--muted); font-size:14px; line-height:1.55; }
.operations-validation-group-actions { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-top:auto; }
.operations-validation-group-actions details { min-width:0; flex:1 1 auto; }
.operations-validation-group-actions summary { display:inline-flex; min-height:44px; align-items:center; gap:6px; color:var(--validation-accent); font-size:14px; font-weight:500; cursor:pointer; list-style:none; }
.operations-validation-group-actions summary::-webkit-details-marker { display:none; }
.operations-validation-group-actions summary .material-symbols-rounded { width:20px; height:20px; background:transparent; font-size:20px; transition:transform var(--zk-motion); }
.operations-validation-group-actions details[open] summary .material-symbols-rounded { transform:rotate(180deg); }
.operations-validation-group-actions ul { max-height:220px; overflow:auto; margin:8px 0 0; padding:10px 0 0; border-top:1px solid var(--validation-line); list-style:none; }
.operations-validation-group-actions li { display:grid; gap:2px; padding:8px 4px; }
.operations-validation-group-actions li + li { border-top:1px solid #e7edf0; }
.operations-validation-group-actions li span { color:var(--muted); font-size:12px; line-height:18px; }
.operations-validation-group-actions li strong { overflow-wrap:anywhere; color:var(--text); font-size:14px; font-weight:450; line-height:20px; }
.operations-validation-group-actions .secondary-action { flex:0 0 auto; min-height:44px; color:var(--validation-accent); border-color:var(--validation-line); }
.operations-validation-group-actions .secondary-action .material-symbols-rounded { width:20px; height:20px; background:transparent; font-size:20px; }
.operations-validation-complete { display:inline-flex; align-items:center; gap:8px; min-height:44px; margin-top:auto; color:#24774a; font-size:14px; font-weight:500; }
.operations-validation-complete .material-symbols-rounded { width:22px; height:22px; color:#24774a; background:transparent; font-size:22px; }
@media (max-width:900px) { .operations-validation-summary { grid-template-columns:1fr; } }
@media (max-width:520px) { .operations-validation-group { min-height:0; padding:18px; } .operations-validation-group-actions { align-items:stretch; flex-direction:column; } .operations-validation-group-actions .secondary-action { width:100%; justify-content:center; } }
.operations-merchandise-list { display: grid; gap: 16px; }
.operations-extraction-overview { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 20px; margin:0 0 16px; border:1px solid var(--outline, #d7e1e6); border-radius:16px; background:#f8fbfc; }
.operations-extraction-counts,.operations-extraction-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.operations-extraction-counts span { color:#536771; font-size:14px; }
.operations-extraction-counts strong { color:#263d49; font-size:18px; margin-right:4px; }
.operations-extraction-counts .has-exceptions strong { color:#9a5b00; }
.operations-extraction-actions form { margin:0; }
.operations-image-review-overview { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px; overflow:hidden; margin:0 0 20px; border:1px solid #d7e1e6; border-radius:16px; background:#d7e1e6; }
.operations-image-review-overview > span { display:flex; align-items:center; gap:8px; min-height:60px; padding:12px 16px; background:#fff; color:#536771; font-size:14px; }
.operations-image-review-overview .material-symbols-rounded { width:24px; height:24px; color:#278052; background:transparent; font-size:24px; }
.operations-image-review-overview strong { color:#263d49; font-size:18px; font-weight:500; }
.operations-image-review-overview .is-pending .material-symbols-rounded { color:#956500; }
.operations-image-review-overview .is-complete { color:#278052; }
.operations-weight-check { display:flex; gap:14px; padding:16px 20px; margin:0 0 20px; border-radius:16px; border:1px solid #d7e1e6; background:#f8fbfc; }
.operations-weight-check > .material-symbols-rounded { font-size:28px; color:#006b83; }
.operations-weight-check strong,.operations-weight-check p,.operations-weight-check span { display:block; }
.operations-weight-check p { margin:2px 0 4px; }
.operations-weight-check span { color:#60717a; font-size:13px; }
.operations-weight-check.needs-review { border-color:#efd3a3; background:#fff9ef; }
.operations-weight-check.needs-review > .material-symbols-rounded { color:#9a5b00; }
.operations-results-panel:not(.show-matching) .operations-merchandise-card.is-matching.is-reviewed { display:none; }
.operations-result-thumbnail { width:64px; height:64px; flex:0 0 64px; object-fit:cover; border-radius:12px; background:#eef4f6; }
.operations-result-thumbnail.is-empty { display:grid; place-items:center; color:#70828b; }
.operations-merchandise-title > span { display:block; margin-top:4px; color:#61727c; font-size:13px; font-weight:400; }
.operations-aq-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:20px 0; }
.operations-aq-grid > div { min-height:82px; padding:12px 14px; border:1px solid #dbe4e8; border-radius:12px; background:#fff; }
.operations-aq-grid > div.is-missing { border-color:#efd3a3; background:#fffaf2; }
.operations-aq-grid dt { color:#60717a; font-size:13px; }
.operations-aq-grid dd { margin:5px 0 0; color:#263d49; font-size:15px; font-weight:500; overflow-wrap:anywhere; }
.operations-aq-grid small { display:block; margin-top:5px; color:#71838c; font-size:12px; font-weight:400; }
.operations-apply-similar { overflow:hidden; margin:16px 0; border:1px solid #cfe0e6; border-radius:16px; background:#f5fbfd; transition:border-color var(--zk-motion),background var(--zk-motion); }
.operations-apply-similar:has(input:checked) { border-color:#74b4c2; background:#f0fafb; }
.operations-apply-similar-choice { display:grid; grid-template-columns:20px 24px minmax(0,1fr) auto; align-items:start; gap:12px; padding:16px 18px; cursor:pointer; }
.operations-apply-similar-choice input { width:20px; height:20px; margin:2px 0 0; flex:0 0 20px; accent-color:#006b83; }
.operations-apply-similar-choice > .material-symbols-rounded { width:24px; height:24px; flex:0 0 24px; color:#006b83; background:transparent; font-size:24px; }
.operations-apply-similar-choice > span:last-child { min-width:0; }
.operations-apply-similar-choice strong,.operations-apply-similar-choice small { display:block; }
.operations-apply-similar-choice strong { color:var(--text); font-size:15px; font-weight:500; line-height:22px; }
.operations-apply-similar-choice small { margin-top:3px; color:#61727c; font-size:13px; line-height:1.5; }
.operations-similar-available,.operations-similar-selected { align-self:center; padding:3px 9px; border-radius:999px; background:#e8f3f6; color:#006b83; font-size:12px; font-weight:500; white-space:nowrap; }
.operations-similar-preview { border-top:1px solid #d9e7eb; }
.operations-similar-preview > summary { display:grid; grid-template-columns:22px minmax(0,1fr) auto 22px; align-items:center; gap:10px; min-height:48px; padding:8px 18px; color:#006b83; font-size:14px; font-weight:500; cursor:pointer; list-style:none; }
.operations-similar-preview > summary::-webkit-details-marker { display:none; }
.operations-similar-preview > summary .material-symbols-rounded { width:22px; height:22px; color:#006b83; background:transparent; font-size:22px; }
.operations-similar-preview[open] > summary .operations-card-chevron { transform:rotate(180deg); }
.operations-similar-preview-body { padding:2px 18px 18px; }
.operations-similar-preview-body > p { display:grid; gap:2px; margin:0 0 10px; padding:12px 14px; border-radius:12px; background:#fff; }
.operations-similar-preview-body > p strong { color:var(--text); font-size:13px; font-weight:500; line-height:20px; }
.operations-similar-preview-body > p span { color:var(--muted); font-size:13px; line-height:20px; }
.operations-similar-preview ul { display:grid; max-height:320px; overflow:auto; margin:0; padding:0; border:1px solid #d9e7eb; border-radius:12px; background:#fff; list-style:none; }
.operations-similar-preview li { display:grid; grid-template-columns:44px minmax(92px,.28fr) minmax(0,1fr) auto; align-items:center; gap:12px; min-height:68px; padding:10px 14px; }
.operations-similar-preview li + li { border-top:1px solid #e5ecef; }
.operations-similar-thumbnail { display:grid; width:44px; height:44px; place-items:center; overflow:hidden; border-radius:10px; background:#edf3f5; color:#71838c; }
.operations-similar-thumbnail img { width:100%; height:100%; object-fit:cover; }
.operations-similar-thumbnail .material-symbols-rounded { width:24px; height:24px; background:transparent; font-size:24px; }
.operations-similar-position { color:#006b83; font-size:13px; font-weight:500; line-height:20px; }
.operations-similar-name { display:grid; min-width:0; gap:1px; }
.operations-similar-name strong { overflow-wrap:anywhere; color:var(--text); font-size:14px; font-weight:500; line-height:20px; }
.operations-similar-name small { color:var(--muted); font-size:12px; line-height:18px; }
.operations-similar-destination { display:flex; min-height:44px; align-items:center; gap:6px; padding:0 4px; color:#61727c; font-size:12px; font-weight:500; white-space:nowrap; cursor:pointer; }
.operations-similar-destination input { position:absolute; width:1px; height:1px; overflow:hidden; opacity:0; }
.operations-similar-destination .material-symbols-rounded { width:20px; height:20px; color:#71838c; background:transparent; font-size:20px; }
.operations-similar-preview li:has(input:checked) { background:#f5fbf7; }
.operations-similar-preview li:has(input:checked) .operations-similar-destination { color:#19733d; }
.operations-similar-preview li:has(input:checked) .operations-similar-destination .material-symbols-rounded { color:#19733d; }
@media(max-width:680px) { .operations-apply-similar-choice { grid-template-columns:20px 24px minmax(0,1fr); padding:15px; } .operations-similar-available { grid-column:3; justify-self:start; } .operations-similar-preview > summary { grid-template-columns:22px minmax(0,1fr) 22px; padding-inline:15px; } .operations-similar-selected { grid-column:2; justify-self:start; } .operations-similar-preview > summary .operations-card-chevron { grid-column:3; grid-row:1 / span 2; } .operations-similar-preview-body { padding:2px 15px 15px; } .operations-similar-preview li { grid-template-columns:44px minmax(0,1fr) auto; gap:10px; } .operations-similar-position { grid-column:2; align-self:end; } .operations-similar-name { grid-column:2; align-self:start; } .operations-similar-thumbnail { grid-row:1 / span 2; } .operations-similar-destination { grid-column:3; grid-row:1 / span 2; } }
@media(max-width:440px) { .operations-similar-preview li { grid-template-columns:44px minmax(0,1fr); } .operations-similar-destination { grid-column:2; grid-row:3; } }
@media (max-width: 900px) { .operations-extraction-overview { align-items:stretch; flex-direction:column; } .operations-extraction-actions > * { width:100%; } .operations-extraction-actions button { width:100%; } .operations-aq-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) { .operations-image-review-overview { grid-template-columns:1fr; } }
@media (max-width: 520px) { .operations-aq-grid { grid-template-columns:1fr; } .operations-result-thumbnail { width:52px; height:52px; flex-basis:52px; } }
.operations-merchandise-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; transition: border-color var(--zk-motion), box-shadow var(--zk-motion); }
.operations-merchandise-card, .operations-review-card { scroll-margin-top: var(--operations-review-offset, 84px); }
#mercancias-detectadas, #clasificacion-requerimientos, #validacion-operaciones { scroll-margin-top: 24px; }
.operations-merchandise-card[open] { border-color: #b8d7de; box-shadow: 0 4px 16px #263d4908; }
.operations-merchandise-card.is-reviewed { border-color: #b9dcc7; }
.operations-merchandise-card.is-reviewed > summary { background: #fbfefc; }
.operations-merchandise-card > summary { display: grid; grid-template-columns: 64px minmax(0,1fr) auto 28px; align-items: center; gap: 16px; min-height: 88px; padding: 16px 20px; border-radius: 19px; cursor: pointer; list-style: none; }
.operations-merchandise-meta { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:8px; }
.operations-merchandise-card.is-reviewed .operations-result-thumbnail.is-empty { color:#278052; }
.operations-merchandise-card[open] > summary, .operations-review-card[open] > summary { border-radius: 19px 19px 0 0; }
.operations-merchandise-card.is-reviewed[open] > summary { background: #fbfefc; }
.operations-merchandise-card > summary::-webkit-details-marker { display: none; }
.operations-merchandise-card > summary:hover { background: #f7fbfc; }
.operations-merchandise-title { display: grid; gap: 3px; min-width: 0; }
.operations-merchandise-title small { color: var(--blue); font-size: 13px; font-weight: 500; line-height: 20px; }
.operations-merchandise-title strong { color: var(--text); font-size: 20px; font-weight: 500; line-height: 1.3; overflow-wrap: anywhere; }
.operations-merchandise-meta { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 14px; }
.operations-merchandise-summary { color: var(--muted); font-size: 13px; white-space: nowrap; }
.operations-result-state { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px; border: 1px solid #dec991; border-radius: 999px; color: #795300; font-size: 13px; font-weight: 500; line-height: 20px; white-space: nowrap; }
.operations-result-state.is-complete { border-color: #b9dcc7; color: #1f7043; }
.operations-result-state.is-missing { border-color: #d5dce0; color: var(--muted); }
.operations-result-state .material-symbols-rounded { width: 18px; height: 18px; color: currentColor; background: transparent; font-size: 18px; }
.operations-card-chevron { color: var(--blue); transition: transform var(--zk-motion); }
.operations-merchandise-card[open] .operations-card-chevron { transform: rotate(180deg); }
.operations-merchandise-body { padding: 24px; border-top: 1px solid var(--line); }
.operations-context-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.operations-context-block { display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: start; gap: 12px; min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #f8fbfc; }
.operations-context-block > .material-symbols-rounded { width: 28px; height: 28px; font-size: 28px; color: var(--blue); background: transparent; }
.operations-context-block h4 { margin: 0 0 6px; color: var(--muted); font-size: 13px; font-weight: 500; line-height: 20px; }
.operations-context-block h4 span { margin-left: 6px; color: var(--blue); font-weight: 500; }
.operations-context-block p { margin: 0; color: var(--text); font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; white-space: pre-wrap; }
.operations-context-block div > span { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.operations-specification-heading { display: flex; align-items: flex-start; gap: 12px; margin: 28px 0 14px; }
.operations-specification-heading > .material-symbols-rounded { width: 28px; height: 28px; font-size: 28px; color: #7040a0; background: transparent; }
.operations-specification-heading h4 { margin: 0; font-size: 17px; font-weight: 500; line-height: 24px; }
.operations-specification-heading p { margin: 2px 0 0; color: var(--muted); font-size: 13px; line-height: 20px; }
.operations-specification-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 12px; margin: 0; }
.operations-specification { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.operations-specification dt { margin: 0 0 10px; color: var(--muted); font-size: 13px; font-weight: 500; line-height: 20px; }
.operations-specification dd { display: grid; gap: 6px; margin: 0; white-space: normal; }
.operations-specification dd > strong { color: var(--text); font-size: 17px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.operations-specification-original { color: var(--muted); font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.operations-specification-source { display: inline-flex; align-items: center; gap: 6px; width: fit-content; margin-top: 4px; color: var(--blue); font-size: 13px; line-height: 20px; }
.operations-specification-source .material-symbols-rounded { width: 18px; height: 18px; font-size: 18px; background: transparent; }
.review-notice-list, .ai-review-warnings .review-notice-list { display:grid; gap:12px; min-width:0; margin:16px 0 0; padding:0; list-style:none; color:inherit; font-size:14px; line-height:1.6; }
.review-notice-list > li { display:grid; grid-template-columns:20px minmax(0,1fr); gap:8px; align-items:start; min-width:0; margin:0; padding:0; overflow-wrap:anywhere; }
.review-notice-list > li > .material-symbols-rounded { width:20px; height:24px; font-size:20px; line-height:24px; color:#956500; background:transparent; }
.operations-item-warnings { display: flex; align-items: flex-start; gap: 12px; margin-block:24px; padding: 16px; border: 1px solid #e5c07b; border-radius: 16px; background: #fffaf0; }
.operations-item-warnings > div { flex:1; min-width:0; }
.operations-item-warnings > .material-symbols-rounded { color: #956500; background: transparent; }
.operations-item-warnings strong { font-size: 14px; font-weight: 500; }
.operations-item-warnings p { margin: 4px 0 0; }
.operations-requirement { border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 16px 0; }
.operations-requirement h4 { margin: 0 0 16px; font-size: 16px; font-weight: 500; }
.operations-requirement .access-form { grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); align-items: end; }
.operations-review-queue { display: grid; gap: 12px; margin-top: 24px; }
.operations-review-progress { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px 24px; margin-bottom: 4px; padding: 18px 20px; border: 1px solid #ead5a9; border-radius: 18px; background: #fffaf0; }
.operations-review-progress > div:first-child { display: flex; align-items: center; gap: 12px; min-width: 0; }
.operations-review-progress > div:first-child > .material-symbols-rounded { flex: 0 0 28px; width: 28px; height: 28px; color: #956500; background: transparent; font-size: 28px; }
.operations-review-progress strong, .operations-review-progress span { display: block; }
.operations-review-progress strong { color: var(--text); font-size: 15px; font-weight: 500; line-height: 22px; }
.operations-review-progress strong span { display: inline; }
.operations-review-progress div div > span { color: var(--muted); font-size: 13px; line-height: 20px; }
.operations-review-progress-track { grid-column: 1; height: 6px; overflow: hidden; border-radius: 999px; background: #eadfc6; }
.operations-review-progress-track span { height: 100%; border-radius: inherit; background: #956500; transition: width 220ms ease; }
.operations-review-progress > button { grid-column: 2; grid-row: 1 / span 2; white-space: nowrap; }
.operations-review-card { margin: 0; padding: 0; overflow: hidden; transition: border-color var(--zk-motion), box-shadow var(--zk-motion); }
.operations-review-card[open] { border-color: #d4b979; box-shadow: 0 5px 18px #6f4c0010; }
.operations-review-card > summary { display: grid; grid-template-columns: 72px minmax(0,1fr) auto 28px; align-items: center; gap: 16px; min-height: 104px; padding: 16px 20px; border-radius: 19px; cursor: pointer; list-style: none; }
.operations-review-card > summary::-webkit-details-marker { display: none; }
.operations-review-card > summary:hover { background: #fffcf5; }
.operations-review-thumbnail { display: grid; place-items: center; width: 72px; height: 72px; overflow: hidden; border: 1px solid #eadfc6; border-radius: 14px; background: #fff; }
.operations-review-thumbnail img { display: block; width: 100%; height: 100%; object-fit: contain; }
.operations-review-thumbnail > .material-symbols-rounded { width: 28px; height: 28px; color: #956500; background: transparent; font-size: 28px; }
.operations-review-title { display: grid; gap: 2px; min-width: 0; }
.operations-review-title small { color: #956500; font-size: 13px; font-weight: 500; line-height: 20px; }
.operations-review-title strong { overflow: hidden; color: var(--text); font-size: 18px; font-weight: 500; line-height: 26px; text-overflow: ellipsis; white-space: nowrap; }
.operations-review-title > span { color: var(--muted); font-size: 13px; line-height: 20px; }
.operations-review-title .operations-review-facts { display:flex; align-items:center; flex-wrap:wrap; gap:4px 10px; color:#455d69; font-size:14px; line-height:22px; }
.operations-review-facts > span { display:inline-flex; align-items:center; gap:5px; }
.operations-review-facts > span + span::before { content:"·"; margin-right:5px; color:#91a0a7; }
.operations-review-facts .material-symbols-rounded { width:18px; height:18px; color:#956500; background:transparent; font-size:18px; }
.operations-review-title .operations-review-progress-label { color:#75868e; font-size:12px; line-height:18px; }
.operations-review-state { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 11px; border: 1px solid #dec991; border-radius: 999px; color: #795300; font-size: 13px; font-weight: 500; white-space: nowrap; }
.operations-review-state.is-complete { border-color: #b9dcc7; color: #1f7043; }
.operations-review-state .material-symbols-rounded { width: 19px; height: 19px; background: transparent; font-size: 19px; }
.operations-review-card[open] > summary .operations-card-chevron { transform: rotate(180deg); }
.operations-review-body { padding: 24px; border-top: 1px solid #eadfc6; }
.operations-review-image-link { display: grid; grid-template-columns: 28px minmax(0,1fr) 20px; align-items: center; gap: 12px; width: fit-content; max-width: 100%; margin: -4px 0 20px; color: #006b83; text-decoration: none; }
.operations-review-image-link > .material-symbols-rounded { width: 28px; height: 28px; background: transparent; font-size: 28px; }
.operations-review-image-link > .material-symbols-rounded:last-child { width: 20px; height: 20px; font-size: 20px; }
.operations-review-image-link span:nth-child(2) { display: grid; min-width: 0; }
.operations-review-image-link strong { font-size: 14px; font-weight: 500; line-height: 21px; }
.operations-review-image-link small { color: var(--muted); font-size: 13px; line-height: 20px; }
.operations-review-image-link:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.operations-requirements-form { display: grid; gap: 12px; margin-top: 24px; }
.operations-requirements-heading { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: start; gap: 12px; padding-bottom: 4px; }
.operations-requirements-heading > .material-symbols-rounded { width: 28px; height: 28px; color: #956500; background: transparent; font-size: 28px; }
.operations-requirements-heading h4 { margin: 0; font-size: 18px; font-weight: 500; line-height: 26px; }
.operations-requirements-heading p { margin: 2px 0 0; color: var(--muted); font-size: 13px; line-height: 20px; }
.operations-requirements-heading > span { color: #795300; font-size: 14px; font-weight: 500; line-height: 28px; }
.operations-requirement-summary { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:14px 16px; border:1px solid #e1e8eb; border-radius:16px; background:#f8fbfc; }
.operations-requirement-summary > span { display:inline-flex; align-items:baseline; gap:5px; min-height:32px; padding:5px 11px; border-radius:999px; color:#455d69; background:#fff; font-size:13px; line-height:20px; box-shadow:inset 0 0 0 1px #e1e8eb; }
.operations-requirement-summary strong { font-size:16px; font-weight:600; }
.operations-requirement-summary .is-complete strong { color:#1f7043; }
.operations-requirement-summary .is-missing strong { color:#b3261e; }
.operations-requirement-summary .is-pending strong { color:#956500; }
.operations-requirement-group { overflow:hidden; border:1px solid #dde5e9; border-radius:18px; background:#fff; }
.operations-requirement-group > summary { display:grid; grid-template-columns:28px minmax(0,1fr) auto 24px; align-items:center; gap:12px; min-height:76px; padding:14px 18px; cursor:pointer; list-style:none; }
.operations-requirement-group > summary::-webkit-details-marker { display:none; }
.operations-requirement-group > summary:hover { background:#f8fbfc; }
.operations-requirement-group > summary > .material-symbols-rounded:first-child { width:28px; height:28px; color:#1f7043; background:transparent; font-size:28px; }
.operations-requirement-group--attention > summary > .material-symbols-rounded:first-child { color:#956500; }
.operations-requirement-group > summary > span:nth-child(2) { display:grid; min-width:0; }
.operations-requirement-group > summary strong { color:var(--text); font-size:16px; font-weight:500; line-height:23px; }
.operations-requirement-group > summary small { color:var(--muted); font-size:13px; line-height:20px; }
.operations-requirement-group-count { display:grid; place-items:center; min-width:32px; height:32px; padding:0 9px; border-radius:999px; color:#455d69; background:#f1f5f7; font-size:13px; font-weight:500; }
.operations-requirement-group[open] > summary { border-bottom:1px solid #e6ecef; }
.operations-requirement-group[open] > summary .operations-card-chevron { transform:rotate(180deg); }
.operations-requirement-list { display:grid; gap:12px; padding:16px; background:#fbfcfd; }
.operations-requirements-form .operations-requirement { min-width:0; margin:0; padding:18px; border-color:#e1e8eb; background:#fff; }
.operations-requirement legend { max-width: 100%; padding: 0 6px; color: var(--text); font-size: 16px; font-weight: 500; line-height: 24px; }
.operations-requirement > .operations-source { margin: 0 0 12px; }
.operations-requirement-fields { display:grid; grid-template-columns:minmax(180px,.42fr) minmax(280px,1.58fr); align-items:end; gap:12px; }
.operations-requirement-fields label { min-width: 0; }
.operations-requirement-fields label.is-contextual { opacity: .62; }
.operations-requirement-evidence { display:grid; grid-template-columns:24px minmax(0,1fr); gap:10px; margin-top:14px; padding:12px 14px; border-radius:14px; background:#f2f8fa; }
.operations-requirement-evidence > .material-symbols-rounded { width:24px; height:24px; color:var(--blue); background:transparent; font-size:24px; }
.operations-requirement-evidence > div { display:grid; gap:6px; }
.operations-requirement-evidence strong { color:#455d69; font-size:12px; font-weight:500; line-height:18px; }
.operations-requirement-evidence a { display:grid; width:fit-content; max-width:100%; color:var(--blue); text-decoration:none; }
.operations-requirement-evidence a:hover span { text-decoration:underline; text-underline-offset:3px; }
.operations-requirement-evidence a span { overflow-wrap:anywhere; font-size:13px; font-weight:500; line-height:20px; }
.operations-requirement-evidence a small { color:var(--muted); font-size:12px; line-height:18px; }
.operations-requirement-no-evidence { display:flex; align-items:flex-start; gap:8px; margin:14px 0 0; color:#8c3a32; font-size:13px; line-height:20px; }
.operations-requirement-no-evidence .material-symbols-rounded { flex:0 0 20px; width:20px; height:20px; color:#b3261e; background:transparent; font-size:20px; }
.operations-requirement-correction { margin-top:12px; border-top:1px solid #edf1f3; }
.operations-requirement-correction > summary { display:flex; align-items:center; gap:7px; width:fit-content; padding:12px 0 4px; color:var(--blue); cursor:pointer; list-style:none; font-size:13px; font-weight:500; }
.operations-requirement-correction > summary::-webkit-details-marker { display:none; }
.operations-requirement-correction > summary .material-symbols-rounded { width:20px; height:20px; background:transparent; font-size:20px; }
.operations-requirement-correction label { margin-top:8px; }
.operations-requirement-empty { margin:0; padding:10px; color:var(--muted); font-size:13px; text-align:center; }
.operations-review-submit { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 8px; padding: 18px 20px; border: 1px solid #ead5a9; border-radius: 16px; background: #fffaf0; }
.operations-review-submit div { display: grid; gap: 2px; min-width: 0; }
.operations-review-submit strong { color: var(--text); font-size: 15px; font-weight: 500; line-height: 22px; }
.operations-review-submit span:not(.material-symbols-rounded) { color: var(--muted); font-size: 13px; line-height: 20px; }
.operations-review-submit button { flex: 0 0 auto; }
.operations-review-context { position: fixed; z-index: 4; top: var(--operations-review-offset, 84px); display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 64px; padding: 10px 16px; border: 1px solid #b8d7de; border-radius: 16px; background: rgba(255,255,255,.96); box-shadow: 0 8px 24px #263d4920; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity var(--zk-motion), transform var(--zk-motion); backdrop-filter: blur(12px); }
.operations-review-context.is-visible { opacity: 1; transform: translateY(0); }
.operations-review-context > .material-symbols-rounded { width: 28px; height: 28px; color: var(--blue); background: transparent; font-size: 28px; }
.operations-review-context > span:nth-child(2) { display: grid; min-width: 0; }
.operations-review-context small { color: var(--blue); font-size: 12px; font-weight: 500; line-height: 18px; }
.operations-review-context strong { overflow: hidden; color: var(--text); font-size: 16px; font-weight: 500; line-height: 22px; text-overflow: ellipsis; white-space: nowrap; }
.operations-review-context [data-review-context-state] { color: #795300; font-size: 13px; font-weight: 500; white-space: nowrap; }
.operations-review-context.is-operational { border-color: #d4b979; }
.operations-review-context.is-operational > .material-symbols-rounded, .operations-review-context.is-operational small { color: #956500; }
.operations-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.file-drop-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 184px;
    gap: 7px;
    padding: 28px 24px;
    overflow: hidden;
    border: 2px dashed #a9c8d0;
    border-radius: 20px;
    background: #f7fbfc;
    color: var(--muted);
    font: inherit;
    text-align: center;
    cursor: pointer;
    transition: background-color var(--zk-motion), border-color var(--zk-motion), box-shadow var(--zk-motion), transform var(--zk-motion);
}
.file-drop-zone > .material-symbols-rounded {
    width: 36px;
    height: 36px;
    margin-bottom: 5px;
    color: var(--blue);
    background: transparent;
    font-size: 36px;
    line-height: 36px;
}
.file-drop-zone > strong { color: var(--text); font-size: 18px; font-weight: 500; line-height: 1.35; }
.file-drop-zone > span:not(.material-symbols-rounded):not(.file-drop-status) { color: var(--muted); font-size: 14px; line-height: 1.5; }
.file-drop-zone > small { margin-top: 2px; color: #6b7d86; font-size: 13px; line-height: 1.5; }
.file-drop-zone:hover { border-color: #5baec0; background: #f1f9fb; }
.file-drop-zone.is-dragging { border-color: var(--blue); background: #eaf7fa; box-shadow: 0 0 0 4px rgba(0,107,131,.1); transform: translateY(-1px); }
.file-drop-zone:focus-visible,
.file-drop-zone:focus-within { outline: 3px solid #76cddf; outline-offset: 3px; }
.file-drop-zone.has-file { border-style: solid; border-color: #79b9a0; background: #f4fbf7; }
.file-drop-zone input[type=file] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
}
.file-drop-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    white-space: nowrap !important;
}
.file-drop-zone.form-label--required { padding-left: 24px; }
.file-drop-zone.form-label--required::before { display: none !important; content: none !important; }
.file-drop-status {
    display: block;
    margin: 0;
    color: #526873;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.file-drop-zone > .file-drop-status { margin-top: 9px; color: var(--blue); font-weight: 500; }
.operations-drop { justify-items: center; }
.operations-upload-step { display: flex; align-items: flex-start; gap: 12px; margin: 24px 0 12px; }
.operations-upload-step h3 { margin: 0; font-size: 18px; font-weight: 500; }
.operations-upload-step p { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.operations-upload-step > .material-symbols-rounded { flex: 0 0 28px; width: 28px; height: 28px; color: var(--blue); font-size: 28px; background: transparent; }
.operations-retry-analysis { margin-top: 16px; }
.operations-workbook-resume { display:grid; grid-template-columns:28px minmax(0,1fr); gap:16px; margin-block:24px; padding:24px; border:1px solid var(--line); border-radius:16px; background:var(--surface); }
.operations-workbook-resume > .material-symbols-rounded { font-size:28px; color:var(--blue); }
.operations-workbook-resume h3 { margin:0; font-size:20px; font-weight:450; }
.operations-workbook-resume p { margin:8px 0 0; overflow-wrap:anywhere; }
.operations-workbook-resume form { grid-column:1 / -1; margin-top:8px; }
.operations-workbook-resume button { max-width:100%; white-space:normal; }
.operations-current-workbook { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 14px; margin-top: 24px; padding: 18px 20px; border: 1px solid #c9c0eb; border-radius: 16px; background: #faf9ff; }
.operations-current-workbook > .material-symbols-rounded { width: 28px; height: 28px; color: #5c4ab3; background: transparent; font-size: 28px; }
.operations-current-workbook > div { display: grid; gap: 2px; min-width: 0; }
.operations-current-workbook > div > span { color: #5c4ab3; font-size: 13px; font-weight: 500; line-height: 20px; }
.operations-current-workbook strong { overflow: hidden; color: var(--text); font-size: 15px; font-weight: 500; line-height: 22px; text-overflow: ellipsis; white-space: nowrap; }
.operations-current-workbook small { color: var(--muted); font-size: 13px; line-height: 20px; }
.operations-analysis-state { display: inline-grid; grid-template-columns: 24px minmax(0,1fr); align-items: center; gap: 10px; width: fit-content; max-width: 100%; margin: 8px 0 6px; color: var(--blue); }
.operations-analysis-state > .material-symbols-rounded { width: 24px; height: 24px; color: currentColor; background: transparent; font-size: 24px; line-height: 24px; }
.operations-analysis-state > span:last-child { display: grid; gap: 0; min-width: 0; }
.operations-analysis-state > span:last-child > strong { color: currentColor; font-size: 14px; font-weight: 500; line-height: 20px; white-space: normal; }
.operations-analysis-state > span:last-child > small { color: var(--muted); font-size: 13px; font-weight: 400; line-height: 20px; }
.operations-analysis-state.is-complete { color: #137a4a; }
.operations-analysis-state.is-error { color: #b3261e; }
.operations-analysis-state.is-processing .material-symbols-rounded { animation: operations-analysis-spin 1.4s linear infinite; }
.operations-analysis-message { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: #f1f8fa; color: var(--blue); font-size: 14px; line-height: 22px; }
.operations-analysis-message.is-error { background: #fff4f2; color: #9d251d; }
.operations-analysis-message > .material-symbols-rounded { flex: 0 0 24px; width: 24px; height: 24px; color: currentColor; background: transparent; font-size: 24px; }
@keyframes operations-analysis-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .operations-analysis-state.is-processing .material-symbols-rounded { animation: none; } }
.operations-current-workbook > nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.operations-current-workbook > nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 16px; border: 1px solid #b9afe3; border-radius: 999px; color: #51429a; font-size: 14px; font-weight: 500; text-decoration: none; }
.operations-current-workbook > nav a.operations-continue-review { border-color: #5c4ab3; background: #5c4ab3; color: #fff; }
.operations-current-workbook > nav a.operations-continue-review > span:not(.material-symbols-rounded) { display: grid; text-align: left; }
.operations-current-workbook > nav a.operations-continue-review small { color: #eeeaff; font-size: 12px; font-weight: 400; line-height: 16px; }
.operations-current-workbook > nav a .material-symbols-rounded { width: 20px; height: 20px; background: transparent; font-size: 20px; }
.operations-current-workbook > nav a:hover { border-color: #493a8f; }
.operations-replace-workbook { margin-top: 12px; overflow: hidden; border: 1px solid #b9afe3; border-radius: 18px; background: #fff; }
.operations-replace-workbook > summary { display: grid; grid-template-columns: 28px minmax(0,1fr) 24px; align-items: center; gap: 12px; min-height: 76px; padding: 14px 18px; color: #51429a; cursor: pointer; list-style: none; }
.operations-replace-workbook > summary::-webkit-details-marker { display: none; }
.operations-replace-workbook > summary:hover { background: #faf9ff; }
.operations-replace-workbook > summary > .material-symbols-rounded:first-child { width: 28px; height: 28px; color: #5c4ab3; background: transparent; font-size: 28px; }
.operations-replace-workbook > summary > span:nth-child(2) { display: grid; min-width: 0; }
.operations-replace-workbook > summary strong { font-size: 15px; font-weight: 500; line-height: 22px; }
.operations-replace-workbook > summary small { color: var(--muted); font-size: 13px; line-height: 20px; }
.operations-replace-workbook[open] > summary .operations-card-chevron { transform: rotate(180deg); }
.operations-replace-workbook-body { padding: 20px; border-top: 1px solid #ddd7f3; background: #faf9ff; }
.operations-replace-workbook-body .operations-drop { margin-top: 0; background: #fff; }
.operations-images { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(360px,100%),440px)); justify-content: start; gap: 16px; margin: 20px 0; }
.operations-image-card { display: flex; min-width: 0; flex-direction: column; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 2px 8px #263d4908; transition: border-color var(--zk-motion),box-shadow var(--zk-motion),transform var(--zk-motion); }
.operations-image-card:hover { border-color: #b8d7de; box-shadow: 0 6px 18px #263d4910; transform: translateY(-1px); }
.operations-image-preview { isolation: isolate; position: relative; display: grid; place-items: center; min-height: 220px; aspect-ratio: 4 / 3; overflow: hidden; padding: 20px; border-bottom: 1px solid var(--line); background: #f4f8fa; cursor: zoom-in; }
.operations-image-preview:focus-visible { outline: 3px solid var(--blue); outline-offset: -5px; }
.operations-image-preview img { position: relative; z-index: 0; display: block; width: 100%; height: 100%; max-height: 300px; object-fit: contain; border: 0; border-radius: 12px; background: #fff; }
.operations-image-card figcaption { position: relative; z-index: 1; display: grid; gap: 16px; min-width: 0; padding: 16px; background: #fff; }
.operations-image-info { display: grid; gap: 4px; min-width: 0; }
.operations-image-state { display: inline-flex; align-items: center; gap: 8px; width: fit-content; color: var(--blue); font-size: 13px; font-weight: 500; line-height: 20px; }
.operations-image-state .material-symbols-rounded { width: 20px; height: 20px; font-size: 20px; background: transparent; }
.operations-image-info > strong { display: block; overflow: hidden; color: var(--text); font-size: 15px; font-weight: 500; line-height: 22px; text-overflow: ellipsis; white-space: nowrap; }
.operations-image-info > span { color: var(--muted); font-size: 13px; line-height: 20px; overflow-wrap: anywhere; }
.operations-image-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.operations-image-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 1px solid #aac4cb; border-radius: 999px; color: var(--blue); font-size: 14px; font-weight: 500; line-height: 20px; text-decoration: none; transition: background-color var(--zk-motion),border-color var(--zk-motion); }
.operations-image-actions a:hover { border-color: var(--blue); background: #f2f8fa; }
.operations-image-actions .material-symbols-rounded { width: 20px; height: 20px; font-size: 20px; background: transparent; }
.operations-image-association { display:grid; grid-template-columns:minmax(0,1fr); align-items:end; gap:14px; padding-top:16px; border-top:1px solid var(--line); }
.operations-image-current { display:grid; grid-template-columns:28px minmax(0,1fr); align-items:start; gap:12px; min-width:0; }
.operations-image-current > .material-symbols-rounded { width:28px; height:28px; color:var(--blue); background:transparent; font-size:28px; }
.operations-image-current small,.operations-image-current strong { display:block; }
.operations-image-current small { margin-bottom:3px; color:var(--muted); font-size:13px; font-weight:400; line-height:19px; }
.operations-image-current strong { overflow-wrap:anywhere; color:var(--text); font-size:15px; font-weight:500; line-height:22px; }
.operations-image-chooser { display:none; padding:14px; border:1px solid #cfe0e6; border-radius:14px; background:#f7fbfc; }
.operations-image-chooser.is-open { display:block; }
.operations-image-association label { min-width:0; color:var(--text); font-size:14px; font-weight:500; line-height:20px; }
.operations-image-association select { width: 100%; min-width: 0; }
.operations-image-association-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.operations-image-association-actions button { min-width:0; max-width:100%; white-space:normal; }
.operations-image-association-actions .primary-action { min-width:210px; }
.operations-image-association[aria-busy="true"] .material-symbols-rounded { animation: operations-saving-spin .85s linear infinite; }
.operations-association-feedback { display: flex; align-items: center; gap: 8px; min-height: 24px; margin: 0; color: #137333; font-size: 13px; font-weight: 500; line-height: 20px; }
.operations-association-feedback[hidden] { display: none; }
.operations-association-feedback.is-error { color: var(--error,#b3261e); }
.operations-association-feedback .material-symbols-rounded { width: 20px; height: 20px; flex: 0 0 20px; background: transparent; font-size: 20px; animation: none !important; }
.operations-image-card.is-associated { border-color: #b8d4dc; }
.operations-image-card.is-confirmed { border-color: #9dcfab; box-shadow: 0 6px 18px #13733312; }
.operations-image-card.is-confirmed .operations-image-state { color: #137333; }
.operations-association-toast { position: fixed; z-index: 1200; right: 24px; bottom: 24px; display: flex; align-items: flex-start; gap: 12px; width: min(420px,calc(100vw - 32px)); padding: 16px 18px; border: 1px solid #a8d5b3; border-radius: 16px; background: #fff; color: var(--text); box-shadow: 0 12px 36px #263d4924; opacity: 0; transform: translateY(12px); transition: opacity var(--zk-motion),transform var(--zk-motion); }
.operations-association-toast.is-visible { opacity: 1; transform: translateY(0); }
.operations-association-toast.is-error { border-color: #efb8b2; }
.operations-association-toast > .material-symbols-rounded { width: 24px; height: 24px; flex: 0 0 24px; color: #137333; background: transparent; font-size: 24px; }
.operations-association-toast.is-error > .material-symbols-rounded { color: var(--error,#b3261e); }
.operations-association-toast > div { display: grid; gap: 2px; }
.operations-association-toast strong { font-size: 14px; font-weight: 500; line-height: 20px; }
.operations-association-toast span:not(.material-symbols-rounded) { color: var(--muted); font-size: 13px; line-height: 20px; }
@keyframes operations-saving-spin { to { transform: rotate(360deg); } }
.operations-unassigned-images { margin-top: 20px; padding: 0 20px 20px; border: 1px solid #e5c07b; border-radius: 16px; background: #fffaf0; }
.operations-unassigned-images > summary { min-height: 52px; padding: 14px 0; color: #765000; cursor: pointer; font-size: 15px; font-weight: 500; }
.operations-unassigned-images > p { margin-top: 0; color: var(--muted); }
[data-operations-analysis-status] { color: var(--blue); }
[data-type-filter-label][hidden], [data-operations-analysis-status][hidden] { display: none; }
@media(max-width:850px) { .operations-classification-form { grid-template-columns: 1fr; } .operations-classification-form [data-type-count], .operations-classification-form button { grid-column: 1; grid-row: auto; } .operations-classification-form button { justify-self: start; } .operations-requirement-fields { grid-template-columns: 1fr; } }
@media(max-width:650px) { .operations-category-actions, .operations-category-actions form, .operations-category-actions button { width:100%; } }
@media(max-width:650px) { .operations-panel { padding: 20px; } .operations-stage-header { flex-direction: column; gap: 14px; padding-bottom: 18px; } .operations-stage-heading { grid-template-columns: 32px minmax(0,1fr); gap: 12px; } .operations-stage-heading > .material-symbols-rounded { width: 28px; height: 28px; font-size: 28px; } .operations-panel .operations-stage-heading h2 { font-size: 22px; } .operations-stage-state { margin-left: 44px; } .operations-data { grid-template-columns: 1fr; gap: 8px; } .operations-item { padding: 18px 16px; } .operations-classification-form { margin-inline: 0; padding: 16px; } .operations-classification-form button { width: 100%; } .operations-requirement .access-form { grid-template-columns: 1fr; } .operations-results-heading { align-items: flex-start; flex-direction: column; gap: 12px; } .operations-merchandise-card > summary { grid-template-columns: 52px minmax(0,1fr) 24px; gap: 12px; padding: 16px; } .operations-merchandise-meta { grid-column: 2; grid-row: 2; justify-content: flex-start; } .operations-merchandise-summary { white-space: normal; } .operations-card-chevron { grid-column: 3; grid-row: 1 / span 2; } .operations-merchandise-body { padding: 16px; } .operations-context-grid, .operations-specification-grid { grid-template-columns: 1fr; } .operations-images { grid-template-columns: 1fr; } .operations-image-preview { min-height: 200px; } .operations-image-association { grid-template-columns: 1fr; } .operations-image-association-actions { align-items:stretch; flex-direction:column; } .operations-image-association-actions button { width:100%; } .operations-review-progress { grid-template-columns: 1fr; padding: 16px; } .operations-review-progress-track, .operations-review-progress > button { grid-column: 1; grid-row: auto; } .operations-review-progress > button { width: 100%; } .operations-review-card { padding: 0; } .operations-review-card > summary { grid-template-columns: 56px minmax(0,1fr) 24px; gap: 12px; min-height: 88px; padding: 14px; } .operations-review-thumbnail { width: 56px; height: 56px; border-radius: 12px; } .operations-review-state { grid-column: 2; justify-self: start; min-height: 30px; padding: 3px 9px; } .operations-review-card > summary .operations-card-chevron { grid-column: 3; grid-row: 1 / span 2; } .operations-review-title strong { font-size: 16px; line-height: 23px; white-space: normal; } .operations-review-body { padding: 16px; } .operations-review-submit { align-items: stretch; flex-direction: column; padding: 16px; } .operations-review-submit button { width: 100%; } .operations-current-workbook { grid-template-columns: 28px minmax(0,1fr); padding: 16px; } .operations-current-workbook > nav { grid-column: 1 / -1; justify-content: stretch; } .operations-current-workbook > nav a { flex: 1 1 auto; justify-content: center; } .operations-current-workbook strong { white-space: normal; } .operations-review-context { grid-template-columns: 24px minmax(0,1fr); gap: 10px; min-height: 60px; padding: 9px 12px; border-radius: 14px; } .operations-review-context > .material-symbols-rounded { width: 24px; height: 24px; font-size: 24px; } .operations-review-context [data-review-context-state] { grid-column: 2; font-size: 12px; } }
@media(max-width:650px) { .operations-traffic-context > summary { grid-template-columns:28px minmax(0,1fr) 22px; align-items:start; gap:10px; min-height:0; padding:16px; } .operations-traffic-context-copy strong { display:grid; gap:1px; font-size:14px; line-height:21px; } .operations-traffic-context-copy strong span + span::before { display:none; } .operations-traffic-context-action { align-self:center; } .operations-traffic-context-action .when-closed,.operations-traffic-context-action .when-open { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; } .operations-traffic-context-detail { padding:16px; } .operations-traffic-context .operations-data { margin:16px 0; } .operations-traffic-documents a { width:100%; justify-content:center; } }
.login-screen { background: #f0f4f9; }
.login-card { max-width: 480px; padding: 40px; border: 0; border-radius: 32px; box-shadow: none; }
.login-card h1 { font-size: 32px; font-weight: 450; letter-spacing: -.017em; }
.login-help { font-size: 13px; }
.login-card .google-signin-form { gap: 12px; margin-block: 28px; }
.login-card .google-signin-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 52px; padding: 12px 20px; border: 1px solid #747775; border-radius: 28px; background: #fff; color: #1f1f1f; font-size: 14px; font-weight: 500; line-height: 20px; letter-spacing: .1px; cursor: pointer; transition: background-color var(--zk-motion), border-color var(--zk-motion); }
.google-signin-button img { display: block; width: 20px; height: 20px; flex: 0 0 20px; object-fit: contain; }
.login-card .google-signin-button:hover { background-color: #f8faff; border-color: #525653; }
.login-card .google-signin-button:active { background-color: #e8eef8; }
.google-signin-button:focus-visible { outline: 3px solid #006b83; outline-offset: 4px; }
.google-signin-button:disabled { opacity: .5; cursor: not-allowed; }
.google-signin-help { margin: 0; color: var(--muted); font-size: 13px; line-height: 20px; text-align: center; }
@media(min-width:651px) and (max-width:1200px) {
  .ai-intake-card { grid-template-columns: 48px minmax(0,1fr); }
  .ai-intake-copy { grid-column: 2; }
  .ai-upload-control { grid-column: 1 / -1; justify-self: start; }
  .ai-analyze-action { grid-column: 1 / -1; justify-self: start; }
}
@media(max-width:980px) { .app-shell { grid-template-columns: minmax(0,1fr); } .top-bar { display:grid; grid-template-columns:44px minmax(0,1fr) auto; justify-content:normal; } .top-bar-location { grid-column:2; grid-row:1; } .global-expedient-search { grid-column:1 / -1; grid-row:2; max-width:none; } .top-actions { grid-column:3; grid-row:1; justify-content:flex-end; width:auto; flex-wrap:nowrap; } }
@media(max-width:650px) {
  .operations-association-toast { right: 16px; bottom: 16px; }
  .page-content { padding: 16px 16px 24px; } .top-bar { padding: 12px 16px; min-height: 72px; }
  .top-bar-location { gap: 8px; }
  .top-bar-location > .material-symbols-rounded { width: 24px; height: 24px; font-size: 24px; }
  .top-bar-location small { display: none; }
  .top-bar-location strong { font-size: 14px; }
  .profile-pill { min-width: 48px; width: 48px; padding: 8px 11px; grid-template-columns:24px; }
  .profile-pill > span:not(.material-symbols-rounded), .profile-pill small { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
  .context-navigation { align-items: center; flex-direction: row; gap: 8px; margin-bottom: 12px; }
  .context-back { align-self: flex-start; min-height: 44px; padding-block: 5px; }
  .context-breadcrumb { min-width:0; padding-inline: 0; }
  .context-breadcrumb li:first-child { display:none; }
  .context-navigation--overview .context-breadcrumb li:first-child { display:inline-flex; }
  .context-breadcrumb li:nth-child(2) .material-symbols-rounded { display:none; }
  .context-breadcrumb [aria-current="page"] { max-width: 32vw; }
  .registration-hero { gap: 12px; } .ai-intake-card { padding: 20px; }
  .ai-intake-card { grid-template-columns: 44px minmax(0,1fr); gap: 16px; }
  .ai-intake-icon { grid-column: 1; grid-row: 1; width: 44px; height: 44px; }
  .ai-intake-copy { grid-column: 2; min-width: 0; }
  .ai-intake-card > :not(.ai-intake-icon):not(.ai-intake-copy) { grid-column: 1 / -1; max-width: 100%; min-width: 0; }
  .ai-upload-control, .ai-analyze-action { white-space: normal; width: 100%; }
  .registration-actions { position: static; flex-direction: column; align-items: stretch; box-shadow: var(--shadow); }
  .registration-accordion .registration-section-header { padding: 18px 16px; }
  .registration-accordion .registration-section-header h2 { font-size: 20px; }
  .capture-order-track { grid-template-columns: 1fr; }
  .capture-order-step { grid-template-columns: 32px minmax(0,1fr) auto; grid-template-rows: auto; align-items: center; min-height: 88px; padding: 16px; gap: 16px; border-top: 1px solid var(--line); border-left: 3px solid var(--section-accent); }
  .capture-order-step > div { grid-column: 2; grid-row: 1; }
  .capture-order-step .capture-order-number { grid-column: 3; grid-row: 1; align-self: center; }
  .security-page .access-panel, .security-page .access-form { padding: 20px 16px; }
  .security-tabs { padding-inline: 16px; gap: 20px; } .security-tabs a { gap: 6px; }
  .access-grid { grid-template-columns: 1fr; } .login-card { padding: 28px; }
  .history-toolbar { flex-direction: column; align-items: stretch; }
  .history-surface { padding: 20px 16px; } .history-search { width: 100%; }
  .history-search .secondary-action { padding-inline: 14px; }
  .table-pagination { flex-wrap: wrap; }
  .registration-actions { padding: 20px; } .app-footer { gap: 12px; padding: 20px 16px max(24px, env(safe-area-inset-bottom)); }
  .public-footer { width: min(100% - 24px, 1180px); padding-inline: 0; }
}
.traffic-review-details { margin-top: 16px; color: var(--text-color, #263d49); }
.traffic-review-details summary { min-height: 44px; padding: 12px 0; cursor: pointer; font-size: 15px; font-weight: 500; color: #006b83; }
.traffic-review-details summary:focus-visible { outline: 2px solid #006b83; outline-offset: 4px; border-radius: 8px; }
.traffic-review-details p { max-width: 80ch; line-height: 1.6; }
.traffic-review-details li { margin-block: 8px; overflow-wrap: anywhere; }
@media(prefers-reduced-motion:reduce) { .side-nav nav a,.primary-action,.secondary-action,.access-module,.google-signin-button,.context-back { transition:none; } .context-back:hover,.primary-action:hover { transform:none; } .operations-image-association[aria-busy="true"] .material-symbols-rounded { animation:none; } }

/* Acción consistente para continuar un expediente, esté o no vinculado todavía. */
.open-expedient-form { display: inline-flex; margin: 0; }
.open-expedient-action { display: inline-flex; align-items: center; justify-content: center; min-width: 178px; min-height: 44px; padding-inline: 18px; gap: 8px; white-space: nowrap; font-weight: 500; }
.open-expedient-action .material-symbols-rounded { flex: 0 0 24px; width: 24px; height: 24px; font-size: 24px; }

/* Inicio de Tráfico: resumen operativo basado en expedientes reales, sin duplicar B/L por contenedor. */
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.traffic-home-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.traffic-home-heading > div { min-width: 0; }
.traffic-home-heading .eyebrow { margin: 0 0 6px; color: var(--blue); font-size: 13px; font-weight: 500; letter-spacing: normal; }
.traffic-home-heading h1 { margin: 0; color: var(--text); font-size: clamp(28px,2.6vw,36px); font-weight: 450; letter-spacing: -.017em; line-height: 1.15; }
.traffic-home-heading p:last-child { max-width: 68ch; margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.traffic-home-heading > .primary-action { flex: 0 0 auto; }
.customer-heading { align-items: center; justify-content: flex-start; gap: 16px; }
.customer-heading > .material-symbols-rounded { flex: 0 0 32px; width: 32px; height: 32px; font-size: 32px; color: var(--blue); }
.customer-register { padding: 24px; min-width: 0; }
.customer-register + .traffic-drafts { margin-top: 24px; }
.traffic-drafts > details > summary { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; color: var(--text); font-weight: 500; }
.traffic-drafts > details[open] > summary { margin-bottom: 16px; }
.customer-register [hidden] { display: none !important; }
.customer-register-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.customer-register-heading h2 { margin: 0; font-size: 22px; font-weight: 450; letter-spacing: -.017em; }
.customer-register-heading p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.customer-expedients-filter { display: grid; grid-template-columns: minmax(260px, 2fr) minmax(190px, 1fr) minmax(190px, 1fr) minmax(150px, .8fr); gap: 12px; margin-bottom: 24px; }
.customer-expedients-filter > div { min-width: 0; }
.customer-expedients-filter select { width: 100%; min-width: 0; height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 32px 8px 12px; background-color: #fff; color: var(--text); font-size: 14px; }
.customer-search { display: flex; align-items: center; gap: 8px; height: 48px; padding-left: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.customer-search > .material-symbols-rounded { flex: 0 0 24px; color: var(--muted); }
.customer-search input { flex: 1; width: 0; min-width: 0; height: 44px; border: 0; padding: 8px 0; background: transparent; box-shadow: none; font-size: 16px; }
.customer-search:focus-within { outline: 3px solid color-mix(in srgb, var(--blue) 24%, transparent); outline-offset: 2px; }
.customer-search input:focus { outline: 0; box-shadow: none; }
.customer-search button, .customer-page-size button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--blue); cursor: pointer; }
.customer-search button:hover, .customer-page-size button:hover { background: #edf5f7; }
.customer-expedients-filter-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.customer-expedients-filter-actions .secondary-action { font-size: 14px; }
.traffic-attention-table.customer-expedients-table { min-width: 1536px; table-layout: fixed; }
.customer-col-folio { width: 144px; }.customer-col-bl { width: 192px; }.customer-col-container { width: 168px; }.customer-col-client { width: 240px; }.customer-col-date { width: 184px; }.customer-col-status { width: 184px; }.customer-col-information { width: 224px; }.customer-col-actions { width: 200px; }
.expedient-stage { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.expedient-stage small { font-size: 13px; line-height: 1.5; }
.customer-expedients-table th, .customer-expedients-table td { overflow-wrap: anywhere; }
.traffic-attention-table.customer-expedients-table th { padding: 16px; vertical-align: middle; line-height: 1.5; }
.traffic-attention-table.customer-expedients-table td { padding: 20px 16px; vertical-align: middle; }
.customer-expedients-table .traffic-status { max-width: 100%; white-space: normal; line-height: 1.5; overflow-wrap: normal; }
.customer-expedients-table .customer-reference, .customer-expedients-table .customer-container-number, .customer-expedients-table .customer-date { white-space: nowrap; }
.customer-expedients-table th > a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; color: inherit; text-decoration: none; }
.customer-expedients-table th > a:hover { color: var(--blue); }
.customer-expedients-table th > a .material-symbols-rounded { flex: 0 0 20px; font-size: 20px; color: var(--muted); }
.customer-expedients-table th[aria-sort="ascending"] > a, .customer-expedients-table th[aria-sort="descending"] > a { color: var(--blue); }
.customer-expedients-table th:last-child, .customer-expedients-table td:last-child { position: sticky; right: 0; background: #fff; z-index: 1; border-left: 1px solid var(--line); }
.customer-expedients-table th:last-child { background: #f4f8fa; }
.customer-expedients-table tbody tr:hover td:last-child { background: #f8fbfc; }
.customer-folio { display: inline-block; max-width: 115px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; font-weight: 500; }
.customer-container-number { display: block; line-height: 1.5; }
.customer-reference, .customer-date { font-variant-numeric: tabular-nums; }
.customer-missing { color: var(--muted); font-size: 13px; }
.customer-expedient-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.customer-detail-action, .customer-edit-action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 12px; color: var(--blue); text-decoration: none; font-size: 13px; font-weight: 500; }
.customer-detail-action { padding: 0 4px; white-space: nowrap; }
.customer-edit-action { flex: 0 0 44px; min-width: 44px; }
.customer-detail-action:hover, .customer-edit-action:hover { background: #edf5f7; }
.customer-detail-action .material-symbols-rounded, .customer-edit-action .material-symbols-rounded { font-size: 22px; }
.customer-table-hint { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.customer-table-hint .material-symbols-rounded { font-size: 20px; }
.customer-register .customer-empty { min-height: 160px; align-content: center; gap: 16px; margin: 24px 0 0; padding: 32px 24px; text-align: left; }
.customer-empty > div { min-width: 0; max-width: 48ch; }
.customer-empty strong { display: block; line-height: 1.4; }
.customer-empty p { margin: 8px 0 0; line-height: 1.6; }
.customer-register-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 20px; }
.customer-register-footer > p { flex: 1 1 220px; margin: 0; color: var(--muted); font-size: 13px; }
.customer-pagination { display: flex; align-items: center; gap: 4px; }
.customer-pagination > a, .customer-pagination > span { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; color: var(--blue); font-size: 14px; text-decoration: none; }
.customer-pagination > a:hover { background: #edf5f7; }
.customer-pagination > a.is-current { color: #fff; background: var(--blue); font-weight: 500; }
.customer-pagination > span[aria-disabled="true"] { opacity: .4; }
.customer-page-size { display: flex; align-items: center; gap: 4px; }
.customer-page-size select { height: 44px; max-width: 150px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 8px; font-size: 14px; }
.customer-detail-reference { overflow-wrap: anywhere; }
.customer-save-success { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; color: #246244; background: #edf7f1; }
.customer-capture { display: grid; gap: 24px; min-width: 0; }
.customer-capture-section { padding: 24px; min-width: 0; scroll-margin-top: 120px; }
.customer-capture-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 24px; }
.customer-capture-heading > .traffic-status { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.customer-capture-heading h2 { margin: 0; font-size: 22px; font-weight: 450; letter-spacing: -.017em; line-height: 1.2; }
.customer-capture-heading p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.customer-creator { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; max-width: 40%; }
.customer-creator > .material-symbols-rounded { color: var(--blue); font-size: 24px; }
.customer-creator span:not(.material-symbols-rounded) { display: block; color: var(--muted); font-size: 13px; }
.customer-creator strong { display: block; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.customer-capture-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.customer-capture-grid:is(dl) { margin: 0; }
.customer-field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.customer-field[hidden] { display: none; }
.customer-field label { display: block; color: var(--text); font-size: 14px; font-weight: 500; line-height: 1.5; }
.customer-field input:not([type="checkbox"]), .customer-field select { width: 100%; min-width: 0; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); padding: 10px 12px; font-size: 16px; }
.customer-field textarea { width: 100%; min-width: 0; min-height: 80px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 12px; font-size: 16px; line-height: 1.5; resize: vertical; }
.customer-field input[readonly] { background: var(--surface); color: var(--muted); }
.customer-field p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.customer-field label .customer-required { display: inline; margin-left: 8px; font-size: 12px; color: var(--muted); font-weight: 400; }
.customer-field p[data-client-status] { color: #246244; }
.customer-client-control { display: flex; gap: 12px; align-items: center; min-width: 0; }
.customer-client-control select { flex: 1; width: 0; }
.customer-client-control button { flex: 0 0 auto; height: 48px; }
.customer-folio-note { display: flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.customer-folio-note strong { font-weight: 500; color: var(--text); }
.customer-folio-note > .material-symbols-rounded { color: var(--blue); font-size: 20px; }
.customer-upload-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.customer-upload-card { min-width: 0; display: grid; gap: 16px; }
.customer-upload-card h3 { margin: 0; font-size: 18px; font-weight: 450; }
.customer-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 200px; padding: 24px 16px; border: 1px dashed #a6c6cf; border-radius: 16px; background: var(--surface); text-align: center; cursor: pointer; transition: background 180ms ease, border-color 180ms ease; }
.customer-drop > .material-symbols-rounded { font-size: 32px; color: var(--blue); }
.customer-drop strong { color: var(--text); font-size: 15px; font-weight: 500; line-height: 1.5; }
.customer-drop > span:not(.material-symbols-rounded), .customer-drop small { font-size: 13px; color: var(--muted); line-height: 1.6; }
.customer-drop:hover, .customer-drop.is-dragging, .customer-drop.has-selection { background: #edf7fa; border-color: var(--blue); }
.customer-drop:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
.customer-file-selection { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }
.customer-clear-file { display: inline-flex; justify-self: start; align-items: center; gap: 8px; min-height: 44px; border: 0; border-radius: 12px; padding: 8px 12px; background: transparent; color: var(--blue); font-size: 14px; cursor: pointer; }
.customer-clear-file:hover { background: #edf5f7; }
.customer-clear-file .material-symbols-rounded { font-size: 20px; }
.customer-saved-document { display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
.customer-saved-document > .material-symbols-rounded { color: #287454; font-size: 20px; flex: 0 0 20px; }
.customer-saved-document > div { min-width: 0; }
.customer-saved-document span:not(.material-symbols-rounded), .customer-saved-document small { display: block; font-size: 13px; color: var(--muted); line-height: 1.6; }
.customer-saved-document a { display: block; margin: 4px 0; color: var(--blue); font-size: 14px; overflow-wrap: anywhere; }
.customer-capture-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 24px; padding: 0 0 8px; }
.customer-upload-progress { display: grid; gap: 12px; }
.customer-upload-progress p { margin: 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.customer-upload-progress progress { width: 100%; height: 8px; accent-color: var(--blue); }
.customer-capture .field-validation-error, .customer-dialog .field-validation-error { color: #a12c37; font-size: 13px; line-height: 1.6; }
.customer-field input.input-validation-error, .customer-field textarea.input-validation-error, .customer-field select.input-validation-error { border-color: #a12c37; }
.customer-capture [hidden], .customer-dialog [hidden] { display: none !important; }
.customer-dialog { width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 32px; border: 0; border-radius: 24px; background: #fff; color: var(--text); box-shadow: 0 16px 48px #263d4926; }
.customer-dialog::backdrop { background: #263d4966; }
.customer-dialog h2 { margin: 0 0 12px; font-size: 24px; font-weight: 450; line-height: 1.2; letter-spacing: -.017em; }
.customer-dialog p { margin: 0 0 24px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.customer-dialog-icon { display: block; margin: 0 0 16px; font-size: 32px; color: var(--blue); }
.customer-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.customer-confirm-fallback { display: flex; gap: 12px; align-items: center; }
.customer-capture-actions .is-saving::before { content: ""; width: 18px; height: 18px; border: 2px solid #ffffff60; border-top-color: #fff; border-radius: 50%; animation: customer-save-spin 900ms linear infinite; }
.customer-capture-actions .is-saving > .material-symbols-rounded { display: none; }
@keyframes customer-save-spin { to { transform: rotate(360deg); } }
@media (max-width: 1000px) { .customer-upload-grid { grid-template-columns: minmax(0, 1fr); } .customer-drop { min-height: 160px; } }
@media (max-width: 600px) {
    .customer-capture-section { padding: 24px 16px; }
    .customer-capture-heading { flex-direction: column; gap: 16px; }
    .customer-creator { max-width: 100%; }
    .customer-capture-grid { grid-template-columns: minmax(0, 1fr); }
    .customer-capture-actions > .primary-action { flex: 1; }
    .customer-dialog { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { .customer-drop { transition: none; } .customer-capture-actions .is-saving::before { animation: none; } }
.customer-detail-sections { display: grid; gap: 24px; }
.information-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.finance-source-review { margin-block:24px; }
.customer-document-workspace { margin-top:32px; }
.customer-document-workspace [data-document-type][hidden],.customer-document-workspace [data-document-group][hidden] { display:none; }
.finance-history-files { min-width:0; margin-top:24px; padding:16px; border:1px solid var(--line); border-radius:16px; background:var(--surface); }
.finance-history-files > .finance-subheading { flex-wrap:wrap; gap:12px; }
.finance-history-files > div:last-child { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.finance-history-files .customer-container { min-width:0; margin:0; }
.finance-history-files .customer-container > summary strong { min-width:0; white-space:normal; overflow-wrap:anywhere; font-size:16px; font-weight:500; line-height:1.5; }
.finance-history-files .customer-capture-section { min-width:0; padding:16px; gap:16px; }
.finance-history-files a { display:grid; grid-template-columns:28px minmax(0,1fr) 24px; align-items:center; gap:12px; min-height:72px; padding:12px; border:1px solid var(--line); border-radius:12px; color:var(--text); text-decoration:none; transition:border-color var(--zk-motion),background-color var(--zk-motion); }
.finance-history-files a:hover { border-color:#c78665; background:#fffaf7; }
.finance-history-files a:focus-visible { outline:3px solid var(--blue); outline-offset:2px; }
.finance-history-files a > .material-symbols-rounded { width:28px; height:28px; font-size:28px; color:#a55228; }
.finance-history-files a > .material-symbols-rounded:last-child { width:24px; height:24px; font-size:24px; }
.finance-history-files a > span:nth-child(2) { display:grid; min-width:0; gap:4px; }
.finance-history-files a strong,.finance-history-files a small { white-space:normal; overflow-wrap:anywhere; line-height:1.5; }
.finance-history-files a strong { font-size:14px; font-weight:500; }
.finance-history-files a small { color:var(--muted); font-size:13px; }
@media(max-width:760px) { .finance-history-files > div:last-child { grid-template-columns:minmax(0,1fr); } }
.document-mail-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.information-stack > .validation-summary-valid { display: none; }
.cleanup-workspace > .information-stack { gap: 32px; }
.cleanup-workspace > .customer-capture-section { padding: 32px; }
.cleanup-workspace { gap: 32px; }
.cleanup-section-heading { justify-content: flex-start; align-items: flex-start; gap: 16px; }
.cleanup-section-heading > .material-symbols-rounded { flex: 0 0 28px; width: 28px; font-size: 28px; color: var(--blue); }
.cleanup-section-heading > div { min-width: 0; }
.cleanup-workspace .customer-capture-heading p { max-width: 80ch; }
.cleanup-warning { align-items: flex-start; border-radius: 16px; padding: 24px; gap: 16px; min-width: 0; line-height: 1.6; }
.cleanup-warning > div { min-width: 0; max-width: 80ch; overflow-wrap: anywhere; }
.cleanup-warning > .material-symbols-rounded { flex: 0 0 24px; margin-top: 2px; }
.cleanup-warning strong { display: block; font-weight: 500; line-height: 1.5; }
.cleanup-warning p { margin: 8px 0 0; font-weight: 400; line-height: 1.6; }
.cleanup-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; gap: 16px; }
.cleanup-summary > div { padding: 16px; border-radius: 12px; background: var(--surface); min-width: 0; }
.cleanup-summary dt { line-height: 1.5; }
.cleanup-summary dd { margin: 8px 0 0; overflow-wrap: anywhere; }
.cleanup-summary dd { font-size: 20px; font-weight: 500; line-height: 1.5; }
.cleanup-confirmation { display: grid; gap: 24px; }
.cleanup-confirmation > .review-checklist { margin: 0; }
.cleanup-confirmation > .customer-capture-actions { margin-top: 0; padding-top: 8px; }
.cleanup-confirmation .review-checklist label { align-items: flex-start; gap: 12px; line-height: 1.6; }
.cleanup-confirmation .review-checklist input { flex-shrink: 0; margin-top: 3px; }
.cleanup-confirmation .customer-field { max-width: 640px; }
.cleanup-confirmation .customer-field p { margin-top: 12px; }
.cleanup-confirmation .primary-action { background: #a33b38; border-color: #a33b38; color: #fff; }
.cleanup-confirmation .primary-action:hover { background: #87312e; border-color: #87312e; }
@media (max-width: 900px) { .cleanup-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
    .cleanup-workspace { gap: 24px; }
    .cleanup-workspace > .information-stack { gap: 24px; }
    .cleanup-workspace > .customer-capture-section { padding: 24px 16px; }
    .cleanup-workspace .cleanup-section-heading { flex-direction: row; gap: 12px; }
    .cleanup-summary { grid-template-columns: minmax(0, 1fr); }
    .cleanup-warning { padding: 16px; }
}
.notice-card { border: 1px solid var(--line); border-radius: 16px; padding: 24px; min-width: 0; }
.notice-card h3 { font-size: 20px; font-weight: 450; line-height: 1.2; margin: 0; }
.notice-card > p { margin: 0; overflow-wrap: anywhere; line-height: 1.6; }
.notice-card .customer-capture-actions { margin-top: 0; padding: 0; }
.notice-search { display:grid; grid-template-columns:minmax(240px,2fr) minmax(180px,1fr) auto auto; gap:16px; align-items:end; }
.notice-read-option { display:flex; align-items:center; gap:12px; min-height:48px; }
.notice-read-option input { width:20px; height:20px; accent-color:var(--blue); }
.notice-read-option input:focus-visible { outline:2px solid var(--blue); outline-offset:4px; }
.notice-recipient { border:1px solid var(--line); border-radius:16px; padding:16px; min-width:0; }
.notice-recipient h4 { font-size:16px; font-weight:500; margin:0; line-height:1.5; }
.notice-recipient p { margin:0; overflow-wrap:anywhere; }
@media(max-width:1100px) { .notice-search { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .notice-search { grid-template-columns:minmax(0,1fr); } }
@media (max-width: 600px) { .notice-card { padding: 16px; } }
.information-stack[hidden] { display:none; }
.information-stack > .customer-capture-heading,
.information-stack > .alert-box,
.information-stack > .field-validation-error,
.information-stack > p,
.information-stack > .customer-capture-actions { margin: 0; }
.information-stack > .field-validation-error:not(:empty):not([hidden]) { margin:0; }
.information-stack > .validation-summary-errors,
.information-stack > .customer-container { margin-block:0; }
.information-scope-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.information-scope { display: flex; align-items: flex-start; gap: 16px; min-width: 0; padding: 24px; border-radius: 16px; background: var(--surface); }
.information-scope > .material-symbols-rounded { flex: 0 0 28px; width: 28px; font-size: 28px; }
.information-scope-remove { color: #a33b38; }
.information-scope-keep { color: #26755b; }
.information-scope h3 { margin: 0; font-size: 20px; font-weight: 450; line-height: 1.2; }
.information-scope p { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 720px) { .information-scope-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } .information-scope { padding: 16px; } }
.customer-detail-heading > div { min-width: 0; }
.customer-overview-grid > div { padding: 0 0 16px; border-bottom: 1px solid var(--line); }
.customer-overview-grid dt { display: flex; align-items: center; gap: 8px; }
.customer-overview-grid dt .material-symbols-rounded { flex: 0 0 20px; width: 20px; font-size: 20px; color: var(--muted); }
.customer-overview-grid .customer-detail-reference { font-size: 20px; font-weight: 500; color: var(--blue); }
.customer-overview-grid a { color: var(--blue); text-underline-offset: 4px; }
.customer-documents-section h2 { scroll-margin-top: 120px; }
.customer-document-group > summary { display: flex; align-items: center; gap: 16px; justify-content: space-between; min-height: 48px; cursor: pointer; list-style: none; color: var(--text); font-size: 14px; font-weight: 500; }
.customer-document-group > summary::-webkit-details-marker { display: none; }
.customer-document-group > summary .material-symbols-rounded { flex: 0 0 24px; color: var(--blue); transition: transform 180ms ease; }
.customer-document-group[open] > summary .material-symbols-rounded { transform: rotate(180deg); }
.customer-document-group + .customer-document-group { margin-top: 16px; }
.customer-document-group .customer-document-list { margin-top: 8px; }
.customer-document-action { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; flex-shrink: 0; }
.customer-document-actions { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.customer-document-actions .secondary-action { min-height: 44px; font-size: 14px; padding: 8px 16px; }
.customer-preview-name { overflow-wrap: anywhere; }
.customer-preview-controls { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; margin-bottom: 24px; }
.customer-preview-controls > div { display: grid; gap: 8px; min-width: 0; flex: 1; max-width: 480px; }
.customer-preview-controls label { font-size: 14px; font-weight: 500; }
.customer-preview-controls select { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: 16px; color: var(--text); background: var(--surface); }
.customer-preview-workspace { --preview-font: 14px; --preview-spacing: 8px; min-width: 0; background: #fff; }
.customer-preview > .customer-container + .customer-preview-workspace { margin-top: 24px; }
.customer-preview-workspace [hidden] { display: none !important; }
.customer-preview-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px 16px 0 0; }
.customer-preview-toolbar > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.customer-preview-toolbar strong { font-weight: 500; overflow-wrap: anywhere; }
.customer-preview-toolbar small { color: var(--muted); font-size: 13px; }
.customer-preview-tool { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 8px; background: #fff; color: var(--blue); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: 14px; }
.customer-preview-tool:disabled { opacity: .45; cursor: default; }
.customer-preview-workspace:fullscreen { padding: 24px; display: flex; flex-direction: column; }
.customer-preview-workspace:fullscreen .customer-preview-grid { flex: 1; max-height: none; margin-bottom: 0; }
.customer-preview-grid { overflow: auto; max-height: 70vh; margin: 0 0 24px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 16px 16px; scroll-margin-top: 120px; scrollbar-gutter: stable; }
.customer-preview-grid table { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; table-layout: fixed; font-size: var(--preview-font); }
.customer-preview-grid caption { text-align: left; padding: 16px; font-size: 14px; color: var(--muted); }
.customer-preview-grid th, .customer-preview-grid td { padding: var(--preview-spacing) 12px; border-bottom: 1px solid var(--line); border-right: 1px solid #edf2f5; vertical-align: middle; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.customer-preview-grid tbody tr:nth-child(even) td { background: #fafcfd; }
.customer-preview-grid tbody tr:hover td { background: #edf6f8; }
.customer-preview-grid td:empty { background: #fafcfd; }
.customer-preview-grid th { font-weight: 500; background: var(--surface); color: var(--text); white-space: normal; }
.customer-preview-grid thead th { position: sticky; top: 0; z-index: 2; }
.customer-preview-grid tr > th:first-child { position: sticky; left: 0; width: 56px; z-index: 1; text-align: center; font-variant-numeric: tabular-nums; color: var(--muted); }
.customer-preview-grid thead tr > th:first-child { z-index: 3; }
.customer-preview-letter { display: block; font-size: 13px; color: var(--muted); }
.customer-preview-column-title { display: block; margin-top: 4px; color: var(--text); font-size: var(--preview-font); font-weight: 500; }
.customer-preview-grid .customer-preview-source-header td { background: #e9f3f6; font-weight: 500; }
.customer-preview-picture { display: grid; gap: 8px; padding: 8px 0; text-decoration: none; color: var(--blue); font-size: 13px; text-align: center; }
.customer-preview-picture img { display: block; width: 100%; max-width: 240px; height: 128px; margin: auto; object-fit: contain; background: #fff; }
.customer-preview-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; padding: 16px; }
.customer-preview-lightbox { width: min(960px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 16px; border: 1px solid var(--line); border-radius: 24px; background: #fff; color: var(--text); }
.customer-preview-lightbox::backdrop { background: #263d49b3; }
.customer-preview-lightbox > button { display: flex; margin-left: auto; }
.customer-preview-lightbox > img { display: block; width: 100%; height: min(65dvh, 640px); max-height: calc(100dvh - 128px); margin: 16px auto 0; object-fit: contain; }
.customer-preview-grid .is-number { text-align: right; }
.customer-preview-pagination { display: grid; gap: 16px; }
.customer-preview-pagination nav { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--muted); }
.customer-preview-pdf { width: 100%; height: 75vh; min-height: 400px; border: 0; border-radius: 16px; }
.customer-preview-image { display: block; max-width: 100%; max-height: 75vh; margin: auto; object-fit: contain; }
.customer-preview-notes { padding: 0 16px 16px; font-size: 14px; }
.customer-documents-empty { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; }
.customer-documents-empty > .material-symbols-rounded { font-size: 28px; width: 28px; flex: 0 0 28px; color: var(--blue); }
.customer-documents-empty strong { font-size: 16px; font-weight: 500; }
.customer-documents-empty p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.customer-original-description { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.customer-merchandise-table { max-height: 480px; margin: 0 16px 16px; }
.customer-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; }
.quotation-context-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:0 0 24px; }
.quotation-search { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-bottom:24px; }
.quotation-context-notice { margin-bottom:24px; }
.quotation-context-notice > .customer-capture-actions { padding:0; }
.quotation-search .customer-search { flex:1 1 260px; min-width:0; }
.quotation-pending-filter { display:flex; align-items:center; gap:8px; min-height:44px; font-size:14px; }
.quotation-pending-filter input { width:20px; height:20px; accent-color:var(--blue); }
.quotation-model-copy { display:grid; gap:4px; min-width:0; flex:1; overflow-wrap:anywhere; }
.quotation-model-copy > span { color:var(--muted); font-size:14px; font-weight:400; }
.quotation-model-form, .quotation-review-form { padding:16px; min-width:0; }
.quotation-fieldset { border:0; margin:0; padding:0; min-width:0; }
.quotation-fieldset:disabled { opacity:.8; }
.review-checklist { border: 0; padding: 0; margin: 24px 0; min-width: 0; display: grid; gap: 8px; }
.review-checklist legend { margin-bottom: 12px; font-size: 16px; font-weight: 500; }
.review-checklist label { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; padding: 8px 0; cursor: pointer; }
.review-checklist input { flex: 0 0 20px; width: 20px; height: 20px; margin: 2px 0; accent-color: #006b83; }
.review-checklist input:focus-visible { outline: 2px solid #006b83; outline-offset: 4px; }
.quotation-model > summary .traffic-status { flex:0 1 auto; }
.quotation-inline-success { display:flex; align-items:flex-start; gap:8px; margin:16px 0 0; color:#246244; font-size:14px; }
.quotation-inline-success .material-symbols-rounded { flex:0 0 24px; }
.quotation-charges-table { min-width:640px; }
.quotation-totals { margin:24px 0; }
.quotation-pagination { justify-content:center; margin-top:24px; }
.quotation-pagination > span { width:auto; padding:0 12px; }
.quotation-upload { display:grid; gap:12px; padding:16px; border:1px solid var(--line); border-radius:16px; min-width:0; }
.quotation-upload .secondary-action { justify-self:start; }
.quotation-upload progress { width:100%; accent-color:var(--blue); }
.quotation-pending { margin-bottom:24px; }
.quotation-pending p { display:flex; align-items:flex-start; gap:8px; margin:12px 0; font-size:14px; }
.quotation-pending .material-symbols-rounded { flex:0 0 24px; color:#976213; }
@media(max-width:600px) { .quotation-model > summary { flex-wrap:wrap; }.quotation-model-copy { flex-basis:calc(100% - 64px); }.quotation-model > summary .traffic-status { margin-left:32px; }.quotation-search .customer-search { flex-basis:100%; } }
.customer-detail-grid > div, .customer-capture-grid:is(dl) > div { min-width: 0; }
.customer-detail-grid dt, .customer-capture-grid:is(dl) dt { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.customer-detail-grid dd, .customer-capture-grid:is(dl) dd { margin: 0; color: var(--text); font-size: 16px; overflow-wrap: anywhere; white-space: pre-line; }
.customer-container { border: 1px solid var(--line); border-radius: 16px; margin-top: 12px; scroll-margin-top: 120px; }
.customer-container.information-stack { padding: 16px; margin-top: 0; gap: 16px; }
.customer-container.information-stack h3 { margin: 0; }
.customer-container > summary { display: flex; align-items: center; gap: 12px; padding: 16px; min-height: 56px; cursor: pointer; list-style: none; }
.customer-container > summary::-webkit-details-marker { display: none; }
.customer-container:not([open]) > :not(summary) { display: none; }
.customer-container > summary > strong { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.customer-container > summary > strong:has(> .status-pill) { display: grid; gap: 8px; justify-items: start; }
.customer-container > summary > :is(.status-pill, .traffic-status) { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 600px) {
    .customer-container > summary:has(> :is(.status-pill, .traffic-status)) { display: grid; grid-template-columns: minmax(0, 1fr) 24px; }
    .customer-container > summary:has(> :is(.status-pill, .traffic-status)) > strong { grid-column: 1; grid-row: 1; }
    .customer-container > summary > :is(.status-pill, .traffic-status) { grid-column: 1; grid-row: 2; justify-self: start; }
    .customer-container > summary:has(> :is(.status-pill, .traffic-status)) > .material-symbols-rounded { grid-column: 2; grid-row: 1; }
}
.customer-container > .information-stack > p { margin: 0; line-height: 1.6; }
.customer-container > .information-stack { padding: 24px 16px; }
.customer-container > summary > :last-child { margin-left: auto; transition: transform 180ms ease; }
.customer-container[open] > summary > :last-child { transform: rotate(180deg); }
.customer-container .customer-detail-grid { padding: 16px; }
.customer-container h3 { margin: 16px; font-size: 18px; font-weight: 450; }
.customer-document-list { display: grid; gap: 12px; }
.customer-capture-section > form + .customer-document-list { margin-top: 24px; }
.customer-document { display: flex; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--blue); transition: background-color 180ms ease; }
.customer-document:hover { background-color: var(--surface); }
.customer-document > .material-symbols-rounded { width: 28px; flex: 0 0 28px; font-size: 28px; }
.customer-document > span:nth-child(2) { min-width: 0; flex: 1; }
.customer-document strong { display: block; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.customer-document small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
@media (max-width: 1200px) {
    .customer-expedients-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .customer-expedients-filter > :first-child { grid-column: 1 / -1; }
    .customer-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .customer-table-hint { display: flex; }
}
@media (max-width: 600px) {
    .customer-register { padding: 16px; }
    .customer-register-heading { align-items: stretch; flex-direction: column; }
    .customer-expedients-filter { grid-template-columns: minmax(0, 1fr); }
    .customer-register-footer > p { flex-basis: 100%; }
    .customer-register-footer { gap: 12px; }
    .customer-register .customer-empty { align-items: flex-start; padding: 24px 16px; }
    .customer-detail-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .customer-detail-heading { align-items: stretch; flex-direction: column; }
    .customer-detail-heading .primary-action { width: 100%; }
    .customer-document { flex-wrap: wrap; gap: 12px; }
    .customer-document-action { flex-basis: 100%; justify-content: flex-end; min-height: 24px; }
    .customer-document-actions { flex-basis: 100%; }
    .customer-document-actions > a { flex: 1; }
    .customer-preview-controls { align-items: stretch; flex-direction: column; }
    .customer-expedients-table th:last-child, .customer-expedients-table td:last-child { position: static; }
    .customer-preview-workspace:fullscreen { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) { .customer-container > summary > :last-child, .customer-document-group > summary .material-symbols-rounded, .customer-document { transition: none; } }
.traffic-bl-search { display: grid; gap: 8px; margin-bottom: 24px; }
.traffic-bl-search > label { color: var(--text); font-size: 14px; font-weight: 500; line-height: 20px; }
.traffic-bl-search > div { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 56px; padding: 4px 4px 4px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.traffic-bl-search .material-symbols-rounded { color: var(--muted); }
.traffic-bl-search input { width: 100%; height: 48px; min-width: 0; padding: 12px 0; border: 0; border-radius: 0; background: transparent; color: var(--text); font-size: 16px; box-shadow: none; }
.traffic-bl-search input:focus { outline: 0; box-shadow: none; }
.traffic-bl-search > div:focus-within { border-color: var(--blue); outline: 3px solid color-mix(in srgb,var(--blue) 24%,transparent); outline-offset: 1px; }
.traffic-kpis { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 16px; margin-bottom: 24px; }
.traffic-kpi { --traffic-kpi-color: var(--blue); display: grid; grid-template-columns: 40px minmax(0,1fr); align-items: center; gap: 12px; min-height: 112px; padding: 20px; border-radius: 20px; }
.traffic-kpis > a { color:inherit; text-decoration:none; transition:transform var(--zk-motion),border-color var(--zk-motion),box-shadow var(--zk-motion); }
.traffic-kpis > a:hover { transform:translateY(-2px); border-color:#9dd4df; box-shadow:0 8px 20px #263d4912; }
.traffic-kpis > a:focus-visible { outline:3px solid var(--blue); outline-offset:3px; }
.traffic-kpi > .material-symbols-rounded { width: 32px; height: 32px; color: var(--traffic-kpi-color); font-size: 32px; font-variation-settings: 'FILL' 0,'wght' 400,'GRAD' 0,'opsz' 32; }
.traffic-kpi div { display: grid; gap: 4px; }
.traffic-kpi small { color: var(--muted); font-size: 13px; line-height: 18px; }
.traffic-kpi strong { color: var(--text); font-size: 32px; font-weight: 450; line-height: 1; font-variant-numeric: tabular-nums; }
.traffic-kpi--info { --traffic-kpi-color: #006b83; }
.traffic-kpi--danger { --traffic-kpi-color: #b3261e; }
.traffic-kpi--success { --traffic-kpi-color: #137333; }
.traffic-kpi--warning { --traffic-kpi-color: #8a5700; }
.traffic-attention { min-width: 0; padding: 24px; }
.traffic-attention-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.traffic-attention-heading h2 { margin: 0; color: var(--text); font-size: 22px; font-weight: 450; letter-spacing: -.01em; }
.traffic-attention-heading p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.traffic-attention-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; }
.traffic-attention-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 14px; }
.traffic-attention-table th { padding: 13px 16px; border-bottom: 1px solid var(--line); background: #f4f8fa; color: var(--muted); font-size: 13px; font-weight: 500; text-align: left; }
.traffic-attention-table td { padding: 16px; border-bottom: 1px solid #edf1f3; color: var(--text); line-height: 1.45; vertical-align: middle; }
.traffic-attention-table tbody tr:last-child td { border-bottom: 0; }
.traffic-attention-table tbody tr:hover { background: #f8fbfc; }
.traffic-attention-table td:first-child strong { font-weight: 500; }
.traffic-attention-table th:last-child,.traffic-attention-table td:last-child { width: 96px; text-align: right; }
.traffic-open { min-width: 76px; padding-inline: 16px; }
.traffic-expedients-filter { display: grid; gap: 16px; margin-bottom: 24px; padding: 24px; }
.traffic-expedients-fields { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); gap: 16px; }
.traffic-expedients-fields .material-field { min-width: 0; }
.traffic-expedients-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.traffic-expedients-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 20px; color: var(--muted); font-size: 13px; }
.traffic-status { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 500; line-height: 20px; white-space: nowrap; }
.traffic-status--info { background: #e5f5f8; color: #005f74; }
.traffic-status--danger { background: #fce8e6; color: #a50e0e; }
.traffic-status--warning { background: #fef7e0; color: #7a4d00; }
.traffic-status--success { background: #e6f4ea; color: #137333; }
.operations-missing-bl { align-items: flex-start; margin: 16px 0 24px; border: 1px solid #efdcac; }
.operations-missing-bl > .material-symbols-rounded { font-size: 24px; flex: 0 0 24px; }
.operations-missing-bl > div { min-width: 0; }
.operations-missing-bl strong { display: block; font-size: 15px; font-weight: 500; }
.operations-missing-bl p { margin: 4px 0 12px; font-size: 14px; line-height: 1.5; }
.operations-missing-bl .secondary-action { max-width: 100%; background: #fff; color: #6f4200; border-color: #d9b873; }

/* Mercancía y traducción de Tráfico: revisión auditable antes de emitir la plantilla MG. */
.traffic-stage-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:24px; }
.traffic-stage-heading > div { min-width:0; }
.traffic-stage-heading .text-link { display:inline-flex; align-items:center; gap:8px; min-height:44px; color:var(--blue); font-size:14px; font-weight:500; text-decoration:none; }
.traffic-stage-heading .text-link:hover { text-decoration:underline; }
.traffic-stage-heading .text-link:focus-visible { outline:3px solid var(--blue); outline-offset:3px; border-radius:8px; }
.traffic-stage-heading .text-link .material-symbols-rounded { font-size:20px; }
.traffic-stage-heading .eyebrow { margin:8px 0 4px; color:var(--blue); font-size:13px; font-weight:500; }
.traffic-stage-heading h1 { margin:0; color:var(--text); font-size:clamp(28px,3vw,36px); font-weight:450; letter-spacing:-.017em; line-height:1.15; }
.traffic-stage-heading p:last-child { margin:8px 0 0; color:var(--muted); font-size:15px; line-height:1.5; }
.traffic-commercial-panel { min-width:0; margin:24px 0; padding:24px; }
.traffic-commercial-panel-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:24px; }
.traffic-commercial-panel-heading > div { min-width:0; }
.traffic-commercial-panel-heading .eyebrow { margin:0 0 4px; color:var(--blue); font-size:13px; font-weight:500; }
.traffic-commercial-panel-heading h2 { margin:0; color:var(--text); font-size:22px; font-weight:450; line-height:1.2; }
.traffic-commercial-panel-heading p { margin:6px 0 0; color:var(--muted); font-size:14px; line-height:1.5; }
.traffic-commercial-panel .status-chip { display:inline-flex; align-items:center; max-width:100%; min-height:32px; padding:5px 12px; border-radius:999px; background:#e5f5f8; color:#005f74; font-size:13px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.traffic-commercial-panel .status-chip.is-pending { background:#fef7e0; color:#7a4d00; }
.traffic-commercial-panel .status-chip.is-complete { background:#e6f4ea; color:#137333; }
.traffic-commercial-panel-heading > .status-chip { gap:6px; flex:none; }
.traffic-commercial-panel-heading > .status-chip .material-symbols-rounded { width:18px; height:18px; font-size:18px; }
.traffic-header-feedback { margin-top:16px; }
.traffic-commercial-upload { display:grid; gap:16px; }
.traffic-commercial-upload-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.traffic-commercial-panel > a.secondary-action { margin-top:16px; }
.form-action-row { gap:12px; }
.traffic-merchandise-overview { display:grid; gap:12px; margin:0 0 16px; }
.traffic-merchandise-overview progress { appearance:none; width:100%; height:6px; overflow:hidden; border:0; border-radius:999px; background:#e5eef1; }
.traffic-merchandise-overview progress::-webkit-progress-bar { background:#e5eef1; }
.traffic-merchandise-overview progress::-webkit-progress-value { border-radius:999px; background:#006b83; }
.traffic-merchandise-overview progress::-moz-progress-bar { border-radius:999px; background:#006b83; }
.traffic-merchandise-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.traffic-merchandise-toolbar p { margin:0; color:var(--muted); font-size:13px; line-height:1.5; }
.traffic-merchandise-toolbar-actions { display:flex; flex-wrap:wrap; gap:12px; }
.traffic-merchandise-toolbar-actions[hidden] { display:none; }
.traffic-merchandise-toolbar-actions .secondary-action[hidden] { display:none; }
.traffic-merchandise-toolbar-actions .secondary-action { padding-inline:16px; }
.traffic-merchandise-toolbar-actions .material-symbols-rounded { font-size:20px; }
.traffic-commercial-item { margin-top:8px; overflow:hidden; border:1px solid var(--line); border-radius:16px; background:#fff; scroll-margin-top:112px; }
.traffic-commercial-item[open] { border-color:#9bc9d3; box-shadow:0 4px 16px #263d490b; }
.traffic-commercial-item.has-conflict { border-color:#e3c985; }
.traffic-commercial-item.has-conflict[open] { box-shadow:0 4px 16px #7a4d0014; }
.traffic-merchandise-summary { display:grid; grid-template-columns:36px minmax(140px,.85fr) minmax(0,1.8fr) minmax(106px,.55fr) auto 24px; align-items:center; gap:12px; min-height:76px; padding:12px 16px; cursor:pointer; list-style:none; }
.traffic-merchandise-summary::-webkit-details-marker { display:none; }
.traffic-merchandise-summary:hover { background:#f7fbfc; }
.traffic-merchandise-summary:focus-visible { outline:3px solid var(--blue); outline-offset:-3px; }
.traffic-commercial-item[open] > .traffic-merchandise-summary { background:#f4fafb; }
.traffic-merchandise-position { display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:#e7f4f7; color:#005f74; font-size:13px; font-weight:500; font-variant-numeric:tabular-nums; }
.traffic-merchandise-identity,.traffic-merchandise-description,.traffic-merchandise-quantity { display:grid; gap:2px; min-width:0; }
.traffic-merchandise-identity strong,.traffic-merchandise-description strong,.traffic-merchandise-quantity strong { overflow:hidden; color:var(--text); font-size:15px; font-weight:500; line-height:1.4; text-overflow:ellipsis; white-space:nowrap; }
.traffic-merchandise-description strong { font-weight:450; }
.traffic-merchandise-identity small,.traffic-merchandise-description small,.traffic-merchandise-quantity small { overflow:hidden; color:var(--muted); font-size:13px; line-height:1.4; text-overflow:ellipsis; white-space:nowrap; }
.traffic-merchandise-quantity strong { font-variant-numeric:tabular-nums; }
.traffic-merchandise-chevron { color:var(--blue); font-size:24px; transition:transform var(--zk-motion); }
.traffic-commercial-item[open] .traffic-merchandise-chevron { transform:rotate(180deg); }
@media (prefers-reduced-motion:reduce) { .traffic-merchandise-chevron { transition:none; } }
.traffic-commercial-item-body { padding:20px; border-top:1px solid var(--line); }
.traffic-model-conflict { display:grid; gap:16px; margin:0 0 20px; padding:16px; border:1px solid #ead9a5; border-radius:16px; background:#fffaf0; color:#634400; font-size:14px; line-height:1.5; }
.traffic-model-conflict-heading { display:flex; align-items:flex-start; gap:12px; min-width:0; }
.traffic-model-conflict-heading > .material-symbols-rounded { flex:0 0 24px; font-size:24px; }
.traffic-model-conflict-heading strong { font-size:15px; font-weight:500; }
.traffic-model-conflict-heading p { margin:3px 0 0; }
.traffic-model-resolution { display:grid; gap:12px; margin:20px 0 24px; padding:20px; border:1px solid #d8e6eb; border-radius:16px; background:#f7fbfc; scroll-margin-top:100px; }
.traffic-model-resolution-heading { display:flex; align-items:flex-start; gap:12px; color:var(--text); }
.traffic-model-resolution-heading > .material-symbols-rounded { flex:0 0 28px; color:#006b83; font-size:28px; }
.traffic-model-resolution-heading strong { font-size:17px; font-weight:500; }
.traffic-model-resolution-heading p { margin:4px 0 0; color:var(--muted); font-size:14px; line-height:1.5; }
.traffic-model-resolution-group { border:1px solid var(--line); border-radius:12px; background:#fff; }
.traffic-model-resolution-group > summary { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:60px; padding:12px 16px; cursor:pointer; list-style:none; }
.traffic-model-resolution-group > summary::-webkit-details-marker { display:none; }
.traffic-model-resolution-group > summary > span:first-child { display:grid; gap:2px; }
.traffic-model-resolution-group > summary strong { color:var(--text); font-weight:500; }
.traffic-model-resolution-group > summary small { color:var(--muted); font-size:13px; }
.traffic-model-resolution-group > summary > .material-symbols-rounded { color:#006b83; transition:transform 180ms ease; }
.traffic-model-resolution-group[open] > summary > .material-symbols-rounded { transform:rotate(180deg); }
.traffic-model-resolution-group > summary:focus-visible { outline:2px solid #006b83; outline-offset:2px; border-radius:12px; }
.traffic-model-resolution-form { display:grid; gap:20px; padding:16px; border-top:1px solid var(--line); }
.traffic-model-choice { display:grid; gap:8px; min-width:0; margin:0; padding:0; border:0; }
.traffic-model-choice legend { margin:0 0 8px; color:var(--text); font-size:14px; font-weight:500; }
.traffic-model-choice label { display:flex; align-items:center; gap:12px; min-height:48px; padding:10px 12px; border:1px solid var(--line); border-radius:12px; cursor:pointer; }
.traffic-model-choice label:has(input:checked) { border-color:#006b83; background:#eff9fb; }
.traffic-model-choice input { flex:0 0 20px; width:20px; height:20px; accent-color:#006b83; }
.traffic-model-choice label > span { display:grid; gap:2px; min-width:0; }
.traffic-model-choice label strong { overflow-wrap:anywhere; color:var(--text); font-size:14px; font-weight:450; }
.traffic-model-choice label small { color:var(--muted); font-size:13px; }
.traffic-model-resolution-actions { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.traffic-model-resolution-actions p { flex:1 1 280px; margin:0; color:var(--muted); font-size:13px; line-height:1.5; }
@media (prefers-reduced-motion:reduce) { .traffic-model-resolution-group > summary > .material-symbols-rounded { transition:none; } }
.traffic-model-comparison { min-width:0; }
.traffic-model-comparison > summary { color:var(--action, #006b83); cursor:pointer; font-weight:500; min-height:44px; display:flex; align-items:center; }
.traffic-model-comparison > summary:focus-visible { outline:2px solid #006b83; outline-offset:3px; border-radius:8px; }
.traffic-model-differences { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.traffic-model-difference { display:grid; align-content:start; gap:8px; min-width:0; padding:12px; border:1px solid #efe5c9; border-radius:12px; background:#fff; }
.traffic-model-difference > strong { color:#634400; font-size:13px; font-weight:500; }
.traffic-model-difference-values { display:grid; gap:6px; }
.traffic-model-difference-values > div { display:grid; gap:2px; min-width:0; padding:8px 10px; border-radius:8px; background:#fffaf0; }
.traffic-model-difference-values small { color:#795400; font-size:12px; }
.traffic-model-difference-values span { color:var(--text); font-size:14px; overflow-wrap:anywhere; }
.traffic-commercial-panel .material-field.has-conflict > span { color:#795400; }
.traffic-commercial-panel .material-field.has-conflict :is(input,select,textarea) { border-color:#d5ad52; background:#fffdf7; }
.traffic-conflict-links { display:grid; gap:8px; margin:12px 0 0; padding:0; list-style:none; }
.traffic-conflict-links li { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 12px; font-size:13px; }
.traffic-conflict-links a { color:#634400; font-weight:600; text-decoration:underline; text-underline-offset:2px; }
.traffic-conflict-links a:focus-visible { outline:3px solid #795400; outline-offset:3px; border-radius:4px; }
.traffic-conflict-links span { color:#795400; }
.traffic-merchandise-source { display:flex; align-items:center; gap:8px; margin:0 0 16px; color:var(--muted); font-size:13px; }
.traffic-merchandise-source > .material-symbols-rounded { font-size:20px; color:#006b83; }
.traffic-commercial-item-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }
.traffic-commercial-item-heading small { color:var(--muted); font-size:13px; }
.traffic-commercial-item-heading h3 { margin:4px 0 0; color:var(--text); font-size:20px; font-weight:450; }
.traffic-commercial-original { display:grid; gap:4px; margin:0 0 20px; padding:16px; border-radius:12px; background:var(--canvas,#f4f8fa); color:var(--text); font-size:14px; line-height:1.5; }
.traffic-commercial-original strong { color:var(--muted); font-size:13px; font-weight:500; }
.traffic-review-filter { display:flex; flex-wrap:wrap; gap:12px; margin:0 0 16px; }
.traffic-review-filter .secondary-action.is-selected { border-color:var(--blue); background:#e5f5f8; color:#005f74; }
.traffic-merchandise-search { display:flex; align-items:end; flex-wrap:wrap; gap:8px 16px; margin:0 0 20px; }
.traffic-merchandise-search > label { flex-basis:100%; color:var(--text); font-size:14px; font-weight:500; }
.traffic-merchandise-search-controls { display:flex; align-items:center; gap:8px; width:min(100%,580px); min-height:48px; padding:0 4px 0 14px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.traffic-merchandise-search-controls:focus-within { border-color:var(--blue); outline:3px solid color-mix(in srgb,var(--blue) 22%,transparent); }
.traffic-merchandise-search-controls > .material-symbols-rounded { flex:0 0 24px; color:var(--blue); font-size:24px; }
.traffic-merchandise-search-controls input { width:100%; min-width:0; min-height:44px; border:0; outline:0; background:transparent; color:var(--text); font:inherit; font-size:16px; }
.traffic-merchandise-search-controls .secondary-action { flex-shrink:0; min-height:44px; }
.traffic-merchandise-search > .text-link { display:inline-flex; align-items:center; min-height:44px; color:var(--blue); font-size:14px; font-weight:500; }
.traffic-merchandise-search > .text-link:focus-visible { outline:3px solid var(--blue); outline-offset:3px; border-radius:8px; }
.traffic-translation-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 24px; align-items:stretch; margin:0 0 20px; }
.traffic-translation-pair .traffic-commercial-original { margin:0; min-width:0; }
.traffic-translation-pair .material-field textarea { min-height:100px; }
.traffic-commercial-panel .form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 24px; align-items:start; }
.traffic-commercial-panel .material-field { min-width:0; }
.traffic-commercial-panel .material-field textarea { display:block; width:100%; min-height:92px; padding:12px 16px; border:1px solid var(--line); border-radius:12px; background:#fff; color:var(--text); font:inherit; font-size:16px; resize:vertical; }
.traffic-commercial-panel .material-field textarea:focus-visible { outline:3px solid color-mix(in srgb,var(--blue) 28%,transparent); border-color:var(--blue); }
.traffic-commercial-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:12px; margin-top:20px; }
.traffic-commercial-actions.is-source-selection { justify-content:flex-start; margin-block:24px; }
.traffic-commercial-calculation { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.traffic-commercial-calculation > span { display:grid; gap:3px; min-width:148px; flex:1; padding:12px 16px; border-radius:12px; background:#f4f8fa; color:var(--muted); font-size:13px; }
.traffic-commercial-calculation strong { color:var(--text); font-size:17px; font-weight:500; }
.traffic-commercial-actions[data-traffic-generate][aria-busy="true"] .primary-action { opacity:.7; cursor:progress; }
.traffic-commercial-actions[data-traffic-generate][aria-busy="true"] .primary-action .material-symbols-rounded { animation:operations-analysis-spin .9s linear infinite; }
@media (prefers-reduced-motion:reduce) { .traffic-commercial-actions[data-traffic-generate][aria-busy="true"] .primary-action .material-symbols-rounded { animation:none; } }
.traffic-commercial-pagination { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding-top:16px; border-top:1px solid var(--line); color:var(--muted); font-size:14px; }
.traffic-commercial-document { display:flex; align-items:center; gap:16px; padding:16px 0; border-top:1px solid var(--line); }
.traffic-commercial-document > .material-symbols-rounded { flex:0 0 24px; color:var(--blue); font-size:24px; }
.traffic-commercial-document > div { display:grid; gap:4px; min-width:0; flex:1; }
.traffic-commercial-document strong { overflow-wrap:anywhere; color:var(--text); font-size:14px; font-weight:500; }
.traffic-commercial-document small { color:var(--muted); font-size:13px; }
.traffic-workbook-preview { scroll-margin-top:112px; }
.traffic-preview-header { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:20px; }
.traffic-preview-header > div { display:grid; align-content:start; gap:4px; min-width:0; padding:16px; border-radius:16px; background:var(--canvas,#f4f8fa); }
.traffic-preview-header small,.traffic-preview-summary small { color:var(--muted); font-size:13px; line-height:1.4; }
.traffic-preview-header strong { color:var(--text); font-size:15px; font-weight:500; overflow-wrap:anywhere; }
.traffic-preview-header span { color:var(--muted); font-size:13px; line-height:1.45; overflow-wrap:anywhere; }
.traffic-preview-tabs { display:flex; flex-wrap:wrap; align-items:stretch; gap:8px; margin-bottom:16px; border-bottom:1px solid var(--line); }
.traffic-preview-tabs a { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:48px; padding:8px 18px; border-radius:12px 12px 0 0; color:var(--muted); font-size:15px; font-weight:500; text-decoration:none; transition:background-color 180ms,color 180ms; }
.traffic-preview-tabs a:hover { background:#f4f8fa; color:var(--blue); }
.traffic-preview-tabs a.is-current { box-shadow:inset 0 -3px var(--blue); color:var(--blue); }
.traffic-preview-tabs a:focus-visible { outline:3px solid var(--blue); outline-offset:-3px; }
.traffic-preview-tabs .material-symbols-rounded { font-size:20px; }
.traffic-preview-summary { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.traffic-preview-summary > div { display:grid; gap:3px; min-width:150px; padding:12px 16px; border-radius:12px; background:var(--canvas,#f4f8fa); }
.traffic-preview-summary strong { color:var(--text); font-size:20px; font-weight:500; font-variant-numeric:tabular-nums; }
.traffic-preview-table-wrap { max-width:100%; overflow-x:auto; border:1px solid var(--line); border-radius:16px; }
.traffic-preview-table-wrap:focus-visible { outline:3px solid var(--blue); outline-offset:3px; }
.traffic-preview-table { width:100%; min-width:820px; border-collapse:collapse; }
.traffic-preview-table caption { padding:12px 16px; color:var(--muted); font-size:13px; text-align:left; }
.traffic-preview-table thead { background:var(--canvas,#f4f8fa); }
.traffic-preview-table th,.traffic-preview-table td { padding:12px 14px; border-top:1px solid var(--line); color:var(--text); font-size:14px; line-height:1.45; text-align:left; vertical-align:top; }
.traffic-preview-table thead th { color:var(--muted); font-size:13px; font-weight:500; white-space:nowrap; }
.traffic-preview-table tbody th { font-weight:500; }
.traffic-preview-table tbody tr:hover { background:#f8fbfc; }
.traffic-preview-table td.is-number { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.traffic-preview-table a { color:var(--blue); text-decoration:none; }
.traffic-preview-table a:hover { text-decoration:underline; }
.traffic-preview-table a:focus-visible { outline:3px solid var(--blue); outline-offset:3px; border-radius:4px; }
.traffic-preview-note { display:flex; align-items:flex-start; gap:8px; margin:16px 0 0; color:var(--muted); font-size:13px; line-height:1.5; }
.traffic-preview-note .material-symbols-rounded { flex:0 0 20px; font-size:20px; color:var(--blue); }
.traffic-reconciliation-count { margin:0 0 20px; color:var(--muted); font-size:14px; }
.traffic-reconciliation-table-wrap { max-width:100%; overflow-x:auto; margin:0 0 24px; border:1px solid var(--line); border-radius:16px; }
.traffic-reconciliation-table { width:100%; min-width:840px; border-collapse:collapse; }
.traffic-reconciliation-table caption { padding:12px 16px; color:var(--muted); font-size:13px; text-align:left; }
.traffic-reconciliation-table thead { background:#f4f8fa; }
.traffic-reconciliation-table th,.traffic-reconciliation-table td { padding:12px 16px; border-top:1px solid var(--line); text-align:left; vertical-align:top; }
.traffic-reconciliation-table thead th { color:var(--muted); font-size:13px; font-weight:500; }
.traffic-reconciliation-table tbody th { min-width:180px; color:var(--text); font-size:14px; font-weight:500; }
.traffic-reconciliation-table tbody td { min-width:180px; }
.traffic-reconciliation-table td > small,.traffic-reconciliation-table td > strong,.traffic-reconciliation-table td > span:not(.traffic-status),.traffic-reconciliation-table td > a { display:block; }
.traffic-reconciliation-table td > small,.traffic-reconciliation-table td > span:not(.traffic-status) { color:var(--muted); font-size:13px; }
.traffic-reconciliation-table td > strong { color:var(--text); font-size:15px; font-weight:500; overflow-wrap:anywhere; }
.traffic-reconciliation-table td > a { width:max-content; max-width:100%; margin-top:6px; color:var(--blue); font-size:13px; font-weight:500; }
.traffic-reconciliation-table td > a:focus-visible { outline:3px solid var(--blue); outline-offset:3px; border-radius:4px; }
.traffic-reconciliation-table td .traffic-status { margin-bottom:4px; }
.traffic-reconciliation-issue { padding:20px 0; border-top:1px solid var(--line); }
.traffic-reconciliation-issue.is-resolved { opacity:.85; }
.traffic-reconciliation-issue .traffic-commercial-item-heading { margin-bottom:12px; }
.traffic-reconciliation-issue h3 { margin:0; color:var(--text); font-size:18px; font-weight:450; }
.traffic-reconciliation-values { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.traffic-reconciliation-values > div { display:grid; align-content:start; gap:5px; min-width:0; padding:16px; border-radius:12px; background:#f4f8fa; }
.traffic-reconciliation-values small { color:var(--muted); font-size:13px; }
.traffic-reconciliation-values strong { color:var(--text); font-size:15px; font-weight:500; overflow-wrap:anywhere; }
.traffic-reconciliation-form { display:grid; gap:12px; margin-top:16px; }
.traffic-reconciliation-form .secondary-action { justify-self:start; }
.traffic-reconciliation-note { display:flex; align-items:flex-start; gap:8px; margin:14px 0 0; color:#137333; font-size:14px; line-height:1.5; }
.traffic-reconciliation-note .material-symbols-rounded { flex:0 0 20px; font-size:20px; }
.traffic-send-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:0 0 24px; }
.traffic-send-summary > div { min-width:0; padding:16px; border-radius:12px; background:#f4f8fa; }
.traffic-send-summary dt { color:var(--muted); font-size:13px; }
.traffic-send-summary dd { margin:5px 0 0; color:var(--text); font-size:15px; font-weight:500; overflow-wrap:anywhere; }
.traffic-commercial-panel > h3 { margin:0 0 12px; color:var(--text); font-size:18px; font-weight:450; }
.traffic-send-documents { display:grid; gap:8px; margin:0 0 20px; padding:0; list-style:none; }
.traffic-send-documents li { display:flex; align-items:center; gap:10px; min-width:0; color:var(--text); font-size:14px; overflow-wrap:anywhere; }
.traffic-send-documents .material-symbols-rounded { flex:0 0 20px; color:var(--blue); font-size:20px; }
.traffic-send-form .form-grid { margin-bottom:4px; }
@media(max-width:700px) {
  .traffic-stage-heading { align-items:stretch; flex-direction:column; gap:16px; }
  .traffic-stage-heading > .secondary-action { width:100%; }
  .traffic-commercial-panel { padding:20px 16px; }
  .traffic-commercial-panel-heading { align-items:stretch; flex-direction:column; }
  .traffic-commercial-panel .form-grid { grid-template-columns:1fr; }
  .traffic-merchandise-toolbar { align-items:stretch; flex-direction:column; }
  .traffic-merchandise-toolbar-actions { flex-direction:column; }
  .traffic-merchandise-toolbar-actions .secondary-action { width:100%; }
  .traffic-merchandise-search-controls { width:100%; }
  .traffic-merchandise-search-controls .secondary-action { padding-inline:12px; }
  .traffic-merchandise-summary { grid-template-columns:32px minmax(0,1fr) auto 24px; gap:8px 10px; padding:14px 12px; }
  .traffic-merchandise-position { grid-column:1; grid-row:1; }
  .traffic-merchandise-identity { grid-column:2; grid-row:1; }
  .traffic-merchandise-summary .status-chip { grid-column:3; grid-row:1; }
  .traffic-merchandise-chevron { grid-column:4; grid-row:1; }
  .traffic-merchandise-description { grid-column:2 / -1; grid-row:2; }
  .traffic-merchandise-quantity { grid-column:2 / -1; grid-row:3; display:flex; align-items:baseline; gap:6px; }
  .traffic-commercial-item-body { padding:16px 12px; }
  .traffic-model-differences { grid-template-columns:1fr; }
  .traffic-commercial-upload-actions { align-items:stretch; flex-direction:column; }
  .traffic-commercial-upload-actions > :is(.primary-action,.secondary-action) { width:100%; }
  .traffic-translation-pair { grid-template-columns:1fr; }
  .traffic-commercial-actions > button { width:100%; }
  .traffic-commercial-document { flex-wrap:wrap; }
  .traffic-commercial-document > .secondary-action { width:100%; }
  .traffic-preview-header { grid-template-columns:1fr; }
  .traffic-preview-tabs a { flex:1; padding-inline:12px; }
  .traffic-preview-summary > div { flex:1; min-width:calc(50% - 8px); }
  .traffic-reconciliation-values { grid-template-columns:1fr; }
  .traffic-reconciliation-form .secondary-action { width:100%; }
  .traffic-send-summary { grid-template-columns:1fr; }
}

@media(max-width:980px) {
  .traffic-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .traffic-expedients-fields { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:650px) {
  .traffic-home-heading { align-items: stretch; flex-direction: column; gap: 16px; }
  .traffic-home-heading > .primary-action { width: 100%; }
  .traffic-bl-search > div { grid-template-columns: 24px minmax(0,1fr); padding: 4px 12px; }
  .traffic-bl-search button { grid-column: 1 / -1; width: 100%; margin-bottom: 8px; }
  .traffic-kpis { grid-template-columns: 1fr; gap: 12px; }
  .traffic-kpi { min-height: 92px; padding: 16px; }
  .traffic-attention { padding: 20px 16px; }
  .traffic-attention-heading { align-items: stretch; flex-direction: column; }
  .traffic-attention-heading .secondary-action { width: 100%; }
  .traffic-expedients-filter { padding: 20px 16px; }
  .traffic-expedients-fields { grid-template-columns: 1fr; }
  .traffic-expedients-actions > * { width: 100%; }
  .traffic-expedients-pagination { justify-content: space-between; }
}
.traffic-bl-review { padding: 24px; margin: 24px 0; }
.traffic-bl-review-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 20px 0; }
.traffic-bl-review-counts span { padding: 12px 16px; border: 1px solid var(--border, #d6e2e8); border-radius: 12px; font-size: 14px; color: var(--text, #263d49); }
.traffic-bl-review-difference { border: 1px solid #e8c9a3; border-radius: 16px; padding: 16px; margin: 12px 0; background: #fffdfa; }
.traffic-bl-review-difference h3 { margin: 0 0 12px; font-size: 18px; font-weight: 500; }
.traffic-bl-review-difference .material-field { max-width: 420px; margin-top: 12px; }
.traffic-bl-review-details { margin: 20px 0; }
.traffic-bl-review-details summary { cursor: pointer; font-weight: 500; }
.traffic-bl-review-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.traffic-bl-review-list > div { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--border, #d6e2e8); border-radius: 12px; }
.traffic-bl-review-list span { color: #006b83; font-size: 13px; }
.traffic-bl-review-list small { font-size: 13px; overflow-wrap: anywhere; }
.traffic-bl-review-confirm { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.traffic-bl-review-confirm input { inline-size: 20px; block-size: 20px; flex: 0 0 auto; accent-color: #006b83; }
@media (max-width: 700px) { .traffic-bl-review-counts, .traffic-bl-review-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 390px) { .traffic-bl-review-counts, .traffic-bl-review-list { grid-template-columns: 1fr; } }
