*{box-sizing:border-box}body{margin:0;background:#07101e;color:#e8eef8;font-family:Inter,Arial,sans-serif}.sc-wrap{max-width:1600px;margin:auto;padding:28px}.sc-hero,.sc-filters,.sc-stats,.sc-panel{background:#0d192a;border:1px solid #24344e;border-radius:18px}.sc-hero{padding:28px;display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.sc-hero small{color:#63a8ff;font-weight:800;letter-spacing:1.5px}.sc-hero h1{font-size:38px;margin:5px 0}.sc-hero p{color:#9fb0c9;margin:0}.sc-new,button{border:0;border-radius:10px;background:#2563eb;color:white;padding:11px 16px;font-weight:800;text-decoration:none;cursor:pointer}.sc-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;overflow:hidden;margin-bottom:16px}.sc-stats div{padding:18px;background:#0b1626}.sc-stats span{color:#8fa2bc;display:block}.sc-stats b{font-size:30px}.sc-panel{padding:16px;margin-bottom:16px}.sc-filters{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:10px}.sc-filters input,.sc-filters select{background:#07111f;color:#fff;border:1px solid #2b3c57;border-radius:10px;padding:12px}.sc-table{overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:12px;border-bottom:1px solid #223149;white-space:nowrap}th{color:#78b5ff;font-size:12px;text-transform:uppercase}.muted{color:#8fa2bc}.badge{display:inline-block;padding:5px 9px;border-radius:20px;background:#263850}.badge.delivered{background:#14532d}.badge.error,.badge.delivery_failed{background:#7f1d1d}.badge.in_transit,.badge.picked_up{background:#1e3a8a}.badge.accepted,.badge.label_ready{background:#155e75}dialog{width:min(1000px,94vw);max-height:90vh;overflow:auto;background:#0b1626;color:#eef4ff;border:1px solid #334968;border-radius:20px;padding:24px}dialog::backdrop{background:#020617cc}.sc-close{position:absolute;right:15px;top:12px;background:#25364e;font-size:20px}.detail-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.detail-grid>div,.detail-section{background:#101f33;border:1px solid #263b59;border-radius:12px;padding:13px}.detail-grid span{display:block;color:#89a0bf;font-size:12px}.detail-grid b{display:block;margin-top:5px}.detail-section{margin-top:12px}.detail-section h3{margin-top:0}.timeline{border-left:2px solid #31527d;padding-left:16px}.timeline article{margin:0 0 16px}.timeline small{color:#8297b3}@media(max-width:850px){.sc-wrap{padding:12px}.sc-hero{align-items:flex-start;gap:15px;flex-direction:column}.sc-filters{grid-template-columns:1fr}.sc-stats{grid-template-columns:1fr 1fr}.detail-grid{grid-template-columns:1fr}.sc-hero h1{font-size:30px}}
.sc-help{padding:10px 12px;margin-bottom:10px;border-radius:10px;background:#0a2039;color:#9fc5f7;border:1px solid #204264}.status-link{text-decoration:none;color:#fff;transition:transform .12s ease,filter .12s ease}.status-link:hover{filter:brightness(1.22);transform:translateY(-1px)}.sc-ref{color:#e8eef8;text-decoration:none}.sc-ref:hover{color:#78b5ff}.row-actions{display:flex;gap:7px;align-items:center}.btn-small{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:8px;background:#2563eb;color:#fff;padding:8px 10px;font-size:12px;font-weight:800;text-decoration:none;cursor:pointer}.btn-small.secondary,.secondary{background:#263850}.secondary-link{background:#263850}.hero-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.hero-actions button:disabled{opacity:.4;cursor:not-allowed}.section-title{margin:22px 2px 10px}.section-title h2,.section-title p{margin:0}.section-title p{color:#8fa2bc;margin-top:4px}.detail-grid.extended{grid-template-columns:repeat(4,1fr)}.info-card{background:#101f33;border:1px solid #263b59;border-radius:12px;padding:14px;min-height:78px}.info-card span{display:block;color:#89a0bf;font-size:12px;text-transform:uppercase;letter-spacing:.4px}.info-card b{display:block;margin-top:8px;white-space:normal;word-break:break-word}.detail-summary{display:grid;grid-template-columns:1.1fr .9fr;gap:14px}.current-status,.summary-actions{background:#0d192a;border:1px solid #24344e;border-radius:18px;padding:22px}.current-status small{display:block;color:#78b5ff;font-weight:800;letter-spacing:1px}.current-status strong{font-size:34px;display:block;margin:8px 0}.current-status span{color:#9fb0c9}.current-status.delivered{border-color:#217a46}.current-status.error,.current-status.delivery_failed{border-color:#9b2c2c}.summary-actions{display:grid;gap:10px}.summary-actions>div{background:#101f33;border:1px solid #263b59;border-radius:12px;padding:14px}.summary-actions span{display:block;color:#89a0bf;font-size:12px}.summary-actions b{display:block;margin-top:5px}.error-box{border-color:#7f1d1d!important;background:#2a1118!important}.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.section-head h2,.section-head p{margin:0}.section-head p{color:#8fa2bc;margin-top:4px}.section-head>span{background:#263850;padding:5px 9px;border-radius:20px;color:#c4d4e9}.detail-timeline article{position:relative;padding:0 0 22px 8px}.timeline-dot{position:absolute;left:-23px;top:2px;width:12px;height:12px;border-radius:50%;background:#3b82f6;box-shadow:0 0 0 4px #17345a}.timeline-head{display:flex;justify-content:space-between;gap:15px}.timeline-head time{color:#8297b3;font-size:12px}.status-change{margin:5px 0;color:#9fb0c9}.timeline-note{margin:5px 0 7px;white-space:normal}.label-record{display:flex;justify-content:space-between;gap:15px;padding:10px 0;border-bottom:1px solid #223149}.label-record:last-child{border-bottom:0}.label-record span{color:#8fa2bc}.detail-page{max-width:1500px}
@media(max-width:1100px){.detail-grid.extended{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.detail-grid.extended,.detail-summary{grid-template-columns:1fr}.hero-actions{width:100%;justify-content:stretch}.hero-actions>*{flex:1}.row-actions{flex-direction:column;align-items:stretch}.current-status strong{font-size:28px}.timeline-head{flex-direction:column;gap:2px}.label-record{flex-direction:column;gap:4px}}
/* 19.6.2 - detalji pošiljke u internom modalu, bez browser pop-up prozora */
.link-button{appearance:none;background:none!important;border:0!important;padding:0!important;font:inherit;cursor:pointer;text-align:left}.shipment-modal{padding:0;width:min(1280px,96vw);height:min(860px,94vh);max-height:94vh;border:1px solid #385173;border-radius:14px;overflow:hidden;background:#0b1626;color:#eef4ff;box-shadow:0 24px 80px #000a}.shipment-modal::backdrop{background:#020617b8;backdrop-filter:blur(2px)}.modal-header{min-height:78px;background:#294f84;padding:13px 18px;display:flex;align-items:center;justify-content:space-between;gap:20px}.modal-header small{font-size:11px;font-weight:900;letter-spacing:1px;color:#cfe3ff}.modal-header h2{font-size:22px;margin:2px 0 0}.modal-header p{margin:3px 0 0;color:#d9e7f9;font-size:13px}.modal-head-actions{display:flex;align-items:center;gap:10px}.modal-print{background:#fff;color:#16365f;border-radius:8px;padding:10px 14px}.modal-print:disabled{opacity:.45;cursor:not-allowed}.modal-x{background:transparent!important;color:#fff;font-size:30px;line-height:1;padding:5px 8px}.modal-body{height:calc(94vh - 78px);max-height:782px;overflow:auto;background:#f6f8fb;color:#172235;padding:0 18px 22px}.modal-tabs{position:sticky;top:0;z-index:4;display:flex;gap:8px;padding:13px 0 11px;background:#f6f8fb;border-bottom:1px solid #dce3ec}.modal-tabs button{background:transparent;color:#758398;padding:8px 14px;border-radius:18px;font-size:13px}.modal-tabs button.active{background:#1683bd;color:#fff}.modal-tabs em{font-style:normal;background:#ffffff33;border-radius:12px;padding:2px 6px;margin-left:4px}.modal-tab-panel{padding-top:16px}.modal-status{background:#fff;border:1px solid #d8e0ea;border-left:5px solid #1683bd;border-radius:10px;padding:15px 18px;margin-bottom:14px;display:grid;grid-template-columns:auto 1fr;gap:4px 15px;align-items:center}.modal-status small{font-weight:900;color:#6b7d94}.modal-status strong{font-size:22px}.modal-status span{grid-column:1/-1;color:#63738a}.modal-status.delivered{border-left-color:#16834b}.modal-status.error,.modal-status.delivery_failed{border-left-color:#b3261e}.modal-info-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.modal-info{background:#fff;border:1px solid #dce3ec;border-radius:9px;padding:12px;min-height:68px}.modal-info span{display:block;font-size:11px;text-transform:uppercase;font-weight:800;color:#7b899c}.modal-info b{display:block;margin-top:6px;word-break:break-word}.modal-error{margin-top:12px;padding:14px;border:1px solid #e6a8a8;background:#fff1f1;border-radius:9px;display:flex;flex-direction:column;gap:5px;color:#8f1d1d}.label-preview{margin-top:14px;background:#fff;border:1px solid #dce3ec;border-radius:10px;padding:14px;display:grid;grid-template-columns:220px 1fr;gap:18px;align-items:start}.label-preview span{display:block;color:#6c7b8e;font-size:12px;margin-top:5px}.label-preview img{display:block;max-width:100%;max-height:430px;margin:auto;border:1px solid #e2e7ee;background:#fff}.modal-tab-panel .sc-table{background:#fff;border:1px solid #dce3ec;border-radius:9px}.modal-tab-panel table{color:#172235}.modal-tab-panel th{color:#315d91;background:#edf3fa}.modal-tab-panel td{border-color:#e2e7ee}.modal-tab-panel h3{margin:20px 0 10px}.modal-empty,.modal-loading{padding:40px;text-align:center;color:#728197}.modal-timeline{position:relative;padding:5px 5px 5px 28px}.modal-timeline:before{content:"";position:absolute;left:9px;top:12px;bottom:12px;width:2px;background:#c9d6e5}.modal-timeline article{position:relative;background:#fff;border:1px solid #dce3ec;border-radius:9px;padding:13px 15px;margin-bottom:10px}.modal-timeline article>i{position:absolute;left:-25px;top:17px;width:11px;height:11px;border-radius:50%;background:#1683bd;box-shadow:0 0 0 4px #e1f1fa}.event-head{display:flex;justify-content:space-between;gap:12px}.event-head time{font-size:12px;color:#7c899a}.event-status{margin-top:5px;color:#68788c}.modal-timeline p{margin:6px 0}.modal-timeline small{color:#7a899c}.print-frame{position:fixed;width:1px;height:1px;right:0;bottom:0;border:0;opacity:0;pointer-events:none}@media(max-width:1000px){.modal-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.label-preview{grid-template-columns:1fr}}@media(max-width:620px){.shipment-modal{width:100vw;height:100vh;max-height:100vh;border-radius:0}.modal-header{align-items:flex-start}.modal-head-actions{gap:3px}.modal-print{font-size:11px;padding:8px}.modal-body{height:calc(100vh - 78px);max-height:none;padding:0 10px 16px}.modal-info-grid{grid-template-columns:1fr}.modal-tabs{overflow:auto}.event-head{flex-direction:column;gap:2px}}

/* 19.6.3 - modal teme + A4 landscape 4-up AKS štampa */
.modal-info .modal-value{display:block;margin-top:6px;word-break:break-word;color:#172235!important;font-weight:800;line-height:1.3}
.modal-theme-picker{display:flex;gap:4px;padding:3px;border-radius:10px;background:#ffffff18;border:1px solid #ffffff22}.modal-theme-picker button{width:30px;height:30px;padding:0;border-radius:8px;background:transparent;color:#fff;border:1px solid transparent;font-size:15px}.modal-theme-picker button.active{background:#fff;color:#15345c;border-color:#fff}
.shipment-modal[data-theme="dark"] .modal-body{background:#07101e;color:#e8eef8}.shipment-modal[data-theme="dark"] .modal-tabs{background:#07101e;border-color:#253750}.shipment-modal[data-theme="dark"] .modal-status,.shipment-modal[data-theme="dark"] .modal-info,.shipment-modal[data-theme="dark"] .label-preview,.shipment-modal[data-theme="dark"] .modal-tab-panel .sc-table,.shipment-modal[data-theme="dark"] .modal-timeline article{background:#0f1c2e;border-color:#2b3c56;color:#e8eef8}.shipment-modal[data-theme="dark"] .modal-info .modal-value{color:#f8fbff!important}.shipment-modal[data-theme="dark"] .modal-info span,.shipment-modal[data-theme="dark"] .label-preview span,.shipment-modal[data-theme="dark"] .modal-timeline small,.shipment-modal[data-theme="dark"] .event-head time{color:#91a5c2}.shipment-modal[data-theme="dark"] .modal-tab-panel table{color:#e8eef8}.shipment-modal[data-theme="dark"] .modal-tab-panel th{background:#13253c;color:#8fc1ff}.shipment-modal[data-theme="dark"] .modal-tab-panel td{border-color:#263a55}
.shipment-modal[data-theme="light"] .modal-body{background:#f6f8fb;color:#172235}.shipment-modal[data-theme="light"] .modal-info .modal-value{color:#172235!important}
.shipment-modal[data-theme="glass"]{background:#07101ed9;backdrop-filter:blur(18px)}.shipment-modal[data-theme="glass"] .modal-header{background:#294f84cc;backdrop-filter:blur(18px)}.shipment-modal[data-theme="glass"] .modal-body{background:#07101eb8;color:#f2f7ff;backdrop-filter:blur(20px)}.shipment-modal[data-theme="glass"] .modal-tabs{background:#07101ed9;border-color:#ffffff1f;backdrop-filter:blur(20px)}.shipment-modal[data-theme="glass"] .modal-status,.shipment-modal[data-theme="glass"] .modal-info,.shipment-modal[data-theme="glass"] .label-preview,.shipment-modal[data-theme="glass"] .modal-tab-panel .sc-table,.shipment-modal[data-theme="glass"] .modal-timeline article{background:#ffffff12;border-color:#ffffff26;color:#f4f8ff;backdrop-filter:blur(12px)}.shipment-modal[data-theme="glass"] .modal-info .modal-value{color:#fff!important}.shipment-modal[data-theme="glass"] .modal-info span,.shipment-modal[data-theme="glass"] .label-preview span,.shipment-modal[data-theme="glass"] .modal-timeline small,.shipment-modal[data-theme="glass"] .event-head time{color:#b8cae1}.shipment-modal[data-theme="glass"] .modal-tab-panel table{color:#f4f8ff}.shipment-modal[data-theme="glass"] .modal-tab-panel th{background:#ffffff10;color:#a9d0ff}.shipment-modal[data-theme="glass"] .modal-tab-panel td{border-color:#ffffff1f}

.label-sheet-modal{padding:0;width:min(660px,94vw);border:1px solid #385173;border-radius:14px;overflow:hidden;background:#0c1727;color:#edf5ff;box-shadow:0 24px 80px #000b}.label-sheet-modal::backdrop{background:#020617c4;backdrop-filter:blur(3px)}.label-sheet-modal header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:16px 18px;background:#294f84}.label-sheet-modal header small{font-size:10px;font-weight:900;letter-spacing:1px;color:#cde1ff}.label-sheet-modal header h3{margin:2px 0 4px;font-size:22px}.label-sheet-modal header p{margin:0;color:#d7e7fa;font-size:12px}.label-sheet-body{padding:18px}.label-sheet-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;aspect-ratio:297/210;background:#eef2f7;border-radius:12px;padding:14px}.label-sheet-grid button{position:relative;border:2px solid #b7c2d0;background:#fff;border-radius:5px;min-height:150px;color:#0c1524;display:flex;align-items:center;justify-content:center;overflow:hidden}.label-sheet-grid button span{font-size:64px;line-height:1;font-weight:900}.label-sheet-grid button:before{content:"AKS";position:absolute;left:10px;top:8px;font-style:italic;font-weight:900;font-size:16px;color:#111}.label-sheet-grid button:hover{border-color:#1788c4}.label-sheet-grid button.selected{border-color:#10a15d;box-shadow:0 0 0 3px #10a15d22}.label-sheet-grid button.selected:after{content:"IZABRANO";position:absolute;right:8px;bottom:8px;background:#10a15d;color:#fff;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:900}.label-sheet-note{margin:12px 2px 0;color:#9fb2ca;font-size:13px}.label-sheet-body footer{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.label-sheet-body footer button{border:0;border-radius:9px;padding:11px 16px;background:#1b74d2;color:#fff;font-weight:800}.label-sheet-body footer .secondary{background:#22344d;color:#dbe8f7}
@media(max-width:620px){.modal-theme-picker{display:none}.label-sheet-grid{gap:8px;padding:8px}.label-sheet-grid button{min-height:105px}.label-sheet-grid button span{font-size:48px}.label-sheet-body footer{flex-direction:column}.label-sheet-body footer button{width:100%}}

/* Correcto WMS 19.7.0 — Unified Shipping Center */
.unified-center{max-width:1680px}.hero-actions{display:flex;gap:10px;align-items:center}.hero-actions button{height:44px}.sc-stats{grid-template-columns:repeat(6,minmax(0,1fr))}.sc-stats .stat-filter{appearance:none;text-align:left;cursor:pointer;background:var(--wms-surface)!important;color:var(--wms-text)!important;border:1px solid var(--wms-line)!important;border-radius:18px;padding:16px;box-shadow:var(--wms-shadow);transition:.18s}.sc-stats .stat-filter:hover,.sc-stats .stat-filter.active{border-color:var(--wms-brand)!important;transform:translateY(-1px)}.sc-stats .stat-filter span{display:block;color:var(--wms-muted);font-size:12px;font-weight:700}.sc-stats .stat-filter b{display:block;font-size:28px;margin-top:5px}.sc-stats .stat-filter.danger b{color:var(--wms-danger)}
.center-tabs{display:flex;gap:6px;padding:5px;background:var(--wms-surface-3);border:1px solid var(--wms-line);border-radius:14px;width:max-content;margin:18px 0}.center-tabs button{border:0;background:transparent;color:var(--wms-muted);padding:10px 16px;border-radius:10px;font-weight:800;cursor:pointer}.center-tabs button.active{background:var(--wms-surface);color:var(--wms-heading);box-shadow:0 3px 12px rgba(15,23,42,.08)}.center-tabs span{display:inline-grid;place-items:center;min-width:20px;height:20px;border-radius:999px;background:var(--wms-danger);color:#fff;font-size:11px;margin-left:5px}.center-panel[hidden]{display:none!important}.aks-grid{display:grid;gap:16px}.aks-health,.section-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.aks-health h2,.section-head h2{margin:3px 0}.aks-health p,.section-head p{margin:3px 0;color:var(--wms-muted)}.aks-tools,.row-actions,.modal-actions{display:flex;gap:7px;flex-wrap:wrap}.aks-tools button,.row-actions button,.modal-actions button{border:1px solid var(--wms-line);background:var(--wms-surface-3);color:var(--wms-text);border-radius:10px;padding:9px 12px;font-weight:750;cursor:pointer}.modal-actions{padding:0 24px 14px}.modal-actions .primary{background:var(--wms-brand)!important;color:#fff!important}.recon-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:18px 0}.recon-summary>div{padding:14px;border-radius:14px;background:var(--wms-surface-2);border:1px solid var(--wms-line)}.recon-summary span{display:block;color:var(--wms-muted);font-size:12px}.recon-summary b{font-size:25px}.sc-filters.compact{grid-template-columns:2fr 1fr;margin-bottom:12px}.empty-cell{text-align:center!important;padding:34px!important}
html[data-theme="light"] .shipment-modal::backdrop,html[data-theme="light"] .label-sheet-modal::backdrop{background:rgba(15,23,42,.32);backdrop-filter:blur(7px)}html[data-theme="dark"] .shipment-modal::backdrop,html[data-theme="dark"] .label-sheet-modal::backdrop{background:rgba(0,0,0,.62);backdrop-filter:blur(7px)}.shipment-modal,.label-sheet-modal{background:transparent!important}.modal-shell,.label-sheet-shell{background:color-mix(in srgb,var(--wms-surface) 96%,transparent)!important;color:var(--wms-text)!important;border-color:var(--wms-line)!important}.modal-info,.modal-status,.label-preview,.modal-timeline article{background:var(--wms-surface-2)!important;border-color:var(--wms-line)!important}.modal-info span,.modal-timeline small{color:var(--wms-muted)!important}
@media(max-width:1100px){.sc-stats{grid-template-columns:repeat(3,1fr)}.aks-health,.section-head{align-items:flex-start;flex-direction:column}}@media(max-width:700px){.sc-stats{grid-template-columns:repeat(2,1fr)}.hero-actions{width:100%;flex-direction:column}.hero-actions>*{width:100%;text-align:center}.center-tabs{width:100%}.center-tabs button{flex:1}.recon-summary{grid-template-columns:repeat(2,1fr)}.aks-tools button{flex:1 1 45%}}

/* Correcto WMS 19.7.1 — responsive shipment dialogs */
.shipment-modal,.label-sheet-modal{margin:auto;padding:0!important;inset:0;max-width:none;max-height:none;overflow:visible!important;border:0!important;background:transparent!important}
.shipment-modal{width:min(1180px,calc(100vw - 40px));height:min(820px,calc(100dvh - 40px))}
.shipment-modal .modal-shell{width:100%;height:100%;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--wms-line);border-radius:18px;box-shadow:0 28px 90px rgba(0,0,0,.38)}
.shipment-modal .modal-shell>header{flex:0 0 auto;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:start;padding:20px 22px 16px;background:var(--wms-surface);border-bottom:1px solid var(--wms-line)}
.shipment-modal .modal-shell>header small{display:block;color:var(--wms-muted);font-size:11px;font-weight:800;letter-spacing:.08em}.shipment-modal .modal-shell>header h2{margin:5px 0 4px;color:var(--wms-heading);font-size:clamp(22px,2.4vw,30px);line-height:1.1}.shipment-modal .modal-shell>header p{margin:0;color:var(--wms-muted);font-size:13px}
.modal-close{display:grid!important;place-items:center;width:40px;height:40px;padding:0!important;border:1px solid var(--wms-line)!important;border-radius:12px!important;background:var(--wms-surface-3)!important;color:var(--wms-heading)!important;font-size:24px!important;line-height:1!important}.modal-close:hover{border-color:var(--wms-brand)!important;color:var(--wms-brand)!important}
.shipment-modal .modal-actions{flex:0 0 auto;padding:10px 22px;background:var(--wms-surface);border-bottom:1px solid var(--wms-line)}
.shipment-modal #modalBody{flex:1 1 auto;min-height:0;overflow:auto;padding:0 22px 22px;background:var(--wms-bg);color:var(--wms-text);scrollbar-gutter:stable}
.shipment-modal .modal-tabs{top:0;margin:0 -22px 16px;padding:10px 22px;background:color-mix(in srgb,var(--wms-bg) 96%,transparent)!important;border-color:var(--wms-line)!important;backdrop-filter:blur(12px)}
.shipment-modal .modal-status{border-radius:14px;padding:16px 18px}.shipment-modal .modal-status strong{color:var(--wms-heading)!important}.shipment-modal .modal-status span{color:var(--wms-muted)!important}
.shipment-modal .modal-info-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.shipment-modal .modal-info{min-width:0;min-height:82px;padding:13px 14px;border-radius:13px!important}.shipment-modal .modal-info span{font-size:10px;letter-spacing:.035em}.shipment-modal .modal-info b,.shipment-modal .modal-info .modal-value{color:var(--wms-heading)!important;font-size:14px;line-height:1.35;overflow-wrap:anywhere}
.shipment-modal .modal-tab-panel table{color:var(--wms-text)!important}.shipment-modal .modal-tab-panel th{background:var(--wms-surface-3)!important;color:var(--wms-muted)!important}.shipment-modal .modal-tab-panel td{border-color:var(--wms-line)!important}

.label-sheet-modal{width:min(720px,calc(100vw - 32px));height:auto}
.label-sheet-modal .label-sheet-shell{width:100%;overflow:hidden;border:1px solid var(--wms-line);border-radius:18px;box-shadow:0 28px 90px rgba(0,0,0,.42)}
.label-sheet-modal .label-sheet-shell>header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:start;padding:20px 22px 16px;background:var(--wms-surface);border-bottom:1px solid var(--wms-line)}
.label-sheet-modal header small{display:block;color:var(--wms-muted);font-size:10px;font-weight:850;letter-spacing:.08em}.label-sheet-modal header h2{margin:5px 0 6px;color:var(--wms-heading);font-size:24px}.label-sheet-modal header p{margin:0;color:var(--wms-muted);font-size:13px}
.label-position-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 22px 12px;padding:12px;aspect-ratio:297/210;border:1px solid var(--wms-line);border-radius:14px;background:var(--wms-surface-3)}
.label-position-grid button{position:relative;display:grid;place-items:center;min-width:0;min-height:0;padding:0!important;border:2px solid var(--wms-line)!important;border-radius:9px!important;background:var(--wms-surface)!important;color:var(--wms-heading)!important;box-shadow:none!important;transition:.15s ease}.label-position-grid button:hover{border-color:var(--wms-brand)!important;transform:translateY(-1px)}.label-position-grid button.selected{border-color:#16a36a!important;box-shadow:inset 0 0 0 1px #16a36a!important}.label-position-grid button span{font-size:clamp(34px,6vw,58px);font-weight:850;line-height:1}.label-position-grid button:before{content:'AKS';position:absolute;left:10px;top:8px;color:var(--wms-muted);font-size:11px;font-weight:900;font-style:italic}.label-position-grid button.selected:after{content:'IZABRANO';position:absolute;right:8px;bottom:8px;padding:3px 7px;border-radius:999px;background:#16a36a;color:#fff;font-size:9px;font-weight:900}
.label-sheet-modal .primary-wide{display:block;width:calc(100% - 44px);margin:0 22px 20px;padding:12px 16px!important;border-radius:11px!important;background:var(--wms-brand)!important;color:#fff!important}

@media(max-width:900px){.shipment-modal{width:calc(100vw - 20px);height:calc(100dvh - 20px)}.shipment-modal .modal-info-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.shipment-modal{width:100vw;height:100dvh}.shipment-modal .modal-shell{border-radius:0;border-left:0;border-right:0}.shipment-modal .modal-shell>header{padding:14px 14px 12px}.shipment-modal .modal-actions{padding:9px 14px;overflow-x:auto;flex-wrap:nowrap}.shipment-modal .modal-actions button{white-space:nowrap}.shipment-modal #modalBody{padding:0 12px 18px}.shipment-modal .modal-tabs{margin:0 -12px 12px;padding:8px 12px;overflow-x:auto;flex-wrap:nowrap}.shipment-modal .modal-tabs button{white-space:nowrap}.shipment-modal .modal-info-grid{grid-template-columns:1fr}.shipment-modal .modal-info{min-height:70px}.label-sheet-modal{width:calc(100vw - 20px)}.label-sheet-modal .label-sheet-shell>header{padding:15px}.label-sheet-modal header h2{font-size:20px}.label-position-grid{margin:12px;padding:8px;gap:8px}.label-position-grid button:before{left:6px;top:5px;font-size:9px}.label-position-grid button.selected:after{right:5px;bottom:5px;font-size:7px}.label-sheet-modal .primary-wide{width:calc(100% - 24px);margin:0 12px 12px}}
/* 19.7.4 — Shipment Editing */
.shipment-edit-card{max-width:980px;margin:18px auto;padding:20px;border:1px solid var(--wms-line);border-radius:18px;background:var(--wms-surface);box-shadow:0 14px 40px rgba(15,23,42,.08)}
.edit-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.edit-head small{color:var(--wms-brand);font-weight:900;letter-spacing:.08em}.edit-head h3{margin:4px 0;font-size:22px;color:var(--wms-heading)}.edit-head p{margin:0;color:var(--wms-muted)}.edit-head>button{width:38px;height:38px;border:1px solid var(--wms-line);border-radius:10px;background:var(--wms-surface-3);color:var(--wms-heading);font-size:22px;cursor:pointer}
.shipment-edit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.shipment-edit-grid label{display:flex;flex-direction:column;gap:6px;color:var(--wms-muted);font-size:12px;font-weight:800}.shipment-edit-grid input,.shipment-edit-grid select,.shipment-edit-grid textarea{width:100%;box-sizing:border-box;border:1px solid var(--wms-line);border-radius:11px;background:var(--wms-surface-2);color:var(--wms-text);padding:11px 12px;font:inherit;outline:none}.shipment-edit-grid input:focus,.shipment-edit-grid select:focus,.shipment-edit-grid textarea:focus{border-color:var(--wms-brand);box-shadow:0 0 0 3px color-mix(in srgb,var(--wms-brand) 14%,transparent)}.shipment-edit-grid .span-2{grid-column:span 2}.shipment-edit-grid .span-all{grid-column:1/-1}.shipment-edit-grid .edit-check{flex-direction:row;align-items:center;align-self:end;min-height:42px}.shipment-edit-grid .edit-check input{width:18px;height:18px}.edit-actions{display:flex;justify-content:flex-end;gap:9px;padding-top:5px}.edit-actions button{border:1px solid var(--wms-line);border-radius:11px;padding:11px 16px;background:var(--wms-surface-3);color:var(--wms-text);font-weight:800;cursor:pointer}.edit-actions .primary{background:var(--wms-brand);color:#fff;border-color:var(--wms-brand)}
@media(max-width:900px){.shipment-edit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.shipment-edit-card{margin:10px 0;padding:14px;border-radius:14px}.shipment-edit-grid{grid-template-columns:1fr}.shipment-edit-grid .span-2{grid-column:span 1}.edit-head h3{font-size:19px}.edit-actions{position:sticky;bottom:0;padding:10px 0;background:var(--wms-surface)}.edit-actions button{flex:1}}

/* 19.7.5 — responsive everywhere, no horizontal page scroll */
html,body{max-width:100%;overflow-x:hidden}.sc-wrap,.sc-panel,.sc-table,dialog,.shipment-modal-shell{min-width:0;max-width:100%}
th,td,.info-card,.timeline article,.modal-timeline article{white-space:normal!important;overflow-wrap:anywhere;word-break:normal;min-width:0}.info-card b,.event-head b,.timeline-note,.modal-timeline p{overflow-wrap:anywhere;word-break:break-word}.sc-table{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
@media(max-width:1100px){.detail-grid.extended{grid-template-columns:repeat(2,minmax(0,1fr))}.sc-filters{grid-template-columns:minmax(0,2fr) minmax(150px,1fr) minmax(150px,1fr) auto}.sc-table table{table-layout:fixed}.sc-table th,.sc-table td{white-space:normal!important;overflow-wrap:anywhere}}
@media(max-width:760px){.sc-wrap{padding:8px}.sc-panel{padding:8px;border-radius:14px}.sc-filters{grid-template-columns:1fr}.sc-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-grid.extended,.detail-summary{grid-template-columns:1fr}.current-status strong{font-size:26px}.section-head{flex-direction:column}.hero-actions,.row-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}
/* shipping list becomes cards instead of a horizontally scrolling desktop table */
#tabShipments .sc-table{overflow:visible}#tabShipments table,#tabShipments tbody,#tabShipments tr,#tabShipments td{display:block;width:100%}#tabShipments thead{display:none}#tabShipments tr{margin:0 0 10px;padding:12px;border:1px solid var(--wms-line,#263b59);border-radius:14px;background:var(--wms-surface,#0d192a)}#tabShipments td{display:grid;grid-template-columns:110px minmax(0,1fr);gap:10px;padding:7px 3px;border:0;white-space:normal!important;overflow-wrap:anywhere}#tabShipments td::before{content:attr(data-label);font-size:11px;font-weight:800;text-transform:uppercase;color:var(--wms-muted,#89a0bf)}#tabShipments td:last-child{display:block;padding-top:10px}.modal-tabs{overflow-x:auto;max-width:100%;white-space:nowrap}.modal-tab-panel{min-width:0}.modal-timeline article{grid-template-columns:18px minmax(0,1fr)!important}.event-head{display:flex;flex-wrap:wrap;gap:5px 10px}.event-head time{margin-left:0!important}.shipment-modal-head{padding-right:52px}.shipment-modal-head h2{font-size:clamp(22px,8vw,34px);overflow-wrap:anywhere}}
@media(max-width:430px){.sc-stats{grid-template-columns:1fr}.detail-grid.extended{grid-template-columns:1fr}#tabShipments td{grid-template-columns:88px minmax(0,1fr);font-size:14px}.shipment-modal-shell{width:100vw!important;max-width:100vw!important;margin:0!important;border-radius:0!important}.modal-timeline article{padding:12px!important}.info-card{padding:11px}.current-status,.summary-actions{padding:14px}}

/* =========================================================
   19.7.8 — SHIPPING CENTER COMPACT UX
   Desktop: denser typography and stable column proportions.
   Mobile: card layout from 19.7.5 remains authoritative.
   ========================================================= */
#tabShipments .sc-table{overflow-x:auto}
#tabShipments table.shipment-center-table{width:100%;min-width:1180px;table-layout:fixed;border-collapse:collapse}
#tabShipments .shipment-center-table th{font-size:11px!important;line-height:1.15!important;padding:11px 8px!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important;letter-spacing:.02em}
#tabShipments .shipment-center-table td{font-size:13px!important;line-height:1.28!important;padding:12px 8px!important;vertical-align:middle;white-space:normal!important;overflow-wrap:break-word!important;word-break:normal!important}
#tabShipments .shipment-center-table td:nth-child(1),
#tabShipments .shipment-center-table td:nth-child(6){font-weight:800;font-variant-numeric:tabular-nums;overflow-wrap:normal!important;word-break:keep-all!important}
#tabShipments .shipment-center-table td:nth-child(2),
#tabShipments .shipment-center-table td:nth-child(4),
#tabShipments .shipment-center-table td:nth-child(7),
#tabShipments .shipment-center-table td:nth-child(8),
#tabShipments .shipment-center-table td:nth-child(9){font-size:12.5px!important}
#tabShipments .shipment-center-table td:nth-child(3) b{font-size:13.5px;line-height:1.28;display:inline}
#tabShipments .shipment-center-table td:nth-child(3) .muted{font-size:12.5px;line-height:1.25}
#tabShipments .shipment-center-table .badge{font-size:12px!important;line-height:1.15!important;padding:7px 10px!important;white-space:normal!important;min-width:0;max-width:100%;text-align:center}
#tabShipments .shipment-center-table .row-actions{gap:5px;flex-wrap:nowrap}
#tabShipments .shipment-center-table .row-actions button{font-size:12px!important;line-height:1!important;padding:9px 10px!important;min-height:34px}
#tabShipments .shipment-center-table .row-actions button.secondary{min-width:38px;padding-left:8px!important;padding-right:8px!important}

/* Column proportions: reference | source | recipient | city | status | AKS | package | COD | created | actions */
#tabShipments .shipment-center-table col:nth-child(1){width:6%}
#tabShipments .shipment-center-table col:nth-child(2){width:8%}
#tabShipments .shipment-center-table col:nth-child(3){width:29%}
#tabShipments .shipment-center-table col:nth-child(4){width:10%}
#tabShipments .shipment-center-table col:nth-child(5){width:9%}
#tabShipments .shipment-center-table col:nth-child(6){width:10%}
#tabShipments .shipment-center-table col:nth-child(7){width:8%}
#tabShipments .shipment-center-table col:nth-child(8){width:8%}
#tabShipments .shipment-center-table col:nth-child(9){width:8%}
#tabShipments .shipment-center-table col:nth-child(10){width:4%}

@media (max-width:1250px) and (min-width:761px){
  #tabShipments table.shipment-center-table{min-width:1080px}
  #tabShipments .shipment-center-table th{font-size:10.5px!important;padding:10px 7px!important}
  #tabShipments .shipment-center-table td{font-size:12px!important;padding:11px 7px!important}
  #tabShipments .shipment-center-table td:nth-child(3) b{font-size:12.5px}
  #tabShipments .shipment-center-table .badge{font-size:11px!important;padding:6px 8px!important}
}

@media (max-width:760px){
  #tabShipments table.shipment-center-table{min-width:0;table-layout:auto}
  #tabShipments .shipment-center-table td,
  #tabShipments .shipment-center-table td:nth-child(n){font-size:13px!important;line-height:1.35!important;padding:7px 3px!important;overflow-wrap:anywhere!important;word-break:normal!important}
  #tabShipments .shipment-center-table td:nth-child(3) b{font-size:13.5px}
  #tabShipments .shipment-center-table .badge{display:inline-flex;width:auto;max-width:100%;font-size:12px!important;padding:6px 9px!important}
  #tabShipments .shipment-center-table .row-actions{display:flex;gap:8px;flex-direction:row;flex-wrap:wrap}
  #tabShipments .shipment-center-table .row-actions button:first-child{flex:1 1 120px}
}

/* 19.7.9 - delivery policy */
.delivery-no-aks{display:inline-flex;align-items:center;max-width:100%;padding:9px 12px;border:1px solid currentColor;border-radius:10px;font-size:12px;line-height:1.25;white-space:normal;overflow-wrap:anywhere;opacity:.82}


/* =========================================================
   19.8.23 — CENTAR POŠILJAKA / PREMIUM DATA TABLE
   Dense desktop table + sortable headers + paging + true mobile cards.
   ========================================================= */
.shipments-workspace{padding:0!important;overflow:hidden;background:linear-gradient(180deg,#0d192a 0%,#0a1525 100%)!important}
.table-toolbar,.table-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border-bottom:1px solid #223149}
.table-toolbar>div:first-child{display:flex;align-items:baseline;gap:10px}.table-toolbar strong{font-size:18px}.table-toolbar span,.table-footer span,.table-density label{color:#8fa2bc;font-size:13px}.table-density{display:flex;align-items:center;gap:9px}.table-density select{min-width:76px;background:#07111f;color:#fff;border:1px solid #2b3c57;border-radius:10px;padding:9px 30px 9px 10px}
.table-footer{border-top:1px solid #223149;border-bottom:0}.table-footer>div{display:flex;gap:8px}.pager-btn{background:#15253a;border:1px solid #2b3c57;padding:9px 12px}.pager-btn:disabled{opacity:.35;cursor:not-allowed}
#tabShipments .shipments-workspace .sc-table{overflow:visible!important}
#tabShipments table.shipment-center-table{min-width:0!important;table-layout:fixed}
#tabShipments .shipment-center-table thead{position:sticky;top:0;z-index:2;background:#0b1626}
#tabShipments .shipment-center-table th{padding:0!important;background:#0b1626;border-bottom:1px solid #30415c}
.sort-head{width:100%;min-height:44px;padding:10px 8px!important;display:flex;align-items:center;justify-content:flex-start;gap:6px;background:transparent!important;color:#8fb9ec!important;border:0!important;border-radius:0!important;font-size:11px!important;text-transform:uppercase;letter-spacing:.045em;text-align:left}
.sort-head:hover{background:#13233a!important;color:#fff!important}.sort-head i{width:8px;height:12px;position:relative;opacity:.35}.sort-head i:before,.sort-head i:after{content:"";position:absolute;left:1px;border-left:3px solid transparent;border-right:3px solid transparent}.sort-head i:before{top:0;border-bottom:4px solid currentColor}.sort-head i:after{bottom:0;border-top:4px solid currentColor}.sort-head.active{color:#fff!important;background:#12243c!important}.sort-head.asc i:after,.sort-head.desc i:before{opacity:.2}.sort-head.active i{opacity:1}
#tabShipments .shipment-center-table tbody tr{transition:background .14s ease}#tabShipments .shipment-center-table tbody tr:hover{background:#10213a}
#tabShipments .shipment-center-table td{border-bottom:1px solid #1f3048!important;padding:11px 8px!important;vertical-align:middle!important;font-size:12.5px!important;line-height:1.25!important}
#tabShipments .shipment-center-table td:nth-child(3){font-size:12.5px!important}#tabShipments .shipment-center-table td:nth-child(3)b{font-size:13px!important}#tabShipments .shipment-center-table td:nth-child(8){text-align:right;font-variant-numeric:tabular-nums}#tabShipments .shipment-center-table th:nth-child(8) .sort-head{justify-content:flex-end}
#tabShipments .shipment-center-table col:nth-child(1){width:7%}#tabShipments .shipment-center-table col:nth-child(2){width:8%}#tabShipments .shipment-center-table col:nth-child(3){width:27%}#tabShipments .shipment-center-table col:nth-child(4){width:11%}#tabShipments .shipment-center-table col:nth-child(5){width:9%}#tabShipments .shipment-center-table col:nth-child(6){width:10%}#tabShipments .shipment-center-table col:nth-child(7){width:8%}#tabShipments .shipment-center-table col:nth-child(8){width:8%}#tabShipments .shipment-center-table col:nth-child(9){width:8%}#tabShipments .shipment-center-table col:nth-child(10){width:4%}
@media(max-width:1200px) and (min-width:761px){#tabShipments .shipment-center-table th:nth-child(2),#tabShipments .shipment-center-table td:nth-child(2),#tabShipments .shipment-center-table th:nth-child(7),#tabShipments .shipment-center-table td:nth-child(7){display:none}#tabShipments .shipment-center-table col:nth-child(2),#tabShipments .shipment-center-table col:nth-child(7){width:0}#tabShipments .shipment-center-table col:nth-child(3){width:32%}#tabShipments .shipment-center-table col:nth-child(4){width:13%}#tabShipments .shipment-center-table col:nth-child(5){width:11%}#tabShipments .shipment-center-table col:nth-child(6){width:12%}}
@media(max-width:760px){
 .sc-hero{padding:18px!important}.sc-hero h1{font-size:28px!important}.sc-hero p{font-size:14px;line-height:1.45}.sc-stats{gap:8px;background:transparent;border:0;overflow:visible}.stat-filter{border:1px solid #24344e!important;border-radius:13px!important;min-height:72px;text-align:left;padding:12px!important}.sc-filters{padding:10px!important}.sc-filters input,.sc-filters select,.sc-filters button{min-height:46px}
 .table-toolbar{padding:12px;align-items:flex-end}.table-toolbar>div:first-child{display:block}.table-toolbar strong{display:block;font-size:17px}.table-toolbar span{display:block;margin-top:3px}.table-density{gap:6px}.table-density label{font-size:11px}.table-density select{min-width:68px;padding:8px}
 #tabShipments .shipments-workspace .sc-table{padding:10px!important;background:#07101e}
 #tabShipments .shipment-center-table tbody{display:grid!important;gap:10px}
 #tabShipments .shipment-center-table tr{margin:0!important;padding:0!important;overflow:hidden;border:1px solid #263b59!important;border-radius:16px!important;background:#0d192a!important;box-shadow:0 8px 24px rgba(0,0,0,.12)}
 #tabShipments .shipment-center-table td{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;grid-template-columns:none!important;gap:14px!important;padding:9px 12px!important;border-bottom:1px solid #1d2d43!important;font-size:13px!important;text-align:right!important}
 #tabShipments .shipment-center-table td::before{flex:0 0 92px;text-align:left;color:#7187a5!important;font-size:10px!important;letter-spacing:.05em}
 #tabShipments .shipment-center-table td:nth-child(1){padding-top:14px!important;background:#102039}.shipment-center-table td:nth-child(1) .sc-ref b{font-size:17px;color:#7db7ff}
 #tabShipments .shipment-center-table td:nth-child(3){display:grid!important;grid-template-columns:92px minmax(0,1fr)!important}.shipment-center-table td:nth-child(3)>b,.shipment-center-table td:nth-child(3)>.muted{grid-column:2;text-align:right}.shipment-center-table td:nth-child(3)::before{grid-row:1/3}
 #tabShipments .shipment-center-table td:nth-child(8){text-align:right!important}
 #tabShipments .shipment-center-table td:last-child{display:block!important;padding:11px 12px 14px!important;border-bottom:0!important;background:#0a1627}.shipment-center-table td:last-child::before{display:none}.shipment-center-table .row-actions{width:100%;display:grid!important;grid-template-columns:1fr auto!important}.shipment-center-table .row-actions button{min-height:44px!important}
 .table-footer{padding:12px;flex-direction:column;align-items:stretch}.table-footer>div{display:grid;grid-template-columns:1fr 1fr}.table-footer .pager-btn{min-height:44px}.table-footer span{text-align:center}
}
@media(max-width:390px){.table-toolbar{align-items:stretch;flex-direction:column}.table-density{justify-content:space-between}.table-density select{flex:1}.sc-stats{grid-template-columns:1fr 1fr!important}}

/* 19.8.25 — Centar pošiljaka: kompaktnija tabela i AKS rezultat u modalu */
#tabShipments .shipment-center-table col:nth-child(1){width:9%!important}#tabShipments .shipment-center-table col:nth-child(2){width:7%!important}#tabShipments .shipment-center-table col:nth-child(3){width:18%!important}#tabShipments .shipment-center-table col:nth-child(4){width:11%!important}#tabShipments .shipment-center-table col:nth-child(5){width:10%!important}#tabShipments .shipment-center-table col:nth-child(6){width:11%!important}#tabShipments .shipment-center-table col:nth-child(7){width:8%!important}#tabShipments .shipment-center-table col:nth-child(8){width:9%!important}#tabShipments .shipment-center-table col:nth-child(9){width:9%!important}#tabShipments .shipment-center-table col:nth-child(10){width:8%!important}
#tabShipments .shipment-center-table td{padding:9px 7px!important}.recipient-cell{display:grid;gap:3px;min-width:0}.recipient-cell b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.2}.recipient-cell .muted{font-size:11px;white-space:nowrap}
#tabShipments .shipment-center-table .row-actions{display:flex!important;justify-content:flex-end;gap:5px!important}#tabShipments .shipment-center-table .row-actions button{min-width:52px!important;white-space:nowrap!important;word-break:normal!important;padding:8px 7px!important;font-size:11px!important}
.address-check-result{display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;align-items:start;margin:0 0 14px;padding:14px;border:1px solid;border-radius:14px}.address-check-result.success{background:rgba(16,185,129,.10);border-color:rgba(16,185,129,.45);color:#d1fae5}.address-check-result.error{background:rgba(239,68,68,.09);border-color:rgba(239,68,68,.42);color:#fee2e2}.address-check-result .acr-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;font-size:20px;font-weight:900;background:rgba(255,255,255,.08)}.address-check-result p{margin:4px 0 3px;line-height:1.4;color:inherit}.address-check-result small{opacity:.78}.address-check-result button{margin-top:8px;padding:8px 10px}
.aks-reference-editor{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:14px;border:1px solid #2b4161;border-radius:14px;background:rgba(37,99,235,.055)}.aks-reference-editor .aks-ref-title{grid-column:1/-1;display:grid;gap:3px}.aks-reference-editor .aks-ref-title small{color:#60a5fa;letter-spacing:.12em;font-weight:800}.aks-return-check{grid-column:1/-1}
@media(max-width:1050px) and (min-width:761px){#tabShipments .shipment-center-table th:nth-child(2),#tabShipments .shipment-center-table td:nth-child(2){display:none}#tabShipments .shipment-center-table col:nth-child(2){width:0!important}#tabShipments .shipment-center-table col:nth-child(3){width:22%!important}#tabShipments .shipment-center-table col:nth-child(10){width:10%!important}}
@media(max-width:760px){.aks-reference-editor{grid-template-columns:1fr}.aks-reference-editor .aks-ref-title,.aks-return-check{grid-column:1}#tabShipments .shipment-center-table .row-actions{display:grid!important;grid-template-columns:1fr auto!important}#tabShipments .shipment-center-table .row-actions button{font-size:13px!important;min-height:44px!important}}

/* 19.8.29 — dark modal error readability */
.shipment-modal .modal-error{background:#2b1118!important;border:1px solid #7f2632!important;color:#fecaca!important;box-shadow:inset 4px 0 0 #ef4444;padding:14px 16px!important}
.shipment-modal .modal-error b{color:#fff!important;font-size:13px}
.shipment-modal .modal-error span{color:#fca5a5!important;line-height:1.45}
@media (prefers-color-scheme:light){body:not(.dark) .shipment-modal .modal-error{background:#fff1f2!important;border-color:#fecdd3!important;color:#991b1b!important}body:not(.dark) .shipment-modal .modal-error b{color:#7f1d1d!important}body:not(.dark) .shipment-modal .modal-error span{color:#991b1b!important}}

/* 19.8.30 — AKS confirmation modal + dark tables */
.aks-submit-modal{margin:auto;padding:0!important;border:0!important;background:transparent!important;width:min(680px,calc(100vw - 28px));max-width:none;color:var(--wms-text)}
.aks-submit-modal::backdrop{background:rgba(0,0,0,.68);backdrop-filter:blur(8px)}
.aks-submit-shell{overflow:hidden;border:1px solid var(--wms-line);border-radius:20px;background:var(--wms-surface);box-shadow:0 32px 100px rgba(0,0,0,.55)}
.aks-submit-shell>header{display:grid;grid-template-columns:1fr auto;gap:16px;padding:22px 24px 18px;border-bottom:1px solid var(--wms-line);background:var(--wms-surface)}
.aks-submit-shell header small{color:var(--wms-brand);font-weight:900;letter-spacing:.09em}.aks-submit-shell header h2{margin:5px 0 4px;color:var(--wms-heading);font-size:25px}.aks-submit-shell header p{margin:0;color:var(--wms-muted);font-size:13px}
.aks-submit-body{padding:20px 24px;background:var(--wms-bg)}.aks-submit-recipient{padding:16px;border:1px solid var(--wms-line);border-radius:14px;background:var(--wms-surface-2)}.aks-submit-recipient span,.aks-submit-grid span{display:block;color:var(--wms-muted);font-size:10px;font-weight:900;letter-spacing:.07em}.aks-submit-recipient strong{display:block;margin-top:5px;color:var(--wms-heading);font-size:18px}.aks-submit-recipient p{margin:5px 0 0;color:var(--wms-text)}
.aks-submit-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.aks-submit-grid>div{min-width:0;padding:13px 14px;border:1px solid var(--wms-line);border-radius:13px;background:var(--wms-surface-2)}.aks-submit-grid b{display:block;margin-top:5px;color:var(--wms-heading);overflow-wrap:anywhere}.aks-submit-note{margin-top:12px;padding:12px 14px;border:1px solid color-mix(in srgb,var(--wms-brand) 40%,var(--wms-line));border-radius:12px;background:color-mix(in srgb,var(--wms-brand) 8%,var(--wms-surface-2));color:var(--wms-muted);font-size:12px;line-height:1.45}
.aks-submit-shell>footer{display:flex;justify-content:flex-end;gap:9px;padding:14px 24px 20px;background:var(--wms-surface);border-top:1px solid var(--wms-line)}.aks-submit-shell footer button{min-width:120px;padding:12px 16px;border-radius:11px;font-weight:850}.aks-submit-confirm{background:var(--wms-brand)!important;color:#fff!important;border-color:var(--wms-brand)!important}
.shipment-modal .modal-tab-panel .sc-table{background:var(--wms-surface-2)!important;border:1px solid var(--wms-line)!important;border-radius:13px!important;overflow:hidden!important}.shipment-modal .modal-tab-panel table,.shipment-modal .modal-tab-panel tbody,.shipment-modal .modal-tab-panel tr,.shipment-modal .modal-tab-panel td{background:transparent!important;color:var(--wms-text)!important}.shipment-modal .modal-tab-panel thead,.shipment-modal .modal-tab-panel th{background:var(--wms-surface-3)!important;color:var(--wms-muted)!important}.shipment-modal .modal-tab-panel tbody tr{background:var(--wms-surface-2)!important}.shipment-modal .modal-tab-panel tbody tr:nth-child(even){background:color-mix(in srgb,var(--wms-surface-3) 45%,var(--wms-surface-2))!important}.shipment-modal .modal-tab-panel td{border-bottom:1px solid var(--wms-line)!important}.shipment-modal .modal-tab-panel h3{color:var(--wms-heading)!important}
@media(max-width:600px){.aks-submit-modal{width:calc(100vw - 16px)}.aks-submit-shell>header,.aks-submit-body{padding:16px}.aks-submit-grid{grid-template-columns:1fr}.aks-submit-shell>footer{padding:12px 16px 16px}.aks-submit-shell footer button{flex:1;min-width:0}}

/* 19.8.37 — AKS reklamacije */
.aks-complaint-modal{margin:auto;padding:0!important;border:0!important;background:transparent!important;width:min(820px,calc(100vw - 28px));max-width:none;color:var(--wms-text)}.aks-complaint-modal::backdrop{background:rgba(0,0,0,.72);backdrop-filter:blur(8px)}
.aks-complaint-shell{overflow:hidden;border:1px solid var(--wms-line);border-radius:20px;background:var(--wms-surface);box-shadow:0 32px 100px rgba(0,0,0,.58)}.aks-complaint-shell>header{display:grid;grid-template-columns:1fr auto;gap:16px;padding:20px 24px;border-bottom:1px solid var(--wms-line)}.aks-complaint-shell header small{color:var(--wms-brand);font-weight:900;letter-spacing:.1em}.aks-complaint-shell h2{margin:5px 0;color:var(--wms-heading)}.aks-complaint-shell p{margin:0;color:var(--wms-muted)}
.aks-complaint-body{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:20px 24px;background:var(--wms-bg)}.aks-complaint-body label{display:grid;gap:6px;color:var(--wms-muted);font-size:11px;font-weight:850;letter-spacing:.04em}.aks-complaint-body .span-all{grid-column:1/-1}.aks-complaint-body input,.aks-complaint-body select,.aks-complaint-body textarea{width:100%;border:1px solid var(--wms-line);border-radius:11px;background:var(--wms-surface-2);color:var(--wms-heading);padding:11px 12px;font:inherit;letter-spacing:0}.aks-complaint-body textarea{resize:vertical;min-height:260px;line-height:1.45}.aks-complaint-state{color:var(--wms-muted);font-size:12px}.aks-complaint-shell>footer{display:flex;justify-content:flex-end;gap:9px;padding:14px 24px 20px;border-top:1px solid var(--wms-line)}.aks-complaint-shell footer button{min-width:150px;padding:12px 16px}
@media(max-width:640px){.aks-complaint-modal{width:calc(100vw - 12px)}.aks-complaint-body{grid-template-columns:1fr;padding:15px}.aks-complaint-body .span-all{grid-column:1}.aks-complaint-shell>header{padding:16px}.aks-complaint-shell>footer{padding:12px 15px 15px;display:grid;grid-template-columns:1fr 1fr}.aks-complaint-shell footer button{min-width:0}.aks-complaint-body textarea{min-height:220px}}

/* 19.9.4 build 2026.08.20.0915 — bulk završavanje + precizan AKS status */
.bulk-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.bulk-actions b{color:var(--wms-heading);font-size:12px}.bulk-actions button{min-height:36px;padding:8px 12px;border-radius:9px;font-weight:850}.bulk-actions #bulkComplete{background:#16a34a;color:#fff;border:1px solid #22c55e}.select-col{width:42px!important}.select-head,.select-cell{text-align:center!important;width:42px!important}.select-head input,.select-cell input{width:18px;height:18px;accent-color:#38bdf8;cursor:pointer}.tracking-meta{display:block;margin-top:4px;color:var(--wms-muted);font-size:10px;line-height:1.25}.badge.out_for_delivery{background:#1d4ed8!important;color:#fff!important;border-color:#3b82f6!important}
@media(max-width:760px){.bulk-actions{width:100%;order:3;display:grid;grid-template-columns:1fr 1fr}.bulk-actions b{grid-column:1/-1}.select-cell{display:flex!important;align-items:center;justify-content:flex-end}.select-cell:before{content:'Izaberi';margin-right:auto;color:var(--wms-muted)}}

/* Build 2026.08.20.1015 — compact shipment table */
#tabShipments .shipment-center-table td{padding:8px 7px!important;font-size:12px!important}
#tabShipments .shipment-center-table th{font-size:10px!important}
#tabShipments .shipment-center-table .recipient-cell b{font-size:12px!important}
#tabShipments .shipment-center-table .recipient-cell .muted,.tracking-meta{font-size:10px!important}
#tabShipments .shipment-center-table .badge{padding:6px 8px!important;font-size:11px!important}
#tabShipments .shipment-center-table col:nth-child(1){width:3.5%!important}
#tabShipments .shipment-center-table col:nth-child(2){width:8%!important}
#tabShipments .shipment-center-table col:nth-child(3){width:12%!important}
#tabShipments .shipment-center-table col:nth-child(4){width:18%!important}
#tabShipments .shipment-center-table col:nth-child(5){width:10%!important}
#tabShipments .shipment-center-table col:nth-child(6){width:14%!important}
#tabShipments .shipment-center-table col:nth-child(7){width:10%!important}
#tabShipments .shipment-center-table col:nth-child(8){width:7%!important}
#tabShipments .shipment-center-table col:nth-child(9){width:8%!important}
#tabShipments .shipment-center-table col:nth-child(10){width:6%!important}
#tabShipments .shipment-center-table col:nth-child(11){width:7%!important}
#tabShipments .shipment-center-table .row-actions button{padding:7px 8px!important;min-height:30px!important;font-size:11px!important}
#tabShipments .shipment-center-table .danger-action{background:#3a1820!important;border-color:#7f1d1d!important;color:#fecaca!important}
#tabShipments .shipment-center-table .danger-action:hover{background:#7f1d1d!important;color:#fff!important}


/* Correcto WMS 19.9.4 Build 2026.08.20.1415 — compact shipping table + 4 action tiles */
@media (min-width:761px){
#tabShipments table.shipment-center-table{min-width:1120px;width:100%;}
#tabShipments .shipment-center-table col:nth-child(1){width:3%}
#tabShipments .shipment-center-table col:nth-child(2){width:8%}
#tabShipments .shipment-center-table col:nth-child(3){width:10%}
#tabShipments .shipment-center-table col:nth-child(4){width:21%}
#tabShipments .shipment-center-table col:nth-child(5){width:10%}
#tabShipments .shipment-center-table col:nth-child(6){width:12%}
#tabShipments .shipment-center-table col:nth-child(7){width:10%}
#tabShipments .shipment-center-table col:nth-child(8){width:8%}
#tabShipments .shipment-center-table col:nth-child(9){width:8%}
#tabShipments .shipment-center-table col:nth-child(10){width:6%}
#tabShipments .shipment-center-table col:nth-child(11){width:8%}
#tabShipments .shipment-center-table th,#tabShipments .shipment-center-table td{padding-top:9px!important;padding-bottom:9px!important}
}
#tabShipments .source-wrap{display:block;width:15ch;max-width:15ch;white-space:normal;overflow-wrap:anywhere;word-break:normal;line-height:1.25}
#tabShipments .tracking-meta{display:none!important}
#tabShipments .action-grid{display:grid!important;grid-template-columns:repeat(2,34px);grid-template-rows:repeat(2,34px);gap:5px!important;align-items:center;justify-content:center;flex-wrap:nowrap!important;width:73px}
#tabShipments .action-grid .action-tile{width:34px;height:34px;min-width:34px!important;min-height:34px!important;padding:0!important;display:inline-grid;place-items:center;border-radius:9px;font-size:14px!important;font-weight:900}
#tabShipments .action-grid .action-complete{background:rgba(34,197,94,.14)!important;border-color:rgba(34,197,94,.46)!important;color:#86efac!important}
#tabShipments .action-grid .action-tile:disabled{opacity:.28;cursor:not-allowed}
.registered-address{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px;border:1px solid var(--wms-line);border-radius:13px;background:color-mix(in srgb,var(--wms-brand) 7%,var(--wms-surface-2));}
.registered-address>div{display:grid;gap:3px;min-width:0}.registered-address small{font-size:10px;font-weight:900;letter-spacing:.08em;color:var(--wms-muted)}.registered-address b{font-size:14px;color:var(--wms-heading);overflow-wrap:anywhere}.registered-address span{font-size:12px;color:var(--wms-muted)}
.alternate-delivery-toggle{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;white-space:nowrap;color:var(--wms-text)!important}.alternate-delivery-toggle input{width:18px!important;height:18px!important}
@media(max-width:760px){#tabShipments .source-wrap{width:auto;max-width:none}#tabShipments .action-grid{grid-template-columns:repeat(2,42px)!important;grid-template-rows:repeat(2,42px)!important;gap:8px!important;width:92px}#tabShipments .action-grid .action-tile{width:42px;height:42px;min-width:42px!important;min-height:42px!important}.registered-address{align-items:flex-start;flex-direction:column}}

/* Build 2026.08.20.1645 — authoritative shipment table/action layout */
@media (min-width:761px){
 #tabShipments table.shipment-center-table{min-width:0!important;width:100%!important;table-layout:fixed!important}
 #tabShipments .shipment-center-table col:nth-child(1){width:3%!important}
 #tabShipments .shipment-center-table col:nth-child(2){width:8%!important}
 #tabShipments .shipment-center-table col:nth-child(3){width:12%!important}
 #tabShipments .shipment-center-table col:nth-child(4){width:18%!important}
 #tabShipments .shipment-center-table col:nth-child(5){width:11%!important}
 #tabShipments .shipment-center-table col:nth-child(6){width:14%!important}
 #tabShipments .shipment-center-table col:nth-child(7){width:11%!important}
 #tabShipments .shipment-center-table col:nth-child(8){width:8%!important}
 #tabShipments .shipment-center-table col:nth-child(9){width:8%!important}
 #tabShipments .shipment-center-table col:nth-child(10){width:7%!important}
 #tabShipments .shipment-center-table col:nth-child(11){width:88px!important}
 #tabShipments .shipment-center-table td:last-child,#tabShipments .shipment-center-table th:last-child{width:88px!important;min-width:88px!important;max-width:88px!important;padding-left:6px!important;padding-right:6px!important}
 #tabShipments .action-grid{display:grid!important;grid-template-columns:34px 34px!important;grid-template-rows:34px 34px!important;gap:6px!important;width:74px!important;min-width:74px!important;justify-content:center!important;align-content:center!important;margin:0 auto!important}
 #tabShipments .action-grid .action-tile{display:grid!important;width:34px!important;height:34px!important;min-width:34px!important;max-width:34px!important;min-height:34px!important;max-height:34px!important;margin:0!important;padding:0!important;place-items:center!important;border-radius:8px!important}
 #tabShipments .source-wrap{display:block!important;width:15ch!important;max-width:15ch!important;white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.22!important}
}

/* Correcto WMS 19.9.4 Build 2026.08.21.2030 — FINAL 2x2 actions + compact columns */
@media (min-width:761px){
  #tabShipments table.shipment-center-table{width:100%!important;min-width:0!important;table-layout:fixed!important}
  #tabShipments .shipment-center-table col:nth-child(1){width:3%!important}
  #tabShipments .shipment-center-table col:nth-child(2){width:8%!important}
  #tabShipments .shipment-center-table col:nth-child(3){width:10%!important}
  #tabShipments .shipment-center-table col:nth-child(4){width:18%!important}
  #tabShipments .shipment-center-table col:nth-child(5){width:11%!important}
  #tabShipments .shipment-center-table col:nth-child(6){width:13%!important}
  #tabShipments .shipment-center-table col:nth-child(7){width:9%!important}
  #tabShipments .shipment-center-table col:nth-child(8){width:7%!important}
  #tabShipments .shipment-center-table col:nth-child(9){width:7%!important}
  #tabShipments .shipment-center-table col:nth-child(10){width:7%!important}
  #tabShipments .shipment-center-table col:nth-child(11){width:94px!important}
  #tabShipments .shipment-center-table th:last-child,
  #tabShipments .shipment-center-table td:last-child{width:94px!important;min-width:94px!important;max-width:94px!important;padding:6px!important;overflow:visible!important}

  #tabShipments .shipment-center-table td[data-label="Akcije"] .action-grid.row-actions{
    display:grid!important;
    grid-template-columns:36px 36px!important;
    grid-template-rows:36px 36px!important;
    grid-auto-flow:row!important;
    gap:6px!important;
    width:78px!important;
    min-width:78px!important;
    max-width:78px!important;
    height:78px!important;
    margin:0 auto!important;
    padding:0!important;
    align-items:stretch!important;
    justify-items:stretch!important;
    align-content:center!important;
    justify-content:center!important;
    flex-direction:unset!important;
    flex-wrap:unset!important;
  }
  #tabShipments .shipment-center-table td[data-label="Akcije"] .action-grid.row-actions > .action-tile{
    position:static!important;
    float:none!important;
    display:grid!important;
    place-items:center!important;
    width:36px!important;
    min-width:36px!important;
    max-width:36px!important;
    height:36px!important;
    min-height:36px!important;
    max-height:36px!important;
    margin:0!important;
    padding:0!important;
    flex:none!important;
  }
  #tabShipments .shipment-center-table td[data-label="Akcije"] .action-grid.row-actions > .action-tile:nth-child(1){grid-column:1!important;grid-row:1!important}
  #tabShipments .shipment-center-table td[data-label="Akcije"] .action-grid.row-actions > .action-tile:nth-child(2){grid-column:2!important;grid-row:1!important}
  #tabShipments .shipment-center-table td[data-label="Akcije"] .action-grid.row-actions > .action-tile:nth-child(3){grid-column:1!important;grid-row:2!important}
  #tabShipments .shipment-center-table td[data-label="Akcije"] .action-grid.row-actions > .action-tile:nth-child(4){grid-column:2!important;grid-row:2!important}

  #tabShipments .shipment-center-table .source-wrap{
    display:block!important;
    width:15ch!important;
    max-width:15ch!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
    line-height:1.2!important;
  }
  #tabShipments .shipment-center-table td:nth-child(7),
  #tabShipments .shipment-center-table th:nth-child(7){padding-left:5px!important;padding-right:5px!important}
  #tabShipments .shipment-center-table td:nth-child(8),
  #tabShipments .shipment-center-table th:nth-child(8){padding-left:4px!important;padding-right:4px!important}
}
/* Build 2026.08.21.1145 - email editor + tracking controls */
.email-contact-card{position:relative!important;min-height:112px!important}
.email-contact-view{display:flex;flex-direction:column;gap:9px;margin-top:6px}
.email-contact-actions,.email-contact-edit>div,.email-summary-actions{display:flex;flex-wrap:wrap;gap:7px}
.mini-action,.email-summary-actions button{appearance:none;border:1px solid var(--wms-line,#2b3c56);background:var(--wms-surface,#142239);color:var(--wms-text,#eef4ff);border-radius:8px;padding:7px 10px;font-size:12px;font-weight:800;cursor:pointer}
.primary-mini,.email-summary-actions .primary{background:#2563eb!important;border-color:#2563eb!important;color:#fff!important}
.email-contact-edit{margin-top:8px;display:flex;flex-direction:column;gap:8px}.email-contact-edit[hidden]{display:none!important}.email-contact-edit input{width:100%;min-width:0;border:1px solid var(--wms-line,#2b3c56);background:var(--wms-surface,#0b1626);color:var(--wms-text,#eef4ff);border-radius:8px;padding:9px 10px;font-size:13px}
.email-summary-card{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:16px;margin-bottom:14px;border:1px solid var(--wms-line,#2b3c56);border-radius:12px;background:var(--wms-surface-2,#0f1c2e)}.email-summary-card span,.email-summary-card small{display:block;color:var(--wms-muted,#91a5c2)}.email-summary-card span{font-size:10px;font-weight:900;letter-spacing:.05em}.email-summary-card strong{display:block;margin:5px 0;font-size:16px;color:var(--wms-heading,#fff);overflow-wrap:anywhere}
@media(max-width:620px){.email-summary-card{align-items:flex-start;flex-direction:column}.email-summary-actions{width:100%}.email-summary-actions button{flex:1 1 auto}}
