/* Dense operational workspace, sharing the integrated prototype's design tokens. */
.in-module{min-width:0;flex:1;color:var(--bo-ink,#122033);font-size:13px;line-height:1.5}
.in-main{padding:22px 28px 24px;min-width:0;max-width:1920px;margin:0 auto}
.in-module svg.lucide{width:16px;height:16px;flex:none;stroke-width:1.7;vertical-align:middle}
.in-breadcrumb{display:flex;align-items:center;gap:8px;color:#64748b;font-size:12px;margin-bottom:14px}
.in-breadcrumb svg{width:12px;height:12px}
.in-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}
.in-heading{display:flex;align-items:center;gap:12px;min-width:0}
.in-heading h1{font-size:23px;line-height:1.35;margin:0 0 5px;font-weight:650;letter-spacing:-.5px}
.in-heading p{margin:0;color:var(--bo-muted,#66758a);font-size:13px}
.in-title-icon{width:42px;height:42px;border:1px solid #bee1e7;border-radius:11px;display:grid;place-items:center;background:#eef9fa;color:var(--bo-teal-700)}
.in-title-icon svg{width:23px;height:23px}
.in-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.in-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:6px 11px;background:white;color:#34465b;border:1px solid var(--bo-border,#dce4ed);border-radius:6px;font-size:13px;font-weight:500;line-height:1.4;cursor:pointer;white-space:nowrap;transition:background-color .15s,border-color .15s,color .15s}
.in-btn:hover{background:#f3f7fa;border-color:#a7b7c8;color:#122033}
.in-btn.primary{background:var(--bo-teal-700,#0a7e91);color:white;border-color:var(--bo-teal-700,#0a7e91)}
.in-btn.primary:hover{background:#086a7b;border-color:#086a7b}
.in-btn.danger{color:#b4233b}
.in-btn.danger:hover{background:#fff1f3;border-color:#f5b8c2}
.in-btn:disabled{opacity:.46;cursor:not-allowed}
.in-btn.in-link{background:transparent;border-color:transparent;padding:3px 4px;color:var(--bo-teal-700,#0a7e91);min-height:28px}
.in-btn.in-link:hover{background:#edf8fa}
.in-btn.in-link.danger{color:#b4233b}
.in-btn.in-icon-only{width:30px;height:30px;padding:4px;min-height:30px;border-color:transparent;background:transparent}
.in-icon-only span{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.in-btn.in-compact{min-height:30px;padding:4px 7px}
.in-module :is(button,input,select,textarea,a):focus-visible{outline:3px solid #43b4c7;outline-offset:2px}
.in-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:white;border:1px solid var(--bo-border);border-radius:9px;margin-bottom:18px;overflow:hidden}
.in-stat{padding:14px 20px;position:relative}
.in-stat+.in-stat:before{content:"";height:36px;width:1px;background:#e5ebf1;position:absolute;left:0;top:50%;transform:translateY(-50%)}
.in-stat>span{display:flex;align-items:center;gap:7px;color:#66758a;font-size:12px}
.in-stat>span svg{width:15px;height:15px}
.in-stat strong{display:block;font-size:25px;font-weight:650;line-height:1.35;margin-top:4px;font-variant-numeric:tabular-nums;letter-spacing:-.6px}
.in-panel{background:white;border:1px solid var(--bo-border);border-radius:9px;overflow:hidden;margin:0 0 18px}
.in-panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 17px;border-bottom:1px solid #e7edf3;min-height:56px}
.in-panel-head h2,.in-section-title h2{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;margin:0}
.in-panel-head h2 svg{color:#577487}
.in-subtle,.in-panel-bottom>span{color:#66758a;font-size:12px}
.in-section-title{display:flex;align-items:center;justify-content:space-between;margin:22px 0 10px}
.in-filter{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.in-filter .in-field{min-width:130px;flex:0 1 auto}
.in-filter .in-field>span{font-size:11px;margin-bottom:4px;color:#66758a}
.in-filter .in-field>span svg{width:13px;height:13px}
.in-filter input,.in-filter select{height:34px!important;min-height:34px!important}
.in-filter select{max-width:180px}
.in-search{position:relative;flex:1 1 240px;min-width:220px;display:flex}
.in-search>svg{position:absolute;left:11px;top:9px;color:#708397;z-index:1}
.in-search input{padding-left:35px!important}
.in-date{display:flex;align-items:center;gap:5px;flex:0 1 270px;min-width:250px}
.in-date input{min-width:0;width:125px}
.in-field{display:flex;flex-direction:column;min-width:0;gap:6px}
.in-field>span{display:flex;gap:6px;align-items:center;font-size:12px;font-weight:500;color:#34465b}
.in-field>span svg{width:14px;height:14px;color:#71879a}
.in-module :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){width:100%;border:1px solid #ccd7e3;background:white;border-radius:5px;color:#25364b;font-family:inherit;font-size:13px;padding:8px 10px;min-height:36px;line-height:1.4;box-sizing:border-box}
.in-module input::placeholder,.in-module textarea::placeholder{color:#8a98aa}
.in-module input[type=checkbox],.in-module input[type=radio]{accent-color:var(--bo-teal-700);width:15px;height:15px;cursor:pointer;vertical-align:middle;flex:none}
.in-module :is(input,select,textarea):disabled{background:#f1f5f9;color:#718096}
.in-module textarea{resize:vertical}
.in-table-scroll{overflow:auto;overscroll-behavior-x:contain}
.in-table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:12px}
.in-table th{background:#f7f9fc;color:#627287;font-weight:500;padding:11px 13px;border-bottom:1px solid #e5ebf2;line-height:1.3}
.in-table th svg{width:14px;height:14px;margin-right:4px}
.in-table td{padding:10px 13px;border-bottom:1px solid #edf1f5;color:#34465b;vertical-align:middle}
.in-table tbody tr:last-child td{border-bottom:0}
.in-table tbody tr:hover{background:#f8fbfc}
.in-table strong{font-weight:550;color:#22364b}
.in-table small{display:block;font-size:11px;color:#748498;line-height:1.5;margin-top:3px}
.in-table .in-link{font-size:12px;padding:1px 0;text-align:left;justify-content:flex-start}
.in-table .in-actions{flex-wrap:nowrap;gap:9px}
.in-table .num{text-align:right;font-variant-numeric:tabular-nums}
.in-time{font-size:11px;color:#718096!important;font-variant-numeric:tabular-nums}
.in-ellipsis{max-width:230px;text-overflow:ellipsis;overflow:hidden}
.in-sticky-right{position:sticky;right:0;background:white;box-shadow:-5px 0 8px -8px #6c839a}
.in-table th.in-sticky-right{background:#f7f9fc}
.in-table tr:hover .in-sticky-right{background:#f8fbfc}
.in-tag{display:inline-flex;align-items:center;font-size:11px;font-weight:500;line-height:1.5;border-radius:4px;padding:3px 7px;background:#f0f4f8;color:#52667b;white-space:nowrap}
.in-tag.blue{background:#e9f5fb;color:#176882}
.in-tag.green{background:#eaf8f1;color:#20734c}
.in-tag.amber{background:#fff6e2;color:#96600a}
.in-tag.red{background:#fff0f2;color:#b4233b}
.in-tag.muted{background:#f1f4f7;color:#64748b}
.in-amber{color:#a16b10!important}
.in-red{color:#b4233b!important}
.in-pagination{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-top:1px solid #e7edf3;color:#718096;font-size:12px;gap:12px}
.in-pagination label{display:flex;align-items:center;gap:6px;white-space:nowrap}
.in-pagination select{width:65px;min-height:30px;padding:4px 6px;font-size:12px}
.in-pagination .in-btn{font-size:12px;min-height:30px;padding:4px 8px}
.in-context{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;margin-bottom:18px;font-size:12px;color:#5b7086}
.in-context>span{display:flex;gap:6px;align-items:center}
.in-footnote{padding:12px 17px;border-top:1px solid #e9eef4;color:#718096;font-size:11px;line-height:1.6}
.in-footnote svg{width:13px;height:13px;margin-right:6px}
.in-history-panel .in-timeline{margin:15px 20px}
.in-timeline{padding:0;margin:16px 0;list-style:none}
.in-timeline li{border-left:1px solid #dbe5ed;padding:0 0 16px 18px;margin-left:7px}
.in-timeline li:last-child{padding-bottom:0;border-color:transparent}
.in-timeline li>div{display:flex;align-items:center;gap:8px;position:relative}
.in-timeline li svg{background:white;position:absolute;left:-26px;color:#6a9f9f;width:15px;height:15px}
.in-timeline time{margin-left:auto;color:#748498;font-size:11px}
.in-timeline strong{font-size:12px;font-weight:550}
.in-timeline p{margin:4px 0 0;color:#5d7187;font-size:12px;white-space:normal}
.in-timeline small{display:block;color:#7b8b9d;margin-top:4px;font-size:11px}
.in-local-note{display:flex;align-items:center;justify-content:flex-end;gap:8px;color:#748498;font-size:11px;margin-top:12px}
.in-local-note>span{flex:1}
.in-local-note .in-btn{font-size:11px}
.in-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;padding:48px 24px;color:#718096;text-align:center}
.in-empty>svg{width:38px;height:38px;color:#a6b9c7}
.in-empty h3{font-size:14px;font-weight:500;margin:4px 0;color:#5c7087}
.in-quiet{padding:22px;color:#748498;font-size:12px}
.in-error{display:flex;align-items:flex-start;gap:8px;padding:12px 14px;border:1px solid #f3b9c4;border-radius:6px;background:#fff4f6;color:#a72138;margin:12px 0;font-size:13px;white-space:normal}
.in-error svg{margin-top:2px}
.in-inline-info{display:flex;align-items:flex-start;gap:8px;padding:12px 14px;background:#f0f7fa;border:1px solid #d8e8f0;border-radius:6px;font-size:12px;line-height:1.7;color:#47667b;margin:16px 0}
.in-inline-info>svg{margin-top:3px}
.in-inline-info>span{flex:1}
.in-inline-info .in-btn{font-size:12px}
.in-address-grid{padding:18px;display:grid;grid-template-columns:minmax(200px,1fr) auto minmax(230px,1fr) auto;gap:14px;align-items:end}
.in-address-snapshot{grid-column:1/-1;display:flex;align-items:flex-start;gap:12px;padding:13px 15px;border:1px dashed #d4e1e9;border-radius:6px;background:#f9fcfd}
.in-address-snapshot>svg{color:#5d98a2;margin-top:3px}
.in-address-snapshot strong{font-size:13px}
.in-address-snapshot p{margin:4px 0;font-size:12px}
.in-address-snapshot small{color:#7c8e9f;font-size:11px}
.in-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}
.in-shipment-meta{padding:16px 18px}
.in-index{font-size:12px;display:grid;place-items:center;background:#f0f6f8;color:#4a7c89;width:26px;height:26px;border-radius:5px;margin-right:4px}
.in-package-editor{min-width:900px}
.in-package-editor input{width:85px!important;min-height:33px!important;padding:6px 8px!important;text-align:right}
.in-package-editor input[name^=insured]{width:120px!important}
.in-package-editor select{min-width:118px;min-height:33px!important}
.in-panel-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 14px;border-top:1px solid #e8eef4}
.in-form-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #dae4ed;padding:16px 0;margin-top:20px;background:#f6f8fb}
.in-form-footer>span{display:flex;gap:7px;align-items:center;font-size:12px;color:#718096}
.in-steps{display:flex;align-items:center;gap:16px;margin:0 0 22px;padding:13px 16px;background:white;border:1px solid #e2e9f0;border-radius:7px;color:#8090a3;font-size:12px}
.in-steps>span{display:flex;align-items:center;gap:7px}
.in-steps .in-tag{padding:2px 6px}
.in-steps .active{color:#0a7e91;font-weight:600}
.in-steps .active .in-tag{background:#e2f3f6;color:#0a7e91}
.in-forecast-meta{padding:0 0 18px}
.in-forecast-grid{table-layout:fixed}
.in-forecast-grid th:nth-child(2){width:35%}
.in-forecast-grid th:nth-child(3){width:20%}
.in-forecast-grid td{padding:6px 10px}
.in-forecast-grid input{height:32px;min-height:32px!important;padding:5px 8px!important;border-color:#dfe6ef!important}
.in-forecast-grid th{position:sticky;top:0;z-index:1}
.in-grid-scroll{max-height:520px;overflow:auto}
.in-row-index{width:46px;color:#8c9bae!important;text-align:center}
.in-row-remove{width:55px}
.in-tabs{display:flex;align-items:center;gap:22px;border-bottom:1px solid #d9e3ed;margin:0 0 18px}
.in-tabs>button{display:flex;gap:7px;align-items:center;padding:11px 1px;background:transparent;border:0;border-bottom:2px solid transparent;font-size:13px;color:#708297;cursor:pointer;margin-bottom:-1px}
.in-tabs>button.active{color:#0a7e91;border-color:#0a7e91;font-weight:600}
.in-tabs-spacer{flex:1}
.in-segment{display:flex;background:#e9eef4;padding:3px;border-radius:6px;margin-bottom:6px;gap:2px}
.in-segment .in-btn{background:transparent;border:0;font-size:12px;min-height:28px;padding:4px 9px;color:#6b7d91}
.in-segment .in-btn.active{background:white;box-shadow:0 1px 3px #1232;color:#176f80}
.in-selection{display:flex;gap:12px;align-items:center;padding:9px 16px;background:#eef8fa;border-bottom:1px solid #cce5ea;color:#286d7a}
.in-selection label{display:flex;gap:9px;align-items:center}
.in-select-cell{width:42px;text-align:center!important;padding-left:16px!important;padding-right:10px!important}
.in-modal-open{overflow:hidden}
.in-overlay{position:fixed;inset:0;z-index:1200;background:#14283b66;display:flex;align-items:center;justify-content:center;padding:24px;backdrop-filter:blur(2px)}
.in-dialog{display:flex;flex-direction:column;width:min(620px,100%);max-height:calc(100dvh - 48px);background:white;border:1px solid #dbe5ee;border-radius:12px;box-shadow:0 20px 70px #0c203b40;overflow:hidden;outline:none}
.in-dialog.wide{width:min(960px,100%)}
.in-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:15px 20px;border-bottom:1px solid #e6edf3;flex:none;gap:16px}
.in-dialog>header h2{display:flex;gap:9px;align-items:center;font-size:16px;margin:0;font-weight:600}
.in-dialog>header h2 svg{color:#0a7e91;width:19px;height:19px}
.in-dialog-body{overflow-y:auto;overscroll-behavior:contain;padding:18px 22px;min-height:0}
.in-dialog>footer{padding:13px 20px;border-top:1px solid #e6edf3;display:flex;justify-content:flex-end;gap:8px;flex:none;background:#fafcfd}
.in-dialog .in-stats{margin-top:14px;margin-bottom:18px}
.in-dialog .in-stat{padding:11px 12px}
.in-dialog .in-stat strong{font-size:22px}
.in-dialog .in-table{white-space:normal}
.in-dialog .in-table td{overflow-wrap:anywhere}
.in-dialog .in-table small{font-size:11px}
.in-dialog .in-form-footer{padding:14px 0 0;margin-bottom:0;background:white}
.in-dialog .in-grid-scroll{max-height:340px}
.in-dialog .in-forecast-grid{white-space:nowrap}
.in-modal-intro{margin:0 0 16px;font-size:13px;color:#63758a;line-height:1.8}
.in-modal-subhead{display:flex;align-items:center;justify-content:space-between;gap:10px}
.in-mono{font-variant-numeric:tabular-nums;font-size:15px}
.in-modal-form{display:flex;flex-direction:column;gap:15px;margin-top:16px}
.in-detail-list{margin:10px 0 16px}
.in-detail-list>div{display:grid;grid-template-columns:150px 1fr;gap:14px;padding:10px 0;border-bottom:1px solid #eef2f6}
.in-detail-list dt{font-size:12px;color:#718096}
.in-detail-list dd{margin:0;color:#34465b;overflow-wrap:anywhere}
.in-detail-list dd .in-link{min-height:20px}
.in-modal-actions{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}
.in-subheading{display:flex;align-items:center;gap:7px;margin:22px 0 11px;font-size:13px;font-weight:600}
.in-subheading svg{color:#65859a}
.in-conflict{padding:14px 16px;border:1px solid #dbe5ee;border-radius:7px;margin:12px 0}
.in-conflict-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.in-conflict-head strong{display:flex;gap:7px;align-items:center}
.in-conflict p{color:#748498;font-size:12px;margin:8px 0 12px}
.in-conflict .in-field{margin-bottom:10px}
.in-upload{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}
.in-upload label{position:relative;cursor:pointer}
.in-upload input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}
.in-upload small{color:#718096;font-size:11px}
.in-proof-list{list-style:none;padding:0;margin:12px 0}
.in-proof-list li{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #dce6ef;border-radius:6px;background:#fafcfe;margin-top:7px}
.in-proof-list li>div{flex:1;min-width:0}
.in-proof-list strong{font-size:12px;overflow-wrap:anywhere}
.in-proof-list small{display:block;font-size:11px;color:#748498;margin-top:3px}
.in-address-card{padding:14px 16px;border:1px solid #dce6ef;border-radius:7px;margin:12px 0}
.in-address-card .in-tag{margin-left:10px}
.in-address-card p{color:#6b7d91;font-size:12px;line-height:1.8;margin:7px 0 10px}
.in-address-card small{font-size:11px;color:#748498}
.in-smart-address{background:#f6f9fc;padding:14px;border-radius:7px}
.in-smart-address .in-btn{margin-top:10px}
.in-form-row{display:flex;justify-content:space-between;gap:16px;align-items:center;font-size:12px;color:#718096}
.in-form-row label{display:flex;gap:6px;align-items:center;color:#34465b}
.in-photo-stage,.in-proof-stage{display:flex;align-items:center;justify-content:center;min-height:240px;background:#f1f5f9;border:1px solid #dce5ee;border-radius:7px;overflow:hidden}
.in-photo-stage img,.in-proof-stage img{max-width:100%;max-height:58dvh;object-fit:contain}
.in-proof-stage iframe{width:100%;height:60dvh;border:0}
.in-photo-nav{display:flex;gap:8px;justify-content:center;margin-top:12px}
.in-label-item{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #e7edf3;padding:12px 0}
.in-label-item strong{font-size:12px;display:block;margin-bottom:4px}
.in-label-preview{padding:16px;background:#e9eef4;display:flex;justify-content:center}
.in-label-preview>svg{width:auto;height:490px;max-height:54dvh;max-width:100%;box-shadow:0 2px 10px #0b284522}

/* Waybill viewer owns its canvas; the application behind it keeps its scroll. */
.in-dialog.in-waybill-dialog{width:min(1120px,calc(100vw - 48px));height:min(840px,calc(100dvh - 48px));max-height:calc(100dvh - 48px)}
.in-waybill-dialog:has(.is-single){width:min(900px,calc(100vw - 48px))}
.in-waybill-dialog>header{padding:16px 20px}
.in-waybill-dialog>.in-dialog-body{display:flex;flex:1;padding:0;overflow:hidden;min-height:0}
.in-waybill-viewer{display:grid;grid-template-columns:minmax(0,1fr);width:100%;min-height:0;flex:1}
.in-waybill-viewer.has-directory{grid-template-columns:236px minmax(0,1fr)}
.in-waybill-directory{display:flex;flex-direction:column;min-height:0;background:#fff;border-right:1px solid #e3eaf1}
.in-waybill-directory-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:18px 16px 14px;color:#34465b;font-size:12px;flex:none}
.in-waybill-directory-head strong{display:flex;gap:7px;align-items:center}
.in-waybill-directory-head>span{font-size:11px;color:#7c8ba0;white-space:nowrap}
.in-waybill-directory nav{overflow:auto;padding:0 10px 12px;min-height:0}
.in-waybill-item{display:flex;align-items:center;gap:9px;text-align:left;width:100%;border:1px solid transparent;border-radius:7px;background:#fff;padding:11px 9px;margin:0 0 6px;color:#4e6075;cursor:pointer;font:inherit}
.in-waybill-item:hover{background:#f5f8fb}
.in-waybill-item.active{border-color:#a9dce3;background:#eaf7f9;color:#087f91}
.in-waybill-item:disabled{cursor:default;opacity:.6}
.in-waybill-item:focus-visible,.in-waybill-scroll:focus-visible{outline:2px solid #07899b;outline-offset:-2px}
.in-waybill-number{display:grid;place-items:center;width:28px;height:30px;flex:none;background:#f0f4f7;border-radius:5px;color:#72849a;font-size:11px}
.in-waybill-item.active .in-waybill-number{background:#07899b;color:white}
.in-waybill-item-copy{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
.in-waybill-item-copy strong{font-size:11px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.in-waybill-item-copy small{font-size:11px;color:#7b8a9d;line-height:1.3}
.in-waybill-item.active .in-waybill-item-copy small{color:#548b96}
.in-waybill-item>.lucide{width:14px;height:14px}
.in-waybill-document{display:flex;flex-direction:column;min-width:0;min-height:0;background:#edf1f6}
.in-waybill-document-head{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 20px;background:#fff;border-bottom:1px solid #e5ebf1;flex:none}
.in-waybill-current{display:flex;flex-direction:column;min-width:0;gap:5px}
.in-waybill-current strong{font-size:14px;color:#263a51;overflow-wrap:anywhere}
.in-waybill-current small{font-size:11px;color:#7c8b9e}
.in-waybill-pagination{display:flex;align-items:center;gap:5px;flex:none}
.in-waybill-pagination>span{min-width:44px;text-align:center;font-size:11px;color:#7c8b9e;font-variant-numeric:tabular-nums}
.in-waybill-dialog .in-icon-only{width:30px;height:30px;min-height:30px}
.in-waybill-mobile-picker{display:none}
.in-waybill-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f8fafc;border-bottom:1px solid #e2e8ef;padding:7px 16px;flex:none}
.in-waybill-batch{display:flex;align-items:center;gap:6px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7b8b9f;font-size:11px}
.in-waybill-batch .lucide{width:13px;height:13px}
.in-waybill-zoom{display:flex;align-items:center;gap:5px;flex:none}
.in-waybill-zoom output{min-width:38px;text-align:center;font-size:11px;color:#65778f;font-variant-numeric:tabular-nums}
.in-waybill-zoom .in-link{font-size:11px;padding:4px 7px;margin-left:4px;border-left:1px solid #dce5ee;border-radius:0}
.in-waybill-scroll{display:flex;align-items:flex-start;flex:1;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain;padding:20px;background:#edf1f6}
.in-waybill-dialog .in-label-preview.in-waybill-paper{display:block;padding:0;flex:none;margin:auto;background:#fff;box-shadow:0 4px 20px #132c4926;max-width:none}
.in-waybill-dialog .in-waybill-paper>svg{display:block;width:100%;height:100%;max-width:none;max-height:none;box-shadow:none}
.in-waybill-dialog>footer{align-items:center;justify-content:space-between;padding:13px 20px;flex-wrap:wrap}
.in-waybill-footer-note{display:flex;gap:6px;align-items:center;color:#7c8c9f;font-size:11px}
@media(max-width:820px){
 .in-dialog.in-waybill-dialog{width:calc(100vw - 24px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}
 .in-waybill-viewer.has-directory{grid-template-columns:minmax(0,1fr)}
 .in-waybill-directory{display:none}
 .in-waybill-mobile-picker:not(:empty){display:block;padding:8px 14px;background:#fff;border-bottom:1px solid #e5ebf1}
 .in-waybill-mobile-picker select{width:100%;min-height:34px}
 .in-waybill-document-head{padding:12px 14px}
 .in-waybill-toolbar{padding:6px 12px;gap:6px}
 .in-waybill-toolbar .in-waybill-batch{max-width:38%}
 .in-waybill-dialog>footer{padding:10px 12px}
 .in-waybill-footer-note{display:none}
 .in-waybill-dialog>footer>.in-actions{margin-left:auto}
}
@media(max-width:500px){
 .in-waybill-dialog>header{padding:13px 14px}
 .in-waybill-current strong{font-size:12px}
 .in-waybill-toolbar{flex-wrap:wrap}
 .in-waybill-toolbar .in-waybill-batch{max-width:100%;flex:1 1 100%;padding:2px 0}
 .in-waybill-zoom{margin-left:auto}
 .in-waybill-dialog>footer>.in-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:7px}
 .in-waybill-dialog>footer [data-in="close"]{grid-column:1/-1;grid-row:2;min-height:30px}
 .in-waybill-dialog>footer .in-btn{font-size:11px;padding:7px 8px}
}
.in-fact-list{padding-left:20px;color:#66758a;font-size:12px;line-height:1.8}
.in-fact-list li+li{margin-top:10px}
.in-demo-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.in-demo-options .in-btn{min-height:50px;white-space:normal}
.in-progress{display:flex;align-items:center;gap:10px;color:#0a7e91;background:#e9f8fa;border:1px solid #b9e2e9;border-radius:6px;padding:10px 15px;margin-bottom:16px}
.in-progress svg{animation:in-spin 1s linear infinite}
@keyframes in-spin{to{transform:rotate(360deg)}}
@media(min-width:1500px){.in-main{padding:26px 34px}}
@media(max-width:1200px){.in-main{padding:20px}.in-page-head{gap:14px}.in-heading h1{font-size:21px}.in-address-grid{grid-template-columns:1fr auto}.in-stat{padding:13px 16px}.in-page-head>.in-actions{justify-content:flex-end}}
@media(max-width:800px){.in-main{padding:16px 14px}.in-page-head{flex-direction:column;gap:14px}.in-page-head>.in-actions{justify-content:flex-start}.in-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.in-stat:nth-child(3),.in-stat:nth-child(4){border-top:1px solid #e5ebf1}.in-stat:nth-child(3):before{display:none}.in-stat strong{font-size:22px}.in-form-grid{grid-template-columns:1fr}.in-steps{gap:8px;flex-wrap:wrap}.in-steps>span{font-size:11px}.in-filter .in-search{flex-basis:100%}.in-filter .in-field{flex:1 1 120px}.in-filter select{max-width:none}.in-filter .in-date{flex:1 1 250px}.in-date input{flex:1}.in-quote-row{grid-template-columns:1fr;gap:10px}.in-quote-row>div:first-child{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.in-panel-head{padding:12px}.in-panel-head h2{font-size:13px}.in-panel-head>.in-subtle{display:none}.in-form-footer{flex-direction:column;align-items:flex-start}.in-form-footer>.in-actions{width:100%;justify-content:flex-end}.in-local-note{align-items:flex-start;flex-wrap:wrap}.in-pagination{flex-wrap:wrap;gap:10px}.in-overlay{padding:10px}.in-dialog{max-height:calc(100dvh - 20px)}.in-dialog-body{padding:16px}.in-dialog>header{padding:13px 16px}.in-dialog>footer{padding:12px;flex-wrap:wrap}.in-dialog>footer .in-btn{min-height:38px}.in-dialog .in-table{display:block;overflow-x:auto}.in-dialog .in-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.in-detail-list>div{grid-template-columns:105px 1fr}.in-conflict-head{align-items:flex-start;flex-direction:column}.in-form-row{align-items:flex-start;flex-direction:column}.in-forecast-grid{min-width:630px}.in-sticky-right{position:static;box-shadow:none}.in-tabs{gap:14px}.in-tabs>button{white-space:nowrap}.in-segment .in-btn{padding:4px 6px}.in-panel-bottom>span{display:none}.in-timeline time{font-size:10px}.in-timeline li>div{flex-wrap:wrap}.in-heading p{font-size:12px}.in-dialog .in-grid-scroll table{display:table}}
@media(prefers-reduced-motion:reduce){.in-module *{animation:none!important;transition:none!important}}
/* Keep two-line tracking rows compact; wrap the view switch rather than clipping it. */
.in-table .in-link{min-height:20px;line-height:1.4}
@media(max-width:800px){.in-table .in-link{min-height:30px}}
@media(max-width:480px){.in-tabs{flex-wrap:wrap;gap:8px 18px;padding-bottom:8px}.in-tabs-spacer{display:none}.in-segment{margin-left:auto;margin-bottom:0}.in-tabs>button{padding-top:8px;padding-bottom:8px}.in-pagination>.in-actions{gap:5px}}
/* Match existing warehouse pages: review navigation must not cover business controls. */
body:has(.in-main)>#prototype-trigger{position:static;display:flex;width:max-content;margin:0 28px 20px auto;box-shadow:none}

/* Confirmed navigation and paired creation actions, 2026-10-21. */
.in-module .in-title-icon svg.lucide{width:24px;height:24px;stroke-width:1.75}
.in-page-head>.in-actions:has(.in-entry-button){display:grid;grid-template-columns:repeat(2,1fr);align-items:center;gap:8px}
.in-page-head .in-entry-button{height:36px;min-height:36px;min-width:144px;padding:0 14px;line-height:20px;box-sizing:border-box}
.in-page-head .in-entry-button svg.lucide{width:16px;height:16px;stroke-width:1.7}
@media(max-width:480px){
  .in-page-head>.in-actions:has(.in-entry-button){width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}
  .in-page-head .in-entry-button{min-width:0;padding:0 8px}
  html[lang="en-US"] .in-page-head .in-entry-button{height:44px;min-height:44px;white-space:normal;line-height:18px}
}

/* Purchase stays over the batch list; only its content scrolls. */
.in-dialog.in-editor-dialog{width:min(1120px,calc(100vw - 80px));max-height:calc(100dvh - 80px)}
.in-editor-dialog .in-dialog-body{background:#f6f8fb;padding:18px 22px}
.in-editor-dialog .in-steps{margin:0 0 18px}
.in-editor-dialog .in-edit-form{margin:0}
.in-editor-dialog .in-package-editor{white-space:nowrap}
.in-editor-dialog .in-package-editor th{white-space:normal}
.in-editor-dialog>footer{justify-content:space-between;align-items:center}
.in-purchase-footer-note{display:flex;align-items:center;gap:7px;color:#718096;font-size:12px}
.in-purchase-footer-note svg{width:15px;height:15px;flex:none}
.in-editor-dialog[aria-busy="true"] .in-purchase-footer-note svg{animation:in-spin 1s linear infinite}
@media(max-width:800px){.in-dialog.in-editor-dialog{width:100%;max-height:calc(100dvh - 24px)}.in-editor-dialog .in-dialog-body{padding:14px}.in-editor-dialog>footer{gap:10px}.in-editor-dialog>footer>.in-actions{width:100%;justify-content:flex-end;flex-wrap:wrap}.in-purchase-footer-note{font-size:11px}.in-editor-dialog .in-address-grid{grid-template-columns:1fr}.in-editor-dialog .in-address-snapshot{grid-column:1}}

/* Compact filters: icons live inside controls; calendar reuses order overview styles. */
.in-filter{align-items:center}
.in-filter-select{position:relative;display:flex;align-items:center;flex:0 1 132px;min-width:130px}
.in-filter-select>svg{position:absolute;left:11px;width:15px;height:15px;color:#708397;pointer-events:none;z-index:1}
.in-filter .in-filter-select select{max-width:none;padding-left:34px!important;padding-right:25px!important;white-space:nowrap}
.in-filter .bo-date-range{flex:0 0 270px;min-width:250px}
.in-filter .bo-date-range .co-date-trigger{width:100%;min-height:34px;height:34px;grid-template-columns:15px 1fr 14px 1fr 14px;gap:7px;padding:0 10px;border-radius:5px;font-size:12px}
.in-filter .bo-date-range .co-date-popover{position:fixed;z-index:60;max-height:calc(100dvh - 24px);overflow:auto}
.in-filter .bo-date-range .co-calendar-days button{font-size:12px;min-height:30px;cursor:pointer}
.in-filter .bo-date-range .co-calendar-week,.in-filter .bo-date-range .co-date-presets small{font-size:11px}
.in-filter .bo-date-range .co-date-presets button,.in-filter .bo-date-range .co-calendar footer button{font-size:12px;cursor:pointer}
.bo-date-status{font-size:11px;color:#718096;margin:8px 0 0;line-height:1.5}
.bo-date-range button:focus-visible{outline:2px solid #168396;outline-offset:2px}
@media(max-width:800px){.in-filter .in-filter-select{flex:1 1 130px}.in-filter .bo-date-range{flex:1 1 270px}.in-filter .bo-date-range .co-date-popover{left:0;right:auto;width:min(438px,calc(100vw - 28px));max-width:calc(100vw - 28px);grid-template-columns:88px minmax(0,1fr)}.in-filter .bo-date-range .co-calendar{padding:12px 8px}.in-filter .bo-date-range .co-calendar-days button{width:27px}.in-filter .bo-date-range .co-date-presets{padding:12px 5px}}

.in-filter .in-search{flex-basis:220px}
html[lang="en-US"] .in-filter .in-filter-select{flex-basis:180px;min-width:180px}

.in-forecast-dialog .in-grid-scroll{max-height:none}
.in-forecast-dialog .in-forecast-meta{margin-top:0}
.in-forecast-dialog .in-dialog-body>.in-edit-form>.in-inline-info{margin-bottom:0}
@media(max-width:800px){.in-forecast-dialog .in-panel-head{flex-direction:column;align-items:flex-start;gap:10px}.in-forecast-dialog .in-panel-head h2{white-space:nowrap}.in-forecast-dialog .in-panel-head>.in-actions{width:100%;gap:6px}.in-forecast-dialog .in-panel-head .in-btn{font-size:12px;padding:6px 9px}}
html[lang="en-US"] .in-forecast-dialog .in-row-remove{width:80px;min-width:80px}

/* Date basis belongs to the date-range control, including its collapsed summary. */
.in-filter .bo-date-range.bo-date-with-basis{flex-basis:340px;min-width:320px}
.in-filter .bo-date-with-basis .co-date-trigger{grid-template-columns:15px auto minmax(0,1fr) 14px minmax(0,1fr) 14px}
.bo-date-basis-label{padding-right:9px;border-right:1px solid #dde5ec;color:#51677c}
.bo-date-basis{grid-column:1 / -1;padding:12px 14px;border-bottom:1px solid #e7edf1;background:#fff}
.bo-date-basis-switch{display:inline-flex;padding:3px;border:1px solid #dbe5ec;border-radius:6px;background:#f3f6f9;gap:3px}
.bo-date-basis-switch button{min-height:30px;padding:4px 18px;background:transparent;border:0;border-radius:4px;color:#627487;font-size:12px;white-space:nowrap;cursor:pointer}
.bo-date-basis-switch button[aria-pressed=true]{background:#fff;color:#0a7789;box-shadow:0 1px 3px #1a32451c;font-weight:600}
.bo-date-basis>span{font-size:12px;color:#627487}
html[lang="en-US"] .in-filter .bo-date-with-basis{flex-basis:400px;min-width:370px}
@media(max-width:800px){.in-filter .bo-date-range.bo-date-with-basis{flex:1 1 340px;min-width:0;width:100%}.in-filter .bo-date-with-basis .co-date-trigger{gap:5px;padding:0 8px;font-size:11px}.bo-date-basis-switch button{padding:4px 14px}html[lang="en-US"] .in-filter .bo-date-with-basis{flex-basis:100%;min-width:0}.in-filter .bo-date-with-basis .co-date-trigger span[data-range-from],.in-filter .bo-date-with-basis .co-date-trigger span[data-range-to]{overflow:hidden;text-overflow:ellipsis}}

.in-filter .bo-date-with-basis .co-date-presets .bo-date-basis{padding:0 0 10px;margin-bottom:5px;background:transparent}
.in-filter .bo-date-with-basis .bo-date-basis-switch{display:flex;flex-direction:column;width:100%;gap:3px}
.in-filter .bo-date-with-basis .bo-date-basis-switch button{padding:4px 6px;min-height:29px;text-align:center}
.in-filter .bo-date-with-basis .co-calendar-days button{min-height:28px}
html[lang="en-US"] .in-filter .bo-date-with-basis .co-date-popover{grid-template-columns:146px minmax(0,1fr)}

/* Service selection: a bounded shipment directory with one template open at a time. */
.in-editor-dialog:has(.in-quote-page){height:min(820px,calc(100dvh - 48px));max-height:calc(100dvh - 48px)}
.in-editor-dialog .in-dialog-body:has(.in-quote-page){display:flex;flex:1;overflow:hidden}
.in-quote-page{display:flex;flex-direction:column;gap:12px;min-height:0;min-width:0;width:100%;flex:1}
.in-editor-dialog .in-quote-page .in-steps{margin:0;flex:none}
.in-quote-context{margin:0;flex:none;flex-wrap:nowrap;min-width:0;font-size:12px;gap:16px}
.in-quote-context>span:last-child{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.in-quote-context>span:last-child svg{display:inline-block;vertical-align:middle;margin-right:6px}
.in-quote-workspace{display:grid;grid-template-columns:220px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);overflow:hidden;flex:1;min-height:180px;margin:0}
.in-quote-overview{grid-column:1/-1;display:flex;align-items:center;gap:16px;padding:11px 14px;border-bottom:1px solid #e2e9ef;flex-wrap:wrap}
.in-quote-overview h3{display:flex;align-items:center;gap:7px;font-size:13px;margin:0;white-space:nowrap}
.in-quote-totals{display:flex;align-items:center;gap:14px;flex:1;flex-wrap:wrap}
.in-quote-totals>span{display:inline-flex;align-items:center;gap:5px;font-size:12px;color:#65788b;white-space:nowrap}
.in-quote-totals>span:last-child{color:#087d8f}
.in-quote-overview>.in-btn{font-size:11px;padding:4px;min-height:28px}
.in-quote-nav{overflow-y:auto;overscroll-behavior:contain;min-height:0;background:#f8fafc;border-right:1px solid #e2e9ef;padding:12px 10px}
.in-quote-nav-title{display:flex;align-items:center;gap:6px;font-size:11px;color:#718397;margin:0 6px 9px}
.in-quote-nav-item{display:block;width:100%;border:1px solid transparent;border-radius:6px;padding:11px 10px;margin:0 0 6px;text-align:left;background:transparent;color:#42586e;cursor:pointer;font-family:inherit}
.in-quote-nav-item:hover{background:#edf3f6}
.in-quote-nav-item.active{background:#eaf6f8;border-color:#b8dce2;color:#087e90}
.in-quote-nav-line{display:flex;align-items:center;gap:7px}
.in-quote-order{display:flex;align-items:center;justify-content:center;flex:none;width:24px;height:24px;border-radius:5px;background:#e9eef3;font-size:11px;font-weight:600;color:#60788e}
.active .in-quote-order{background:#0b8395;color:#fff}
.in-quote-nav-line strong{flex:1;font-size:12px}
.in-quote-nav-line>svg{width:13px!important;height:13px!important}
.in-quote-nav-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;font-size:12px;line-height:1.5;margin:6px 0}
.in-quote-nav-count{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:11px;color:#738398}
.in-quote-nav-count>span{display:flex;align-items:center;gap:3px;color:#087e90}
.in-quote-nav-count svg{width:12px!important;height:12px!important}
.in-quote-detail{overflow-y:auto;overscroll-behavior:contain;min-height:0;min-width:0;padding:16px;background:#fff}
.in-quote-detail-head{margin-bottom:12px;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.in-quote-detail-head>div:first-child{min-width:0}
.in-quote-eyebrow{display:flex;align-items:center;gap:6px;color:#74869a;font-size:11px}
.in-quote-detail-head h3{margin:5px 0 0;color:#253b50;font-size:15px;line-height:1.5;overflow-wrap:anywhere}
.in-quote-detail-head .in-btn{width:30px;min-height:30px;padding:5px}
.in-quote-service-group{margin:0;padding:0;border:0;min-width:0}
.in-quote-disclaimer{display:flex;align-items:center;gap:6px;color:#7a8b9b;font-size:11px;line-height:1.5;flex:none}
.in-quote-disclaimer svg{flex:none;width:14px!important;height:14px!important}
.in-quote-error{grid-column:1/-1;overflow:auto}
.in-quote-nav-item:focus-visible,.in-quote-nav:focus-visible,.in-quote-detail:focus-visible{outline:2px solid #0b8395;outline-offset:-3px}
@media(max-width:800px){
 .in-editor-dialog:has(.in-quote-page){height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}
 .in-quote-page{gap:9px}
 .in-quote-workspace{grid-template-columns:155px minmax(0,1fr)}
 .in-quote-overview{padding:9px;gap:8px}
 .in-quote-totals{gap:8px;font-size:11px}
 .in-quote-overview>.in-btn{margin-left:auto}
 .in-quote-nav{padding:8px 5px}
 .in-quote-nav-item{padding:8px}
 .in-quote-detail{padding:12px}
}
@media(max-width:560px){
 .in-quote-workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr)}
 .in-quote-nav{display:flex;overflow-x:auto;overflow-y:hidden;gap:6px;padding:7px;border-right:0;border-bottom:1px solid #e2e9ef;scroll-snap-type:x proximity}
 .in-quote-nav-title{display:none}
 .in-quote-nav-item{flex:0 0 148px;margin:0;scroll-snap-align:start}
 .in-quote-nav-name{white-space:nowrap;display:block;text-overflow:ellipsis;margin:4px 0}
 .in-quote-order{width:20px;height:20px}
 .in-quote-totals>span{font-size:10px}
 .in-quote-context>span:last-child{font-size:11px}
 .in-quote-page .in-steps{padding:9px 10px;gap:6px}
 .in-editor-dialog:has(.in-quote-page)>footer>.in-actions{gap:6px}
 .in-editor-dialog:has(.in-quote-page)>footer .in-btn{padding:6px 8px;font-size:11px}
 html[lang="en-US"] .in-editor-dialog:has(.in-quote-page)>footer .in-btn{flex:1;white-space:normal;line-height:1.35;min-height:44px}
}

/* One service applies to every package in a shipment. */
.in-batch-service{border:1px solid #bcdce2;border-radius:7px;padding:12px;margin:0 0 16px;background:#fbfdfe}
.in-batch-service-title{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.in-batch-service-title h4{display:flex;align-items:center;gap:6px;margin:0;font-size:12px;color:#29475b}
.in-batch-service-title>span{font-size:11px;color:#698292}
.in-batch-service-title svg{color:#0a7e91}
.in-batch-service-warning{display:flex;align-items:flex-start;gap:6px;font-size:12px;line-height:1.5;margin:0 0 10px;color:#a35b1d}
.in-batch-service-warning svg{flex:none}
.in-quote-packages-title{display:flex;align-items:center;gap:6px;font-size:12px;color:#4f687c;margin:0 0 10px}
.in-quote-packages-title span{font-size:11px;color:#7b8d9c;font-weight:400;margin-left:auto}
.in-quote-nav-service{display:flex;align-items:center;gap:5px;font-size:11px;line-height:1.5;margin-top:6px;color:#087e90;overflow-wrap:anywhere}
.in-quote-nav-service svg{width:12px!important;height:12px!important;flex:none}
.in-quote-nav-service.pending{color:#a35b1d}
@media(max-width:560px){.in-batch-service{padding:10px}.in-batch-service-title{align-items:flex-start}.in-quote-nav-service{font-size:10px}}

/* Batch detail shares the existing editor dialog shell. */
.in-batch-summary{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:12px}
.in-batch-summary strong{font-size:18px;font-weight:650;color:#21374d}
.in-batch-summary p{margin:4px 0 0;color:#6b7c8f;font-size:12px;overflow-wrap:anywhere}
.in-batch-dialog .in-table{white-space:nowrap}
.in-batch-dialog .in-table-scroll .in-table{min-width:760px}
.in-batch-dialog .in-context{flex-wrap:wrap}
.in-batch-dialog .in-history-panel{margin-bottom:0}
.in-batch-dialog .in-timeline p{overflow-wrap:anywhere}
.in-quantity-head{min-width:170px;text-align:left}
.in-quantity{width:170px;max-width:100%;padding:3px 0}
.in-quantity-values{display:flex;align-items:baseline;gap:5px;line-height:1.5;font-variant-numeric:tabular-nums;color:#233348}
.in-quantity-slash{color:#9aa4ae}
.in-quantity-values small{display:inline;margin:0 0 0 3px;color:#718397;font-size:11px}
.in-quantity-track{height:5px;border-radius:4px;background:#eef0f2;margin-top:8px;overflow:hidden}
.in-quantity-track>span{display:block;height:100%;border-radius:inherit;background:#178394}
@media(max-width:800px){.in-batch-summary strong{font-size:16px}.in-batch-dialog>footer .in-actions{gap:6px}.in-batch-dialog>footer .in-btn{padding:6px 9px}.in-batch-dialog .in-context{gap:10px}}

/* Reference-led overview: icon tiles, quiet dividers and one clear type hierarchy. */
.in-overview{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));background:#fff;border:1px solid #d7e3ef;border-radius:14px;overflow:hidden;margin:0 0 22px;min-height:90px}
.in-overview-item{display:flex;align-items:center;gap:14px;min-width:0;padding:18px 24px}
.in-overview-item+.in-overview-item{border-left:1px solid #d7e3ef}
.in-overview-icon{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:9px;background:#dff5f8;color:#00869a}
.in-overview-icon svg.lucide{width:21px;height:21px;stroke-width:1.65}
.in-overview-content{min-width:0}
.in-overview-value{display:flex;align-items:baseline;gap:5px;min-width:0}
.in-overview-value strong{color:#122944;font-size:26px;font-weight:600;line-height:1.15;letter-spacing:-.5px;font-variant-numeric:tabular-nums}
.in-overview-unit{color:#66768d;font-size:12px;line-height:1.4;white-space:nowrap}
.in-overview-label{margin-top:5px;color:#66768d;font-size:12px;line-height:1.4;white-space:nowrap}
.in-overview-item.amber .in-overview-icon{background:#fff5e7;color:#df7000}
.in-overview-item.amber .in-overview-value strong{color:#cc6700}
.in-overview-item.green .in-overview-icon{background:#eafbf3;color:#00966d}
.in-overview-item.green .in-overview-value strong{color:#00966d}
@media(min-width:801px) and (max-width:1350px){.in-overview-item{padding:18px 18px;gap:12px}}
@media(min-width:801px){html[lang="en-US"] .in-overview-item{padding-right:14px;padding-left:18px;gap:10px}html[lang="en-US"] .in-overview-icon{width:40px;height:44px}html[lang="en-US"] .in-overview-label{font-size:11px}}
@media(max-width:1100px) and (min-width:801px){.in-overview-item{padding:18px 12px;gap:9px}.in-overview-icon{width:36px;height:40px}.in-overview-value strong{font-size:24px}.in-overview-label{font-size:11px}}
@media(max-width:800px){.in-overview{grid-template-columns:repeat(6,minmax(0,1fr));border-radius:12px}.in-overview-item{grid-column:span 2;padding:16px 10px;gap:9px;flex-direction:column;align-items:flex-start}.in-overview-icon{width:36px;height:36px;border-radius:8px}.in-overview-icon svg.lucide{width:19px;height:19px}.in-overview-value strong{font-size:24px}.in-overview-label{font-size:11px}.in-overview-item:nth-child(4),.in-overview-item:nth-child(5){grid-column:span 3;border-top:1px solid #d7e3ef;flex-direction:row;align-items:center;padding:16px}.in-overview-item:nth-child(4){border-left:0}.in-overview-item:nth-child(5){padding-left:20px}}

/* Batch-wide service dropdown and directly comparable package rows. */
.in-quote-detail{display:flex;flex-direction:column;overflow:hidden}
.in-quote-detail-head,.in-batch-service,.in-quote-packages-heading{flex:none}
.in-batch-service{background:#fff;padding:12px;margin-bottom:16px}
.in-shipment-service-select{position:relative;display:block;min-width:0}
.in-shipment-service-select>svg{position:absolute;left:11px;top:11px;color:#5b7d91;pointer-events:none}
.in-shipment-service-select select{display:block;width:100%;height:38px;padding:6px 34px!important;border:1px solid #c9dbe5;border-radius:5px;color:#223f53;background:#fff;font:inherit;font-size:13px;cursor:pointer;min-width:0}
.in-shipment-service-select select:focus-visible{outline:2px solid #078295;outline-offset:2px}
.in-service-catalog-note{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#718397;line-height:1.5;margin-top:6px}
.in-quote-packages-heading .in-quote-packages-title{margin:0 0 10px}
.in-quote-packages{flex:1;min-height:96px;overflow:auto;overscroll-behavior:contain;border:1px solid #e0e8ee;border-radius:6px;background:#fff}
.in-quote-packages:focus-visible{outline:2px solid #078295;outline-offset:-2px}
.in-dialog .in-quote-package-table{display:table;width:100%;min-width:640px;white-space:nowrap;margin:0;border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums}
.in-quote-package-table th,.in-quote-package-table td{padding:9px 10px!important;font-size:12px;line-height:18px}
.in-quote-package-table thead th{position:sticky;top:0;z-index:2;background:#f5f8fb;border-bottom:1px solid #dce6ed;font-weight:500;white-space:nowrap!important}
.in-quote-package-table thead small{display:block;font-size:10px;color:#8092a1;line-height:13px;margin:0}
.in-quote-package-table tbody th{border-bottom:1px solid #e8edf2;font-weight:400}
.in-quote-package-table tbody tr:hover{background:#f5fafb}
.in-quote-package-table tbody tr:last-child>td,.in-quote-package-table tbody tr:last-child>th{border-bottom:0}
.in-quote-package-table tfoot>tr>*{position:sticky;bottom:0;background:#f6fafb;font-weight:600;border-top:1px solid #dce6ed;z-index:2}
.in-quote-package-table tbody .in-tag{font-size:11px;padding:2px 6px;white-space:nowrap}
.in-template-number{display:inline-block;color:#657f93;font-size:11px;font-weight:500}
@media(max-width:800px){.in-dialog .in-quote-package-table{display:table}.in-batch-service-title>span{font-size:10px}}
@media(max-width:560px){.in-batch-service{padding:10px;margin-bottom:12px}.in-quote-detail{padding:10px}.in-quote-packages{min-height:90px}.in-shipment-service-select select{font-size:12px;height:40px}.in-quote-package-table th,.in-quote-package-table td{padding:8px 9px!important}.in-quote-package-table th:first-child{position:sticky;left:0;background:#f8fbfc;z-index:1}.in-quote-package-table thead th:first-child,.in-quote-package-table tfoot th:first-child{z-index:3}}


/* Keep the comparison table useful in short desktop windows. */
.in-editor-dialog .in-quote-page .in-steps{padding:7px 12px}
.in-quote-page{gap:10px}
.in-quote-detail{padding:12px}
.in-quote-detail-head{margin-bottom:10px;align-items:center}
.in-quote-detail-head>div:first-child{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.in-quote-detail-head h3{margin:0;font-size:14px}
.in-batch-service{display:grid;grid-template-columns:116px minmax(0,1fr);gap:5px 12px;align-items:center;padding:10px;margin-bottom:12px}
.in-batch-service-title{display:contents}
.in-batch-service-title h4{grid-column:1;grid-row:1;font-size:12px}
.in-batch-service-title>span{grid-column:2;grid-row:2;font-size:10px}
.in-batch-service .in-shipment-service-select{grid-column:2;grid-row:1}
.in-batch-service-warning{grid-column:1/-1;grid-row:3;margin:4px 0 0}
.in-quote-package-table th,.in-quote-package-table td{padding:6px 10px!important;line-height:18px}
@media(max-width:560px){.in-batch-service{grid-template-columns:minmax(0,1fr);gap:6px}.in-batch-service-title h4{grid-column:1;grid-row:1}.in-batch-service .in-shipment-service-select{grid-column:1;grid-row:2}.in-batch-service-title>span{grid-column:1;grid-row:3}.in-batch-service-warning{grid-column:1;grid-row:4}.in-quote-detail-head>div:first-child{gap:6px}.in-quote-package-table th,.in-quote-package-table td{padding:6px 9px!important}}

.in-batch-service{grid-template-columns:140px minmax(0,1fr);gap:10px}
.in-batch-service-title{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin:0}
.in-batch-service-title>span{line-height:14px}
.in-quote-package-table thead small{display:inline;font-size:10px;line-height:inherit;margin-left:3px}
.in-quote-package-table th,.in-quote-package-table td{padding:5px 10px!important}
@media(max-width:560px){.in-batch-service{grid-template-columns:minmax(0,1fr);gap:8px}.in-batch-service-title{flex-direction:row;align-items:center;justify-content:space-between;width:100%}.in-batch-service .in-shipment-service-select{grid-column:1;grid-row:2}.in-quote-package-table th,.in-quote-package-table td{padding:5px 9px!important}}

/* Styled price selector: real HTML text allows crossed-out originals and accessible keyboard use. */
.in-rate-picker{position:relative;min-width:0}
.in-rate-trigger{display:flex;align-items:center;gap:10px;width:100%;min-height:38px;padding:7px 10px;border:1px solid #c9dbe5;border-radius:5px;background:#fff;color:#294459;font:inherit;font-size:12px;text-align:left;cursor:pointer}
.in-rate-trigger>svg{color:#658297;width:15px!important;height:15px!important;flex:none}
.in-rate-trigger:focus-visible{outline:2px solid #078295;outline-offset:2px}
.in-rate-trigger[aria-expanded=true]{border-color:#078295;box-shadow:0 0 0 2px #07829512}
.in-rate-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.in-rate-prices{display:inline-flex;align-items:baseline;justify-content:flex-end;gap:6px;white-space:nowrap;font-variant-numeric:tabular-nums;flex:none}
.in-rate-prices del{color:#8799ab;font-size:11px;text-decoration-thickness:1px;font-weight:400}
.in-rate-prices strong{font-size:12px;font-weight:500;color:#2d4053}
.in-rate-prices strong.discounted{color:#078295;font-weight:600}
.in-rate-pending{color:#7d8e9e;font-size:11px;white-space:nowrap}
.in-rate-menu{display:none;position:fixed;inset:auto;margin:0;padding:4px 0;border:1px solid #dce5ed;border-radius:6px;background:#fff;box-shadow:0 8px 30px #15364b24;color:#2d4053;overflow-y:auto;overscroll-behavior:contain;z-index:1300;box-sizing:border-box}
.in-rate-menu:popover-open,.in-rate-menu[data-fallback-open]{display:block}
.in-rate-menu::backdrop{background:transparent}
.in-rate-menu-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 12px 9px;color:#738699;border-bottom:1px solid #edf1f5;font-size:10px;line-height:1.5;background:#fff;position:sticky;top:-4px;z-index:1}
.in-rate-menu-head>span{font-size:10px;white-space:nowrap}
.in-rate-option{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:36px;padding:8px 12px;font-size:12px;line-height:18px;cursor:pointer;box-sizing:border-box}
.in-rate-option-name{min-width:0;overflow-wrap:anywhere}
.in-rate-option:hover,.in-rate-option.active{background:#f1f6f9}
.in-rate-option[aria-selected=true]{background:#edf8fa;color:#078295;font-weight:600}
@media(max-width:560px){.in-rate-trigger{min-height:40px;gap:7px}.in-rate-trigger>svg:first-child{display:none}.in-rate-prices{gap:5px}.in-rate-option{min-height:44px;padding:10px 12px}.in-rate-menu-head{flex-wrap:wrap;gap:3px}.in-batch-service-title>span{max-width:52%;text-align:right}}

/* Package dimensions are a single column; each axis remains separately labelled. */
.in-package-editor{min-width:1000px}
.in-package-editor>thead>tr>th,.in-package-editor>tbody>tr>td{padding:10px 9px}
.in-package-editor input{width:66px!important}
.in-package-editor input[name^=insured]{width:92px!important}
.in-dimension-inputs{display:flex;align-items:center;gap:4px;min-width:226px}
.in-dimension-inputs label{position:relative;display:flex;align-items:center;margin:0}
.in-dimension-inputs label>span{position:absolute;left:7px;pointer-events:none;font-size:11px;color:#70859a}
.in-package-editor .in-dimension-inputs input{width:70px!important;appearance:textfield;-moz-appearance:textfield;padding-left:22px!important;padding-right:5px!important;text-align:left;font-variant-numeric:tabular-nums}
.in-dimension-times{color:#8b9bad;font-size:12px}

.in-dimension-inputs input::-webkit-inner-spin-button,.in-dimension-inputs input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}

/* Purchase labels uses the shared application page; secondary tasks remain dialogs. */
.in-purchase-page{min-width:0}
.in-purchase-page .in-package-editor{white-space:nowrap}
.in-purchase-page .in-package-editor th{white-space:normal}
.in-entry-page-footer{position:sticky;bottom:0;z-index:4;background:#fff;border:1px solid var(--bo-border,#dce4ed);border-radius:8px;margin-top:20px;padding:14px 16px;box-shadow:0 -3px 12px #12203308}
.in-purchase-page .in-quote-page{height:clamp(440px,calc(100dvh - 300px),760px)}
.in-purchase-page .in-quote-page .in-steps{margin:0}
.in-purchase-page .in-quote-package-table{width:100%;min-width:740px;white-space:nowrap;font-variant-numeric:tabular-nums}
.in-purchase-page[aria-busy="true"] .in-purchase-footer-note svg{animation:in-spin 1s linear infinite}
@media(max-width:800px){.in-entry-page-footer{gap:10px;padding:12px}.in-purchase-page .in-quote-page{height:650px}.in-purchase-page .in-address-grid{grid-template-columns:1fr}.in-purchase-page .in-address-snapshot{grid-column:1}.in-purchase-page .in-panel-head{flex-wrap:wrap}.in-purchase-page .in-panel-head>.in-actions{gap:5px}.in-entry-page-footer .in-actions{gap:6px;flex-wrap:wrap}}

.in-purchase-page .in-package-editor{min-width:960px}
/* Bring the first shipment's editable package rows into the initial viewport. */
.in-main:has(.in-entry-page){padding-top:16px}
.in-entry-page>.in-breadcrumb{margin-bottom:10px}
.in-entry-page>.in-page-head{margin-bottom:12px}
.in-entry-page>.in-page-head h1{font-size:22px;margin-bottom:3px}
.in-entry-page>.in-page-head p{font-size:12px}
.in-purchase-page>.in-steps{padding:8px 14px;margin-bottom:12px}
.in-purchase-origin{margin-bottom:12px}
.in-purchase-origin>.in-panel-head{min-height:36px;padding:5px 14px}
.in-purchase-origin>.in-panel-head h2{font-size:12px}
.in-purchase-origin>.in-panel-head .in-btn{min-height:28px;padding:3px 8px;font-size:12px}
.in-purchase-origin .in-address-grid{padding:10px 14px;gap:8px 12px}
.in-address-snapshot.in-sender-details{display:block;padding:0;border:0;background:transparent;min-width:0}
.in-sender-details>summary{display:flex;align-items:center;gap:7px;min-width:0;min-height:28px;cursor:pointer;list-style:none;color:#61758a;font-size:12px;border-radius:4px}
.in-sender-details>summary::-webkit-details-marker{display:none}
.in-sender-caption{white-space:nowrap;flex:none}
.in-sender-summary{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}
.in-sender-expand{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;color:#087e90;font-size:11px}
.in-sender-details[open] .in-sender-expand svg{transform:rotate(180deg)}
.in-sender-details>summary:focus-visible{outline:2px solid #168396;outline-offset:2px}
.in-sender-expanded{padding:10px 12px;margin-top:4px;background:#f8fbfc;border:1px solid #e2eaf0;border-radius:5px;overflow-wrap:anywhere}
.in-purchase-page #in-purchase-form>.in-section-title{margin:12px 0 10px}
.in-purchase-page .in-shipment>.in-panel-head{min-height:40px;padding:7px 14px}
.in-purchase-page .in-shipment>.in-panel-head h2{font-size:13px}
.in-purchase-page .in-shipment .in-index{width:28px;height:28px}
.in-purchase-page .in-shipment-meta{padding:10px 14px;gap:14px}
@media(min-width:801px){
 .in-purchase-page .in-shipment-meta>.in-field{display:flex;flex-direction:row;align-items:center;gap:8px;min-width:0}
 .in-purchase-page .in-shipment-meta>.in-field>span{flex:none;white-space:nowrap;margin:0;font-size:12px}
 .in-purchase-page .in-shipment-meta input{flex:1;width:0;min-width:0}
}
@media(max-width:800px){.in-purchase-origin .in-address-grid{gap:8px}.in-purchase-page .in-shipment-meta{gap:10px}.in-sender-summary{font-size:11px}.in-sender-caption{display:none}}

/* Existing tracking shares the purchase page shell and keeps spreadsheet interactions. */
.in-forecast-page{min-width:0}
.in-forecast-page .in-forecast-meta{margin:0;padding:14px 16px;background:#fff;border:1px solid var(--bo-border,#dce4ed);border-radius:8px;margin-bottom:14px}
.in-forecast-page .in-grid-scroll{max-height:clamp(240px,calc(100dvh - 410px),520px);overscroll-behavior:contain}
.in-forecast-page .in-forecast-grid{min-width:630px}
.in-forecast-page .in-inline-info{margin:12px 0}
.in-forecast-page .in-entry-page-footer{margin-top:14px}
.in-forecast-page[aria-busy="true"] .in-purchase-footer-note svg{animation:in-spin 1s linear infinite}
@media(max-width:800px){.in-forecast-page .in-panel-head{align-items:flex-start;flex-wrap:wrap;gap:10px}.in-forecast-page .in-panel-head>.in-actions{gap:6px;flex-wrap:wrap}.in-forecast-page .in-panel-head .in-btn{font-size:12px;padding:6px 9px}.in-forecast-page .in-forecast-meta{padding:12px}.in-forecast-page .in-grid-scroll{max-height:420px}}

.in-forecast-page .in-grid-scroll{contain:layout paint;max-width:100%}

/* Shipment metadata: visible icons, in-field prompts, persistent accessible names. */
.in-purchase-page .in-shipment-meta>.in-icon-field{display:flex;flex-direction:row;align-items:center;gap:8px;min-width:0}
.in-purchase-page .in-shipment-meta>.in-icon-field>span{display:flex;align-items:center;flex:none;margin:0;width:16px}
.in-purchase-page .in-shipment-meta>.in-icon-field input{flex:1;width:0;min-width:0}

/* Two-line directory rows keep more batches visible without shrinking controls. */
@media(min-width:801px){
 .in-quote-nav{padding:8px}
 .in-quote-nav-title{margin:0 4px 6px;line-height:16px}
 .in-quote-nav-item{display:grid;grid-template-columns:84px minmax(0,1fr);grid-template-rows:20px 16px;gap:2px 6px;padding:5px 7px;margin:0 0 4px;min-height:50px}
 .in-quote-nav-line{grid-column:1;grid-row:1;gap:5px;min-width:0}
 .in-quote-nav-line strong{flex:none;font-size:11px;white-space:nowrap}
 .in-quote-nav-line>svg{display:none}
 .in-quote-order{width:20px;height:20px;font-size:10px}
 .in-quote-nav-name{grid-column:2;grid-row:1;align-self:center;display:block;min-width:0;margin:0;white-space:nowrap;text-overflow:ellipsis;line-height:18px;font-size:12px}
 .in-quote-nav-count{grid-column:1;grid-row:2;white-space:nowrap;font-size:10px;line-height:16px}
 .in-quote-nav-service{grid-column:2;grid-row:2;margin:0;min-width:0;gap:4px;white-space:nowrap;line-height:16px;font-size:10px}
 .in-quote-nav-service>span{display:block;overflow:hidden;text-overflow:ellipsis;min-width:0;white-space:nowrap}
}

/* Package quote breakdown; batch values are sums of package line subtotals. */
.in-purchase-page .in-quote-package-table{min-width:660px}
.in-quote-package-table [data-unit-shipping] strong,.in-quote-package-table [data-line-shipping] strong{color:#078295;font-weight:600}
.in-quote-package-table [data-unit-shipping] del{font-size:10px;color:#8a9dad}
.in-shipping-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid #e5edf3;padding:12px 16px;background:#f8fbfc;font-size:12px}
.in-shipping-summary>span{display:flex;align-items:center;gap:6px;color:#718596}
.in-shipping-summary svg{width:15px;height:15px}
.in-shipping-summary strong{color:#364d60;font-weight:500;white-space:nowrap}
.in-shipping-summary b{color:#078295;font-size:18px;margin-left:12px;font-variant-numeric:tabular-nums}
.in-shipping-summary small,.in-rate-unit{font-size:11px;color:#7b8e9f;font-weight:400}
@media(max-width:800px){.in-shipping-summary{padding:12px}.in-shipping-summary strong{margin-left:auto}}

/* Keep package prices and the first two template rows visible in the quote workspace. */
.in-purchase-page .in-quote-overview{padding:8px 12px}
.in-purchase-page .in-batch-service{padding:8px;margin-bottom:8px}
.in-purchase-page .in-quote-detail-head{margin-bottom:8px}
.in-purchase-page .in-quote-packages-heading .in-quote-packages-title{margin-bottom:6px}
.in-purchase-page .in-quote-package-table th,.in-purchase-page .in-quote-package-table td{padding:4px 8px!important;line-height:16px}
.in-purchase-page .in-shipping-summary{flex:none;padding:6px 12px}
.in-purchase-page .in-shipping-summary b{font-size:16px}
.in-purchase-page .in-quote-packages{min-height:116px}

/* Each physical package owns its service selection; one total above the package list. */
.in-package-grand-total{margin-left:auto;display:flex;align-items:baseline;gap:8px;white-space:nowrap;font-size:12px;color:#627b8d}
.in-package-grand-total strong{font-size:23px;font-weight:650;color:#078295;font-variant-numeric:tabular-nums}
.in-package-grand-total small{font-size:10px}
.in-per-package-services .in-package-service-cell{width:38%;min-width:195px}
.in-per-package-services .in-rate-trigger{height:36px;padding:6px 9px;gap:6px}
.in-per-package-services .in-rate-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;font-size:11px}
.in-per-package-services .in-rate-trigger>svg{width:14px;height:14px;flex:none}
.in-per-package-services tbody td,.in-per-package-services tbody th{height:44px}
.in-per-package-services [data-unit-shipping] strong{color:#078295;font-size:12px}
.in-purchase-page .in-quote-packages:has(.in-per-package-services){min-height:150px}
@media(max-width:600px){.in-package-grand-total{margin-left:auto}.in-package-grand-total strong{font-size:20px}.in-quote-overview:has(.in-package-grand-total){gap:8px}}

/* Current batch subtotal stays next to the batch it summarizes. */
.in-quote-detail-head{flex-wrap:wrap}
.in-current-batch-total{display:flex;align-items:baseline;gap:6px;white-space:nowrap;margin-right:8px;color:#6c8294;font-size:11px}
.in-current-batch-total strong{font-size:17px;font-weight:600;color:#078295;font-variant-numeric:tabular-nums}
.in-current-batch-total small{font-size:10px;color:#8293a2}
@media(max-width:600px){.in-current-batch-total{margin-right:2px}.in-current-batch-total strong{font-size:15px}.in-quote-detail-head>.in-actions{margin-left:auto}}

.in-stat .in-fee-review{display:inline-block;vertical-align:middle;margin-left:6px;padding:3px 6px;background:#fff6e5;color:#a97015;border-radius:4px;font-size:10px;font-weight:500;white-space:nowrap}

/* Package detail: keep the no-receipt summary compact. */
.in-receipt-empty{display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;min-height:34px;margin:14px 0 0;padding:6px 0;color:#748498;font-size:12px}
.in-receipt-empty h3{display:flex;align-items:center;gap:7px;margin:0;font-size:13px;font-weight:600;color:#243449}
.in-receipt-empty h3 svg{width:16px;height:16px;color:#65859a}

/* P06 received-detail product hierarchy: keep UPC distinct from the product name. */
.in-record-table .in-record-product .in-record-upc{color:#087e8b;font-size:11px;font-weight:500;font-variant-numeric:tabular-nums}

/* P06 received records: fixed date basis stays accessible but does not consume filter-row width. */
.in-received-filter .bo-date-basis-label{display:none}
.in-filter.in-received-filter .bo-date-range{flex-basis:220px;min-width:220px}
.in-filter.in-received-filter .bo-date-range .co-date-trigger{grid-template-columns:15px minmax(0,1fr) 14px minmax(0,1fr) 14px;gap:6px}
@media(min-width:1160px){
  .in-filter.in-received-filter{display:grid;grid-template-columns:minmax(180px,1.8fr) minmax(120px,1fr) minmax(145px,1.2fr) 220px max-content;gap:8px}
  .in-filter.in-received-filter .in-search,.in-filter.in-received-filter .in-filter-select{min-width:0;width:100%}
  .in-filter.in-received-filter .in-filter-select select{padding-left:30px!important;padding-right:18px!important;font-size:12px}
  .in-filter.in-received-filter .in-filter-select>svg{left:9px;width:14px}
  .in-filter.in-received-filter>.in-actions{flex-wrap:nowrap;gap:8px}
}

/* Inbound navigation: menu page, detail drawer, then one operation dialog. */
.in-drawer-overlay{padding:0;justify-content:flex-end;align-items:stretch;background:#14283b33;backdrop-filter:none}
.in-dialog.in-drawer{width:min(1120px,calc(100vw - 72px));height:100dvh;max-height:100dvh;border-radius:0;border-width:0 0 0 1px;box-shadow:-12px 0 48px #10283c26}
.in-context-layer{z-index:1200;pointer-events:none}
.in-active-layer{z-index:1210}
.in-active-layer.in-child-layer{z-index:1220;background:#14283b38;backdrop-filter:none}
.in-dialog.in-drawer>.in-dialog-body{flex:1;min-height:0}
.in-dialog.in-package-dialog{height:min(820px,calc(100dvh - 48px))}
.in-dialog.in-package-dialog.in-drawer{height:100dvh}
.in-package-dialog>.in-dialog-body{flex:1}
.in-package-tabs{display:flex;gap:24px;position:sticky;top:-18px;z-index:2;margin:12px -22px 18px;padding:0 22px;background:#fff;border-bottom:1px solid #e4ebf1}
.in-package-tabs>button{display:flex;align-items:center;gap:6px;white-space:nowrap;border:0;background:transparent;border-bottom:2px solid transparent;padding:12px 0 11px;color:#6a7b8c;cursor:pointer;font:inherit;font-size:13px;margin-bottom:-1px}
.in-package-tabs>button svg{width:16px;height:16px}
.in-package-tabs>button.active{color:#087e91;font-weight:600;border-bottom-color:#087e91}
.in-package-tabs>button:focus-visible{outline:2px solid #07899b;outline-offset:3px;border-radius:2px}
.in-package-waybill{display:flex;min-height:240px;height:min(520px,calc(100dvh - 260px));border:1px solid #dce6ef;border-radius:7px;overflow:hidden}
.in-package-waybill .in-label-preview.in-waybill-paper{display:block;flex:none;margin:auto;padding:0;max-width:none;background:#fff;box-shadow:0 4px 20px #132c4926}
.in-package-waybill .in-waybill-paper>svg{display:block;width:100%;height:100%;max-width:none;max-height:none;box-shadow:none}
.in-package-operation-head{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 16px;padding-bottom:12px;border-bottom:1px solid #e7edf3}
.in-package-operation-head h3{display:flex;align-items:center;gap:7px;font-size:14px;margin:0;color:#243b4b}
.in-package-operation-head h3 svg{width:17px;height:17px;color:#078295}
.in-surface-back{margin:0 0 12px;border-bottom:1px solid #e7edf3;padding-bottom:10px}
.in-package-dialog>footer:has(.in-waybill-footer-note){align-items:center;justify-content:space-between;flex-wrap:wrap}
@media(max-width:800px){
 .in-dialog.in-drawer{width:100vw;height:100dvh;max-height:100dvh;border-radius:0}
 .in-package-tabs{top:-16px;margin-left:-16px;margin-right:-16px;padding:0 16px;gap:18px;overflow-x:auto}
 .in-package-tabs>button{font-size:12px}
 .in-dialog.in-package-dialog:not(.in-drawer){width:100%;height:calc(100dvh - 20px);max-height:calc(100dvh - 20px)}
 .in-package-waybill{height:calc(100dvh - 260px);min-height:180px}
 .in-package-dialog>footer:has(.in-waybill-footer-note) .in-actions{width:100%;flex-wrap:wrap;justify-content:flex-end}
}
@media(prefers-reduced-motion:reduce){.in-drawer,.in-package-tabs>button{transition:none}}
@media(max-width:480px){
 .in-package-tabs:has(#in-package-tab-batch){gap:10px}
 .in-package-tabs:has(#in-package-tab-batch)>button{font-size:11px;gap:4px}
 .in-package-tabs:has(#in-package-tab-batch)>button svg{width:14px;height:14px}
}
/* Let the canvas use the exact remaining space above the fixed footer. */
.in-package-dialog>.in-dialog-body:has(.in-package-waybill){display:flex;flex-direction:column;overflow:hidden}
.in-package-dialog>.in-dialog-body:has(.in-package-waybill)>.in-modal-subhead,
.in-package-dialog>.in-dialog-body:has(.in-package-waybill)>.in-package-tabs{flex:none}
.in-package-dialog .in-package-waybill{flex:1;min-height:0;height:auto}
@media(max-height:500px){
 .in-package-dialog>.in-dialog-body:has(.in-package-waybill){display:block;overflow:auto}
 .in-package-dialog .in-package-waybill{height:400px;min-height:400px;flex:none}
 .in-package-waybill .in-waybill-directory{display:none}
 .in-package-waybill .in-waybill-viewer.has-directory{grid-template-columns:minmax(0,1fr)}
 .in-package-waybill .in-waybill-mobile-picker:not(:empty){display:block;padding:8px 14px;border-bottom:1px solid #e5ebf1}
 .in-package-waybill .in-waybill-mobile-picker select{width:100%;min-height:34px}
}

/* Every inbound task opened from a menu stays in a full-height second-level drawer. */
.in-dialog.in-drawer.in-editor-dialog{width:min(1120px,calc(100vw - 72px));max-height:100dvh}
.in-result-dialog>.in-dialog-body{background:#f6f8fb}
.in-result-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:0 0 16px;flex-wrap:wrap}
.in-result-dialog>footer{justify-content:space-between;align-items:center;gap:12px}
.in-purchase-dialog>.in-dialog-body:has(.in-quote-page)>.in-entry-page{display:flex;flex-direction:column;flex:1;min-height:0;width:100%}
.in-purchase-dialog .in-purchase-page .in-quote-page{height:auto;flex:1;min-height:0}
@media(max-width:800px){
 .in-dialog.in-drawer.in-editor-dialog{width:100vw;max-height:100dvh}
 .in-result-dialog>footer>.in-actions{width:100%;justify-content:flex-end;flex-wrap:wrap}
 .in-purchase-dialog>.in-dialog-body:has(.in-quote-page){display:block;overflow:auto}
 .in-purchase-dialog .in-purchase-page .in-quote-page{height:650px;min-height:650px}
}
@media(max-height:500px){
 .in-purchase-dialog>.in-dialog-body:has(.in-quote-page){display:block;overflow:auto}
 .in-purchase-dialog .in-purchase-page .in-quote-page{height:500px;min-height:500px}
}

/* Receipt sources are a peer tab in the drawer, without a navigation-only modal. */
.in-receipt-tabs{margin-top:-6px}
.in-receipt-source-context{margin:0 0 18px;padding:0 0 8px;border-bottom:1px solid #dce6ef}
.in-receipt-source-context .in-detail-list{margin:0}
