:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color-scheme:light;color:#17202a;background:#f3f5f7;font-synthesis:none}:root[data-theme=dark]{color-scheme:dark;color:#e5e7eb;background:#0b1220}*{box-sizing:border-box}body{margin:0;color:#17202a;background:#f3f5f7}button,input,select{font:inherit}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.app-loading{min-height:100vh;display:grid;place-content:center;justify-items:center;gap:22px;background:#0b1220}.app-loading img{display:block;width:min(230px,64vw);height:auto}.loading-spinner{width:24px;height:24px;border:2px solid rgba(113,229,189,.25);border-top-color:#71e5bd;border-radius:50%;animation:loading-spin .7s linear infinite}@keyframes loading-spin{to{transform:rotate(360deg)}}.app-header{min-height:72px;padding:12px 28px;display:flex;align-items:center;justify-content:space-between;gap:24px;color:#e5e7eb;background:#0b1220f5;border-bottom:1px solid rgba(255,255,255,.08);-webkit-backdrop-filter:saturate(1.1) blur(10px);backdrop-filter:saturate(1.1) blur(10px)}.brand{display:flex;min-width:0;align-items:center;gap:16px}.brand-logo{display:inline-flex;flex:0 0 auto;align-items:center}.brand-logo img{display:block;width:156px;height:auto}.product-title{min-width:0;padding-left:16px;border-left:1px solid rgba(255,255,255,.14)}.app-header h1{margin:0;color:#e5e7eb;font-size:17px;line-height:1.3}.app-header p{margin:2px 0 0;color:#94a3b8;font-size:12px}.app-header nav{display:flex;align-items:center;gap:10px}.nav-link{min-height:34px;display:inline-flex;align-items:center;padding:6px 10px;color:#e5e7eb;border-radius:8px;text-decoration:none;font-size:13px;font-weight:600}.nav-link:hover{background:#ffffff14}.current-user{min-height:36px;display:inline-flex;align-items:center;gap:8px;padding:4px 10px 4px 5px;color:#e5e7eb;background:#ffffff0d;border:1px solid rgba(255,255,255,.1);border-radius:999px;font-size:13px;font-weight:600}.user-avatar{width:26px;height:26px;display:inline-grid;place-items:center;color:#0b1220;background:#71e5bd;border-radius:50%;font-size:12px;font-weight:800}.theme-toggle{width:36px;min-height:36px;padding:0;color:#e5e7eb;background:#ffffff0d;border-color:#ffffff24;border-radius:999px;font-size:17px}.theme-toggle:hover:not(:disabled){background:#ffffff1f}.app-header button.secondary{color:#e5e7eb;background:#ffffff0d;border-color:#ffffff24}.app-header button.secondary:hover:not(:disabled){background:#ffffff1f}a{color:#2459a9}main{display:grid;grid-template-columns:minmax(680px,1.25fr) minmax(430px,.75fr);gap:18px;padding:18px;min-height:calc(100vh - 72px);align-items:start}.panel{min-width:0;background:#fff;border:1px solid #dce2e8;border-radius:10px;box-shadow:0 1px 2px #17202a0a}.list{display:flex;min-height:calc(100vh - 108px);flex-direction:column}.list-heading{display:flex;align-items:center;justify-content:space-between;padding:18px 18px 8px}.list-heading h2,.detail h2,.section-heading h3{margin:0}.list-heading p,.section-heading p{margin:3px 0 0}input,select,button{min-height:38px;border:1px solid #c7d0d9;border-radius:6px;padding:8px 10px}input,select{color:#17202a;background:#fff}input:focus,select:focus,button:focus-visible,.waybill-row:focus-visible{outline:3px solid rgba(36,89,169,.18);outline-offset:1px;border-color:#2459a9}button{background:#2459a9;color:#fff;border-color:#2459a9;cursor:pointer;font-weight:600}button:hover:not(:disabled){background:#1d4b91}button:disabled{opacity:.48;cursor:not-allowed}button.secondary{background:#fff;color:#33404d;border-color:#c7d0d9}button.secondary:hover:not(:disabled){background:#f5f7f9}button.compact{min-height:34px;padding:6px 10px}.muted{color:#687582}.nowrap{white-space:nowrap}.filters{display:grid;grid-template-columns:minmax(220px,1fr) auto auto minmax(165px,auto) auto;gap:10px;padding:8px 18px 16px;align-items:end}.filters label{display:flex;flex-direction:column;gap:4px}.filters label>span{color:#5c6976;font-size:12px;font-weight:600}.search-input{align-self:end;width:100%}.clear-filters{min-width:76px}.waybill-table-wrap{position:relative;overflow-x:auto;border-top:1px solid #e3e7eb;border-bottom:1px solid #e3e7eb}.waybill-table{width:100%;min-width:730px;border-collapse:collapse}.waybill-table th{position:sticky;top:0;z-index:1;padding:9px 10px;color:#52606d;background:#f7f8fa;border-bottom:1px solid #dce2e8;font-size:12px;text-align:left;white-space:nowrap}.waybill-table td{padding:10px;border-bottom:1px solid #edf0f2;font-size:13px}.waybill-row{cursor:pointer;transition:background .12s ease}.waybill-row:hover{background:#f7faff}.waybill-row.active{background:#eef4ff;box-shadow:inset 3px 0 #2459a9}.route-cell{max-width:250px}.route-cell span:first-child,.route-cell span:last-child{display:inline}.route-cell span[aria-hidden]{padding:0 4px;color:#83909c}.no-results{height:140px;color:#687582;text-align:center}.waybill-table-wrap.loading table{opacity:.55}.loading-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;color:#52606d;background:#ffffff8c;font-weight:600}.pagination{margin-top:auto;display:flex;justify-content:space-between;align-items:center;padding:14px 18px;color:#5d6975;font-size:13px}.badge{display:inline-flex;min-height:22px;align-items:center;padding:2px 8px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}.badge.neutral{color:#4d5965;background:#edf0f2}.badge.success{color:#176b35;background:#dff4e5}.badge.warning{color:#805b00;background:#fff0c2}.badge.pending{color:#8a4b12;background:#feeadb}.badge.error{color:#9c2f25;background:#fee7e4}.detail{position:sticky;top:18px;padding:20px}.detail-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.eyebrow{margin:0 0 4px;color:#687582;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.waybill-summary{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px;margin:18px 0 24px;padding:16px;background:#f7f8fa;border-radius:8px}.waybill-summary div{min-width:0}.waybill-summary dt{margin-bottom:3px;color:#687582;font-size:12px}.waybill-summary dd{margin:0;overflow-wrap:anywhere;font-size:14px;font-weight:600}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 12px}.linker-panel{margin-bottom:14px;padding:14px;background:#f3f6fb;border:1px solid #d9e3f3;border-radius:8px}.linker-panel>label{display:block;margin-bottom:6px;color:#52606d;font-size:13px;font-weight:600}.sample-linker{display:flex;gap:8px;align-items:flex-start}.sample-picker{position:relative;flex:1;min-width:0}.sample-picker>input{width:100%}.sample-options{position:absolute;z-index:20;top:calc(100% + 4px);left:0;right:0;max-height:320px;overflow-y:auto;padding:6px;background:#fff;border:1px solid #c8d0d9;border-radius:8px;box-shadow:0 12px 30px #17202a24}.sample-option{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:3px;padding:9px 10px;text-align:left;color:#17202a;background:#fff;border:0}.sample-option:hover:not(:disabled){background:#f0f5ff}.sample-option span{color:#5d6975;font-size:13px}.option-state{margin:8px;color:#687582}.empty-state{margin:0;padding:28px 16px;color:#687582;background:#f8f9fa;border-radius:8px;text-align:center}.linked-samples{border:1px solid #dce2e8;border-radius:8px;overflow:hidden}.sample-row+.sample-row{border-top:1px solid #dce2e8}.sample-summary{display:grid;grid-template-columns:minmax(150px,1fr) auto auto 20px;width:100%;min-height:62px;align-items:center;gap:12px;padding:10px 12px;color:#17202a;background:#fff;border:0;border-radius:0;text-align:left}.sample-summary:hover:not(:disabled){background:#f7faff}.sample-main{display:flex;min-width:0;flex-direction:column;gap:3px}.sample-main strong{overflow:hidden;text-overflow:ellipsis}.sample-main small,.result-count{color:#687582;font-size:12px;font-weight:400}.chevron{color:#687582;font-size:20px;transform:rotate(0);transition:transform .15s ease}.chevron.open{transform:rotate(180deg)}.sample-details{padding:0 14px 14px;background:#fbfcfd;border-top:1px solid #edf0f2}.send-status{margin:12px 0;padding:8px 10px;border-radius:6px;font-size:13px}.send-status.success{color:#176b35;background:#edf8f0}.send-status.error{color:#9c2f25;background:#fff0ee}.result-table{width:100%;border-collapse:collapse;margin:8px 0 12px}.result-table td{padding:7px 6px;border-bottom:1px solid #e8ecef;font-size:13px}.result-table td:last-child{text-align:right;font-variant-numeric:tabular-nums;font-weight:600}.sample-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.sample-actions select{flex:1;min-width:180px}.danger-quiet{color:#a2332a;background:#fff;border-color:#e0aaa5}.danger-quiet:hover:not(:disabled){color:#fff;background:#a2332a;border-color:#a2332a}.message{margin:14px 0 0;padding:10px;border-radius:6px}.message.success{color:#176b35;background:#edf7ed}.message.error{color:#9c2f25;background:#fff0ee}.empty{min-height:320px;display:grid;place-items:center;padding:32px;color:#687582;text-align:center}.empty strong{color:#33404d}.empty p{margin:6px 0 0}:root[data-theme=dark] body{color:#e5e7eb;background:#0b1220}:root[data-theme=dark] a{color:#60a5fa}:root[data-theme=dark] .panel{background:#111827;border-color:#ffffff0f;box-shadow:0 1px 2px #0003}:root[data-theme=dark] input,:root[data-theme=dark] select{color:#e5e7eb;background:#0f172a;border-color:#ffffff1a}:root[data-theme=dark] input:focus,:root[data-theme=dark] select:focus,:root[data-theme=dark] button:focus-visible,:root[data-theme=dark] .waybill-row:focus-visible{outline-color:#60a5fa40;border-color:#60a5fa}:root[data-theme=dark] button{background:#2563eb;border-color:#2563eb}:root[data-theme=dark] button:hover:not(:disabled){background:#1d4ed8}:root[data-theme=dark] button.secondary{color:#e5e7eb;background:#ffffff0a;border-color:#ffffff24}:root[data-theme=dark] button.secondary:hover:not(:disabled){background:#ffffff14}:root[data-theme=dark] .muted,:root[data-theme=dark] .filters label>span,:root[data-theme=dark] .pagination,:root[data-theme=dark] .eyebrow,:root[data-theme=dark] .waybill-summary dt,:root[data-theme=dark] .linker-panel>label,:root[data-theme=dark] .sample-option span,:root[data-theme=dark] .option-state,:root[data-theme=dark] .empty-state,:root[data-theme=dark] .sample-main small,:root[data-theme=dark] .result-count,:root[data-theme=dark] .chevron,:root[data-theme=dark] .empty{color:#94a3b8}:root[data-theme=dark] .waybill-table-wrap,:root[data-theme=dark] .linked-samples,:root[data-theme=dark] .sample-row+.sample-row{border-color:#ffffff14}:root[data-theme=dark] .waybill-table th{color:#94a3b8;background:#0f172a;border-color:#ffffff14}:root[data-theme=dark] .waybill-table td,:root[data-theme=dark] .result-table td{border-color:#ffffff0f}:root[data-theme=dark] .waybill-row:hover,:root[data-theme=dark] .sample-summary:hover:not(:disabled){background:#ffffff0a}:root[data-theme=dark] .waybill-row.active{background:#2563eb2e;box-shadow:inset 3px 0 #60a5fa}:root[data-theme=dark] .loading-overlay{color:#cbd5e1;background:#0b1220b8}:root[data-theme=dark] .waybill-summary,:root[data-theme=dark] .empty-state{background:#0f172ab8}:root[data-theme=dark] .linker-panel{background:#0f172ab8;border-color:#60a5fa3d}:root[data-theme=dark] .sample-options{background:#0b1220;border-color:#ffffff1f;box-shadow:0 14px 28px #00000059}:root[data-theme=dark] .sample-option,:root[data-theme=dark] .sample-summary{color:#e5e7eb;background:#111827}:root[data-theme=dark] .sample-option:hover:not(:disabled){background:#ffffff0f}:root[data-theme=dark] .sample-details{background:#0f172a8c;border-color:#ffffff0f}:root[data-theme=dark] .empty strong{color:#e5e7eb}:root[data-theme=dark] .danger-quiet{color:#fca5a5;background:transparent;border-color:#f8717173}:root[data-theme=dark] .badge.neutral{color:#cbd5e1;background:#94a3b829}:root[data-theme=dark] .badge.success{color:#86efac;background:#16653447}:root[data-theme=dark] .badge.warning{color:#fde68a;background:#92400e47}:root[data-theme=dark] .badge.pending{color:#fdba74;background:#9a341247}:root[data-theme=dark] .badge.error{color:#fca5a5;background:#991b1b47}:root[data-theme=dark] .send-status.success,:root[data-theme=dark] .message.success{color:#86efac;background:#16653438}:root[data-theme=dark] .send-status.error,:root[data-theme=dark] .message.error{color:#fca5a5;background:#991b1b38}@media(max-width:1280px){main{grid-template-columns:1fr}.list{min-height:540px}.detail{position:static}}@media(max-width:760px){.app-header{align-items:flex-start;padding:12px 16px}.app-header p,.product-title{display:none}.brand-logo img{width:132px}.app-header nav{flex-wrap:wrap;justify-content:flex-end;gap:6px}.current-user{max-width:170px}.current-user>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}main{padding:10px}.filters{grid-template-columns:1fr 1fr}.search-input{grid-column:1 / -1}.clear-filters{width:100%}.waybill-summary{grid-template-columns:1fr}.sample-summary{grid-template-columns:1fr auto 20px}.result-count{display:none}.sample-linker{flex-direction:column}.sample-linker>button,.sample-picker{width:100%}}
