:root{font-family:Segoe UI,Arial,sans-serif;color:#20334b;background:#f3f6fa;font-size:15px;line-height:1.5}*{box-sizing:border-box}body{margin:0}main{max-width:900px;margin:48px auto;padding:0 24px}header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}h1{font-size:29px;letter-spacing:-.7px;margin:4px 0}h2{font-size:19px;margin:0 0 16px}.eyebrow{font-size:11px;letter-spacing:1.5px;color:#688098;font-weight:700}a{color:#1762a3;text-decoration:none}a:hover{text-decoration:underline}section{background:white;border:1px solid #dde5ed;border-radius:16px;padding:26px;margin:18px 0;box-shadow:0 3px 14px #193d6205}label{display:flex;flex-direction:column;gap:7px;font-weight:600}input,select,button{font:inherit;border:1px solid #cbd7e3;border-radius:8px;padding:11px 12px;min-width:0;color:inherit;background:white}input,select{width:100%;font-weight:400}input:focus,select:focus,button:focus-visible{outline:3px solid #aad3fa;outline-offset:2px}input[type=checkbox]{width:auto}input[type=file]{border:0;padding:10px 0}button{cursor:pointer;background:#1768a7;border-color:#1768a7;color:white;font-weight:600}button:hover{filter:brightness(.97)}button:disabled{opacity:.55;cursor:wait}.secondary{background:white;color:#23466b;border-color:#cbd7e3}.grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:20px 0}.upload{border:1px dashed #b5cadd;border-radius:10px;padding:19px;background:#f8fbfe}.muted{color:#6c7f93;font-weight:400}.small{font-size:13px}fieldset{padding:0;margin:0;border:0}#send{width:100%;margin-top:8px;padding:13px}.actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.spaced{justify-content:space-between}.error{color:#ac2736;white-space:pre-line}.success{color:#237342}progress{display:block;width:100%;height:12px;border:0;border-radius:10px;overflow:hidden;accent-color:#1768a7}progress::-webkit-progress-bar{background:#e8eff5}progress::-webkit-progress-value{background:#1768a7}.steps{display:flex;justify-content:space-between;font-size:12px;color:#7d8a99;margin-top:9px}#statusMessage{margin-bottom:0}#resultLinks a{font-size:13px}.login{max-width:460px;margin-top:12vh}.login label{margin:18px 0}.login button{width:100%}details{margin-top:20px}summary{cursor:pointer;color:#49637e}details .grid{margin-bottom:12px}.check{flex-direction:row;align-items:center;font-weight:400}.date-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.notice{background:#f1f7fd;border-radius:8px;padding:12px}.item-row{border-top:1px solid #e0e8ef;padding:10px 0}.item-row .grid{margin:8px 0;grid-template-columns:2fr 1fr 1fr}#settingsStatus{position:sticky;bottom:12px;background:#fff;padding:10px;border-radius:8px;box-shadow:0 2px 10px #20334b15}[hidden]{display:none!important}@media(max-width:600px){main{margin:24px auto;padding:0 14px}header{align-items:flex-start}h1{font-size:24px}section{padding:18px}.grid{grid-template-columns:1fr}.date-row{grid-template-columns:1fr}.item-row .grid{grid-template-columns:1fr}}
:root .compact{font-size:14px}.compact main{margin:26px auto;max-width:980px}.compact header{margin-bottom:16px}.compact h1{font-size:25px}.compact h2{font-size:16px;margin-bottom:10px}.compact section{padding:16px 18px;margin:12px 0;border-radius:11px}.compact label{font-size:12px;gap:4px}.compact input,.compact select,.compact button{font-size:14px;padding:7px 10px;border-radius:6px;min-height:34px}.compact .grid{gap:10px 14px;margin:12px 0}.compact .upload{padding:10px 14px;gap:3px}.compact input[type=file]{padding:4px 0;min-height:28px}.compact #send{padding:9px;margin-top:4px}.compact .small{font-size:12px;margin:8px 0 0}.compact .shipment-fields{grid-template-columns:1.3fr 1fr 1fr 1.2fr;align-items:start}.correction-heading{font-size:12px;font-weight:600;margin:8px 0}.correction-row{display:flex;align-items:center;gap:8px;border-top:1px solid #e5ebf1;padding:6px 0;flex-wrap:wrap}.correction-name{flex:1 1 240px;font-size:12px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.correction-row label{flex:0 0 132px;font-size:10px;gap:2px}.correction-row label:has(select){flex-basis:80px}.correction-row label:nth-last-child(2):has(select){max-width:170px;flex-grow:0}.correction-row input,.correction-row select{padding:4px 7px;min-height:29px;font-size:13px}.correction-hint:empty{display:none}.correction-hint{flex:0 0 100%;font-size:11px;line-height:1.2}.settings-group{background:#fff;border:1px solid #dce5ef;border-radius:9px;margin:9px 0;overflow:hidden}.settings-group>summary{padding:11px 14px;font-size:14px;font-weight:600;color:#284663}.settings-group[open]>summary{border-bottom:1px solid #e5ebf1}.settings-body{padding:4px 14px 14px}.settings-page .grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 12px}.settings-page .grid label:has(input[id$="address"]){grid-column:span 2}.settings-page .muted{font-size:12px}.settings-page .settings-body>p{margin:8px 0}.settings-page #dateFields{grid-template-columns:1fr 1fr}.settings-page #saveDefaults{padding:8px 16px;margin:4px 0}.settings-page .settings-body details{margin-top:10px}.settings-page #settingsStatus{font-size:13px;padding:8px;margin:10px 0}.settings-page #passwordForm .grid{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:640px){.compact main{margin:18px auto}.compact .shipment-fields{grid-template-columns:1fr 1fr}.compact .shipment-fields>label:first-child{grid-column:1/-1}.settings-page .grid,.settings-page #dateFields,.settings-page #passwordForm .grid{grid-template-columns:1fr 1fr}.settings-page .grid label:has(input[id$="address"]){grid-column:1/-1}.correction-name{flex-basis:100%}.correction-row label{flex:1 1 120px}.correction-row label:has(select){flex:1 1 70px}}@media(max-width:380px){.settings-page .grid,.settings-page #dateFields,.settings-page #passwordForm .grid{grid-template-columns:1fr}}
.user-row{padding:12px 0;border-top:1px solid #e1e8ef;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.user-row:first-child{border-top:0}.user-row strong{font-size:14px}.user-row div div{font-size:12px;color:#6c7f93}.compact .user-row button{font-size:12px;padding:5px 8px}.user-row .actions{gap:6px}#invitation{margin-top:15px}#inviteUrl{margin-bottom:8px}
.field-hint{font-size:11px;font-weight:400;line-height:1.35;color:#6c7f93}.settings-page select{max-width:100%;text-overflow:ellipsis}.settings-page #reportFields label:has(#setting_kbk){grid-column:span 2}@media(max-width:380px){.settings-page #reportFields label:has(#setting_kbk){grid-column:auto}}
.customs-table-wrap{overflow-x:auto;margin:12px 0}.customs-table{width:100%;border-collapse:collapse;font-size:12px}.customs-table td,.customs-table th{padding:6px;border-bottom:1px solid #e2e8ef;text-align:left;vertical-align:top}.customs-table th{font-size:10px;color:#687c93}.customs-table td:first-child{min-width:200px;max-width:290px}.customs-table small{display:block;color:#6c7f93}.customs-table input{min-width:76px;padding:5px!important;font-size:12px!important}.customs-table td:last-child{min-width:190px}.customs-table td:last-child input+input{margin-top:4px}.customs-table select{min-width:96px;padding:5px!important}#customsFields,#customsProfile{grid-template-columns:repeat(3,minmax(0,1fr))}#customsFiles{margin-top:10px}#customsMessage{white-space:pre-wrap}#customsOrder{flex:1;min-width:200px}.compact #customsPanel{padding:16px}#ordersList{font-size:12px}@media(max-width:600px){#customsFields,#customsProfile{grid-template-columns:1fr 1fr}.main-page #sendForm>.grid{grid-template-columns:1fr}}

.monthly-controls{align-items:end;margin:10px 0}.monthly-controls label{max-width:190px}.monthly-selection{border-top:1px solid #e2e8ef;padding-top:8px;margin-top:10px}.monthly-selection summary{font-size:13px;cursor:pointer}.monthly-selection label{display:flex;flex-direction:row;align-items:center;gap:8px;font-size:12px}.monthly-selection input[type=checkbox]{width:16px;min-height:16px;height:16px;margin:0}.monthly-selection>label{margin:9px 0}.monthly-order{display:flex;align-items:center;gap:10px;padding:5px 0;border-top:1px solid #edf1f5}.monthly-order label{flex:1}.monthly-order small{color:#6c7f93;font-size:11px}.monthly-order button{font-size:11px;padding:4px 7px}.monthly-reminder{padding:9px 12px;background:#fff7df;border-radius:6px;color:#745111}.monthly-reminder button{margin-left:8px;font-size:11px;padding:3px 6px}#monthlyOrders{max-height:240px;overflow:auto}#monthlyStatus{white-space:pre-wrap}@media(max-width:600px){.monthly-order{flex-wrap:wrap}.monthly-order label{flex-basis:100%}}
.compact #progressPanel{padding:10px 14px;border-radius:9px}.compact #progressPanel h2{font-size:13px;margin:0}.compact #progressPanel #percent{font-size:11px;color:#6b8196}.compact #progressPanel progress{height:4px;margin:8px 0 0}.compact #progressPanel .steps{font-size:10px;margin-top:4px}.compact #progressPanel p{font-size:12px;line-height:1.35;margin:7px 0 0}.compact #progressPanel p:empty{display:none}.compact #progressPanel #resultLinks{gap:12px;margin-top:8px}.compact #progressPanel #resultLinks a{font-size:11px}.compact #progressPanel #resume{min-height:28px;padding:4px 8px;font-size:11px;margin-top:7px}.compact #progressPanel.is-complete{display:flex;align-items:center;justify-content:space-between;gap:8px 18px;flex-wrap:wrap}.compact #progressPanel.is-complete>.actions:first-child{gap:9px}.compact #progressPanel.is-complete #percent{color:#21805b;font-size:10px;background:#edf8f2;border-radius:20px;padding:2px 6px}.compact #progressPanel.is-complete progress,.compact #progressPanel.is-complete .steps,.compact #progressPanel.is-complete #statusMessage{display:none}.compact #progressPanel.is-complete #resultLinks{margin:0}@media(max-width:720px){.compact #progressPanel.is-complete #resultLinks{flex-basis:100%;gap:6px 12px}}


.compact #progressPanel .progress-shipment{font-size:11px;font-weight:500;color:#496780;overflow-wrap:anywhere}.compact #progressPanel.is-complete{justify-content:flex-start}.compact #progressPanel.is-complete #resultLinks{margin-left:auto}@media(max-width:600px){.compact #progressPanel.is-complete #resultLinks{margin-left:0}}

/* Saved orders: one heading and a uniform document strip, with files on demand. */
#ordersList{display:grid;gap:10px}
.orders-toolbar{display:flex;align-items:center;gap:10px;margin:5px 0 9px}
.orders-toolbar small{font-size:10px;color:#7b8999}
.orders-toolbar .online{color:#21805b}
.compact #refreshOrders{min-height:26px;padding:3px 8px;font-size:11px}
#ordersList .order-card{position:relative;display:block;margin:0;padding:0;border:1px solid #dce5ee;border-radius:9px;overflow:hidden;background:#fff}
#ordersList .order-heading{display:flex;align-items:center;justify-content:space-between;gap:8px 14px;padding:9px 12px;background:#f7f9fc;border-bottom:1px solid #e6ecf2}
#ordersList .order-caption{display:flex;align-items:baseline;gap:4px 10px;flex-wrap:wrap;min-width:0}
#ordersList .order-caption strong{font-size:13px;font-weight:650;color:#233f5b;overflow-wrap:anywhere}
#ordersList .order-caption small{font-size:10px;color:#7a8a9b}
#ordersList .order-heading>.actions{flex-shrink:0;gap:5px;margin-right:152px}
.compact #ordersList .order-heading button{min-height:26px;padding:3px 8px;font-size:11px;background:#fff}
#ordersList .order-report-list{display:grid;grid-template-columns:repeat(var(--report-columns,3),minmax(0,1fr));margin:0;padding:0}
.compact #ordersList .order-report{display:flex;flex-direction:column;align-items:stretch;gap:6px;margin:0;padding:9px 12px;min-height:82px;min-width:0;border:0;border-left:1px solid #e9eef4;border-radius:0;background:transparent}
.compact #ordersList .order-report:first-child{border-left:0}
#ordersList .order-report-meta{display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0}
#ordersList .report-name{display:flex;align-items:center;gap:4px;min-width:0}
#ordersList .report-name strong{font-size:12px;font-weight:600;color:#31485f}
#ordersList .report-state{font-size:11px;line-height:1.35;color:#8491a0;overflow-wrap:anywhere}
#ordersList .report-state::before{content:'';display:inline-block;width:5px;height:5px;margin:0 5px 1px 0;border-radius:50%;background:currentColor}
#ordersList .report-state.sent{color:#21805b}
#ordersList .report-state.running{color:#1768a7}
#ordersList .report-state.error{color:#b0392c}
#ordersList .report-open{display:inline-block;padding:0 2px;font-size:13px;line-height:1.4;color:#6f8ba5;text-decoration:none}
#ordersList .report-open:hover{color:#1768a7}
#ordersList .report-controls{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:4px 7px;min-height:26px;margin-top:auto}
#ordersList .report-controls:empty{display:none}
.compact #ordersList .report-send{min-height:26px;padding:3px 9px;border-radius:5px;font-size:11px;line-height:1.3;white-space:nowrap}
.compact #ordersList .report-send:disabled{cursor:default;opacity:.55}
#ordersList .report-ack{font-size:10px;line-height:1.3;color:#99702c;overflow-wrap:anywhere}
#ordersList .report-ack.confirmed{color:#3a8969}
#ordersList .report-ack.confirmed::before{content:'\2713';margin-right:4px}
#ordersList .deadline{font-size:9px;white-space:nowrap}
#ordersList .report-error{grid-column:1/-1;font-size:10px;color:#b0392c;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.4}
.compact #ordersList .order-receipts{margin:0;width:auto;max-width:none;border:0;border-radius:0;background:#fbfcfe;overflow:hidden}
.compact #ordersList .receipt-summary{position:absolute;top:9px;right:12px;display:flex;align-items:center;gap:5px;min-height:26px;padding:3px 7px;border:1px solid #cbd7e3;border-radius:5px;background:#fff;font-size:10px;font-weight:500;color:#466780;list-style:none;cursor:pointer}
.compact #ordersList .receipt-summary::-webkit-details-marker{display:none}
.compact #ordersList .receipt-summary::before{content:'\25b8';color:#7a92a9;font-size:11px}
.compact #ordersList .order-receipts[open]>.receipt-summary::before{content:'\25be'}
.compact #ordersList .receipt-count{padding:0 5px;border-radius:4px;background:#edf2f7;font-size:9px;color:#6b8197;white-space:nowrap}
.compact #ordersList .receipt-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:7px 12px;border-top:1px solid #e6ecf2}
.compact #ordersList .receipt-tile{display:flex;align-items:center;gap:6px;min-width:0;min-height:42px;padding:5px 6px;text-align:left;white-space:normal;border:1px solid #e3eaf2;border-radius:6px;background:#fff;color:#284663;transition:background .15s,border-color .15s}
.compact #ordersList .receipt-tile:hover{background:#f0f7ff;border-color:#accce8}
.compact #ordersList .receipt-tile:focus-visible{outline:2px solid #1768a7;outline-offset:2px}
#ordersList .receipt-icon{display:grid;place-items:center;flex:0 0 25px;height:25px;border-radius:5px;background:#edf4fa;color:#40759e;font-size:8px;font-weight:700}
#ordersList .receipt-meta{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0;line-height:1.25}
#ordersList .receipt-meta strong{font-size:10px;font-weight:500;color:#31485f;overflow-wrap:anywhere}
#ordersList .receipt-meta small{font-size:8px;color:#8493a3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#ordersList .receipt-download{font-size:14px;color:#7b94aa;margin-left:auto}
#ordersList .receipt-grid>small{grid-column:1/-1;font-size:10px;color:#7a8b9c}
#ordersList .order-card{--stage-ink:#526b80;--stage-bg:#edf1f5;--stage-line:#aebecb;border-left:5px solid var(--stage-line)}
.orders-pagination{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid #dce5ed}
.orders-pagination[hidden]{display:none}
.orders-page-summary{margin-right:auto;color:#6c7f93;font-size:11px}
.orders-page-buttons{display:flex;align-items:center;flex-wrap:wrap;gap:4px}
.orders-pagination button{padding:5px 9px;font-size:11px;line-height:1.5}
.orders-pagination button:disabled{cursor:default}
.orders-pagination .is-current{background:#e6eff8;border-color:#91b4d4;color:#17588c}
@media(max-width:600px){.orders-pagination{justify-content:center}.orders-page-summary{width:100%;margin-right:0;text-align:center}}
#ordersList .order-card[data-stage="waiting"],#ordersList .order-card[data-stage="submitted"]{--stage-ink:#45698c;--stage-bg:#e4edf7;--stage-line:#8fabca}
#ordersList .order-card[data-stage="transit"]{--stage-ink:#52688d;--stage-bg:#e6eaf6;--stage-line:#9baacd}
#ordersList .order-card[data-stage="border"]{--stage-ink:#286d68;--stage-bg:#dff0ed;--stage-line:#80b6af}
#ordersList .border-stage{display:inline-flex;align-items:center;border:1px solid #86b9ad;border-radius:5px;padding:3px 7px;font-size:10px;line-height:1.4;color:#25675b;background:#e0f0e9}
#ordersList .border-stage.failed{border-color:#c69d93;color:#8c5e56;background:#f5e3df}
#ordersList .order-card[data-stage="working"]{--stage-ink:#6d588b;--stage-bg:#eee6f5;--stage-line:#b3a0ca}
#ordersList .order-card[data-stage="done"]{--stage-ink:#3f705a;--stage-bg:#e1efe6;--stage-line:#8eb69f}
#ordersList .order-card[data-stage="action"]{--stage-ink:#856a33;--stage-bg:#f6ebd4;--stage-line:#ccb074}
#ordersList .order-card[data-stage="issue"],#ordersList .order-card[data-stage="error"]{--stage-ink:#8c5e56;--stage-bg:#f5e3df;--stage-line:#c69d93}
#ordersList .order-card>.order-heading{background:var(--stage-bg);border-bottom-color:var(--stage-line)}
#ordersList .shipment-stage{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--stage-line);border-radius:5px;padding:3px 7px;font-size:10px;font-weight:600;line-height:1.4;color:var(--stage-ink);background:#ffffffb3;white-space:normal}
#ordersList .shipment-stage::before{content:'';width:4px;height:4px;flex:0 0 4px;border-radius:50%;background:currentColor}
.compact #ordersList .order-heading .transport-source{background:#f4f8f7;border-color:#d3e1dc;color:#55786d}
#ordersList .driver-files-heading,#ordersList .receipt-other-heading{grid-column:1/-1;display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 9px;font-size:10px;color:#537b70}
#ordersList .driver-files-heading small{font-size:9px;color:#7a8c85}
#ordersList .receipt-other-heading{color:#8592a1;margin-top:4px;font-size:9px}
.compact #ordersList .driver-count{background:#edf5ef;color:#587c67;border-radius:3px;padding:0 4px;font-size:9px}
.compact #ordersList .order-heading>.actions{margin-right:222px}
.compact #ordersList .receipt-tile.driver-file{background:#eff7f3;border-color:#c1d9cd}
.compact #ordersList .receipt-tile.driver-file:hover{background:#e7f2ec;border-color:#a5c7b6}
#ordersList .driver-file .receipt-icon{background:#dcece3;color:#557c68}
#ordersList .driver-file .receipt-meta strong{color:#416d5a;font-weight:600}
.compact #ordersList .receipt-tile.driver-file[data-driver-kind="qr"]{border-color:#9dbfaa;background:#e8f3ec}
@media(max-width:800px){
  #ordersList .order-report-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .compact #ordersList .order-report{border-top:1px solid #edf1f5}
  .compact #ordersList .order-report:nth-child(odd){border-left:0}
  .compact #ordersList .order-report:nth-child(-n+2){border-top:0}
  .compact #ordersList .receipt-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:640px){
  #ordersList .order-heading{flex-wrap:wrap;padding:8px 10px;gap:7px}
  #ordersList .order-caption{flex-basis:100%;gap:2px 8px}
  #ordersList .order-caption small{font-size:9px}
  #ordersList .order-heading>.actions{margin-right:0}
  #ordersList .order-report-list{display:block;padding:0 10px}
  #ordersList .order-report-meta{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
  #ordersList .report-controls{max-width:170px;flex-direction:column;align-items:flex-end;justify-content:center;gap:3px;margin-top:0}
  #ordersList .report-ack{font-size:9px}
  .compact #ordersList .order-report{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;min-height:34px;gap:5px 8px;padding:7px 0;border-left:0;border-top:1px solid #edf1f5}
  .compact #ordersList .order-report:nth-child(2){border-top:1px solid #edf1f5}
  .compact #ordersList .order-receipts{border-top:1px solid #e6ecf2}
  .compact #ordersList .receipt-summary{position:static;padding:6px 10px;border:0;border-radius:0;background:transparent}
  .compact #ordersList .receipt-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:7px 10px}
}

#ordersList .order-review{display:flex;align-items:center;gap:6px 14px;flex-wrap:wrap;padding:6px 12px;border-top:1px solid #e6ecf2;background:#fbfcfe;color:#48617a}
#ordersList .order-review .review-check{display:flex;flex-direction:row;align-items:center;gap:5px;font-size:10px;font-weight:500;cursor:pointer}
#ordersList .review-check input[type=checkbox]{width:14px;height:14px;min-height:14px;margin:0;padding:0;accent-color:#1768a7;flex-shrink:0}
#ordersList .review-date{display:flex;flex-direction:row;align-items:center;gap:5px;font-size:10px;font-weight:400}
.compact #ordersList .review-date input{width:112px;min-height:25px;height:25px;padding:2px 4px;font-size:10px;border-color:#dae3ed}
.compact #ordersList .review-issue,.compact #ordersList .review-retry{min-height:25px;padding:2px 7px;font-size:10px;background:#fff}
#ordersList .review-issue{margin-left:auto}
#ordersList .review-status{flex-basis:100%;font-size:10px;line-height:1.4;color:#6c8197;overflow-wrap:anywhere}
#ordersList .review-status.error{color:#b0392c}
#ordersList .review-status.warning{color:#966319}
.filing-deadline{display:inline-flex;align-items:center;gap:4px;border:1px solid #dce6ef;border-radius:5px;padding:3px 7px;background:#f3f7fb;color:#496780;font-size:10px;line-height:1.4;overflow-wrap:anywhere}
.filing-deadline.soon{background:#fff6de;border-color:#e8d5a4;color:#856021}.filing-deadline.past,#ordersList .deadline.past{background:#faedeb;border-color:#e5c8c3;color:#a34c41}
#ordersList .review-deadline{flex-basis:100%;width:fit-content;order:3}.fns-month-deadline{margin:0 0 7px}
.compact #ordersList .review-save-date{min-height:24px;padding:2px 6px;font-size:10px}.accounting-date-source{font-size:10px;color:#6b8194}
.approval-rule-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0}.approval-rule-card{border:1px solid #dce6ef;background:#f8fafc;border-radius:7px;padding:10px}.approval-rule-card strong{font-size:12px}.approval-rule-fields{display:grid;grid-template-columns:1.5fr 1fr;gap:8px;margin-top:10px}.approval-rule-fields>label:first-child{grid-column:1/-1}.approval-policy-consent{margin:10px 0;align-items:flex-start;font-size:12px!important}@media(max-width:640px){.approval-rule-grid{grid-template-columns:1fr}}
.approval-policy-consent input[type=checkbox]{flex-shrink:0;width:14px;height:14px;min-height:14px;margin-top:2px}
.accounting-rule-fields{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px;margin:10px 0}.accounting-rule-preview{max-height:250px;overflow:auto;margin:10px 0}.accounting-rule-row{display:flex;justify-content:space-between;gap:8px;border-top:1px solid #e5ebf1;padding:5px 0;font-size:11px}.accounting-rule-row span{color:#718294}.accounting-rule-row.eligible span{color:#277653}.accounting-rule-actions{display:flex;gap:7px;flex-wrap:wrap;align-items:center}.accounting-rule-help{font-size:11px;color:#6b8194;line-height:1.45}@media(max-width:600px){.accounting-rule-fields{grid-template-columns:1fr 1fr}.accounting-rule-fields>label:first-child{grid-column:1/-1}.accounting-rule-row{flex-direction:column;gap:2px}}
.shipment-dialog{width:min(900px,calc(100% - 24px));max-height:90vh;overflow:auto;border:1px solid #d4e0eb;border-radius:12px;padding:16px 18px;color:#20334b;background:#fff;box-shadow:0 20px 80px #15355535}
.shipment-dialog::backdrop{background:#17334a66}
.vat-dialog{width:min(1000px,calc(100% - 24px));font-size:12px}
.vat-dialog p{margin:10px 0;line-height:1.45}
.vat-refusal{padding:10px 12px;background:#fff7e8;border:1px solid #eddfc3;border-radius:8px}
.vat-refusal p{margin:5px 0;color:#72562e}
.vat-table-wrap{max-height:42vh;overflow:auto;margin:12px 0;border:1px solid #e0e8ef;border-radius:7px}
.vat-table{width:100%;border-collapse:collapse;min-width:650px;font-size:12px}
.vat-table th{position:sticky;top:0;background:#f0f5fa;text-align:left;padding:8px}
.vat-table td{padding:6px 8px;border-top:1px solid #e5ebf1}
.vat-table td:first-child{min-width:200px;max-width:370px}
.vat-table small{display:block;font-size:10px;color:#708398;margin-top:3px}
.vat-table input{width:112px}.vat-table select{width:66px}
.vat-table td:last-child{white-space:nowrap;text-align:right}
.vat-dialog .vat-total{padding:8px 10px;background:#edf5fa;border-radius:6px;font-weight:600}
.vat-reason{display:flex;flex-direction:column;margin:10px 0}
.vat-verified{display:flex!important;flex-direction:row!important;align-items:center;gap:8px!important;margin:12px 0}
.vat-dialog .vat-verified input{width:16px;height:16px;min-height:16px;flex-shrink:0}
.vat-analysis{margin:10px 0;border:1px solid #d9e5ee;border-radius:8px;background:#f6f9fc;overflow:hidden}
.vat-analysis>summary{padding:9px 11px;font-size:12px;font-weight:600;color:#315472}
.vat-analysis-body{padding:0 11px 10px;display:grid;gap:8px}
.vat-analysis-body>small{font-size:11px;line-height:1.4}
.vat-analysis-item{padding:8px 10px;border:1px solid #e9dcbf;border-radius:6px;background:#fffaf0}
.vat-analysis-item>strong,.vat-analysis-item>small{display:block;font-size:11px;line-height:1.4}
.vat-analysis-item>small{margin-top:3px;color:#886321}
.vat-analysis-item p,.vat-analysis-body>p{font-size:11px;margin:5px 0}
.vat-analysis-item details{margin:5px 0}.vat-analysis-item details>summary,.vat-analysis-background>summary{font-size:11px;color:#637a8e;padding:3px 0}
.vat-analysis-background>small{display:block;font-size:11px;line-height:1.4;margin:6px 0}
.vat-dialog .vat-analysis-item button{padding:3px 8px;min-height:26px;font-size:11px}
.vat-analysis-sources{display:flex;flex-wrap:wrap;gap:12px;font-size:11px}
.shipment-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.shipment-dialog-heading strong{font-size:16px}
.shipment-dialog-heading button{min-height:28px;padding:0 9px;font-size:20px}
.shipment-dialog .discrepancy-fields{display:grid;grid-template-columns:2fr 1fr 1fr;gap:9px;margin:12px 0}
.shipment-dialog label{font-size:11px;gap:4px}
.shipment-dialog input,.shipment-dialog select,.shipment-dialog textarea{font:inherit;font-size:12px;padding:6px 8px;border:1px solid #cbd7e3;border-radius:6px;min-width:0;color:#20334b}
.shipment-dialog textarea{width:100%;resize:vertical}
.shipment-dialog .discrepancy-fields>label:last-child{grid-column:1/-1}
.discrepancy-table-wrap{max-height:45vh;overflow:auto;border:1px solid #e2e9f1;border-radius:7px}
.discrepancy-table{width:100%;border-collapse:collapse;font-size:11px;min-width:600px}
.discrepancy-table th{position:sticky;top:0;background:#f2f6fa;color:#59728a;font-weight:500;text-align:left;z-index:1}
.discrepancy-table th,.discrepancy-table td{padding:5px 7px;border-bottom:1px solid #e9eef4;vertical-align:middle}
.discrepancy-table td:nth-child(2){min-width:220px;max-width:370px}
.discrepancy-table td:nth-last-child(-n+2){width:90px}
.discrepancy-table input{width:80px;min-height:27px}
.discrepancy-proofs{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}
.discrepancy-proofs input[type=file]{font-size:11px;padding:4px 0}
.discrepancy-proofs button{min-height:25px;padding:3px 7px;font-size:10px;overflow-wrap:anywhere;max-width:300px}
.shipment-dialog-footer{position:sticky;bottom:-16px;padding:10px 0;margin-top:8px;border-top:1px solid #e5ebf2;background:white}
.shipment-dialog-footer button{min-height:31px;padding:5px 10px;font-size:12px}
@media(max-width:640px){
  #ordersList .order-review{padding:7px 10px;gap:7px 10px}
  #ordersList .order-review .review-check{flex-basis:100%;font-size:11px}
  #ordersList .order-review .review-check:has(input:checked){color:#24795b}
  #ordersList .review-date{order:2}
  #ordersList .review-issue{order:3}
  #ordersList .review-status{order:4}
  .shipment-dialog{padding:12px}
  .shipment-dialog .discrepancy-fields{grid-template-columns:1fr 1fr}
  .shipment-dialog .discrepancy-fields>label:first-child{grid-column:1/-1}
}
.correction-editor{margin-top:16px;padding-top:12px;border-top:1px solid #dce5ef;font-size:11px}
.correction-editor p{font-size:11px;line-height:1.45;color:#6c8197}
.correction-editor .correction-check{display:flex;flex-direction:row;align-items:center;gap:6px;margin:9px 0;font-size:11px}
.correction-editor .correction-check input{width:14px;min-height:14px;height:14px;padding:0;order:-1}
.correction-editor .discrepancy-table input{width:105px}
.correction-editor button{font-size:11px;min-height:29px;padding:4px 9px}
.correction-plan{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.correction-document{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:5px 8px;border:1px solid #e4ebf2;border-radius:6px}
#ordersList .order-corrections{padding:5px 12px;border-top:1px solid #e5ebf2;font-size:11px}
#ordersList .order-corrections summary{padding:2px 0;font-size:11px;color:#2d6595}
#ordersList .order-corrections .order-report-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));padding-top:6px}
.correction-editor .discrepancy-fields>label:last-child{grid-column:auto}
.withdrawal-decision{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:8px;border:1px solid #e0e8f0;border-radius:7px}
.withdrawal-decision p{flex-basis:100%;margin:0}
.withdrawal-decision input{max-width:260px;font-size:11px}

/* A declaration belongs to a tax month; shipment rows contain only shipment work. */
#fnsMonthlyPanel>summary{display:flex;align-items:center;gap:8px}
#fnsMonthlySummary{font-size:11px;font-weight:400}
.fns-monthly-hint{font-size:11px;color:#748699;margin:7px 0 10px}
#fnsMonthlyList{display:grid;gap:8px}
.fns-month{border:1px solid #dce5ee;border-radius:8px;overflow:hidden;padding:9px 12px;background:#fbfcfe;min-width:0}
.fns-month-heading,.fns-month-summary{display:flex;align-items:center;justify-content:space-between;gap:5px 12px;flex-wrap:wrap}
.fns-month-heading strong{font-size:13px;color:#284663}
.fns-month-heading small,.fns-month-summary small{font-size:10px;color:#7a8a9b}
.fns-month-summary{font-size:12px;margin:5px 0;color:#49637e}
#fnsMonthlyList .order-report{display:flex;align-items:center;justify-content:space-between;gap:6px 16px;flex-wrap:wrap;padding:7px 0;border-top:1px solid #e5ebf2;font-size:11px}
#fnsMonthlyList .order-report-meta{display:flex;align-items:center;gap:6px 12px;flex-wrap:wrap;min-width:0}
#fnsMonthlyList .report-name{display:flex;align-items:center;gap:5px}
#fnsMonthlyList .report-name strong{font-size:11px;font-weight:600}
#fnsMonthlyList .report-state,#fnsMonthlyList .report-ack{font-size:10px;color:#7a8a9b}
#fnsMonthlyList .report-state.sent,#fnsMonthlyList .report-ack.confirmed{color:#21805b}
#fnsMonthlyList .report-state.error,#fnsMonthlyList .report-error{color:#b0392c}
#fnsMonthlyList .report-controls{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
#fnsMonthlyList button{min-height:25px;padding:3px 7px;font-size:10px}
#fnsMonthlyList .report-error{flex-basis:100%;font-size:10px;overflow-wrap:anywhere}
.fns-month-members,.fns-month-message{display:block;font-size:10px;line-height:1.5;color:#748699;overflow-wrap:anywhere}
.fns-month-message{margin:4px 0;color:#926420}
.fns-month-details{margin-top:7px;border-top:1px solid #e5ebf2;padding-top:5px}
.fns-month-details summary{font-size:11px;color:#466780}
.fns-month-order{display:block;font-size:10px;color:#748699;margin:3px 0}
.fns-month-files{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px}
.fns-month-details>small{font-size:10px;color:#748699}
.vat-model{margin:12px 0;padding:12px 14px;border:1px solid #cddde9;border-radius:12px;background:#f2f7fb;color:#25435b}
.vat-dialog [hidden],#codexSettings [hidden]{display:none!important}
.vat-model p{margin:6px 0;font-size:13px}.vat-model>strong{font-size:14px}.vat-model ul{font-size:13px;padding-left:20px;margin:8px 0}
.vat-model details{font-size:12px;margin:8px 0}.vat-model details small{display:block;color:#607487;margin:4px 0}.vat-model textarea{width:100%;box-sizing:border-box;margin-top:8px}
.vat-model .actions{gap:8px;margin-top:10px}.vat-model button{padding:8px 12px;font-size:12px}.vat-model .error:empty{display:none}
.vat-manual>summary{font-size:13px;padding:10px 0;color:#526e83}.codex-device:not([hidden]){display:flex;flex-wrap:wrap;align-items:center;gap:12px;background:#edf5fb;border-radius:10px;padding:12px;margin:10px 0}
.codex-device strong{font-family:monospace;font-size:20px;letter-spacing:2px}.codex-device small{width:100%;font-size:12px}
#codexSettings .grid{grid-template-columns:repeat(2,minmax(0,1fr))}#codexSettings .settings-body>p{font-size:13px;margin:6px 0 12px}
@media(max-width:640px){#codexSettings .grid{grid-template-columns:1fr}.vat-model{padding:10px}.vat-model button{max-width:100%;white-space:normal}}
@media(max-width:640px){.fns-month{padding:8px 10px}#fnsMonthlyList .order-report-meta{align-items:flex-start;flex-direction:column;gap:3px}#fnsMonthlyList .report-controls{margin-left:auto;justify-content:flex-end;max-width:170px}.fns-month-files button{max-width:100%;white-space:normal;text-align:left}}
