:root{font-family:"Microsoft YaHei",Arial,sans-serif;color:#334c66;font-size:13px;background:#f1f5f8;--blue:#6e9bd0;--line:#dbe4ed}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:2px solid #226dc1;outline-offset:2px}header{height:57px;background:#fff;display:flex;align-items:center;border-bottom:1px solid var(--line);padding:0 24px 0 0;gap:22px}.logo{width:174px;align-self:stretch;background:#29465f;color:white;display:flex;align-items:center;justify-content:center;font-size:20px;letter-spacing:3px}.brand{font-size:20px;font-weight:700;color:#62a9db}.tag{font-size:11px;padding:4px 8px;border-radius:4px;background:#edf6ff;color:#537ca5}.header-right{margin-left:auto;display:flex;align-items:center;gap:18px;color:#7893b0}.avatar{background:#e4effc;border-radius:50%;padding:9px;color:#4c84bb}aside{position:fixed;top:57px;bottom:0;width:174px;background:#e1edfc;border-right:1px solid #cddcf0}summary{list-style:none;cursor:pointer;padding:15px 14px;border-bottom:1px solid #c5d7eb;color:#315a85}summary:after{content:'⌄';float:right}details[open] summary:after{content:'⌃'}.nav-icon{color:#5e99cc;margin-right:10px;font-size:17px}.nav-item{border:0;width:100%;background:#fff;text-align:left;padding:13px 14px 13px 38px;color:#54728e;line-height:1.5}.nav-item.active{background:#fff6aa;color:#294b70}.nav-item:hover{background:#f6f9fd}.sidebar-bottom{position:absolute;bottom:22px;width:100%;text-align:center;color:#8197b0;font-size:11px;line-height:2}.workspace{margin-left:174px}.tabs{height:37px;background:#8bafda;display:flex;align-items:stretch;gap:1px;overflow:auto}.tab{border:0;background:transparent;color:white;padding:0 16px;white-space:nowrap}.tab.active{background:white;color:#344c64}.tab .close{margin-left:15px;color:#9aaabb}main{padding:20px;min-height:calc(100vh - 126px)}.notice{background:#f8fbff;border:1px solid #dce7f3;color:#7890aa;padding:9px 12px;margin-bottom:18px;font-size:12px;display:flex;align-items:center;justify-content:space-between}.page-title{display:flex;align-items:center;justify-content:space-between;margin:0 0 18px}h1{font-size:21px;font-weight:500;margin:0 0 7px}p{margin:0;color:#8a9aae}h2{font-size:14px;font-weight:500;margin:0}.dashboard-top{display:grid;grid-template-columns:1fr 1.5fr;gap:20px;margin-bottom:20px}.card{background:white;border:1px solid var(--line);border-radius:3px}.card-head{height:53px;padding:0 18px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #e7edf3;color:#4d8bbb}.card-head small{margin-left:auto;color:#9aaabb}.shortcuts{display:grid;grid-template-columns:repeat(4,1fr);padding:17px 10px;gap:10px}.shortcut{background:none;border:0;color:#5c83a7;line-height:2}.shortcut i{display:block;font-style:normal;font-size:23px;color:#79b7df}.metrics{display:flex;justify-content:space-around;align-items:center;min-height:150px;gap:6px;padding:15px}.metric{text-align:center;color:#7a8c9b;font-size:12px}.ring{border:3px solid var(--c);width:65px;height:65px;border-radius:100%;display:grid;place-items:center;font-size:23px;color:#506278;margin:0 auto 12px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.chart{height:238px;padding:22px 25px}.bars{height:175px;border-left:1px solid #e0e7ef;border-bottom:1px solid #e0e7ef;display:flex;align-items:end;gap:11%;padding:0 7%;background:repeating-linear-gradient(to top,transparent 0,transparent 42px,#f0f4f8 43px,#f0f4f8 44px)}.bar{background:#87b9e6;flex:1;min-width:18px;position:relative;border-radius:3px 3px 0 0}.bar span{position:absolute;bottom:-23px;white-space:nowrap;left:50%;transform:translateX(-50%);font-size:11px;color:#8b9cae}.bar b{position:absolute;top:-23px;font-weight:400;width:100%;text-align:center;color:#6d8ca7}.donut-wrap{display:flex;align-items:center;justify-content:center;height:100%;gap:35px}.donut{height:153px;width:153px;border-radius:50%;background:conic-gradient(#83b9e5 0 42%,#9ad3bd 42% 70%,#f2cf85 70% 88%,#b7a9df 88%);display:grid;place-items:center}.donut:before{content:'客源分布';width:105px;height:105px;background:#fff;border-radius:50%;display:grid;place-items:center;color:#8597a8}.legend{line-height:2.5;color:#8190a1}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--c);margin-right:10px}.list-row{display:flex;align-items:center;padding:15px 18px;border-bottom:1px solid #eef2f6;gap:10px}.list-row small{margin-left:auto;color:#9aa9b8}.badge{border-radius:3px;background:#edf5ff;color:#5f91c2;padding:4px 8px;font-size:11px}.badge.green{background:#eaf7f0;color:#50a180}.badge.orange{background:#fff4e4;color:#c49447}.filter{display:flex;gap:10px;flex-wrap:wrap;align-items:center;padding:17px;background:white;border:1px solid var(--line);margin-bottom:15px}.filter input,.filter select{height:33px;max-width:180px}input,select,textarea{border:1px solid #cfdce8;padding:7px 9px;border-radius:3px;color:#506780;background:white}input:focus,select:focus,textarea:focus{outline:1px solid #83b1e0}.btn{background:white;border:1px solid #cddceb;border-radius:3px;color:#6083a6;padding:8px 14px}.btn.primary{background:#77a5d9;border-color:#77a5d9;color:#fff}.btn.green{background:#76b79c;border-color:#76b79c;color:white}.toolbar{display:flex;align-items:center;justify-content:space-between;padding:15px 17px;background:white;border:1px solid var(--line);border-bottom:0}.table-wrap{overflow:auto;background:white;border:1px solid var(--line)}table{border-collapse:collapse;width:100%;white-space:nowrap;text-align:left}th{background:#edf3fa;color:#5e7e9d;font-weight:400;padding:13px 12px;border-bottom:1px solid #dce7f1}td{padding:15px 12px;border-bottom:1px solid #edf1f5;color:#61758b}tbody tr:hover{background:#f8fbff}.link{border:0;background:none;color:#5b91c4;padding:3px 7px}.empty{text-align:center;padding:70px;color:#9aabba}.table-foot{padding:16px;background:white;color:#8c9bad;display:flex;justify-content:space-between;border:1px solid var(--line);border-top:0}footer{padding:10px;text-align:center;color:#96a7b7;font-size:11px}dialog{width:650px;max-width:94vw;border:1px solid #d3e0ec;padding:0;border-radius:5px;box-shadow:0 15px 80px #213d5c33;color:#4c6680}dialog::backdrop{background:#21364c55}.dialog-head{display:flex;justify-content:space-between;align-items:center;background:#edf4fb;padding:17px 22px;font-size:16px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding:25px}label{display:flex;flex-direction:column;gap:8px;color:#6f8499}label.wide{grid-column:1/-1}.dialog-foot{padding:15px 22px;background:#f7f9fc;text-align:right;border-top:1px solid #e2eaf3;display:flex;gap:10px;justify-content:flex-end}textarea{min-height:75px;resize:vertical}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:#365574;color:white;border-radius:5px;padding:12px 25px;display:none;z-index:5}.subtabs{display:flex;gap:16px;padding:12px 18px;border-bottom:1px solid #edf1f5}.subtabs button{border:0;background:none;color:#6e8eac}.subtabs button.active{color:#3c83c4;border-bottom:2px solid #77a5d9;padding-bottom:7px}.task{cursor:pointer}.task.done{text-decoration:line-through;opacity:.5}.chart svg{width:100%;height:100%}.setting{max-width:720px;padding:24px;line-height:2}.mobile-menu{display:none}@media(min-width:1450px){main{padding:25px 32px}.chart{height:270px}.bars{height:200px}}@media(max-width:900px){.brand{font-size:15px}.header-right{gap:7px}.header-right .extra{display:none}.dashboard-top,.grid{grid-template-columns:1fr}aside{width:150px}.workspace{margin-left:150px}.logo{width:150px}.tag{display:none}.metrics{min-height:130px}.ring{width:55px;height:55px}.filter{gap:7px}}@media(max-width:600px){aside{width:110px}summary{padding:12px 8px;font-size:12px}.nav-icon{display:none}.nav-item{padding:10px}.workspace{margin-left:110px}.logo{width:110px;font-size:16px}header{gap:10px;padding-right:10px}.brand{font-size:13px}.header-right{display:none}main{padding:10px}.metrics{flex-wrap:wrap}.metric{width:30%}.notice{font-size:10px}.fields{grid-template-columns:1fr}.fields label{grid-column:1}.page-title p{font-size:11px}.shortcuts{grid-template-columns:repeat(2,1fr)}}
.spaced{margin-top:22px}.loading{padding:60px;text-align:center;color:#839bb2}.wide{grid-column:1/-1}.wide-card{grid-column:1/-1}.form-error{color:#bd4852;font-size:13px;white-space:pre-wrap;line-height:1.7}.hint{font-size:12px;padding:12px 18px;color:#8295a7;line-height:1.7}.wrap-cell{white-space:normal;word-break:break-word;max-width:400px}.btn:disabled{opacity:.45;cursor:not-allowed}dialog.large{width:1120px;max-width:95vw}dialog{max-height:92vh;overflow:auto}dialog .editor-scroll{max-height:64vh;overflow:auto}.detail-section{margin:0 22px 20px;border:1px solid #dbe5ef;border-radius:3px}.detail-section .card-head{background:#f5f9fe}.detail-section .table-wrap{border:0}.detail-section input{min-width:100px;width:100%;padding:7px}.detail-section th{font-size:12px}.detail-section td{padding:7px 10px}.detail-section .card-head button{margin-left:auto}.record-summary{padding:24px}.record-summary h1{display:inline-block;margin-right:16px}.record-summary p{margin-top:12px}.summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:23px}.summary-grid small,.read-note small{display:block;color:#8c9daf;margin-bottom:8px}.summary-grid strong{font-weight:400;white-space:pre-wrap;overflow-wrap:anywhere}.read-note p{color:#506780;line-height:1.7;white-space:pre-wrap}.upload{margin-left:auto;color:#548abc;cursor:pointer;display:block;position:relative}.upload input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.setting label{margin-bottom:17px}#recordError{padding:0 25px 20px}.login-shell{min-height:100vh;display:grid;grid-template-columns:1.15fr 1fr;background:white}.login-story{background:linear-gradient(145deg,#1f4465,#5c91b9);padding:10vh 10%;color:white;position:relative;overflow:hidden}.login-story:after{content:'';width:500px;height:500px;border:1px solid #ffffff1a;border-radius:50%;position:absolute;bottom:-230px;right:-170px;box-shadow:0 0 0 70px #ffffff05,0 0 0 140px #ffffff04}.login-mark{font-size:23px;letter-spacing:4px}.login-story h1{font-size:38px;line-height:1.65;margin:80px 0 22px;letter-spacing:3px;color:white}.login-story p{color:#c1d7e9;font-size:15px;line-height:2}.login-story small{color:#b6cfe2}.login-line{height:2px;width:60px;background:#8ab6d7;margin:50px 0 30px}.login-panel{width:400px;max-width:85%;margin:auto;padding:45px 0}.login-panel h1{font-size:27px;margin-bottom:14px}.login-panel>p{font-size:13px;line-height:1.8;margin-bottom:32px}.login-panel>small{color:#9aa9b8;line-height:1.9;display:block;margin-top:24px}.login-form{display:grid;gap:20px}.login-form input{height:44px;background:#fafcfe}.login-form .btn{height:44px;font-size:15px}a{color:#538abe}dialog .dialog-head{position:sticky;top:0;z-index:1}.fields input,.fields select{width:100%}@media(max-width:850px){.login-shell{grid-template-columns:1fr}.login-story{display:none}.summary-grid{grid-template-columns:1fr 1fr}.detail-section{margin:0 10px 15px}.brand{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-right{font-size:11px}.fields{padding:18px}.summary-grid{gap:16px}}@media(max-width:600px){.summary-grid{grid-template-columns:1fr}.header-right{display:flex}.header-right span{display:none}.login-panel{max-width:90%}.page-title{align-items:flex-start;gap:10px}.page-title p{line-height:1.7}main{overflow:hidden}}

/* Closable workspace tabs; preserve sidebar expansion while navigating. */
.tab{display:flex;align-items:stretch;padding:0;flex-shrink:0}.tab-label{border:0;background:transparent;color:inherit;padding:0 14px;white-space:nowrap}.tab-close{border:0;background:transparent;color:inherit;width:28px;font-size:18px;opacity:.8}.tab-close:hover{background:#dce8f4;color:#29465f;opacity:1}.tabs{min-height:37px}.brand{font-size:18px}aside{overflow-y:auto}.sidebar-bottom{position:static;margin:24px 0}.login-mark{font-size:20px;letter-spacing:1px}

.permission-table{margin:0 20px 20px}.permission-table td{padding:10px}.permission-table input[type=checkbox]{width:18px;height:18px;accent-color:#477fb6}.permission-table th{white-space:nowrap}.permission-table select{min-width:80px}

.order-totals{flex-wrap:wrap;gap:12px}.order-checks{list-style:none;padding:12px 18px;margin:0}.order-checks li{display:flex;align-items:center;gap:12px;padding:8px 0;flex-wrap:wrap}.order-workspace .summary-grid{padding:16px}.pending-actions{padding:18px;border-top:1px solid var(--line);background:#fafbfd}.pending-actions p{line-height:1.8;margin:12px 0}.pending-actions>div{display:flex;gap:14px;align-items:center;margin:10px 0}.pending-actions button{min-width:180px;opacity:.65;cursor:not-allowed}.pending-actions span{color:#768797;font-size:12px}

/* Complete administrator navigation */
aside{width:232px}.workspace{margin-left:232px}.logo{width:232px;flex-shrink:0}.nav-tools{padding:12px;background:#e1edfc;position:sticky;top:0;z-index:1;border-bottom:1px solid #c5d7eb}.nav-tools input{width:100%;min-width:0}.nav-tools>div{display:flex;gap:10px;margin:9px 0}.nav-tools button{border:0;background:transparent;color:#315a85;padding:3px}.nav-tools small{font-size:11px;color:#6c8197}#navGroups summary{padding:12px 14px;font-weight:600}#navGroups summary small{font-weight:400;margin-left:8px;color:#8094a8}.nav-item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 14px 10px 25px}.nav-item span{text-align:left;overflow-wrap:anywhere}.nav-item small{flex-shrink:0;font-size:10px;color:#947544;background:#fcf3df;border-radius:3px;padding:2px 4px}.nav-empty{padding:20px 12px}.pending-module{padding:28px;max-width:840px}.pending-module h2{font-size:18px;margin:18px 0}.pending-module p{line-height:1.9;margin:10px 0;color:#718397}@media(max-width:600px){aside{width:165px}.workspace{margin-left:165px}.logo{width:165px}.nav-item{padding-left:12px}.nav-tools{padding:8px}.brand{font-size:12px}}

.login-brand-logo{display:block;width:150px;height:auto;object-fit:contain;background:#fff;border-radius:12px;padding:8px;margin-bottom:22px}.header-brand-logo{width:49px;height:49px;object-fit:contain;background:#fff;border-radius:6px;padding:2px}.logo{gap:12px}.logo span{font-size:18px;letter-spacing:2px}@media(max-width:600px){.header-brand-logo{width:40px;height:40px}.logo{gap:7px}.logo span{font-size:15px}.login-brand-logo{width:110px}}

.login-brand-logo,.header-brand-logo{background:transparent;border:0;border-radius:0;padding:0;box-shadow:none}

/* Refined navigation layout and proportional brand header. */
:root{--nav-width:248px;--header-height:88px}
header{height:var(--header-height);gap:24px;padding-right:28px;box-shadow:0 1px 8px #213d5c08;position:relative;z-index:2}
.logo{width:var(--nav-width);height:var(--header-height);background:#243e55;justify-content:center;border-bottom:1px solid #ffffff12}
.header-brand-logo{width:80px;height:76px;object-fit:contain;display:block}
.brand{font-size:20px;letter-spacing:1px;color:#294e6b;font-weight:600}
.tag{background:#f2f5f8;color:#7b8d9d;border:1px solid #e4eaf0;padding:5px 9px}
.header-right{font-size:12px;gap:14px;color:#6c8194}
aside{top:var(--header-height);width:var(--nav-width);background:#f7f9fc;border-right:1px solid #e1e7ee;display:flex;flex-direction:column;overflow:hidden}
.workspace{margin-left:var(--nav-width)}
.nav-tools{position:static;flex-shrink:0;padding:16px 14px 12px;background:#f7f9fc;border-bottom:1px solid #e4eaf1}
.nav-tools input{height:36px;background:#fff;border:1px solid #dce4ed;border-radius:7px;font-size:12px;padding:8px 11px}
.nav-tools>div{gap:8px;margin:10px 0}
.nav-tools button{flex:1;background:white;border:1px solid #e0e7ef;border-radius:5px;font-size:11px;padding:6px;color:#698197}
.nav-tools button:hover{border-color:#9eb8d2;background:#edf4fb}
.nav-tools>small{display:block;color:#8898a8;font-size:10px;letter-spacing:.4px}
#navGroups{flex:1;min-height:0;overflow-y:auto;padding:8px 9px 16px;scrollbar-width:thin;scrollbar-color:#c4d0dc transparent}
#navGroups details{margin-bottom:3px;border-radius:7px;overflow:hidden}
#navGroups summary{min-height:43px;padding:11px 10px;display:flex;align-items:center;gap:9px;border:0;color:#435d73;font-size:13px;font-weight:500;border-radius:7px;line-height:21px}
#navGroups summary:hover{background:#eaf0f7}
#navGroups summary::before{content:'';width:6px;height:6px;border:1.5px solid #8ca1b5;border-radius:2px;flex-shrink:0}
#navGroups summary small{margin-left:auto;font-size:10px;color:#91a0af;font-weight:400;background:#eaf0f5;border-radius:4px;padding:0 5px;line-height:18px}
#navGroups summary::after{content:'›';float:none;font-size:17px;color:#8ca0b2;line-height:18px;transition:transform .15s}
#navGroups details[open]>summary{background:#e5eef7;color:#2f638f;font-weight:600}
#navGroups details[open]>summary::after{transform:rotate(90deg)}
#navGroups details[open]>summary::before{border-color:#6e9bc2;background:#6e9bc2}
#navGroups .nav-item{width:calc(100% - 12px);margin:3px 0 3px 12px;border-radius:5px;background:transparent;padding:9px 9px 9px 16px;min-height:38px;border-left:2px solid transparent;font-size:12px;line-height:20px;color:#667c90}
#navGroups .nav-item:hover{background:#edf2f8;color:#315f84}
#navGroups .nav-item.active{background:#dcecf9;border-left-color:#4f91c4;color:#235e8b;font-weight:600}
#navGroups .nav-item small{font-size:9px;padding:0 4px;background:#f2eee6;color:#a28d6a;font-weight:400;white-space:nowrap}
.sidebar-bottom{flex-shrink:0;position:static;width:auto;margin:0;padding:11px 8px;background:#f2f5f9;border-top:1px solid #e3e9f0;font-size:10px;line-height:1.8;color:#96a5b3}
.tabs{height:42px;min-height:42px;background:#e7eef5;border-bottom:1px solid #dce5ed;padding:5px 12px 0;gap:4px}
.tab{color:#73879a;border-radius:6px 6px 0 0;font-size:12px}.tab.active{color:#386b93;background:#fff}.tab-label{padding:0 14px}.tab-close{width:25px}
main{min-height:calc(100vh - 162px)}
@media(max-width:900px){:root{--nav-width:216px;--header-height:80px}.header-brand-logo{width:72px;height:68px}.brand{font-size:16px}header{gap:16px;padding-right:16px}}
@media(max-width:600px){:root{--nav-width:170px;--header-height:72px}.header-brand-logo{width:64px;height:60px}.brand{font-size:13px;letter-spacing:0}.nav-tools{padding:10px 8px}.nav-tools>small{font-size:9px}#navGroups{padding:6px}#navGroups summary{font-size:12px;padding:9px 7px;gap:5px}#navGroups .nav-item{padding:7px 5px 7px 9px;margin-left:7px;width:calc(100% - 7px);font-size:11px}.sidebar-bottom{font-size:9px}header{gap:10px;padding-right:8px}}

.menu-icon{width:17px;height:17px;flex-shrink:0;color:#7793ac}#navGroups summary::before{display:none}#navGroups .nav-item{gap:8px}#navGroups .nav-item>span{flex:1}#navGroups .nav-item .menu-icon{width:15px;height:15px}.nav-item.active .menu-icon{color:#347cae}.data-center{padding:28px;background:radial-gradient(ellipse at top right,#173f60,#0d2033 65%);color:#e3eff9;border-radius:12px;min-height:650px}.data-center:fullscreen{overflow:auto;border-radius:0;padding:40px}.center-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}.center-head h1{font-size:28px;color:#e5c88a;margin:8px 0}.center-head small{font-size:10px;letter-spacing:2px;color:#82a8c7}.center-head p{color:#87a0b6;font-size:12px}.center-head .btn{background:#ffffff0a;border-color:#ffffff25;color:#bed6ea}.center-metrics{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}.center-metrics article{padding:22px 18px;background:#ffffff06;border:1px solid #5e94bf35;border-radius:8px}.center-metrics span{display:block;color:#8eacc2;font-size:12px}.center-metrics strong{display:block;font-size:34px;font-weight:500;margin-top:15px;color:#91c9ed}.center-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:24px}.center-grid>section{padding:22px;background:#ffffff04;border:1px solid #5e94bf30;border-radius:8px}.center-grid h2{font-size:16px;margin-bottom:24px;color:#d7e6f1}.center-grid h2 small{float:right;color:#849fb5;font-size:12px}.center-bar{display:flex;align-items:center;gap:14px;margin:22px 0;font-size:12px}.center-bar>span{width:90px;color:#9cb4c6}.center-bar>div{flex:1;background:#ffffff0a;height:8px;border-radius:4px;overflow:hidden}.center-bar i{display:block;height:100%;background:linear-gradient(90deg,#397fae,#8cc6d6)}.center-bar b{min-width:24px;text-align:right;font-weight:400}.center-recent{display:flex;align-items:center;gap:10px;padding:14px 0;border-bottom:1px solid #ffffff12;font-size:12px}.center-recent>span:first-child{flex:1;overflow-wrap:anywhere}.center-recent small{color:#7f9cb4}.center-note{font-size:11px;line-height:1.9;color:#7f9cb4;margin-top:24px}.center-empty{padding:50px 0;text-align:center;color:#7e9bb3}@media(max-width:1000px){.center-metrics{grid-template-columns:repeat(3,1fr)}.center-grid{grid-template-columns:1fr}.center-head{align-items:flex-start;flex-direction:column}}

.order-advanced{width:100%;border-top:1px solid #e4ebf2;margin-top:6px;padding-top:4px}.order-advanced summary{display:block;border:0;padding:10px 0;font-size:12px;color:#547c9c}.order-advanced>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;padding:8px 0}.order-advanced label{font-size:12px;gap:6px}.order-advanced input{max-width:none;width:100%}.order-advanced p{font-size:11px;line-height:1.8;padding:8px 0}

.order-grid{min-width:1500px}.order-grid td{max-width:260px;white-space:normal;overflow-wrap:anywhere}.order-grid th{white-space:nowrap}.evidence-notice{margin-top:16px;padding:18px}.evidence-notice p{line-height:1.8;color:#64748b}.filter>label{display:flex;gap:8px;align-items:center;font-size:12px}

.menu-evidence{padding:18px;margin-bottom:18px}.menu-reference{padding:18px;margin-top:18px}.menu-reference summary{cursor:pointer;font-weight:600}.schema-chips{display:flex;flex-wrap:wrap;gap:8px}.schema-chips span{background:#f1f5f9;padding:6px 10px;border-radius:6px;color:#475569}.menu-draft-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.menu-draft-grid label{display:flex;flex-direction:column;gap:6px}.menu-draft-grid input,.menu-draft-grid select,.menu-draft-grid textarea{width:100%;padding:9px;border:1px solid #cbd5e1;border-radius:6px;box-sizing:border-box}.menu-draft-warning{background:#fff7ed;color:#92400e;padding:12px;border-radius:8px}.menu-pagination{padding:14px}.required{color:#b91c1c}@media(max-width:650px){.menu-draft-grid{grid-template-columns:1fr}}
#menuDraftEditor{padding:0 24px 24px}.menu-draft-warning{margin:16px 24px}.menu-draft-grid .required{display:inline}.menu-reference .table-wrap{max-width:100%;overflow:auto}.menu-reference th{white-space:nowrap}
#menuDraftEditor .menu-draft-grid label{display:block}#menuDraftEditor .menu-draft-grid input,#menuDraftEditor .menu-draft-grid select,#menuDraftEditor .menu-draft-grid textarea{display:block;margin-top:6px}

.hall-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px}.hall-header h2{margin:10px 0;font-size:21px}.hall-header p,.hall-notice{color:#64748b;line-height:1.7}.hall-notice{padding:10px 4px}.hall-dialog{padding:22px}.hall-form{display:grid;gap:15px}.hall-form label{display:grid;gap:6px}.hall-form input{padding:10px;border:1px solid #cbd5e1;border-radius:7px}.hall-header a{text-decoration:none;display:inline-block}.hall-header>div:last-child{display:flex;gap:10px;flex-wrap:wrap;min-width:210px}@media(max-width:800px){.hall-header{display:block}.hall-header>div:last-child{margin-top:15px}}

#ctripFilter{display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding:16px}#ctripFilter label{flex:1;min-width:250px}#ctripFilter input{width:190px}#ctripFilter>select{width:150px}.hall-table th:last-child,.hall-table td:last-child{position:sticky;right:0;background:#f8fafc;box-shadow:-2px 0 3px #e2e8f0}.hall-table th:last-child{background:#eaf2fb}
.dc-screen{background:radial-gradient(ellipse at 48% 30%,#0b253d 0%,#050d1b 55%,#030916 100%);color:#c6d9ef;padding:16px;min-height:calc(100vh - 160px);font-family:'Microsoft YaHei',sans-serif;border:1px solid #164772;box-shadow:inset 0 0 40px #071e37}.dc-screen:fullscreen{overflow:auto;padding:24px}.dc-header{display:flex;align-items:center;justify-content:space-between;border-top:2px solid #2877c4;border-bottom:1px solid #17466b;min-height:65px;gap:12px}.dc-header h1{margin:0;padding:12px 36px;color:#e0f5ff;font-size:25px;letter-spacing:4px;text-shadow:0 0 20px #209cff;background:linear-gradient(110deg,transparent,#163c72 25%,#163c72 75%,transparent);border-bottom:2px solid #339aff}.dc-live{font-size:11px;color:#739bb7}.dc-live i{display:inline-block;background:#28e3bd;width:6px;height:6px;border-radius:50%;margin-right:6px;box-shadow:0 0 8px #28e3bd}.dc-header button{background:#102941;color:#b8d9f5;border:1px solid #285b83;padding:6px 10px;margin-left:6px;border-radius:3px;cursor:pointer}.dc-toolbar{display:flex;gap:18px;align-items:center;padding:16px 0;font-size:12px;color:#82a8c8}.dc-toolbar>span{flex:1;color:#c4e2f7}.dc-toolbar small{font-size:9px;color:#527a9f}.dc-toolbar select{background:#0d2339;color:#89dbff;border:1px solid #23557b;padding:4px 8px;margin-left:8px}.dc-toolbar time{font-size:10px}.dc-layout{display:grid;grid-template-columns:minmax(220px,1fr) minmax(280px,1.4fr) minmax(250px,1.1fr);gap:13px}.dc-col{display:flex;flex-direction:column;gap:13px;min-width:0}.dc-panel{position:relative;background:linear-gradient(130deg,#091a2ccc,#071222aa);border:1px solid #16466a;padding:15px;min-width:0;box-shadow:inset 0 0 18px #0d36552b}.dc-panel:before,.dc-panel:after{position:absolute;content:'';width:18px;height:12px;pointer-events:none}.dc-panel:before{left:-1px;top:-1px;border-left:2px solid #4fbaff;border-top:2px solid #4fbaff}.dc-panel:after{right:-1px;bottom:-1px;border-right:2px solid #14dce0;border-bottom:2px solid #14dce0}.dc-panel h2{font-size:14px;color:#20d9e4;letter-spacing:1px;margin:0 0 18px;display:flex;justify-content:space-between;align-items:center;gap:8px}.dc-panel h2 small{font-size:9px;color:#638bad;font-weight:400;letter-spacing:0}.dc-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.dc-kpis article{position:relative;background:linear-gradient(140deg,#123654,#102035);border-top:2px solid #1d8fd0;padding:18px 12px;overflow:hidden}.dc-kpis span{color:#3bd8e2;font-size:11px}.dc-kpis strong{display:block;color:#e5f6ff;font-size:27px;margin-top:14px;font-variant-numeric:tabular-nums;letter-spacing:1px}.dc-kpis i{display:block;width:30px;height:2px;background:#249bd5;margin-top:14px}.dc-rank{margin:0 0 15px}.dc-rank>div{display:flex;justify-content:space-between;gap:9px;font-size:10px;margin-bottom:6px}.dc-rank span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dc-rank em{color:#3f9cfa;font-style:normal;margin-right:5px}.dc-rank b{white-space:nowrap;font-weight:400;color:#d5edff}.dc-rank small{font-size:8px;color:#648aaa;margin-left:3px}.dc-rank>i{display:block;height:4px;background:linear-gradient(90deg,#1258eb,#18c2f7);box-shadow:0 0 7px #0d8dff50}.dc-empty{display:flex;min-height:145px;align-items:center;justify-content:center;flex-direction:column;color:#6485a5;font-size:12px;background:repeating-linear-gradient(0deg,transparent,transparent 35px,#22476825 36px)}.dc-empty span{font-size:10px;margin-top:10px;color:#416584}.dc-ring-wrap{display:flex;flex-direction:column;align-items:center;gap:20px;padding:10px 0}.dc-ring{width:165px;height:165px;border-radius:50%;background:var(--ring);padding:19px;box-shadow:0 0 0 6px #102c46,0 0 0 7px #246393,0 0 28px #007dce20;transform:rotate(-25deg)}.dc-ring>div{height:100%;background:#081526;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;transform:rotate(25deg)}.dc-ring strong{font-size:32px;color:#a5d8ff;font-weight:500}.dc-ring span{font-size:11px;color:#6d96b5}.dc-legend{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:10px;justify-content:center}.dc-legend span{color:#8eabc6}.dc-legend i{display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:5px}.dc-legend b{font-weight:400;margin-left:5px;color:#d4efff}.dc-hub{flex:1;min-height:260px;background:radial-gradient(ellipse at center,#12345166,transparent 65%)}.dc-orbit{width:240px;height:200px;margin:12px auto;position:relative;display:flex;align-items:center;justify-content:center;background:repeating-radial-gradient(ellipse at center,transparent 0px,transparent 30px,#1870ad30 31px,transparent 32px)}.dc-orbit:before,.dc-orbit:after{content:'';position:absolute;inset:22px;border:1px solid #146993;border-radius:50%;transform:rotate(-24deg) scaleY(.65)}.dc-orbit:after{inset:0;border-style:dashed;transform:rotate(24deg) scaleY(.65)}.dc-orbit-core{z-index:1;text-align:center;text-shadow:0 0 20px #168af7}.dc-orbit-core span{font-size:8px;letter-spacing:2px;color:#3c8ebe}.dc-orbit-core strong{display:block;font-size:29px;letter-spacing:6px;color:#b5ebff;margin:10px 0}.dc-orbit-core small{font-size:10px;color:#5b9fc5;letter-spacing:2px}.dc-hub-stats{display:flex;justify-content:space-around;border-top:1px solid #184463;padding:15px 0 0}.dc-hub-stats span{font-size:10px;color:#769bb9;text-align:center}.dc-hub-stats strong{display:block;font-size:22px;font-weight:400;color:#60cffa;margin-top:5px}.dc-chart-legend{display:flex;gap:15px;justify-content:flex-end;font-size:9px;color:#1e6ce9}.dc-chart-legend span:last-child{color:#00d3e9}.dc-month-chart{display:flex;height:140px;gap:5px;padding-top:15px;background:repeating-linear-gradient(0deg,transparent,transparent 29px,#25415e55 30px)}.dc-month-chart>div{flex:1;display:flex;flex-direction:column;min-width:0}.dc-month-chart>div>div{height:110px;display:flex;align-items:flex-end;justify-content:center;gap:2px}.dc-month-chart i,.dc-month-chart b{width:5px;min-height:1px;background:#1c68e6}.dc-month-chart b{background:#00cce7}.dc-month-chart span{font-size:8px;color:#658bac;text-align:center;margin-top:8px}.dc-orders{width:100%;font-size:10px;border-collapse:collapse;table-layout:fixed}.dc-orders th{background:#087ca5;color:#c2f6ff;padding:8px 5px;font-weight:400;border:0}.dc-orders th:first-child{width:43%}.dc-orders td{padding:10px 5px;border:0;border-bottom:1px solid #17334a;color:#9dbbd5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:none}.dc-orders td small{display:block;font-size:8px;color:#4c7d9f;margin-bottom:4px}.dc-orders tr:nth-child(even){background:#0c294099}.dc-orders .dc-empty{display:table-cell;height:140px;text-align:center}.dc-screen>footer{position:static;background:none;color:#50789c;border:0;font-size:9px;padding:14px 0 0;line-height:1.7}.dc-col>.dc-panel:last-child{flex:1}@media(min-width:1600px){.dc-ring{width:210px;height:210px}.dc-orbit{height:240px}.dc-rank{margin-bottom:20px}}@media(max-width:1050px){.dc-layout{grid-template-columns:1fr 1.2fr}.dc-col:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}.dc-col:last-child>.dc-panel:last-child{grid-column:1/-1}.dc-header h1{font-size:20px;padding:12px}.dc-live{display:none}.dc-toolbar time{display:none}}@media(max-width:650px){.dc-layout{display:flex;flex-direction:column}.dc-middle{order:-1}.dc-col:last-child{display:flex}.dc-header h1{font-size:16px;letter-spacing:1px}.dc-toolbar small{display:none}}
.dc-screen .dc-header{position:relative;inset:auto;width:auto;height:auto;background:linear-gradient(90deg,#071323,#0e2946,#071323);box-shadow:none;z-index:auto;padding:0 10px}.dc-screen .dc-toolbar label{display:flex;align-items:center;white-space:nowrap}.dc-screen .dc-hub-stats{padding-bottom:10px}.dc-screen:fullscreen{min-height:100vh;box-sizing:border-box}

.supplier-actions{display:flex;flex-wrap:wrap;gap:8px;min-width:230px}.supplier-actions .link{white-space:nowrap}

dialog:has(.resource-form){width:min(960px,94vw)!important;max-width:960px;border:0;border-radius:16px;padding:0;box-shadow:0 24px 90px #162e4c40;background:#f5f7fa}dialog:has(.resource-form)::backdrop{background:#14233488;backdrop-filter:blur(3px)}dialog:has(.resource-form) .dialog-head{background:#fff;padding:17px 28px;border-bottom:1px solid #e8edf2;color:#34475b;font-size:14px}dialog:has(.resource-form) #dialogBody{padding:0;overflow:hidden}.resource-form{margin:0;max-height:calc(90vh - 60px);display:flex;flex-direction:column}.resource-intro{display:flex;align-items:center;gap:18px;padding:24px 32px;background:#fff;border-bottom:1px solid #e8edf2}.resource-avatar{width:54px;height:54px;display:grid;place-items:center;background:#eaf3fa;color:#26709e;border-radius:14px;font-size:23px;font-weight:600}.resource-eyebrow{color:#8a9bae;font-size:10px;letter-spacing:1px}.resource-intro h2{font-size:22px;line-height:1.4;color:#20374e;margin:5px 0}.resource-intro p{font-size:12px;color:#8696a7;margin:0}.resource-state{margin-left:auto;background:#f0f4f8;color:#73869a;border-radius:20px;padding:6px 12px;white-space:nowrap;font-size:11px}.resource-sections{overflow-y:auto;padding:24px 30px;min-height:0}.resource-section{background:#fff;border:1px solid #e4eaf0;border-radius:10px;margin-bottom:18px;padding:22px 24px}.resource-section:last-child{margin-bottom:0}.resource-section>header{position:static;height:auto;background:none;border:0;box-shadow:none;display:flex;align-items:center;gap:12px;padding:0 0 18px;margin:0 0 18px;border-bottom:1px solid #edf1f5}.resource-section>header>span{color:#4793bc;background:#edf5fa;font-size:12px;border-radius:6px;padding:7px}.resource-section h3{margin:0;font-size:15px;color:#2d455c}.resource-section header p{margin:4px 0 0;color:#99a5b3;font-size:11px}.resource-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px 24px}.resource-field{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#506276;min-width:0}.resource-field>span{font-weight:500}.resource-field b{color:#d27d55;margin-left:5px}.resource-wide{grid-column:1/-1}.resource-field input,.resource-field select,.resource-field textarea{width:100%;box-sizing:border-box;min-height:40px;padding:10px 12px;background:#fff;border:1px solid #dae3eb;border-radius:6px;color:#2c4359;font:13px 'Microsoft YaHei',sans-serif;outline:none;transition:border-color .15s,box-shadow .15s}.resource-field input:focus,.resource-field select:focus,.resource-field textarea:focus{border-color:#4593c2;box-shadow:0 0 0 3px #438eb914}.resource-field input::placeholder,.resource-field textarea::placeholder{color:#b0bac5;font-size:12px}.resource-field :disabled{background:#f7f9fb;color:#53667a;opacity:1}.resource-field textarea{resize:vertical;min-height:88px}.resource-footer{position:static!important;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff!important;border-top:1px solid #e4eaf0;padding:17px 30px!important;flex-shrink:0}.resource-footer small{font-size:11px;color:#9aa8b6}.resource-footer>div{display:flex;gap:10px}.resource-footer button{min-width:88px;padding:9px 18px;border-radius:6px}.resource-footer .primary{background:#257aaa;box-shadow:0 3px 7px #257aaa20}@media(max-width:650px){.resource-intro{padding:18px}.resource-intro h2{font-size:18px}.resource-state{display:none}.resource-sections{padding:15px}.resource-section{padding:18px}.resource-fields{grid-template-columns:1fr}.resource-wide{grid-column:auto}.resource-footer{padding:14px!important}.resource-footer small{display:none}}

/* Supplier confirmations and import workspace */
dialog:has(.supplier-delete){width:min(540px,92vw);max-width:540px} .supplier-delete{padding:26px 28px 0}.supplier-delete-heading{display:flex;gap:16px;align-items:center}.supplier-delete-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#fff0ec;color:#bb3f2b;font-size:25px;font-weight:700;flex-shrink:0}.supplier-delete h2{font-size:20px;margin:0 0 8px;color:#23354c}.supplier-delete-heading p{margin:0;color:#77859a}.supplier-delete-card{display:flex;flex-direction:column;gap:9px;padding:20px;margin:24px 0 18px;background:#f6f8fb;border:1px solid #e3e9f0;border-radius:12px}.supplier-delete-card span,.supplier-delete-card small{color:#748298}.supplier-delete-card strong{font-size:17px;color:#203c59;overflow-wrap:anywhere}.supplier-delete-impact{color:#66758a;font-size:13px;line-height:1.8}.supplier-delete footer{border-top:1px solid #e7ecf2;margin-top:24px;padding:20px 0;display:flex;justify-content:flex-end;gap:12px}.btn.supplier-danger{background:#c34336;border-color:#c34336;color:white}.btn.supplier-danger:hover{background:#a7352b}.supplier-import{padding:24px}.supplier-import h2{margin-top:0}.supplier-import p{color:#65758b;line-height:1.7}.supplier-import-controls{display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:#f5f8fc;padding:18px;border-radius:10px}.supplier-import footer{display:flex;justify-content:flex-end;gap:12px;border-top:1px solid #e4eaf2;margin-top:20px;padding-top:16px}.supplier-import-table{max-height:360px;overflow:auto}.supplier-import-summary{padding:14px 0;font-weight:600}.supplier-error{color:#ae3429}.supplier-duplicate{padding:12px 28px;background:#fff6e8;color:#85501b}.supplier-duplicate[hidden]{display:none}.supplier-duplicate input{width:auto;display:inline-block;margin-right:8px}
/* Supplier contract files */
dialog:has(.contract-panel){width:min(740px,94vw)!important;max-width:740px;border-radius:14px;padding:0;background:#fff}dialog:has(.contract-panel) #dialogBody{padding:0}.contract-panel{padding:24px 28px 0;max-height:80vh;overflow:auto}.contract-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:22px}.contract-heading span{font-size:12px;color:#8193a5}.contract-heading h2{font-size:20px;color:#26425e;margin:7px 0 0;overflow-wrap:anywhere}.contract-count{white-space:nowrap;background:#f1f6fa;padding:8px 12px;border-radius:20px}.contract-drop{position:relative;display:flex;flex-direction:column;align-items:center;padding:24px;background:#f7fbff;border:1px dashed #a7c6dc;border-radius:12px;gap:10px}.contract-drop.drag-over{background:#e7f3fd;border-color:#2487b6}.contract-upload-symbol{display:grid;place-items:center;width:42px;height:42px;background:#e6f0f8;border-radius:12px;font-size:26px;color:#3784b0}.contract-drop strong{font-size:14px;color:#3c5873}.contract-drop p{font-size:12px;color:#8597a8;margin:0}.contract-drop label.btn{display:inline-block;cursor:pointer;font-size:12px;margin-top:4px}.contract-file-input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.contract-drop:focus-within{outline:2px solid #4c93c2;outline-offset:2px}.contract-drop.is-full{opacity:.65}.contract-selection{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:14px}.contract-selection span{font-size:12px;color:#6e8094;overflow-wrap:anywhere}.contract-selection button{flex-shrink:0}.contract-feedback{font-size:12px;color:#387d98;min-height:18px;margin:10px 0 18px}.contract-list-heading{font-weight:600;color:#344f68;font-size:14px;display:flex;gap:8px}.contract-list-heading small{font-weight:400;color:#90a0b0}.contract-files{margin-top:12px;max-height:240px;overflow:auto}.contract-file{display:flex;gap:14px;align-items:center;padding:14px 0;border-top:1px solid #edf1f5}.contract-file-type{display:grid;place-items:center;flex-shrink:0;width:44px;height:48px;border-radius:8px;background:#edf4fa;color:#3e7ca7;font-size:10px;font-weight:700}.contract-file>div{min-width:0;flex:1}.contract-file strong{display:block;overflow-wrap:anywhere;font-size:13px;color:#35506a}.contract-file small{display:block;margin-top:7px;color:#93a1af;font-size:11px}.contract-file button{flex-shrink:0}.contract-empty{display:flex;align-items:center;flex-direction:column;padding:28px 12px;background:#fafbfd;border-radius:8px;gap:8px}.contract-empty strong{font-size:13px;color:#8193a5;font-weight:400}.contract-empty span,.contract-readonly{font-size:12px;color:#96a4b1}.contract-footer{position:static;display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e8edf2;margin-top:22px;padding:16px 0;background:#fff}.contract-footer small{color:#96a4b1;font-size:11px}@media(max-width:600px){.contract-panel{padding:18px 16px 0}.contract-heading{align-items:flex-start}.contract-heading h2{font-size:17px}.contract-count{font-size:10px!important}.contract-selection{align-items:flex-start}}

.supplier-region-selects{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px}.supplier-region-selects[hidden]{display:none}.supplier-region-help{display:flex;justify-content:space-between;align-items:center;gap:12px}.supplier-region-help small{font-size:11px;color:#8b9aac}.supplier-region-help .link{font-size:11px}@media(max-width:600px){.supplier-region-selects{grid-template-columns:1fr;gap:8px}}
.goods-table{min-width:820px}.goods-table th,.goods-table td{padding:14px 16px}.goods-table td:first-child{color:#8b9aab}.goods-table tbody tr:nth-child(even){background:#f8fafc}.goods-table strong{font-weight:500;color:#2c4862}.goods-table tfoot{background:#f1f6fb;color:#36536f}.goods-table tfoot th{text-align:left}.goods-actions{display:flex;gap:18px}.goods-actions .danger{color:#bd5249}.goods-low{color:#b34635;font-weight:600}.goods-low small{display:block;font-size:10px;font-weight:400;margin-top:5px}.goods-note{font-size:12px;color:#8b9aac;padding:4px 2px}
.goods-workspace .filters{display:flex;flex-wrap:wrap;gap:10px;padding:16px;border-bottom:1px solid #e5edf4}.goods-workspace .filters input{min-width:160px}.goods-workspace .filters .btn{min-width:64px}
#resourceFilter:has(#queryProvince){display:flex;flex-wrap:wrap;gap:10px;padding:16px;border-bottom:1px solid #e4ebf2}#resourceFilter:has(#queryProvince)>input,#resourceFilter:has(#queryProvince)>select{flex:1 1 145px;min-width:130px;max-width:220px}.supplier-date-query{display:flex;flex-direction:row;align-items:center;gap:8px;color:#7c8c9e;font-size:12px}.supplier-date-query input{max-width:160px}.resource-field input[readonly]{background:#f4f7fa;color:#7a8b9c}
/* 商品档案：列内居中，普通窗口自适应宽度 */
.goods-table{width:100%;min-width:0;table-layout:fixed}
.goods-table th,.goods-table td,.goods-table tfoot th{vertical-align:middle;text-align:center;padding:13px 10px;overflow-wrap:anywhere}
.goods-table th:nth-child(1){width:7%}.goods-table th:nth-child(2){width:23%}.goods-table th:nth-child(3){width:13%}.goods-table th:nth-child(4){width:13%}.goods-table th:nth-child(5){width:15%}.goods-table th:nth-child(6){width:16%}.goods-table th:nth-child(7){width:13%}
.goods-table .goods-actions{justify-content:center;flex-wrap:wrap;gap:8px 14px}
@media(max-width:700px){.goods-table{min-width:650px}}

.transfer-notice{display:flex;gap:14px;align-items:center;padding:16px 20px;background:#f0f7ff;color:#426382;margin-bottom:18px;border:1px solid #d7e7fa;border-radius:12px}.transfer-notice strong{white-space:nowrap;color:#2466a6}.transfer-filter label{display:flex;flex-direction:column;gap:6px;color:#5e728a;font-size:12px}.transfer-filter{align-items:end}.transfer-filter input,.transfer-filter select{max-width:180px}.transfer-table{min-width:1150px}.transfer-table th,.transfer-table td{text-align:center;vertical-align:middle}.transfer-table td:nth-child(2){max-width:160px;overflow-wrap:anywhere;font-size:11px}.transfer-footer{display:flex;gap:12px;margin-top:24px;justify-content:flex-end}
.transfer-filter{display:flex;flex-wrap:wrap;gap:14px;padding:20px;align-items:flex-end}.transfer-filter label{flex:1 1 150px;min-width:140px}.transfer-filter input,.transfer-filter select{width:100%;max-width:none}.transfer-table{width:100%;table-layout:fixed}.transfer-table th:nth-child(1){width:55px}.transfer-table th:nth-child(2){width:150px}.transfer-table th:nth-child(7){width:145px}.transfer-table th:nth-child(8){width:130px}.transfer-table th:last-child{width:115px}.transfer-table td{overflow-wrap:anywhere}
.transfer-table th:nth-child(2){width:110px}.transfer-table th:nth-child(3){width:140px}.transfer-table th:nth-child(7){width:125px}.transfer-table th:nth-child(8){width:155px}.transfer-table td:nth-child(2){font-size:inherit}

dialog:has(.transfer-form){width:min(760px,94vw)!important;max-width:760px}.transfer-form .resource-intro{padding:22px 28px}.transfer-form .resource-sections{padding:20px 28px}.transfer-form .resource-section{padding:18px 22px;margin-bottom:14px}.transfer-form .resource-section>header{padding-bottom:13px;margin-bottom:16px}.transfer-form-notice{display:flex;gap:10px;align-items:center;margin:0 0 18px;padding:12px 15px;border-radius:8px;background:#eaf4ff;color:#42769a}.transfer-form-notice p{color:#42769a;font-size:12px;line-height:1.7}.transfer-amount-input{display:flex;align-items:center;gap:12px;border:1px solid #dae3eb;border-radius:8px;padding:0 16px;background:#f8fbff}.transfer-amount-input>span:first-child{font-size:25px;color:#497897}.transfer-amount-input>span:last-child{color:#899aab}.transfer-form .transfer-amount-input input{border:0;box-shadow:none;background:transparent;font-size:28px;font-weight:600;min-height:60px;min-width:0;padding:10px 0;font-variant-numeric:tabular-nums}.transfer-amount-input:focus-within{border-color:#4593c2;box-shadow:0 0 0 3px #438eb914}.transfer-amount-section small{font-size:11px;color:#91a0af;font-weight:400}.transfer-form .resource-footer{flex-wrap:wrap}.transfer-form .resource-footer>div{margin-left:auto}@media(max-width:650px){.transfer-form .resource-sections{padding:16px}.transfer-form .resource-intro{padding:18px}.transfer-form .resource-section{padding:16px}}

.withdrawal-table{width:100%;min-width:1450px;table-layout:fixed}.withdrawal-table th,.withdrawal-table td{text-align:center;vertical-align:middle;overflow-wrap:anywhere;padding:14px 10px}.withdrawal-table th:first-child{width:55px}.withdrawal-table th:nth-last-child(-n+2){width:155px}.withdrawal-empty{padding:48px 20px;display:flex;flex-direction:column;align-items:center;gap:12px}.withdrawal-empty>span{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#edf4fc;color:#7ca4c8;font-size:28px}.withdrawal-empty strong{font-weight:500;font-size:14px;color:#68819a}.withdrawal-empty p{font-size:12px}

.supplier-operation {min-width:180px;text-align:center}.supplier-operation small{display:block;color:#7890aa;max-width:260px;margin:5px auto 0;white-space:normal;line-height:1.5}

.shopping-more{flex-basis:100%;padding:12px 0}.shopping-more summary{color:#2883c5;cursor:pointer;margin-bottom:12px}.shopping-table td,.shopping-table th{text-align:center}.shopping-table{min-width:960px}

#shoppingFilter .shopping-keyword{flex:1;min-width:320px} .shopping-search-group{display:flex;align-items:stretch;width:100%} #shoppingFilter .shopping-search-group select{width:110px;min-width:110px;border-radius:5px 0 0 5px;background:#f4f8fd} #shoppingFilter .shopping-search-group input{min-width:0;flex:1;width:100%;border-left:0;border-radius:0 5px 5px 0} @media(max-width:600px){#shoppingFilter .shopping-keyword{min-width:0;width:100%;flex-basis:100%}}

.enrollment-table{min-width:1400px}.enrollment-table th,.enrollment-table td{text-align:center}

.expense-control-table{min-width:1250px}.expense-control-table th,.expense-control-table td{text-align:center}.expense-control-detail td{text-align:left;padding:20px 28px;background:#f5f9ff}.expense-control-detail[hidden]{display:none}
/* Sales order list and transfer */
.sales-orders{background:#fff;border:1px solid #e1e9f2;border-radius:12px;overflow:hidden}.sales-filter{padding:16px;margin:0;border-bottom:1px solid #e8eef5;gap:10px}.sales-filter input,.sales-filter select{height:36px}.sales-filter>input{min-width:240px}.sales-orders .toolbar{padding:12px 16px;margin:0}.sales-grid{min-width:1760px;width:100%;font-size:12px}.sales-grid th{background:#edf4fc;color:#496580;white-space:nowrap;padding:12px 10px;text-align:center}.sales-grid td{padding:12px 10px;text-align:center;border-bottom:1px solid #edf1f6;white-space:nowrap}.sales-grid tbody tr:nth-child(even){background:#f8fbff}.sales-grid tbody tr:hover{background:#edf5ff}.sales-grid .route-cell{text-align:left;width:240px;max-width:260px}.route-cell small{display:block;overflow:hidden;text-overflow:ellipsis;color:#8a9bb0;max-width:240px;margin-top:5px}.cost-mark{width:100px;border:1px solid #dce6f0;border-radius:6px;background:white;padding:6px;font-size:12px;color:#76889f}.cost-mark.checked{color:#16845b;background:#eaf8f1}.cost-mark.returned{color:#c94a55;background:#fff0f1}.trip-state{color:#8493a7}.trip-state.travel{color:#16966a}.sales-grid td:last-child,.sales-grid th:last-child{position:sticky;right:0;background:#fff;box-shadow:-4px 0 8px #233e5010}.row-actions{position:relative;display:inline-block}.row-actions summary{cursor:pointer;color:#337fbd;list-style:none;padding:5px 9px}.row-actions>div{position:fixed;z-index:100;background:#fff;border:1px solid #dee7f1;border-radius:9px;box-shadow:0 8px 28px #18395722;min-width:110px;padding:5px;transform:translateX(-45px)}.row-actions button{display:block;width:100%;background:none;border:0;text-align:left;padding:9px 12px;color:#354b65;cursor:pointer}.row-actions button:hover{background:#eef5fc}.row-actions button:disabled{color:#b6c1ce;cursor:default}.row-actions button[data-order-action=delete]:not(:disabled){color:#d45057}.transfer-panel{width:min(640px,85vw);background:#f6f9fd}.transfer-order{padding:26px;background:white}.transfer-eyebrow{font-size:12px;color:#4181b7;display:flex;justify-content:space-between}.transfer-eyebrow span{background:#edf5ff;padding:4px 10px;border-radius:20px}.transfer-order h2{font-size:19px;line-height:1.6;color:#294461;margin:16px 0 22px;font-weight:600}.transfer-metrics{display:grid;grid-template-columns:1fr 1fr;gap:16px}.transfer-metrics small{display:block;color:#8495a8;font-size:12px;margin-bottom:8px}.transfer-metrics strong{color:#294461;font-size:18px;font-weight:600}.transfer-meta{display:flex;flex-wrap:wrap;gap:8px 22px;border-top:1px solid #edf1f6;margin-top:20px;padding-top:14px;color:#8a9aab;font-size:11px}.transfer-review{padding:22px 26px}.transfer-review>label{display:block;font-size:13px;color:#425d79;margin-bottom:10px}.transfer-review select{width:100%;height:42px;border:1px solid #d6e1ed;border-radius:7px;padding:0 12px;background:white}.transfer-missing{font-size:12px;color:#8695a5;margin-top:14px}.transfer-missing span{color:#ae8847;margin-right:10px}.transfer-footer{display:flex;justify-content:space-between;align-items:center;padding:16px 26px;background:white;border-top:1px solid #e6edf5}.transfer-footer>span{font-size:12px;color:#8b9aaa}.transfer-footer .btn{padding:10px 22px;border-radius:7px}#browserTransferError{color:#c84b55;font-size:12px}.sales-orders .table-wrap{min-height:350px;max-height:65vh;overflow:auto}.sales-grid th{position:sticky;top:0;z-index:2}.sales-grid th:last-child{z-index:3}
/* Compact reference-style sales list */
.sales-orders{border-radius:2px;border-color:#bdd2ed}.sales-filter{padding:8px 10px;gap:6px;align-items:end}.sales-filter label{font-size:11px;gap:3px}.sales-filter input,.sales-filter select{height:28px;min-height:28px;padding:3px 7px;border-radius:2px;font-size:12px}.sales-filter .btn{padding:5px 12px;min-height:28px;border-radius:2px}.sales-orders .toolbar{padding:6px 10px;font-size:12px}.sales-orders .toolbar .btn{padding:4px 10px;border-radius:2px}.sales-grid{min-width:1480px;font-size:12px;border-collapse:collapse}.sales-grid th{padding:7px 6px;height:30px;background:linear-gradient(#edf5ff,#d6e7fb);border:1px solid #bcd2ef;color:#25476c;font-weight:600}.sales-grid td{padding:3px 6px;height:30px;border:1px solid #c5d7ef;color:#294764}.sales-grid tbody tr:nth-child(even){background:#f2f5f9}.sales-grid tbody tr:hover{background:#fff4d9}.sales-grid .route-cell{width:155px;max-width:185px;text-align:center}.sales-grid .route-cell small{display:none}.sales-grid .route-cell button{font-size:11px}.sales-grid td:last-child{background:#f8fbff;box-shadow:-1px 0 #bbd0ed}.sales-grid th:last-child{background:linear-gradient(#edf5ff,#d6e7fb)}.sales-grid .cost-mark{display:block;width:100%;min-width:86px;height:25px;min-height:25px;border:0;border-radius:0;background:transparent;color:#405c7b;padding:2px 6px;font-size:12px;box-shadow:none;cursor:pointer}.sales-grid .cost-mark.checked{background:#3eb370;color:white}.sales-grid .cost-mark.returned{background:#e6415a;color:white}.sales-grid .cost-mark option{background:white;color:#294764}.sales-grid .cost-mark option[value="信息已核"]{color:#208356}.sales-grid .cost-mark option[value="已退单"]{color:#d82e4a}.row-actions summary{border:0!important;border-bottom:0!important;background:transparent!important;text-decoration:none!important;padding:3px 8px!important;font-size:12px!important;font-weight:400!important;line-height:20px;color:#2f8ecf}.row-actions summary::after{content:none!important}.row-actions summary::marker{content:''}.row-actions summary::-webkit-details-marker{display:none}.row-actions>div[popover]{position:fixed;inset:auto;margin:0;transform:none;z-index:10000;min-width:100px;width:100px;padding:4px 0;background:white;border:1px solid #c6d3e3;border-radius:2px;box-shadow:0 3px 9px #15385e26;overflow:auto}.row-actions>div[popover] button{font-size:12px;padding:5px 16px;height:28px;line-height:18px;white-space:nowrap}.row-actions>div[popover] button:hover:not(:disabled){background:#eaf3ff;color:#2783c7}.sales-grid .badge{font-size:11px;padding:2px 6px;border-radius:2px}.sales-orders .table-wrap{min-height:280px;max-height:70vh}.sales-orders .table-foot{padding:8px 10px;font-size:12px}.sales-orders .table-foot .btn{padding:4px 10px;border-radius:2px}
/* Readable grid, close to the reference page */
.sales-grid{font-size:12px;min-width:1480px}.sales-grid th{font-size:12px;padding:6px 8px;color:#193b61}.sales-grid td{font-size:12px;height:34px;padding:4px 8px;color:#234a76}.sales-grid .route-cell button{font-size:11px}.sales-grid .badge{font-size:11px}.sales-grid tbody tr:hover>td{background:#efd5a6}.sales-grid .trip-state{font-size:12px}.sales-filter input,.sales-filter select,.sales-filter label{font-size:12px}.sales-filter{padding:6px 8px;align-items:center}.sales-filter label{flex-direction:row;align-items:center;gap:5px}.sales-orders .toolbar{padding:4px 8px}.sales-orders .table-wrap{max-height:calc(100vh - 290px)}.sales-orders .row-actions summary{font-size:12px!important}.row-actions>div[popover] button{font-size:12px;height:31px;padding:5px 12px}.mark-actions{width:100%;min-width:100px}.mark-actions summary.cost-label{font-size:12px!important;color:#294764!important;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:2px 5px!important}.mark-actions summary.cost-label span{color:#8094ae;font-size:12px}.mark-actions summary.cost-label.checked{color:#21815b!important}.mark-actions summary.cost-label.returned{color:#d83350!important}.mark-actions>div[popover]{width:116px}.mark-actions .mark-option.checked:hover:not(:disabled){background:#3eb370!important;color:white!important}.mark-actions .mark-option.returned:hover:not(:disabled){background:#e60033!important;color:white!important}.sales-grid .row-actions summary:focus-visible{outline:2px solid #81b3ee;outline-offset:1px}.sales-orders .table-foot{padding:6px 8px}


.sales-grid .cost-mark{background:transparent;border:0;border-radius:0;box-shadow:none;color:#294764;height:25px;min-height:25px;padding:2px 5px;font-size:12px}.sales-grid .cost-mark.checked{background:transparent;color:#21815b}.sales-grid .cost-mark.returned{background:transparent;color:#d83350}

#modal.incoming-modal{width:760px;max-width:94vw}.incoming-detail{font-size:13px;color:#35516e}.incoming-main{padding:22px 26px 20px}.incoming-topline{display:flex;justify-content:space-between;align-items:center;color:#7c91a8;font-size:12px}.incoming-topline i{font-style:normal;margin:0 5px;color:#c3d0dc}.incoming-status{color:#337eba;background:#edf5fc;padding:4px 10px;border-radius:3px}.incoming-status.cancelled{color:#cc5362;background:#fff0f2}.incoming-main h2{font-size:18px;line-height:1.65;color:#294865;margin:14px 0;font-weight:600}.incoming-numbers{display:flex;flex-wrap:wrap;gap:8px 24px;font-size:12px;color:#8a9aac}.incoming-numbers b{font-weight:400;color:#617d99;margin-left:6px}.incoming-metrics{display:grid;grid-template-columns:1fr 1fr 1fr;margin-top:23px;padding-top:20px;border-top:1px solid #eaf0f6}.incoming-metrics>div{padding-left:20px;border-left:1px solid #e8eff5}.incoming-metrics>div:first-child{padding-left:0;border:0}.incoming-metrics small{display:block;font-size:12px;color:#8a9aac;margin-bottom:8px}.incoming-metrics strong{font-size:16px;font-weight:500;color:#315779}.incoming-secondary{padding:6px 26px 16px;background:#f8fafd;border-top:1px solid #eaf0f6}.incoming-secondary summary{font-size:12px;font-weight:400;padding:13px 0;border-bottom:1px solid #e7edf4;color:#54708e}.incoming-secondary summary span{margin-left:14px;color:#91a1b2;font-size:11px}.incoming-secondary form{display:flex;gap:8px;padding:12px 0}.incoming-secondary select{flex:1;height:34px;border-radius:3px}.incoming-secondary pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;overflow:auto;background:#fff;border:1px solid #e4ebf3;padding:12px;font-size:12px;line-height:1.6}.incoming-note{color:#8b9aab;font-size:12px;padding-top:15px}.incoming-footer{display:flex;align-items:center;justify-content:space-between;padding:15px 26px!important;border-top:1px solid #e6edf4;background:white}.incoming-footer>span{font-size:11px;color:#9ba9b7}.incoming-footer .btn{border-radius:4px;padding:8px 14px}.incoming-footer>div{display:flex;gap:8px}@media(max-width:560px){.incoming-main,.incoming-secondary{padding-left:16px;padding-right:16px}.incoming-metrics strong{font-size:13px}.incoming-footer{padding:12px 16px!important}.incoming-footer>span{display:none}}

/* Query controls share rows without splitting date ranges. */
#resourceFilter{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px;border-bottom:1px solid #e3ebf4}
#resourceFilter>input,#resourceFilter>select{width:145px;min-width:0;flex:0 1 145px;height:34px;box-sizing:border-box}
#resourceFilter>input[name=q]{flex-basis:180px}
#resourceFilter .query-date-range{display:flex;align-items:center;gap:8px;flex:0 1 auto;max-width:100%}
#resourceFilter .supplier-date-query{display:flex;flex-direction:row;align-items:center;gap:6px;margin:0;white-space:nowrap;font-size:12px}
#resourceFilter .supplier-date-query input{width:145px;height:34px;min-width:0}
.query-filter-actions{display:flex;gap:8px;align-items:center;flex:none}.query-filter-actions .btn{height:34px;white-space:nowrap}
.query-date-input{position:relative;display:inline-block;min-width:0;width:100%;vertical-align:middle}.query-date-input input{box-sizing:border-box;width:100%}.query-date-hint{display:none;position:absolute;left:10px;top:50%;transform:translateY(-50%);color:#95a5b8;font-size:12px;pointer-events:none;white-space:nowrap}
.query-date-input.is-empty:not(:focus-within) .query-date-hint{display:block}.query-date-input.is-empty:not(:focus-within) input::-webkit-datetime-edit{color:transparent}.query-date-input.is-empty:not(:focus-within) input{color:transparent}.query-date-input input:focus{color:#355575}
.transfer-filter label{flex:0 1 180px;min-width:150px}.transfer-filter{gap:10px 12px}.transfer-filter .btn{white-space:nowrap}
@media(max-width:520px){#resourceFilter .query-date-range{flex-wrap:wrap;width:100%}#resourceFilter .supplier-date-query{flex:1 1 155px}#resourceFilter>input,#resourceFilter>select{flex:1 1 130px}}
.query-date-input input{padding-right:30px!important;color:#355575!important}.query-calendar-trigger{position:absolute;right:2px;top:50%;transform:translateY(-50%);height:26px;width:26px;border:0;background:transparent;color:#577c9e;cursor:pointer;padding:0}.query-calendar{display:block;z-index:10000;inset:auto;position:fixed;margin:0;padding:12px;width:280px;box-sizing:border-box;background:white;border:1px solid #cfdded;border-radius:5px;box-shadow:0 5px 18px #23456625;color:#355575;font-size:12px}.calendar-head{display:flex;gap:5px;align-items:center;margin-bottom:12px}.query-calendar button{border:0;background:transparent;color:#355575;cursor:pointer;padding:4px;font:inherit;border-radius:3px}.calendar-head button{font-size:20px;width:28px}.calendar-head select{width:84px!important;height:28px!important;min-height:28px!important;font-size:12px!important;padding:2px!important;flex:1}.calendar-week,.calendar-days{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;text-align:center}.calendar-week{color:#90a1b4;margin-bottom:6px}.calendar-days button{height:28px}.calendar-days button:hover,.query-calendar button:focus-visible{background:#e8f2ff}.calendar-days button.selected{background:#438dcd;color:white}.calendar-days button:disabled{color:#c9d1db;cursor:default}.calendar-foot{display:flex;justify-content:space-between;border-top:1px solid #edf1f6;margin-top:10px;padding-top:8px}.calendar-foot button{color:#3984c2}

/* One query template, matching shopping entry. */
form.query-template{display:block!important;padding:14px 14px 16px!important;margin:0!important;background:#fff;border-bottom:1px solid #d4e2f3;}
.query-template .query-main,.query-template .query-more-fields{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;min-width:0;}
.query-template label.query-field,.query-template label.query-keyword{display:flex!important;flex-direction:column;gap:6px;margin:0!important;font-weight:400;min-width:0;max-width:none!important;flex:0 1 180px!important;width:180px;}
.query-template label.query-keyword{flex:1 1 350px!important;width:auto;}
.query-template .query-main>label,.query-template .query-more-fields>label{font-size:12px;line-height:18px;color:#57769b;}
.query-template input,.query-template select{box-sizing:border-box;height:34px!important;min-height:34px;min-width:0!important;width:100%!important;max-width:none!important;margin:0!important;font-size:12px;}
.query-template input[hidden]{display:none!important;}
.query-template .shopping-search-group{display:flex;width:100%;gap:0;min-width:0;}
.query-template .shopping-search-group>select{flex:0 0 112px;width:112px!important;border-radius:3px 0 0 3px;}
.query-template .shopping-search-group>input{flex:1 1 0;width:0!important;border-left:0;border-radius:0 3px 3px 0;}
.query-template .query-actions{display:flex;flex:0 0 auto;align-items:center;gap:10px;height:34px;}
.query-template .query-actions .btn{height:34px;min-width:56px;margin:0;white-space:nowrap;}
.query-template .query-more{width:100%;margin-top:12px;border-top:1px solid #e1eaf5;padding-top:10px;}
.query-template .query-more>summary{cursor:pointer;color:#3973aa;line-height:20px;font-size:12px;}
.query-template .query-more[open]>.query-more-fields{padding-top:10px;}
.query-template .query-date-input{display:block;width:100%;}
@media(max-width:760px){.query-template label.query-field{flex:1 1 150px!important;width:auto;}.query-template label.query-keyword{flex-basis:100%!important;}.query-template .query-actions{margin-left:auto;}}

#resourceFilter.query-template label.query-field{flex-direction:column!important;align-items:stretch!important;gap:6px!important;}

/* Sales confirmation follows the shared list-page visual language. */
.sales-orders{border:1px solid var(--line);border-radius:3px;}
.sales-orders form.query-template{border:0;border-bottom:1px solid var(--line);}
.sales-orders .query-template label.query-field,.sales-orders .query-template label.query-keyword{align-items:stretch;text-align:left;}
.sales-orders .toolbar{padding:12px 16px;color:#61758b;border:0;border-bottom:1px solid var(--line);}
.sales-orders .toolbar .btn,.sales-orders .table-foot .btn{padding:6px 12px;border-radius:3px;}
.sales-orders .table-wrap{border:0;min-height:0;max-height:65vh;}
.sales-orders .sales-grid th{height:42px;padding:10px 12px;background:#edf3fa;border:0;border-bottom:1px solid #dce7f1;color:#5e7e9d;font-weight:400;}
.sales-orders .sales-grid td{height:42px;padding:8px 12px;border:0;border-bottom:1px solid #edf1f5;color:#61758b;}
.sales-orders .sales-grid tbody tr{background:#fff;}
.sales-orders .sales-grid tbody tr:nth-child(even){background:#f8fbff;}
.sales-orders .sales-grid tbody tr:hover>td{background:#fff4de;}
.sales-orders .sales-grid th:last-child{background:#edf3fa;box-shadow:-1px 0 #e4ecf4;}
.sales-orders .sales-grid td:last-child{background:inherit;box-shadow:-1px 0 #e4ecf4;}
.sales-orders .sales-grid .route-cell button{font-size:12px;}
.sales-orders .sales-grid .badge{padding:3px 7px;border-radius:3px;}
.sales-orders .table-foot{border:0;padding:12px 16px;}


/* Complete lists stay visible, with compact widths and ordinary horizontal scroll. */
#main .table-wrap>table.compact-list{width:100%;min-width:0!important;table-layout:auto;font-size:12px;}
#main .compact-list th,#main .compact-list td{padding:9px 7px;line-height:1.5;border-left:0;border-right:0;}
#main .compact-list th{background:#edf3fa;color:#5e7e9d;font-weight:400;white-space:nowrap;}
#main .compact-list td{border-bottom:1px solid #edf1f5;}
#main .compact-list .list-index{width:44px;min-width:38px;text-align:center;}
#main .compact-list .list-value{min-width:64px;}
#main .compact-list .list-number{white-space:nowrap;min-width:105px;}
#main .compact-list .list-description{white-space:normal;min-width:140px;max-width:280px;overflow-wrap:anywhere;}
#main .compact-list .list-actions{min-width:66px;}
#main .compact-list .supplier-actions{min-width:150px;max-width:210px;gap:4px;flex-wrap:wrap;}
#main .compact-list .route-cell{width:auto;min-width:110px;max-width:150px;}
#main .sales-grid .cost-mark{border:0!important;outline:none!important;box-shadow:none!important;border-radius:0;background-color:transparent!important;min-width:78px;width:100%;padding:2px 4px;}
#main .sales-grid .cost-mark:focus-visible{outline:none!important;background-color:#eaf3ff!important;}

/* Order actions render outside the table's sticky-column stacking contexts. */
.order-action-popup{position:fixed;z-index:20000;width:108px;padding:4px 0;background:#fff!important;opacity:1;border:1px solid #d3e0ec;border-radius:3px;box-shadow:0 4px 14px #23456626;}
.order-action-popup[hidden]{display:none!important;}
.order-action-popup button{display:block;width:100%;height:32px;padding:5px 14px;border:0;background:#fff;color:#506780;text-align:left;font-size:12px;line-height:22px;cursor:pointer;}
.order-action-popup button:hover:not(:disabled){background:#edf4fc;color:#337fbd;}
.order-action-popup button:disabled{color:#abb8c7;cursor:default;}
.order-action-popup button[data-order-action=delete]:not(:disabled){color:#d45057;}

.arrangement-page .toolbar{border:0;border-bottom:1px solid var(--line);padding:12px 14px;gap:12px;flex-wrap:wrap;}.arrangement-views,.arrangement-pagination{display:flex;gap:8px;align-items:center;}.arrangement-note{padding:10px 14px;font-size:12px;}.arrangement-grid small{display:block;color:#8b9caf;margin-top:4px;}.arrangement-grid tbody tr:nth-child(even){background:#f8fbff;}.arrangement-grid tbody tr:hover{background:#fff4de;}.arrangement-grid td:nth-child(5){width:240px;min-width:200px!important;max-width:260px!important;white-space:normal;}.arrangement-green{color:#21815b;}.arrangement-red{color:#d83350;}.arrangement-page .table-foot{gap:12px;flex-wrap:wrap;}.arrangement-pagination select{height:32px;}
@media print{body.print-arrangements header,body.print-arrangements aside,body.print-arrangements .tabs,body.print-arrangements .page-title,body.print-arrangements footer,body.print-arrangements .arrangement-page form,body.print-arrangements .arrangement-page button,body.print-arrangements .arrangement-page select{display:none!important;}body.print-arrangements .workspace{margin:0!important;}body.print-arrangements main{padding:0!important;}body.print-arrangements .table-wrap{overflow:visible;}body.print-arrangements .arrangement-grid{font-size:8px!important;}body.print-arrangements .arrangement-grid th,body.print-arrangements .arrangement-grid td{min-width:0!important;padding:3px!important;white-space:normal!important;}body.print-arrangements .arrangement-grid td:nth-child(5){min-width:0!important;}}

.arrangement-print-title{display:none;}.arrangement-page .query-more label.query-field{flex:1 1 150px!important;}@media print{body.print-arrangements{background:white;}body.print-arrangements .arrangement-print-title{display:block;padding:12px;font-size:16px;}}

.ticket-detail>p{padding:16px 22px;line-height:1.7;}.ticket-detail .table-wrap{margin:0 20px;}.ticket-detail td{white-space:normal;overflow-wrap:anywhere;}.ticket-detail td:nth-child(2),.ticket-detail td:nth-child(4){min-width:140px;}
.examples-banner{display:flex;align-items:center;gap:14px;padding:12px 16px;background:#fff8e8;border:1px solid #eed59d;margin-bottom:14px;color:#765822;flex-wrap:wrap}.examples-banner button{margin-left:auto}.examples-page .filter{display:flex;align-items:end;gap:12px;padding:14px;flex-wrap:wrap}.examples-page .filter label{display:flex;flex-direction:column;gap:6px}.examples-page .filter input{width:260px}.examples-page .filter select{min-width:140px}.examples-page tbody tr:nth-child(even){background:#f5f8fc}.examples-page tbody tr:hover{background:#fff1d4}.examples-fields{padding:16px 22px}.examples-fields label{display:flex;flex-direction:column;gap:6px}.examples-note{padding:16px 22px;background:#fff8e8;color:#765822}.examples-page .cost-mark{background:transparent;border:0!important}
.ticket-arrangement-grid{width:100%;border-collapse:collapse;font-size:12px}.ticket-arrangement-grid th{background:linear-gradient(#edf5ff,#dceafb);white-space:nowrap;padding:9px 7px}.ticket-arrangement-grid td{padding:8px 7px;vertical-align:middle}.ticket-arrangement-grid th,.ticket-arrangement-grid td{border:1px solid #d3e1f1}.ticket-arrangement-grid tbody tr:nth-child(even){background:#f6f9fd}.ticket-arrangement-grid tbody tr:hover{background:#f5dfb4}.ticket-arrangement-grid small{display:block;margin-top:4px;color:#8095ad}.ticket-arrangement-grid td:nth-child(5){min-width:160px!important;max-width:230px;white-space:normal}.ticket-arrangement-grid td:nth-child(12){min-width:130px!important;max-width:190px;white-space:normal}.ticket-arrangement-grid td:nth-child(4),.ticket-arrangement-grid td:nth-child(11){white-space:nowrap}.ticket-arrangement-grid tfoot{background:#edf4fb;color:#31567d}.ticket-arrangement-grid tfoot td{padding:9px}.ticket-item+.ticket-item{border-top:1px dashed #d7e4f1;margin-top:6px;padding-top:6px}.ticket-arrangement-page .arrangement-note{padding:6px 14px;margin:0}
.order-document{background:white;border:1px solid #ccdced;min-height:65vh}.order-document .dialog-head{background:#edf4fc;padding:14px 20px}.order-document .dialog-head button{font-size:12px}.order-document .editor-scroll{max-height:none;overflow:visible;padding:18px}.order-document-sections{display:flex;gap:0;border-bottom:1px solid #cfdfef;background:#f7faff;position:sticky;top:0;z-index:5}.order-document-sections button{border:0;background:transparent;padding:14px 24px;color:#56718e;border-bottom:2px solid transparent;cursor:pointer}.order-document-sections button.active{color:#2676bd;border-bottom-color:#2676bd;background:white}.order-document [data-order-panel][hidden]{display:none!important}.order-document .dialog-foot{position:sticky;bottom:0;background:white;border-top:1px solid #d5e1ee;padding:12px 20px;z-index:4}.order-document .fields{grid-template-columns:repeat(3,minmax(0,1fr))}.order-document .detail-section{margin-bottom:18px}@media(max-width:1000px){.order-document .fields{grid-template-columns:repeat(2,minmax(0,1fr))}.order-document-sections button{padding:12px}}

#main .ops-overview-grid.compact-list{table-layout:fixed;min-width:1100px!important;width:100%}
#main .ops-overview-grid.compact-list th,#main .ops-overview-grid.compact-list td{padding:13px 10px;vertical-align:top;line-height:1.65;min-width:0;max-width:none;white-space:normal;overflow-wrap:anywhere}
#main .ops-overview-grid th:nth-child(1){width:174px}#main .ops-overview-grid th:nth-child(2){width:94px}#main .ops-overview-grid th:nth-child(3){width:86px}#main .ops-overview-grid th:nth-child(5){width:72px}#main .ops-overview-grid th:nth-child(6){width:78px}#main .ops-overview-grid th:nth-child(7){width:80px}#main .ops-overview-grid th:nth-child(8){width:112px}#main .ops-overview-grid th:nth-child(9){width:114px}#main .ops-overview-grid th:nth-child(10){width:62px}
.ops-cell-line{display:block}.ops-cell-line.secondary{color:#8a9aae;margin-top:4px;font-size:12px}.ops-cell-line.primary{color:#345a7e}#main .ops-overview-grid td:nth-child(1) .primary{color:#317abd;font-weight:500}#main .ops-overview-grid td:nth-child(1) .secondary{font-size:12px;overflow-wrap:anywhere}#main .ops-overview-grid td:nth-child(2){white-space:nowrap}#main .ops-overview-grid td:nth-child(8){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}#main .ops-overview-grid th:nth-child(8){text-align:right}#main .ops-overview-grid td:nth-child(8) .secondary:last-child{color:#b37c32}#main .ops-overview-grid tbody tr:nth-child(even){background:#f8fafc}#main .ops-overview-grid tbody tr:hover{background:#edf5ff}#main .ops-overview-grid td:last-child,#main .ops-overview-grid th:last-child{position:sticky;right:0;background:#f8fbff;border-left:1px solid #e4ecf4}

#main .ops-overview-grid th{white-space:nowrap!important;padding-left:8px;padding-right:8px}#main .ops-overview-grid th:nth-child(5),#main .ops-overview-grid th:nth-child(6){width:82px}
#main .supplier-list-page table.compact-list{table-layout:fixed;min-width:1040px!important}#main .supplier-list-page .compact-list th,#main .supplier-list-page .compact-list td{padding:12px 14px;min-width:0;vertical-align:middle;line-height:1.6;white-space:normal;overflow-wrap:anywhere}#main .supplier-list-page th:first-child{width:160px}#main .supplier-list-page th:nth-child(3){width:90px}#main .supplier-list-page th:nth-child(4){width:90px}#main .supplier-list-page th:nth-child(5){width:80px}#main .supplier-list-page th:nth-child(6){width:170px}#main .supplier-list-page th:nth-child(7){width:220px}#main .supplier-list-page td:first-child{color:#315e89;font-weight:600}#main .supplier-list-page tbody tr:nth-child(even){background:#f8fafc}#main .supplier-list-page tbody tr:hover{background:#edf5ff}#main .supplier-list-page .supplier-operation{text-align:left;min-width:0}#main .supplier-list-page .supplier-operation small{margin:3px 0 0;font-size:12px;color:#8799ab}#main .supplier-list-page .supplier-actions{display:grid;grid-template-columns:repeat(3,max-content);gap:6px 12px;min-width:0;max-width:none}#main .supplier-list-page .supplier-actions .link{padding:0;line-height:1.6;white-space:nowrap}#main .supplier-list-page .supplier-actions [data-supplier-action=delete]{color:#c85b66}.supplier-list-page .menu-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e0e9f3;padding:12px 16px;background:#fff}.pagination-actions{display:flex;align-items:center;gap:8px}.supplier-list-page .menu-pagination .btn{min-width:66px}.supplier-list-page .menu-pagination button:disabled{opacity:.45;cursor:default}
#orderDocument [data-section=guests] .query-date-input{min-width:142px}#orderDocument [data-section=guests] .query-date-input input{min-width:0!important;width:100%;height:34px}#orderDocument [data-section=guests] .query-calendar-trigger{min-width:0!important;width:26px!important}#orderDocument [data-order-panel=guests]>.fields{gap:16px 20px;margin-bottom:22px}#orderDocument [data-section=guests] td{vertical-align:middle}
.vehicle-demand{display:inline-block;min-width:46px;text-align:center;font-size:21px;font-weight:600;line-height:1.2}.vehicle-demand.yes{color:#2987d7}.vehicle-demand.no{color:#8996a5}

#recordForm [data-section] .query-date-input{min-width:144px;max-width:190px}#recordForm [data-section] .query-date-input input{min-width:0!important;width:100%;height:34px}#recordForm [data-section] .query-calendar-trigger{min-width:0!important;width:26px!important}

.vehicle-demand.yes{color:#1686ee}.vehicle-demand.reviewed{color:#16b879}.example-readonly-value{display:block;min-height:34px;padding:8px 0;color:#355773;border-bottom:1px solid #edf2f7}.car-readonly table{width:100%}

.vehicle-check-icon{display:inline-block;width:22px;height:22px;vertical-align:middle;object-fit:contain}

select.cost-mark[data-color-mark]{display:none!important}
.cost-mark-trigger{display:inline-flex;align-items:center;justify-content:space-between;gap:10px;width:88px;height:22px;padding:2px 8px;border:0;border-radius:0;background:transparent;color:#263d4c;font:inherit;cursor:pointer;white-space:nowrap}
.cost-mark-trigger::after{content:"";width:8px;height:8px;background:currentColor;clip-path:polygon(0 30%,100% 30%,50% 80%);opacity:.65}
.cost-mark-trigger.checked,.cost-mark-option.checked{background:#3eb370;color:#063d21}
.cost-mark-trigger.returned,.cost-mark-option.returned{background:#ed0037;color:white}
.cost-mark-trigger:disabled{cursor:default}.cost-mark-trigger:focus-visible{outline:1px solid #278be0;outline-offset:2px}
.cost-mark-popup{position:fixed;z-index:10000;background:#fff;border:1px solid #b7cce4;padding:3px;box-shadow:0 3px 9px #22364a33}
.cost-mark-option{display:block;width:100%;height:25px;text-align:left;padding:3px 5px;border:0;border-radius:0;background:#fff;color:#172b3d;font:12px Arial,"Microsoft YaHei",sans-serif;cursor:pointer}
.cost-mark-option:hover,.cost-mark-option:focus-visible{background:#278be0;color:#fff;outline:0}

/* Softer cost markers aligned with the application's blue form controls. */
.cost-mark-trigger{height:26px;width:94px;border-radius:5px;padding:3px 9px;background:#f2f6fb;color:#607a96;transition:background .12s ease}
.cost-mark-trigger.checked{background:#dff2e9;color:#237653}
.cost-mark-trigger.returned{background:#fbe5e9;color:#b73b53}
.cost-mark-trigger:hover{filter:brightness(.98)}
.cost-mark-popup{padding:4px;border:1px solid #d8e3ef;border-radius:7px;box-shadow:0 5px 16px #294c7026;background:#fff}
.cost-mark-option{height:29px;border-radius:4px;padding:5px 8px;color:#4b6580;background:#fff}
.cost-mark-option.checked{background:#edf8f2;color:#237653}
.cost-mark-option.returned{background:#fff0f3;color:#b73b53}
.cost-mark-option+.cost-mark-option{margin-top:3px}
.cost-mark-option:hover,.cost-mark-option:focus-visible{background:#e3effd;color:#286ca9}

#main .supplier-list-page .supplier-actions{display:flex;flex-wrap:nowrap;gap:3px;align-items:center}
#main .supplier-list-page .supplier-actions .supplier-icon-action{display:inline-flex;align-items:center;justify-content:center;flex:0 0 27px;width:27px;height:28px;padding:0;border:0;border-radius:5px;background:transparent;color:#6599cf;text-decoration:none;cursor:pointer}
#main .supplier-list-page .supplier-actions .supplier-icon-action:hover,#main .supplier-list-page .supplier-actions .supplier-icon-action:focus-visible{background:#e2eefb;color:#2878bd;outline:none}
#main .supplier-list-page .supplier-actions [data-supplier-action=delete]{color:#db6375}
#main .supplier-list-page .supplier-actions [data-supplier-action=delete]:hover,#main .supplier-list-page .supplier-actions [data-supplier-action=delete]:focus-visible{background:#fce9ee;color:#c33350}
.action-icon-tooltip{position:fixed;z-index:11000;pointer-events:none;border-radius:5px;padding:6px 9px;background:#365675;color:white;font-size:12px;line-height:1.4;box-shadow:0 3px 10px #27446124;white-space:nowrap}

#main .order-grid thead th,#main .ops-overview-grid thead th{ text-align:center;vertical-align:middle; }

/* Consistent alignment for all business list tables; editor forms retain their layout. */
#main table:not(#recordForm table) th,#main table:not(#recordForm table) td{text-align:center!important;vertical-align:middle!important}
#main table .supplier-actions,#main table .goods-actions{justify-content:center}
#main table .cost-mark-trigger{margin-inline:auto}
#main table .supplier-operation{text-align:center!important}

/* Sample filters use the same compact baseline as business queries. */
#main .examples-page #exampleFilter{display:flex;align-items:flex-end;gap:12px;padding:16px;margin:0;flex-wrap:wrap}
#main .examples-page #exampleFilter label{display:flex;flex-direction:column;gap:7px;margin:0;text-align:left;font-size:12px;color:#607a96}
#main .examples-page #exampleFilter input,#main .examples-page #exampleFilter select{height:34px;min-height:34px;box-sizing:border-box;border:1px solid #cfdeed;border-radius:5px;padding:6px 10px;background:#fff;color:#365675;font:inherit;margin:0}
#main .examples-page #exampleFilter input{width:240px;max-width:100%}
#main .examples-page #exampleFilter select{width:160px;min-width:0}
#main .examples-page #exampleFilter .btn{height:34px;min-height:34px;align-self:flex-end;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:64px;padding:0 16px;border-radius:5px;margin:0;line-height:1;border:1px solid #cbdcec;background:white;color:#53799f}
#main .examples-page #exampleFilter .btn.primary{background:#79a5d5;border-color:#79a5d5;color:#fff}
#main .examples-page #exampleFilter .btn:hover{background:#edf4fc}
#main .examples-page #exampleFilter .btn.primary:hover{background:#6899ce;border-color:#6899ce}

.vehicle-check-link{border:0;background:transparent;border-radius:5px;padding:3px 5px;cursor:pointer;min-height:28px}.vehicle-check-link:hover,.vehicle-check-link:focus-visible{background:#e5effa;outline:1px solid #c0d6ed}.vehicle-check-link:empty{display:none}
.vehicle-document{background:#fff;border:1px solid #d1dfef}.vehicle-page-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;background:#edf4fc;border-bottom:1px solid #d1dfef}.vehicle-page-head>div{display:flex;gap:18px;align-items:center}.vehicle-page-head h1{font-size:18px;margin:0;color:#315a7c}.vehicle-page-head span{color:#7690aa}.vehicle-section{margin:18px 20px;border:1px solid #dce6f0;border-radius:5px;overflow:hidden}.vehicle-section h2{margin:0;padding:10px 14px;background:#f3f7fc;color:#446c93;font-size:13px;font-weight:600}.vehicle-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 22px;padding:16px}.vehicle-summary>div{display:flex;gap:12px;align-items:baseline;min-width:0}.vehicle-summary span,.vehicle-notes span{color:#8396a9;flex-shrink:0}.vehicle-summary strong{font-weight:400;color:#365675;overflow-wrap:anywhere}.vehicle-notes{padding:12px 16px}.vehicle-notes>div{display:flex;gap:16px;margin:8px 0}.vehicle-notes p{margin:0;white-space:pre-wrap;color:#476583}.vehicle-section table{width:100%;font-size:12px}.vehicle-section th,.vehicle-section td{padding:10px 9px;vertical-align:middle;overflow-wrap:anywhere}.vehicle-section th{white-space:nowrap}.vehicle-section tbody tr:nth-child(even){background:#f8fbff}.vehicle-cost-total{padding:12px 16px;text-align:right;border-top:1px solid #dce6f0}.vehicle-cost-total strong{color:#326f9f;margin:0 24px 0 10px}.vehicle-cost-total span,.vehicle-page-note{color:#8b9caf;font-size:12px}.vehicle-page-note{padding:0 20px 18px}@media(max-width:1000px){.vehicle-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Scoped refinement from the ET reference: compact sections, aligned fields, readable tables. */
#main .order-document:not(.vehicle-document){border-radius:6px;overflow:visible}
#main .order-document .dialog-head{border-radius:6px 6px 0 0;padding:12px 18px}
#main .order-document-sections{padding-inline:12px;gap:4px;box-shadow:0 1px 0 #e6edf5}
#main .order-document-sections button{padding:11px 20px;white-space:nowrap;border-radius:5px 5px 0 0}
#main .order-document-sections button:hover{background:#edf4fc;color:#2676bd}
#main .order-document .editor-scroll{padding:16px}
#main .order-document .fields{gap:16px 20px;padding:16px;margin-bottom:14px;border:1px solid #e1eaf3;border-radius:5px;background:#fff}
#main .order-document .fields label{gap:6px;min-width:0}
#main .order-document .fields input,#main .order-document .fields select{width:100%;min-width:0;height:34px;border-radius:5px}
#main .order-document .detail-section .card-head{height:40px;padding-inline:14px;background:#f3f7fc}
#main .order-document .detail-section th{padding:9px 10px}
#main .order-document .detail-section td{padding:7px 10px}
#main .order-document .dialog-foot{box-shadow:0 -3px 10px #36567508;gap:10px;border-radius:0 0 6px 6px}
#main .order-document .dialog-foot .btn{border-radius:5px;min-width:76px}
@media(max-width:700px){#main .order-document-sections{overflow-x:auto;padding-inline:4px}#main .order-document-sections button{padding:10px 12px}#main .order-document .fields{grid-template-columns:1fr;padding:12px}#main .order-document .editor-scroll{padding:10px}}

.ticket-status-button{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;padding:4px;border:0;border-radius:6px;background:transparent;cursor:pointer;vertical-align:middle}.ticket-status-button:hover,.ticket-status-button:focus-visible{background:#e7f1fc;outline:1px solid #c1d7ee}.ticket-status-button img{display:block;pointer-events:none}

/* Ticket markers remain bare images on hover; keyboard focus stays visible. */
#main .ticket-status-button,#main .ticket-status-button:hover,#main .ticket-status-button:active{border:0;background:transparent;box-shadow:none;outline:none}
#main .ticket-status-button:focus-visible{background:transparent;outline:2px solid #7da9d3;outline-offset:1px}

#main .vehicle-check-link,#main .vehicle-check-link:hover,#main .vehicle-check-link:active{border:0;background:transparent;box-shadow:none;outline:none}
#main .vehicle-check-link:focus-visible{background:transparent;outline:2px solid #7da9d3;outline-offset:1px}

/* Operations other-income page: ten balanced columns, no expandable rows. */
#main .income-arrangement-page{border-radius:6px;overflow:hidden}
#main .income-arrangement-grid{min-width:950px;table-layout:fixed;width:100%}
#main .income-arrangement-grid th,#main .income-arrangement-grid td{padding:10px 8px;white-space:normal;overflow-wrap:anywhere}
#main .income-arrangement-grid th:nth-child(1){width:5%}
#main .income-arrangement-grid th:nth-child(2){width:17%}
#main .income-arrangement-grid th:nth-child(3){width:9%}
#main .income-arrangement-grid th:nth-child(4){width:11%}
#main .income-arrangement-grid th:nth-child(5){width:23%}
#main .income-arrangement-grid th:nth-child(6),#main .income-arrangement-grid th:nth-child(7),#main .income-arrangement-grid th:nth-child(8){width:8%}
#main .income-arrangement-grid th:nth-child(9){width:6%}
#main .income-arrangement-grid th:nth-child(10){width:5%}
#main .income-arrangement-grid td:nth-child(4){white-space:nowrap;overflow-wrap:normal}
#main .income-arrangement-grid small{display:block;margin-top:4px;color:#8095ac}
#main .income-arrangement-grid tr:nth-child(even){background:#f7faff}
#main .income-arrangement-grid tbody tr:hover{background:#fff3da}

.income-edit-toolbar{display:flex;justify-content:space-between;align-items:center;padding:12px 14px}.income-review-state{color:#3c83b8}.income-edit-total{text-align:right;padding:12px 18px;color:#365675}.income-edit-total strong{margin-left:12px;color:#237eb8}#incomeEditForm table{min-width:850px}#incomeEditForm input{width:100%;min-width:65px;border-radius:4px}#incomeEditForm th:nth-child(1){width:22%}#incomeEditForm th:nth-child(7){width:22%}#incomeEditForm .hint{padding:0 16px 12px}#incomeEditForm .form-error{padding-inline:16px}

/* Shared arrangement costs and purchase controls. */
.arrangement-cost-editor{min-width:850px;table-layout:auto}.arrangement-cost-editor input{width:100%;min-width:70px;box-sizing:border-box}.arrangement-cost-editor td:first-child,.arrangement-cost-editor td:nth-child(8){min-width:140px}.arrangement-cost-editor td:nth-child(4),.arrangement-cost-editor td:nth-child(5){width:76px}.arrangement-purchase{padding:16px 0;border-top:1px solid #dce6ef}.arrangement-purchase label{display:inline-flex;flex-direction:column;gap:5px;margin:0 12px 12px 0;min-width:180px}.arrangement-review-reason{padding:10px 14px;background:#edf5fc;border-radius:6px}.vehicle-section [data-arr-reason]{max-width:300px}.vehicle-section [data-arr-form] .dialog-foot{padding-right:0}

.cost-arrangement-list small{display:block;color:#8294a6;margin-top:3px}.cost-arrangement-list td:nth-child(3){max-width:340px;white-space:normal;overflow-wrap:anywhere}
.insurance-request-mark{font-size:20px;color:#91a0ad}.insurance-request-mark.requested{color:#13a779;font-weight:700}.insurance-apply-link{border:0;background:transparent;color:#e99131;cursor:pointer;font:inherit;white-space:nowrap}.insurance-apply-link:hover{text-decoration:underline}.insurance-guest-list{min-width:520px}.insurance-application-document>.notice{margin:12px 20px}
/* Shared reporting: compact filters and aligned, readable columns. */
.report-summary{display:flex;gap:24px;align-items:center;flex-wrap:wrap;padding:14px 18px;border-bottom:1px solid #dbe6f1}
.business-report-table th,.business-report-table td{text-align:center;vertical-align:middle;padding:10px 12px}
.business-report-table th{white-space:nowrap}.business-report-table td{max-width:300px;overflow-wrap:anywhere}

/* Manual business documents follow the same compact forms. */
.finance-document .table-wrap table{min-width:660px}.finance-document [data-finance-source]{min-width:230px;max-width:440px;width:100%}.finance-document [data-finance-col="amount"]{min-width:110px}.finance-document [data-finance-col="party"]{min-width:130px}.finance-document [data-finance-col="category"]{min-width:88px}.cost-template-document input[type="number"]{min-width:84px}.finance-document .vehicle-section>label,.cost-template-document .vehicle-section>label{display:block;margin:12px 16px}.finance-document .vehicle-section>label textarea,.cost-template-document .vehicle-section>label textarea{width:100%;box-sizing:border-box}

/* Receipt allocation documents share the existing compact business form. */
.receipt-claim-document .vehicle-section>label{display:block;margin:14px 16px 0}.receipt-claim-document .vehicle-section>.hint{margin:12px 16px}.receipt-claim-document .fields{grid-template-columns:repeat(2,minmax(0,1fr))}.receipt-claim-document .fields .wide{grid-column:1/-1}.receipt-claims-table td:nth-child(4){overflow-wrap:anywhere}.examples-fields .example-readonly-value{min-height:34px;padding:8px 10px;background:#f7faff;border:1px solid #e0e9f2;border-radius:4px;overflow-wrap:anywhere}

.hotel-calendar-table{table-layout:auto;min-width:1100px;width:100%}.hotel-calendar-table th,.hotel-calendar-table td{text-align:center;padding:8px 5px;white-space:nowrap}.hotel-calendar-table tr>:first-child{position:sticky;left:0;background:#f1f7fd;min-width:160px;max-width:240px;white-space:normal;z-index:1}.hotel-calendar-table tfoot{background:#edf5fc;font-weight:600}

#main .hotel-calendar-table{table-layout:fixed;min-width:1250px!important}#main .hotel-calendar-table th,#main .hotel-calendar-table td{min-width:0!important;padding:8px 3px!important;white-space:nowrap}#main .hotel-calendar-table tr>:first-child{width:160px;white-space:normal}#main .hotel-calendar-table tr>:last-child{width:85px}#main .hotel-calendar-table .link{padding:2px 0;min-width:0}

/* Vehicle dispatch: compact, readable operational table. */
.dispatch-table th,.dispatch-table td{text-align:center;vertical-align:middle;padding:10px 12px}.dispatch-table td:nth-child(3){max-width:280px;overflow-wrap:anywhere}.dispatch-actions{white-space:nowrap}.dispatch-actions button{margin:0 4px}.dispatch-actions img{vertical-align:middle}.dispatch-actions .link{border:0;background:transparent}

/* Booking progress and compact hotel reservations. */
.hotel-legend{display:inline-flex;align-items:center;gap:8px;margin-left:20px;font-size:12px}.hotel-status-button{border:0!important;background:transparent!important;box-shadow:none!important;padding:3px}.hotel-arrangement-list{table-layout:fixed;width:100%;min-width:960px!important}.hotel-arrangement-list th,.hotel-arrangement-list td{text-align:center;vertical-align:middle;white-space:normal;overflow-wrap:anywhere}.hotel-arrangement-list th:nth-child(1){width:4%}.hotel-arrangement-list th:nth-child(3){width:16%}.hotel-arrangement-list th:nth-child(6){width:24%}.hotel-arrangement-list th:last-child{width:5%}.hotel-booking-grid{table-layout:fixed;min-width:1460px!important;width:100%}.hotel-booking-grid th,.hotel-booking-grid td{padding:5px!important;text-align:center;vertical-align:middle}.hotel-booking-grid th:first-child{width:38px}.hotel-booking-grid th:nth-child(2){width:160px}.hotel-booking-grid th:nth-child(3){width:110px}.hotel-booking-grid th:nth-child(4),.hotel-booking-grid th:nth-child(5){width:90px}.hotel-booking-grid th:nth-child(6),.hotel-booking-grid th:nth-child(9){width:75px}.hotel-booking-grid th:nth-child(7),.hotel-booking-grid th:nth-child(8){width:55px}.hotel-booking-grid th:nth-child(12){width:170px}.hotel-booking-grid input:not([type=checkbox]),.hotel-booking-grid select,.hotel-booking-grid textarea{width:100%;min-width:0;padding:5px;font-size:12px;box-sizing:border-box;border-radius:4px}.hotel-booking-grid textarea{min-height:32px;height:38px;resize:vertical}.hotel-booking-grid small{display:block;color:#70849c;font-size:11px;margin-top:4px}.hotel-booking-grid tfoot{background:#f0f6fc}.hotel-booking-section{padding:12px!important;margin-top:12px}.hotel-booking-section h2{margin:0 0 10px}
.sales-grid .order-classification-select{border:0;background:transparent;box-shadow:none;border-radius:5px;min-height:28px;padding:3px 14px 3px 3px;font:inherit;color:inherit;width:100%;min-width:78px;max-width:135px}.sales-grid .order-classification-select:hover:not(:disabled){background:#edf5ff}.sales-grid .order-classification-select:focus{outline:1px solid #8bb5e5;background:white}.sales-grid .order-classification-select:disabled{opacity:1;cursor:default}.sales-grid .order-classification-select option{background:white;color:#284b70}

.sales-grid .order-classification-readonly{border:0;background:transparent;box-shadow:none;color:inherit;font:inherit;padding:3px;cursor:help;white-space:nowrap}

.sales-grid .classification-save-status{border:0;background:transparent;box-shadow:none;padding:0 3px;font:inherit;font-size:11px;color:#b36b24}.sales-grid .classification-save-status:disabled{color:#8193a8}

/* Keep channel switches and save indicators out of intrinsic table sizing. */
.sales-grid .classification-cell{display:inline-block;position:relative;vertical-align:middle;width:104px;min-width:104px;max-width:104px;height:32px;box-sizing:border-box;text-align:center}
.sales-grid .classification-cell-businessLine{width:132px;min-width:132px;max-width:132px}
.sales-grid .classification-cell .order-classification-select,.sales-grid .classification-cell .order-classification-readonly{box-sizing:border-box;width:100%;min-width:0;max-width:100%;height:28px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0}
.sales-grid .classification-cell .classification-save-status{position:absolute;left:0;right:0;bottom:-5px;width:100%;max-width:100%;height:12px;line-height:12px;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}

.hotel-arrangement-list td small{display:block;margin-top:3px}.hotel-arrangement-list .hotel-date-range{white-space:nowrap;overflow-wrap:normal}.hotel-arrangement-list .hotel-date-range span{font:inherit}.hotel-arrangement-list th:nth-child(5){width:190px}

/* Keep booking fields inside their cells; paired fields stack without overflow. */
.hotel-booking-section .hotel-booking-grid{min-width:1280px!important;width:100%;table-layout:fixed}
.hotel-booking-section .hotel-booking-grid th,.hotel-booking-section .hotel-booking-grid td{white-space:normal;vertical-align:top;padding:8px 5px!important}
.hotel-booking-section .hotel-booking-grid th{vertical-align:middle;font-weight:500;background:#edf4fb}
.hotel-booking-section .hotel-booking-grid th:nth-child(1){width:3%}
.hotel-booking-section .hotel-booking-grid th:nth-child(2){width:11%}
.hotel-booking-section .hotel-booking-grid th:nth-child(3){width:9%}
.hotel-booking-section .hotel-booking-grid th:nth-child(4),.hotel-booking-section .hotel-booking-grid th:nth-child(5){width:6.5%}
.hotel-booking-section .hotel-booking-grid th:nth-child(6){width:5%}
.hotel-booking-section .hotel-booking-grid th:nth-child(7),.hotel-booking-section .hotel-booking-grid th:nth-child(8){width:4%}
.hotel-booking-section .hotel-booking-grid th:nth-child(9){width:6%}
.hotel-booking-section .hotel-booking-grid th:nth-child(10){width:7%}
.hotel-booking-section .hotel-booking-grid th:nth-child(11){width:6%}
.hotel-booking-section .hotel-booking-grid th:nth-child(12){width:12%}
.hotel-booking-section .hotel-booking-grid th:nth-child(13){width:9%}
.hotel-booking-section .hotel-booking-grid th:nth-child(14){width:10%}
.hotel-booking-section .hotel-booking-grid input:not([type=checkbox]),.hotel-booking-section .hotel-booking-grid select,.hotel-booking-section .hotel-booking-grid textarea{display:block;position:static;width:100%;max-width:100%;min-width:0;height:32px;margin:0;padding:6px 7px;border-radius:6px;font:inherit;box-sizing:border-box}
.hotel-booking-section .hotel-booking-grid textarea{height:48px;min-height:48px;resize:vertical;line-height:1.5}
.hotel-booking-section .hotel-booking-grid input+textarea,.hotel-booking-section .hotel-booking-grid select+textarea{margin-top:6px}
.hotel-booking-section .hotel-booking-grid td:nth-child(4),.hotel-booking-section .hotel-booking-grid td:nth-child(5),.hotel-booking-section .hotel-booking-grid td:nth-child(9){padding-top:16px!important;white-space:nowrap}
.hotel-booking-section .hotel-booking-grid input[type=number]{text-align:center}
.hotel-booking-section .hotel-booking-grid tfoot td{vertical-align:middle;padding:10px!important}
.hotel-booking-section .table-wrap{border-radius:6px;border:1px solid #dbe6f1}

.hotel-fee-heading{display:flex;align-items:center;gap:16px;padding:12px 14px;background:#edf5fc;border-block:1px solid #dce7f2}.hotel-fee-heading h2{margin:0}.hotel-fee-heading>span{color:#7890aa;font-size:12px}.hotel-fee-heading .btn{margin-left:auto}.hotel-demand-grid{min-width:700px!important;width:100%}.hotel-fee-grid{table-layout:fixed;width:100%;min-width:1280px!important}.hotel-fee-grid th,.hotel-fee-grid td{padding:7px 4px!important;text-align:center;vertical-align:middle}.hotel-fee-grid th:nth-child(1){width:13%}.hotel-fee-grid th:nth-child(2){width:12%}.hotel-fee-grid th:nth-child(3){width:10%}.hotel-fee-grid th:nth-child(4){width:10%}.hotel-fee-grid th:nth-child(5){width:8%}.hotel-fee-grid th:nth-child(6){width:6%}.hotel-fee-grid th:nth-child(7),.hotel-fee-grid th:nth-child(8){width:4%}.hotel-fee-grid th:nth-child(9){width:7%}.hotel-fee-grid th:nth-child(10){width:8%}.hotel-fee-grid th:nth-child(11){width:6%}.hotel-fee-grid th:nth-child(12){width:8%}.hotel-fee-grid th:nth-child(13){width:4%}.hotel-fee-grid input,.hotel-fee-grid select{width:100%;min-width:0;max-width:100%;height:32px;display:block;border-radius:5px;padding:4px;font:inherit}.hotel-fee-grid .date-field{width:100%;min-width:0}.hotel-fee-grid tfoot{background:#f0f6fc}.hotel-fee-grid td[data-fee-checkout]{white-space:nowrap}

#recordForm>#recordError:not(:empty){padding:10px 16px;background:#fff3f1;border-top:1px solid #f1d2ce;flex:none;margin:0}

.hotel-context-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));font-size:12px}.hotel-context-summary>div{display:flex;min-width:0;border-bottom:1px solid #e3ebf3;padding:9px 12px;gap:10px}.hotel-context-summary span{flex:0 0 72px;color:#7890a5}.hotel-context-summary strong{font-weight:400;overflow-wrap:anywhere;white-space:pre-wrap}.hotel-order-context .vehicle-notes p{overflow-wrap:anywhere;min-width:0}.hotel-order-context td{white-space:pre-wrap}.hotel-order-context h2{background:#e8f3fc}.hotel-order-context table{min-width:720px}.hotel-order-context{scroll-margin-top:12px}@media(max-width:1200px){.hotel-context-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}

.sales-report-metrics .metric{display:flex;flex-direction:column;gap:12px;padding:14px 8px;min-width:0}.sales-report-metrics .metric strong{font-size:19px;color:#3275a5;overflow-wrap:anywhere}.sales-report-metrics .metric span{color:#738aa0}

/* Room requirements and hotel fees: keep density readable without changing column widths. */
[data-hotel-fee-page="1"] .vehicle-section{margin:24px 20px;border-radius:8px}
[data-hotel-fees]{border:0!important;overflow:visible!important;background:transparent}
[data-hotel-fees]>.hotel-fee-heading{padding:14px 16px;border:1px solid #dce7f2;border-radius:8px 8px 0 0;min-height:54px;box-sizing:border-box}
[data-hotel-fees]>.hotel-fee-heading h2{padding:0;background:transparent}
[data-hotel-fees]>.table-wrap{padding:12px 14px 16px;background:#fff;border:1px solid #dce7f2;border-top:0;border-radius:0 0 8px 8px}
[data-hotel-fees]>.table-wrap+.hotel-fee-heading{margin-top:28px}
[data-hotel-fees]>form{padding:12px 14px 0;background:#fff;border:1px solid #dce7f2;border-top:0;border-radius:0 0 8px 8px}
[data-hotel-fees] .hotel-demand-grid th,[data-hotel-fees] .hotel-demand-grid td{padding:12px 10px}
[data-hotel-fees] .hotel-fee-grid th,[data-hotel-fees] .hotel-fee-grid td{padding:12px 7px!important}
[data-hotel-fees] .hotel-fee-grid input,[data-hotel-fees] .hotel-fee-grid select{height:34px;padding:5px 6px}
[data-hotel-fees] .hotel-fee-grid tfoot td{padding-top:16px!important;padding-bottom:16px!important}
[data-hotel-fees] .dialog-foot{margin-top:16px;padding:16px 0;border-top:1px solid #e4edf5}
[data-hotel-fee-page="1"] .hotel-context-summary>div{padding:12px 14px}
[data-hotel-fee-page="1"] .vehicle-notes{padding:16px}
[data-hotel-fee-page="1"] .vehicle-notes>div{margin:12px 0}
@media(max-width:900px){[data-hotel-fee-page="1"] .vehicle-section{margin:20px 12px}[data-hotel-fees]>.table-wrap,[data-hotel-fees]>form{padding-left:10px;padding-right:10px}}

.hotel-row-actions{display:grid;grid-template-columns:repeat(2,24px);gap:6px;justify-content:center}.hotel-row-action,.hotel-row-actions .link{display:inline-flex;align-items:center;justify-content:center;width:24px;height:26px;padding:2px!important;border:0!important;background:transparent!important;border-radius:5px;cursor:pointer}.hotel-row-action:hover,.hotel-row-actions .link:hover{background:#e7f2ff!important}.hotel-row-action:focus-visible{outline:2px solid #75a8d9;outline-offset:2px}.hotel-row-action img{display:block}

/* Keep hotel row actions visible at every horizontal scroll position. */
[data-hotel-fees] .hotel-fee-grid th:last-child{width:80px!important;min-width:80px}
[data-hotel-fees] .hotel-fee-grid thead th:last-child,[data-hotel-fees] .hotel-fee-grid tbody td:last-child{position:sticky;right:0;z-index:2;background:#fff;box-shadow:-3px 0 7px -4px #6688aa}
[data-hotel-fees] .hotel-fee-grid thead th:last-child{background:#edf4fb;z-index:3}
[data-hotel-fees] .hotel-fee-grid tbody tr:nth-child(even) td:last-child{background:#f8fbff}
[data-hotel-fees] .hotel-row-actions{min-width:54px;min-height:26px}
/* Reporting pages share spacing, readable controls and predictable drill-down links. */
.report-page-card{margin-top:20px;border-radius:8px;overflow:hidden}
.report-page-card .transfer-filter{display:flex;flex-wrap:wrap;gap:14px 16px;align-items:flex-end;padding:18px 20px;border-bottom:1px solid #e1eaf3}
.report-page-card .transfer-filter>label{display:flex;flex-direction:column;gap:8px;min-width:150px;flex:1 1 160px;margin:0;text-align:left}
.report-page-card .transfer-filter input,.report-page-card .transfer-filter select{height:36px;width:100%;min-width:0;box-sizing:border-box;border-radius:6px;font:inherit}
.report-page-card .transfer-filter>.btn{height:36px;margin:0;flex:0 0 auto;border-radius:6px}
.report-page-card .report-summary{display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px;padding:16px 20px}
.report-page-card table th,.report-page-card table td{padding:12px 14px;line-height:1.6;vertical-align:middle}
.report-page-card .business-report-table td .link{font:inherit;padding:3px 2px;border-radius:4px}
.report-page-card .link:hover{text-decoration:underline}.report-page-card .link:focus-visible{outline:2px solid #83add7;outline-offset:2px}
.report-page-card .menu-pagination{display:flex;gap:10px;align-items:center;justify-content:flex-end;padding:14px 20px;border-top:1px solid #e1eaf3}
.sales-report-metrics{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px!important;padding:16px!important;border-radius:8px}
.sales-report-metrics .metric{background:#f5f9fd;border:1px solid #e5edf5;border-radius:7px;padding:16px 12px;text-align:center}
.consultation-detail-card{margin-bottom:20px;border-radius:8px;padding:20px}
.consultation-section-title,.consultation-detail-card>h2{font-size:15px;font-weight:500;margin:0 0 20px;padding-bottom:12px;border-bottom:1px solid #e0eaf4}
.consultation-detail-card .fields{gap:18px 22px}.consultation-detail-card .fields>label{line-height:1.7}
#main:has(>.consultation-user-form){padding:0}
.consultation-user-form{padding:0}
.consultation-user-form .consultation-detail-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;padding:4px}
.consultation-user-form .consultation-detail-field{display:grid;grid-template-columns:108px minmax(0,1fr);align-items:stretch;gap:0;min-width:0;height:38px;border:1px solid #ddd;line-height:1.7;color:#000;background:#fff}
.consultation-user-form .consultation-detail-label{display:flex;align-items:center;justify-content:center;padding:6px 6px;border-right:1px solid #ddd;background:#f8f8f8;white-space:nowrap;text-align:center;color:#000}
.consultation-user-form .consultation-detail-field>input,.consultation-user-form .consultation-detail-field>textarea,.consultation-user-form .consultation-detail-field>div{min-width:0;margin:0}
.consultation-user-form .consultation-detail-field>input,.consultation-user-form .consultation-detail-field>textarea{height:100%;border:0;padding:6px 12px;box-shadow:none}
.consultation-user-form .consultation-detail-field>div{padding:4px 10px}
.consultation-user-form .consultation-detail-field:last-child:nth-child(3n + 2){grid-column:span 2}
.consultation-user-form input,.consultation-user-form textarea{width:100%;min-width:0;border-radius:0;border-color:#ddd;background:#fff;color:#000!important;font-size:14px}.consultation-user-form input{height:28px}.consultation-user-form textarea{resize:vertical;min-height:62px}
.consultation-user-form input:focus,.consultation-user-form textarea:focus{outline:1px solid #287cff;outline-offset:-1px;background:#f8fbff}
.consultation-user-form input::placeholder,.consultation-user-form textarea::placeholder{color:#777}.consultation-user-form .query-calendar-trigger{color:#000}
.consultation-user-form .consultation-detail-card{margin-bottom:12px;padding:0;border:1px solid #e1e1e1;border-radius:0;background:#fff;box-shadow:none;color:#000}
.consultation-user-form .consultation-detail-card>h2{margin:0;padding:8px 12px;border-bottom:1px solid #e1e1e1;background:#f3f5f8;font-size:13px;line-height:18px;font-weight:500;color:#000}
.consultation-user-form .consultation-detail-field{font-size:14px}
.consultation-order-title{margin:0;padding:14px 16px;background:#fff;color:#000}#main .consultation-order-title h1{margin:0;font-size:20px;line-height:1.5;font-weight:700;color:#000}.consultation-order-title .btn{color:#000}
#main .consultation-order-title .consultation-submitted-at{margin:6px 0 0;color:#000;font-size:13px;line-height:20px}
.consultation-detail-people{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.consultation-detail-people label{display:flex;flex-direction:row;align-items:center;gap:3px;min-width:0;color:#000;font-size:12px}.consultation-detail-people label>span{white-space:nowrap}.consultation-detail-people input{flex:1;min-width:0;padding-left:5px;padding-right:3px}
.consultation-detail-dates{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;color:#000}.consultation-detail-dates>.consultation-date-separator{color:#000}
.consultation-detail-save{display:flex;justify-content:flex-end;margin:0 0 16px}.consultation-source-details{margin-bottom:20px}.consultation-source-details>summary{cursor:pointer;padding:10px 0}
.consultation-business-details{margin-bottom:20px}.consultation-business-details>summary{cursor:pointer;padding:10px 0}.consultation-business-details .consultation-detail-form-grid{padding:16px 0}
@media(max-width:1000px){.consultation-user-form .consultation-detail-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.consultation-user-form .consultation-detail-field:last-child:nth-child(3n + 2){grid-column:auto}.consultation-user-form .consultation-detail-field{grid-template-columns:90px minmax(0,1fr)}}
@media(max-width:1000px){.consultation-user-form .consultation-detail-field:has(>.consultation-detail-people),.consultation-user-form .consultation-detail-field:has(>.consultation-detail-dates){grid-column:1/-1}}
@media(max-width:650px){.consultation-user-form .consultation-detail-form-grid{grid-template-columns:1fr}.consultation-detail-dates{gap:6px}}
.consultation-detail-card .table-wrap{margin-top:18px}.consultation-detail-card .dialog-foot{padding-top:16px}
#main:has(>.consultation-orders-card){padding:0}
#main>.consultation-orders-card{margin:0;border-radius:0;box-shadow:none}
.consultation-orders-card{padding:18px 22px;background:#fff}
.consultation-orders-table{min-width:1050px;width:100%;table-layout:fixed;border-collapse:collapse;color:#21456f;font-size:12px}
.consultation-orders-table thead th{background:#f7f8fa;color:#12345c;font-size:12px;font-weight:600;padding:17px 12px;text-align:left;border:0;white-space:normal}
.consultation-orders-table .consultation-order-meta td{padding:13px 12px 12px;background:#fff;border-bottom:1px solid #e1e7ef;border-top:5px solid #f4f5f7}
.consultation-orders-table .consultation-order-group:first-of-type .consultation-order-meta td{border-top:0}
.consultation-order-meta td>div{display:flex;justify-content:space-between;gap:18px;align-items:center}
.consultation-meta-left{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.consultation-orders-table .link{color:#1768ff;font-size:12px;padding:0;min-width:0;white-space:normal;text-align:left}
.consultation-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#2467e8;flex-shrink:0;margin-right:4px;vertical-align:middle}
.consultation-guidance{color:#8b9bb1;text-align:right;line-height:1.6}
.consultation-product-tag,.consultation-extra-tag{padding:2px 7px;color:#1681f9;border:1px solid #9bd3ff;background:#edf8ff;line-height:1.4}
.consultation-extra-tag{color:#c89424;border-color:#ffe4a6;background:#fffbea}
.consultation-orders-table .consultation-order-data td{padding:22px 12px 24px;vertical-align:middle;line-height:1.75;border:0;background:#fff;white-space:normal;overflow-wrap:anywhere}
.consultation-orders-table .consultation-order-data p{margin:5px 0 0}
.consultation-phone-notice{color:#406593}.consultation-state{color:#51657e}
.consultation-source-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 24px}
.consultation-source-grid span{color:#77869a;font-size:12px}.consultation-source-grid p{margin:6px 0;overflow-wrap:anywhere}
.consultation-source-text{margin-top:18px;color:#52677e}.consultation-source-text pre{max-height:420px;overflow:auto;white-space:pre-wrap;word-break:break-word;background:#f5f7fa;padding:15px;font-family:inherit}
.consultation-sync-status{padding:14px 20px;margin-bottom:16px;line-height:1.8;background:#f8fbff}.consultation-sync-status>strong{color:#315b83;margin-right:18px}.consultation-sync-status>span{color:#6984a0}.consultation-sync-status>p{color:#6f8299;margin-top:4px}.consultation-automatic-form>p,.consultation-automatic-form>label{margin:20px 24px;line-height:1.8}.consultation-automatic-form>.consultation-sync-status,.consultation-automatic-form>.form-error{margin:16px 24px}.consultation-automatic-form>label{display:flex;flex-direction:column;gap:8px}.consultation-automatic-form select{padding:8px;border:1px solid #ccdbea;border-radius:4px}
#ctripConsultationImport>p{line-height:1.8;color:#52677e}#ctripConsultationImport textarea{font-family:inherit;min-height:210px}#ctripConsultationPreview{margin-top:22px}#ctripConsultationPreview table{font-size:12px;min-width:650px}
#ctripConsultationImport>p{padding:0 24px}#ctripConsultationPreview{margin:22px 24px 0}
#main table.consultation-orders-table:not(#recordForm table) th,#main table.consultation-orders-table:not(#recordForm table) td{text-align:left!important}
@media(max-width:900px){.consultation-source-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.consultation-orders-card{padding:14px}.consultation-guidance{max-width:360px}}
@media(max-width:1100px){.sales-report-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.report-page-card .transfer-filter{padding:16px}}
@media(max-width:600px){.sales-report-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.report-page-card .menu-pagination{justify-content:center;flex-wrap:wrap}}
/* Match native-sized number controls without changing column widths. */
.unit-number-control{display:inline-block;position:relative;width:100%;min-width:0;vertical-align:middle;box-sizing:border-box}
.unit-number-control>input[type=number]{width:100%;min-width:0;box-sizing:border-box;padding-right:22px!important;appearance:textfield;-moz-appearance:textfield}
.unit-number-control>input[type=number]::-webkit-inner-spin-button,.unit-number-control>input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.unit-number-arrows{position:absolute;right:3px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column;width:16px;opacity:0}
.unit-number-control:hover>.unit-number-arrows,.unit-number-control:focus-within>.unit-number-arrows{opacity:1}
.unit-number-arrows>button{border:0;background:transparent;color:#778a9d;font-size:11px;line-height:12px;height:13px;width:16px;padding:0;cursor:pointer;border-radius:2px}
.unit-number-arrows>button:hover{background:#e6eff8;color:#317bb5}
.unit-number-control>input:disabled~.unit-number-arrows,.unit-number-control>input[readonly]~.unit-number-arrows{display:none}

/* A calmer, data-first landing page for the business dashboard. */
.dashboard-page{max-width:1480px;margin:0 auto;padding:10px 4px 24px;color:#29425b}
.dashboard-welcome{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:4px 0 22px;padding:24px 28px;border:1px solid #e4e9dc;border-radius:16px;background:linear-gradient(112deg,#fff 0%,#fffdf7 58%,#f4f8ef 100%);box-shadow:0 6px 22px #27415b0a}
.dashboard-eyebrow,.dashboard-section-kicker{display:block;color:#a28756;font-size:10px;font-weight:700;letter-spacing:1.55px}
.dashboard-welcome h1{margin:10px 0 6px;color:#273d50;font-size:27px;font-weight:600;letter-spacing:.2px}
.dashboard-welcome p,.dashboard-section-head p{margin:0;color:#8492a0;font-size:12px}
.dashboard-wave{display:inline-block;margin-left:10px;color:#bf9d5a;font-size:17px}
.dashboard-today{display:flex;flex-direction:column;align-items:flex-end;gap:7px;padding:12px 16px;border:1px solid #eee8d8;border-radius:10px;background:#ffffffb8}
.dashboard-today span{color:#8e9ba8;font-size:11px}.dashboard-today strong{color:#526779;font-size:12px;font-weight:500}
.dashboard-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:16px}
.dashboard-metric{position:relative;display:flex;min-width:0;min-height:130px;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;overflow:hidden;padding:18px 20px;border:1px solid #e6ebf0;border-radius:13px;background:#fff;color:#2d465e;text-align:left;box-shadow:0 4px 15px #1e38520a;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.dashboard-metric:hover{transform:translateY(-2px);border-color:#d6e0e9;box-shadow:0 9px 22px #1e385214}
.dashboard-metric-label{color:#748697;font-size:12px}
.dashboard-metric>strong{position:relative;z-index:1;font-size:27px;font-weight:650;letter-spacing:-.4px}
.dashboard-metric>strong em{margin-left:5px;color:#8392a0;font-size:13px;font-style:normal;font-weight:400}
.dashboard-metric>small{position:relative;z-index:1;color:#9aa6b0;font-size:11px}
.dashboard-metric-icon{position:absolute;right:17px;top:17px;display:grid;width:36px;height:36px;place-items:center;border-radius:11px;background:#f1f6fa;color:#7b9ab2;font-size:19px}
.dashboard-metric.metric-primary{border-color:#e4e4d7;background:linear-gradient(128deg,#fff 0%,#faf9f2 100%)}
.dashboard-metric.metric-primary>strong{color:#738b61}
.dashboard-metric.metric-primary .dashboard-metric-icon{background:#edf1e4;color:#85996c}
.dashboard-metric.metric-alert .dashboard-metric-icon{background:#fff1e9;color:#df8c5d}
.dashboard-main-grid,.dashboard-lower-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.85fr);gap:16px;margin-bottom:16px}
.dashboard-lower-grid{grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr)}
.dashboard-page .card{min-width:0;margin:0;border:1px solid #e7ebef;border-radius:14px;background:#fff;box-shadow:0 4px 16px #27415b08}
.dashboard-chart-card,.dashboard-shortcuts-card,.dashboard-recent-card,.dashboard-ledger-card{padding:21px 22px}
.dashboard-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.dashboard-section-head h2{margin:6px 0 5px;color:#31495f;font-size:17px;font-weight:600}
.dashboard-section-kicker{font-size:9px;letter-spacing:1.35px}
.dashboard-year-select select{min-width:92px;padding:8px 26px 8px 10px;border:1px solid #e3e9ee;border-radius:8px;background:#fff;color:#52687d}
.dashboard-chart-legend{display:flex;align-items:center;gap:16px;margin-top:22px;color:#728395;font-size:11px}
.dashboard-chart-legend span{display:inline-flex;align-items:center;gap:6px}
.dashboard-chart-legend i{width:9px;height:9px;border-radius:3px;background:#88a77b}
.dashboard-chart-legend i.previous{background:#dce4df}
.dashboard-chart-legend small{margin-left:auto;color:#a0aab3}
.dashboard-chart{display:grid;height:190px;grid-template-columns:repeat(12,minmax(0,1fr));gap:8px;align-items:end;margin-top:15px;padding:10px 2px 0;border-bottom:1px solid #e9edf0;background:repeating-linear-gradient(to top,transparent 0,transparent 46px,#f1f3f4 47px,#f1f3f4 48px)}
.dashboard-chart-month{display:flex;height:100%;min-width:0;flex-direction:column;justify-content:flex-end;align-items:center;gap:7px}
.dashboard-chart-month>span{order:2;padding:0 0 8px;color:#8998a5;font-size:10px;white-space:nowrap}
.dashboard-chart-bars{display:flex;width:min(28px,90%);height:calc(100% - 24px);align-items:flex-end;justify-content:center;gap:3px}
.dashboard-chart-bars i{display:block;width:45%;height:var(--bar);min-height:3px;border-radius:4px 4px 1px 1px;background:#89a77c}
.dashboard-chart-bars i.previous{background:#dce4df}
.dashboard-chart-total{display:flex;align-items:center;gap:12px;margin-top:15px;color:#8794a0;font-size:11px}
.dashboard-chart-total strong{color:#607b57;font-size:16px}
.dashboard-chart-total>span:last-child{margin-left:auto}
.dashboard-shortcuts{display:grid;gap:8px;margin-top:18px}
.dashboard-shortcut{display:flex;width:100%;align-items:center;gap:12px;padding:10px 11px;border:1px solid #edf0f2;border-radius:10px;background:#fff;color:#40586d;text-align:left;transition:background .15s ease,border-color .15s ease}
.dashboard-shortcut:hover{border-color:#dce6dc;background:#fbfcf8}
.dashboard-shortcut-icon{display:grid;width:34px;height:34px;flex:0 0 34px;place-items:center;border-radius:10px;background:#f0f5ed;color:#79936d;font-size:17px}
.dashboard-shortcut:nth-child(2) .dashboard-shortcut-icon{background:#fff4ec;color:#d99465}
.dashboard-shortcut:nth-child(3) .dashboard-shortcut-icon{background:#eef5f8;color:#6b95a9}
.dashboard-shortcut>span:nth-child(2){display:grid;gap:4px}
.dashboard-shortcut strong{font-size:12px;font-weight:550}
.dashboard-shortcut small{color:#97a3ad;font-size:10px}
.dashboard-shortcut>b{margin-left:auto;color:#a2afb9;font-size:18px;font-weight:400}
.dashboard-tip{display:flex;gap:9px;margin-top:13px;padding:11px;border-radius:9px;background:#f7f8f3;color:#819078}
.dashboard-tip>span{display:grid;width:17px;height:17px;flex:0 0 17px;place-items:center;border-radius:50%;background:#e8eddf;color:#738563;font-size:11px}
.dashboard-tip p{margin:0;font-size:10px;line-height:1.65}
.dashboard-recent-list,.dashboard-ledger-list{margin-top:13px}
.dashboard-recent-row{display:flex;width:100%;min-width:0;align-items:center;gap:12px;padding:12px 2px;border:0;border-bottom:1px solid #f0f2f4;background:transparent;color:inherit;text-align:left}
.dashboard-recent-row:last-child,.dashboard-ledger-row:last-child{border-bottom:0}
.dashboard-recent-row:hover .dashboard-recent-main strong{color:#66805f}
.dashboard-recent-icon{display:grid;width:34px;height:34px;flex:0 0 34px;place-items:center;border-radius:10px;background:#f2f5f2;color:#82987d;font-size:13px}
.dashboard-recent-main{display:grid;min-width:0;flex:1;gap:5px}
.dashboard-recent-main strong{overflow:hidden;color:#43596c;font-size:12px;font-weight:550;text-overflow:ellipsis;white-space:nowrap}
.dashboard-recent-main small{color:#98a3ad;font-size:10px}
.dashboard-recent-row .badge{flex:0 0 auto}
.dashboard-recent-arrow{color:#a7b2ba;font-size:19px}
.dashboard-ledger-row{display:flex;width:100%;align-items:center;gap:8px;padding:12px 2px;border:0;border-bottom:1px solid #f0f2f4;background:transparent;color:#607386;text-align:left}
.dashboard-ledger-row:hover>span:first-child{color:#66805f}
.dashboard-ledger-row>span:first-child{flex:1;font-size:12px}
.dashboard-ledger-row>strong{color:#3f586e;font-size:14px;font-weight:600}
.dashboard-ledger-row>span:nth-child(3){color:#9aa5ae;font-size:10px}
.dashboard-ledger-row>b{color:#a7b2ba;font-size:18px;font-weight:400}
.dashboard-empty{padding:24px 10px;color:#9ba6af;font-size:12px;text-align:center}
.dashboard-disclaimer{margin:0;padding:2px 4px;color:#98a3ad;font-size:10px;text-align:right}
.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}
@media(max-width:1050px){.dashboard-main-grid,.dashboard-lower-grid{grid-template-columns:minmax(0,1.2fr) minmax(270px,.8fr)}.dashboard-metrics{gap:10px}.dashboard-metric{padding:16px}.dashboard-chart-card,.dashboard-shortcuts-card,.dashboard-recent-card,.dashboard-ledger-card{padding:18px}}
@media(max-width:760px){.dashboard-page{padding:0 0 18px}.dashboard-welcome{align-items:flex-start;flex-direction:column;padding:19px;margin-bottom:12px}.dashboard-welcome h1{font-size:22px}.dashboard-today{align-items:flex-start;padding:0;border:0;background:transparent}.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:12px}.dashboard-metric{min-height:112px;padding:14px}.dashboard-metric>strong{font-size:22px}.dashboard-metric-icon{right:12px;top:12px;width:30px;height:30px}.dashboard-main-grid,.dashboard-lower-grid{grid-template-columns:1fr;gap:12px;margin-bottom:12px}.dashboard-chart-card,.dashboard-shortcuts-card,.dashboard-recent-card,.dashboard-ledger-card{padding:16px}.dashboard-chart{height:160px;gap:3px}.dashboard-chart-bars{width:min(20px,90%)}.dashboard-chart-total{flex-wrap:wrap}.dashboard-chart-total>span:last-child{width:100%;margin-left:0}.dashboard-disclaimer{text-align:left}}
@media(prefers-reduced-motion:reduce){.dashboard-metric,.dashboard-shortcut{transition:none}}

.hall-table td.hall-product-line{min-width:240px;max-width:460px;white-space:normal;text-align:left;line-height:1.6}

.order-classification-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.fields textarea[readonly]{background:#f3f6fa;color:#687b91;cursor:default}@media(max-width:700px){.order-classification-fields{grid-template-columns:1fr}}

.sales-grid{min-width:2050px}.sales-grid .sales-section-cell{min-width:46px;width:46px;padding:3px;text-align:center}.sales-section-mark{border:0;background:transparent;padding:4px 10px;font-size:23px;font-weight:600;line-height:24px;cursor:pointer}.sales-section-mark.filled{color:#269b52}.sales-section-mark.empty{color:#e44a4a}.sales-section-mark:hover{background:#eaf1fa;border-radius:3px}.order-section-document form{padding:16px}.section-info-table input{width:100%;min-width:90px}.section-info-table input[type=number]{min-width:58px;width:65px}.section-info-table input[type=date]{min-width:145px}.order-section-document [data-section-add]{margin-top:14px}.order-section-document .fields{grid-template-columns:repeat(2,minmax(0,1fr))}.order-section-document .vehicle-section>p{padding:12px 18px}.sales-grid td.sales-section-cell:last-child{position:static;box-shadow:none}

/* Compact sales overview: keep the ten entry controls visible on desktop widths. */
#main .table-wrap>table.sales-grid.compact-list{table-layout:fixed;width:100%;min-width:1500px!important;font-size:11px}
#main .sales-grid.compact-list th{height:28px;padding:4px 2px;white-space:normal;line-height:14px;font-size:11px;min-width:0}
#main .sales-grid.compact-list td{height:28px;padding:1px 3px;line-height:18px;min-width:0;max-width:none;overflow:hidden;text-overflow:ellipsis}
#main .sales-grid .route-cell{width:auto;max-width:none}
#main .sales-grid .link{padding:1px 0;font-size:11px}
#main .sales-grid .classification-cell{width:100%;min-width:0;max-width:100%;height:26px}
#main .sales-grid .classification-cell .order-classification-select,#main .sales-grid .classification-cell .order-classification-readonly{height:24px;min-height:24px;padding:1px 10px 1px 1px;font-size:11px}
#main .sales-grid .cost-mark-trigger{width:100%;height:24px;padding:1px 5px;gap:3px;font-size:11px}
#main .sales-grid .sales-section-cell{min-width:0;width:auto;padding:0}
#main .sales-grid .sales-section-mark{font-size:20px;line-height:24px;width:30px;height:26px;padding:0 3px}
#main .sales-grid .badge{padding:2px 3px;font-size:10px}
#main .sales-grid th:last-child,#main .sales-grid td:last-child{position:static;box-shadow:none}
.sales-orders .table-wrap{min-height:0;max-height:calc(100vh - 270px)}

#main .sales-grid .sales-route-link{display:block;width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:left}

.sales-filter .sales-more-fields[hidden]{display:none!important}
.sales-filter .sales-more-fields{width:100%;border-top:1px solid #e1eaf5;padding-top:10px;margin-top:8px}
.sales-filter .query-actions{gap:8px}
.sales-filter .sales-more-toggle{padding:3px 9px;color:#3973aa}
/* Order details: compact overview and daily itinerary. */
#main .order-document-sections{flex-wrap:wrap;gap:0;padding:0 6px}
#main .order-document-sections button{padding:9px 12px;font-size:12px;border-radius:0}
#main .order-document .editor-scroll{padding:10px}
#main .compact-order-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid #d9e4ef;border-left:1px solid #d9e4ef;margin:0 0 10px;font-size:12px}
#main .vehicle-document>.compact-order-summary{margin:10px}
#main .compact-order-pair{display:flex;min-width:0;border-right:1px solid #d9e4ef;border-bottom:1px solid #d9e4ef;min-height:32px}
#main .compact-order-pair>span{display:flex;align-items:center;justify-content:center;flex:0 0 82px;background:#f1f6fc;color:#4b6e91;border-right:1px solid #d9e4ef;padding:5px}
#main .compact-order-pair>strong{align-self:center;min-width:0;padding:5px 8px;font-weight:400;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.4}
#main .compact-order-pair.route-pair{grid-column:span 2}
#main .order-document [data-order-panel=basic]>.fields{padding:8px;gap:6px 12px;margin-bottom:8px;border-radius:0}
#main .order-document [data-order-panel=basic] .fields label{display:grid;grid-template-columns:96px minmax(0,1fr);align-items:center;gap:6px;font-size:12px}
#main .order-document [data-order-panel=basic] .fields input,#main .order-document [data-order-panel=basic] .fields select{height:30px;border-radius:2px;padding:3px 6px}
#main .order-document [data-order-panel=basic] .fields textarea{min-height:50px;height:56px;padding:5px;border-radius:2px}
#main .order-document [data-order-panel=basic] .order-classification-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#main .order-document .read-note small{margin:0 0 3px}
#main .order-document .read-note p{margin:0;font-size:12px;line-height:1.5}
#main .order-document [hidden]{display:none!important}
#main .daily-route-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 8px;font-size:12px}
#main .daily-route-toolbar .btn{min-height:27px;padding:4px 9px;font-size:12px}
#main .daily-route-toolbar>span{margin-left:auto;color:#7a91a8}
#main .daily-route-table{table-layout:fixed;min-width:1246px;width:100%;font-size:12px}
#main .daily-route-table th,#main .daily-route-table td{padding:3px;border:1px solid #dce5ef;text-align:left;vertical-align:middle;white-space:normal}
#main .daily-route-table th{height:28px;background:#edf3fa;text-align:center}
#main .daily-route-table input,#main .daily-route-table select,#main .daily-route-table textarea{width:100%;min-width:0;max-width:100%;height:29px;padding:3px 5px;font-size:12px;border:1px solid #c6daed;border-radius:2px}
#main .daily-route-table textarea{height:38px;min-height:38px;resize:vertical}
#main .daily-route-table .query-date-input{min-width:0;width:100%}
#main .daily-route-table .daily-row-actions{text-align:center}
#main .daily-itinerary .daily-route-toolbar{padding:10px 12px;margin:0;border:1px solid #e5e5e5;background:#fff;color:#172b40}
#main .daily-route-table{min-width:1020px;color:#111}
#main .daily-route-table th{height:38px;background:#e2e2e2;color:#111;font-weight:400}
#main .daily-route-table th,#main .daily-route-table td{border-color:#e5e5e5}
#main .daily-route-table td{height:58px;padding:6px 10px;text-align:center}
#main .daily-route-table td:nth-child(4){text-align:left!important}
#main .daily-route-table td{color:#111!important}
#main .daily-weekday{display:block;margin-top:3px;font-size:12px;color:inherit;text-align:center}
#main .daily-row-actions button{padding:3px;font-size:12px}
#main .daily-itinerary>.btn{margin-top:10px}
#main .daily-itinerary .hint{padding:8px 0;margin:0}
@media(max-width:1000px){#main .compact-order-summary{grid-template-columns:repeat(2,minmax(0,1fr))}#main .order-document [data-order-panel=basic] .fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){#main .compact-order-summary{grid-template-columns:1fr}#main .compact-order-pair.route-pair{grid-column:auto}#main .order-document [data-order-panel=basic] .fields{grid-template-columns:1fr}#main .order-document [data-order-panel=basic] .order-classification-fields{grid-template-columns:1fr}}

/* Inset separators and positioned controls preserve guest column dimensions. */
[data-section="guests"] th:not(:last-child),[data-section="guests"] td:not(:last-child){box-shadow:inset -1px 0 #d4dfeb}
[data-section="guests"] td{position:relative}
.guest-copy-button{position:absolute;right:auto;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:16px;height:18px;padding:0;border:0;background:transparent;color:#337fbd;cursor:pointer}
.guest-copy-button:hover{color:#145b97;background:#eaf3fc}
.guest-copy-button:focus-visible{outline:2px solid #337fbd}
[data-section="guests"] [data-guest-sequence]{min-width:42px;text-align:center}
#main [data-section="guests"] [data-guest-summary]{padding:8px 0;text-align:left!important;background:#f5f8fc;font-weight:500;white-space:normal}

/* Vehicle detail grid follows the supplier / driver reference. */
#main .order-vehicle-grid{table-layout:fixed;width:100%;min-width:2000px;font-size:12px;color:#111;border-collapse:collapse}
#main .order-vehicle-grid th,#main .order-vehicle-grid td{border:1px solid #cfcfd3;padding:3px;text-align:center!important;vertical-align:middle;color:#111;white-space:normal}
#main .order-vehicle-grid th{height:28px;background:#eeeef1;font-weight:600}
#main .order-vehicle-grid tbody td{height:48px}
#main .order-vehicle-grid input,#main .order-vehicle-grid select{width:100%;min-width:0!important;max-width:100%;height:27px;padding:3px;font-size:12px;color:#111;background:#f7f7f9;border:1px solid #b6c4eb;border-radius:3px}
#main .order-vehicle-grid input:disabled,#main .order-vehicle-grid select:disabled{opacity:1;color:#111;-webkit-text-fill-color:#111}
#main .order-vehicle-grid tfoot td{height:44px;background:#fff;font-weight:400}
#main .order-vehicle-grid .vehicle-grid-add{margin:0;width:30px;height:22px;padding:0;border:1px solid #b0b5f5;border-radius:2px;background:#7779f4;color:#fff;font-size:22px;line-height:18px;cursor:pointer}
#main .order-section-document .vehicle-section:has(.order-vehicle-grid){border:0;border-radius:0;box-shadow:none;background:transparent;margin:0}
#main .order-section-document .vehicle-section:has(.order-vehicle-grid)>form{padding:0}
#main .order-hotel-grid{min-width:1800px}
#main .order-hotel-grid textarea{width:100%;min-width:0;height:40px;min-height:40px;padding:3px;border:1px solid #b6c4eb;border-radius:3px;background:#f7f7f9;color:#111;font-size:12px;resize:vertical}
#main .order-guide-grid{min-width:1800px}
#main .order-guide-grid textarea{width:100%;min-width:0;height:42px;min-height:42px;padding:3px;border:1px solid #b6c4eb;border-radius:3px;background:#f7f7f9;color:#111;font-size:12px;resize:vertical}
#main .order-meal-grid{min-width:1750px}
#main .order-meal-grid th{height:40px;background:#f2f2f2;font-weight:400}
#main .order-meal-grid tbody td{height:40px;border-color:#e1e1e1;background:#fff}
#main .order-meal-grid tbody tr:nth-child(even) td{background:#f2f2f2}
#main .order-meal-grid input,#main .order-meal-grid select,#main .order-meal-grid textarea{width:100%;min-width:0;max-width:100%;height:30px;padding:3px;border:1px solid transparent;background:transparent;color:#111;font-size:12px;text-align:center;outline-offset:0}
#main .order-meal-grid textarea{text-align:left;resize:vertical;min-height:30px}
#main .order-meal-grid input:focus,#main .order-meal-grid select:focus,#main .order-meal-grid textarea:focus{border-color:#b6c4eb;background:#fff}
#main .order-meal-grid tfoot td{height:40px;border-color:#e1e1e1}
#main .order-meal-grid .meal-amount-formula{color:#f4511e;font-weight:600}
#main .order-insurance-grid{min-width:1800px}
#main .order-insurance-grid textarea{width:100%;min-width:0;height:40px;min-height:40px;padding:3px;border:1px solid #b6c4eb;border-radius:3px;background:#f7f7f9;color:#111;font-size:12px;resize:vertical}
#main .order-gift-grid{min-width:1100px}
#main .order-gift-grid th{height:28px;border-bottom:1px solid #efc65b}
#main .order-gift-grid tbody td{height:30px;padding:1px}
#main .order-gift-grid input{height:26px}
#main .order-gift-grid tfoot td{height:25px}
#main .order-transport-grid{min-width:1800px}
#main .order-transport-grid th{border-bottom:1px solid #efc65b}
#main .order-transport-grid textarea{width:100%;min-width:0;height:40px;min-height:40px;padding:3px;border:1px solid #b6c4eb;border-radius:3px;background:#fff;color:#111;font-size:12px;resize:vertical}
#main .income-reference-section{margin:0;padding:0;border:0;background:#fff}
#main .income-reference-section .income-edit-toolbar{display:flex;align-items:center;justify-content:flex-start;gap:6px;padding:8px 10px;margin:0;border-bottom:1px solid #eee}
#main .income-reference-section .income-review-state{margin-left:auto}
#main .income-reference-section .income-edit-toolbar .btn{min-height:28px;padding:4px 10px;font-size:12px}
#main .income-reference-grid{table-layout:fixed;min-width:1100px;width:100%;border-collapse:collapse;font-size:12px;color:#111}
#main .income-reference-grid th,#main .income-reference-grid td{padding:3px;border:1px solid #e1e1e1;text-align:center!important;vertical-align:middle;color:#111;white-space:normal}
#main .income-reference-grid th{height:40px;background:#f2f2f2;font-weight:400}
#main .income-reference-grid tbody td{height:40px;background:#fff}
#main .income-reference-grid tbody tr:nth-child(even) td{background:#f2f2f2}
#main .income-reference-grid input,#main .income-reference-grid select{width:100%;min-width:0;height:30px;padding:3px;border:1px solid transparent;background:transparent;font-size:12px;text-align:center;color:#111}
#main .income-reference-grid input:focus,#main .income-reference-grid select:focus{background:#fff;border-color:#b6c4eb}
#main .income-reference-grid tfoot td{height:40px;background:#fff}
.income-history-dialog{max-width:850px;width:80%;border:1px solid #cbd7e3;border-radius:4px;padding:18px}
.income-history-dialog>div{max-height:60vh;overflow:auto}
#main .income-reference-section .income-edit-toolbar{gap:0;flex-wrap:wrap}
#main .income-reference-section .income-edit-toolbar>strong{margin-right:8px;font-weight:400}
#main .income-reference-section .income-edit-toolbar>.btn{border-radius:0;margin-left:-1px;background:#fff;border-color:#ddd;color:#555;white-space:nowrap}
#main .income-reference-section .income-edit-toolbar>.btn>span{font-size:12px;color:#888}
.income-template-dialog{width:520px;max-width:90vw;border:1px solid #cbd7e3;border-radius:4px;padding:20px}
.income-template-dialog label{display:grid;gap:8px}
.income-template-dialog input,.income-template-dialog select{width:100%;height:34px;padding:5px;border:1px solid #cbd7e3}
.income-template-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
#main .expense-reference-section{background:#fff;padding-top:0}
#main .expense-reference-section .income-edit-toolbar{background:#fff}
#main .expense-reference-grid tbody tr:nth-child(odd) td{background:#edffd6}
#main .expense-reference-grid tbody tr:nth-child(even) td{background:#f2f2f2}
/* Single-order accounting follows the OA detail and table palette. */
#main .order-accounting-sheet{box-sizing:border-box;width:100%;max-width:none;min-width:1080px;margin:0;padding:4px 0 6px;background:#fff;color:#294461;font-family:inherit;font-size:13px}
#main .order-accounting-sheet>h2{text-align:left;margin:0 0 4px;padding:0;font-size:15px;line-height:20px;font-weight:600;color:#294c6b}
#main .order-accounting-sheet table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse;margin:0;background:#fff}
#main .order-accounting-sheet th,#main .order-accounting-sheet td{border:1px solid #d9e4ef;padding:3px 6px;height:auto;line-height:18px;font-size:13px;white-space:normal;overflow-wrap:anywhere;color:#294461;vertical-align:middle;text-align:center}
#main .order-accounting-sheet th{background:#edf4fc;font-weight:500;color:#53718e}
#main .order-accounting-sheet table.accounting-overview:not(#recordForm table) th{background:#f5f8fc;text-align:center!important;white-space:nowrap}
#main .order-accounting-sheet table.accounting-overview:not(#recordForm table) td{text-align:center!important}
#main .order-accounting-sheet .accounting-overview tr:nth-child(n+3) td{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
#main .order-accounting-sheet .accounting-band{margin-top:6px;border:1px solid #d9e4ef;border-bottom:0;background:#edf4fc;padding:3px 8px;line-height:18px;color:#365c80;font-size:13px;font-weight:600}
#main .order-accounting-sheet .accounting-category+.accounting-category{margin-top:0}
#main .order-accounting-sheet tbody tr:nth-child(even)>td{background:#f9fbfe}
#main .order-accounting-sheet tbody tr:hover>td{background:#f0f6fd}
#main .order-accounting-sheet .accounting-category-name{background:#f0f5fb;color:#365c80;font-weight:500}
#main .order-accounting-sheet table:not(#recordForm table) td.accounting-money{text-align:center!important;white-space:nowrap;overflow-wrap:normal;font-variant-numeric:tabular-nums}
#main .order-accounting-sheet tbody tr.accounting-subtotal td{background:#eef5fc;font-weight:600;color:#365c80;border-top-color:#c3d7ea}
#main .order-accounting-sheet table:not(#recordForm table) .accounting-subtotal td:first-child{text-align:center!important;padding-left:8px}
#main .order-accounting-sheet .accounting-grand-total>*{background:#e8f1fb;font-size:13px;line-height:20px;font-weight:600;color:#294c6b;border-top:2px solid #b8cfe6;font-variant-numeric:tabular-nums}
#main .order-accounting-sheet .accounting-footnote{margin:4px 0 0;padding:0;color:#7c90a5;font-size:12px;line-height:16px}
#main [data-order-panel="finance"]>[data-accounting-status]{margin:0;padding:3px 0 0;color:#7c90a5;font-size:12px;line-height:16px}
#main .order-accounting-sheet .accounting-overview col:nth-child(odd){width:80px!important}
#main .order-accounting-sheet .accounting-category th.accounting-category-name{width:52px}
@media print{#main .order-accounting-sheet{min-width:0;padding:0;font-size:10px}#main .order-accounting-sheet th,#main .order-accounting-sheet td{font-size:10px;padding:3px 4px;line-height:15px}#main .order-accounting-sheet .accounting-overview tr:nth-child(n+3) td,#main .order-accounting-sheet .accounting-grand-total>*{font-size:11px}#main .order-accounting-sheet thead{display:table-header-group}#main .order-accounting-sheet tr{break-inside:avoid}#main [data-order-panel="finance"]>[data-accounting-status]{display:none}}

#main [data-order-panel="finance"]{overflow-x:auto}

/* Sales order detail follows the three-column basic-data reference. */
#main .sales-order-basic-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:0;background:#fff;border:1px solid #d9e4ef;margin-bottom:12px;font-size:13px}
#main .sales-order-basic-item{display:grid;grid-template-columns:100px minmax(0,1fr);align-items:stretch;gap:0;min-width:0;min-height:32px;padding:0;line-height:20px;border-right:1px solid #d9e4ef;border-bottom:1px solid #d9e4ef}
#main .sales-order-basic-item>span{display:flex;align-items:center;padding:4px 10px;border-right:1px solid #d9e4ef;color:#536d86;white-space:nowrap}
#main .sales-order-basic-item>strong{min-width:0;padding:4px 10px;font-weight:400;color:#294461;white-space:pre-wrap;overflow-wrap:anywhere}
#main .sales-order-basic-item.row-end-item{border-right:0}
#main .sales-order-basic-item.wide-basic-item{grid-column:span 2}
#main .sales-order-basic-item.order-note-item{grid-column:1/-1;border-right:0;border-bottom:0}
#main .order-basic-additional{border:1px solid #d9e4ef;margin-bottom:12px}
#main .order-basic-additional>summary{padding:10px 14px;color:#536d86;cursor:pointer;font-size:12px}
@media(max-width:650px){#main .sales-order-basic-summary{grid-template-columns:1fr}#main .sales-order-basic-item{border-right:0}#main .sales-order-basic-item.wide-basic-item{grid-column:auto}}

/* Center non-editable classification values inside compact cells. */
#main .sales-grid .classification-cell .order-classification-readonly{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:0 2px;line-height:12px}
#main .sales-grid .order-classification-readonly .classification-readonly-value{display:block;flex:0 0 12px;width:100%;min-width:0;line-height:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

#main .vbk-order-notes{border:1px solid #d9e4ef;background:#fff;margin-bottom:12px;font-size:13px}
#main .vbk-order-notes>h3{margin:0;padding:8px 12px;background:#f3f5f8;color:#294461;font-size:13px;font-weight:500}
#main .vbk-order-note{display:grid;grid-template-columns:100px minmax(0,1fr);border-top:1px solid #edf1f6;line-height:20px}
#main .vbk-order-note>span{padding:6px 10px;color:#536d86}
#main .vbk-order-note>p{margin:0;padding:6px 10px;color:#294461;white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}

/* Match the compact, neutral table cells used by the transport reference. */
#main .sales-order-basic-summary{border:0;gap:2px;margin-bottom:2px;font-size:12px}
#main .sales-order-basic-item{border:1px solid #e1e1e1!important;grid-template-columns:108px minmax(0,1fr);min-height:36px;line-height:20px}
#main .sales-order-basic-item>span{background:#fafafa;border-right:1px solid #e1e1e1;color:#172b40;padding:7px 12px;justify-content:center}
#main .sales-order-basic-item>strong{color:#172b40;padding:7px 12px}
#main .sales-order-transport{margin-bottom:10px;display:grid;gap:2px;font-size:12px}
#main .sales-transport-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px}
#main .sales-order-transport .sales-order-basic-item>span{justify-content:center}
#main .vbk-order-notes{border-color:#e1e1e1;font-size:12px}
#main .vbk-order-note{grid-template-columns:108px minmax(0,1fr);border-color:#e1e1e1}
#main .vbk-order-note>span{display:flex;align-items:center;justify-content:center;background:#fafafa;border-right:1px solid #e1e1e1;color:#172b40}
#main .vbk-order-note>p{color:#172b40}
@media(max-width:650px){#main .sales-transport-row{grid-template-columns:1fr}}

#main .order-ticket-grid{min-width:1420px;border-collapse:collapse;table-layout:fixed}
#main .order-ticket-grid th{height:29px;background:#efefef;color:#111;border:1px solid #ccc;border-bottom:1px solid #f0c456;font-weight:600}
#main .order-ticket-grid td{height:44px;padding:2px;border:1px solid #ccc;background:#fff;color:#111}
#main .order-ticket-grid input,#main .order-ticket-grid select,#main .order-ticket-grid textarea{width:100%;min-width:0;max-width:100%;height:28px;padding:3px;border:1px solid #a9c3ff;border-radius:3px;background:#f5f5f5;color:#111;font-size:12px}
#main .order-ticket-grid input[type=number]{text-align:center}
#main .order-ticket-grid textarea{height:38px;min-height:38px;resize:vertical}
#main .order-ticket-grid tfoot td{height:30px;background:#fff}

#main .order-ticket-grid [data-arr-amount],#main .order-ticket-grid [data-ticket-amount]{display:block;height:28px;padding:4px;border:1px solid #a9c3ff;border-radius:3px;background:#f5f5f5;text-align:right}

#main .order-document .editor-scroll:has(>[data-order-panel=guests]:not([hidden])),#main .order-document .editor-scroll:has(>[data-order-panel=arrangements]:not([hidden])){padding:0}
#main .order-document [data-order-panel=guests] .detail-section,#main .daily-itinerary{margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent}
#main .order-document [data-order-panel=guests] .table-wrap,#main .daily-itinerary .table-wrap{margin:0;padding:0;border:0;border-radius:0}
#main .order-document .order-guests-grid{margin:0;min-width:1750px}
#main .order-document .order-guests-grid th:first-child,#main .daily-route-table th:first-child{width:48px;padding:3px;text-align:center}
#main .daily-route-table{table-layout:fixed;min-width:1100px}
#main .daily-route-table [data-daily-sequence]{text-align:center}
#main .daily-route-table td:has([data-daily-field=route]){text-align:left}
#main .daily-route-table input,#main .daily-route-table textarea,#main .daily-route-table select{width:100%;min-width:0;box-sizing:border-box}
#main .income-reference-grid .vehicle-grid-add{margin:0;width:30px;height:22px;padding:0;border:1px solid #b0b5f5;border-radius:2px;background:#7779f4;color:#fff;font-size:22px;line-height:18px;cursor:pointer}

#main .order-document>.dialog-head,#main .order-document>.vehicle-page-head{height:60px;min-height:60px;max-height:60px;box-sizing:border-box;padding:12px 18px;display:flex;align-items:center;justify-content:space-between;gap:16px;overflow:hidden;border-bottom:1px solid #d1dfef;background:#edf4fc}
#main .order-document>.vehicle-page-head>div{display:flex;align-items:center;gap:18px;min-width:0;overflow:hidden}
#main .order-document>.vehicle-page-head h1{font-size:16px;line-height:24px;flex-shrink:0;margin:0}
#main .order-document>.vehicle-page-head span,#main .order-document>.dialog-head>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:24px;min-width:0}
#main .order-document>.vehicle-page-head>button,#main .order-document>.dialog-head>button{flex-shrink:0}
html{scrollbar-gutter:stable}

#main .order-document .order-guests-grid{table-layout:fixed;min-width:1668px;width:100%}
#main .order-document .order-guests-grid td,#main .order-document .order-guests-grid th{min-width:0;padding:7px 4px;overflow-wrap:anywhere}
#main .order-document .order-guests-grid td input{min-width:0;width:100%;box-sizing:border-box}
#main .order-document .order-guests-grid td .query-date-input{min-width:0;width:100%}

#main .order-document .order-guests-grid td:nth-child(6){white-space:nowrap;overflow-wrap:normal;word-break:normal}

#main .order-document .order-guests-grid{min-width:1873px}
#main .order-document .order-guests-grid td:has(.guest-copy-button){padding-left:8px;padding-right:32px}
#main .order-document .order-guests-grid td:nth-child(6){overflow:hidden;text-overflow:ellipsis}

#main .order-document .order-guests-grid tbody td{height:28px;padding-top:3px;padding-bottom:3px;line-height:20px}
#main .order-document .order-guests-grid tbody input{height:28px;padding-top:2px;padding-bottom:2px}

/* Shared add control and sequence column across order detail tabs. */
#main .order-document :is(.order-vehicle-grid,.income-reference-grid)>colgroup>col:first-child{width:48px!important}
#main .order-document :is(.order-vehicle-grid,.income-reference-grid)>thead>tr>th:first-child,
#main .order-document :is(.order-vehicle-grid,.income-reference-grid)>tbody>tr>td:first-child{width:48px!important;min-width:48px;max-width:48px;box-sizing:border-box;padding:3px 4px!important;text-align:center;vertical-align:middle;white-space:nowrap}
#main .order-document :is(.order-vehicle-grid,.income-reference-grid) .vehicle-grid-add{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;box-sizing:border-box;width:30px;height:22px;min-width:30px;min-height:22px;margin:0!important;padding:0;border:1px solid #b0b5f5;border-radius:2px;background:#7779f4;color:#fff;font-family:Arial,sans-serif;font-size:22px;font-weight:400;line-height:1;cursor:pointer}

#main .order-resource-itinerary{margin:18px 0 0;padding:0;border-top:1px solid #dce6f0}
#main .order-resource-itinerary>h2{margin:0;padding:10px 14px;background:#f3f7fc;color:#446c93;font-size:13px;font-weight:600}

#main .order-section-document .order-recorded-costs{width:100%;box-sizing:border-box;margin:12px 0 0;border-radius:0}
#main .order-section-document .order-recorded-costs>p{margin:0;padding:8px 14px}
#main .order-section-document .order-section-status-hint{margin:0;padding:4px 14px 8px;line-height:1.5}

#main .order-resource-itinerary{margin-top:0;border-top:0}
#main :is([data-section-form],[data-arr-form])>.table-wrap:has(+.order-resource-itinerary){margin-bottom:0}
#main .order-resource-itinerary>h2{margin-top:0}

#main .insurance-guest-info{margin:0;padding:0;border:0}
#main .insurance-guest-info>h2{margin:0;padding:10px 14px;background:#f3f7fc;font-size:13px;color:#446c93}
#main .insurance-guest-info .detail-section{margin:0;border:0;border-radius:0}
#main .order-section-bottom-notes{clear:both;width:100%;margin:0}
#main .order-section-bottom-notes>.hint{margin:0;padding:4px 14px;line-height:1.5}

.hotel-state-symbol{display:inline-block;min-width:22px;text-align:center;font-size:24px;line-height:28px;font-weight:600}.hotel-state-none{color:#e44a4a}.hotel-state-pending{color:#8295a7}.hotel-state-partial{color:#338bc4}.hotel-state-complete{color:#269b52}.hotel-legend .hotel-state-symbol{font-size:19px}

.hotel-state-symbol,.hotel-legend .hotel-state-symbol{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;min-width:24px;vertical-align:middle;line-height:1}.hotel-state-symbol svg{display:block;width:22px;height:22px;flex-shrink:0}.hotel-state-none{color:#e44a4a}.hotel-state-pending{color:#8295a7}.hotel-state-partial{color:#338bc4}.hotel-state-complete{color:#269b52}

#main .hotel-arrangement-card{margin-bottom:0}
#main .hotel-sales-orders{margin-top:0;margin-bottom:0}
#main .hotel-sales-orders>h2{margin:0;padding:6px 14px;font-size:14px;line-height:20px}
#main .hotel-compact-pagination{display:flex;align-items:center;justify-content:center;gap:10px;padding:4px 10px;min-height:32px;box-sizing:border-box}
#main .hotel-compact-pagination .btn{min-height:24px;height:26px;padding:2px 10px;line-height:20px;font-size:12px}
#main .hotel-sales-orders .sales-route-link{max-width:7em}

#main .hotel-sales-orders .sales-grid{min-width:0;table-layout:fixed}
#main .hotel-sales-orders .sales-grid .hotel-order-classification{white-space:nowrap;overflow-wrap:normal;padding:3px 8px}
#main .hotel-sales-orders .sales-grid th:nth-child(n+16){padding:3px 0;white-space:normal;word-break:break-all;line-height:14px}
#main .hotel-sales-orders .sales-grid td.sales-section-cell{width:28px;min-width:0;padding:0;text-align:center}
#main .hotel-sales-orders .sales-grid .sales-section-mark{width:26px;padding:0;font-size:20px}

#main .vehicle-arrangement-reference{min-width:2200px;table-layout:fixed}
#main .vehicle-arrangement-reference th,#main .vehicle-arrangement-reference td{text-align:center;vertical-align:middle;font-size:12px;border:1px solid #cadbf0}
#main .vehicle-arrangement-reference th{background:linear-gradient(#edf6ff,#c5dcf7);color:#172f45;white-space:nowrap}
#main .vehicle-arrangement-reference th:first-child{width:44px}
#main .vehicle-arrangement-reference th:nth-child(2){width:150px}
#main .vehicle-arrangement-reference th:nth-child(15),#main .vehicle-arrangement-reference th:nth-child(17){width:200px}
#main .vehicle-arrangement-reference th:last-child{width:240px}
#main .vehicle-arrangement-reference .vehicle-arrangement-text{white-space:pre-wrap;overflow-wrap:anywhere}
#main .vehicle-arrangement-plain{max-height:180px;overflow-y:auto;text-align:left;white-space:pre-wrap;padding:4px}

#main .hotel-sales-orders{width:100%;box-sizing:border-box}
#main .hotel-sales-orders .sales-grid.compact-list td:not(.route-cell){white-space:nowrap;overflow:visible;text-overflow:clip}
#main .hotel-sales-orders .sales-grid .badge{white-space:nowrap}

#main .sales-grid thead th:last-child{position:sticky;top:0;right:auto;z-index:3}

.resource-select{width:64px!important;min-width:64px;text-align:center!important}.resource-select input{width:14px!important;height:14px!important;min-height:0!important;padding:0!important;cursor:pointer}.resource-row-actions{white-space:nowrap!important;min-width:148px}.resource-row-actions .link{display:inline-block!important;width:auto!important;margin:0!important;padding:0 2px!important;vertical-align:middle}.resource-action-divider{display:inline-block;margin:0 3px;color:#8a9bad;vertical-align:middle}.resource-batch-actions{width:64px!important;min-width:64px;box-sizing:border-box;text-align:center!important;padding:4px 0!important;white-space:nowrap!important}.resource-batch-actions .link{font-size:12px;padding:0!important;white-space:nowrap!important}

.tab-tools-trigger{position:sticky;right:0;display:flex;align-items:center;justify-content:center;align-self:stretch;flex:0 0 40px;margin-left:auto;padding:0;border:0;border-left:1px solid #555;background:#606060;color:#fff;line-height:1;z-index:5}.tab-tools-trigger svg{display:block;flex-shrink:0;pointer-events:none}.tab-tools-trigger:hover{background:#505050}.workspace-tab-menu{position:fixed;z-index:1000;width:132px;padding:5px 0;background:#fff;border:1px solid #ddd;box-shadow:0 3px 10px #0002}.workspace-tab-menu[hidden]{display:none}.workspace-tab-menu button{display:block;width:100%;padding:9px 16px;border:0;background:#fff;text-align:left;color:#666;white-space:nowrap}.workspace-tab-menu button:hover,.workspace-tab-menu button:focus-visible{background:#edf4fc;color:#326caa}.tab-logo-hidden{display:none!important}.workspace-help-dialog{width:min(580px,90vw);border:1px solid #dbe4ed;border-radius:6px;padding:24px;color:#334c66}.workspace-help-dialog p{margin-top:18px;color:#334c66}.workspace-help-dialog li{margin:8px 0;line-height:1.7}

.workspace>.tabs{height:32px;min-height:32px;padding:0 0 0 12px;margin-top:0;gap:4px}.workspace>.tabs .tab{border-radius:0}.workspace>.tabs .tab-tools-trigger{height:31px;margin-top:0;margin-bottom:0;border-radius:0}

.resource-submit-footer{text-align:center!important;white-space:nowrap!important}.resource-submit-footer .link{padding:0!important;font-size:12px}

.resource-voucher-cell{text-align:center!important;white-space:nowrap!important;min-width:90px}.resource-voucher-cell .link{padding:0 2px!important}

.workspace>.tabs{display:flex;align-items:stretch;overflow:visible;padding:0;height:32px;min-height:32px;gap:0}.workspace-tab-strip{display:flex;align-items:stretch;gap:4px;flex:1 1 0;min-width:0;height:31px;padding-left:12px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.workspace-tab-strip::-webkit-scrollbar{display:none}.workspace-tab-strip>.tab{height:31px;flex:0 0 auto}.workspace-tab-strip .tab-label{height:31px;display:flex;align-items:center;padding-top:0;padding-bottom:0;line-height:1}.workspace-tab-strip .tab-close{height:31px;display:flex;align-items:center;justify-content:center;padding:0;line-height:1}.workspace>.tabs .tab-tools-trigger{position:relative;flex:0 0 40px;margin:0;height:31px}

#navGroups .nav-subgroup{margin:2px 0 4px 12px}#navGroups .nav-subgroup>summary{font-size:12px;min-height:36px;padding:8px}#navGroups .nav-subgroup>.nav-item{margin-left:12px;width:calc(100% - 12px)}

.unit-review-filter{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px;background:#fff}.unit-review-filter label{font-size:11px;gap:3px}.unit-review-filter input{height:30px;max-width:180px;padding:4px 6px}.unit-review-status{display:flex}.unit-review-status button{border:1px solid #ddd;background:#f1f1f1;color:#333;padding:7px 10px}.unit-review-status button.active{background:#ff9200;border-color:#ff9200;color:white}#main .unit-review-grid{table-layout:auto;color:#111;font-size:12px}#main .unit-review-grid th{background:#e3e3e3;color:#111;text-align:center;padding:7px;border:1px solid #ddd}#main .unit-review-grid td{color:#111;text-align:center;padding:6px;border:1px solid #ddd;height:30px}#main .unit-review-grid tbody tr:nth-child(even){background:#f2f2f2}#main .unit-review-grid td[rowspan]{background:#fff;vertical-align:middle}#main .unit-review-grid .unit-review-outstanding{color:#f06445}#main .unit-review-grid tfoot td{background:#f1ffdb;font-weight:600}

#main .consultation-demand-tabs{display:flex;gap:26px;border-bottom:1px solid #edf0f5;overflow-x:auto;margin:0 0 28px;padding:0;white-space:nowrap}
#main .consultation-demand-tabs button{flex:0 0 auto;background:none;border:0;border-bottom:3px solid transparent;border-radius:0;color:#31567e;font-size:14px;font-weight:400;padding:10px 0 13px;cursor:pointer}
#main .consultation-demand-tabs button.active{color:#125aff;border-bottom-color:#125aff}
#main .consultation-demand-tabs button:focus-visible{outline:2px solid #125aff;outline-offset:-2px}
#main .consultation-query{margin:0;padding:0;color:#31567e}
#main .consultation-query-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 24px}
#main .consultation-query-grid>label{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0;font-size:13px;font-weight:400;color:#31567e;text-align:left}
#main .consultation-query-grid input,#main .consultation-query-grid select{width:100%;min-width:0;max-width:none;box-sizing:border-box;height:32px;margin:0;padding:4px 8px;border:1px solid #cbd4e2;border-radius:2px;background:#fff;color:#31567e;font-size:13px;font-weight:400}
#main .consultation-query-grid input::placeholder{color:#b8c3d1}
#main .consultation-date-range{display:flex;align-items:center;gap:2px;min-width:0;height:40px;border:1px solid #cbd4e2;border-radius:2px;background:#fff}
#main .consultation-date-range input{flex:1 1 0;width:0;border:0;background:transparent;padding:4px 6px;height:30px;font-size:12px}
#main .consultation-date-range>span{color:#b8c3d1;flex:0 0 auto}
#main .consultation-date-range>.query-date-input{flex:1 1 0;min-width:0;width:0}
#main .consultation-date-range>.query-date-input input{width:100%;min-width:0}
#main .consultation-date-range>.query-date-input:first-child .query-calendar-trigger{display:none}
#main .consultation-date-range>.query-date-input:first-child input{padding-right:6px!important}
#main .consultation-date-range:focus-within{outline:2px solid #b3ceff}
#main .consultation-query-extra{margin-top:16px}
#main .consultation-query-extra[hidden]{display:none}
#main .consultation-query-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin:16px 0 14px}
#main .consultation-query-actions .btn{height:32px;min-width:68px;border-radius:2px;font-size:13px;border:1px solid #1659e8;background:#fff;color:#1659e8}
#main .consultation-query-actions .primary{background:#1659e8;color:#fff}
#main .consultation-query-actions .link{color:#125aff;font-size:13px;margin-right:14px}
#main .consultation-query-actions .link span{margin-left:6px}
#main .consultation-query-scope{font-size:12px;color:#8b9bb0;margin:0 0 18px}
@media(max-width:1200px){#main .consultation-query-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){#main .consultation-query-grid{grid-template-columns:minmax(0,1fr)}#main .consultation-query-actions{gap:8px}#main .consultation-demand-tabs{gap:18px}}

#main .consultation-query-grid>.consultation-query-field{display:flex;flex-direction:column;gap:6px;min-width:0;margin:0;font-size:13px;font-weight:400;color:#31567e;text-align:left}
#main .consultation-query-grid>label>input,#main .consultation-query-grid>label>select{height:32px}
#main .consultation-date-range{height:32px}
#main .consultation-date-range input{height:30px}
#main .consultation-query-help{color:#526985;cursor:help;font-size:14px;margin-left:3px}
#main .consultation-multiselect{position:relative;min-width:0}
#main .consultation-multiselect>summary{display:flex;align-items:center;min-height:32px;padding:3px 6px;margin:0;border:1px solid #cbd4e2;border-radius:2px;background:#fff;list-style:none;gap:4px;color:#31567e;font-size:13px;line-height:1.4}
#main .consultation-multiselect>summary::after{content:none}
#main .consultation-multiselect>summary::-webkit-details-marker{display:none}
#main .consultation-multiselect[open]>summary{border-color:#1659e8}
#main .consultation-multi-tags{display:flex;flex-wrap:wrap;gap:4px;min-width:0}
#main .consultation-multi-tag{display:inline-flex;align-items:center;gap:3px;max-width:100%;background:#f5f5f5;border:1px solid #cdd4df;border-radius:2px;padding:1px 5px;color:#31567e;overflow-wrap:anywhere}
#main .consultation-multi-tag button{border:0;background:transparent;padding:0;line-height:1;color:#6f8094;font-size:16px}
#main .consultation-multi-options{position:absolute;left:0;right:0;top:calc(100% + 3px);max-height:240px;overflow:auto;background:#fff;border:1px solid #d9e1ed;box-shadow:0 4px 12px #243c571f;z-index:20;padding:5px 0}
#main .consultation-multi-options>label{display:flex;flex-direction:row;align-items:center;gap:8px;margin:0;padding:8px 10px;font-size:14px;color:#31567e;cursor:pointer}
#main .consultation-multi-options>label:hover{background:#edf4ff}
#main .consultation-multi-options input[type=checkbox]{width:15px;height:15px;min-width:15px;margin:0;padding:0;accent-color:#1659e8}
#main .consultation-query-field:last-child .consultation-multi-options{top:auto;bottom:calc(100% + 3px)}

#main .consultation-orders-table thead th{position:relative;color:#000;font-weight:700}
#main .consultation-orders-table thead th,#main .consultation-orders-table .consultation-order-data td,#main .consultation-orders-table .consultation-order-meta td{padding-left:24px}
.consultation-sort-heading{display:flex;align-items:center;gap:6px;width:100%;border:0;padding:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
#consultationTimeSort{justify-content:space-between}
.consultation-sort-arrows{display:flex;flex-direction:column;font-size:9px;line-height:9px;color:#96a5be}
.consultation-sort-arrows .active{color:#125aff}
.consultation-sort-menu{position:fixed;inset:auto;margin:0;min-width:180px;padding:4px 0;border:1px solid #e4e9f1;border-radius:2px;background:#fff;box-shadow:0 4px 12px #243c5726;color:#31567e}
.consultation-sort-menu button{display:block;width:100%;border:0;background:#fff;padding:10px 14px;color:inherit;text-align:left;font-size:13px;cursor:pointer}
.consultation-sort-menu button:hover,.consultation-sort-menu button[aria-checked=true]{background:#e8eefc;color:#125aff}
#main .consultation-orders-table thead th:not(:last-child)::after{content:'|';position:absolute;right:0;top:50%;transform:translateY(-50%);color:#d1d8e1;font-weight:400}
#main .consultation-row-actions>div{display:flex;align-items:center;gap:10px;white-space:nowrap;line-height:1.8}
#main .consultation-row-actions>div+div{margin-top:4px}
#main .consultation-row-actions>div>span{color:#d1d8e1}
#main .consultation-row-actions .link{white-space:nowrap;font-size:13px;line-height:1.8}
#main .consultation-row-actions .link:disabled{opacity:1;cursor:default;color:#1768ff}
dialog:has(#consultationFollowDialog){width:min(1050px,94vw);max-width:1050px;border-radius:2px;background:#fff}
dialog:has(#consultationFollowDialog) .dialog-head{padding:18px 20px;background:#fff;border-bottom:1px solid #e1e5ec;font-size:18px;font-weight:600;color:#21375a}
dialog:has(#consultationFollowDialog) .dialog-head .link{font-size:26px;color:#53657e;font-weight:400;padding:0;line-height:1}
#consultationFollowDialog{font-size:15px;color:#435a7e;margin:0}
#consultationFollowDialog .consultation-follow-intro{padding:20px;border-bottom:1px solid #e1e5ec}
#consultationFollowDialog .consultation-follow-number{color:#243d65;margin:0 0 15px;font-size:16px}
#consultationFollowDialog .consultation-follow-notice{background:#e8eefc;padding:13px 20px;border-radius:2px;line-height:1.6;color:#536788;font-size:15px}
#consultationFollowDialog .consultation-follow-notice .link{color:#0757ff;padding:0 0 0 6px;font-size:15px}
#consultationFollowDialog .consultation-follow-body{padding:14px 20px 16px}
#consultationFollowDialog .consultation-follow-row{display:flex;align-items:center;gap:20px;margin:24px 0 0;min-width:0}
#consultationFollowDialog .consultation-follow-label{flex:0 0 196px;text-align:right;color:#2b426a;line-height:1.7;margin:0;display:block;font-size:15px}
#consultationFollowDialog .consultation-follow-row>label:not(.consultation-follow-label){display:inline-flex;align-items:center;flex-direction:row;gap:7px;font-size:15px;color:#4c6284;white-space:nowrap}
#consultationFollowDialog input[type=radio]{width:19px;height:19px;margin:0;padding:0;accent-color:#185be4;flex-shrink:0}
#consultationFollowDialog .consultation-note-row{align-items:flex-start}
#consultationFollowDialog .consultation-follow-note{position:relative;min-width:0;flex:1}
#consultationFollowDialog .consultation-follow-note textarea{width:100%;height:135px;min-height:135px;box-sizing:border-box;padding:12px 10px 28px;border:1px solid #cbd4e2;border-radius:2px;line-height:1.7;font-size:15px;resize:vertical;color:#435a7e}
#consultationFollowDialog .consultation-follow-note textarea::placeholder,#consultationFollowDialog input::placeholder{color:#bdc6d6}
#consultationFollowDialog .consultation-follow-note>span{position:absolute;bottom:11px;right:12px;pointer-events:none;color:#b6c1d1;font-size:16px}
#consultationFollowDialog .consultation-next-row{align-items:flex-start;margin-top:16px}
#consultationFollowDialog .consultation-next-row>.consultation-follow-label{padding-top:8px}
#consultationFollowDialog .consultation-next-row .query-date-input{width:270px;max-width:100%}
#consultationFollowDialog .consultation-next-row input{height:43px;font-size:15px;border-radius:2px;width:100%}
#consultationFollowDialog .consultation-follow-date-hint{color:#fa7d00;margin-top:7px;font-size:14px;line-height:1.6}
#consultationFollowDialog .consultation-group-row{gap:12px;margin-top:16px}
#consultationFollowDialog .consultation-group-row>select{border:0;width:50px;padding:5px 0;font-size:15px;background:#fff}
#consultationFollowDialog .consultation-group-row>label[for=consultationGroupRemark]{margin-left:30px}
#consultationFollowDialog .consultation-group-row>input{flex:0 1 380px;min-width:0;height:44px;font-size:15px;border-radius:2px}
#consultationFollowDialog .dialog-foot{padding:20px;background:#fff;border-top:1px solid #e1e5ec;gap:10px}
#consultationFollowDialog .dialog-foot .btn{min-width:80px;height:40px;border-radius:2px;font-size:15px}
#consultationFollowDialog .dialog-foot .primary{background:#1759e5;border-color:#1759e5}
#consultationFollowDialog .form-error{padding:0 20px 10px}
#consultationFollowDialog .form-error:empty{display:none}
#consultationFollowDialog .consultation-report-rules{color:#657894;font-size:13px;line-height:1.7;margin-top:12px}
#consultationFollowDialog .consultation-report-fields{display:grid;grid-template-columns:1fr 2fr;gap:16px;margin:20px 0 0 216px}
#consultationFollowDialog .consultation-report-fields label{font-size:14px;gap:6px}
#consultationFollowDialog .consultation-report-fields input,#consultationFollowDialog .consultation-report-fields select{width:100%;height:38px;min-width:0}
#consultationFollowDialog .consultation-report-fields[hidden]{display:none}
@media(max-width:700px){#consultationFollowDialog .consultation-follow-row{flex-wrap:wrap;gap:10px}#consultationFollowDialog .consultation-follow-label{flex:0 0 100%;text-align:left}#consultationFollowDialog .consultation-follow-note{flex:0 0 100%}#consultationFollowDialog .consultation-group-row>label[for=consultationGroupRemark]{margin-left:0}#consultationFollowDialog .consultation-report-fields{margin-left:0;grid-template-columns:1fr}#consultationFollowDialog .consultation-next-row>div{max-width:100%}}

.consultation-order-heading{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.consultation-order-heading .consultation-product-tag{font-size:13px;font-weight:400;white-space:nowrap}

.consultation-user-info-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.consultation-user-info-heading .link{padding:0;color:#1681f9;font-size:13px;font-weight:400;line-height:18px}
dialog:has(#consultationUserInfoForm){width:880px;max-width:calc(100vw - 24px);max-height:92vh;padding:0;border:1px solid #ddd;border-radius:4px;color:#555}
dialog:has(#consultationUserInfoForm) .dialog-head{padding:18px 26px;background:#fff;border-bottom:1px solid #e5e5e5;font-size:20px;font-weight:400;color:#444}
dialog:has(#consultationUserInfoForm) .dialog-head .link{padding:0;font-size:26px;color:#999}
#consultationUserInfoForm .consultation-user-info-body{padding:28px 44px 30px 30px}
#consultationUserInfoForm .consultation-user-info-row{display:grid;grid-template-columns:240px minmax(0,1fr);gap:10px;margin-bottom:20px;align-items:start}
#consultationUserInfoForm .consultation-user-info-row>label{display:block;text-align:right;line-height:38px;font-size:15px;color:#555}
#consultationUserInfoForm .consultation-user-info-control{max-width:360px;min-width:0}
#consultationUserInfoForm .consultation-user-info-control.wide{grid-column:auto;max-width:none}
#consultationUserInfoForm input,#consultationUserInfoForm select,#consultationUserInfoForm textarea{width:100%;min-width:0;height:38px;margin:0;padding:8px 12px;border:1px solid #d8d8d8;border-radius:4px;background:#fff;color:#555;font-size:14px}
#consultationUserInfoForm input::placeholder,#consultationUserInfoForm textarea::placeholder{color:#bbb}
#consultationUserInfoForm textarea{height:108px;resize:vertical}
#consultationUserInfoForm .consultation-user-info-sub{display:block;line-height:22px;margin:0 0 6px;color:#999;font-size:13px}
#consultationUserInfoForm input+.consultation-user-info-sub,#consultationUserInfoForm .consultation-user-info-phone+.consultation-user-info-sub{margin-top:8px}
#consultationUserInfoForm .consultation-user-info-phone{display:grid;grid-template-columns:94px minmax(0,1fr);gap:0}
#consultationUserInfoForm .consultation-user-info-people{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#consultationUserInfoForm .consultation-user-info-dates{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:10px;align-items:end}
#consultationUserInfoForm .consultation-user-info-dates>span{line-height:38px;color:#999}
#consultationUserInfoForm .required{color:#f44}
#consultationUserInfoForm .form-error{padding:0 26px}
#consultationUserInfoForm .dialog-foot{position:sticky;bottom:0;margin:0;padding:14px 20px;border-top:1px solid #e5e5e5;background:#fff;gap:10px}
#consultationUserInfoForm .dialog-foot .btn{min-width:72px;height:36px;border-radius:4px;font-size:15px}
#consultationUserInfoForm .dialog-foot .primary{background:#1890ff;border-color:#1890ff}
@media(max-width:650px){#consultationUserInfoForm .consultation-user-info-body{padding:20px}#consultationUserInfoForm .consultation-user-info-row{grid-template-columns:1fr;gap:4px;margin-bottom:16px}#consultationUserInfoForm .consultation-user-info-row>label{text-align:left;line-height:24px}#consultationUserInfoForm .consultation-user-info-control{max-width:none}}

.order-document-sections .order-related-shortcut{margin-left:auto;white-space:nowrap}
.order-related-summary{padding:20px 24px;background:#fff;border-bottom:1px solid #e7edf3;line-height:1.8;color:#163652}
.order-related-summary strong{font-weight:400}
.order-related-summary-line{display:flex;gap:48px;flex-wrap:wrap;margin-top:12px}
.order-related-list{padding:0 12px 18px;background:#fff}
.order-related-list-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;border-bottom:1px solid #f2f4f7;margin-bottom:14px}
.order-related-list-head .btn{background:#1759e5;border-color:#1759e5;border-radius:2px;color:#fff}
.order-related-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px;color:#163652}
.order-related-table th{background:#f7f8fa;font-weight:700;color:#163652}
.order-related-table th,.order-related-table td{padding:12px 10px;text-align:left;overflow-wrap:anywhere;border-bottom:1px solid #edf0f4}
.order-related-table th:nth-child(2){width:30%}
.order-related-table .empty{text-align:center;color:#aab5c2;height:64px}
.order-related-table .link{padding:0;margin-right:12px;font-size:13px}
dialog:has(#orderRelatedSearch){width:640px;max-width:calc(100vw - 24px);padding:0;border:1px solid #ddd;border-radius:2px}
#orderRelatedSearch{padding:12px 16px 0;display:flex;align-items:center;gap:8px;margin:0;border:0;background:#fff}
#orderRelatedSearch label{flex:1;max-width:500px}
#orderRelatedCandidates{padding:0 18px;max-height:60vh;overflow:auto}
#orderRelatedError{padding:0 18px}
@media(max-width:700px){.order-related-summary-line{gap:12px 24px}.order-related-table{min-width:680px}}

#main .order-related-table th,#main .order-related-table td{text-align:left!important}
#main .order-related-table td.empty{text-align:center!important}
.order-related-list>.table-wrap{border:0;border-radius:0;box-shadow:none}
#orderRelatedSearch{justify-content:flex-start}
#orderRelatedSearch input{flex:1;width:100%;min-width:0;height:32px;padding:6px 8px;border:1px solid #cdd5df;border-radius:2px;font-size:12px}

#main .order-document.order-related-document>.vehicle-page-head{height:48px;min-height:48px;max-height:48px;background:#fff;border-bottom:1px solid #f1f3f6;padding:10px 16px}
#main .order-document.order-related-document>.vehicle-page-head h1{font-size:14px;font-weight:400}
.order-related-summary{padding:6px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px}
.order-related-info-field{min-width:0;display:grid;grid-template-columns:108px minmax(0,1fr);border:1px solid #ddd;align-items:stretch}
.order-related-info-field>span{display:flex;align-items:center;justify-content:center;padding:10px 8px;background:#f8f8f8;border-right:1px solid #ddd;color:#163652;font-size:13px;line-height:22px;margin:0}.order-related-info-field>span:after{content:"："}
.order-related-info-field>strong{display:flex;align-items:center;min-width:0;padding:10px 12px;color:#163652;font-size:13px;font-weight:400;line-height:22px;white-space:normal;overflow-wrap:anywhere}
.order-related-product{margin:0;grid-column:span 2}
.order-related-summary-line{display:contents}
dialog:has(#orderRelatedSearch) .dialog-head{padding:10px 16px;border-bottom:1px solid #e8edf3;background:#fff;color:#233b5b;font-size:14px;font-weight:600}
dialog:has(#orderRelatedSearch) .dialog-head .link{font-size:20px;padding:0;line-height:20px;color:#6d7a90}
#orderRelatedSearch .btn{flex:none;height:32px;min-width:64px;padding:0 14px;background:#1759e5;border-color:#1759e5;border-radius:2px;color:#fff;font-size:12px;letter-spacing:2px}
dialog .order-related-search-hint{margin:6px 16px 12px;color:#999;font-size:12px;line-height:18px}
#orderRelatedCandidates[hidden]{display:none}
#orderRelatedError:empty{display:none}
dialog:has(#orderRelatedSearch):has(#orderRelatedCandidates:not([hidden])){width:1280px}
@media(max-width:700px){.order-related-summary{grid-template-columns:1fr}.order-related-product{grid-column:auto}}

/* Related orders must wrap long imported order numbers and product names in both tables. */
#main .order-related-table,dialog .order-related-table{table-layout:fixed;width:100%;min-width:680px}
#main .order-related-table th,#main .order-related-table td,dialog .order-related-table th,dialog .order-related-table td{white-space:normal!important;overflow-wrap:anywhere;word-break:normal;min-width:0!important;vertical-align:middle;line-height:1.6}
.order-related-table th:nth-child(1){width:20%}
.order-related-table th:nth-child(2){width:36%}
.order-related-table th:nth-child(3){width:12%}
.order-related-table th:nth-child(4){width:8%}
.order-related-table th:nth-child(5){width:12%}
.order-related-table th:nth-child(6){width:12%}

/* Keep all four contact methods visible and put contact time in user information. */
.consultation-user-form .consultation-info-grid>.consultation-detail-field:nth-child(-n+3){height:auto;min-height:38px}
.consultation-user-form .consultation-contact-field>.consultation-detail-label{align-items:flex-start;padding-top:8px}
.consultation-user-form .consultation-contact-lines{display:grid;gap:4px;padding:6px 12px}
.consultation-contact-line{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px;line-height:22px;color:#000}
.consultation-contact-line>[data-contact-kind]{min-width:0;white-space:pre-wrap;overflow-wrap:anywhere}
.consultation-user-form .consultation-needs-grid>.consultation-detail-field:last-child{grid-column:1/-1}

/* Reconciliation pages share the full-width work area without outer card gutters. */
#main:has(>.reconciliation-page){padding:0}
.reconciliation-page{width:100%;min-width:0}
.reconciliation-page>.card{margin:0;border:0;border-radius:0;box-shadow:none}
.reconciliation-page .transfer-filter{padding:12px 16px;gap:10px;align-items:end}
.reconciliation-page .report-summary{padding:10px 16px;margin:0;border-top:1px solid #dbe4ed;gap:6px 0}
.reconciliation-page .report-summary>span{white-space:nowrap}
.reconciliation-page .report-summary>span+span::before{content:'|';display:inline-block;margin:0 12px;color:#8a9aae}
.reconciliation-page .table-wrap{margin:0;border-left:0;border-right:0;border-radius:0;box-shadow:none}
.reconciliation-page .menu-pagination{padding:12px 16px;text-align:center}
.reconciliation-page>.hint{padding:10px 16px;margin:0}

/* Order row requirements and five-second save validation notice. */
#orderSaveNotice{position:fixed;inset:18px auto auto 50%;transform:translateX(-50%);margin:0;max-width:calc(100vw - 32px);padding:12px 24px;border:1px solid #f3c5bf;border-radius:4px;background:#fff2f0;color:#a92520;box-shadow:0 4px 18px #0002;z-index:10000;font-size:14px;line-height:22px;white-space:normal}
#orderDocument .order-required-input::placeholder{color:#555;opacity:1}
#orderDocument select.order-required-input:has(option[value=""]:checked){color:#555}

#main>#orderDocument.order-has-fixed-actions{padding-bottom:calc(var(--order-actions-height,60px) + 16px)}
#main>#orderDocument.order-has-fixed-actions::after{content:'';position:fixed;left:var(--order-actions-left);right:var(--order-actions-right);bottom:0;height:var(--order-actions-height,60px);background:#fff;border-top:1px solid #d5e1ee;box-shadow:0 -3px 10px #36567508;z-index:29;pointer-events:none}
#main #orderDocument .dialog-foot.order-fixed-actions{position:fixed;bottom:0;z-index:30;margin:0;padding:12px 20px;background:#fff;border-radius:0;box-shadow:none;align-items:center;min-height:60px}

/* Exception rules and matching orders. */
#main:has(>.exception-orders-page){padding:0}
.exception-orders-page{width:100%;min-width:0}
.exception-orders-page .card{margin:0 0 12px;border-left:0;border-right:0;border-radius:0;box-shadow:none}
.exception-orders-page .card-head{height:44px;color:#222;font-weight:600;background:#f3f5f7}
.exception-orders-page .card-head>span{margin-left:auto;font-weight:400;color:#666;font-size:12px}
.exception-rules fieldset{border:0;margin:0;padding:0;min-width:0}
.exception-season{display:flex;align-items:center;flex-wrap:wrap;gap:8px 16px;padding:16px 14px 8px}
.exception-season label,.exception-channel-options label{display:flex;flex-direction:row;align-items:center;gap:8px;color:#333}
.exception-note{font-size:12px;color:#66717d;line-height:1.8;padding:8px 14px}
.exception-rules-table{table-layout:fixed;white-space:normal;font-size:12px}
.exception-rules-table th,.exception-rules-table td{padding:8px;border:1px solid #ddd;color:#222}
.exception-rules-table th{font-weight:600;background:#f7f8fa}
.exception-rules-table select,.exception-rules-table input[type=number]{width:100%;height:32px;min-width:0;border-radius:2px;padding:4px;color:#333}
.exception-rules-table .exception-rule-value input{width:calc(100% - 20px)}
.exception-rule-value{white-space:nowrap}
.exception-rule-value>[data-rule-unit]{margin-left:4px}
.exception-rule-value>.unit-number-control{display:inline-flex;width:calc(100% - 24px);vertical-align:middle}
.exception-rule-value>.unit-number-control>input{width:100%}
.exception-rule-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:12px 14px}
.exception-orders-page .exception-rules-head{height:auto;min-height:44px;gap:12px;flex-wrap:wrap}
.exception-rules-head>strong{flex-shrink:0}
.exception-orders-page .exception-rules-head>.exception-rules-hint{margin-left:0}
.exception-rules-toggle{margin-left:auto;white-space:nowrap}
#exceptionRulesForm[hidden]{display:none}
.exception-channels{position:relative;min-width:0;color:#333;font-size:12px}
.exception-channels summary{padding:6px 22px 6px 8px;border:1px solid #cfdce8;height:32px;background:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#333;position:relative}
.exception-channels summary:after{position:absolute;right:8px;top:6px}
.exception-channel-options{position:absolute;top:34px;left:0;width:230px;max-height:300px;overflow:auto;z-index:45;background:#fff;border:1px solid #ddd;box-shadow:0 4px 12px #0002;padding:6px}
.exception-channel-options label{padding:8px 6px;cursor:pointer}
.exception-channel-options label:hover{background:#eef5fc}
.exception-channel-options input{margin:0;flex-shrink:0}
#exceptionOrderFilter>label:has(.exception-channels){width:180px}
#exceptionOrderFilter .exception-channels input{height:auto}
.exception-results-table{min-width:1500px;font-size:12px}
.exception-results-table th{font-weight:600;color:#222}
.exception-results-table td:nth-child(5){max-width:260px;white-space:normal;overflow-wrap:anywhere}
.exception-region-row td{background:#f0f4f8;font-weight:600;color:#234662;padding:9px 12px}
.exception-reasons{white-space:normal;min-width:160px}
.exception-reasons span,.exception-reasons small{display:block;margin:3px 0}
.exception-reasons span{color:#a14b2e}.exception-reasons small{color:#777}
.exception-orders-page .form-error:empty{display:none}
@media(max-width:1200px){.exception-rules{overflow-x:auto}.exception-rules-table{min-width:1000px}}

:is(#exceptionOrderFilter,#reconciliationFilter) .search-filter-control{position:relative;flex:0 1 180px;min-width:150px}
:is(#exceptionOrderFilter,#reconciliationFilter){padding:10px 16px;gap:8px 12px;align-items:center}
:is(#exceptionOrderFilter,#reconciliationFilter)>label{gap:0}
:is(#exceptionOrderFilter,#reconciliationFilter) .compact-filter-label{position:absolute;width:1px;height:1px;min-width:0;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.exception-orders-page .exception-results-head{height:auto;min-height:44px;flex-wrap:wrap;gap:6px 10px;padding-top:8px;padding-bottom:8px}
.exception-results-head>strong{white-space:nowrap}
.exception-results-head>.report-summary{padding:0;margin:0;border:0;gap:4px 8px;font-size:12px;font-weight:400}
.exception-results .menu-pagination{display:flex;justify-content:center;align-items:center;gap:10px;padding:12px 16px}
.search-filter-box{position:relative}
:is(#exceptionOrderFilter,#reconciliationFilter) .search-filter-box input{height:34px;border-radius:2px;padding:6px 27px 6px 9px;color:#334c66}
.search-filter-box>span{position:absolute;right:8px;top:6px;color:#7288a0;font-size:18px;pointer-events:none}
.search-filter-options{position:absolute;left:0;right:0;top:100%;z-index:50;background:#fff;border:1px solid #c5d4e4;box-shadow:0 3px 8px #0002;max-height:280px;overflow-y:auto;padding:4px 0}
.search-filter-options[hidden],.search-filter-options [role=option][hidden],.search-filter-options .search-filter-empty[hidden]{display:none}
.search-filter-options [role=option]{display:flex;align-items:center;gap:8px;width:100%;border:0;background:#fff;color:#333;text-align:left;padding:7px 12px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.search-filter-options [role=option]:hover,.search-filter-options [role=option].active{background:#eaf2fc}
.search-filter-options [aria-selected=true]{background:#f2f6fc}
.search-filter-check{display:inline-grid;place-items:center;flex:0 0 13px;height:13px;border:1px solid #9aa8b5;border-radius:2px}
[aria-selected=true]>.search-filter-check{background:#287fe8;border-color:#287fe8;color:white}
[aria-selected=true]>.search-filter-check:after{content:'✓';font-size:11px}
.search-filter-empty{padding:10px 12px;color:#8a9aae}

:is(#exceptionOrderFilter,#reconciliationFilter) .compact-filter-date-range{display:flex;align-items:center;gap:8px;flex:0 0 auto;min-width:0}
:is(#exceptionOrderFilter,#reconciliationFilter) .compact-filter-date-range>label{flex:0 0 130px;min-width:0;width:130px;gap:0}
.compact-filter-date-range .query-date-input{width:100%;min-width:0}
.compact-date-separator{color:#7288a0;flex-shrink:0}
#reconciliationFilter input:not([type=hidden]){height:34px;border-radius:2px}

#reconciliationFilter{align-items:center}
#reconciliationFilter .search-filter-control{flex-basis:155px;min-width:135px}
#reconciliationFilter>.reconciliation-advanced{display:flex;flex-wrap:wrap;gap:8px 12px;flex:0 0 100%;padding-top:2px}
#reconciliationFilter>.reconciliation-advanced[hidden]{display:none}
.reconciliation-detail-table{table-layout:fixed}
.reconciliation-detail-table th,.reconciliation-detail-table td{vertical-align:middle}
.reconciliation-detail-table .reconciliation-wrap{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}
.reconciliation-secondary{display:block;color:#8a9aae;font-size:11px;white-space:normal;line-height:1.6}
.reconciliation-detail-table .reconciliation-date{white-space:nowrap}

.reconciliation-page-number{display:inline-block;margin:0 12px;vertical-align:middle}

.reconciliation-total{display:inline-block;margin-left:12px;vertical-align:middle}

#reconciliationMore{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:34px;line-height:1}
#reconciliationMore .reconciliation-more-icon{display:block;flex:0 0 14px;width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
#reconciliationMore[aria-expanded=true] .reconciliation-more-icon{transform:rotate(180deg)}
#reconciliationFilter .search-filter-box>span{display:block;top:50%;right:8px;transform:translateY(-50%);width:16px;height:16px;font-size:0;line-height:1}
#reconciliationFilter .search-filter-box>span::before{content:'';position:absolute;left:2px;top:2px;width:9px;height:9px;border:1.5px solid currentColor;border-radius:50%;box-sizing:border-box}
#reconciliationFilter .search-filter-box>span::after{content:'';position:absolute;left:10px;top:9px;width:5px;height:1.5px;background:currentColor;transform:rotate(45deg);transform-origin:left center}

.order-document-sections .order-snapshot-shortcut{margin-left:auto;white-space:nowrap}
.order-document-sections .order-snapshot-shortcut+.order-related-shortcut{margin-left:0}
.order-product-snapshot{padding:20px;max-height:75vh;overflow:auto}
.order-product-snapshot-meta{display:flex;flex-wrap:wrap;gap:12px 28px;margin-bottom:12px}
.order-product-snapshot .table-wrap{margin-top:16px}
.order-product-calendar{table-layout:fixed;min-width:720px;white-space:normal}
.order-product-calendar th,.order-product-calendar td{width:25%;vertical-align:top;padding:12px 16px;border:1px solid #e4e8ed;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;color:#172b40}
.order-product-calendar th{background:#f6f7f8}
.order-product-calendar h3{margin:0 0 8px;font-size:16px;font-weight:400}
.order-snapshot-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 20px;border-top:1px solid #e4e8ed}.order-snapshot-controls [role=status]{color:#687e96}

.consultation-sort-menu[hidden]{display:none!important}
.consultation-sort-menu{z-index:10000;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow:auto}

/* Keep OTA section headings inside the content card and share one pager layout. */
.regional-orders-head{height:auto;min-height:53px;justify-content:space-between;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid var(--line);color:#334c66}
.regional-orders-head h2{margin:0;font-size:18px;font-weight:600;line-height:26px}
.ota-pagination{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
.ota-pagination>span{white-space:nowrap}

/* Authenticated pages and top-layer dialogs; does not intercept clicks. */
.has-watermark body::after,.has-watermark dialog::after{content:"";position:fixed;inset:0;z-index:2147483000;pointer-events:none;user-select:none;background-image:var(--oa-watermark);background-repeat:repeat;background-size:320px 190px}.has-watermark dialog::after{position:absolute;min-height:100%}


/* Scoped to the standalone single-tour profit query. */
#main .order-profit-page{min-width:0;color:#294461}
#main .order-profit-page>.page-title{margin-bottom:12px}
#main .order-profit-page>.toolbar{display:flex;align-items:center;gap:12px;padding:10px 12px;border:1px solid #d9e4ef;border-bottom:0;background:#fff;margin:12px 0 0;font-size:12px}
#main .order-profit-page>.toolbar>span{margin-right:auto}
#main .order-profit-page .profit-details-toggle{display:flex;flex-direction:row;align-items:center;gap:6px;font-size:12px;color:#53718e;white-space:nowrap;cursor:pointer}
#main .order-profit-page .profit-details-toggle input{width:14px;min-width:14px;height:14px;min-height:0;padding:0;margin:0;accent-color:#6996cb}
#main .order-profit-page .profit-collapse-label{display:none}
#main .order-profit-page:has([data-profit-details]:checked) .profit-collapse-label{display:inline}
#main .order-profit-page:has([data-profit-details]:checked) .profit-expand-label{display:none}
#main .order-profit-page .profit-table-hint{margin:0;padding:6px 12px;border:1px solid #d9e4ef;border-top:0;border-bottom:0;color:#8094a8;font-size:12px;line-height:18px;background:#fff}
#main .order-profit-page .order-profit-scroll{overflow:auto;max-height:calc(100vh - 315px);min-height:160px;max-width:100%;border:1px solid #d9e4ef;border-radius:0}
#main .order-profit-page .order-profit-grid{width:100%;min-width:1430px;table-layout:fixed;border-collapse:separate;border-spacing:0}
#main .order-profit-page .order-profit-grid th,#main .order-profit-page .order-profit-grid td{box-sizing:border-box;height:auto;padding:8px 10px;line-height:20px;font-size:13px;border:0;border-right:1px solid #e6eef7;border-bottom:1px solid #e6eef7;color:#365571;vertical-align:middle;white-space:nowrap}
#main .order-profit-page .order-profit-grid th{position:sticky;top:0;z-index:2;font-weight:500;color:#53718e;background:#edf4fc}
#main .order-profit-page .order-profit-grid td{background:#fff}
#main .order-profit-page .order-profit-grid tbody tr:nth-child(even)>td{background:#f7faff}
#main .order-profit-page .order-profit-grid tbody tr:hover>td{background:#edf5ff}
#main .order-profit-page .order-profit-grid .profit-extra{display:none;width:110px}
#main .order-profit-page:has([data-profit-details]:checked) .order-profit-grid .profit-extra{display:table-cell}
#main .order-profit-page:has([data-profit-details]:checked) .order-profit-grid{min-width:3190px}
#main .order-profit-page .order-profit-grid .profit-id{position:sticky;left:0;z-index:1;width:150px;box-shadow:2px 0 0 #d9e4ef}
#main .order-profit-page .order-profit-grid th.profit-id{z-index:3}
#main .order-profit-page .order-profit-grid .profit-route{width:260px;white-space:normal;overflow-wrap:anywhere}
#main .order-profit-page .order-profit-grid .profit-date{width:102px}
#main .order-profit-page .order-profit-grid .profit-people{width:60px}
#main .order-profit-page .order-profit-grid .profit-action{width:70px}
#main .order-profit-page table:not(#recordForm table) td.profit-money{text-align:right!important;font-variant-numeric:tabular-nums}
#main .order-profit-page table:not(#recordForm table) td.profit-route{text-align:left!important}
#main .order-profit-page .order-profit-grid td.profit-key{font-weight:600;color:#294c6b}
#main .order-profit-page .order-profit-grid td.profit-negative{color:#c34f55}
#main .order-profit-page .profit-cost-pending,#main .order-profit-page .profit-cost-complete{display:inline-block;border-radius:3px;padding:1px 7px;font-size:12px;white-space:nowrap}
#main .order-profit-page .profit-cost-pending{background:#fff4e1;color:#a67b2b}
#main .order-profit-page .profit-cost-complete{background:#e6f3ed;color:#398569}
#main .order-profit-page>.table-foot{border:1px solid #d9e4ef;border-top:0;background:#fff;padding:10px 12px}


/* Operations-center image library. */
.media-library{min-width:0}.media-library .filter{margin-bottom:12px}.media-library-count{display:flex;justify-content:space-between;gap:12px;margin:14px 0;color:#66819b;font-size:12px}.media-library-count span{color:#8a9bac}
.media-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}.media-library-card{min-width:0;overflow:hidden;background:#fff;border:1px solid #d9e4ef;border-radius:6px}.media-library-cover{display:block;padding:0;border:0;border-bottom:1px solid #e3ecf5;width:100%;height:160px;background:#f1f5fa;cursor:pointer}.media-library-cover img{display:block;width:100%;height:100%;object-fit:cover}.media-library-meta{padding:12px}.media-library-meta h3{font-size:14px;font-weight:500;color:#294c6b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0 0 10px}.media-library-meta p{display:flex;align-items:center;justify-content:space-between;margin:0 0 8px;font-size:12px;color:#8b9cad}.media-library-meta small{font-size:11px;color:#8b9cad}.media-category{display:inline-block;max-width:75%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#edf4fc;color:#6385a6;padding:2px 6px;border-radius:3px}.media-library-actions{display:flex;align-items:center;gap:14px;margin-top:12px;padding-top:10px;border-top:1px solid #edf1f6;font-size:12px}.media-library-actions .link{padding:0}.media-library-actions .media-remove{margin-left:auto;color:#be6470}.media-library-empty{background:#fff;border:1px dashed #d1deed;border-radius:6px;text-align:center;padding:70px 20px;color:#8094a8}.media-library-empty strong{font-size:16px;font-weight:500;color:#53718e}.media-library-empty p{margin-top:12px;font-size:13px}.media-preview{padding:20px;text-align:center}.media-preview img{display:block;max-width:100%;max-height:65vh;object-fit:contain;margin:auto;background:#f4f7fb}.media-preview h3{margin:16px 0 8px;font-size:16px;color:#365c80}.media-preview p{margin:8px 0;color:#7b91a7;font-size:13px;overflow-wrap:anywhere}.media-preview .media-note{white-space:pre-wrap;text-align:left}.media-delete-message{padding:22px;line-height:1.8;overflow-wrap:anywhere}#mediaUploadForm input[type=file]{height:auto;padding:10px}#mediaUploadStatus{color:#6385a6;white-space:pre-wrap}.media-library-footer{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;margin-top:16px;background:#fff;border:1px solid #d9e4ef;border-radius:4px}

/* Vehicle arrangements share dispatch-table's headers, separators and spacing. */
#main .vehicle-arrangement-table{table-layout:auto;min-width:1600px;}
#main .vehicle-arrangement-table td:nth-child(12),#main .vehicle-arrangement-table td:nth-child(13){min-width:180px;max-width:240px;white-space:normal;overflow-wrap:anywhere;}
#main .vehicle-arrangement-table .vehicle-arrangement-text,#main .vehicle-arrangement-table .vehicle-arrangement-plain{display:block;min-width:180px;max-width:280px;max-height:4.5em;line-height:1.5;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;text-align:left;padding:0;}

/* Keep the vehicle upgrade control next to dispatch vehicle notes. */
#main .vbk-order-note:has(>.order-upgrade-vehicle){grid-template-columns:108px 280px minmax(0,1fr)}
#main .vbk-order-note>.order-upgrade-vehicle{display:flex;flex-direction:row;align-items:center;gap:8px;margin:0;padding:2px 10px;color:#000;min-width:0}
#main .vbk-order-note>.order-upgrade-vehicle>span{width:auto;min-width:0;border:0;padding:0;white-space:nowrap}
#main .vbk-order-note>.order-upgrade-vehicle>select{width:180px;min-width:0;height:30px;padding:2px 8px;color:#000;opacity:1}
@media(max-width:900px){#main .vbk-order-note:has(>.order-upgrade-vehicle){grid-template-columns:108px minmax(0,1fr)}#main .vbk-order-note:has(>.order-upgrade-vehicle)>p,#main .vbk-order-note:has(>.order-upgrade-vehicle)>textarea{grid-column:2}}

/* Vehicle date-range split: independent, large dialog with scoped layout. */
dialog.vehicle-split-dialog{width:96vw!important;max-width:1900px!important;max-height:94vh!important;padding:0!important}
.vehicle-split-dialog #dialogBody{display:flex;flex-direction:column;max-height:92vh}
.vehicle-split-dialog .dialog-head,.vehicle-split-dialog .dialog-foot{flex-shrink:0}
.vehicle-split-content{overflow:auto;min-height:45vh;padding:12px 16px;color:#000}
.vehicle-split-content h3{font-size:15px;padding:8px 10px;margin:0;background:#edf4fc;border:1px solid #cddbee;color:#000}
.vehicle-split-content section+section{margin-top:12px}
.vehicle-split-tools{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:8px 0;font-size:13px}
.vehicle-split-grid{border-collapse:collapse;width:100%;color:#000;table-layout:fixed}
.vehicle-split-grid th,.vehicle-split-grid td{border:1px solid #ccd2dc;padding:6px;text-align:center;vertical-align:middle}
.vehicle-split-grid th{background:#edf0f5;font-size:13px}
.vehicle-split-grid tbody tr:nth-child(even){background:#f7faff}
.vehicle-split-grid input:not([type=checkbox]){box-sizing:border-box;width:100%;min-width:0;padding:5px;font-size:13px;height:32px}
.vehicle-split-grid input[type=checkbox]{width:15px;height:15px;min-height:0;margin:0}
.vehicle-split-grid .split-text{text-align:left;white-space:pre-wrap;overflow-wrap:anywhere}
.split-itinerary-wrap{max-height:32vh;overflow:auto}
.split-itinerary-wrap thead th{position:sticky;top:0;z-index:1}
.split-vehicle-grid{min-width:1250px}
.split-vehicle-grid th:first-child{width:38px}.split-vehicle-grid th:nth-child(2){width:38px}
.split-vehicle-grid th:nth-child(3){width:170px}.split-vehicle-grid th:nth-child(6){width:135px}
.split-vehicle-grid th:nth-child(7),.split-vehicle-grid th:nth-child(8){width:145px}
.split-vehicle-grid th:nth-child(9),.split-vehicle-grid th:last-child{width:46px}
[data-resource-kind=vehicle] .resource-row-actions{min-width:202px}

/* Keep vehicle actions inside their reserved column, including after resize/add. */
[data-resource-kind=vehicle] [data-section-form] .resource-row-actions{box-sizing:border-box;min-width:210px;padding-left:4px!important;padding-right:4px!important;white-space:nowrap!important}
[data-resource-kind=vehicle] [data-section-form] .resource-row-actions .link{font-size:12px!important;padding:0 1px!important;margin:0!important}
[data-resource-kind=vehicle] [data-section-form] .resource-action-divider{margin:0 2px;font-size:12px}

/* Consistent compact blue actions, without textual separators. */
[data-resource-kind] .resource-row-actions{padding-left:4px!important;padding-right:4px!important;text-align:center!important;white-space:nowrap!important}
[data-resource-kind] .resource-row-actions .resource-action-button,
[data-resource-kind=vehicle] [data-section-form] .resource-row-actions .resource-action-button{
 background:#1890ff!important;color:#fff!important;border:1px solid #1890ff!important;border-radius:3px!important;
 font-size:12px!important;line-height:22px!important;height:26px!important;min-height:26px!important;box-sizing:border-box!important;
 padding:0 6px!important;margin:0!important;min-width:0!important;width:auto!important;text-decoration:none!important;vertical-align:middle!important;cursor:pointer;
}
[data-resource-kind] .resource-row-actions .resource-action-button+.resource-action-button,
[data-resource-kind=vehicle] [data-section-form] .resource-row-actions .resource-action-button+.resource-action-button{margin-left:5px!important}
[data-resource-kind] .resource-row-actions .resource-action-button:hover{background:#40a9ff!important;border-color:#40a9ff!important}
[data-resource-kind] .resource-row-actions .resource-action-button:disabled{opacity:.55;cursor:default}

/* Resource tabs start with navigation; omit the redundant document title band. */
#orderDocument.vehicle-document:not(.order-related-document) > .vehicle-page-head,
#orderDocument:has([data-order-panel="finance"]:not([hidden])) > .dialog-head{display:none!important}

.vehicle-split-content .vehicle-split-tools:has([data-split-merge]){flex-wrap:wrap}
.vehicle-split-content .vehicle-split-tools:has([data-split-merge])>span{flex:1;text-align:right;font-size:12px}
.vehicle-split-content [data-split-merge]{margin-left:auto;flex-shrink:0}

/* Daily vehicle data follows the saved vehicle date ranges. */
#main .daily-route-table{min-width:1250px}
#main .daily-route-table .daily-vehicle-line{display:block;min-height:20px;line-height:20px;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:normal}

/* Highlight matching vehicle identities without changing itinerary widths. */
#main .daily-route-table tr.daily-vehicle-match > td,
#main .daily-route-table td.daily-vehicle-match{background:#fff3d6 !important;}
#main .daily-route-table td[rowspan]{vertical-align:middle;}

[data-resource-kind=vehicle] .resource-row-actions .resource-action-button[data-vehicle-split]:disabled{background:#bfbfbf!important;border-color:#bfbfbf!important;color:#fff!important;opacity:1;cursor:not-allowed}

/* Compact itinerary dates: date first, weekday on the same line. */
#main .daily-route-table tbody td{height:34px;padding:3px 6px;line-height:20px}
#main .daily-route-table .daily-date-line{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}
#main .daily-route-table .daily-date-line .daily-weekday{display:inline;margin:0;font-size:inherit;line-height:inherit}

/* Read-only notes reuse the basic-order data at the end of the accounting sheet. */
#main .order-accounting-sheet .accounting-order-notes{margin-top:6px}
#main .order-accounting-sheet .accounting-order-notes .vbk-order-notes{margin:0;font-size:13px}
#main .order-accounting-sheet .accounting-order-notes .vbk-order-notes+.vbk-order-notes{border-top:0}
#main .order-accounting-sheet .accounting-order-notes h3{margin:0;padding:3px 8px;line-height:18px;background:#edf4fc;font-size:13px;font-weight:600}
#main .order-accounting-sheet .accounting-order-notes .vbk-order-note{grid-template-columns:90px minmax(0,1fr);line-height:18px}
#main .order-accounting-sheet .accounting-order-notes .vbk-order-note>span,#main .order-accounting-sheet .accounting-order-notes .vbk-order-note>p{padding:3px 6px;font-size:13px}
#main .order-accounting-sheet .accounting-order-notes .vbk-order-note:has(>.accounting-upgrade-vehicle){grid-template-columns:90px minmax(160px,28%) minmax(0,1fr)}
#main .order-accounting-sheet .accounting-upgrade-vehicle{display:flex;gap:6px;align-items:center;min-width:0;padding:3px 6px;overflow-wrap:anywhere;border-right:1px solid #e1e1e1}
#main .order-accounting-sheet .accounting-upgrade-vehicle>span:first-child{flex-shrink:0}
@media print{#main .order-accounting-sheet .accounting-order-notes .vbk-order-note>span,#main .order-accounting-sheet .accounting-order-notes .vbk-order-note>p,#main .order-accounting-sheet .accounting-order-notes h3,#main .order-accounting-sheet .accounting-upgrade-vehicle{font-size:10px;line-height:15px}}

/* Sales order delete and batch delete buttons. */
#main :is([data-resource-delete],[data-section-remove],[data-arr-remove],[data-income-remove],[data-daily-remove],[data-section] [data-action="removeRow"]),#modal :is([data-split-remove],[data-daily-remove],[data-section] [data-action="removeRow"]){
 display:inline-block!important;background:#ff4d4f!important;border:1px solid #ff4d4f!important;color:#fff!important;border-radius:3px!important;
 font-size:12px!important;line-height:22px!important;height:26px!important;min-height:26px!important;box-sizing:border-box!important;
 padding:0 6px!important;margin:0!important;min-width:0!important;width:auto!important;white-space:nowrap!important;text-decoration:none!important;vertical-align:middle!important;cursor:pointer;
}
#main :is([data-resource-delete],[data-section-remove],[data-arr-remove],[data-income-remove],[data-daily-remove],[data-section] [data-action="removeRow"]):hover:not(:disabled),#modal :is([data-split-remove],[data-daily-remove],[data-section] [data-action="removeRow"]):hover:not(:disabled){background:#ff7875!important;border-color:#ff7875!important}
#main :is([data-resource-delete],[data-section-remove],[data-arr-remove],[data-income-remove],[data-daily-remove],[data-section] [data-action="removeRow"]):disabled,#modal :is([data-split-remove],[data-daily-remove],[data-section] [data-action="removeRow"]):disabled{opacity:.55;cursor:not-allowed}
#main :is([data-resource-delete],[data-section-remove],[data-arr-remove],[data-income-remove],[data-daily-remove],[data-section] [data-action="removeRow"]):focus-visible,#modal :is([data-split-remove],[data-daily-remove],[data-section] [data-action="removeRow"]):focus-visible{outline:2px solid #cf1322;outline-offset:2px}

#modal.order-vehicle-picker-dialog{width:96vw;max-width:1800px}
.order-vehicle-picker{min-height:55vh;display:flex;flex-direction:column;padding:12px;gap:10px;color:#000}
.order-vehicle-picker form{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.order-vehicle-picker label{display:flex;align-items:center;gap:4px;color:#000}
.order-vehicle-picker input{width:210px;min-width:0}
.order-vehicle-picker [role=status]{margin:0;font-size:13px}
.order-vehicle-picker .table-wrap{max-height:65vh;overflow:auto}
.order-vehicle-picker table{width:100%;table-layout:fixed}
.order-vehicle-picker th:first-child{width:55px}
.order-vehicle-picker th:last-child{width:80px}
.order-vehicle-picker th{background:#edf4fc;position:sticky;top:0}
.order-vehicle-picker td,.order-vehicle-picker th{padding:8px;border:1px solid #cbd7e5;text-align:center;overflow-wrap:anywhere}
.order-vehicle-picker tbody tr:nth-child(even){background:#f7faff}
.order-vehicle-picker tbody tr:hover{background:#fff3d7}
.order-vehicle-picker .btn{padding:5px 12px;min-height:28px}

/* Vehicle archive picker: placeholders inside fields, actions flush right. */
#modal .order-vehicle-picker [data-vehicle-picker-filter]{display:flex;flex-flow:row nowrap;align-items:center;gap:10px;width:100%;margin:0;box-sizing:border-box}
#modal .order-vehicle-picker [data-vehicle-picker-filter]>input{flex:0 1 240px;width:240px;min-width:80px;height:34px;box-sizing:border-box;margin:0}
#modal .order-vehicle-picker .vehicle-picker-filter-actions{display:flex;flex:0 0 auto;align-items:center;gap:8px;margin-left:auto}
#modal .order-vehicle-picker .vehicle-picker-filter-actions .btn{height:34px;margin:0;white-space:nowrap}

/* Vehicle arrangement text: no inner scrollbar; copy the full text from the right. */
#main .vehicle-arrangement-copy-cell{display:flex;align-items:center;gap:8px;position:relative;min-width:200px;width:100%;max-width:none;box-sizing:border-box;text-align:left}
#main .vehicle-arrangement-table .vehicle-arrangement-copy-cell .vehicle-arrangement-plain{flex:1;min-width:0;max-width:none;max-height:4.5em;overflow:hidden;line-height:1.5;white-space:pre-wrap;padding:0}
#main .vehicle-arrangement-copy{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;padding:4px;border:0;border-radius:3px;background:transparent;color:#409eff;cursor:pointer;align-self:center}
#main .vehicle-arrangement-copy:hover{background:#e7f1ff}
#main .vehicle-arrangement-copy:focus-visible{outline:2px solid #409eff}
#modal .order-vehicle-picker .vehicle-picker-combo{position:relative;flex:0 1 320px;width:320px;min-width:100px}
#modal .order-vehicle-picker .vehicle-picker-combo>input{width:100%;min-width:0;height:34px;box-sizing:border-box;margin:0;padding-right:32px}
#modal .order-vehicle-picker [data-vehicle-filter-toggle]{position:absolute;right:1px;top:1px;bottom:1px;width:30px;padding:0;border:0;background:transparent;color:#537595;display:flex;align-items:center;justify-content:center;cursor:pointer}
#modal .order-vehicle-picker .vehicle-picker-options{position:absolute;top:calc(100% + 3px);left:0;right:0;max-height:260px;overflow:auto;z-index:10;background:#fff;border:1px solid #cbd7e5;border-radius:4px;box-shadow:0 4px 12px #0002;padding:4px 0;color:#000}
#modal .order-vehicle-picker .vehicle-picker-options[hidden]{display:none}
#modal .order-vehicle-picker .vehicle-picker-options button{display:block;text-align:left;width:100%;border:0;background:#fff;padding:7px 10px;color:#000;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
#modal .order-vehicle-picker .vehicle-picker-options button:hover,#modal .order-vehicle-picker .vehicle-picker-options button:focus{background:#e7f1ff}
#modal .order-vehicle-picker .vehicle-picker-options>span{display:block;padding:7px 10px}
@media print{.vehicle-arrangement-copy{display:none!important}}

/* Vehicle archive choices: same white/blue dropdown treatment as query selectors. */
#main .order-vehicle-grid .order-vehicle-row-combo{position:relative;width:100%;min-width:0}
#main .order-vehicle-grid .order-vehicle-row-combo>input{padding-right:27px;background:#fff;color:#456b91;border:1px solid #cbd9ec;border-radius:3px}
#main .order-vehicle-grid .order-vehicle-row-combo>input:focus{outline:0;border-color:#63a6ec;box-shadow:0 0 0 2px #e5f1ff}
#main .order-vehicle-grid .order-vehicle-row-toggle{position:absolute;right:1px;top:1px;bottom:1px;width:25px;display:flex;align-items:center;justify-content:center;padding:0;margin:0;border:0;border-radius:0 3px 3px 0;background:transparent;color:#456b91;cursor:pointer}
.order-vehicle-row-options{position:fixed;z-index:10020;box-sizing:border-box;overflow:auto;padding:0;background:#fff;border:1px solid #b7c9df;border-radius:0;box-shadow:0 3px 8px #0002;color:#456b91;font:14px/1.4 Arial,"Microsoft YaHei",sans-serif}
.order-vehicle-row-options>[role=option]{display:block;width:100%;min-height:35px;box-sizing:border-box;text-align:left;border:0;border-radius:0;padding:8px 14px;margin:0;background:#fff;color:#456b91;white-space:normal;overflow-wrap:anywhere;font:inherit;cursor:pointer}
.order-vehicle-row-options>[role=option]:hover,.order-vehicle-row-options>[role=option][aria-selected=true]{background:#1967d2;color:#fff}
.order-vehicle-row-options>.vehicle-row-empty{display:block;padding:8px 14px;color:#6c7e91}
#modal .order-vehicle-picker .vehicle-picker-options{top:100%;border-radius:0;padding:0;border-color:#b7c9df}
#modal .order-vehicle-picker .vehicle-picker-options button{min-height:35px;padding:8px 14px;color:#456b91;border-radius:0}
#modal .order-vehicle-picker .vehicle-picker-options button:hover,#modal .order-vehicle-picker .vehicle-picker-options button:focus,#modal .order-vehicle-picker .vehicle-picker-options button[aria-selected=true]{background:#1967d2;color:#fff}

#main .vehicle-arrangement-table th:nth-child(8),#main .vehicle-arrangement-table td:nth-child(8){min-width:70px;white-space:nowrap;text-align:center}

/* Global vehicle archive search fills the space before right-aligned actions. */
#modal .order-vehicle-picker [data-vehicle-picker-filter]>[data-vehicle-picker-search]{flex:1 1 260px;width:auto;min-width:150px}

/* Non-interactive upgrade marker at the bottom-right of itinerary model cells. */
.daily-route-table td[data-daily-sync="vehicleType"]{position:relative;padding:3px 24px!important;text-align:center!important;vertical-align:middle!important}
.daily-vehicle-upgrade-badge{position:absolute;right:6px;bottom:5px;display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-left:0;border-radius:3px;background:#e6a23c;color:#fff;font-size:11px;line-height:16px;font-weight:600;cursor:default;pointer-events:none;user-select:none}

.vehicle-required-label{font-size:11px;font-weight:normal;color:#d9363e;white-space:nowrap}

/* Prearrangement: cost-mark column removed, route remains wide. */
.prearrangement-no-mark td:nth-child(5){width:auto;min-width:0!important;max-width:none!important;white-space:nowrap}
.prearrangement-no-mark td:nth-child(4){width:240px;min-width:200px!important;max-width:260px!important;white-space:normal}
@media print{body.print-arrangements .prearrangement-no-mark td:nth-child(4){min-width:0!important;}}
/* Vehicle assignment and management controls. */
#fleetOnline .fleet-footer{display:flex!important;justify-content:center!important;flex-wrap:wrap;gap:4px!important;margin:0!important;min-height:0!important;padding:8px!important}
#fleetOnline .fleet-footer>span{display:none!important}
#fleetOnline .fleet-pager{width:100%;justify-content:center!important;margin:0!important;padding:0!important;min-height:0!important}
#main #fleetOnline{flex:0 0 auto!important;min-height:0!important;margin-bottom:0!important}
#fleetOnline .table-wrap{min-height:0!important}
.fleet-row-assign{font-size:12px!important;padding:3px 9px!important;min-height:25px!important;height:25px!important;line-height:19px!important}
.fleet-assignment-pager{display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 0}
.fleet-current-vehicle{width:100%;table-layout:fixed;border-collapse:collapse}
.fleet-current-vehicle td,.fleet-current-vehicle th{text-align:center;padding:8px;border:1px solid #dce7f2}
.fleet-current-vehicle th{background:#edf4fb}
.fleet-archive-choice{display:flex;align-items:center;gap:10px;margin:8px 0}
.fleet-locked-label{color:#6b8298;font-size:12px;white-space:nowrap}
.vehicle-existing-table td{position:relative;padding:3px!important;height:34px!important}
.vehicle-existing-table input{width:100%;box-sizing:border-box;min-width:0;height:28px!important;padding:3px 5px!important}
.vehicle-existing-table .vehicle-picker-trigger{right:4px}
.vehicle-existing-table td:last-child{white-space:nowrap;min-width:125px}
.vehicle-existing-table .btn{font-size:12px;padding:3px 7px;min-height:26px;height:26px;line-height:18px}
.vehicle-existing-table input[readonly]{background:#f5f7fa}
.vehicle-large-dialog .vehicle-manual-form th:last-child{width:130px!important}
.vehicle-large-dialog .vehicle-existing-table input:not([readonly]){padding-right:24px!important}
.fleet-assignment-detail .fleet-upcoming-table tr{height:56px}
.fleet-assignment-detail .fleet-upcoming-cell{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;max-height:40px;line-height:20px;overflow-wrap:anywhere}

/* Fleet confirmation: one contained action per row, disabled sales selectors. */
.vehicle-large-dialog .vehicle-manual-form th:last-child{width:90px!important}
.vehicle-large-dialog .vehicle-existing-table td:last-child{width:90px!important;min-width:0!important;overflow:hidden;text-align:center;box-sizing:border-box}
.vehicle-large-dialog .vehicle-existing-table td:last-child .btn{display:inline-flex;justify-content:center;align-items:center;max-width:100%;width:64px;box-sizing:border-box;padding:3px 6px!important;margin:0!important}
.order-vehicle-grid tr[data-fleet-confirmed] td{cursor:not-allowed}
.order-vehicle-grid tr[data-fleet-confirmed] input:disabled,.order-vehicle-grid tr[data-fleet-confirmed] select:disabled{pointer-events:none;background:#f1f3f5;color:#6b8298;opacity:1}

/* Vehicle availability and adjustable assignment dates. */
#modal .fleet-assignment-detail .fleet-archive-choice{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;text-align:left;width:100%;margin:0 0 10px;gap:12px}
#modal .fleet-assignment-detail .fleet-archive-choice select{width:340px;max-width:60vw}
#modal .fleet-current-vehicle th:last-child{width:330px}
#modal .fleet-assignment-date-range{display:flex;align-items:center;justify-content:center;gap:5px}
#modal .fleet-assignment-date-range input{width:145px;min-width:0;box-sizing:border-box;height:32px;padding:4px}
#modal .fleet-assignment-date-hint{text-align:left;font-size:12px;color:#7890a7;margin:6px 0}
#modal:has(.fleet-day-detail) .fleet-upcoming-table th,#modal:has(.fleet-day-detail) .fleet-upcoming-table td,#modal .fleet-upcoming-cell{text-align:center!important;vertical-align:middle}
#modal:has(.fleet-day-detail) .fleet-upcoming-table th:nth-child(8){width:180px}
#modal:has(.fleet-day-detail) .fleet-upcoming-table th:nth-child(9){width:60px}
#modal:has(.fleet-day-detail) .fleet-upcoming-table th:nth-child(10){width:230px}

/* The dispatch calendar uses the available workspace; the pager follows its scroll area. */
#app>.workspace>#main:has(>#fleetOnline){display:flex!important;flex-direction:column;min-height:0!important;height:calc(100dvh - var(--header-height,88px) - 32px);padding-bottom:0!important;overflow:hidden}
#app>.workspace:has(>#main>#fleetOnline)>footer{display:none!important}
#app>.workspace>#main>#fleetOnline{display:flex;flex-direction:column;flex:1 1 0!important;min-height:0!important;margin:0!important;padding-bottom:0!important;overflow:hidden}
#main>#fleetOnline>.table-wrap{flex:1 1 0;min-height:0!important;max-height:none!important;margin-bottom:0!important}
#fleetOnline>.fleet-query,#fleetOnline>.fleet-summary,#fleetOnline>.fleet-footer{flex:0 0 auto}
.fleet-dispatch-error-popup{width:min(480px,calc(100vw - 32px));max-height:80vh;padding:0;border:1px solid #cbd9ec;border-radius:8px;color:#456b91;background:#fff;box-shadow:0 12px 40px #203b5a35}
.fleet-dispatch-error-popup::backdrop{background:#203b5a30}
.fleet-dispatch-error-popup>p{padding:22px;white-space:pre-wrap;overflow-wrap:anywhere;color:#c74747;line-height:1.7}
#modal .fleet-upcoming-table tr.fleet-assignment-failed>td{background:#fff1f0!important}

/* Content-fitted vehicle columns retain their width when details expand. */
#app #main .vehicle-order-group-table>thead>tr>th,#app #main .vehicle-order-group-table>tbody>.vehicle-order-parent>td,
#app #main .vehicle-order-detail-table>thead>tr>th,#app #main .vehicle-order-detail-table>tbody>tr>td{min-width:0!important;padding-left:8px;padding-right:8px;box-sizing:border-box}
#app #main .vehicle-order-group-table>thead>tr>th,#app #main .vehicle-order-detail-table>thead>tr>th{white-space:nowrap}
#app #main .vehicle-order-group-table .vehicle-arrangement-copy-cell{min-width:0!important;gap:4px}
#app #main .vehicle-order-group-table .vehicle-arrangement-copy{flex-shrink:0}

/* Vehicle details keep a separate horizontal scroll area and readable short fields. */
#app #main .vehicle-order-detail-wrap{overflow-x:auto;max-width:100%}
#app #main .vehicle-order-detail-table .vehicle-cell-text{white-space:nowrap;display:block;overflow:hidden;text-overflow:ellipsis}
#app #main .vehicle-order-detail-table td:nth-last-child(-n+2) .vehicle-cell-text{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
#modal .fleet-confirm-order{background:#1890ff!important;border-color:#1890ff!important;color:#fff!important}
#modal .fleet-confirm-order:hover{background:#1681e5!important;border-color:#1681e5!important}

/* Sales orders use the remaining viewport; pagination meets the bottom edge. */
#app>.workspace>#main:has(>.sales-orders){display:flex!important;flex-direction:column;min-height:0!important;height:calc(100dvh - var(--header-height,88px) - 32px);padding-bottom:0!important;overflow:hidden}
#app>.workspace:has(>#main>.sales-orders)>footer{display:none!important}
#main>.sales-orders{display:flex!important;flex-direction:column;flex:1 1 0!important;min-height:0!important;margin-bottom:0!important;overflow:hidden}
#main>.sales-orders>.table-wrap{flex:1 1 0;min-height:0!important;max-height:none!important;overflow:auto}
#main>.sales-orders>:not(.table-wrap){flex-shrink:0}

/* Compact fleet calendar and single-line arrangement rows. */
#app #main #fleetOnline> .table-wrap>table>tbody>tr>td{height:30px!important;padding:2px 5px!important;box-sizing:border-box;line-height:20px;white-space:nowrap}
#app #main #fleetOnline .fleet-row-assign{height:22px!important;min-height:22px!important;line-height:18px!important;padding:1px 8px!important}
#app #main #fleetOnline .fleet-occupancy{height:20px!important}
#app #main .vehicle-order-group-table>tbody>.vehicle-order-parent>td,
#app #main .vehicle-order-group-table .vehicle-order-detail-table>tbody>tr>td{height:32px!important;padding-top:3px!important;padding-bottom:3px!important;white-space:nowrap!important;box-sizing:border-box;overflow:hidden}
#app #main .vehicle-order-group-table .vehicle-cell-text,
#app #main .vehicle-order-group-table .vehicle-cell-text .vehicle-transfer-info,
#app #main .vehicle-order-group-table .vehicle-arrangement-plain{display:block!important;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;min-width:0;max-width:100%;height:20px!important;max-height:20px!important;line-height:20px!important;-webkit-line-clamp:1!important}
#app #main .vehicle-order-group-table .vehicle-cell-text .link{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:top}
#app #main .vehicle-order-group-table .vehicle-arrangement-copy-cell{height:22px!important;max-height:22px!important;min-height:0;align-items:center;overflow:hidden}
#app #main .vehicle-order-group-table .vehicle-order-info{display:flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;height:22px}
#app #main .vehicle-order-group-table .vehicle-order-count{display:inline;margin:0!important;line-height:20px;font-size:12px;flex-shrink:0}
#app #main .vehicle-order-group-table .vehicle-order-toggle{height:22px;line-height:20px;padding:0;gap:2px;font-size:12px;flex-shrink:0}

/* Fleet calendar row hover follows the pale-yellow order-list highlight. */
#app #main #fleetOnline> .table-wrap>table>tbody>tr:hover>td{background:#fff4d6!important}

#app #main #fleetOnline colgroup>col:nth-child(n+8){width:56px!important}
#app #main #fleetOnline th:nth-child(n+8),#app #main #fleetOnline td:nth-child(n+8){min-width:56px!important;max-width:56px!important;width:56px!important}

/* Use the remaining viewport for the vehicle arrangement list and its pagination. */
@media screen{
#app>.workspace>#main:has(.vehicle-order-group-table){display:flex!important;flex-direction:column;min-height:0!important;height:calc(100dvh - var(--header-height,88px) - 32px);padding-bottom:0!important;overflow:hidden}
#app>.workspace:has(>#main .vehicle-order-group-table)>footer{display:none!important}
#main:has(.vehicle-order-group-table)>:not(.arrangement-page){flex-shrink:0}
#main>.arrangement-page:has(.vehicle-order-group-table){display:flex!important;flex-direction:column;flex:1 1 0!important;min-height:0!important;margin-bottom:0!important;padding-bottom:0!important;overflow:hidden}
#main>.arrangement-page:has(.vehicle-order-group-table)>.table-wrap{flex:1 1 0;min-height:0!important;max-height:none!important;margin-bottom:0!important;overflow:auto}
#main>.arrangement-page:has(.vehicle-order-group-table)>.table-foot{flex:0 0 auto;margin-bottom:0!important}

}

/* Actual passenger names and platform VIP level. */
#main .order-passenger-names{display:flex;flex-wrap:wrap;gap:4px 16px}#main .order-passenger-names>span{flex:1 1 120px;min-width:0}#main .order-passenger-names small{color:#73859b;margin-right:8px;font-size:11px}#main .order-vip-badge{display:inline-flex;align-items:center;align-self:center;white-space:nowrap;padding:3px 8px;margin:0 8px;border:1px solid #e6c98f;background:#fff0d2;color:#8a5a12;border-radius:3px;font-size:12px;line-height:18px}

/* Compact route columns: leave width for the complete daily itinerary. */
#main .daily-route-table{min-width:760px}
#main .daily-route-table td:nth-child(4){white-space:pre-wrap!important;overflow-wrap:anywhere;line-height:1.65;text-overflow:clip;overflow:visible}
#main .daily-route-table textarea[data-daily-field="route"]{min-height:58px;max-height:none;overflow:hidden;line-height:1.65;white-space:pre-wrap}
#main [data-room-plan] select{width:64px;min-width:0;height:30px;margin-left:4px}
#main [data-room-plan] label{white-space:nowrap}
#main [data-room-plan] [hidden]{display:none!important}

#main .order-hotel-grid{min-width:0;width:100%;table-layout:fixed;font-size:12px}
#main .order-hotel-grid th,#main .order-hotel-grid td{padding:2px;height:32px;overflow:hidden}
#main .order-hotel-grid th{white-space:normal;line-height:1.2}
#main .order-hotel-grid input,#main .order-hotel-grid select,#main .order-hotel-grid textarea{padding:2px;font-size:12px;height:27px;min-height:27px;box-sizing:border-box}
#main .order-hotel-grid .query-date-input{min-width:0;width:100%;padding-right:16px}
#main .order-hotel-grid textarea{resize:vertical}

#main .order-vehicle-resource-grid{min-width:0;table-layout:fixed;width:100%;font-size:11px}
#main .order-vehicle-resource-grid th,#main .order-vehicle-resource-grid td{padding:1px;height:30px;overflow:hidden}
#main .order-vehicle-resource-grid th{line-height:1.2;white-space:normal}
#main .order-vehicle-resource-grid input,#main .order-vehicle-resource-grid select,#main .order-vehicle-resource-grid textarea{font-size:11px;padding:1px;height:25px;min-height:25px;width:100%;min-width:0;box-sizing:border-box;text-overflow:ellipsis}
#main .order-vehicle-resource-grid .query-date-input{min-width:0;width:100%;padding-right:14px}

/* Compact order overview and room requirements */
#main .sales-order-basic-item{min-height:28px;line-height:17px;grid-template-columns:92px minmax(0,1fr)}
#main .sales-order-basic-item>span,#main .sales-order-basic-item>strong{padding:4px 8px}
#main .sales-order-sales-notes h3,#main .sales-order-transport h3{padding:6px 10px;margin:0;font-size:12px}
#main .sales-order-sales-notes .vbk-order-note{min-height:28px;padding-top:3px;padding-bottom:3px;font-size:12px}
#main .sales-order-sales-notes .vbk-order-note>span{width:92px;min-width:92px}
#main [data-room-plan] label{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;font-size:12px;margin:0}
#main [data-room-plan] select{width:56px;min-width:56px;height:28px;padding:2px 6px;font-size:12px}
#main [data-room-plan] .btn{min-height:28px;height:28px;padding:2px 9px;font-size:12px}
#main .vbk-order-note p:empty{display:none}

/* Compact guide/meal forms and stable itinerary proportions, including runtime actions. */
#main :is(.order-guide-grid,.order-meal-grid){min-width:0;width:100%;table-layout:fixed;font-size:12px}
#main :is(.order-guide-grid,.order-meal-grid) :is(th,td){padding:2px 3px;line-height:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#main :is(.order-guide-grid,.order-meal-grid) tbody td,#main :is(.order-guide-grid,.order-meal-grid) tfoot td{height:30px}
#main :is(.order-guide-grid,.order-meal-grid) :is(input,select,textarea){box-sizing:border-box;min-width:0!important;width:100%;height:25px;min-height:25px;padding:2px;font-size:12px;line-height:19px}
#main :is(.order-guide-grid,.order-meal-grid) textarea{resize:vertical;white-space:nowrap}
#main :is(.order-guide-grid,.order-meal-grid,.order-hotel-grid,.order-vehicle-resource-grid) .resource-row-actions{padding:2px;white-space:normal}
#main :is(.order-guide-grid,.order-meal-grid,.order-hotel-grid,.order-vehicle-resource-grid) .resource-action-button{font-size:11px;padding:2px 3px;min-width:0}
#main :is(.order-guide-grid,.order-meal-grid,.order-hotel-grid,.order-vehicle-resource-grid) .resource-select input{width:13px;height:13px;min-height:0}
#main .daily-route-table{min-width:0;width:100%;table-layout:fixed}
#main .daily-route-table th{height:27px;padding:2px 3px}
#main .daily-route-table tbody td{height:30px;padding:2px 4px;font-size:12px;line-height:19px}
#main .daily-route-table td:nth-child(4){text-align:left!important;line-height:1.5;white-space:pre-wrap!important}
#main .daily-route-table textarea[data-daily-field="route"]{min-height:34px;height:34px;line-height:1.5;padding:2px 4px}
#main .daily-route-table .daily-date-line{gap:3px}
#main .daily-route-table :is(input,select){height:25px;padding:2px 3px}

/* Keep every resource form in the same compact frame. */
#main :is(.order-guide-grid,.order-meal-grid,.order-ticket-grid,.order-hotel-grid,.order-vehicle-resource-grid,.order-transport-grid,.order-insurance-grid,.order-gift-grid),#main .insurance-guest-info .order-guests-grid{width:100%;min-width:0;table-layout:fixed;font-size:12px}
#main :is(.order-guide-grid,.order-meal-grid,.order-ticket-grid,.order-hotel-grid,.order-vehicle-resource-grid,.order-transport-grid,.order-insurance-grid,.order-gift-grid) :is(th,td),#main .insurance-guest-info .order-guests-grid :is(th,td){height:30px;padding:2px 3px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#main :is(.order-guide-grid,.order-meal-grid,.order-ticket-grid,.order-hotel-grid,.order-vehicle-resource-grid,.order-transport-grid,.order-insurance-grid,.order-gift-grid) :is(input,select,textarea){box-sizing:border-box;min-width:0!important;max-width:100%;width:100%;height:25px;min-height:25px;padding:2px;font-size:11px;line-height:19px}
#main :is(.order-guide-grid,.order-meal-grid,.order-ticket-grid,.order-hotel-grid,.order-vehicle-resource-grid,.order-transport-grid,.order-insurance-grid,.order-gift-grid) textarea{resize:vertical;white-space:nowrap}
#main .order-document .order-vehicle-grid .query-date-input input{padding-right:17px!important;font-size:11px}
#main .order-document .order-vehicle-grid .query-calendar-trigger{width:15px!important;height:22px;padding:0;font-size:11px}
#main .order-document .order-vehicle-grid :is(.resource-row-actions,.resource-batch-actions){padding:2px;white-space:normal;overflow:visible}
#main .order-document .order-vehicle-grid .resource-action-button{padding:2px 3px;font-size:11px;min-width:0}
#main .order-document .order-vehicle-grid [data-resource-delete]{padding:2px;font-size:11px;white-space:nowrap}
#main .order-document .order-vehicle-grid .resource-select input{width:13px;height:13px;min-height:0}
#main .order-ticket-grid [data-ticket-guest-cell] summary{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:11px}
#main .order-ticket-grid [data-ticket-guest-cell]:has(details[open]){white-space:normal;overflow:visible}
#main .insurance-guest-info .order-guests-grid td :is(.guest-copy-text,.guest-cell-value){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

#main .order-accounting-sheet{width:100%;min-width:0;max-width:none;margin:0;font-size:12px}
#main .order-accounting-sheet h2{text-align:center;font-size:16px;margin:6px 0}
#main .order-accounting-sheet :is(th,td){padding:3px 4px;line-height:1.4;vertical-align:middle;text-align:center}
#main .order-accounting-sheet .accounting-category th.accounting-category-name{width:38px}
#main .order-accounting-sheet .accounting-band{padding:3px 8px}

/* Guest lists: compact columns in the main order and insurance view. */
#main .order-document .order-guests-grid{width:100%;min-width:0;table-layout:fixed;font-size:12px}
#main .order-document .order-guests-grid :is(th,td){box-sizing:border-box;min-width:0;height:32px;padding:2px 3px;line-height:20px;font-size:12px;text-align:center;white-space:nowrap;overflow:hidden;overflow-wrap:normal;word-break:normal;text-overflow:ellipsis}
#main .order-document .order-guests-grid td:has(.guest-copy-button){padding:2px 21px 2px 3px}
#main .order-document .order-guests-grid .guest-copy-text{display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#main .order-document .order-guests-grid .guest-copy-button{left:auto!important;right:2px;width:18px;height:20px;padding:1px}
#main .order-document .order-guests-grid td :is(input,select,textarea){box-sizing:border-box;min-width:0;width:100%;height:25px;min-height:25px;padding:2px 3px;font-size:11px;line-height:18px}
#main .order-document .order-guests-grid .query-date-input input{padding-right:17px!important}
#main .order-document .order-guests-grid .query-calendar-trigger{width:15px;height:22px;right:1px}
#main .order-document .order-guests-grid :is(.guest-summary, tfoot td){height:30px;padding:3px 6px}
/* Daily routes expand with the page, including shared fixed-header wrappers. */
#main .order-document .daily-itinerary>.table-wrap,
#main .order-document .daily-itinerary .oa-header-scroll{height:auto!important;max-height:none!important;overflow:visible!important}
#main .order-document .order-guests-grid th:first-child{width:36px;padding:2px}
#main .order-document .order-guests-grid :is(th,td):first-child{width:36px!important;min-width:36px!important;max-width:36px!important}
#main .order-document .order-guests-grid>colgroup>col:first-child{width:36px!important}

#main .order-document .insurance-guest-info .table-wrap{height:auto!important;max-height:none!important;overflow:visible!important}
#main .order-document[data-resource-kind="insurance"] [data-section-form]>.table-wrap{scrollbar-gutter:stable}

/* Keep all three classification dropdowns readable in the compact order grid. */
#main .sales-grid td:has(>.classification-cell){padding-left:1px!important;padding-right:1px!important}
#main .sales-grid .classification-cell .order-classification-select{padding:1px 0!important;text-align:center}

/* 操作日志：提高每条记录的高度与可读性，长文本自动换行 */
#main .audit-log-table{min-width:1180px}
#main .audit-log-table th{padding:12px 14px;font-size:13px;white-space:nowrap}
#main .audit-log-table td{padding:16px 14px!important;line-height:1.65;vertical-align:top}
#main .audit-log-table tbody tr{height:64px}
#main .audit-log-table .audit-time{white-space:nowrap;font-variant-numeric:tabular-nums}
#main .audit-log-table .audit-actor strong,
#main .audit-log-table .audit-action strong{display:block;font-weight:500;color:#2f4a63}
#main .audit-log-table .audit-actor small,
#main .audit-log-table .audit-action small{display:block;margin-top:2px;font-size:12px;font-weight:400;color:#8295a7}
#main .audit-log-table .audit-module{white-space:nowrap}
#main .audit-log-table .audit-object{white-space:normal;word-break:break-all;max-width:220px;min-width:140px;color:#5e7e9d}
#main .audit-log-table .audit-detail{white-space:normal;word-break:break-word;line-height:1.7;max-width:360px;min-width:220px}
#main .audit-log-table .audit-ip{white-space:nowrap;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px;color:#5e7e9d}
#main .audit-log-table .audit-client{white-space:normal;max-width:130px;min-width:96px;font-size:12px;color:#5e7e9d}
#main .audit-log-table .audit-result{display:inline-block;padding:2px 10px;border-radius:999px;font-size:12px;line-height:1.8;white-space:nowrap}
#main .audit-log-table .audit-result.ok{background:#e8f5ec;color:#237a45}
#main .audit-log-table .audit-result.fail{background:#fdecec;color:#b23a3a}


/* Compact operation log: keep base fields in one row and move full details to the last action button. */
#main .audit-log-table{min-width:860px!important;table-layout:fixed;font-size:12px}
#main .audit-log-table th,#main .audit-log-table td{height:34px!important;padding:5px 8px!important;line-height:1.25!important;vertical-align:middle!important;box-sizing:border-box}
#main .audit-log-table tbody tr{height:34px!important}
#main .audit-log-table th:nth-child(1),#main .audit-log-table td:nth-child(1){width:150px!important}
#main .audit-log-table th:nth-child(2),#main .audit-log-table td:nth-child(2){width:120px!important}
#main .audit-log-table th:nth-child(3),#main .audit-log-table td:nth-child(3){width:110px!important}
#main .audit-log-table th:nth-child(4),#main .audit-log-table td:nth-child(4){width:190px!important}
#main .audit-log-table th:nth-child(5),#main .audit-log-table td:nth-child(5){width:78px!important;text-align:center!important}
#main .audit-log-table th:nth-child(6),#main .audit-log-table td:nth-child(6){width:78px!important;text-align:center!important}
#main .audit-log-table td{overflow:hidden!important;white-space:nowrap!important;text-overflow:ellipsis!important}
#main .audit-log-table .audit-actor strong,#main .audit-log-table .audit-action strong{display:inline;font-weight:500;color:#2f4a63}
#main .audit-log-table .audit-actor small,#main .audit-log-table .audit-action small{display:inline;margin:0 0 0 5px;font-size:11px;color:#8295a7}
#main .audit-log-table .audit-detail-button{display:inline-flex!important;align-items:center;justify-content:center;height:25px!important;min-height:25px!important;padding:0 10px!important;border:1px solid #d9a72b!important;border-radius:4px!important;background:#f6c94f!important;color:#5b4300!important;font-size:12px!important;line-height:23px!important;white-space:nowrap!important;cursor:pointer!important}
#main .audit-log-table .audit-detail-button:hover{background:#ffd86e!important;border-color:#c28e14!important}
.audit-detail-card{padding:22px 26px;color:#334c66}
.audit-detail-status{display:inline-flex;padding:5px 14px;border-radius:999px;font-size:13px;margin-bottom:18px}.audit-detail-status.ok{background:#e8f5ec;color:#237a45}.audit-detail-status.fail{background:#fdecec;color:#b23a3a}
.audit-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border:1px solid #dbe4ed;border-bottom:0}.audit-detail-field{min-width:0;padding:11px 14px;border-right:1px solid #dbe4ed;border-bottom:1px solid #dbe4ed}.audit-detail-field:nth-child(even){border-right:0}.audit-detail-field.wide{grid-column:1/-1;border-right:0}.audit-detail-field small{display:block;margin-bottom:5px;color:#8295a7;font-size:11px}.audit-detail-field strong{display:block;white-space:pre-wrap;overflow-wrap:anywhere;font-weight:400;line-height:1.55;color:#334c66}
@media(max-width:720px){.audit-detail-grid{grid-template-columns:1fr}.audit-detail-field,.audit-detail-field.wide{grid-column:auto;border-right:0}.audit-detail-card{padding:16px}}

/* Audit location and method columns. */
#main .audit-log-table{min-width:1160px!important;table-layout:fixed!important}
#main .audit-log-table th:nth-child(1),#main .audit-log-table td:nth-child(1){width:150px!important}
#main .audit-log-table th:nth-child(2),#main .audit-log-table td:nth-child(2){width:120px!important}
#main .audit-log-table th:nth-child(3),#main .audit-log-table td:nth-child(3){width:260px!important}
#main .audit-log-table th:nth-child(4),#main .audit-log-table td:nth-child(4){width:290px!important}
#main .audit-log-table th:nth-child(5),#main .audit-log-table td:nth-child(5){width:78px!important;text-align:center!important}
#main .audit-log-table th:nth-child(6),#main .audit-log-table td:nth-child(6){width:78px!important;text-align:center!important}
#main .audit-log-table .audit-module{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#main .audit-log-table .audit-action strong{display:block!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
#main .audit-log-table .audit-action small{display:block!important;margin:2px 0 0!important;font-size:11px!important;color:#8295a7!important}

/* Restore the assignment details only in the sales order vehicle page. */
#main .sales-vehicle-itinerary .daily-route-table{min-width:1180px;table-layout:fixed;width:100%}
#main .sales-vehicle-itinerary .daily-route-table th,#main .sales-vehicle-itinerary .daily-route-table td{text-align:center;vertical-align:middle}
#main .sales-vehicle-itinerary .daily-route-table td:nth-child(4){text-align:center!important}
#main .sales-vehicle-itinerary .daily-route-table .daily-vehicle-line{white-space:normal;overflow-wrap:anywhere}

/* Operable upgrade entry beside the assigned vehicle model. */
#main .sales-vehicle-upgrade-button{float:right;margin:2px 0 2px 4px;border:0;border-radius:3px;background:#efa136;color:#fff;font-size:11px;line-height:17px;min-width:17px;padding:0 2px;cursor:pointer}
#main .sales-vehicle-upgrade-button:hover{background:#d58117}

/* Restore readable column widths in the sales vehicle editor only. */
#main .order-vehicle-resource-grid :is(th,td){height:36px;padding:3px 4px}
#main .order-vehicle-resource-grid th{white-space:nowrap;font-size:12px}
#main .order-vehicle-resource-grid :is(input,select,textarea){height:28px;min-height:28px;font-size:12px}

/* 按团派车：序号列改为添加按钮，车辆明细增加操作列 */
#main .vehicle-order-group-table .vehicle-order-add-cell{text-align:center;padding:2px!important}
#main .vehicle-order-group-table .vehicle-grid-add{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:30px;height:22px;min-width:30px;min-height:22px;margin:0;padding:0;border:1px solid #b0b5f5;border-radius:2px;background:#7779f4;color:#fff;font-family:Arial,sans-serif;font-size:22px;font-weight:400;line-height:1;cursor:pointer}
#main .vehicle-order-group-table .vehicle-grid-add:disabled{background:#c8caf7;border-color:#c8caf7;cursor:not-allowed}
#main .vehicle-order-detail-table th:last-child,#main .vehicle-order-detail-table td:last-child{white-space:nowrap}
#app #main .vehicle-order-group-table .vehicle-order-detail-table>tbody>tr>td.vehicle-child-actions{height:36px!important;padding:4px!important;overflow:visible!important;white-space:nowrap!important;text-align:center}
#main .vehicle-order-detail-table .vehicle-child-actions{text-align:center;white-space:nowrap;padding:4px!important}
#main .vehicle-order-detail-table .vehicle-child-actions .resource-action-button{background:#1890ff;color:#fff;border:1px solid #1890ff;border-radius:3px;font-size:12px;line-height:22px;height:26px;min-height:26px;box-sizing:border-box;padding:0 6px;margin:0;min-width:0;text-decoration:none;vertical-align:middle;cursor:pointer}
#main .vehicle-order-detail-table .vehicle-child-actions .resource-action-button+.resource-action-button{margin-left:5px}
#main .vehicle-order-detail-table .vehicle-child-actions .resource-action-button:hover{background:#40a9ff;border-color:#40a9ff}
#main .vehicle-order-detail-table .vehicle-child-actions .resource-action-button:disabled{background:#bfbfbf;border-color:#bfbfbf;color:#fff;cursor:not-allowed;opacity:1}

/* 按团派车车辆明细操作列固定宽度 */
#app #main .vehicle-order-group-table .vehicle-order-detail-table{min-width:1600px!important}
#app #main .vehicle-order-group-table .vehicle-order-detail-table>colgroup>col:last-child{width:260px!important}
#app #main .vehicle-order-group-table .vehicle-order-detail-table>thead>tr>th:last-child,
#app #main .vehicle-order-group-table .vehicle-order-detail-table>tbody>tr>td:last-child{width:260px!important;min-width:260px!important;max-width:260px!important;box-sizing:border-box}

/* 按团派车车辆明细操作列：右固定，避免被横向滚动截断 */
#app #main .vehicle-order-group-table .vehicle-order-detail-table>thead>tr>th:last-child,
#app #main .vehicle-order-group-table .vehicle-order-detail-table>tbody>tr>td:last-child{position:sticky;right:0;z-index:3;background:#fff;box-shadow:-8px 0 10px -10px rgba(0,0,0,.28)}
#app #main .vehicle-order-group-table .vehicle-order-detail-table>thead>tr>th:last-child{background:#eef3f8;z-index:4}
#main .vehicle-order-detail-table .vehicle-child-actions .resource-action-button{padding:0 4px!important}
#main .vehicle-order-detail-table .vehicle-child-actions .resource-action-button+.resource-action-button{margin-left:3px!important}

/* 按团派车车辆明细操作列自适应宽度 */
#app #main .vehicle-order-group-table .vehicle-order-detail-table>thead>tr>th:last-child,
#app #main .vehicle-order-group-table .vehicle-order-detail-table>tbody>tr>td:last-child{width:auto!important;min-width:210px!important;max-width:none!important;white-space:nowrap!important}

/* 按团派车车辆明细：表头横排，操作列固定 240px */
#app #main .vehicle-order-group-table .vehicle-order-detail-table>thead>tr>th{white-space:nowrap!important}
#app #main .vehicle-order-group-table .vehicle-order-detail-table>colgroup>col:last-child{width:240px!important}
#app #main .vehicle-order-group-table .vehicle-order-detail-table>thead>tr>th:last-child,
#app #main .vehicle-order-group-table .vehicle-order-detail-table>tbody>tr>td:last-child{width:240px!important;min-width:240px!important;max-width:240px!important;white-space:nowrap!important}

/* 按团派车车辆明细：表格铺满可视宽度，操作列固定在表格内 */
#app #main .vehicle-order-group-table .vehicle-order-detail-table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important}
#app #main .vehicle-order-group-table .vehicle-order-detail-table>colgroup>col:last-child{width:240px!important}
#app #main .vehicle-order-group-table .vehicle-order-detail-table>thead>tr>th:last-child,
#app #main .vehicle-order-group-table .vehicle-order-detail-table>tbody>tr>td:last-child{width:240px!important;min-width:240px!important;max-width:240px!important;white-space:nowrap!important;overflow:visible!important;position:static!important}

/* 按团派车车辆明细操作列宽 300px */
#app #main .vehicle-order-group-table .vehicle-order-detail-table>colgroup>col:last-child{width:300px!important}
#app #main .vehicle-order-group-table .vehicle-order-detail-table>thead>tr>th:last-child,
#app #main .vehicle-order-group-table .vehicle-order-detail-table>tbody>tr>td:last-child{width:300px!important;min-width:300px!important;max-width:300px!important}

/* 按团派车车辆明细列宽微调：序号列、出发地、目的地、备注 */
#app #main .vehicle-order-group-table .vehicle-order-detail-table>thead>tr>th:nth-child(1),
#app #main .vehicle-order-group-table .vehicle-order-detail-table>tbody>tr>td:nth-child(1){width:44px!important;min-width:44px!important;max-width:44px!important}
#app #main .vehicle-order-group-table .vehicle-order-detail-table>thead>tr>th:nth-child(10),
#app #main .vehicle-order-group-table .vehicle-order-detail-table>tbody>tr>td:nth-child(10),
#app #main .vehicle-order-group-table .vehicle-order-detail-table>thead>tr>th:nth-child(11),
#app #main .vehicle-order-group-table .vehicle-order-detail-table>tbody>tr>td:nth-child(11){width:80px!important;min-width:80px!important;max-width:80px!important}
#app #main .vehicle-order-group-table .vehicle-order-detail-table>thead>tr>th:nth-child(13),
#app #main .vehicle-order-group-table .vehicle-order-detail-table>tbody>tr>td:nth-child(13){width:100px!important;min-width:100px!important;max-width:100px!important;overflow:hidden!important;text-overflow:ellipsis!important}

/* 订单日志页：基本信息板块（每行5项，共2行） */
#app #main .order-log-basic{margin:0 0 12px;border:1px solid #d9e4ef;background:#fff}
#app #main .order-log-basic-head{padding:8px 12px;background:#f1f5fa;border-bottom:1px solid #d9e4ef;font-size:13px;font-weight:600;color:#172b40}
#app #main .order-log-basic-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding:2px;font-size:12px}
#app #main .order-log-basic-cell{display:grid;grid-template-columns:104px minmax(0,1fr);min-height:34px;border:1px solid #e1e1e1;align-items:stretch}
#app #main .order-log-basic-cell>span{display:flex;align-items:center;justify-content:center;padding:6px 8px;background:#fafafa;border-right:1px solid #e1e1e1;color:#172b40;white-space:nowrap}
#app #main .order-log-basic-cell>strong{min-width:0;padding:6px 8px;font-weight:400;color:#172b40;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:1100px){#app #main .order-log-basic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* 订单日志页：产品列表板块 */
#app #main .order-log-products{margin:0 0 12px;border:1px solid #d9e4ef;background:#fff}
#app #main .order-log-block-head{padding:8px 12px;background:#f1f5fa;border-bottom:1px solid #d9e4ef;font-size:13px;font-weight:600;color:#172b40}
#app #main .order-log-product{padding:8px 10px}
#app #main .order-log-product-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px}
#app #main .order-log-product-table th,#app #main .order-log-product-table td{border:1px solid #e1e1e1;padding:5px 8px;text-align:left;color:#172b40;overflow-wrap:anywhere}
#app #main .order-log-product-table th{background:#fafafa;font-weight:600;white-space:nowrap}
#app #main .order-log-product-table .order-log-col-date{width:104px}
#app #main .order-log-product-table .order-log-col-vehicle{width:92px}
#app #main .order-log-product-table .order-log-col-meal{width:62px;text-align:center}
#app #main .order-log-product-table .order-log-col-hotel{width:180px}
#app #main .order-log-product-table .order-log-col-center{text-align:center}
#app #main .order-log-product-table th.order-log-col-center.is-title{font-weight:600}
#app #main .order-log-product-table .order-log-meal{text-align:center}
#app #main .order-log-product-table .order-log-meal.is-on{color:#1677ff;font-weight:600}
#app #main .order-log-product-table .order-log-day{white-space:nowrap}
#app #main .order-log-product-table small{font-size:11px;color:#536d86}
#app #main .order-log-product-table .order-log-empty{text-align:center;color:#8a9bb0}
#app #main .order-log-notes{margin:0;border:1px solid #e1e1e1;border-top:0}
#app #main .order-log-note{display:grid;grid-template-columns:110px minmax(0,1fr);border-bottom:1px solid #e1e1e1;font-size:12px;min-height:30px}
#app #main .order-log-note:last-child{border-bottom:0}
#app #main .order-log-note>span{display:flex;align-items:center;padding:5px 8px;background:#fafafa;color:#172b40;border-right:1px solid #e1e1e1}
#app #main .order-log-note>strong{font-weight:400;padding:5px 8px;color:#172b40;overflow-wrap:anywhere}
#app #main .order-log-meta{display:flex;justify-content:center;gap:18px;padding:8px 0;color:#d4380d;font-size:12px}
#app #main .order-log-meta span:first-child{font-weight:600}
#app #main .order-log-meta+.order-log-product-table{margin-top:2px}

/* 订单日志页：订单列表板块 */
#app #main .order-log-orders{margin:0 0 12px;border:1px solid #d9e4ef;background:#fff}
#app #main .order-log-order-wrap{overflow-x:auto;padding:8px 10px}
#app #main .order-log-order-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:12px;border-top:2px solid #f0b429}
#app #main .order-log-order-table th,#app #main .order-log-order-table td{border:1px solid #e1e1e1;padding:5px 8px;text-align:left;vertical-align:top;color:#172b40;overflow-wrap:anywhere}
#app #main .order-log-order-table th{background:#fafafa;white-space:nowrap;font-weight:600}
#app #main .order-log-col-seq{width:48px;text-align:center!important}
#app #main .order-log-col-code{width:170px}
#app #main .order-log-col-unit{width:96px}
#app #main .order-log-col-out{width:150px}
#app #main .order-log-col-guest{width:90px}
#app #main .order-log-col-people{width:60px}
#app #main .order-log-col-shift{width:110px}
#app #main .order-log-col-sales{width:190px}
#app #main .order-log-col-note{min-width:120px}
#app #main .order-log-sales-cell{display:flex;flex-direction:column;gap:2px;line-height:1.6;white-space:nowrap}
#app #main .order-log-sales-name{color:#172b40}
#app #main .order-log-sales-op{color:#1677ff}
#app #main .order-log-sales-time{color:#1677ff}

/* 订单日志页：车费板块 */
#app #main .order-log-cost{margin:0 0 12px;border:1px solid #d9e4ef;background:#fff}
#app #main .order-log-cost-table{min-width:1720px}
#app #main .order-log-cost-table .order-log-money{text-align:right;white-space:nowrap}
#app #main .order-log-cost-table tfoot td{background:#fafafa;font-weight:600}
#app #main .order-log-cost-total-label{text-align:right}
#app #main .order-log-empty{text-align:center;color:#8a9bb0}

/* 订单日志页：车费备注换行不溢出 */
#app #main .order-log-cost-table{min-width:1860px}
#app #main .order-log-cost-table tbody td{white-space:normal!important;word-break:break-word;line-height:1.5}
#app #main .order-log-cost-table tbody td.order-log-col-seq{white-space:nowrap!important}

/* 订单日志页：修改标注 */
#app #main .order-log-changes{margin-top:3px;display:flex;flex-direction:column;gap:1px}
#app #main .order-log-change{font-size:11px;line-height:1.45;white-space:normal;word-break:break-word}
#app #main .order-log-change.role-sales{color:#f5222d}
#app #main .order-log-change.role-operations,#app #main .order-log-change.role-op{color:#1677ff}
#app #main .order-log-change.role-finance,#app #main .order-log-change.role-account{color:#52c41a}
#app #main .order-log-change.role-steward{color:#fa8c16}
#app #main .order-log-change.role-dispatcher{color:#13c2c2}
#app #main .order-log-change.role-admin{color:#722ed1}
#app #main .order-log-change.role-guide{color:#eb2f96}
#app #main .order-log-change.role-other{color:#8c8c8c}

/* 订单日志页：修改标注（原/新/Op）与整表变更 */
#app #main .order-log-change{display:flex;flex-wrap:wrap;gap:2px 6px;font-size:11px;line-height:1.45;white-space:normal;word-break:break-word}
#app #main .order-log-change .is-old{color:#52c41a}
#app #main .order-log-change .is-new{color:#f5222d}
#app #main .order-log-change .is-op{color:#1677ff}
#app #main .order-log-change-head{padding:6px 8px;margin-top:6px;color:#d4380d;font-size:12px;font-weight:600;border-top:1px solid #e1e1e1;text-align:center}
#app #main .order-log-changed-copy{margin-top:4px}

/* 订单日志页：表格文字溢出修复（自动换行） */
#app #main .order-log-order-table tbody td,
#app #main .order-log-product-table tbody td{white-space:normal!important;word-break:break-word;overflow-wrap:anywhere}
#app #main .order-log-sales-cell{white-space:normal!important}
#app #main .order-log-sales-cell span{white-space:normal!important;word-break:break-word}

/* 订单日志页：标注单行显示、板块内收缩、表格自适应 */
#app #main .order-log-change{display:flex;flex-wrap:nowrap;gap:6px;font-size:11px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#app #main .order-log-change>span{overflow:hidden;text-overflow:ellipsis}
#app #main .order-log-change:last-child{margin-bottom:0}
#app #main .order-log-order-wrap{overflow:visible!important;padding:8px 10px}
#app #main .order-log-cost-table{min-width:0!important;width:100%;table-layout:fixed}
#app #main .order-log-order-table{width:100%;table-layout:fixed}
#app #main .order-log-block-head{cursor:pointer;user-select:none;display:flex;align-items:center;gap:6px}
#app #main .order-log-block-head::before{content:'\25BE';font-size:11px;line-height:1}
#app #main section.is-collapsed>.order-log-block-head::before{content:'\25B8'}
#app #main section.is-collapsed>:not(.order-log-block-head){display:none!important}

/* 订单日志页：板块宽度收口，避免表格溢出卡片 */
#app #main .order-log-basic,#app #main .order-log-products,#app #main .order-log-orders,#app #main .order-log-cost{overflow:hidden;max-width:100%;box-sizing:border-box}
#app #main .order-log-order-wrap{width:100%;max-width:100%;box-sizing:border-box;overflow-x:hidden!important}
#app #main .order-log-cost-table,#app #main .order-log-order-table,#app #main .order-log-product-table{width:100%!important;max-width:100%!important;table-layout:fixed!important}

/* 订单日志页：去掉所有内部滚动条，内容全部向下展开 */
#app #main .order-document [data-order-panel]{max-height:none!important;overflow:visible!important;height:auto!important}
#app #main .order-log-basic,#app #main .order-log-products,#app #main .order-log-orders,#app #main .order-log-cost{max-height:none!important;overflow:visible!important;height:auto!important}
#app #main [class^="order-log-"]{max-height:none!important;overflow:visible!important}
#app #main .order-log-order-wrap{overflow:visible!important;height:auto!important}
#app #main .order-log-product{overflow:visible!important;height:auto!important}
#app #main .order-log-order-table,#app #main .order-log-product-table,#app #main .order-log-cost-table{max-height:none!important}
#app #main .order-log-changes{overflow:visible!important}

/* 订单日志页：修改标注完整换行显示，最新在下方 */
#app #main .order-log-change{display:flex;flex-wrap:wrap;gap:1px 6px;font-size:11px;line-height:1.5;white-space:normal;overflow:visible;text-overflow:clip;word-break:break-word}
#app #main .order-log-change>span{overflow:visible;text-overflow:clip;white-space:normal}

/* 订单日志页：整表变更头部可折叠 + 操作内容 + 行高亮 */
#app #main .order-log-change-head{display:flex;flex-wrap:wrap;align-items:center;gap:10px;justify-content:center;cursor:pointer;user-select:none}
#app #main .order-log-change-summary{color:#d4380d;font-weight:400}
#app #main .order-log-change-arrow{color:#d4380d;font-size:11px}
#app #main .order-log-change-head.is-collapsed .order-log-change-arrow{transform:rotate(-90deg)}
#app #main .order-log-changed-copy tr.order-log-row-changed>td{background:#e6f4ff!important}
#app #main .order-log-changed-copy tr.order-log-row-deleted>td{background:#fff1f0!important;color:#a8071a}

/* 车辆表日期输入字体放大 */
#app #main .order-vehicle-resource-grid input[type="date"],
#app #main .section-info-table input[type="date"],
#app #main .vehicle-picker-table input[type="date"],
#app #main .sales-vehicle-itinerary input[type="date"],
#app #main .daily-route-table input[type="date"]{font-size:15px!important;line-height:1.4}
#app #main .sales-vehicle-itinerary .daily-date-line>span{font-size:14px}
