:root {
    --brand-950: #0b1739;
    --brand-900: #10204a;
    --brand-800: #182c5c;
    --brand-700: #24427d;
    --primary: #2563eb;
    --primary-600: #1d4ed8;
    --primary-soft: #eff6ff;
    --cyan: #06b6d4;
    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #dc2626;
    --ink: #172033;
    --muted: #6b7280;
    --line: #e6eaf0;
    --surface: #ffffff;
    --canvas: #f4f6fa;
    --radius: 12px;
    --shadow: 0 8px 28px rgba(15, 23, 42, .07);
}

/* Dispatch cockpit: readable order list and status-based resource pools. */
.cockpit-dispatch-strip { position:sticky; top:0; z-index:21; box-shadow:0 6px 18px rgba(21,53,103,.09); }
.cockpit-assign-hint { margin:-2px 0 11px; padding:9px 13px; border:1px solid #a8c8ff; border-radius:8px; color:#1955b1; background:#edf5ff; font-size:11px; line-height:1.5; }
.cockpit-workspace { grid-template-columns:minmax(0,1fr) 380px; }
.cockpit-order-list { border:1px solid #dfe7f1; border-radius:9px; background:#fff; overflow:hidden; }
.cockpit-order-list-head,.cockpit-order-row { display:grid; grid-template-columns:130px minmax(145px,1.1fr) minmax(165px,1fr) minmax(150px,1fr) 93px 142px; align-items:center; gap:10px; }
.cockpit-order-list-head { min-height:34px; padding:0 12px; border-bottom:1px solid #e5ebf3; color:#8695a8; background:#f7f9fc; font-size:10px; }
.cockpit-order-row { position:relative; min-height:72px; padding:9px 12px; border-bottom:1px solid #e9eef5; border-left:3px solid #f59e0b; box-sizing:border-box; }
.cockpit-order-row:last-child { border-bottom:0; }.cockpit-order-row.stage-pending { border-left-color:#8b5cf6; }.cockpit-order-row.stage-working { border-left-color:#0ea5e9; }.cockpit-order-row.stage-completed { border-left-color:#22c55e; }
.cockpit-order-row.is-assignable { cursor:pointer; }.cockpit-order-row:hover { background:#f8fbff; }.cockpit-order-row.is-selected { border-left-color:#2563eb; background:#eef5ff; box-shadow:inset 0 0 0 1px #a9c8f9; }
.cockpit-order-cell { min-width:0; }.cockpit-order-cell strong,.cockpit-order-cell small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.cockpit-order-cell strong { color:#31445e; font-size:11px; font-weight:650; }.cockpit-order-cell small { margin-top:5px; color:#8998ab; font-size:10px; }.cockpit-order-cell.identity strong { color:#1d5fbf; font-size:12px; }
.cockpit-order-cell.status em { display:inline-block; padding:4px 7px; border-radius:12px; color:#ad5d07; background:#fff1dd; font-size:10px; font-style:normal; font-weight:650; }.stage-pending .cockpit-order-cell.status em { color:#7046bd; background:#f1eafe; }.stage-working .cockpit-order-cell.status em { color:#0369a1; background:#e0f2fe; }.stage-completed .cockpit-order-cell.status em { color:#15803d; background:#dcfce7; }
.cockpit-order-actions { display:flex; gap:5px; justify-content:flex-end; }.cockpit-order-actions button { min-height:28px; padding:4px 7px; border:1px solid #d8e2ef; border-radius:6px; color:#566a83; background:#fff; font-size:10px; white-space:nowrap; cursor:pointer; }.cockpit-order-actions button.is-primary { border-color:#2563eb; color:#fff; background:#2563eb; }.cockpit-order-actions button:hover { filter:brightness(.96); }
.cockpit-order-notes { grid-column:1/-1; display:grid; grid-template-columns:1.6fr 1fr; gap:7px 14px; padding-top:7px; border-top:1px dashed #e2e9f3; }.cockpit-order-notes > span { display:flex; min-width:0; gap:6px; color:#5f7087; font-size:10px; line-height:1.5; }.cockpit-order-notes b { flex:0 0 auto; color:#8a9bb0; font-weight:500; }.cockpit-order-notes span span { min-width:0; overflow-wrap:anywhere; }
.cockpit-order-assignment { grid-column:1/-1; display:flex; align-items:center; flex-wrap:wrap; gap:7px 14px; padding:7px 9px; border:1px solid #cfe0f6; border-radius:6px; color:#5d6f86; background:#f1f7ff; font-size:10px; }.cockpit-order-assignment > b { padding:2px 6px; border-radius:9px; color:#fff; background:#2563eb; font-size:9px; }.cockpit-order-assignment > span { display:inline-flex; align-items:center; gap:4px; }.cockpit-order-assignment i { color:#3975c9; font-size:12px; }.cockpit-order-assignment strong,.cockpit-order-assignment a { margin-left:2px; color:#173e72; font-weight:700; }.cockpit-order-assignment a:hover { color:#0b63ce; text-decoration:underline; }
.cockpit-assignment-modal { position:fixed; inset:0; z-index:1100; display:flex; align-items:center; justify-content:center; padding:16px; box-sizing:border-box; }.cockpit-assignment-modal.layui-hide { display:none!important; }.cockpit-assignment-backdrop { position:absolute; inset:0; background:rgba(14,30,56,.48); }.cockpit-assignment-card { position:relative; width:min(620px,100%); max-height:min(750px,calc(100vh - 32px)); display:flex; flex-direction:column; border:1px solid #dce6f3; border-radius:14px; background:#fff; box-shadow:0 24px 70px rgba(15,35,75,.25); overflow:hidden; }.cockpit-assignment-card > header { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:18px 20px 14px; border-bottom:1px solid #e8eef6; background:linear-gradient(120deg,#f3f7ff,#fff); }.cockpit-assignment-card > header small,.cockpit-assignment-card > header strong,.cockpit-assignment-card > header span { display:block; }.cockpit-assignment-card > header small { margin-bottom:5px; color:#3972cd; font-size:10px; font-weight:700; }.cockpit-assignment-card > header strong { color:#1e3555; font-size:18px; }.cockpit-assignment-card > header span { margin-top:5px; color:#71839a; font-size:11px; }.cockpit-assignment-card > header button { border:0; color:#8291a4; background:none; font-size:24px; cursor:pointer; }.cockpit-assignment-body { padding:16px 20px; overflow:auto; }.cockpit-assignment-body > label { display:block; margin-bottom:9px; color:#2f435f; font-size:12px; font-weight:700; }.cockpit-assignment-body > label small { margin-left:7px; color:#8b9bb0; font-size:10px; font-weight:400; }.cockpit-assignment-devices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; max-height:310px; margin-bottom:18px; overflow:auto; }.cockpit-assignment-device { position:relative; min-height:77px; padding:11px 58px 10px 11px; border:1px solid #dce5f0; border-radius:9px; color:#314761; background:#fff; text-align:left; cursor:pointer; }.cockpit-assignment-device:hover:not(:disabled),.cockpit-assignment-device.is-selected { border-color:#2f6de0; background:#f1f6ff; }.cockpit-assignment-device:disabled { opacity:.55; cursor:not-allowed; }.cockpit-assignment-device strong,.cockpit-assignment-device span { display:block; }.cockpit-assignment-device strong { margin-bottom:6px; font-size:13px; }.cockpit-assignment-device span { color:#77879a; font-size:10px; line-height:1.5; }.cockpit-assignment-device em { position:absolute; top:10px; right:9px; color:#16803d; font-size:9px; font-style:normal; }.cockpit-assignment-device:disabled em { color:#a26a21; }.cockpit-assignment-empty { grid-column:1/-1; margin:0; padding:15px; border-radius:8px; color:#805b24; background:#fff8e9; font-size:11px; }.cockpit-assignment-body select { width:100%; height:36px; padding:0 10px; border:1px solid #d6e2f1; border-radius:7px; color:#304761; background:#fff; font-size:12px; }.cockpit-assignment-body > p { margin:7px 0 0; color:#71849c; font-size:10px; }.cockpit-assignment-card > footer { display:flex; justify-content:flex-end; gap:8px; padding:12px 20px; border-top:1px solid #e8eef6; }.cockpit-assignment-card > footer button { min-width:84px; height:34px; border:1px solid #d7e0ec; border-radius:7px; color:#607188; background:#fff; cursor:pointer; }.cockpit-assignment-card > footer button.is-primary { border-color:#2563eb; color:#fff; background:#2563eb; }.cockpit-assignment-card > footer button:disabled { opacity:.48; cursor:not-allowed; }
.cockpit-resource-filters { display:flex; flex-wrap:wrap; gap:5px; padding:5px 9px 9px; border-bottom:1px solid #e8eef5; }.cockpit-resource-filters button { min-height:27px; padding:4px 7px; border:1px solid #dce5f1; border-radius:6px; color:#64758e; background:#fff; font-size:9px; cursor:pointer; }.cockpit-resource-filters button.is-active { border-color:#9fc0f7; color:#1d5fbd; background:#edf5ff; font-weight:700; }
.cockpit-state-list { max-height:320px; overflow:auto; }.cockpit-state-group { border-bottom:1px solid #edf1f6; }.cockpit-state-group:last-child { border-bottom:0; }.cockpit-state-group > header { display:flex; justify-content:space-between; align-items:center; padding:8px 10px 6px; color:#536681; background:#fbfcfe; }.cockpit-state-group > header strong { font-size:10px; }.cockpit-state-group > header span { font-size:9px; color:#92a0b2; }.cockpit-state-items { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; padding:7px 9px 10px; }.cockpit-state-items.people { grid-template-columns:1fr; gap:0; padding:0; }
.cockpit-state-items .reference-device { width:100%; min-height:44px; padding:7px; border-radius:7px; }.cockpit-state-items .reference-device strong,.cockpit-state-items .reference-person strong { font-size:10px; }.cockpit-state-items .reference-device small,.cockpit-state-items .reference-person small { font-size:9px; }.cockpit-state-items .reference-device.is-selectable:hover,.cockpit-state-items .reference-person.is-selectable:hover { border-color:#93b8f4; background:#f2f7ff; }.cockpit-state-items .reference-device.is-selected,.cockpit-state-items .reference-person.is-selected { border-color:#2563eb; background:#edf5ff; box-shadow:inset 0 0 0 1px #2563eb; }.cockpit-state-items .reference-device.is-incompatible { opacity:.43; }
.cockpit-state-items.people .reference-person { min-height:44px; padding:7px 10px; border-bottom:1px solid #edf1f6; }.cockpit-resource-empty { margin:0; padding:20px 12px; color:#8b99aa; font-size:10px; text-align:center; }.state-dot.stopped { background:#ef4444; box-shadow:0 0 0 3px rgba(239,68,68,.1); }
@media (max-width:1350px) { .dispatch-cockpit .cockpit-workspace { grid-template-columns:1fr; }.cockpit-resources { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }.cockpit-order-list-head,.cockpit-order-row { grid-template-columns:120px minmax(130px,1.1fr) minmax(145px,1fr) minmax(135px,1fr) 85px 132px; } }
@media (max-width:850px) { .cockpit-order-list-head { display:none; }.cockpit-order-row { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; padding:11px; }.cockpit-order-cell.status { grid-column:1; }.cockpit-order-actions { grid-column:2; align-self:end; }.cockpit-order-notes { grid-template-columns:1fr; }.dispatch-cockpit .cockpit-resources { display:block; }.cockpit-resource-panel + .cockpit-resource-panel { margin-top:10px; }.cockpit-dispatch-strip { position:relative; } }
@media (max-width:560px) { .cockpit-assignment-devices { grid-template-columns:1fr; }.cockpit-assignment-body > label small { display:block; margin:4px 0 0; } }

/* Login V3 — focused enterprise sign-in experience */
body:has(.login-v3) {
    min-width: 320px;
    overflow: auto;
    background:
        radial-gradient(circle at 8% 8%, rgba(37, 99, 235, .09), transparent 28%),
        radial-gradient(circle at 92% 90%, rgba(14, 165, 233, .08), transparent 27%),
        #eef3f9;
}
.login-v3 {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 100vh !important;
    height: auto !important;
    padding: clamp(16px, 3vw, 44px);
    box-sizing: border-box;
    background: transparent !important;
    background-image: none !important;
}
.login-v3:before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .42;
    background-image: linear-gradient(rgba(148, 163, 184, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .09) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
.login-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(520px, 1.15fr) minmax(430px, .85fr);
    width: min(1440px, 100%);
    min-height: min(820px, calc(100vh - clamp(32px, 6vw, 88px)));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 32px 80px rgba(22, 41, 78, .16), 0 8px 28px rgba(22, 41, 78, .08);
}

.login-showcase {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: clamp(34px, 4vw, 58px) clamp(38px, 5vw, 72px) 34px;
    color: #fff;
    background:
        linear-gradient(150deg, rgba(18, 43, 98, .12), rgba(29, 78, 216, .05)),
        linear-gradient(145deg, #071633 0%, #0b2453 52%, #123b78 100%);
    isolation: isolate;
}
.login-showcase:before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .32;
    background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(130deg, #000, transparent 78%);
}
.login-showcase:after {
    content: '';
    position: absolute;
    width: 640px;
    height: 640px;
    right: -340px;
    top: -340px;
    z-index: -1;
    border: 1px solid rgba(125, 180, 255, .15);
    border-radius: 50%;
    box-shadow: 0 0 0 86px rgba(96, 165, 250, .025), 0 0 0 172px rgba(96, 165, 250, .018);
}
.showcase-glow {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(2px);
}
.showcase-glow-one { width: 420px; height: 420px; left: -220px; top: 26%; background: rgba(37, 99, 235, .19); }
.showcase-glow-two { width: 300px; height: 300px; right: -80px; bottom: -110px; background: rgba(14, 165, 233, .13); }
.showcase-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.login-v3 .login-brand { gap: 13px; }
.login-v3 .login-brand .brand-mark,
.login-v3 .mobile-brand .brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 13px;
    font-size: 20px;
    background: linear-gradient(135deg, #2f80ff, #13b5ea);
    box-shadow: 0 11px 28px rgba(31, 117, 255, .34), inset 0 1px 0 rgba(255,255,255,.28);
}
.login-v3 .login-brand strong { color: #fff; font-size: 19px; letter-spacing: .05em; }
.login-v3 .login-brand small { color: #7fa8de; font-size: 9px; letter-spacing: .19em; }
.system-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 20px;
    color: #9db6d9;
    background: rgba(255,255,255,.045);
    font-size: 11px;
    backdrop-filter: blur(8px);
}
.system-state i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.11); }

.showcase-copy { position: relative; z-index: 2; margin-top: clamp(58px, 8vh, 92px); max-width: 660px; }
.showcase-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #70b7ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
}
.showcase-kicker i { font-size: 15px; }
.showcase-copy h1 {
    margin: 20px 0 18px;
    color: #f8fbff;
    font-size: clamp(42px, 4.2vw, 66px);
    line-height: 1.12;
    font-weight: 760;
    letter-spacing: -.055em;
}
.showcase-copy h1 em { color: #72bbff; font-style: normal; }
.showcase-copy p { max-width: 590px; color: #a2b6d5; font-size: 15px; line-height: 1.85; letter-spacing: .015em; }

.showcase-dashboard {
    position: relative;
    z-index: 2;
    width: min(610px, 92%);
    margin-top: clamp(38px, 6vh, 60px);
    padding: 18px;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 18px;
    background: rgba(11, 32, 72, .68);
    box-shadow: 0 24px 70px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.06);
    backdrop-filter: blur(16px);
    transform: perspective(1000px) rotateX(1.2deg) rotateY(-2deg);
    transform-origin: left center;
}
.dashboard-topline { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; color: #d5e3f6; }
.dashboard-topline > span { display: flex; gap: 4px; margin-right: 2px; }
.dashboard-topline > span i { width: 6px; height: 6px; border-radius: 50%; background: #325380; }
.dashboard-topline b { font-size: 11px; font-weight: 600; }
.dashboard-topline small { margin-left: auto; color: #5f80aa; font-size: 9px; }
.dashboard-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dashboard-kpis > div { padding: 13px 14px; border: 1px solid rgba(255,255,255,.07); border-radius: 11px; background: rgba(255,255,255,.045); }
.dashboard-kpis span, .dashboard-kpis strong, .dashboard-kpis small { display: block; }
.dashboard-kpis span { color: #718db2; font-size: 9px; }
.dashboard-kpis strong { margin: 7px 0 4px; color: #f2f7ff; font-size: 24px; line-height: 1; }
.dashboard-kpis small { color: #4ac8a4; font-size: 8px; }
.dashboard-kpis > div:last-child small { color: #f6b75c; }
.dashboard-lower { display: grid; grid-template-columns: 1.65fr .85fr; gap: 10px; margin-top: 10px; }
.mini-chart, .mini-progress { min-height: 94px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.07); border-radius: 11px; background: rgba(255,255,255,.035); }
.mini-chart-head { display: flex; justify-content: space-between; color: #b7c9e2; font-size: 9px; }
.mini-chart-head small { color: #5f80aa; }
.chart-bars { display: flex; height: 58px; align-items: flex-end; gap: 8px; padding-top: 8px; border-bottom: 1px solid rgba(255,255,255,.07); }
.chart-bars i { flex: 1; min-height: 5px; border-radius: 3px 3px 0 0; background: linear-gradient(to top, rgba(34,116,255,.48), #42a5ff); box-shadow: 0 0 12px rgba(66,165,255,.12); }
.mini-progress > span { color: #718db2; font-size: 9px; }
.mini-progress > strong { display: block; margin: 7px 0; color: #f2f7ff; font-size: 25px; }
.mini-progress > strong small { font-size: 10px; }
.mini-progress > div { height: 5px; overflow: hidden; border-radius: 5px; background: rgba(255,255,255,.08); }
.mini-progress > div i { display: block; width: 92%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2479ff, #34d3c8); }
.mini-progress > small { display: block; margin-top: 8px; color: #4ac8a4; font-size: 8px; }
.showcase-footer { display: flex; gap: clamp(18px, 3vw, 38px); margin-top: auto; padding-top: 28px; color: #718db2; font-size: 10px; }
.showcase-footer span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.showcase-footer i { color: #5d9ff0; font-size: 13px; }

.login-v3 .login-panel {
    position: relative;
    z-index: 3;
    display: flex;
    min-width: 0;
    min-height: 100%;
    align-items: center;
    justify-content: center;
    padding: clamp(54px, 6vw, 94px);
    box-sizing: border-box;
    background: #fff;
}
.login-v3 .login-panel:before {
    content: '';
    position: absolute;
    width: 190px;
    height: 190px;
    right: -110px;
    top: -110px;
    border: 38px solid rgba(37,99,235,.035);
    border-radius: 50%;
}
.login-v3 .login-card {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: min(410px, 100%) !important;
    margin: 0 0 34px !important;
    padding: 0 !important;
}
.login-v3 .login-heading { margin-bottom: 38px; }
.login-v3 .login-heading .eyebrow { color: #2563eb; font-size: 10px; letter-spacing: .2em; }
.login-v3 .login-heading h2 {
    margin: 12px 0 9px !important;
    padding: 0 !important;
    color: #111b2e !important;
    font-size: clamp(30px, 2.3vw, 38px) !important;
    line-height: 1.2 !important;
    text-align: left !important;
    text-shadow: none !important;
    letter-spacing: -.04em !important;
}
.login-v3 .login-heading p { color: #8993a5; font-size: 13px; }
.login-v3 .login-card ul { margin: 0; padding: 0 !important; }
.login-v3 .login-card li { margin: 0 0 22px !important; text-shadow: none !important; }
.login-v3 .login-card .field-label { margin-bottom: 9px; color: #334155 !important; font-size: 12px; font-weight: 650; letter-spacing: .02em; }
.login-v3 .login-field { display: block; position: relative; }
.login-v3 .login-field > i {
    position: absolute !important;
    left: 17px !important;
    top: 17px !important;
    z-index: 2;
    padding: 0 !important;
    color: #8490a3 !important;
    font-size: 18px !important;
}
.login-v3 .login-field .layui-input {
    width: 100%;
    height: 54px !important;
    padding: 0 48px !important;
    box-sizing: border-box;
    border: 1px solid #dbe2ec !important;
    border-radius: 12px !important;
    color: #172033 !important;
    background: #fafdff !important;
    text-indent: 0 !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #172033 !important;
    box-shadow: 0 2px 5px rgba(15,23,42,.025) !important;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.login-v3 .login-field .layui-input::placeholder { color: #a5aebc; -webkit-text-fill-color: #a5aebc; }
.login-v3 .login-field .layui-input:hover { border-color: #bdc9d9 !important; background: #fff !important; }
.login-v3 .login-field .layui-input:focus {
    border-color: #3b82f6 !important;
    background: #fff !important;
    outline: 0;
    box-shadow: 0 0 0 4px rgba(37,99,235,.09), 0 8px 20px rgba(37,99,235,.07) !important;
}
.login-v3 .login-field:focus-within > i { color: #2563eb !important; }
.password-toggle {
    position: absolute;
    z-index: 3;
    right: 8px;
    top: 8px;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    color: #8490a3;
    background: transparent;
    cursor: pointer;
    transition: color .15s ease, background .15s ease;
}
.password-toggle:hover, .password-toggle:focus { color: #2563eb; background: #eff6ff; outline: 0; }
.password-toggle i { font-size: 17px; }
.verify-row {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) clamp(112px, 32%, 130px);
    gap: 10px;
}
.login-v3 .verify-row > * { min-width: 0; box-sizing: border-box; }
.login-v3 .verify-row .login-field { width: auto !important; }
.login-v3 .captcha-image {
    position: relative !important;
    display: block;
    width: 100% !important;
    max-width: 130px;
    height: 54px;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid #dbe2ec;
    border-radius: 12px;
    background: #f4f7fb;
    cursor: pointer;
}
.login-v3 .captcha-image img {
    position: static !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    object-fit: contain;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.login-v3 .login-submit { margin-top: 30px !important; margin-bottom: 18px !important; padding-top: 0 !important; }
.login-v3 .login-submit .layui-btn {
    display: flex;
    width: 100%;
    height: 54px !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0 !important;
    border-radius: 12px !important;
    color: #fff !important;
    background: linear-gradient(100deg, #2265e5, #2388ef) !important;
    box-shadow: 0 13px 28px rgba(37,99,235,.25) !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em !important;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.login-v3 .login-submit .layui-btn:not(.layui-disabled):hover { transform: translateY(-2px); filter: saturate(1.08); box-shadow: 0 17px 34px rgba(37,99,235,.3) !important; }
.login-v3 .login-submit .layui-btn i { position: static !important; padding: 0 !important; color: #fff !important; font-size: 15px !important; transition: transform .16s ease; }
.login-v3 .login-submit .layui-btn:not(.layui-disabled):hover i { transform: translateX(3px); }
.login-help { display: flex; align-items: center; justify-content: center; gap: 7px; margin: -2px 0 30px; color: #94a0b2; font-size: 11px; }
.login-help i { color: #718096; }
.login-v3 .login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid #edf0f4;
    color: #9ba5b4;
    font-size: 10px;
    white-space: nowrap;
}
.login-v3 .login-security i { margin: 0 2px 0 0; color: #38a779; font-size: 13px; }
.login-v3 .login-security b { width: 3px; height: 3px; border-radius: 50%; background: #ccd3dc; }
.login-v3 .login-copyright { position: absolute; bottom: 27px; left: 24px; right: 24px; color: #a4adba; font-size: 10px; text-align: center; }
.login-v3 .mobile-brand { display: flex; width: min(410px, 100%); align-items: center; gap: 12px; margin: 0 auto 56px; color: #172033; }
.login-v3 .mobile-brand > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.login-v3 .mobile-brand strong { font-size: 17px; }
.login-v3 .mobile-brand small { color: #97a1af; font-size: 10px; }

@media (max-width: 1120px) {
    .login-shell { grid-template-columns: minmax(480px, 1.05fr) minmax(400px, .95fr); }
    .login-showcase { padding-left: 44px; padding-right: 44px; }
    .showcase-dashboard { width: 100%; }
    .login-v3 .login-panel { padding-left: 50px; padding-right: 50px; }
}
@media (max-width: 900px) {
    .login-v3 { padding: 0; }
    .login-shell { display: block; width: 100%; min-height: 100vh; border: 0; border-radius: 0; box-shadow: none; }
    .login-v3 .login-panel { min-height: 100vh; padding: 46px 28px 86px; }
    .login-v3 .login-card { margin-bottom: 0 !important; }
    .login-v3 .login-copyright { bottom: 24px; }
}
@media (max-width: 480px) {
    .login-v3 .login-panel { align-items: flex-start; padding: 30px 22px 78px; }
    .login-v3 .mobile-brand { margin-bottom: 48px; }
    .login-v3 .login-heading { margin-bottom: 32px; }
    .login-v3 .login-heading h2 { font-size: 30px !important; }
    .login-v3 .login-card li { margin-bottom: 19px !important; }
    .login-v3 .login-security { gap: 6px; font-size: 9px; }
}
@media (max-height: 760px) and (min-width: 901px) {
    .login-v3 { padding: 16px; }
    .login-shell { min-height: calc(100vh - 32px); }
    .login-showcase { padding-top: 28px; padding-bottom: 24px; }
    .showcase-copy { margin-top: 35px; }
    .showcase-copy h1 { margin-top: 13px; font-size: 40px; }
    .showcase-dashboard { margin-top: 24px; }
    .showcase-footer { padding-top: 18px; }
    .login-v3 .login-panel { padding-top: 38px; padding-bottom: 48px; }
    .login-v3 .login-heading { margin-bottom: 24px; }
    .login-v3 .login-card li { margin-bottom: 15px !important; }
    .login-v3 .login-submit { margin-top: 22px !important; }
    .login-help { margin-bottom: 18px; }
    .login-v3 .login-copyright { bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
    .login-v3 *, .login-v3 *:before, .login-v3 *:after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

html, body { color: var(--ink); background: var(--canvas); }
body, button, input, select, textarea { font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; }
* { scrollbar-width: thin; scrollbar-color: #c7cfda transparent; }
*::-webkit-scrollbar { width: 7px; height: 7px; }
*::-webkit-scrollbar-thumb { background: #c7cfda; border-radius: 20px; }

/* Application shell */
.app-shell .layui-layout-admin > .layui-side { width: 232px; background: var(--brand-950) !important; box-shadow: 8px 0 30px rgba(8, 18, 48, .15); }
.app-shell .layui-layout-admin > .layui-header { left: 232px; height: 64px; background: rgba(255,255,255,.96) !important; border-bottom: 1px solid var(--line); box-shadow: none; backdrop-filter: blur(12px); }
.app-shell .layui-layout-admin > .layui-body { left: 232px; top: 64px; background: var(--canvas); }
.app-shell .layui-side .layui-logo { width: 232px; height: 64px; line-height: 1.1; display: flex; align-items: center; gap: 12px; padding: 0 20px; box-sizing: border-box; background: var(--brand-950) !important; border-bottom: 1px solid rgba(255,255,255,.08); color: #fff !important; }
.brand-mark { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; border-radius: 10px; color: #fff; font-size: 18px; font-weight: 800; background: linear-gradient(135deg, #3b82f6, #06b6d4); box-shadow: 0 8px 20px rgba(37, 99, 235, .32); }
.app-shell .layui-logo .headtxt { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 4px; }
.app-shell .layui-logo .headtxt strong { max-width: 145px; overflow: hidden; text-overflow: ellipsis; font-size: 15px; letter-spacing: .03em; }
.app-shell .layui-logo .headtxt small { color: #8fa4ca; font-size: 10px; letter-spacing: .08em; }
.app-shell .layui-side-scroll { top: 64px; background: var(--brand-950) !important; }
.app-shell .layui-side-tree { padding: 14px 12px 26px; }
.app-shell .layui-side-tree .layui-nav { background: transparent; }
.app-shell .layui-side-tree .layui-nav-item { margin: 3px 0; }
.app-shell .layui-side-tree .layui-nav-item > a,
.app-shell .layui-side-tree .layui-nav-child dd > a { height: 44px; line-height: 44px; border-radius: 8px; color: #aebddd !important; transition: all .18s ease; }
.app-shell .layui-side-tree .layui-nav-item > a:hover,
.app-shell .layui-side-tree .layui-nav-child dd > a:hover { color: #fff !important; background: rgba(255,255,255,.07) !important; }
.app-shell .layui-side-tree .layui-this > a,
.app-shell .layui-side-tree .layui-nav-item.layui-this > a { color: #fff !important; background: linear-gradient(90deg, #2563eb, #2f74e9) !important; box-shadow: 0 7px 18px rgba(37,99,235,.26); }
.app-shell .layui-side-tree .nav-icon { color: #7892c2; }
.app-shell .layui-side-tree .layui-this .nav-icon { color: #fff; }
.app-shell .layui-nav-tree .layui-nav-bar { display: none; }
.app-shell .layui-side-icon { background: var(--brand-900); }
.app-shell .layui-layout-admin.layui-layout-left-mini > .layui-side { width: 64px !important; }
.app-shell .layui-layout-admin.layui-layout-left-mini > .layui-side .layui-logo { width: 64px; padding: 0 15px; }
.app-shell .layui-layout-admin.layui-layout-left-mini > .layui-side .layui-logo .headtxt { display: none; }
.app-shell .layui-layout-admin.layui-layout-left-mini > .layui-header,
.app-shell .layui-layout-admin.layui-layout-left-mini > .layui-body { left: 64px; }

.app-shell .layui-header .layui-nav { height: 64px; background: transparent; }
.app-shell .layui-header .layui-nav .layui-nav-item { line-height: 64px; }
.app-shell .layui-header .layui-nav .layui-nav-item > a { color: #536078; }
.app-shell .layui-header .layui-nav .layui-nav-item > a:hover { color: var(--primary); }
.app-shell .layui-layout-left { left: 0; }
.topbar-context { padding-left: 8px; color: var(--ink); }
.context-title { font-size: 15px; font-weight: 700; }
.context-separator { padding: 0 10px; color: #c1c7d1; }
.context-subtitle { color: #8a94a6; font-size: 12px; }
.topbar-action { height: 34px !important; line-height: 34px !important; margin-top: 15px; padding: 0 14px !important; border: 1px solid #dce4f0; border-radius: 8px; background: #fff; }
.topbar-action i { margin-right: 6px; color: var(--primary); }
.topbar-icon { width: 36px; height: 36px !important; line-height: 36px !important; padding: 0 !important; margin: 14px 8px 0; text-align: center; border-radius: 9px; background: #f5f7fa; }
.tenant-badge { height: 26px; line-height: 26px !important; margin: 19px 8px 0; padding: 0 10px; border-radius: 20px; color: #2556aa; background: var(--primary-soft); font-size: 12px; }
.app-shell .layui-layout-right .headimg { border: 2px solid #e3e9f2; }

/* Content, cards and controls */
.think-page-body { padding: 22px 24px 30px; }
.layui-card, .think-box-shadow { border: 1px solid rgba(221,226,235,.9); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow) !important; }
.layui-card { overflow: visible; }
.layui-card-header { height: 55px; line-height: 55px; padding: 0 20px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 700; }
.layui-card-line { display: none; }
.layui-card-body { padding: 18px 20px 22px; }
.layui-btn { height: 36px; line-height: 36px; padding: 0 16px; border-radius: 8px; font-weight: 600; box-shadow: none; transition: transform .15s ease, box-shadow .15s ease; }
.layui-btn:not(.layui-btn-disabled):hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(37,99,235,.15); }
.layui-btn-normal, .layui-btn-primary:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.layui-btn-primary { background: #fff; border-color: #d7dde7; color: #465269; }
.layui-btn-danger { background: #ef4444; }
.layui-input, .layui-select, .layui-textarea { border-color: #d9e0ea; border-radius: 8px; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.layui-input { height: 38px; }
.layui-input:hover, .layui-select:hover, .layui-textarea:hover { border-color: #9fb5d8 !important; }
.layui-input:focus, .layui-select:focus, .layui-textarea:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.layui-form-label { color: #4d586d; }
.layui-form-select dl { border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow); }
.layui-form-select dl dd.layui-this { background-color: var(--primary); }
.layui-form-checked[lay-skin=primary] i { border-color: var(--primary) !important; background-color: var(--primary); }
.layui-table { color: #39445a; }
.layui-table thead tr, .layui-table-header { background: #f7f9fc; }
.layui-table th { height: 42px; color: #68748a; font-weight: 600; }
.layui-table td { border-color: #edf0f4; }
.layui-table tbody tr:hover { background: #f8fbff; }
.layui-table-view { border-color: var(--line); border-radius: 10px; overflow: hidden; }
.layui-laypage .layui-laypage-curr .layui-laypage-em { background-color: var(--primary); border-radius: 6px; }
.layui-layer { border-radius: 12px !important; overflow: hidden; box-shadow: 0 24px 70px rgba(15,23,42,.22) !important; }
.layui-layer-title { height: 54px !important; line-height: 54px !important; border-color: var(--line) !important; background: #fff !important; color: var(--ink) !important; font-weight: 700; }
.layui-layer-btn .layui-layer-btn0 { border-color: var(--primary) !important; background-color: var(--primary) !important; }
.layui-breadcrumb a { color: #758095 !important; }

/* Order lifecycle */
.order-status-badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.order-status-badge i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(100,116,139,.12); }
.order-status-slate { color: #526077; background: #eef1f5; }
.order-status-amber { color: #a16207; background: #fef3c7; }
.order-status-blue { color: #1d4ed8; background: #dbeafe; }
.order-status-orange { color: #c2410c; background: #ffedd5; }
.order-status-green { color: #15803d; background: #dcfce7; }
.order-status-red { color: #b91c1c; background: #fee2e2; }

.order-detail-page { overflow: auto; background: var(--canvas); }
.order-detail-page > .layui-card { margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none !important; }
.order-detail-page > .layui-card > .layui-card-body { max-width: 100%; margin: 0 auto; padding: 24px !important; box-sizing: border-box; }
.order-detail-hero { margin-bottom: 18px; padding: 26px 28px 22px; border: 1px solid #dce5f2; border-radius: 16px; background: linear-gradient(135deg, #fff 0%, #f5f9ff 62%, #edf5ff 100%); box-shadow: 0 10px 30px rgba(32,70,120,.08); }
.order-detail-hero.is-cancelled { border-color: #f1d4d4; background: linear-gradient(135deg, #fff 0%, #fff7f7 100%); }
.order-detail-heading { display: flex; justify-content: space-between; gap: 28px; }
.order-detail-title-row { display: flex; align-items: center; gap: 12px; margin: 6px 0; }
.order-detail-title-row h1 { margin: 0; color: var(--ink); font-size: 25px; line-height: 1.4; letter-spacing: -.02em; }
.order-detail-heading p { color: var(--muted); }
.order-detail-summary { display: grid; grid-template-columns: repeat(2, minmax(130px, 1fr)); min-width: 410px; border: 1px solid rgba(214,224,238,.9); border-radius: 12px; background: rgba(255,255,255,.82); }
.order-detail-summary div { padding: 12px 16px; border-right: 1px solid #e8edf4; border-bottom: 1px solid #e8edf4; }
.order-detail-summary div:nth-child(2n) { border-right: 0; }
.order-detail-summary div:nth-last-child(-n+2) { border-bottom: 0; }
.order-detail-summary span, .order-detail-summary strong { display: block; }
.order-detail-summary span { margin-bottom: 5px; color: #8792a4; font-size: 11px; }
.order-detail-summary strong { color: #253148; font-size: 13px; }
.order-progress { display: flex; margin: 26px 0 0; padding: 0; list-style: none; }
.order-progress li { position: relative; flex: 1; color: #a1a9b6; text-align: center; }
.order-progress li:not(:last-child):before { content: ''; position: absolute; z-index: 0; left: 50%; right: -50%; top: 15px; height: 2px; background: #dfe5ee; }
.order-progress li.is-active:not(:last-child):before { background: #7aa7ef; }
.order-progress i { position: relative; z-index: 1; display: flex; width: 30px; height: 30px; margin: 0 auto 8px; align-items: center; justify-content: center; border: 2px solid #dfe5ee; border-radius: 50%; background: #fff; font-style: normal; font-size: 11px; }
.order-progress li.is-active { color: #255bb2; font-weight: 650; }
.order-progress li.is-active i { border-color: #3b7be1; color: #fff; background: #3b7be1; box-shadow: 0 0 0 4px rgba(59,123,225,.12); }
.order-cancelled-note { margin-top: 22px; padding: 13px 16px; border-radius: 9px; color: #a82c2c; background: #feecec; }
.order-cancelled-note i { margin-right: 7px; }
.order-detail-section { margin-bottom: 18px; padding: 0 !important; overflow: hidden !important; }
.order-detail-section .layui-card-header span { float: right; color: #9aa3b1; font-size: 11px; font-weight: 400; }
.order-detail-section .layui-table { margin: 0; }
.order-detail-section .layui-table th { width: 190px !important; color: #68748a; background: #f8fafc; }
.order-timeline { margin: 0; padding: 0; list-style: none; }
.order-timeline li { position: relative; display: grid; grid-template-columns: 150px 18px 1fr; gap: 15px; min-height: 56px; }
.order-timeline li:after { content: ''; position: absolute; left: 173px; top: 18px; bottom: -8px; width: 1px; background: #dfe5ee; }
.order-timeline li:last-child:after { display: none; }
.order-timeline > li > i { position: relative; z-index: 1; width: 10px; height: 10px; margin-top: 6px; border: 3px solid #dbeafe; border-radius: 50%; background: #3b82f6; }
.order-timeline time { padding-top: 3px; color: #8a95a7; font-size: 12px; text-align: right; }
.order-timeline strong, .order-timeline span { display: block; }
.order-timeline strong { margin-bottom: 4px; color: #303b50; }
.order-timeline span { color: #8a95a7; font-size: 12px; }
.order-timeline .timeline-red > i { border-color: #fee2e2; background: #ef4444; }
.order-timeline .timeline-green > i { border-color: #dcfce7; background: #22c55e; }
.order-timeline .timeline-orange > i { border-color: #ffedd5; background: #f97316; }

/* Unified project and equipment detail pages */
.entity-detail-page { color: #283348; }
.entity-hero { position: relative; display: flex; min-height: 154px; align-items: stretch; justify-content: space-between; margin-bottom: 14px; border: 1px solid #dce5f2; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #0d2147 0%, #163d72 62%, #176295 100%); box-shadow: 0 9px 28px rgba(15,40,82,.14); overflow: hidden; }
.entity-hero:before, .entity-hero:after { content: ''; position: absolute; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; pointer-events: none; }
.entity-hero:before { width: 310px; height: 310px; right: 170px; top: -220px; }
.entity-hero:after { width: 190px; height: 190px; right: 90px; bottom: -150px; }
.device-entity-hero { background: linear-gradient(135deg, #10233e 0%, #174d68 62%, #087f8f 100%); }
.entity-hero-main { position: relative; z-index: 1; min-width: 0; flex: 1; padding: 23px 26px 21px; }
.entity-eyebrow { display: block; margin-bottom: 7px; color: #7db8ff; font-size: 9px; font-weight: 750; letter-spacing: .18em; }
.entity-title-row { display: flex; align-items: center; gap: 12px; }
.entity-title-row h1 { min-width: 0; margin: 0; color: #fff; font-size: 25px; line-height: 1.35; font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entity-title-row .order-status-badge { flex: 0 0 auto; }
.entity-hero-main > p { margin: 7px 0 17px; color: #b7c9df; font-size: 12px; }
.entity-meta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 22px; color: #d5e1ef; font-size: 11px; }
.entity-meta-row i { margin-right: 6px; color: #7db8ff; }
.entity-hero-side { position: relative; z-index: 1; display: flex; width: 245px; flex-direction: column; justify-content: center; padding: 22px 27px; border-left: 1px solid rgba(255,255,255,.1); background: rgba(5,20,47,.16); box-sizing: border-box; }
.entity-hero-side span, .entity-hero-side strong, .entity-hero-side small { display: block; }
.entity-hero-side span { color: #a9bdd5; font-size: 11px; }
.entity-hero-side strong { margin: 8px 0 6px; color: #fff; font-size: 25px; line-height: 1.2; }
.entity-hero-side small { color: #85a4c7; font-size: 10px; }
.entity-state-tag { padding: 3px 8px; border-radius: 99px; font-size: 10px; }
.entity-state-tag.is-stopped { color: #fecaca; background: rgba(239,68,68,.22); }
.entity-kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(120px, 1fr)); gap: 11px; margin-bottom: 14px; }
.entity-kpi-grid > div { position: relative; min-height: 92px; padding: 15px 16px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 4px 16px rgba(15,23,42,.045); overflow: hidden; box-sizing: border-box; }
.entity-kpi-grid > div:before { content: ''; position: absolute; left: 0; top: 15px; width: 4px; height: 29px; border-radius: 0 4px 4px 0; background: #64748b; }
.entity-kpi-grid span, .entity-kpi-grid strong, .entity-kpi-grid small { display: block; }
.entity-kpi-grid span { color: #748096; font-size: 11px; }
.entity-kpi-grid strong { margin: 7px 0 4px; color: #202c42; font-size: 19px; line-height: 1.1; }
.entity-kpi-grid small { color: #9aa3b1; font-size: 9px; }
.entity-kpi-grid .tone-blue:before { background: #2563eb; }
.entity-kpi-grid .tone-purple:before { background: #7c3aed; }
.entity-kpi-grid .tone-cyan:before { background: #0891b2; }
.entity-kpi-grid .tone-green:before { background: #16a34a; }
.entity-kpi-grid .tone-orange:before { background: #ea580c; }
.entity-module-nav { display: grid; grid-template-columns: repeat(8, minmax(110px, 1fr)); margin-bottom: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 4px 17px rgba(15,23,42,.045); overflow: hidden; }
.entity-module-nav > a { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 14px 12px; border-right: 1px solid #edf0f4; color: #344158; cursor: pointer; transition: background .15s ease; }
.entity-module-nav > a:last-child { border-right: 0; }
.entity-module-nav > a:hover { color: #1d4ed8; background: #f5f9ff; }
.entity-module-nav > a > i { flex: 0 0 auto; color: #4c83dd; font-size: 19px; }
.entity-module-nav span, .entity-module-nav strong, .entity-module-nav small { display: block; min-width: 0; }
.entity-module-nav strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.entity-module-nav small { margin-top: 3px; color: #9aa3b1; font-size: 9px; }
.project-workspace-summary { position: relative; display: flex; min-height: 128px; align-items: stretch; justify-content: space-between; margin-bottom: 14px; border: 1px solid #d5e3f5; border-radius: 14px; color: #fff; background: radial-gradient(circle at 82% -30%, rgba(96,165,250,.38), transparent 33%), linear-gradient(124deg,#0d234b 0%,#173d77 64%,#18598a 100%); box-shadow: 0 10px 28px rgba(18,55,105,.14); overflow: hidden; }
.project-workspace-summary:after { content: ''; position: absolute; width: 240px; height: 240px; right: 150px; top: -185px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; pointer-events: none; }
.project-summary-main { position: relative; z-index: 1; min-width: 0; flex: 1; padding: 20px 24px 18px; }
.project-summary-eyebrow { display: block; margin-bottom: 6px; color: #88c7ff; font-size: 9px; font-weight: 750; letter-spacing: .14em; }
.project-summary-title { display: flex; align-items: center; gap: 10px; }
.project-summary-title h2 { min-width: 0; margin: 0; color: #fff; font-size: 23px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-summary-main > p { margin: 5px 0 13px; color: #b9cee7; font-size: 11px; }
.project-summary-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 18px; color: #d8e6f4; font-size: 10px; }
.project-summary-meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-summary-meta i { margin-right: 5px; color: #7dc2ff; }
.project-summary-meta .project-summary-arrow { margin: 0 -10px; color: #7dc2ff; }
.project-summary-meta .project-summary-arrow i { margin: 0; }
.project-summary-value { position: relative; z-index: 1; display: flex; width: 225px; flex: 0 0 auto; flex-direction: column; justify-content: center; padding: 18px 25px; border-left: 1px solid rgba(255,255,255,.1); background: rgba(6,26,59,.18); box-sizing: border-box; }
.project-summary-value span, .project-summary-value strong, .project-summary-value small { display: block; }
.project-summary-value span { color: #aec5df; font-size: 10px; }
.project-summary-value strong { margin: 7px 0 5px; color: #fff; font-size: 23px; line-height: 1.2; }
.project-summary-value small { color: #8eafd0; font-size: 9px; }
.project-workspace-tabs-wrap { margin: 0 0 14px; padding: 15px 16px 16px; border: 1px solid #dfe7f2; border-radius: 13px; background: #fff; box-shadow: 0 5px 18px rgba(15,23,42,.05); }
.project-tabs-heading { display: flex; min-height: 38px; align-items: flex-start; justify-content: space-between; gap: 20px; }
.project-tabs-heading > div strong, .project-tabs-heading > div span { display: block; }
.project-tabs-heading > div strong { color: #26364d; font-size: 13px; }
.project-tabs-heading > div span { margin-top: 3px; color: #95a1b2; font-size: 9px; }
.project-tabs-heading > small { max-width: 40%; padding-top: 3px; color: #8794a7; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-tabs-heading > small i { margin-right: 5px; color: #5689d8; }
.project-workspace-tabs { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 7px; }
.project-workspace-tabs > a { position: relative; display: flex; min-width: 0; min-height: 70px; align-items: center; gap: 7px; padding: 9px 10px; border: 1px solid #e3e9f2; border-radius: 10px; color: #526178; background: #fbfcfe; cursor: pointer; box-sizing: border-box; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.project-workspace-tabs > a:hover { color: #1e5dbd; border-color: #bad2f4; background: #f5f9ff; box-shadow: 0 5px 14px rgba(37,99,235,.08); transform: translateY(-1px); }
.project-workspace-tabs > a.is-active { color: #fff; border-color: #2563eb; background: linear-gradient(135deg,#2162d7,#3785ec); box-shadow: 0 7px 18px rgba(37,99,235,.2); }
.project-workspace-tabs .project-tab-icon { display: flex; width: 31px; height: 31px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 8px; color: #3975cf; background: #eaf2ff; font-size: 17px; }
.project-workspace-tabs > a.is-active .project-tab-icon { color: #fff; background: rgba(255,255,255,.18); }
.project-workspace-tabs > a > span { min-width: 0; flex: 1; }
.project-workspace-tabs > a strong, .project-workspace-tabs > a small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-workspace-tabs > a strong { font-size: 11px; font-weight: 700; }
.project-workspace-tabs > a small { margin-top: 5px; color: #98a3b2; font-size: 8px; }
.project-workspace-tabs > a.is-active small { color: rgba(255,255,255,.74); }
.project-workspace-tabs > a > em { position: absolute; right: 7px; top: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; color: #64748b; background: #edf1f6; font-size: 8px; font-style: normal; line-height: 18px; text-align: center; box-sizing: border-box; }
.project-workspace-tabs > a.is-active > em { color: #2463c8; background: #fff; }
.project-order-workspace > .project-workspace-summary, .project-order-workspace > .project-workspace-tabs-wrap { margin-top: 0; }
.layui-tab-content > .project-workspace-summary, .layui-tab-content > .project-workspace-tabs-wrap { margin-bottom: 14px; }
.project-detail-page { width: 100%; max-width: 100%; margin: 0 auto; }
.project-overview-kpis > div > i { position: absolute; right: 13px; top: 13px; color: #cbd5e1; font-size: 19px; }
.project-overview-kpis > .tone-blue > i { color: #a8c8ff; }
.project-overview-kpis > .tone-purple > i { color: #c4b5fd; }
.project-overview-kpis > .tone-cyan > i { color: #9adbea; }
.project-overview-kpis > .tone-green > i { color: #9edbb0; }
.project-overview-kpis > .tone-orange > i { color: #fdba9a; }
.project-overview-pulse { display: grid; grid-template-columns: minmax(0, 2fr) minmax(330px, .85fr); gap: 12px; margin-bottom: 14px; }
.project-progress-card, .project-focus-card { border: 1px solid #dfe7f2; border-radius: 12px; background: #fff; box-shadow: 0 5px 18px rgba(15,23,42,.045); overflow: hidden; }
.project-progress-card > header, .project-focus-card > header { display: flex; min-height: 47px; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid #edf1f6; background: linear-gradient(180deg,#fff,#fbfcfe); box-sizing: border-box; }
.project-progress-card > header div span, .project-progress-card > header div small { display: block; }
.project-progress-card > header div span, .project-focus-card > header span { color: #29384f; font-size: 12px; font-weight: 700; }
.project-progress-card > header div small, .project-focus-card > header small { margin-top: 2px; color: #98a3b2; font-size: 8px; }
.project-progress-card > header em { padding: 4px 8px; border-radius: 99px; color: #3975cf; background: #edf4ff; font-size: 8px; font-style: normal; }
.project-progress-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 14px 8px; }
.project-progress-grid article { min-width: 0; padding: 0 13px; border-right: 1px solid #edf1f6; }
.project-progress-grid article:last-child { border-right: 0; }
.project-progress-grid article > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.project-progress-grid article span { color: #5d6c82; font-size: 10px; }
.project-progress-grid article strong { color: #25364f; font-size: 13px; }
.project-progress-grid article p { height: 6px; margin: 10px 0 7px; border-radius: 99px; background: #edf1f6; overflow: hidden; }
.project-progress-grid article p i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#2563eb,#38bdf8); box-shadow: 0 1px 4px rgba(37,99,235,.25); }
.project-progress-grid article:nth-child(2) p i { background: linear-gradient(90deg,#7c3aed,#a78bfa); }
.project-progress-grid article:nth-child(3) p i { background: linear-gradient(90deg,#0891b2,#22d3ee); }
.project-progress-grid article:nth-child(4) p i { background: linear-gradient(90deg,#16a34a,#4ade80); }
.project-progress-grid article > small { color: #9ca6b5; font-size: 8px; }
.project-focus-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; padding: 12px; }
.project-focus-list > div { display: flex; min-width: 0; min-height: 57px; align-items: center; gap: 8px; padding: 8px; border: 1px solid #e6ebf2; border-radius: 9px; background: #fafbfd; box-sizing: border-box; }
.project-focus-list > div > i { display: flex; width: 28px; height: 28px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 8px; color: #64748b; background: #eef2f6; font-size: 14px; }
.project-focus-list > div > span { min-width: 0; }
.project-focus-list strong, .project-focus-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-focus-list strong { color: #334155; font-size: 10px; }
.project-focus-list small { margin-top: 4px; color: #9aa4b3; font-size: 8px; }
.project-focus-list .is-blue { border-color: #d9e7fb; background: #f5f9ff; }
.project-focus-list .is-blue > i { color: #2563eb; background: #e5efff; }
.project-focus-list .is-amber { border-color: #f3e5bd; background: #fffbef; }
.project-focus-list .is-amber > i { color: #b7791f; background: #fdf1cd; }
.project-focus-list .is-red { border-color: #f2dada; background: #fff8f8; }
.project-focus-list .is-red > i { color: #c2414b; background: #fee9ea; }
.project-bento-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(360px, .8fr); gap: 14px; align-items: start; }
.project-bento-main, .project-bento-side { display: grid; min-width: 0; gap: 14px; }
.project-orders-card, .project-history-card, .project-profile-card { min-width: 0; }
.project-bento-grid .entity-panel { box-shadow: 0 5px 18px rgba(15,23,42,.045); }
.project-profile-card .entity-info-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
.project-price-workspace { color: #26364d; }
.project-price-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 14px; padding: 20px 24px; border-radius: 12px; color: #fff; background: linear-gradient(118deg,#10264f,#1c5694); }
.project-price-head span { color: #7db8ff; font-size: 9px; font-weight: 750; letter-spacing: .16em; }
.project-price-head h2 { margin: 6px 0 4px; color: #fff; font-size: 23px; }
.project-price-head p { margin: 0; color: #b8cbe3; font-size: 11px; }
.project-price-count { min-width: 120px; text-align: right; }
.project-price-count strong, .project-price-count span { display: block; }
.project-price-count strong { color: #fff; font-size: 28px; }
.project-price-count span { margin-top: 4px; color: #b8cbe3; letter-spacing: 0; }
.project-price-panel { border: 1px solid #e1e7f0; border-radius: 11px; background: #fff; box-shadow: 0 4px 16px rgba(15,23,42,.045); overflow: hidden; }
.project-price-note { padding: 12px 15px; border-bottom: 1px solid #e7ecf3; color: #607087; background: #f8fafd; font-size: 11px; }
.project-price-note i { margin-right: 6px; color: #3573cf; }
.project-price-panel .schedule-list-table-wrap { padding: 5px 12px 12px; overflow-x: auto; }
.project-price-panel .schedule-list-table { min-width: 1120px; }
.project-price-editor { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; padding: 22px; }
.project-price-editor label { color: #56657a; font-size: 12px; }
.project-price-editor label.wide { grid-column: 1 / -1; }
.project-price-editor .layui-input { margin-top: 7px; }
.entity-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.entity-panel { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 5px 18px rgba(15,23,42,.045); overflow: hidden; }
.entity-panel-wide, .entity-panel-full { grid-column: 1 / -1; }
.entity-panel > header { display: flex; min-height: 46px; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid #edf0f4; background: #fbfcfe; box-sizing: border-box; }
.entity-panel > header > span { color: #2e3a50; font-size: 12px; font-weight: 700; }
.entity-panel > header > span i { margin-right: 7px; color: #4e83d7; }
.entity-panel > header > a { color: #3b73c9; font-size: 10px; cursor: pointer; }
.entity-panel > header > small { color: #9ba4b2; font-size: 9px; }
.entity-order-list article { display: grid; grid-template-columns: minmax(280px, 1fr) 120px 180px; align-items: center; gap: 16px; min-height: 58px; padding: 8px 16px; border-bottom: 1px solid #f0f2f6; box-sizing: border-box; }
.entity-order-list article:last-child { border-bottom: 0; }
.entity-order-list article > div:last-child { text-align: right; }
.entity-order-list article > div:last-child strong, .entity-order-list article > div:last-child small, .entity-order-main a, .entity-order-main span { display: block; }
.entity-order-main a { color: #2765c5; font-size: 11px; font-weight: 700; cursor: pointer; }
.entity-order-main span { margin-top: 4px; color: #8c96a7; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entity-order-list article > div:last-child strong { color: #344158; font-size: 11px; }
.entity-order-list article > div:last-child small { margin-top: 4px; color: #9ba4b2; font-size: 9px; }
.entity-info-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 7px 16px 10px; }
.entity-info-list > div { min-width: 0; padding: 10px 8px; border-bottom: 1px solid #f0f2f6; }
.entity-info-list dt { margin-bottom: 5px; color: #929cab; font-size: 9px; }
.entity-info-list dd { margin: 0; color: #344158; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entity-remark { margin: 0 16px 13px; padding: 10px 12px; border-radius: 7px; color: #647086; background: #f7f9fc; font-size: 10px; line-height: 1.7; }
.entity-remark strong { margin-right: 9px; color: #39465a; }
.entity-remark-warning { color: #9a4f1c; background: #fff4e8; }
.entity-file-list > a { display: flex; align-items: center; gap: 11px; min-height: 52px; padding: 7px 15px; border-bottom: 1px solid #f0f2f6; color: #364258; box-sizing: border-box; }
.entity-file-list > a:last-child { border-bottom: 0; }
.entity-file-list > a > i { display: flex; width: 30px; height: 30px; flex: 0 0 auto; align-items: center; justify-content: center; border-radius: 7px; color: #3470cd; background: #edf4ff; font-size: 16px; }
.entity-file-list span { min-width: 0; flex: 1; }
.entity-file-list strong, .entity-file-list small { display: block; }
.entity-file-list strong { font-size: 10px; }
.entity-file-list small { margin-top: 4px; color: #9ba4b2; font-size: 9px; }
.entity-file-list em { color: #b0b8c4; font-style: normal; }
.entity-activity-list, .entity-history-list { margin: 0; padding: 12px 17px; list-style: none; }
.entity-activity-list li { position: relative; display: grid; grid-template-columns: 10px 1fr; gap: 11px; padding-bottom: 14px; }
.entity-activity-list li > i, .entity-history-list li > i { position: relative; z-index: 1; width: 7px; height: 7px; margin-top: 5px; border: 3px solid #dbeafe; border-radius: 50%; background: #3b82f6; }
.entity-activity-list li:before { content: ''; position: absolute; left: 4px; top: 14px; bottom: 0; width: 1px; background: #e1e6ed; }
.entity-activity-list li:last-child:before { display: none; }
.entity-activity-list strong, .entity-activity-list p, .entity-activity-list time { display: block; }
.entity-activity-list strong { color: #354157; font-size: 10px; }
.entity-activity-list strong small { float: right; color: #9ba4b2; font-weight: 400; }
.entity-activity-list p { margin: 4px 0; color: #657187; font-size: 10px; line-height: 1.55; }
.entity-activity-list time { color: #a0a8b5; font-size: 8px; }
.entity-history-list li { position: relative; display: grid; grid-template-columns: 130px 12px minmax(0, 1fr); gap: 11px; min-height: 45px; }
.entity-history-list li:before { content: ''; position: absolute; left: 146px; top: 15px; bottom: 0; width: 1px; background: #e1e6ed; }
.entity-history-list li:last-child:before { display: none; }
.entity-history-list time { padding-top: 5px; color: #9aa3b1; font-size: 9px; text-align: right; }
.entity-history-list strong { display: block; color: #354157; font-size: 10px; }
.entity-history-list strong small { margin-left: 8px; color: #9ba4b2; font-weight: 400; }
.entity-history-list p { margin: 4px 0 0; color: #68748a; font-size: 10px; }
.entity-empty { display: flex; min-height: 110px; align-items: center; justify-content: center; flex-direction: column; color: #a0a8b5; font-size: 10px; }
.entity-empty > i { margin-bottom: 7px; color: #c3c9d2; font-size: 25px; }
.certificate-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px; }
.certificate-cards article { display: flex; align-items: center; gap: 9px; padding: 12px; border: 1px solid #e6eaf0; border-radius: 9px; background: #fafbfd; }
.certificate-cards article > i { color: #64748b; font-size: 20px; }
.certificate-cards article > span { min-width: 0; flex: 1; }
.certificate-cards strong, .certificate-cards small { display: block; }
.certificate-cards strong { font-size: 10px; }
.certificate-cards small { margin-top: 4px; color: #9aa3b1; font-size: 9px; }
.certificate-cards em { padding: 3px 6px; border-radius: 4px; color: #526077; background: #eef1f5; font-size: 8px; font-style: normal; }
.certificate-cards .certificate-green em { color: #15803d; background: #dcfce7; }
.certificate-cards .certificate-amber em { color: #a16207; background: #fef3c7; }
.certificate-cards .certificate-orange em { color: #c2410c; background: #ffedd5; }
.certificate-cards .certificate-red em { color: #b91c1c; background: #fee2e2; }
.device-schedule-summary { display: flex; align-items: center; gap: 23px; margin: 0 14px 14px; padding: 12px 14px; border-radius: 9px; background: #f6f9fd; }
.device-schedule-summary span strong, .device-schedule-summary span small { display: block; }
.device-schedule-summary span strong { color: #2f3c52; font-size: 15px; }
.device-schedule-summary span small { color: #9aa3b1; font-size: 8px; }
.device-schedule-summary a { margin-left: auto; color: #2f6bc7; font-size: 10px; cursor: pointer; }

@media (max-width: 1180px) {
    .entity-kpi-grid { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
    .entity-module-nav { grid-template-columns: repeat(4, minmax(130px, 1fr)); }
    .entity-module-nav > a:nth-child(4n) { border-right: 0; }
    .entity-module-nav > a:nth-child(-n+4) { border-bottom: 1px solid #edf0f4; }
    .project-workspace-tabs { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
    .project-overview-pulse { grid-template-columns: 1fr; }
    .project-bento-grid { grid-template-columns: 1fr; }
    .project-bento-side { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .project-profile-card { grid-row: span 2; }
}

@media (max-width: 767px) {
    .entity-hero { flex-direction: column; }
    .entity-hero-main { padding: 20px 18px; }
    .entity-title-row { align-items: flex-start; flex-wrap: wrap; }
    .entity-title-row h1 { width: 100%; font-size: 21px; white-space: normal; }
    .entity-hero-side { width: 100%; padding: 15px 18px; border-top: 1px solid rgba(255,255,255,.1); border-left: 0; }
    .entity-kpi-grid { grid-template-columns: repeat(2, minmax(125px, 1fr)); }
    .entity-kpi-grid strong { font-size: 16px; }
    .entity-module-nav { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
    .entity-module-nav > a { border-right: 1px solid #edf0f4 !important; border-bottom: 1px solid #edf0f4; }
    .entity-module-nav > a:nth-child(2n) { border-right: 0 !important; }
    .entity-detail-grid { grid-template-columns: 1fr; }
    .entity-panel-wide, .entity-panel-full { grid-column: auto; }
    .entity-order-list article { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
    .entity-order-list article > div:last-child { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; text-align: left; }
    .entity-info-list { grid-template-columns: 1fr; }
    .entity-history-list li { grid-template-columns: 92px 12px minmax(0, 1fr); }
    .entity-history-list li:before { left: 108px; }
    .project-workspace-summary { flex-direction: column; }
    .project-summary-main { padding: 18px; }
    .project-summary-title { align-items: flex-start; flex-wrap: wrap; }
    .project-summary-title h2 { width: 100%; font-size: 20px; white-space: normal; }
    .project-summary-value { width: 100%; padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.1); border-left: 0; }
    .project-tabs-heading { flex-direction: column; gap: 4px; padding-bottom: 10px; }
    .project-tabs-heading > small { max-width: 100%; }
    .project-workspace-tabs { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
    .project-progress-grid { grid-template-columns: repeat(2,minmax(0,1fr)); row-gap: 16px; }
    .project-progress-grid article:nth-child(2) { border-right: 0; }
    .project-progress-grid article:nth-child(3) { border-top: 1px solid #edf1f6; padding-top: 14px; }
    .project-progress-grid article:nth-child(4) { border-top: 1px solid #edf1f6; border-right: 0; padding-top: 14px; }
    .project-focus-list { grid-template-columns: 1fr; }
    .project-bento-side { grid-template-columns: 1fr; }
    .project-profile-card { grid-row: auto; }
}

/* Device availability */
.device-summary-grid { display: grid; grid-template-columns: repeat(6, minmax(130px, 1fr)); gap: 12px; margin-bottom: 16px; }
.device-summary-card { position: relative; min-height: 98px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 5px 18px rgba(15,23,42,.05); box-sizing: border-box; overflow: hidden; }
.device-summary-card:before { content: ''; position: absolute; left: 0; top: 16px; width: 4px; height: 30px; border-radius: 0 4px 4px 0; background: #64748b; }
.device-summary-card span, .device-summary-card strong, .device-summary-card small { display: block; }
.device-summary-card span { color: #748096; font-size: 12px; }
.device-summary-card strong { margin: 7px 0 4px; color: var(--ink); font-size: 24px; }
.device-summary-card small { color: #a0a8b5; font-size: 10px; }
.device-summary-card.summary-green:before { background: #16a34a; }
.device-summary-card.summary-blue:before { background: #2563eb; }
.device-summary-card.summary-purple:before { background: #7c3aed; }
.device-summary-card.summary-orange:before { background: #ea580c; }
.device-summary-card.summary-red:before { background: #dc2626; }
.device-cert { display: inline-block; margin-right: 6px; padding: 2px 7px; border-radius: 5px; font-size: 11px; font-weight: 650; }
.device-cert-slate { color: #526077; background: #eef1f5; }
.device-cert-green { color: #15803d; background: #dcfce7; }
.device-cert-amber { color: #a16207; background: #fef3c7; }
.device-cert-orange { color: #c2410c; background: #ffedd5; }
.device-cert-red { color: #b91c1c; background: #fee2e2; }
.device-cert + small { display: block; margin-top: 4px; color: #8a95a7; }
.device-next-order { display: block; margin-top: 4px; color: #8a95a7; font-size: 10px; }
.device-conflict-note { display: block; margin-top: 4px; color: #c2410c; font-size: 10px; font-weight: 650; }

/* Device scheduling board */
.schedule-page { color: var(--ink); }
.schedule-overview { display: grid; grid-template-columns: repeat(8, minmax(105px, 1fr)); gap: 10px; margin-bottom: 14px; }
.schedule-overview > div { position: relative; min-height: 94px; padding: 15px 16px 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 4px 16px rgba(15,23,42,.045); box-sizing: border-box; overflow: hidden; }
.schedule-overview > div:before { content: ''; position: absolute; left: 0; top: 15px; width: 4px; height: 30px; border-radius: 0 4px 4px 0; background: #64748b; }
.schedule-overview span, .schedule-overview strong, .schedule-overview small { display: block; }
.schedule-overview span { color: #748096; font-size: 11px; }
.schedule-overview strong { margin: 7px 0 2px; color: #172238; font-size: 23px; line-height: 1; }
.schedule-overview small { color: #9aa3b1; font-size: 10px; }
.schedule-overview .tone-blue:before { background: #2563eb; }
.schedule-overview .tone-green:before { background: #16a34a; }
.schedule-overview .tone-purple:before { background: #7c3aed; }
.schedule-overview .tone-orange:before { background: #ea580c; }
.schedule-overview .tone-cyan:before { background: #0891b2; }
.schedule-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 4px 16px rgba(15,23,42,.04); }
.schedule-view-switch, .schedule-date-nav, .schedule-filter { display: flex; align-items: center; gap: 7px; }
.schedule-date-nav .layui-input { width: 122px; height: 30px; border-radius: 6px; text-align: center; }
.schedule-filter { min-width: 0; margin-left: auto; }
.schedule-filter > .layui-input { width: 190px; height: 30px; border-radius: 6px; }
.schedule-conflict-toggle { display: flex; flex: 0 0 auto; align-items: center; gap: 5px; color: #596579; font-size: 12px; cursor: pointer; }
.schedule-conflict-toggle input { accent-color: #ea580c; }
.dispatch-command { display: grid; grid-template-columns: auto minmax(150px,1fr) 20px minmax(150px,1fr) 20px minmax(150px,1fr) auto; align-items: center; gap: 9px; margin-bottom: 14px; padding: 11px 13px; border: 1px solid #cfe0fb; border-radius: 12px; background: linear-gradient(110deg,#f4f8ff,#fff); box-shadow: 0 5px 18px rgba(37,99,235,.06); }
.dispatch-command-title { display: flex; align-items: center; gap: 9px; padding-right: 10px; border-right: 1px solid #dbe7f8; }
.dispatch-command-title > i { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; color: #fff; background: #2563eb; font-size: 18px; box-shadow: 0 5px 12px rgba(37,99,235,.2); }
.dispatch-command-title strong,.dispatch-command-title small { display: block; }
.dispatch-command-title strong { color: #20314d; font-size: 12px; }
.dispatch-command-title small { margin-top: 3px; color: #8490a2; font-size: 9px; white-space: nowrap; }
.dispatch-command-step { display: flex; min-width: 0; align-items: center; gap: 8px; padding: 7px 9px; border: 1px dashed #cbd7e7; border-radius: 8px; background: rgba(255,255,255,.75); }
.dispatch-command-step > em { display: grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; border-radius: 50%; color: #718097; background: #edf1f6; font-size: 9px; font-style: normal; font-weight: 700; }
.dispatch-command-step small,.dispatch-command-step strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dispatch-command-step small { color: #8995a7; font-size: 8px; }
.dispatch-command-step strong { margin-top: 2px; color: #43516a; font-size: 10px; }
.dispatch-command-step.is-ready { border-style: solid; border-color: #a8c7f8; background: #fff; }
.dispatch-command-step.is-ready > em { color: #fff; background: #2563eb; }
.dispatch-command-step.is-ready strong { color: #1d4ed8; }
.dispatch-command-arrow { color: #9aa8bb; text-align: center; }
.dispatch-command-submit { height: 38px; padding: 0 15px; border: 0; border-radius: 8px; color: #fff; background: #2563eb; font-size: 11px; font-weight: 700; cursor: pointer; box-shadow: 0 5px 12px rgba(37,99,235,.18); }
.dispatch-command-submit:disabled { color: #9aa6b7; background: #e6ebf2; box-shadow: none; cursor: not-allowed; }
.dispatch-command-submit.is-loading { opacity: .65; }
.dispatch-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr) 290px; align-items: start; gap: 14px; }
.dispatch-main { min-width: 0; }
.dispatch-pool { border: 1px solid #dfe5ee; border-radius: 12px; background: #fff; box-shadow: 0 6px 22px rgba(15,23,42,.055); overflow: hidden; }
.dispatch-pool > header { display: flex; height: 48px; align-items: center; justify-content: space-between; padding: 0 14px; border-bottom: 1px solid #e7ebf1; background: #f8fafc; }
.dispatch-pool > header span { color: #344158; font-size: 12px; font-weight: 700; }
.dispatch-pool > header span i { margin-right: 6px; color: #477bd0; }
.dispatch-pool > header em { min-width: 22px; padding: 3px 6px; border-radius: 99px; color: #fff; background: #2563eb; font-size: 9px; font-style: normal; text-align: center; }
.dispatch-pool-search { position: relative; padding: 10px 12px; border-bottom: 1px solid #edf0f4; }
.dispatch-pool-search i { position: absolute; left: 23px; top: 19px; color: #9aa4b3; font-size: 13px; }
.dispatch-pool-search input { width: 100%; height: 32px; padding: 0 10px 0 31px; border: 1px solid #dfe5ee; border-radius: 7px; color: #344158; background: #fbfcfe; font-size: 10px; box-sizing: border-box; outline: 0; }
.dispatch-pool-search input:focus { border-color: #7aa7ec; background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.07); }
.dispatch-pool-list { max-height: 610px; overflow-y: auto; }
.dispatch-pool-list article { padding: 13px 14px 12px; border-bottom: 1px solid #edf0f4; transition: background .15s ease; }
.dispatch-pool-list article:hover { background: #f9fbff; }
.dispatch-pool-list article.is-selected { background: #eef5ff; box-shadow: inset 3px 0 #2563eb; }
.dispatch-order-head { display: flex; align-items: center; gap: 7px; }
.dispatch-order-head strong { min-width: 0; flex: 1; color: #354157; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dispatch-order-head > em { padding: 2px 5px; border-radius: 4px; color: #6d28d9; background: #f1eafe; font-size: 8px; font-style: normal; }
.dispatch-priority { flex: 0 0 auto; padding: 3px 6px; border-radius: 5px; color: #315f9f; background: #eaf2ff; font-size: 8px; font-weight: 650; }
.dispatch-priority.tone-red { color: #b91c1c; background: #fee2e2; }
.dispatch-priority.tone-orange { color: #c2410c; background: #ffedd5; }
.dispatch-priority.tone-slate { color: #526077; background: #eef1f5; }
.dispatch-pool-list h4 { margin: 9px 0 7px; color: #263247; font-size: 11px; line-height: 1.45; }
.dispatch-pool-list p { margin: 4px 0; color: #7d889a; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dispatch-pool-list p i { width: 17px; color: #91a0b5; font-size: 11px; }
.dispatch-pool-list article footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.dispatch-pool-list article footer > span { color: #b45309; font-size: 9px; }
.dispatch-pool-list article footer button { padding: 4px 8px; border: 0; border-radius: 5px; color: #1d4ed8; background: #eaf2ff; font-size: 9px; cursor: pointer; }
.dispatch-pool-list article footer button:hover { color: #fff; background: #2563eb; }
.dispatch-pool-list article footer .dispatch-order-actions { display: flex; align-items: center; gap: 5px; }
.dispatch-pool-list article footer .dispatch-order-actions .is-primary { color: #fff; background: #2563eb; }
.dispatch-pool-more { padding: 9px 12px; border-top: 1px solid #edf0f4; color: #8993a4; background: #fafbfd; font-size: 9px; text-align: center; }
.dispatch-pool-empty { display: flex; min-height: 180px; align-items: center; justify-content: center; flex-direction: column; padding: 20px; color: #96a0af; text-align: center; box-sizing: border-box; }
.dispatch-pool-empty > i { margin-bottom: 10px; color: #65a982; font-size: 29px; }
.dispatch-pool-empty strong { margin-bottom: 5px; color: #647086; font-size: 11px; }
.dispatch-pool-empty span { font-size: 9px; }
.schedule-alerts { margin-bottom: 14px; border: 1px solid #fed7aa; border-radius: 11px; background: #fffaf5; overflow: hidden; }
.schedule-alerts header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; color: #9a3412; background: #fff1e6; }
.schedule-alerts header span { font-weight: 650; }
.schedule-alerts header i { margin-right: 6px; }
.schedule-alerts header small { color: #c26a3d; }
.schedule-alert-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 190px; overflow: auto; }
.schedule-alert-list article { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 10px 14px; border-top: 1px solid #ffead8; color: #6b4d3d; font-size: 12px; }
.schedule-alert-list article:nth-child(odd) { border-right: 1px solid #ffead8; }
.schedule-alert-list article strong { color: #9a3412; }
.schedule-alert-list article a { color: #2563eb; cursor: pointer; font-weight: 650; }
.schedule-alert-more { grid-column: 1 / -1; margin: 0; padding: 8px 14px; border-top: 1px solid #ffead8; color: #b45309; font-size: 11px; text-align: center; }
.schedule-board { --schedule-columns: 7; border: 1px solid #dfe5ee; border-radius: 12px; background: #fff; box-shadow: 0 6px 22px rgba(15,23,42,.055); overflow: auto; }
.schedule-axis-row, .schedule-row { display: grid; grid-template-columns: 210px minmax(820px, 1fr); min-width: 1030px; }
.schedule-axis-row { position: sticky; z-index: 8; top: 0; min-height: 60px; border-bottom: 1px solid #dfe5ee; background: #f8fafc; }
.schedule-device-head, .schedule-device-cell { position: sticky; z-index: 5; left: 0; border-right: 1px solid #dfe5ee; background: #fff; box-sizing: border-box; }
.schedule-device-head { z-index: 10; display: flex; flex-direction: column; justify-content: center; padding: 10px 15px; background: #f8fafc; }
.schedule-device-head strong { color: #344055; font-size: 13px; }
.schedule-device-head small { margin-top: 3px; color: #929cab; font-size: 10px; }
.schedule-axis { display: grid; grid-template-columns: repeat(var(--schedule-columns), minmax(90px, 1fr)); }
.schedule-axis > div { display: flex; align-items: center; justify-content: center; flex-direction: column; border-right: 1px solid #e7ecf2; }
.schedule-axis > div:last-child { border-right: 0; }
.schedule-axis strong { color: #3d485c; font-size: 12px; }
.schedule-axis small { min-height: 15px; margin-top: 3px; color: #9aa3b1; font-size: 10px; }
.schedule-axis .is-weekend { background: #fbfcfe; }
.schedule-axis .is-today { color: #2563eb; background: #eef5ff; }
.schedule-axis .is-today strong { color: #2563eb; }
.schedule-row { border-bottom: 1px solid #e9edf3; }
.schedule-row:last-child { border-bottom: 0; }
.schedule-device-cell { display: flex; align-items: center; gap: 9px; min-height: 54px; padding: 8px 12px; }
.schedule-device-cell > span:nth-child(2) { min-width: 0; flex: 1; }
.schedule-device-cell strong, .schedule-device-cell small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schedule-device-cell strong { color: #2d394f; font-size: 12px; }
.schedule-device-cell small { margin-top: 4px; color: #929cac; font-size: 10px; }
.schedule-device-cell em { flex: 0 0 auto; padding: 3px 6px; border-radius: 5px; color: #c2410c; background: #ffedd5; font-size: 9px; font-style: normal; font-weight: 650; }
.device-state { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; box-shadow: 0 0 0 3px rgba(148,163,184,.13); }
.device-state.is-online { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.13); }
.device-state.is-stopped { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
.schedule-lane { position: relative; min-height: 54px; background-color: #fff; background-image: linear-gradient(to right, #e9edf3 1px, transparent 1px); background-size: calc(100% / var(--schedule-columns)) 100%; overflow: hidden; }
.schedule-order { position: absolute; z-index: 2; display: flex; align-items: center; gap: 7px; min-width: 46px; height: 27px; padding: 0 9px; border: 1px solid rgba(37,99,235,.18); border-radius: 6px; color: #1d4ed8; background: #eaf2ff; box-shadow: 0 2px 6px rgba(37,99,235,.1); box-sizing: border-box; overflow: hidden; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.schedule-order:hover { z-index: 4; color: inherit; transform: translateY(-1px); box-shadow: 0 5px 12px rgba(15,23,42,.16); }
.schedule-order strong { flex: 0 0 auto; font-size: 10px; }
.schedule-order span { min-width: 0; overflow: hidden; font-size: 9px; opacity: .8; text-overflow: ellipsis; white-space: nowrap; }
.schedule-order > i { margin-left: auto; font-size: 13px; }
.schedule-order.tone-amber { border-color: #fde68a; color: #92400e; background: #fef3c7; }
.schedule-order.tone-slate { border-color: #d7dde7; color: #475569; background: #eef2f7; }
.schedule-order.tone-green { border-color: #bbf7d0; color: #166534; background: #dcfce7; }
.schedule-order.tone-orange { border-color: #fed7aa; color: #9a3412; background: #ffedd5; }
.schedule-order.tone-red { border-color: #fecaca; color: #991b1b; background: #fee2e2; }
.schedule-order.is-conflict { border-color: #f97316; color: #9a3412; background: #fff0df; box-shadow: inset 0 0 0 1px #fb923c, 0 3px 8px rgba(234,88,12,.14); }
.schedule-empty-slot { position: absolute; left: 14px; top: 20px; color: #b1b8c4; font-size: 10px; }
.schedule-empty-state { display: flex; min-height: 220px; align-items: center; justify-content: center; flex-direction: column; color: #99a3b2; }
.schedule-empty-state i { margin-bottom: 12px; color: #c5ccd6; font-size: 36px; }
.schedule-empty-state strong { margin-bottom: 5px; color: #657086; }
.schedule-legend { display: flex; align-items: center; gap: 14px; margin-top: 11px; color: #6d788b; font-size: 10px; }
.schedule-legend span { display: flex; align-items: center; gap: 5px; }
.schedule-legend i { width: 9px; height: 9px; border-radius: 3px; }
.schedule-legend .legend-blue { background: #3b82f6; }
.schedule-legend .legend-amber { background: #f59e0b; }
.schedule-legend .legend-slate { background: #94a3b8; }
.schedule-legend .legend-green { background: #22c55e; }
.schedule-legend .legend-orange { background: #f97316; }
.schedule-legend small { margin-left: auto; color: #9aa3b1; }
.dispatch-resources { border: 1px solid #dfe5ee; border-radius: 12px; background: #fff; box-shadow: 0 6px 22px rgba(15,23,42,.055); overflow: hidden; }
.dispatch-resources > header { padding: 12px 14px 10px; border-bottom: 1px solid #e7ebf1; background: #f8fafc; }
.dispatch-resources > header span,.dispatch-resources > header small { display: block; }
.dispatch-resources > header span { color: #344158; font-size: 12px; font-weight: 700; }
.dispatch-resources > header span i { margin-right: 6px; color: #477bd0; }
.dispatch-resources > header small { margin-top: 4px; color: #909bad; font-size: 9px; }
.dispatch-resource-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 8px 10px 0; border-bottom: 1px solid #edf0f4; }
.dispatch-resource-tabs button { height: 34px; border: 0; border-bottom: 2px solid transparent; color: #718096; background: transparent; font-size: 10px; cursor: pointer; }
.dispatch-resource-tabs button.is-active { border-color: #2563eb; color: #1d4ed8; font-weight: 700; }
.dispatch-resource-tabs em { display: inline-block; min-width: 18px; margin-left: 4px; padding: 1px 4px; border-radius: 99px; background: #edf1f6; font-size: 8px; font-style: normal; }
.dispatch-resource-search { position: relative; padding: 10px 11px; border-bottom: 1px solid #edf0f4; }
.dispatch-resource-search i { position: absolute; left: 22px; top: 19px; color: #9aa4b3; font-size: 13px; }
.dispatch-resource-search input { width: 100%; height: 32px; padding: 0 10px 0 31px; border: 1px solid #dfe5ee; border-radius: 7px; color: #344158; background: #fbfcfe; font-size: 10px; box-sizing: border-box; outline: 0; }
.dispatch-resource-list { max-height: 610px; overflow-y: auto; }
.dispatch-resource-list article { position: relative; padding: 11px 13px; border-bottom: 1px solid #edf0f4; cursor: pointer; transition: background .15s ease, opacity .15s ease; }
.dispatch-resource-list article:hover { background: #f8fbff; }
.dispatch-resource-list article.is-selected { background: #eef5ff; box-shadow: inset -3px 0 #2563eb; }
.dispatch-resource-list article.is-incompatible { opacity: .38; cursor: not-allowed; }
.dispatch-resource-list article > div { display: flex; align-items: center; gap: 7px; }
.dispatch-resource-list article strong { min-width: 0; flex: 1; color: #334057; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dispatch-resource-list article em { padding: 2px 5px; border-radius: 4px; color: #15803d; background: #dcfce7; font-size: 8px; font-style: normal; }
.dispatch-resource-list article em.is-busy { color: #b45309; background: #fef3c7; }
.dispatch-resource-list article p { margin: 7px 0 4px; color: #66748a; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dispatch-resource-list article small { display: block; color: #949ead; font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resource-state { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; }
.resource-state.is-free { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.12); }
.resource-state.is-busy { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.12); }
.resource-avatar { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border-radius: 7px; color: #1d4ed8; background: #e7f0ff; font-size: 10px; font-weight: 700; }
.resource-warning { display: inline-block; margin-top: 6px; padding: 2px 5px; border-radius: 4px; color: #c2410c; background: #ffedd5; font-size: 8px; }
.dispatch-resource-empty { padding: 35px 12px; color: #9aa5b5; font-size: 10px; text-align: center; }

@media (max-width: 1500px) {
    .schedule-overview { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
    .dispatch-layout { grid-template-columns: 280px minmax(0, 1fr); }
    .dispatch-resources { grid-column: 1 / -1; }
    .dispatch-resource-list { display: flex; max-height: none; overflow-x: auto; overflow-y: hidden; }
    .dispatch-resource-list article { min-width: 210px; flex: 0 0 210px; border-right: 1px solid #edf0f4; border-bottom: 0; }
}

@media (max-width: 1180px) {
    .schedule-overview { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
    .schedule-toolbar { align-items: flex-start; flex-wrap: wrap; }
    .schedule-filter { width: 100%; margin-left: 0; }
    .schedule-filter > .layui-input { flex: 1; width: auto; }
    .dispatch-layout { grid-template-columns: 270px minmax(0, 1fr); }
    .dispatch-command { grid-template-columns: 1fr 1fr 1fr; }
    .dispatch-command-title { grid-column: 1 / -1; border-right: 0; }
    .dispatch-command-arrow { display: none; }
    .dispatch-command-submit { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
    .schedule-overview { grid-template-columns: repeat(2, minmax(125px, 1fr)); }
    .schedule-toolbar, .schedule-filter { align-items: stretch; flex-direction: column; }
    .schedule-view-switch, .schedule-date-nav { width: 100%; }
    .schedule-date-nav .layui-input { min-width: 0; flex: 1; }
    .schedule-filter > .layui-input { width: 100%; box-sizing: border-box; }
    .schedule-conflict-toggle { min-height: 30px; }
    .dispatch-layout { display: block; }
    .dispatch-pool { margin-bottom: 14px; }
    .dispatch-pool-list { display: flex; max-height: none; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; }
    .dispatch-pool-list article { min-width: 250px; flex: 0 0 250px; border-right: 1px solid #edf0f4; border-bottom: 0; scroll-snap-align: start; }
    .dispatch-pool-empty { min-width: 100%; }
    .dispatch-command { display: block; }
    .dispatch-command-title,.dispatch-command-step,.dispatch-command-submit { width: 100%; margin-bottom: 8px; box-sizing: border-box; }
    .dispatch-resources { margin-top: 14px; }
    .schedule-alerts header { align-items: flex-start; flex-direction: column; gap: 4px; }
    .schedule-alert-list { display: block; }
    .schedule-alert-list article { grid-template-columns: 76px minmax(0, 1fr); border-right: 0 !important; }
    .schedule-axis-row, .schedule-row { grid-template-columns: 150px minmax(720px, 1fr); min-width: 870px; }
    .schedule-device-cell { padding-left: 9px; }
    .schedule-device-cell em { display: none; }
    .schedule-legend { align-items: flex-start; flex-wrap: wrap; }
    .schedule-legend small { width: 100%; margin-left: 0; }
}

/* Dashboard */
.dashboard-welcome { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.dashboard-welcome .eyebrow { color: var(--primary); }
.dashboard-welcome h2 { margin: 5px 0 5px; font-size: 24px; line-height: 1.35; color: var(--ink); font-weight: 750; }
.dashboard-welcome p { color: var(--muted); }
.dashboard-date { padding: 9px 13px; border: 1px solid var(--line); border-radius: 9px; color: #657087; background: #fff; font-size: 12px; }
.portal-block-container { padding: 0 !important; border: 0; background: transparent; box-shadow: none !important; }
.portal-block-container .layui-row { margin: 0 -7.5px; }
.portal-block-container [class*=layui-col-] { position: relative; }
.portal-block-item { position: relative; min-height: 128px; padding: 20px 20px 18px !important; border: 1px solid var(--line); border-radius: 12px; background: #fff !important; box-shadow: 0 5px 18px rgba(15,23,42,.05); overflow: hidden; }
.portal-block-item:before { content: ''; position: absolute; left: 0; top: 18px; width: 4px; height: 34px; border-radius: 0 4px 4px 0; background: var(--kpi-color, var(--primary)); }
.portal-block-item > div:first-child { color: #6e788b !important; font-size: 13px !important; }
.portal-block-item > div:nth-child(2) { margin: 12px 0 7px; color: var(--ink) !important; font-size: 28px !important; line-height: 1.15; font-weight: 750; letter-spacing: -.03em; }
.portal-block-item > div:nth-child(3) { color: #98a1b0 !important; font-size: 12px !important; }
.portal-block-icon { right: 18px !important; top: 19px !important; width: 38px; height: 38px; line-height: 38px !important; border-radius: 10px; color: var(--kpi-color, var(--primary)) !important; background: color-mix(in srgb, var(--kpi-color, var(--primary)) 10%, white); font-size: 20px !important; opacity: 1 !important; text-align: center; }
.kpi-blue { --kpi-color: #2563eb; } .kpi-cyan { --kpi-color: #0891b2; }
.kpi-violet { --kpi-color: #7c3aed; } .kpi-amber { --kpi-color: #d97706; }
.kpi-green { --kpi-color: #16a34a; } .kpi-red { --kpi-color: #dc2626; }
.chart-card { padding: 18px 18px 8px; }
.eyebrow { display: block; color: #5790ee; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

/* Financial cockpit */
.finance-cockpit { max-width: 100%; margin: 0 auto; }
.finance-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 17px; padding: 4px 2px; }
.finance-hero h2 { margin: 6px 0 7px; color: #1f2c43; font-size: 25px; font-weight: 760; letter-spacing: -.03em; }
.finance-hero p { margin: 0; color: #7d899b; font-size: 12px; }
.finance-hero-meta { display: flex; align-items: flex-end; flex-direction: column; gap: 5px; padding: 9px 12px; border: 1px solid #dfe6ef; border-radius: 10px; color: #637087; background: #fff; font-size: 10px; }
.finance-hero-meta i { margin-right: 4px; color: #407be0; }.finance-hero-meta small { color: #a0a8b5; font-size: 9px; }
.finance-kpis { display: grid; grid-template-columns: repeat(6, minmax(145px, 1fr)); gap: 12px; margin-bottom: 14px; }
.finance-kpis article { position: relative; min-height: 102px; padding: 15px 15px 13px; border: 1px solid #e1e7ef; border-radius: 11px; background: #fff; box-shadow: 0 5px 17px rgba(15,23,42,.045); overflow: hidden; box-sizing: border-box; }
.finance-kpis article:before { content: ''; position: absolute; left: 0; top: 16px; width: 3px; height: 32px; border-radius: 0 4px 4px 0; background: var(--finance-tone); }
.finance-kpis article span,.finance-kpis article strong,.finance-kpis article small { display: block; }.finance-kpis article span { color: #788497; font-size: 10px; }.finance-kpis article strong { margin: 10px 0 6px; color: #26354d; font-size: 17px; line-height: 1.1; font-weight: 750; letter-spacing: -.03em; white-space: nowrap; }.finance-kpis article small { color: #9aa4b2; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.finance-kpis .tone-blue { --finance-tone: #2563eb; }.finance-kpis .tone-cyan { --finance-tone: #0891b2; }.finance-kpis .tone-red { --finance-tone: #dc2626; }.finance-kpis .tone-green { --finance-tone: #16a34a; }.finance-kpis .tone-orange { --finance-tone: #d97706; }.finance-kpis .tone-purple { --finance-tone: #7c3aed; }
.finance-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, .72fr); gap: 14px; margin-bottom: 14px; }.finance-card { border: 1px solid #dfe6ef; border-radius: 12px; background: #fff; box-shadow: 0 5px 18px rgba(15,23,42,.05); overflow: hidden; }.finance-card > header { display: flex; align-items: flex-start; justify-content: space-between; padding: 14px 16px 12px; border-bottom: 1px solid #ebeff4; }.finance-card > header strong,.finance-card > header small { display: block; }.finance-card > header strong { color: #304058; font-size: 12px; }.finance-card > header small { margin-top: 4px; color: #97a1b0; font-size: 9px; }.finance-live-dot { padding: 4px 7px; border-radius: 99px; color: #15803d; background: #ecfdf3; font-size: 9px; }.finance-live-dot:before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: #22c55e; vertical-align: 1px; }
.finance-chart-legend { display: flex; gap: 16px; padding: 12px 16px 0; color: #778396; font-size: 9px; }.finance-chart-legend span { display: flex; align-items: center; gap: 5px; }.finance-chart-legend i { width: 8px; height: 8px; border-radius: 3px; }.finance-chart-legend .balance,.finance-bars .balance { background: #7aa7ec; }.finance-chart-legend .bill,.finance-bars .bill { background: #9f83e8; }.finance-chart-legend .return,.finance-bars .return { background: #45b99b; }
.finance-bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; height: 182px; padding: 14px 20px 13px; }.finance-bar-group { display: flex; min-width: 0; align-items: center; justify-content: flex-end; flex-direction: column; gap: 7px; cursor: default; }.finance-bars-stack { display: flex; align-items: flex-end; justify-content: center; gap: 3px; width: 100%; height: 140px; border-bottom: 1px solid #e9eef4; background: linear-gradient(to top, transparent 33%, #f4f6f9 33.8%, transparent 34.6%, transparent 66%, #f4f6f9 66.8%, transparent 67.6%); }.finance-bars-stack i { display: block; width: min(16px, 27%); min-height: 4px; border-radius: 4px 4px 1px 1px; transition: opacity .15s ease; }.finance-bar-group:hover i { opacity: .75; }.finance-bar-group > span { color: #8893a3; font-size: 9px; }
.finance-process { margin: 0; padding: 10px 16px 12px; list-style: none; }.finance-process li { display: grid; grid-template-columns: 25px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 55px; border-bottom: 1px solid #edf0f4; }.finance-process li:last-child { border-bottom: 0; }.finance-process i { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 7px; color: #2767d5; background: #eaf2ff; font-size: 10px; font-style: normal; font-weight: 700; }.finance-process strong,.finance-process small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.finance-process strong { color: #3b485d; font-size: 10px; }.finance-process small { margin-top: 4px; color: #95a0af; font-size: 8px; }.finance-process a { padding: 4px 7px; border-radius: 5px; color: #2563eb; background: #eef5ff; font-size: 9px; cursor: pointer; }
.finance-exception-card > header em { min-width: 21px; padding: 3px 6px; border-radius: 99px; color: #b45309; background: #fff2df; font-size: 9px; font-style: normal; text-align: center; }.finance-exception-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }.finance-exception { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 12px; align-items: center; gap: 9px; min-height: 61px; padding: 10px 13px; border-right: 1px solid #edf0f4; border-bottom: 1px solid #edf0f4; color: inherit; cursor: pointer; box-sizing: border-box; }.finance-exception:nth-child(3n) { border-right: 0; }.finance-exception:hover { background: #f8fbff; }.finance-exception-type { padding: 3px 5px; border-radius: 4px; font-size: 8px; font-weight: 700; }.finance-exception.tone-red .finance-exception-type { color: #b91c1c; background: #fee2e2; }.finance-exception.tone-orange .finance-exception-type { color: #b45309; background: #ffedd5; }.finance-exception.tone-purple .finance-exception-type { color: #6d28d9; background: #f3e8ff; }.finance-exception div { min-width: 0; }.finance-exception strong,.finance-exception small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.finance-exception strong { color: #425069; font-size: 10px; }.finance-exception small { margin-top: 4px; color: #939dac; font-size: 8px; }.finance-exception b { color: #435068; font-size: 10px; white-space: nowrap; }.finance-exception > i { color: #a1abb8; font-size: 11px; }.finance-empty { display: flex; grid-column: 1 / -1; min-height: 142px; align-items: center; justify-content: center; flex-direction: column; color: #9ba5b3; }.finance-empty i { margin-bottom: 8px; color: #62a77c; font-size: 28px; }.finance-empty strong { margin-bottom: 4px; color: #6f7c90; font-size: 11px; }.finance-empty span { font-size: 9px; }.finance-note { margin: 10px 2px 0; color: #98a2b0; font-size: 9px; line-height: 1.7; }
@media (max-width: 1420px) { .finance-kpis { grid-template-columns: repeat(3, 1fr); }.finance-exception-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }.finance-exception:nth-child(3n) { border-right: 1px solid #edf0f4; }.finance-exception:nth-child(2n) { border-right: 0; } }
@media (max-width: 850px) { .finance-hero { align-items: flex-start; flex-direction: column; }.finance-hero-meta { align-items: flex-start; }.finance-layout { grid-template-columns: 1fr; }.finance-kpis { grid-template-columns: repeat(2, 1fr); }.finance-exception-list { grid-template-columns: 1fr; }.finance-exception,.finance-exception:nth-child(3n) { border-right: 0; }.finance-exception b { font-size: 9px; }.finance-bars { gap: 7px; padding-left: 12px; padding-right: 12px; }.finance-chart-legend { gap: 9px; } }

/* Daily order command center */
.command-center { max-width: 100%; margin: 0 auto; }.command-hero { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin:2px 2px 12px; }.command-hero h2 { margin:5px 0 6px; color:#1f2e47; font-size:26px; letter-spacing:-.035em; font-weight:760; }.command-hero p { margin:0; color:#7e8b9e; font-size:12px; }.command-date-nav { display:flex; align-items:center; gap:5px; }.command-date-nav button { height:32px; padding:0 10px; border:1px solid #dce4ee; border-radius:7px; color:#53647b; background:#fff; font-size:10px; cursor:pointer; }.command-date-nav .is-today { color:#2563eb; background:#eef5ff; border-color:#bfd6fa; }.command-date-nav .layui-input { width:120px; height:32px; border-radius:7px; color:#3b4b64; font-size:10px; text-align:center; }.command-dayline { display:flex; align-items:center; gap:7px; margin-bottom:14px; padding:9px 13px; border:1px solid #dbe9ff; border-radius:9px; color:#637895; background:linear-gradient(90deg,#f3f8ff,#fbfdff); font-size:10px; }.command-dayline i { color:#3277de; font-size:14px; }.command-dayline strong { color:#34547d; font-size:11px; }.command-dayline span { color:#8494a9; }.command-kpis { display:grid; grid-template-columns:repeat(6,minmax(120px,1fr)); gap:11px; margin-bottom:14px; }.command-kpis article { position:relative; min-height:91px; padding:13px 14px; border:1px solid #dfe6ef; border-radius:10px; background:#fff; box-shadow:0 5px 17px rgba(15,23,42,.045); overflow:hidden; box-sizing:border-box; }.command-kpis article:before { content:''; position:absolute; left:0; top:15px; width:3px; height:29px; border-radius:0 3px 3px 0; background:var(--command-tone); }.command-kpis span,.command-kpis strong,.command-kpis small { display:block; }.command-kpis span { color:#7f8a9b; font-size:9px; }.command-kpis strong { margin:8px 0 5px; color:#26364e; font-size:23px; line-height:1; font-weight:760; }.command-kpis small { color:#9ba5b2; font-size:8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.command-kpis .tone-blue { --command-tone:#2563eb; }.command-kpis .tone-green { --command-tone:#16a34a; }.command-kpis .tone-cyan { --command-tone:#0891b2; }.command-kpis .tone-purple { --command-tone:#7c3aed; }.command-kpis .tone-orange { --command-tone:#d97706; }
.command-dispatch-strip { display:grid; grid-template-columns:210px minmax(160px,1fr) 17px minmax(145px,1fr) 17px minmax(145px,1fr) auto; align-items:center; gap:8px; margin-bottom:14px; padding:9px; border:1px solid #cfdcf0; border-radius:11px; background:linear-gradient(105deg,#f4f8ff,#fff); box-shadow:0 5px 18px rgba(37,99,235,.06); }.command-strip-title { display:flex; align-items:center; gap:8px; padding:3px 10px 3px 4px; border-right:1px solid #dce5f2; }.command-strip-title > i { display:grid; width:30px; height:30px; place-items:center; border-radius:8px; color:#fff; background:#2563eb; font-size:16px; }.command-strip-title strong,.command-strip-title small { display:block; }.command-strip-title strong { color:#304462; font-size:11px; }.command-strip-title small { margin-top:3px; color:#8593a6; font-size:8px; }.command-choice { display:flex; min-width:0; align-items:center; gap:7px; padding:7px 8px; border:1px dashed #ccd9e9; border-radius:7px; background:rgba(255,255,255,.8); }.command-choice > em { display:grid; width:19px; height:19px; flex:0 0 19px; place-items:center; border-radius:50%; color:#758399; background:#edf1f7; font-size:8px; font-style:normal; font-weight:700; }.command-choice span { min-width:0; }.command-choice small,.command-choice strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.command-choice small { color:#93a0af; font-size:8px; }.command-choice strong { margin-top:2px; color:#55637a; font-size:9px; }.command-choice.is-ready { border-style:solid; border-color:#a8c7f8; }.command-choice.is-ready > em { color:#fff; background:#2563eb; }.command-choice.is-ready strong { color:#1e5dc7; }.command-choice-arrow { color:#a8b3c2; font-size:12px; text-align:center; }.command-assign { height:36px; padding:0 13px; border:0; border-radius:8px; color:#fff; background:#2563eb; box-shadow:0 5px 12px rgba(37,99,235,.19); font-size:10px; font-weight:700; cursor:pointer; }.command-assign:disabled { color:#9ca8b6; background:#e7ebf1; box-shadow:none; cursor:not-allowed; }.command-assign.is-loading { opacity:.65; }
.command-workspace { display:grid; grid-template-columns:290px minmax(580px,1fr) 270px; align-items:start; gap:13px; }.command-orders,.command-people,.command-category { border:1px solid #dfe6ef; border-radius:11px; background:#fff; box-shadow:0 5px 19px rgba(15,23,42,.045); overflow:hidden; }.command-orders > header,.command-people > header,.command-section-head { display:flex; align-items:flex-start; justify-content:space-between; padding:13px 14px 11px; border-bottom:1px solid #ebeff4; background:#fbfcfe; }.command-orders header strong,.command-orders header small,.command-people header strong,.command-people header small,.command-section-head strong,.command-section-head small { display:block; }.command-orders header strong,.command-people header strong,.command-section-head strong { color:#35435a; font-size:11px; }.command-orders header small,.command-people header small,.command-section-head small { margin-top:4px; color:#97a1af; font-size:8px; }.command-orders header em,.command-people header em { min-width:20px; padding:3px 5px; border-radius:99px; color:#fff; background:#3975d8; font-size:8px; font-style:normal; text-align:center; }.command-filter { position:relative; padding:9px 10px; border-bottom:1px solid #edf0f4; }.command-filter i { position:absolute; left:20px; top:18px; color:#98a4b5; font-size:12px; }.command-filter input { width:100%; height:31px; padding:0 8px 0 29px; border:1px solid #dfe6ef; border-radius:7px; color:#49586f; background:#fbfcfe; font-size:9px; box-sizing:border-box; outline:0; }.command-filter input:focus { border-color:#82ace9; background:#fff; }.command-order-list,.command-people-list { max-height:680px; overflow:auto; }.command-order { padding:11px 12px; border-bottom:1px solid #edf0f4; transition:background .15s ease; }.command-order:hover { background:#f9fbfe; }.command-order.is-selected { background:#edf5ff; box-shadow:inset 3px 0 #2563eb; }.command-order-top { display:flex; align-items:center; gap:6px; }.command-order-top > span { padding:3px 5px; border-radius:4px; color:#52739e; background:#edf4ff; font-size:8px; }.command-order-top strong { min-width:0; flex:1; color:#3c4a60; font-size:9px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.command-order-top em { padding:2px 5px; border-radius:4px; color:#637188; background:#eef1f5; font-size:8px; font-style:normal; }.command-order.state-blue .command-order-top em { color:#1d4ed8; background:#eaf2ff; }.command-order.state-amber .command-order-top em { color:#a16207; background:#fef3c7; }.command-order.state-green .command-order-top em { color:#15803d; background:#dcfce7; }.command-order h4 { margin:8px 0 6px; color:#2e3c53; font-size:10px; }.command-order p { margin:3px 0; color:#7e8a9c; font-size:8px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.command-order p i { width:14px; color:#9aa7b8; font-size:10px; }.command-order footer { display:flex; align-items:center; justify-content:space-between; gap:6px; margin-top:8px; }.command-order footer > span { min-width:0; overflow:hidden; color:#8c97a7; font-size:8px; text-overflow:ellipsis; white-space:nowrap; }.command-order footer button { flex:0 0 auto; padding:4px 6px; border:0; border-radius:5px; color:#1d60cd; background:#eaf2ff; font-size:8px; cursor:pointer; }.command-order footer button:hover { color:#fff; background:#2563eb; }
.command-fleet { min-width:0; }.command-section-head { margin-bottom:10px; border:1px solid #dfe6ef; border-radius:11px; background:#fff; box-shadow:0 5px 19px rgba(15,23,42,.045); }.command-section-head > span { display:flex; align-items:center; gap:5px; padding:4px 7px; border-radius:6px; color:#16803c; background:#effcf4; font-size:9px; }.command-category-list { display:flex; flex-direction:column; gap:11px; }.command-category > header { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:11px 13px 9px; border-bottom:1px solid #edf0f4; background:#fbfcfe; }.command-category > header strong,.command-category > header small { display:block; }.command-category > header strong { color:#34435a; font-size:11px; }.command-category > header small { margin-top:3px; color:#98a2b0; font-size:8px; }.command-category > header > span { display:flex; gap:4px; }.command-category > header b { padding:3px 5px; border-radius:4px; font-size:8px; font-weight:600; }.command-category > header .idle { color:#15803d; background:#dcfce7; }.command-category > header .reserved { color:#a16207; background:#fef3c7; }.command-category > header .working { color:#1d4ed8; background:#eaf2ff; }.command-device-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(154px,1fr)); gap:8px; padding:10px; }.command-device { min-width:0; padding:9px; border:1px solid #e2e8f0; border-radius:8px; background:#fff; transition:transform .12s ease,box-shadow .12s ease,background .12s ease; }.command-device.is-selectable { cursor:pointer; }.command-device.is-selectable:hover { border-color:#9fc1f4; background:#f7fbff; transform:translateY(-1px); box-shadow:0 4px 10px rgba(37,99,235,.1); }.command-device.is-selected { border-color:#2563eb; background:#edf5ff; box-shadow:inset 0 0 0 1px #2563eb; }.command-device.is-incompatible { opacity:.36; cursor:not-allowed; }.command-device > div { display:flex; align-items:center; gap:5px; }.command-device strong { min-width:0; flex:1; color:#3d4b61; font-size:9px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.command-device em { padding:2px 4px; border-radius:4px; font-size:7px; font-style:normal; white-space:nowrap; }.command-device.state-idle em { color:#15803d; background:#dcfce7; }.command-device.state-working em { color:#1d4ed8; background:#eaf2ff; }.command-device.state-reserved em { color:#a16207; background:#fef3c7; }.command-device.state-completed em { color:#64748b; background:#eef2f7; }.command-device p { margin:7px 0 3px; color:#728095; font-size:8px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.command-device small { display:block; color:#9aa4b3; font-size:7px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.state-dot { display:inline-block; width:7px; height:7px; flex:0 0 7px; border-radius:50%; }.state-dot.idle { background:#22c55e; box-shadow:0 0 0 3px rgba(34,197,94,.12); }.state-dot.working { background:#3b82f6; box-shadow:0 0 0 3px rgba(59,130,246,.12); }.state-dot.reserved { background:#f59e0b; box-shadow:0 0 0 3px rgba(245,158,11,.12); }.state-dot.completed { background:#94a3b8; }.state-dot.leave { background:#8b5cf6; box-shadow:0 0 0 3px rgba(139,92,246,.12); }
.command-person-summary { display:flex; gap:8px; padding:8px 11px; border-bottom:1px solid #edf0f4; color:#8290a3; font-size:8px; }.command-person-summary span { display:flex; align-items:center; gap:4px; }.command-person { padding:10px 11px; border-bottom:1px solid #edf0f4; transition:background .15s ease; }.command-person.is-selectable { cursor:pointer; }.command-person.is-selectable:hover { background:#f8fbff; }.command-person.is-selected { background:#edf5ff; box-shadow:inset -3px 0 #2563eb; }.command-person-top { display:flex; align-items:center; gap:7px; }.command-avatar { display:grid; width:25px; height:25px; flex:0 0 25px; place-items:center; border-radius:7px; color:#2764c6; background:#e6f0ff; font-size:10px; font-weight:700; }.command-person-top > span:nth-child(2) { min-width:0; flex:1; }.command-person strong,.command-person small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.command-person strong { color:#3b495f; font-size:9px; }.command-person small { margin-top:3px; color:#9ba4b0; font-size:7px; }.command-person em { padding:2px 4px; border-radius:4px; font-size:7px; font-style:normal; white-space:nowrap; }.command-person.state-idle em { color:#15803d; background:#dcfce7; }.command-person.state-working em { color:#1d4ed8; background:#eaf2ff; }.command-person.state-reserved em { color:#a16207; background:#fef3c7; }.command-person.state-leave em { color:#6d28d9; background:#f3e8ff; }.command-person p { margin:7px 0 0; color:#7e8c9e; font-size:8px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.command-empty { display:flex; min-height:170px; align-items:center; justify-content:center; flex-direction:column; padding:18px; color:#9ba5b4; text-align:center; box-sizing:border-box; }.command-empty i { margin-bottom:9px; color:#70a783; font-size:28px; }.command-empty strong { margin-bottom:4px; color:#718095; font-size:10px; }.command-empty span { font-size:8px; }.command-note { margin:10px 2px 0; color:#98a3b1; font-size:9px; line-height:1.7; }
@media (max-width:1500px) { .command-kpis { grid-template-columns:repeat(3,1fr); }.command-workspace { grid-template-columns:265px minmax(0,1fr); }.command-people { grid-column:1 / -1; }.command-people-list { display:flex; max-height:none; overflow-x:auto; overflow-y:hidden; }.command-person { min-width:195px; flex:0 0 195px; border-right:1px solid #edf0f4; border-bottom:0; } }
@media (max-width:1060px) { .command-workspace { grid-template-columns:245px minmax(0,1fr); }.command-dispatch-strip { grid-template-columns:1fr 1fr 1fr; }.command-strip-title { grid-column:1 / -1; border-right:0; }.command-choice-arrow { display:none; }.command-assign { grid-column:1 / -1; }.command-device-grid { grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); } }
@media (max-width:760px) { .command-hero { align-items:flex-start; flex-direction:column; }.command-kpis { grid-template-columns:repeat(2,1fr); }.command-workspace { display:block; }.command-orders { margin-bottom:12px; }.command-order-list { display:flex; max-height:none; overflow-x:auto; overflow-y:hidden; }.command-order { min-width:238px; flex:0 0 238px; border-right:1px solid #edf0f4; border-bottom:0; }.command-fleet { margin-bottom:12px; }.command-people-list { display:block; max-height:470px; overflow:auto; }.command-person { min-width:0; border-right:0; border-bottom:1px solid #edf0f4; }.command-dispatch-strip { display:block; }.command-strip-title,.command-choice,.command-assign { width:100%; margin-bottom:7px; box-sizing:border-box; }.command-date-nav { width:100%; }.command-date-nav .layui-input { flex:1; }.command-category > header { align-items:flex-start; flex-direction:column; }.command-device-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; padding:7px; }.command-device { padding:8px; }.command-device em { display:none; } }

/* Profitability analysis */
.profit-page { max-width:100%; margin:0 auto; }.profit-head { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin:3px 2px 12px; }.profit-head h2 { margin:5px 0 6px; color:#203049; font-size:25px; font-weight:760; letter-spacing:-.03em; }.profit-head p { margin:0; color:#7e8b9d; font-size:12px; }.profit-head nav { display:flex; gap:5px; padding:4px; border:1px solid #dce4ed; border-radius:8px; background:#fff; }.profit-head nav a { padding:6px 10px; border-radius:5px; color:#728097; font-size:10px; cursor:pointer; }.profit-head nav a.is-active { color:#fff; background:#2563eb; box-shadow:0 3px 8px rgba(37,99,235,.18); }.profit-range { margin-bottom:14px; padding:9px 12px; border:1px solid #dceafa; border-radius:9px; color:#70849f; background:#f5f9ff; font-size:10px; }.profit-range i { margin-right:5px; color:#3578d6; }.profit-kpis { display:grid; grid-template-columns:repeat(5,minmax(150px,1fr)); gap:12px; margin-bottom:14px; }.profit-kpis article { position:relative; min-height:98px; padding:14px 15px; border:1px solid #dfe6ef; border-radius:11px; background:#fff; box-shadow:0 5px 17px rgba(15,23,42,.045); overflow:hidden; box-sizing:border-box; }.profit-kpis article:before { content:''; position:absolute; left:0; top:15px; width:3px; height:31px; border-radius:0 3px 3px 0; background:var(--profit-tone); }.profit-kpis span,.profit-kpis strong,.profit-kpis small { display:block; }.profit-kpis span { color:#7e8a9c; font-size:10px; }.profit-kpis strong { margin:10px 0 6px; color:#26364f; font-size:18px; font-weight:760; letter-spacing:-.03em; white-space:nowrap; }.profit-kpis small { color:#9aa4b2; font-size:8px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.profit-kpis .blue { --profit-tone:#2563eb; }.profit-kpis .orange { --profit-tone:#d97706; }.profit-kpis .purple { --profit-tone:#7c3aed; }.profit-kpis .green { --profit-tone:#16a34a; }.profit-kpis .red { --profit-tone:#dc2626; }.profit-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-bottom:14px; }.profit-card { border:1px solid #dfe6ef; border-radius:12px; background:#fff; box-shadow:0 5px 18px rgba(15,23,42,.05); overflow:hidden; }.profit-card > header { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; padding:14px 16px 12px; border-bottom:1px solid #ebeff4; background:#fbfcfe; }.profit-card > header strong,.profit-card > header small { display:block; }.profit-card > header strong { color:#33435a; font-size:12px; }.profit-card > header small { margin-top:4px; color:#98a2af; font-size:9px; }.profit-card > header > span { padding:4px 6px; border-radius:5px; color:#5877a2; background:#ecf4ff; font-size:8px; white-space:nowrap; }.profit-table { max-height:510px; overflow:auto; }.profit-row { display:grid; grid-template-columns:minmax(150px,1.45fr) minmax(78px,.8fr) minmax(78px,.8fr) minmax(84px,.86fr); align-items:center; gap:8px; min-height:49px; padding:8px 14px; border-bottom:1px solid #eef1f4; color:inherit; box-sizing:border-box; }.profit-row:not(.profit-label) { cursor:pointer; }.profit-row:not(.profit-label):hover { background:#f8fbff; }.profit-row > span { min-width:0; }.profit-row strong,.profit-row small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.profit-row strong { color:#425067; font-size:10px; }.profit-row small { margin-top:4px; color:#98a2b0; font-size:8px; }.profit-row b { color:#59677c; font-size:9px; font-weight:600; text-align:right; white-space:nowrap; }.profit-row b.is-positive { color:#16803d; }.profit-row b.is-negative { color:#c2410c; }.profit-row.profit-label { min-height:31px; padding-top:5px; padding-bottom:5px; color:#9aa3b0; background:#f8fafc; font-size:8px; }.profit-row.profit-label span { font-size:8px; }.profit-row.profit-label span:not(:first-child),.profit-row.profit-label span { text-align:left; }.profit-row.profit-label span~span { text-align:right; }.profit-payable { margin-bottom:12px; }.payable-list { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }.payable-list > a { display:grid; grid-template-columns:28px minmax(0,1fr) auto 11px; align-items:center; gap:8px; min-height:59px; padding:9px 13px; border-right:1px solid #edf0f4; border-bottom:1px solid #edf0f4; color:inherit; cursor:pointer; box-sizing:border-box; }.payable-list > a:nth-child(3n) { border-right:0; }.payable-list > a:hover { background:#f8fbff; }.payable-avatar { display:grid; width:25px; height:25px; place-items:center; border-radius:7px; color:#7c3aed; background:#f1eafe; font-size:10px; font-weight:700; }.payable-list strong,.payable-list small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.payable-list strong { color:#435168; font-size:10px; }.payable-list small { margin-top:4px; color:#98a2af; font-size:8px; }.payable-list b { color:#a16207; font-size:10px; white-space:nowrap; }.payable-list i { color:#a1aab8; font-size:11px; }.profit-empty { min-height:115px; display:flex; align-items:center; justify-content:center; color:#9aa4b3; font-size:10px; text-align:center; }.profit-note { margin:9px 2px 0; color:#98a2b0; font-size:9px; line-height:1.7; }
@media (max-width:1280px) { .profit-kpis { grid-template-columns:repeat(3,1fr); }.payable-list { grid-template-columns:repeat(2,minmax(0,1fr)); }.payable-list > a:nth-child(3n) { border-right:1px solid #edf0f4; }.payable-list > a:nth-child(2n) { border-right:0; } }
@media (max-width:780px) { .profit-head { align-items:flex-start; flex-direction:column; }.profit-kpis { grid-template-columns:repeat(2,1fr); }.profit-grid { grid-template-columns:1fr; }.profit-row { grid-template-columns:minmax(110px,1.25fr) minmax(65px,.8fr) minmax(65px,.8fr) minmax(68px,.8fr); gap:4px; padding-left:9px; padding-right:9px; }.profit-row b { font-size:8px; }.payable-list { display:block; }.payable-list > a,.payable-list > a:nth-child(3n) { border-right:0; }.profit-head nav { width:100%; box-sizing:border-box; }.profit-head nav a { flex:1; text-align:center; padding-left:5px; padding-right:5px; } }

/* Vehicle and company profit reports */
.profit-report-page { padding:2px 4px 18px; }.profit-report-page .profit-kpis strong.is-negative { color:#dc2626; }.profit-report-card { margin-bottom:14px; }.profit-detail-table { overflow:hidden; }.profit-detail-row { display:grid; align-items:center; min-height:48px; padding:7px 14px; border-bottom:1px solid #edf1f5; color:#56657a; box-sizing:border-box; }.profit-detail-row:last-child { border-bottom:0; }.profit-detail-row:not(.profit-detail-label):hover { background:#f8fbff; }.profit-detail-row > span { min-width:0; }.profit-detail-row strong,.profit-detail-row small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.profit-detail-row strong { color:#33445d; font-size:10px; }.profit-detail-row small { margin-top:4px; color:#9aa5b4; font-size:8px; }.profit-detail-row b { color:#56657a; font-size:9px; font-weight:600; text-align:right; white-space:nowrap; }.profit-detail-row b.is-positive { color:#16803d; }.profit-detail-row b.is-negative { color:#dc2626; }.profit-detail-label { min-height:34px; color:#8995a6; background:#f7f9fc; font-size:8px; }.profit-detail-label span:not(:first-child) { text-align:right; }.vehicle-profit-table .profit-detail-row { grid-template-columns:minmax(130px,1.35fr) 55px repeat(7,minmax(76px,.78fr)); gap:8px; }.company-profit-table .profit-detail-row { grid-template-columns:minmax(76px,1fr) 62px repeat(4,minmax(88px,1fr)); gap:8px; }.company-profit-grid { grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr); }.profit-cost-list > div { display:grid; grid-template-columns:minmax(130px,1fr) 100px 48px; align-items:center; gap:12px; min-height:53px; padding:8px 15px; border-bottom:1px solid #edf1f5; box-sizing:border-box; }.profit-cost-list > div:last-child { border-bottom:0; }.profit-cost-list span strong { display:block; color:#435168; font-size:10px; }.profit-cost-list span small { display:block; height:5px; margin-top:7px; border-radius:4px; background:#eef2f7; overflow:hidden; }.profit-cost-list span small i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#2563eb,#21b9d7); }.profit-cost-list b { color:#33445d; font-size:10px; text-align:right; }.profit-cost-list em { color:#7c8ba0; font-size:9px; font-style:normal; text-align:right; }.profit-caliber { margin-top:12px; padding:14px 17px; border:1px solid #dce6f2; border-radius:11px; background:#f7faff; }.profit-caliber h3 { margin:0 0 8px; color:#38577e; font-size:11px; }.profit-caliber h3 i { margin-right:6px; color:#2f73d9; }.profit-caliber ol { margin:0; padding-left:19px; color:#73839a; font-size:9px; line-height:1.9; }.profit-caliber li::marker { color:#4b83d1; font-weight:700; }
.vehicle-profit-table .profit-detail-row { grid-template-columns:minmax(130px,1.35fr) repeat(8,minmax(76px,.78fr)); }
@media (max-width:1280px) { .vehicle-profit-table { overflow-x:auto; }.vehicle-profit-table .profit-detail-row { min-width:980px; }.company-profit-grid { grid-template-columns:1fr; } }
@media (max-width:780px) { .profit-report-page .profit-kpis-five { grid-template-columns:1fr 1fr; }.company-profit-table { overflow-x:auto; }.company-profit-table .profit-detail-row { min-width:620px; } }

/* Annual company profit: compact enough for a desktop viewport without clipping values. */
.company-yearly-page { min-width:0; padding-bottom:8px; }
.company-yearly-page .profit-head { align-items:center; margin:0 2px 8px; }
.company-yearly-page .profit-head h2 { margin:0 0 2px; font-size:19px; }
.company-yearly-page .profit-head p { font-size:10px; }
.company-year-picker { display:flex; align-items:center; gap:7px; padding:3px 5px 3px 9px; border:1px solid #dce5f0; border-radius:7px; color:#65758d; background:#fff; font-size:10px; white-space:nowrap; }
.company-year-picker select { height:27px; min-width:91px; padding:0 22px 0 8px; border:1px solid #d5e2f2; border-radius:5px; color:#255cb8; background:#f5f9ff; font-weight:700; cursor:pointer; }
.company-yearly-page .profit-kpis { gap:9px; margin-bottom:10px; }
.company-yearly-page .profit-kpis article { min-height:72px; padding:9px 11px 8px; border-radius:8px; }
.company-yearly-page .profit-kpis article:before { top:10px; height:25px; }
.company-yearly-page .profit-kpis strong { margin:5px 0 3px; font-size:16px; }
.company-yearly-card { margin-bottom:9px; }
.company-yearly-card > header { align-items:center; padding:8px 11px; }
.company-yearly-card > header > span { padding:3px 6px; }
.company-yearly-table-wrap { max-width:100%; overflow-x:auto; overscroll-behavior-inline:contain; }
.company-yearly-table { width:100%; min-width:1460px; table-layout:fixed; border-collapse:separate; border-spacing:0; font-size:9px; font-variant-numeric:tabular-nums; }
.company-yearly-table th,.company-yearly-table td { height:31px; padding:0 3px; border-right:1px solid #edf1f6; border-bottom:1px solid #e9eff6; text-align:right; white-space:nowrap; }
.company-yearly-table th:first-child,.company-yearly-table td:first-child { position:sticky; left:0; z-index:2; width:61px; text-align:left; background:#fff; box-shadow:2px 0 5px rgba(26,49,85,.05); }
.company-yearly-table th:nth-child(2),.company-yearly-table td:nth-child(2),.company-yearly-table th:nth-last-child(3),.company-yearly-table td:nth-last-child(3),.company-yearly-table th:nth-last-child(2),.company-yearly-table td:nth-last-child(2) { width:87px; }
.company-yearly-table th:last-child,.company-yearly-table td:last-child { width:56px; }
.company-yearly-table td { color:#475771; }
.company-yearly-table thead th { position:sticky; top:0; z-index:3; height:30px; color:#677b96; background:#f6f9fd; font-size:9px; font-weight:700; }
.company-yearly-table thead th:first-child { z-index:4; background:#f6f9fd; }
.company-yearly-table tbody tr:nth-child(even) td,.company-yearly-table tbody tr:nth-child(even) th:first-child { background:#fbfcff; }
.company-yearly-table tbody tr:hover td,.company-yearly-table tbody tr:hover th:first-child { background:#edf5ff; }
.company-yearly-table .total-cost { color:#33475f; font-weight:700; background:#f7faff; }
.company-yearly-table .is-positive { color:#15803d; font-weight:700; }.company-yearly-table .is-negative { color:#d04431; font-weight:700; }
.company-yearly-table tfoot th,.company-yearly-table tfoot td,.company-yearly-table tfoot th:first-child { position:sticky; bottom:0; z-index:3; color:#173969; background:#e9f2ff; font-weight:760; }
.company-yearly-table tfoot th:first-child { z-index:4; }
.company-yearly-page .profit-caliber { margin-top:0; padding:9px 12px; border-radius:8px; }
.company-yearly-page .profit-caliber h3 { margin-bottom:5px; font-size:10px; }
.company-yearly-page .profit-caliber ol { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:24px; row-gap:2px; padding-left:15px; font-size:9px; line-height:1.45; }
.company-yearly-page .profit-caliber li { padding-right:4px; }
@media (max-width:1280px) { .company-yearly-page .profit-kpis { grid-template-columns:repeat(5,minmax(0,1fr)); } }
@media (max-width:780px) { .company-yearly-page .profit-head { gap:8px; }.company-year-picker { width:100%; justify-content:space-between; box-sizing:border-box; }.company-yearly-page .profit-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }.company-yearly-page .profit-caliber ol { grid-template-columns:1fr; } }

/* Supplier list and supplier workspace */
.supplier-list-workspace { padding:2px 4px 10px; }.supplier-list-head { position:relative; display:flex; min-height:104px; align-items:center; justify-content:space-between; gap:20px; margin-bottom:12px; padding:17px 22px; border-radius:13px; color:#fff; background:radial-gradient(circle at 84% -35%,rgba(96,165,250,.4),transparent 38%),linear-gradient(125deg,#102957,#194982 67%,#176b87); box-shadow:0 8px 24px rgba(18,55,105,.14); overflow:hidden; box-sizing:border-box; }.supplier-list-head:after { content:''; position:absolute; right:125px; top:-100px; width:190px; height:190px; border:1px solid rgba(255,255,255,.1); border-radius:50%; }.supplier-list-head > div:first-child { position:relative; z-index:1; }.supplier-list-head > div:first-child > span { color:#6cc6ff; font-size:8px; font-weight:750; letter-spacing:.15em; }.supplier-list-head h2 { margin:5px 0 4px; color:#fff; font-size:22px; font-weight:760; }.supplier-list-head p { margin:0; color:rgba(224,237,255,.76); font-size:9px; }.supplier-head-total { position:relative; z-index:1; min-width:126px; padding-left:20px; border-left:1px solid rgba(255,255,255,.18); text-align:right; }.supplier-head-total strong,.supplier-head-total span { display:block; }.supplier-head-total strong { font-size:25px; line-height:1.1; }.supplier-head-total span { margin-top:6px; color:rgba(229,240,255,.72); font-size:9px; }.supplier-list-card { margin:0; border-radius:12px; overflow:hidden; box-shadow:0 5px 18px rgba(15,23,42,.055); }.supplier-type-tabs li { min-width:128px; }.supplier-list-table-wrap { min-width:0; overflow:hidden; }.supplier-cell-main small { display:flex!important; align-items:center; gap:5px; }.supplier-type-dot { display:inline-block; width:6px; height:6px; flex:0 0 auto; border-radius:50%; }.supplier-type-blue { background:#3b82f6; }.supplier-type-orange { background:#f59e0b; }.supplier-type-green { background:#22a06b; }.supplier-cell-pending { color:#64748b; font-size:10px; }.supplier-cell-pending.has-value { color:#c2410c; }.supplier-workspace-summary { background:radial-gradient(circle at 82% -30%,rgba(45,212,191,.25),transparent 35%),linear-gradient(124deg,#102651 0%,#184778 64%,#137078 100%); }.supplier-tabs-wrap .project-tabs-heading { margin-bottom:11px; }.supplier-workspace-tabs { grid-template-columns:repeat(5,minmax(140px,1fr)); }.supplier-overview-kpis { margin-bottom:14px; }.supplier-bento-grid { grid-template-columns:minmax(0,1.55fr) minmax(330px,.75fr); }.supplier-record-list article { display:grid; grid-template-columns:minmax(0,1fr) 75px 130px; align-items:center; gap:12px; min-height:63px; padding:10px 15px; border-bottom:1px solid #edf1f5; box-sizing:border-box; }.supplier-record-list article:last-child { border-bottom:0; }.supplier-record-list article:hover { background:#f8fbff; }.supplier-record-list span strong,.supplier-record-list span small,.supplier-record-list b small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.supplier-record-list span strong { color:#33455e; font-size:10px; }.supplier-record-list span small,.supplier-record-list b small { margin-top:4px; color:#99a5b5; font-size:8px; font-weight:400; }.supplier-record-list em { justify-self:start; padding:3px 7px; border-radius:999px; color:#a16207; background:#fff3ce; font-size:8px; font-style:normal; }.supplier-record-list em.is-approved { color:#16803d; background:#dcfce7; }.supplier-record-list b { color:#33455e; font-size:10px; text-align:right; }.supplier-fund-list { display:grid; grid-template-columns:1fr 1fr; }.supplier-fund-list > div { min-height:72px; padding:13px 15px; border-right:1px solid #edf1f5; border-bottom:1px solid #edf1f5; box-sizing:border-box; }.supplier-fund-list > div:nth-child(2n) { border-right:0; }.supplier-fund-list > div:nth-last-child(-n+2) { border-bottom:0; }.supplier-fund-list span,.supplier-fund-list strong { display:block; }.supplier-fund-list span { color:#8b97a8; font-size:8px; }.supplier-fund-list strong { margin-top:9px; color:#35465d; font-size:13px; }.supplier-fund-list .is-pending strong { color:#c2410c; }
@media (max-width:1280px) { .supplier-workspace-tabs { grid-template-columns:repeat(3,minmax(145px,1fr)); }.supplier-bento-grid { grid-template-columns:1fr; }.supplier-bento-grid .project-bento-side { grid-template-columns:1fr 1fr; } }
@media (max-width:780px) { .supplier-list-head { align-items:flex-start; }.supplier-head-total { min-width:auto; }.supplier-type-tabs li { min-width:0; }.supplier-workspace-tabs { grid-template-columns:repeat(2,minmax(130px,1fr)); }.supplier-bento-grid .project-bento-side { grid-template-columns:1fr; }.supplier-record-list article { grid-template-columns:minmax(0,1fr) 65px 95px; } }

/* Local resilience */
.operations-page { max-width:100%; margin:0 auto; }.operations-head { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin:3px 2px 14px; }.operations-head h2 { margin:5px 0 6px; color:#203049; font-size:25px; font-weight:760; letter-spacing:-.03em; }.operations-head p { margin:0; color:#7e8b9d; font-size:12px; }.operations-head > span { padding:7px 9px; border:1px solid #ccebd9; border-radius:7px; color:#16763b; background:#effcf4; font-size:10px; white-space:nowrap; }.operations-head i { margin-right:4px; }.operations-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-bottom:14px; }.operations-card { border:1px solid #dfe6ef; border-radius:12px; background:#fff; box-shadow:0 5px 18px rgba(15,23,42,.05); overflow:hidden; }.operations-card > header { display:flex; align-items:center; justify-content:space-between; padding:14px 16px 12px; border-bottom:1px solid #eaf0f4; background:#fbfcfe; }.operations-card > header strong { color:#35455d; font-size:12px; }.operations-card > header em { padding:3px 6px; border-radius:99px; font-size:8px; font-style:normal; }.operations-card > header em.is-ok { color:#15803d; background:#dcfce7; }.operations-card > header em.is-warn { color:#a16207; background:#fef3c7; }.operations-main { display:flex; min-height:103px; justify-content:center; flex-direction:column; padding:15px 16px; }.operations-main b,.operations-main span,.operations-main small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.operations-main b { color:#30425f; font-size:13px; }.operations-main span { margin:7px 0 5px; color:#66768c; font-size:10px; }.operations-main small { color:#98a3b1; font-size:9px; }.operations-card footer { padding:9px 16px; border-top:1px solid #edf0f4; color:#8592a4; background:#fafbfd; font-size:9px; }.operations-card code { padding:2px 4px; border-radius:3px; color:#315e9e; background:#edf4ff; font-family:Consolas,monospace; font-size:9px; }.operations-empty { display:flex; min-height:103px; align-items:center; justify-content:center; padding:0 16px; color:#99a4b2; font-size:10px; text-align:center; }.operations-history { margin-bottom:11px; }.operations-history > header > span { color:#98a2af; font-size:9px; }.operations-table > div { display:grid; grid-template-columns:1fr minmax(190px,1.4fr) 70px 76px minmax(112px,.9fr); align-items:center; gap:10px; min-height:44px; padding:7px 14px; border-bottom:1px solid #edf0f4; color:#69778c; font-size:9px; box-sizing:border-box; }.operations-table > div:first-child { min-height:32px; color:#9ba5b2; background:#f8fafc; font-size:8px; }.operations-table > div > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.operations-note { margin:9px 2px 0; color:#98a2b0; font-size:9px; line-height:1.7; }
@media (max-width:760px) { .operations-head { align-items:flex-start; flex-direction:column; }.operations-grid { grid-template-columns:1fr; }.operations-table { overflow-x:auto; }.operations-table > div { min-width:650px; } }

/* Reference-inspired dispatch command board */
.command-reference { max-width:100%; margin:0 auto; }.command-reference-head { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; padding:2px 3px 10px; border-bottom:1px solid #b2d436; }.command-reference-head h2 { margin:4px 0 5px; color:#202b3d; font-size:27px; letter-spacing:-.035em; font-weight:760; }.command-reference-head p { margin:0; color:#8490a0; font-size:11px; }.command-reference .command-date-nav .is-today { color:#526b12; border-color:#cadf78; background:#f6fae8; }
.command-summary-panel { display:grid; grid-template-columns:1.2fr .65fr .92fr .92fr; gap:11px; margin:14px 0; }.command-summary-panel article { min-height:118px; border:1px solid #e0e7ed; border-radius:11px; background:#fff; box-shadow:0 5px 18px rgba(15,23,42,.045); box-sizing:border-box; }.command-distribution { display:flex; align-items:center; gap:19px; padding:14px 18px; }.command-donut { position:relative; display:grid; width:88px; height:88px; flex:0 0 88px; place-items:center; border-radius:50%; }.command-donut:before { content:''; position:absolute; width:52px; height:52px; border-radius:50%; background:#fff; }.command-donut span { position:relative; z-index:1; text-align:center; }.command-donut strong,.command-donut small { display:block; }.command-donut strong { color:#37455c; font-size:22px; line-height:1; }.command-donut small { margin-top:3px; color:#9ba5b2; font-size:8px; }.command-stage-legend { display:grid; grid-template-columns:repeat(2,minmax(80px,1fr)); gap:7px 15px; min-width:0; }.command-stage-legend > strong { grid-column:1 / -1; color:#44526a; font-size:10px; }.command-stage-legend span { display:flex; align-items:center; gap:5px; color:#768398; font-size:9px; }.command-stage-legend i { width:7px; height:7px; border-radius:50%; }.command-stage-legend b { margin-left:auto; color:#4c5b70; font-size:9px; }.command-total { display:flex; align-items:center; justify-content:center; flex-direction:column; text-align:center; }.command-total strong { color:#4b5565; font-size:38px; line-height:1; font-weight:750; }.command-total span { margin-top:8px; color:#6c7787; font-size:12px; }.command-total small { margin-top:5px; color:#a0a9b4; font-size:8px; }.command-resource-kpis { display:grid; grid-template-columns:1fr 1fr 1fr; grid-template-rows:34px 1fr; padding:13px 14px; }.command-resource-kpis > span { grid-column:1 / -1; color:#4c5b70; font-size:10px; font-weight:700; }.command-resource-kpis > span i { margin-right:4px; color:#7fa124; }.command-resource-kpis.person > span i { color:#7660c8; }.command-resource-kpis div { display:flex; align-items:center; justify-content:center; flex-direction:column; border-right:1px solid #edf0f4; }.command-resource-kpis div:last-child { border:0; }.command-resource-kpis b { color:#39485f; font-size:20px; }.command-resource-kpis small { margin-top:4px; color:#9da6b3; font-size:8px; white-space:nowrap; }
.command-reference-strip { grid-template-columns:186px minmax(130px,1fr) 15px minmax(130px,1fr) 15px minmax(130px,1fr) auto; margin-bottom:11px; border-color:#d7e3b4; background:linear-gradient(105deg,#fbfdf5,#fff); }.command-reference-strip .command-strip-title > i { background:#8cb72b; }.command-reference-strip .command-choice.is-ready { border-color:#c9df82; }.command-reference-strip .command-choice.is-ready > em,.command-reference-strip .command-assign { background:#89b426; }.command-reference-strip .command-choice.is-ready strong { color:#5c7f12; }
.command-tab-panel { display:flex; align-items:center; justify-content:space-between; gap:12px; border:1px solid #e0e6ec; border-radius:10px 10px 0 0; background:#fff; padding:0 12px; }.command-tabs { display:flex; align-items:stretch; gap:1px; }.command-tabs button { height:44px; padding:0 12px; border:0; border-bottom:2px solid transparent; color:#7e8998; background:transparent; font-size:10px; cursor:pointer; }.command-tabs button.is-active { border-color:#a8cb35; color:#789a1c; font-weight:700; }.command-tabs em { margin-left:3px; font-size:8px; font-style:normal; }.command-board-tools { display:flex; align-items:center; gap:7px; }.command-board-tools select,.command-board-tools input { height:29px; border:1px solid #dce3ea; border-radius:5px; color:#778498; background:#fbfcfd; font-size:9px; outline:0; }.command-board-tools select { width:144px; padding:0 6px; }.command-board-tools > span { position:relative; display:block; }.command-board-tools > span i { position:absolute; left:8px; top:8px; color:#9da7b4; font-size:11px; }.command-board-tools input { width:180px; padding:0 7px 0 25px; box-sizing:border-box; }
.command-reference-body { display:grid; grid-template-columns:minmax(0,1fr) 340px; align-items:start; gap:11px; padding:11px; border:1px solid #e0e6ec; border-top:0; border-radius:0 0 10px 10px; background:#f7f9fb; }.command-order-board,.command-resource-board { min-width:0; }.command-order-board > header,.reference-resource-section > header { display:flex; align-items:flex-start; justify-content:space-between; padding:5px 2px 10px; }.command-order-board > header strong,.command-order-board > header small,.reference-resource-section > header strong,.reference-resource-section > header small { display:block; }.command-order-board > header strong,.reference-resource-section > header strong { color:#3e4d65; font-size:11px; }.command-order-board > header small,.reference-resource-section > header small { margin-top:3px; color:#98a2af; font-size:8px; }.command-order-board > header b { display:grid; width:29px; height:29px; place-items:center; border-radius:50%; color:#607c13; background:#edf5d6; font-size:12px; }.command-order-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.reference-order-card { position:relative; min-width:0; padding:12px 13px 10px; border:1px solid #e2e7ec; border-radius:8px; background:#fff; box-shadow:0 2px 6px rgba(15,23,42,.025); transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease; }.reference-order-card.is-assignable { cursor:pointer; }.reference-order-card.is-assignable:hover { border-color:#c2db78; transform:translateY(-1px); box-shadow:0 5px 12px rgba(83,114,16,.1); }.reference-order-card.is-selected { border-color:#91bc28; box-shadow:inset 0 0 0 1px #91bc28; background:#fcfff6; }.reference-order-card > header { display:flex; align-items:center; gap:8px; }.reference-order-card > header strong { min-width:0; flex:1; color:#3c4a61; font-size:10px; }.reference-order-card > header em { padding:2px 5px; border-radius:4px; font-size:8px; font-style:normal; }.reference-order-card.stage-coordination > header em { color:#a65a0c; background:#fff0df; }.reference-order-card.stage-pending > header em { color:#6d43b6; background:#f1eafe; }.reference-order-card.stage-working > header em { color:#1e5dbf; background:#e9f1ff; }.reference-order-card.stage-completed > header em { color:#64748b; background:#edf1f5; }.reference-order-card h4 { margin:9px 0 8px; color:#334258; font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.reference-order-metrics { display:grid; grid-template-columns:1fr 1fr; margin-bottom:8px; border:1px solid #edf0f3; border-radius:5px; background:#fafbfd; }.reference-order-metrics span { min-width:0; padding:7px; text-align:center; }.reference-order-metrics span+span { border-left:1px solid #edf0f3; }.reference-order-metrics b,.reference-order-metrics small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.reference-order-metrics b { color:#85ad26; font-size:10px; }.reference-order-metrics small { margin-top:3px; color:#a0a9b4; font-size:7px; }.reference-order-card p { margin:4px 0; color:#8b96a5; font-size:8px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.reference-order-card p span { color:#647286; }.reference-order-card footer { display:flex; align-items:center; justify-content:space-between; gap:6px; margin-top:9px; padding-top:8px; border-top:1px solid #edf0f3; }.reference-order-card footer > span { min-width:0; color:#8994a3; font-size:8px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.reference-order-card footer button { flex:0 0 auto; padding:4px 7px; border:0; border-radius:4px; color:#638115; background:#eff6da; font-size:8px; cursor:pointer; }.reference-order-card footer button:hover { color:#fff; background:#8bb427; }
.command-resource-board { display:flex; flex-direction:column; gap:10px; }.reference-resource-section { border:1px solid #e0e6ec; border-radius:8px; background:#fff; overflow:hidden; }.reference-resource-section > header { padding:10px 11px 8px; border-bottom:1px solid #edf0f3; background:#fbfcfd; }.reference-resource-section > header > span { padding:3px 5px; border-radius:4px; color:#5c7c10; background:#eff6db; font-size:8px; }.reference-category-list { max-height:355px; overflow:auto; }.reference-category { border-bottom:1px solid #edf0f3; }.reference-category:last-child { border-bottom:0; }.reference-category > header { display:flex; align-items:center; justify-content:space-between; padding:8px 10px 5px; }.reference-category > header strong { color:#536278; font-size:9px; }.reference-category > header span { display:flex; gap:4px; }.reference-category > header b,.reference-category > header i,.reference-category > header em { padding:2px 4px; border-radius:3px; font-size:7px; font-style:normal; font-weight:600; }.reference-category > header b { color:#198241; background:#dcfce7; }.reference-category > header i { color:#1d5bc2; background:#eaf2ff; }.reference-category > header em { color:#a16207; background:#fef3c7; }.reference-category > div { display:flex; flex-wrap:wrap; gap:5px; padding:0 9px 8px; }.reference-device { display:flex; width:calc(50% - 3px); min-width:0; align-items:center; gap:5px; padding:5px; border:1px solid #e4e9ef; border-radius:5px; color:inherit; background:#fff; text-align:left; box-sizing:border-box; }.reference-device.is-selectable { cursor:pointer; }.reference-device.is-selectable:hover { border-color:#b8d76d; background:#fbfef4; }.reference-device.is-selected { border-color:#8fbb2b; background:#f7fbe9; box-shadow:inset 0 0 0 1px #8fbb2b; }.reference-device.is-incompatible { opacity:.38; cursor:not-allowed; }.reference-device span { min-width:0; }.reference-device strong,.reference-device small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.reference-device strong { color:#526176; font-size:8px; }.reference-device small { margin-top:2px; color:#a0a9b4; font-size:7px; }.reference-people-section { max-height:280px; }.reference-people-list { max-height:206px; overflow:auto; }.reference-person { display:flex; width:100%; align-items:center; gap:7px; padding:8px 10px; border:0; border-bottom:1px solid #edf0f3; color:inherit; background:#fff; text-align:left; }.reference-person.is-selectable { cursor:pointer; }.reference-person.is-selectable:hover { background:#fbfef4; }.reference-person.is-selected { background:#f7fbe9; box-shadow:inset -3px 0 #8fbb2b; }.reference-person span { min-width:0; flex:1; }.reference-person strong,.reference-person small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.reference-person strong { color:#536176; font-size:9px; }.reference-person small { margin-top:3px; color:#a0a9b4; font-size:7px; }.reference-person em { padding:2px 4px; border-radius:3px; font-size:7px; font-style:normal; white-space:nowrap; }.reference-person.state-idle em { color:#15803d; background:#dcfce7; }.reference-person.state-working em { color:#1d5bc2; background:#eaf2ff; }.reference-person.state-reserved em { color:#a16207; background:#fef3c7; }.reference-person.state-leave em { color:#6d28d9; background:#f3e8ff; }
@media (max-width:1320px) { .command-summary-panel { grid-template-columns:1.2fr .65fr 1fr; }.command-summary-panel .person { display:none; }.command-reference-body { grid-template-columns:minmax(0,1fr) 310px; } }.command-reference .command-note { margin-top:9px; }
@media (max-width:980px) { .command-summary-panel { grid-template-columns:1fr 1fr; }.command-summary-panel .person { display:grid; }.command-reference-body { grid-template-columns:1fr; }.command-resource-board { display:grid; grid-template-columns:1fr 1fr; }.reference-resource-section { height:fit-content; }.reference-category-list { max-height:320px; }.command-tab-panel { align-items:flex-start; flex-direction:column; padding:8px; }.command-board-tools { width:100%; }.command-board-tools > span { flex:1; }.command-board-tools input { width:100%; } }
@media (max-width:680px) { .command-reference-head { align-items:flex-start; flex-direction:column; }.command-reference-head .command-date-nav { width:100%; }.command-reference-head .command-date-nav .layui-input { flex:1; }.command-summary-panel { grid-template-columns:1fr; }.command-summary-panel .person { display:grid; }.command-distribution { justify-content:center; }.command-reference-strip { display:block; }.command-reference-strip .command-strip-title,.command-reference-strip .command-choice,.command-reference-strip .command-assign { width:100%; margin-bottom:7px; box-sizing:border-box; }.command-reference-strip .command-choice-arrow { display:none; }.command-tabs { width:100%; overflow-x:auto; }.command-tabs button { flex:0 0 auto; }.command-board-tools { align-items:stretch; flex-direction:column; }.command-board-tools select { width:100%; }.command-order-grid,.command-resource-board { display:block; }.command-order-grid { display:flex; overflow-x:auto; }.reference-order-card { min-width:260px; flex:0 0 260px; }.reference-resource-section { margin-top:10px; }.reference-device { width:calc(50% - 3px); } }

/* Dispatch cockpit */
.dispatch-cockpit { --cockpit-blue:#2563eb; --cockpit-navy:#102b57; max-width:100%; margin:0 auto; color:#26364d; }
.cockpit-hero { position:relative; display:flex; min-height:92px; align-items:center; justify-content:space-between; gap:24px; padding:18px 22px; border-radius:13px 13px 0 0; color:#fff; background:radial-gradient(circle at 86% 5%,rgba(56,189,248,.32),transparent 30%),linear-gradient(120deg,#0f2b59,#174d88 64%,#0e7490); box-shadow:0 8px 22px rgba(15,43,89,.14); box-sizing:border-box; overflow:hidden; }
.cockpit-hero:after { content:''; position:absolute; width:220px; height:220px; right:11%; top:-145px; border:1px solid rgba(255,255,255,.13); border-radius:50%; }
.cockpit-heading { position:relative; z-index:1; }.cockpit-heading > span { color:#67d6ff; font-size:9px; font-weight:750; letter-spacing:.18em; }.cockpit-heading h2 { margin:5px 0 4px; color:#fff; font-size:25px; font-weight:760; letter-spacing:-.025em; }.cockpit-heading p { margin:0; color:#bed3eb; font-size:11px; }
.cockpit-date-nav { position:relative; z-index:2; display:flex; align-items:center; gap:6px; }.cockpit-date-nav button,.cockpit-date-nav .layui-input { height:34px; border:1px solid rgba(255,255,255,.25); color:#fff; background:rgba(7,30,66,.25); }.cockpit-date-nav button { min-width:34px; padding:0 9px; border-radius:7px; cursor:pointer; }.cockpit-date-nav .layui-input { width:126px; border-radius:7px; text-align:center; }.cockpit-date-nav .is-today { color:#0f4078; border-color:#fff; background:#fff; font-weight:700; }
.cockpit-week { display:grid; grid-template-columns:repeat(7,1fr); border:1px solid #dfe8f4; border-top:0; border-radius:0 0 12px 12px; background:#fff; box-shadow:0 5px 18px rgba(15,43,89,.06); overflow:hidden; }.cockpit-week button { position:relative; min-width:0; padding:10px 5px 9px; border:0; border-right:1px solid #e8edf4; color:#758398; background:#fff; cursor:pointer; }.cockpit-week button:last-child { border-right:0; }.cockpit-week button:hover { background:#f6f9ff; }.cockpit-week button.is-active { color:#fff; background:linear-gradient(135deg,#2563eb,#1683db); }.cockpit-week button.is-today:not(.is-active):after { content:'今天'; position:absolute; top:5px; right:7px; padding:1px 4px; border-radius:8px; color:#2563eb; background:#eaf2ff; font-size:7px; }.cockpit-week span,.cockpit-week strong,.cockpit-week small { display:block; }.cockpit-week span { font-size:9px; }.cockpit-week strong { margin:2px 0; font-size:13px; }.cockpit-week small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#9aa6b5; font-size:8px; }.cockpit-week .is-active small { color:#dbeafe; }
.cockpit-kpis { display:grid; grid-template-columns:1.35fr repeat(4,1fr); gap:10px; margin:12px 0; }.cockpit-kpis > article { position:relative; min-height:102px; padding:14px 15px; border:1px solid #e1e8f0; border-radius:11px; background:#fff; box-shadow:0 4px 14px rgba(15,23,42,.045); box-sizing:border-box; overflow:hidden; }.cockpit-kpis > article > i { position:absolute; right:13px; top:12px; color:#aec5ea; font-size:20px; }.cockpit-kpis > article > span,.cockpit-kpis > article > strong,.cockpit-kpis > article > small { display:block; }.cockpit-kpis > article > span { color:#708096; font-size:10px; }.cockpit-kpis > article > strong { margin:7px 0 5px; color:#172c49; font-size:24px; line-height:1; }.cockpit-kpis > article > strong em { margin-left:3px; color:#91a0b2; font-size:12px; font-style:normal; font-weight:500; }.cockpit-kpis > article > small { color:#99a5b5; font-size:8px; }.cockpit-status-card { display:flex; align-items:center; gap:16px; padding:10px 16px !important; }.cockpit-status-card .command-donut { width:74px; height:74px; flex:0 0 74px; }.cockpit-status-card .command-donut:before { width:46px; height:46px; }.cockpit-status-card .command-donut strong { font-size:18px; }.cockpit-status-list { display:grid; min-width:0; flex:1; grid-template-columns:1fr 1fr; gap:7px 13px; }.cockpit-status-list span { display:flex; align-items:center; gap:5px; color:#718096; font-size:9px; }.cockpit-status-list i { width:7px; height:7px; border-radius:50%; }.cockpit-status-list b { margin-left:auto; color:#334155; }
.cockpit-dispatch-strip { grid-template-columns:150px minmax(125px,1fr) 14px minmax(125px,1fr) 14px minmax(125px,1fr) auto auto; margin-bottom:11px; border-color:#cbdcf5; background:linear-gradient(105deg,#f1f6ff,#fff); }.cockpit-dispatch-strip .command-strip-title > i,.cockpit-dispatch-strip .command-choice.is-ready > em,.cockpit-dispatch-strip .command-assign { background:#2563eb; }.cockpit-dispatch-strip .command-choice.is-ready { border-color:#93b8f5; }.cockpit-dispatch-strip .command-choice.is-ready strong { color:#1d5cc8; }.cockpit-clear { height:36px; padding:0 11px; border:1px solid #dbe3ed; border-radius:8px; color:#6b7a8f; background:#fff; font-size:9px; cursor:pointer; }
.cockpit-filter-bar { display:flex; min-height:48px; align-items:center; justify-content:space-between; gap:12px; padding:0 12px; border:1px solid #dfe7f1; border-radius:10px 10px 0 0; background:#fff; }.cockpit-filter-bar .command-tabs button { height:47px; font-size:10px; }.cockpit-filter-bar .command-tabs button.is-active { border-color:#2563eb; color:#1f5fc9; }.cockpit-filter-bar .command-tabs em { display:inline-grid; min-width:17px; height:17px; margin-left:4px; place-items:center; border-radius:9px; color:#77869a; background:#eef2f7; }.cockpit-filter-bar .command-tabs button.is-active em { color:#fff; background:#2563eb; }.cockpit-filter-bar .command-board-tools input { width:260px; }
.cockpit-workspace { display:grid; grid-template-columns:minmax(0,1fr) 360px; align-items:start; gap:11px; padding:11px; border:1px solid #dfe7f1; border-top:0; border-radius:0 0 11px 11px; background:#f4f7fb; }.cockpit-orders,.cockpit-resources { min-width:0; }.cockpit-panel-head { display:flex; min-height:39px; align-items:flex-start; justify-content:space-between; gap:10px; padding:2px 2px 8px; box-sizing:border-box; }.cockpit-panel-head strong,.cockpit-panel-head small { display:block; }.cockpit-panel-head strong { color:#33445c; font-size:12px; }.cockpit-panel-head small { margin-top:3px; color:#95a2b3; font-size:8px; }.cockpit-panel-head > b { display:grid; min-width:27px; height:27px; padding:0 6px; place-items:center; border-radius:14px; color:#1f5fc9; background:#e8f1ff; font-size:11px; box-sizing:border-box; }
.cockpit-order-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }.cockpit-order-card { position:relative; min-width:0; padding:13px; border:1px solid #dfe6ef; border-left:3px solid #f97316; border-radius:9px; background:#fff; box-shadow:0 3px 10px rgba(15,23,42,.04); box-sizing:border-box; transition:.16s ease; }.cockpit-order-card.stage-pending { border-left-color:#8b5cf6; }.cockpit-order-card.stage-working { border-left-color:#0ea5e9; }.cockpit-order-card.stage-completed { border-left-color:#22c55e; }.cockpit-order-card.is-assignable { cursor:pointer; }.cockpit-order-card.is-assignable:hover { transform:translateY(-1px); border-color:#97baf4; box-shadow:0 7px 18px rgba(37,99,235,.11); }.cockpit-order-card.is-selected { border-color:#2563eb; background:#f7faff; box-shadow:inset 0 0 0 1px #2563eb,0 7px 18px rgba(37,99,235,.1); }.cockpit-order-card > header { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; }.cockpit-order-card > header > div { display:flex; min-width:0; align-items:center; gap:7px; }.cockpit-order-card > header strong { color:#145fc5; font-size:12px; }.cockpit-order-card > header em,.order-type { flex:0 0 auto; padding:3px 6px; border-radius:9px; font-size:8px; font-style:normal; }.order-type { color:#9a5709; background:#fff1db; }.order-type.is-external { color:#7351b6; background:#f1eafe; }.cockpit-order-card.stage-coordination > header em { color:#ad5d07; background:#fff0df; }.cockpit-order-card.stage-pending > header em { color:#7046bd; background:#f1eafe; }.cockpit-order-card.stage-working > header em { color:#0369a1; background:#e0f2fe; }.cockpit-order-card.stage-completed > header em { color:#15803d; background:#dcfce7; }.cockpit-order-card h3 { margin:9px 0 8px; color:#24364e; font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.cockpit-order-time { display:flex; align-items:center; gap:8px; padding:8px 9px; border-radius:7px; background:#f6f8fb; }.cockpit-order-time > i { color:#4a7ed2; font-size:16px; }.cockpit-order-time > span { min-width:0; flex:1; }.cockpit-order-time small,.cockpit-order-time strong { display:block; }.cockpit-order-time small { color:#9aa5b2; font-size:7px; }.cockpit-order-time strong { margin-top:2px; color:#4d5e74; font-size:9px; }.cockpit-order-time > b { color:#1f5fc9; font-size:10px; white-space:nowrap; }.cockpit-order-card dl { display:grid; grid-template-columns:1fr 1fr; gap:7px 13px; margin:10px 0 0; }.cockpit-order-card dl > div { display:grid; min-width:0; grid-template-columns:55px minmax(0,1fr); gap:5px; }.cockpit-order-card dl > .is-wide { grid-column:1/-1; }.cockpit-order-card dt { color:#9aa5b3; font-size:8px; }.cockpit-order-card dd { margin:0; color:#536176; font-size:9px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.cockpit-order-card .is-note { padding:6px 7px; border-radius:5px; background:#fffbeb; }.cockpit-order-card .is-note dd { color:#9a6508; }.cockpit-order-card footer { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:10px; padding-top:9px; border-top:1px solid #edf1f5; }.cockpit-order-card footer > span { color:#8b98a9; font-size:8px; }.cockpit-order-card footer > div { display:flex; gap:5px; }.cockpit-order-card footer button { padding:5px 8px; border:1px solid #dce4ee; border-radius:5px; color:#64748b; background:#fff; font-size:8px; cursor:pointer; }.cockpit-order-card footer button.is-primary { color:#fff; border-color:#2563eb; background:#2563eb; }
.cockpit-resources { display:flex; flex-direction:column; gap:10px; }.cockpit-resource-panel { border:1px solid #dfe6ef; border-radius:9px; background:#fff; overflow:hidden; }.cockpit-resource-panel > .cockpit-panel-head { min-height:54px; padding:11px 12px 8px; border-bottom:1px solid #edf1f5; background:#fbfcfe; }.cockpit-resource-search { position:relative; display:block; margin:8px 9px 4px; }.cockpit-resource-search i { position:absolute; left:9px; top:8px; color:#a2adba; font-size:11px; }.cockpit-resource-search input { width:100%; height:29px; padding:0 8px 0 27px; border:1px solid #dfe6ef; border-radius:6px; color:#536176; background:#f9fbfd; font-size:9px; outline:0; box-sizing:border-box; }.cockpit-resource-panel .reference-category-list { max-height:325px; }.cockpit-resource-panel .reference-device { padding:7px; }.cockpit-resource-panel .reference-device strong { font-size:9px; }.cockpit-resource-panel .reference-people-list { max-height:235px; }.cockpit-resource-panel .reference-person { padding:9px 10px; }.cockpit-note { margin:10px 1px 0; padding:9px 11px; border:1px solid #d9e7fa; border-radius:7px; color:#6e7f95; background:#f2f7ff; font-size:9px; line-height:1.65; }.cockpit-note i { margin-right:5px; color:#2563eb; }
@media (max-width:1350px) { .cockpit-kpis { grid-template-columns:1.35fr repeat(3,1fr); }.cockpit-kpis > article:last-child { display:none; }.cockpit-workspace { grid-template-columns:minmax(0,1fr) 320px; }.cockpit-order-card dl { grid-template-columns:1fr; }.cockpit-order-card dl > .is-wide { grid-column:auto; } }
@media (max-width:1050px) { .cockpit-kpis { grid-template-columns:repeat(2,1fr); }.cockpit-status-card { grid-column:1/-1; }.cockpit-kpis > article:last-child { display:block; }.cockpit-dispatch-strip { grid-template-columns:1fr 1fr 1fr; }.cockpit-dispatch-strip .command-strip-title { grid-column:1/-1; border-right:0; }.cockpit-dispatch-strip .command-choice-arrow { display:none; }.cockpit-dispatch-strip .cockpit-clear,.cockpit-dispatch-strip .command-assign { width:100%; }.cockpit-workspace { grid-template-columns:1fr; }.cockpit-resources { display:grid; grid-template-columns:1fr 1fr; }.cockpit-filter-bar { align-items:flex-start; flex-direction:column; padding:7px 10px; }.cockpit-filter-bar .command-tabs { width:100%; overflow:auto; }.cockpit-filter-bar .command-tabs button { flex:0 0 auto; height:38px; }.cockpit-filter-bar .command-board-tools { width:100%; }.cockpit-filter-bar .command-board-tools > span { flex:1; }.cockpit-filter-bar .command-board-tools input { width:100%; } }
@media (max-width:680px) { .cockpit-hero { align-items:flex-start; flex-direction:column; }.cockpit-date-nav { width:100%; }.cockpit-date-nav .layui-input { flex:1; }.cockpit-week { overflow-x:auto; grid-template-columns:repeat(7,minmax(86px,1fr)); }.cockpit-kpis { grid-template-columns:1fr 1fr; }.cockpit-status-card { grid-column:1/-1; }.cockpit-kpis > article { min-height:96px; }.cockpit-dispatch-strip { display:block; }.cockpit-dispatch-strip .command-strip-title,.cockpit-dispatch-strip .command-choice,.cockpit-dispatch-strip .cockpit-clear,.cockpit-dispatch-strip .command-assign { width:100%; margin-bottom:7px; box-sizing:border-box; }.cockpit-order-grid { display:flex; overflow-x:auto; }.cockpit-order-card { min-width:292px; flex:0 0 292px; }.cockpit-resources { display:block; }.cockpit-resource-panel + .cockpit-resource-panel { margin-top:10px; }.cockpit-filter-bar .command-board-tools { align-items:stretch; flex-direction:column; }.cockpit-filter-bar .command-board-tools select { width:100%; } }

/* Dispatch workspace: three compact pools, with more room reserved for orders. */
.dispatch-cockpit .cockpit-workspace { grid-template-columns:minmax(620px,2fr) minmax(250px,.72fr) minmax(250px,.72fr); align-items:stretch; gap:9px; padding:9px; }
.dispatch-cockpit .cockpit-resources { display:contents; }
.dispatch-cockpit .cockpit-orders,.dispatch-cockpit .cockpit-resource-panel { min-width:0; }
.dispatch-cockpit .cockpit-resource-panel { align-self:stretch; }
.dispatch-cockpit .cockpit-panel-head { min-height:34px; padding:3px 5px 6px; }
.dispatch-cockpit .cockpit-resource-panel > .cockpit-panel-head { min-height:44px; padding:8px 9px 6px; }
.dispatch-cockpit .cockpit-panel-head small { margin-top:2px; line-height:1.35; }
.dispatch-cockpit .cockpit-order-type-tabs { padding:5px 0 7px; }
.dispatch-cockpit .cockpit-order-type-tabs button { min-height:28px; padding:4px 10px; }
.dispatch-cockpit .cockpit-order-list,.dispatch-cockpit .cockpit-state-list { max-height:590px; overflow:auto; }
.dispatch-cockpit .cockpit-order-list-head,.dispatch-cockpit .cockpit-order-row { gap:7px; }
.dispatch-cockpit .cockpit-order-list-head { min-height:29px; padding:0 8px; font-size:9px; }
.dispatch-cockpit .cockpit-order-row { min-height:58px; padding:6px 8px; }
.dispatch-cockpit .cockpit-order-cell strong { font-size:10px; }
.dispatch-cockpit .cockpit-order-cell small { margin-top:3px; font-size:9px; }
.dispatch-cockpit .cockpit-order-cell.identity strong { font-size:11px; }
.dispatch-cockpit .cockpit-order-cell.status em { padding:3px 6px; font-size:9px; }
.dispatch-cockpit .cockpit-order-actions { gap:3px; }
.dispatch-cockpit .cockpit-order-actions button { min-height:25px; padding:3px 6px; font-size:9px; }
.dispatch-cockpit .cockpit-order-notes { gap:5px 10px; padding-top:4px; }
.dispatch-cockpit .cockpit-order-notes > span { gap:4px; font-size:9px; line-height:1.35; }
.dispatch-cockpit .cockpit-resource-search { margin:5px 6px 3px; }
.dispatch-cockpit .cockpit-resource-search input { height:27px; }
.dispatch-cockpit .cockpit-resource-search i { top:7px; }
.dispatch-cockpit .cockpit-resource-filters { gap:3px; padding:3px 6px 6px; }
.dispatch-cockpit .cockpit-resource-filters button { min-height:24px; padding:3px 5px; font-size:8px; }
.dispatch-cockpit .cockpit-state-group > header { padding:5px 7px 4px; }
.dispatch-cockpit .cockpit-state-items,.dispatch-cockpit .cockpit-state-items.people { grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; padding:5px 6px 7px; }
.dispatch-cockpit .cockpit-state-items .reference-device,.dispatch-cockpit .cockpit-state-items.people .reference-person { min-width:0; min-height:40px; padding:5px 6px; border:1px solid #d8e2ee; border-radius:6px; }
.dispatch-cockpit .cockpit-state-items .reference-device strong,.dispatch-cockpit .cockpit-state-items .reference-person strong { font-size:9px; }
.dispatch-cockpit .cockpit-state-items .reference-device small,.dispatch-cockpit .cockpit-state-items .reference-person small { margin-top:2px; font-size:8px; }
.dispatch-cockpit .cockpit-state-items .reference-person em { padding:2px 3px; font-size:7px; }
.dispatch-cockpit .cockpit-assignment-backdrop { background:rgba(9,24,48,.62); }
.dispatch-cockpit .cockpit-assignment-card { border:2px solid #8daed8; background:#fff; box-shadow:0 28px 80px rgba(9,29,62,.35); }
.dispatch-cockpit .cockpit-assignment-card > header { border-bottom-color:#b8cce6; background:#e9f2ff; }
.dispatch-cockpit .cockpit-assignment-card > header small { color:#1458b8; }
.dispatch-cockpit .cockpit-assignment-card > header strong { color:#10294b; }
.dispatch-cockpit .cockpit-assignment-card > header span { color:#3f5876; font-weight:600; }
.dispatch-cockpit .cockpit-assignment-card > header button { color:#37516f; }
.dispatch-cockpit .cockpit-assignment-body { background:#f6f9fd; }
.dispatch-cockpit .cockpit-assignment-body > label { color:#142d50; font-size:13px; }
.dispatch-cockpit .cockpit-assignment-body > label small { color:#405a78; font-weight:500; }
.dispatch-cockpit .cockpit-assignment-device { border-color:#aebfd3; color:#183351; background:#fff; box-shadow:0 1px 3px rgba(15,38,70,.07); }
.dispatch-cockpit .cockpit-assignment-device:hover:not(:disabled) { border-color:#2563c7; color:#0f3264; background:#eaf3ff; }
.dispatch-cockpit .cockpit-assignment-device.is-selected { border:2px solid #1d5fd0; color:#0d3470; background:#dcecff; box-shadow:0 0 0 2px rgba(37,99,235,.13); }
.dispatch-cockpit .cockpit-assignment-device strong { color:#173554; font-size:13px; }
.dispatch-cockpit .cockpit-assignment-device span { color:#415a74; font-size:10px; font-weight:500; }
.dispatch-cockpit .cockpit-assignment-device em { padding:3px 6px; border-radius:10px; color:#116733; background:#d7f7e3; font-weight:700; }
.dispatch-cockpit .cockpit-assignment-device.state-reserved em { color:#7a4700; background:#ffe5a8; }
.dispatch-cockpit .cockpit-assignment-device.state-working em { color:#0a4d9c; background:#d8eaff; }
.dispatch-cockpit .cockpit-assignment-device.state-completed em { color:#475569; background:#e2e8f0; }
.dispatch-cockpit .cockpit-assignment-device.state-stopped em { color:#a61b1b; background:#fee2e2; }
.dispatch-cockpit .cockpit-assignment-device:disabled { opacity:.62; background:#eef1f5; }
.dispatch-cockpit .cockpit-assignment-body select { border:2px solid #8eabd0; color:#132f50; background:#fff; font-weight:600; }
.dispatch-cockpit .cockpit-assignment-body > p { color:#3f5875; font-weight:500; }
.dispatch-cockpit .cockpit-assignment-card > footer { border-top-color:#b8cce6; background:#eef4fb; }
.dispatch-cockpit .cockpit-assignment-card > footer button { border-color:#9fb3cc; color:#324b68; font-weight:600; }
.dispatch-cockpit .cockpit-assignment-card > footer button.is-primary { border-color:#1d5fd0; background:#1d5fd0; }
@media (max-width:1180px) { .dispatch-cockpit .cockpit-workspace { grid-template-columns:repeat(2,minmax(0,1fr)); }.dispatch-cockpit .cockpit-orders { grid-column:1/-1; }.dispatch-cockpit .cockpit-order-list { max-height:520px; } }
@media (max-width:720px) { .dispatch-cockpit .cockpit-workspace { grid-template-columns:1fr; }.dispatch-cockpit .cockpit-orders { grid-column:auto; }.dispatch-cockpit .cockpit-state-items,.dispatch-cockpit .cockpit-state-items.people { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:560px) { .dispatch-cockpit .cockpit-state-items,.dispatch-cockpit .cockpit-state-items.people { grid-template-columns:1fr; } }

/* Dispatch cockpit view modes */
.cockpit-view-switch { display:inline-flex; flex:0 0 auto; padding:2px; border:1px solid #dce5ef; border-radius:7px; background:#f4f7fb; }
.cockpit-view-switch button { height:27px; padding:0 8px; border:0; border-radius:5px; color:#68778b; background:transparent; font-size:9px; white-space:nowrap; cursor:pointer; }
.cockpit-view-switch button i { margin-right:3px; font-size:11px; }
.cockpit-view-switch button:hover { color:#1d5fc7; background:#eaf2ff; }
.cockpit-view-switch button.is-active { color:#fff; background:#2563eb; box-shadow:0 2px 5px rgba(37,99,235,.2); }
.dispatch-cockpit.view-orders .cockpit-workspace { grid-template-columns:repeat(2,minmax(0,1fr)); }
.dispatch-cockpit.view-orders .cockpit-orders { grid-column:1/-1; }
.dispatch-cockpit.view-orders .cockpit-order-list { max-height:680px; }
.dispatch-cockpit.view-orders .cockpit-order-list-head,.dispatch-cockpit.view-orders .cockpit-order-row { grid-template-columns:145px minmax(180px,1.2fr) minmax(180px,1fr) minmax(190px,1.15fr) 105px 150px; }
.dispatch-cockpit.view-orders .cockpit-state-list { max-height:360px; }
.dispatch-cockpit.view-resources .cockpit-workspace { grid-template-columns:minmax(520px,.92fr) repeat(2,minmax(310px,1fr)); }
.dispatch-cockpit.view-resources .cockpit-state-list { max-height:680px; }
.dispatch-cockpit.view-resources .cockpit-state-items,.dispatch-cockpit.view-resources .cockpit-state-items.people { grid-template-columns:1fr; }
.dispatch-cockpit.view-resources .cockpit-order-list-head,.dispatch-cockpit.view-resources .cockpit-order-row { grid-template-columns:125px minmax(150px,1fr) minmax(155px,1fr) 95px 126px; }
.dispatch-cockpit.view-resources .cockpit-order-list-head span:nth-child(4),.dispatch-cockpit.view-resources .cockpit-order-cell:nth-child(4) { display:none; }
@media (max-width:1180px) { .cockpit-view-switch { order:3; }.dispatch-cockpit.view-resources .cockpit-workspace { grid-template-columns:repeat(2,minmax(0,1fr)); }.dispatch-cockpit.view-resources .cockpit-orders { grid-column:1/-1; }.dispatch-cockpit.view-resources .cockpit-state-items,.dispatch-cockpit.view-resources .cockpit-state-items.people { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:720px) { .cockpit-view-switch { width:100%; }.cockpit-view-switch button { flex:1; }.dispatch-cockpit.view-orders .cockpit-workspace,.dispatch-cockpit.view-resources .cockpit-workspace { grid-template-columns:1fr; }.dispatch-cockpit.view-orders .cockpit-orders,.dispatch-cockpit.view-resources .cockpit-orders { grid-column:auto; }.dispatch-cockpit.view-resources .cockpit-state-items,.dispatch-cockpit.view-resources .cockpit-state-items.people { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* Login */
body:has(.login-container) { overflow: hidden; background: #f7f9fc; }
.login-container { position: fixed; inset: 0; min-height: 100vh; display: grid; grid-template-columns: minmax(460px, 1.08fr) minmax(440px, .92fr); background: #f7f9fc !important; background-image: none !important; }
.login-backdrop { position: absolute; inset: 0 45% 0 0; pointer-events: none; background: radial-gradient(circle at 20% 10%, rgba(59,130,246,.22), transparent 38%), radial-gradient(circle at 80% 80%, rgba(6,182,212,.18), transparent 33%); }
.login-story { position: relative; z-index: 1; display: flex; min-width: 0; flex-direction: column; justify-content: space-between; padding: 38px 7vw 32px; color: #fff; background: linear-gradient(145deg, #0a1737 0%, #112958 55%, #123e68 100%); overflow: hidden; }
.login-story:before, .login-story:after { content: ''; position: absolute; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; }
.login-story:before { width: 520px; height: 520px; right: -250px; top: -190px; }
.login-story:after { width: 360px; height: 360px; left: -190px; bottom: -210px; }
.login-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; color: #fff; }
.login-brand > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.login-brand strong { font-size: 18px; }
.login-brand small { color: #7fa6d6; font-size: 9px; letter-spacing: .18em; }
.story-content { position: relative; z-index: 2; max-width: 590px; }
.story-content h1 { margin: 18px 0; font-size: clamp(34px, 3.2vw, 52px); line-height: 1.25; font-weight: 750; letter-spacing: -.035em; }
.story-content > p { max-width: 510px; color: #aebfda; font-size: 15px; line-height: 1.85; }
.story-metrics { display: flex; gap: 32px; margin-top: 50px; }
.story-metrics div { padding-left: 13px; border-left: 2px solid rgba(59,130,246,.8); }
.story-metrics strong, .story-metrics span { display: block; }
.story-metrics strong { margin-bottom: 5px; font-size: 16px; }
.story-metrics span { color: #8ea6c8; font-size: 11px; }
.story-footer { position: relative; z-index: 2; color: #708ab2; font-size: 11px; }
.story-footer span { display: inline-block; width: 24px; height: 1px; margin-right: 9px; vertical-align: middle; background: #4a6b9b; }
.login-panel { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; }
.login-card { position: static !important; width: min(390px, 100%) !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.login-heading { margin-bottom: 32px; }
.login-heading h2 { margin: 9px 0 8px !important; color: var(--ink) !important; font-size: 28px !important; line-height: 1.3 !important; text-align: left !important; font-weight: 750 !important; letter-spacing: -.02em; }
.login-heading p { color: #8791a3; font-size: 13px; }
.login-card ul { padding: 0 !important; }
.login-card li { position: relative; margin-bottom: 20px !important; }
.login-card .field-label { display: block; margin-bottom: 8px; color: #3f4a60 !important; font-size: 12px; font-weight: 600; }
.login-field { display: block; position: relative; }
.login-field > i { position: absolute !important; z-index: 2; left: 15px !important; top: 14px !important; color: #8d98aa !important; font-size: 18px !important; }
.login-field .layui-input { height: 50px !important; padding-left: 46px !important; border: 1px solid #dce2eb !important; border-radius: 10px !important; background: #fff !important; box-shadow: 0 3px 12px rgba(15,23,42,.03); }
.login-field .layui-input:focus { border-color: var(--primary) !important; box-shadow: 0 0 0 4px rgba(37,99,235,.09) !important; }
.login-submit { margin-bottom: 16px !important; }
.login-submit .layui-btn { height: 50px !important; line-height: 50px !important; border-radius: 10px !important; color: #fff !important; background: linear-gradient(90deg, #2563eb, #1876e9) !important; box-shadow: 0 10px 22px rgba(37,99,235,.24); font-size: 14px; letter-spacing: .06em; }
.login-security { padding-top: 17px; border-top: 1px solid #e7eaf0; color: #99a2b1; font-size: 11px; text-align: center; }
.login-security i { margin-right: 4px; color: #65a180; }
.login-copyright { position: absolute; bottom: 24px; color: #a0a8b5; font-size: 11px; }
.mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 36px; color: var(--ink); font-size: 17px; }

@media (max-width: 980px) {
    .login-container { grid-template-columns: minmax(360px, 1fr) minmax(400px, 1fr); }
    .login-story { padding-left: 6vw; padding-right: 5vw; }
    .story-metrics { gap: 18px; }
    .topbar-context, .tenant-badge { display: none !important; }
}

/* Project order workspace and project price catalog */
.project-order-workspace { min-height: 100%; padding: 18px; background: #f5f8fc; box-sizing: border-box; }
.project-order-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 23px; border-radius: 11px; color: #eef6ff; background: linear-gradient(120deg, #102d60, #23569b); }
.project-order-head > div > span, .schedule-list-head > div > span { color: #8ec6ff; font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.project-order-head h2, .schedule-list-head h2 { margin: 5px 0 4px; color: #fff; font-size: 22px; font-weight: 700; }
.project-order-head p, .schedule-list-head p { margin: 0; color: #b8cbea; font-size: 12px; }
.project-order-total { display: flex; overflow: hidden; border: 1px solid rgba(206,229,255,.22); border-radius: 8px; }
.project-order-total div { min-width: 135px; padding: 10px 15px; background: rgba(0,27,74,.2); }
.project-order-total div + div { border-left: 1px solid rgba(206,229,255,.18); }
.project-order-total small { display: block; margin-bottom: 5px; color: #b7cde8; font-size: 11px; }
.project-order-total strong { color: #fff; font-size: 16px; }
.project-order-search, .project-order-table { margin-top: 13px; border: 1px solid #e5ebf4; border-radius: 10px; background: #fff; box-shadow: 0 3px 13px rgba(31,49,77,.05); }
.project-order-search { padding: 15px 18px 12px; }
.project-order-table { overflow: hidden; }
.project-order-table-title { display: flex; justify-content: space-between; align-items: center; min-height: 57px; padding: 0 18px; border-bottom: 1px solid #e8edf4; }
.project-order-table-title h3 { margin: 0; color: #27364c; font-size: 15px; font-weight: 700; }
.project-order-table-title span { color: #94a3b8; font-size: 12px; }
.project-order-table .layui-table-view { margin: 0; border: 0; }
.project-order-table .layui-table-header th { color: #5a6a82; background: #f8fafc; font-weight: 650; }

/* Project order list: natural page height, adaptive columns and wrapped long content. */
.project-order-table { overflow: visible; }
.project-order-table .layui-table-view,
.project-order-table .layui-table-box,
.project-order-table .layui-table-main,
.project-order-table .layui-table-body { height: auto !important; max-height: none !important; overflow: visible !important; }
.project-order-table .layui-table-header { overflow: visible !important; }
.project-order-table .layui-table-header table,
.project-order-table .layui-table-body table,
.project-order-table .layui-table-total table { width: 100% !important; table-layout: auto; }
.project-order-table .layui-table-header col,
.project-order-table .layui-table-body col,
.project-order-table .layui-table-total col { width: auto !important; }
.project-order-table .layui-table-cell { height: auto; min-height: 30px; padding: 6px 7px; overflow: visible; line-height: 1.45; text-overflow: clip; white-space: normal; word-break: break-word; box-sizing: border-box; }
.project-order-table .layui-table-fixed,
.project-order-table .layui-table-patch,
.project-order-table .layui-table-body::-webkit-scrollbar,
.project-order-table .layui-table-main::-webkit-scrollbar { display: none !important; }
.project-order-table td[data-field="0"], .project-order-table th[data-field="0"] { width: 38px !important; }
.project-order-table td[data-field="no"] { white-space: nowrap; }
.project-order-table td[data-field="toolbar"] .layui-table-cell { display: flex; min-width: 128px; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; }
.project-order-table td[data-field="toolbar"] .layui-btn { margin: 0; padding: 0 7px; }

/* Same-page supplier workspace tabs. */
.supplier-workspace-tabs { grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); }
.supplier-workspace-tabs > button { position: relative; display: flex; min-width: 0; min-height: 76px; align-items: center; gap: 9px; padding: 11px 12px; border: 1px solid #e3e9f2; border-radius: 10px; color: #526178; background: #fbfcfe; font: inherit; text-align: left; cursor: pointer; box-sizing: border-box; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.supplier-workspace-tabs > button:hover { color: #1e5dbd; border-color: #bad2f4; background: #f5f9ff; box-shadow: 0 5px 14px rgba(37,99,235,.08); transform: translateY(-1px); }
.supplier-workspace-tabs > button.is-active { color: #fff; border-color: #2563eb; background: linear-gradient(135deg,#2162d7,#3785ec); box-shadow: 0 7px 18px rgba(37,99,235,.2); }
.supplier-workspace-tabs > button.is-active .project-tab-icon { color: #fff; background: rgba(255,255,255,.18); }
.supplier-workspace-tabs > button > span { min-width: 0; flex: 1; }
.supplier-workspace-tabs > button strong,.supplier-workspace-tabs > button small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.supplier-workspace-tabs > button strong { font-size: 11px; font-weight: 700; }
.supplier-workspace-tabs > button small { margin-top: 5px; color: #98a3b2; font-size: 8px; }
.supplier-workspace-tabs > button.is-active small { color: rgba(255,255,255,.74); }
.supplier-workspace-tabs > button > em { position: absolute; right: 7px; top: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; color: #64748b; background: #edf1f6; font-size: 8px; font-style: normal; line-height: 18px; text-align: center; box-sizing: border-box; }
.supplier-workspace-tabs > button.is-active > em { color: #2463c8; background: #fff; }
.supplier-tab-panel { margin-top: 14px; overflow: hidden; }
.supplier-inline-head { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 16px; padding: 0 17px; border-bottom: 1px solid #e8edf4; }
.supplier-inline-head > div strong,.supplier-inline-head > div span { display: block; }
.supplier-inline-head > div strong { color: #27364c; font-size: 14px; }
.supplier-inline-head > div span { margin-top: 4px; color: #8793a5; font-size: 10px; }
.supplier-record-search { display: flex; align-items: end; flex-wrap: wrap; gap: 9px; padding: 12px 16px 6px; }
.supplier-record-search label { display: grid; gap: 4px; color: #314766; font-size: 12px; font-weight: 600; }
.supplier-record-search input,.supplier-record-search select { box-sizing: border-box; height: 32px; min-width: 125px; padding: 0 9px; border: 1px solid #bfd0e6; border-radius: 5px; color: #183153; background: #fff; font-size: 12px; }
.supplier-record-search input[name="record_device"] { min-width: 170px; }
.supplier-record-search .layui-btn { margin: 0; }
.supplier-record-result { padding: 0 16px 10px; color: #405572; font-size: 12px; }
.supplier-record-result strong { color: #174a9a; }
.supplier-record-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px; color: #405572; font-size: 12px; }
.supplier-record-pagination a { color: #175bc5; font-weight: 700; }
.supplier-inline-table { width: 100%; overflow-x: auto; }
.supplier-inline-table table { width: 100%; border-collapse: collapse; table-layout: auto; }
.supplier-inline-table th,.supplier-inline-table td { padding: 11px 13px; border-right: 1px solid #edf1f6; border-bottom: 1px solid #edf1f6; color: #475569; font-size: 11px; line-height: 1.5; vertical-align: middle; }
.supplier-inline-table th { color: #65738a; background: #f8fafc; font-weight: 700; white-space: nowrap; }
.supplier-inline-table td { background: #fff; }
.supplier-inline-table td strong { color: #1f3659; }
.supplier-inline-table td.money { color: #075ec9; font-weight: 700; white-space: nowrap; }
.supplier-state { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 99px; color: #a16207; background: #fef3c7; font-size: 9px; font-weight: 700; white-space: nowrap; }
.supplier-state.is-on { color: #15803d; background: #dcfce7; }
.supplier-empty-cell { padding: 42px 15px !important; color: #94a3b8 !important; text-align: center; }
.supplier-price-summary { display: grid; grid-template-columns: minmax(280px,1fr) repeat(3,160px); gap: 12px; margin-bottom: 13px; }
.supplier-price-summary > div,.supplier-price-summary > article { min-height: 88px; padding: 15px 17px; border: 1px solid #dfe7f2; border-radius: 11px; background: #fff; box-shadow: 0 4px 14px rgba(15,23,42,.045); box-sizing: border-box; }
.supplier-price-summary span,.supplier-price-summary strong,.supplier-price-summary small { display: block; }
.supplier-price-summary span { color: #768399; font-size: 10px; }
.supplier-price-summary strong { margin-top: 7px; color: #21344f; font-size: 20px; }
.supplier-price-summary > div strong { font-size: 15px; }
.supplier-price-summary small { margin-top: 6px; color: #96a0af; font-size: 9px; }
.supplier-price-summary article { border-top: 3px solid #2563eb; }
.supplier-price-summary article.is-green { border-top-color: #16a34a; }
.supplier-price-summary article.is-slate { border-top-color: #64748b; }
.supplier-price-list { overflow: hidden; }
.supplier-price-search { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid #e8edf4; background: #fbfcfe; }
.supplier-price-search select,.supplier-price-search input { height: 32px; padding: 0 10px; border: 1px solid #dce4ef; border-radius: 6px; color: #46556c; background: #fff; box-sizing: border-box; }
.supplier-price-search select { min-width: 180px; }
.supplier-price-search input { min-width: 260px; }
.supplier-price-actions { display: flex; gap: 4px; white-space: nowrap; }
.supplier-price-actions .layui-btn { margin: 0; }

/* Employee certificate expiry warning. */
.employee-cert-alert { display: flex; width: 100%; min-height: 70px; align-items: center; gap: 13px; margin: 0 0 12px; padding: 12px 16px; border: 1px solid #cfe0f7; border-radius: 11px; color: #30445f; background: linear-gradient(105deg,#f4f8ff,#fff); text-align: left; cursor: pointer; box-sizing: border-box; box-shadow: 0 4px 14px rgba(30,64,175,.05); }
.employee-cert-alert.has-warning { border-color: #fed7aa; background: linear-gradient(105deg,#fff7ed,#fff); }
.employee-cert-alert-icon { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; border-radius: 10px; color: #2563eb; background: #e8f1ff; font-size: 20px; }
.employee-cert-alert.has-warning .employee-cert-alert-icon { color: #c2410c; background: #ffedd5; }
.employee-cert-alert-copy { min-width: 0; flex: 1; }
.employee-cert-alert-copy strong,.employee-cert-alert-copy small { display: block; }
.employee-cert-alert-copy strong { color: #243753; font-size: 14px; }
.employee-cert-alert-copy small { margin-top: 5px; color: #7b8799; font-size: 10px; }
.employee-cert-alert-stats { display: flex; align-items: center; gap: 10px; }
.employee-cert-alert-stats em { padding: 6px 10px; border-radius: 7px; color: #68768a; background: rgba(255,255,255,.8); font-size: 10px; font-style: normal; }
.employee-cert-alert-stats b { margin-left: 4px; color: #dc2626; font-size: 14px; }
.employee-cert-alert-stats > i { color: #9aa7b8; }
.employee-cert-warning-layer { padding: 16px; }
.employee-cert-warning-panel { border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; }
.employee-cert-warning-note { padding: 10px 13px; color: #9a5b13; background: #fff8e8; font-size: 11px; }
.employee-cert-warning-note i { margin-right: 6px; }
.employee-cert-warning-panel table { width: 100%; border-collapse: collapse; }
.employee-cert-warning-panel th,.employee-cert-warning-panel td { padding: 11px 12px; border-bottom: 1px solid #edf1f5; color: #536176; font-size: 11px; text-align: left; }
.employee-cert-warning-panel th { color: #6d798b; background: #f8fafc; font-weight: 700; }
.employee-cert-warning-panel td strong { color: #263b5c; }
.cert-warning-state { display: inline-block; padding: 3px 8px; border-radius: 99px; color: #b45309; background: #fef3c7; font-size: 9px; font-weight: 700; }
.cert-warning-state.is-expired { color: #b91c1c; background: #fee2e2; }
.employee-cert-empty { padding: 45px 15px !important; color: #94a3b8 !important; text-align: center !important; }
.schedule-list-page { padding: 20px; background: #f7f9fc; }
.schedule-list-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 19px 21px; border-radius: 10px; background: linear-gradient(120deg, #112c5b, #1e4f91); }
.schedule-list-head .layui-btn { margin: 0; border-radius: 6px; color: #174a9a; background: #fff; }
.schedule-list-note { margin: 14px 0; padding: 11px 13px; border: 1px solid #d9e8fb; border-radius: 7px; color: #60728d; background: #eff6ff; font-size: 12px; }
.schedule-list-note i { margin-right: 5px; color: #2872d7; }
.schedule-list-table-wrap { overflow-x: auto; border: 1px solid #e3eaf3; border-radius: 8px; background: #fff; }
.schedule-list-table { min-width: 940px; margin: 0; border: 0; }
.schedule-list-table th { color: #5c6e87; background: #f7f9fc; font-size: 12px; font-weight: 650; }
.schedule-list-table td { color: #44536a; font-size: 12px; }
.schedule-list-table td b { color: #1761c8; }
.schedule-list-empty { height: 120px; color: #93a1b4; text-align: center; }
.schedule-list-empty i { margin-right: 5px; }
.schedule-list-footer { padding-top: 14px; text-align: right; }
.schedule-list-footer .layui-btn { margin: 0; border-radius: 6px; }

@media (max-width: 720px) {
    .project-order-workspace { padding: 12px; }
    .project-order-head, .schedule-list-head { align-items: flex-start; flex-direction: column; }
    .project-order-total { width: 100%; }
    .project-order-total div { flex: 1; min-width: 0; }
}

@media (max-width: 767px) {
    .login-container { display: block; overflow-y: auto; }
    .login-panel { min-height: 100vh; box-sizing: border-box; padding: 34px 24px 70px; }
    .login-copyright { bottom: 18px; }
    .app-shell .layui-layout-admin > .layui-side { z-index: 1002; width: 220px; transform: translateX(0); transition: transform .2s ease; }
    .app-shell .layui-layout-admin.layui-layout-left-hide > .layui-side { width: 220px !important; transform: translateX(-100%); }
    .app-shell .layui-layout-admin > .layui-side .layui-logo { width: 220px; }
    .app-shell .layui-layout-admin > .layui-header,
    .app-shell .layui-layout-admin > .layui-body { left: 0; }
    .app-shell .layui-layout-admin.layui-layout-left-mini > .layui-header,
    .app-shell .layui-layout-admin.layui-layout-left-mini > .layui-body { left: 64px; }
    .think-page-body { padding: 14px 12px 24px; }
    .layui-card-body { padding: 14px; }
    .topbar-action span { display: none; }
    .dashboard-welcome { align-items: flex-start; flex-direction: column; gap: 12px; }
    .dashboard-welcome h2 { font-size: 21px; }
    .order-detail-page > .layui-card > .layui-card-body { padding: 12px !important; }
    .order-detail-hero { padding: 20px 16px; }
    .order-detail-heading { flex-direction: column; }
    .order-detail-title-row { align-items: flex-start; flex-direction: column; }
    .order-detail-title-row h1 { font-size: 21px; }
    .order-detail-summary { min-width: 0; width: 100%; grid-template-columns: 1fr 1fr; }
    .order-progress span { font-size: 10px; }
    .order-progress i { width: 25px; height: 25px; }
    .order-progress li:not(:last-child):before { top: 12px; }
    .order-timeline li { grid-template-columns: 92px 14px 1fr; gap: 10px; }
    .order-timeline li:after { left: 108px; }
    .order-timeline time { font-size: 10px; }
    .order-detail-section .layui-card-body { overflow-x: auto; }
    .device-summary-grid { grid-template-columns: repeat(2, minmax(130px, 1fr)); }
}

/* Keep the V3 canvas authoritative over the legacy login background rules above. */
.login-container.login-v3 {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    min-height: 100vh !important;
    height: auto !important;
    background: transparent !important;
    background-image: none !important;
}

/* Login field contrast: override legacy theme and browser autofill colors. */
.login-container.login-v3 form ul li input.layui-input,
.login-container.login-v3 form ul li input.layui-input:hover,
.login-container.login-v3 form ul li input.layui-input:focus,
.login-container.login-v3 form ul li input.layui-input:active {
    color: #172033 !important;
    caret-color: #2563eb !important;
    background-color: #fafdff !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #172033 !important;
    -webkit-opacity: 1 !important;
}
.login-container.login-v3 form ul li input.layui-input:-webkit-autofill,
.login-container.login-v3 form ul li input.layui-input:-webkit-autofill:hover,
.login-container.login-v3 form ul li input.layui-input:-webkit-autofill:focus,
.login-container.login-v3 form ul li input.layui-input:-webkit-autofill:active {
    color: #172033 !important;
    caret-color: #2563eb !important;
    background-color: #fff !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #172033 !important;
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-transition: background-color 0s, color 0s !important;
    transition: background-color 0s, color 0s !important;
}
.login-container.login-v3 form ul li input.layui-input::placeholder {
    color: #98a2b3 !important;
    opacity: 1;
    -webkit-text-fill-color: #98a2b3 !important;
}
.login-container.login-v3 form ul li .password-toggle,
.login-container.login-v3 form ul li .password-toggle:hover,
.login-container.login-v3 form ul li .password-toggle:focus {
    position: absolute !important;
    right: 8px !important;
    top: 8px !important;
    width: 38px !important;
    height: 38px !important;
    padding: 0 !important;
    color: #718096 !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: transparent !important;
    box-shadow: none !important;
}
.login-container.login-v3 form ul li .password-toggle:hover,
.login-container.login-v3 form ul li .password-toggle:focus {
    color: #2563eb !important;
    background: #eff6ff !important;
}

/* Attendance department grouping */
.attendance-dept-badge { display: inline-flex; max-width: 100%; align-items: center; padding: 4px 9px; border-radius: 999px; color: #215dab; background: #eaf3ff; font-size: 11px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-sizing: border-box; }
.attendance-days-badge { display: inline-flex; min-width: 48px; align-items: baseline; justify-content: center; gap: 3px; padding: 3px 8px; border-radius: 999px; color: #187447; background: #e9f8ef; font-size: 10px; font-weight: 600; box-sizing: border-box; }
.attendance-days-badge b { color: #0f6a3d; font-size: 12px; }

/* Personnel output workspace */
.stat-output-page { max-width: 100%; margin: 0 auto; color: #26364d; }
.stat-output-head { display: flex; min-height: 112px; align-items: center; justify-content: space-between; gap: 28px; padding: 19px 24px; border-radius: 12px; color: #fff; background: radial-gradient(circle at 88% 15%,rgba(83,159,255,.34),transparent 28%),linear-gradient(118deg,#10254c,#1d5795); box-shadow: 0 9px 24px rgba(20,53,103,.13); box-sizing: border-box; }
.stat-output-head span { color: #80baff; font-size: 9px; font-weight: 750; letter-spacing: .16em; }
.stat-output-head h2 { margin: 6px 0 4px; color: #fff; font-size: 23px; }
.stat-output-head p { margin: 0; color: #b8cae1; font-size: 11px; }
.stat-output-period { min-width: 160px; text-align: right; }
.stat-output-period strong, .stat-output-period small { display: block; }
.stat-output-period strong { color: #fff; font-size: 24px; }
.stat-output-period small { margin-top: 5px; color: #a9c0dc; font-size: 10px; }
.stat-output-tabs { display: flex; margin: 13px 0; border: 1px solid #dfe7f1; border-radius: 10px; background: #fff; box-shadow: 0 3px 14px rgba(15,23,42,.04); overflow: hidden; }
.stat-output-tabs > a { position: relative; display: flex; min-height: 58px; flex: 1; align-items: center; justify-content: center; gap: 10px; color: #65748a; cursor: pointer; transition: all .16s ease; }
.stat-output-tabs > a + a { border-left: 1px solid #e7ecf3; }
.stat-output-tabs > a:after { content: ''; position: absolute; left: 28%; right: 28%; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: transparent; }
.stat-output-tabs > a:hover, .stat-output-tabs > a.is-active { color: #185fc9; background: #f4f8ff; }
.stat-output-tabs > a.is-active:after { background: #2563eb; }
.stat-output-tabs > a > i { font-size: 20px; }
.stat-output-tabs span, .stat-output-tabs strong, .stat-output-tabs small { display: block; }
.stat-output-tabs strong { font-size: 12px; }
.stat-output-tabs small { margin-top: 3px; color: #9aa6b6; font-size: 9px; font-weight: 400; }
.stat-output-panel { border: 1px solid #dfe7f1; border-radius: 10px; background: #fff; box-shadow: 0 3px 14px rgba(15,23,42,.04); overflow: hidden; }
.stat-output-search { position: relative; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; padding: 14px 16px 8px; border-bottom: 1px solid #e8edf4; }
.stat-output-search .layui-form-item { margin: 0 0 6px; }
.stat-output-actions { display: flex; gap: 7px; }
.stat-output-actions .layui-btn { margin: 0; }
.stat-output-updated { margin: 0 0 6px auto; color: #8a97a9; font-size: 10px; white-space: nowrap; }
.stat-output-updated i { margin-right: 5px; color: #4c82d5; }
.stat-output-table-title { display: flex; min-height: 48px; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid #edf1f6; }
.stat-output-table-title h3 { margin: 0; color: #2d3b51; font-size: 13px; }
.stat-output-table-title span { color: #95a0b0; font-size: 10px; }
.stat-output-panel .layui-table-view { margin: 0; border: 0; }
.stat-output-notes { margin-top: 13px; padding: 15px 18px 14px; border: 1px solid #dce7f4; border-radius: 10px; background: #f7faff; }
.stat-output-notes header { display: flex; align-items: center; gap: 7px; color: #315f9f; font-size: 12px; }
.stat-output-notes header i { color: #3474cf; }
.stat-output-notes ol { margin: 10px 0 0 18px; padding: 0; color: #657389; font-size: 10px; line-height: 1.8; }
.stat-output-notes b { color: #3c4b61; }
@media (max-width: 900px) {
    .stat-output-head { align-items: flex-start; flex-direction: column; }
    .stat-output-period { text-align: left; }
    .stat-output-search { align-items: stretch; flex-direction: column; }
    .stat-output-updated { margin-left: 0; }
}
.layui-table-view tr.attendance-dept-start td { border-top: 2px solid #bad3f6 !important; }
.layui-table-view .layui-table-fixed tr.attendance-dept-start td { border-top-color: #9fc2f2 !important; }
.layui-table-view .layui-table td.ui-cell-empty { background: #eef3f8 !important; box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .08); }
.layui-table-view .layui-table td.ui-cell-empty .layui-table-cell::after { content: '\2014'; display: block; color: #b6c1cf; text-align: center; font-weight: 400; }
.attendance-state-guide { margin: 4px 0 9px; color: #405572; font-size: 12px; line-height: 1.5; }
.layui-table-view .layui-table td.ui-cell-idle { color: #075985; background: #e0f2fe !important; font-weight: 700; }
.layui-table-view .layui-table td.ui-cell-absent { color: #b91c1c; background: #fee2e2 !important; font-weight: 700; box-shadow: inset 0 0 0 1px rgba(220, 38, 38, .22); }
.layui-table-view .layui-table td.ui-cell-rest { color: #475569; background: #f1f5f9 !important; font-weight: 600; }

/* 人员月考勤统计：紧凑网格。
   行高 / 内边距压到最小，31 个日期列铺满容器宽度；
   隐藏表格自身的横向滚动条（未设置固定高度，因此也不会出现表格内部竖向滚动条）。
   选择器统一带 .layui-layout-body .attendance-month-page 前缀，
   权重高于 design-system-v2 的表格换行规则 (0,4,1)。 */
.layui-layout-body .attendance-month-page .layui-table-view { margin: 0; }
.layui-layout-body .attendance-month-page .layui-table-view .layui-table-body { overflow-x: hidden !important; }
.layui-layout-body .attendance-month-page .layui-table-view .layui-table-header .layui-table-cell { height: 26px !important; min-height: 26px !important; padding: 2px !important; font-size: 12px !important; line-height: 22px !important; white-space: nowrap !important; text-align: center; }
.layui-layout-body .attendance-month-page .layui-table-view .layui-table-body td { height: 26px !important; }
.layui-layout-body .attendance-month-page .layui-table-view .layui-table-body td > .layui-table-cell { height: 26px !important; min-height: 26px !important; padding: 1px 2px !important; font-size: 12px !important; line-height: 24px !important; white-space: nowrap !important; text-align: center; }
.layui-layout-body .attendance-month-page .layui-table-view .layui-table-total .layui-table-cell { height: 26px !important; min-height: 26px !important; padding: 1px 2px !important; font-size: 11px !important; line-height: 24px !important; }
.layui-layout-body .attendance-month-page .attendance-state-guide { margin: 2px 0 7px; }
.layui-layout-body .attendance-month-page .attendance-dept-badge { padding: 1px 6px; font-size: 11px; }
.layui-layout-body .attendance-month-page .attendance-days-badge { min-width: 0; padding: 1px 5px; font-size: 10px; }
.layui-layout-body .attendance-month-page .attendance-days-badge b { font-size: 11px; }

/* Project status counters */
.project-status-tabs > li { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.project-status-count { display: inline-flex; min-width: 20px; height: 20px; align-items: center; justify-content: center; padding: 0 6px; border-radius: 999px; color: #64748b; background: #eef2f7; font-size: 10px; font-style: normal; font-weight: 650; line-height: 20px; box-sizing: border-box; }
.project-status-tabs > li.layui-this .project-status-count { color: #fff; background: #2563eb; box-shadow: 0 2px 5px rgba(37, 99, 235, .18); }

/* Compact project list: keep the common desktop view free of nested scrollbars. */
.project-list-table-wrap { min-width: 0; overflow: hidden; }
.project-list-table-wrap + .layui-table-view, .project-list-table-wrap .layui-table-view { margin: 0; border-right: 0; border-left: 0; }
[lay-id="ProjectTable"] .layui-table-body { overflow-x: hidden; }
[lay-id="ProjectTable"] .layui-table-cell { height: auto; min-height: 32px; padding: 7px 9px; line-height: 1.35; box-sizing: border-box; }
[lay-id="ProjectTable"] .layui-table-body td { height: auto; vertical-align: top; }
[lay-id="ProjectTable"] .layui-table-body .layui-table-cell { overflow: visible; white-space: normal; }
[lay-id="ProjectTable"] .layui-table-header .layui-table-cell { min-height: 36px; padding-top: 9px; padding-bottom: 9px; white-space: nowrap; }
.project-cell-main strong, .project-cell-main small, .project-cell-stack span, .project-cell-metrics span, .project-cell-owner strong, .project-cell-owner small { display: block; }
.project-cell-main strong { color: #25344a; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
.project-cell-main small { margin-top: 5px; color: #96a1b1; font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
.project-cell-stack span { color: #495970; font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
.project-cell-stack span + span, .project-cell-metrics span + span { margin-top: 5px; }
.project-cell-stack b, .project-cell-metrics b { display: inline-block; min-width: 29px; margin-right: 6px; color: #8d99aa; font-size: 8px; font-weight: 500; }
.project-cell-money { color: #263750; font-size: 10px; font-weight: 650; white-space: nowrap; }
.project-cell-metrics { color: #46566d; font-size: 9px; line-height: 1.5; white-space: normal; }
.project-cell-metrics span { overflow-wrap: anywhere; }
.project-cell-funds { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
.project-cell-funds span + span { margin-top: 0; }
.project-cell-metrics .is-danger { color: #c2413b; }
.project-cell-owner { text-align: left; }
.project-cell-owner strong { margin-bottom: 5px; color: #344258; font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; word-break: break-word; white-space: normal; }
.project-cell-owner small { margin-top: 5px; color: #96a1b1; font-size: 8px; }
.project-state { display: inline-flex; height: 19px; align-items: center; padding: 0 7px; border-radius: 99px; font-size: 8px; line-height: 19px; }
.project-state-blue { color: #1d5fc7; background: #e5efff; }
.project-state-green { color: #168044; background: #e1f7e9; }
.project-state-amber { color: #a16207; background: #fff3cf; }
.project-state-red { color: #b4232a; background: #fee8e8; }
[lay-id="ProjectTable"] .layui-table-fixed-r .layui-table-cell { display: flex; align-items: center; justify-content: center; gap: 4px; padding-right: 5px; padding-left: 5px; }
[lay-id="ProjectTable"] .layui-table-fixed-r .layui-btn { height: 25px; margin: 0; padding: 0 7px; font-size: 9px; line-height: 25px; }
@media (max-width: 1366px) {
    [lay-id="ProjectTable"] [data-field="contact_info"], [lay-id="ProjectTable"] [data-field="start_date"] { display: none; }
}

/* Order operations workspace */
.order-page-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.order-page-actions .layui-btn { margin: 0; border-radius: 7px; }
.order-workspace { max-width: 100%; margin: 0 auto; }
.order-workspace-head { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding: 23px 25px; border-radius: 12px; color: #eef5ff; background: radial-gradient(circle at 88% 15%, rgba(85,158,255,.38), transparent 27%), linear-gradient(116deg, #0d234b, #173c78); box-shadow: 0 12px 28px rgba(22,56,109,.14); }
.order-eyebrow { display: flex; align-items: center; gap: 7px; color: #8bc6ff; font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.order-workspace-head h2 { margin: 7px 0 5px; color: #fff; font-size: 25px; font-weight: 700; letter-spacing: -.02em; }
.order-workspace-head p { margin: 0; color: #b6cbea; font-size: 13px; }
.order-value-summary { display: grid; grid-template-columns: repeat(2, minmax(135px, 1fr)); min-width: 350px; overflow: hidden; border: 1px solid rgba(179,214,255,.22); border-radius: 10px; background: rgba(8,29,66,.27); }
.order-value-summary > div { padding: 13px 18px; }
.order-value-summary > div + div { border-left: 1px solid rgba(179,214,255,.18); }
.order-value-summary span { display: block; margin-bottom: 7px; color: #a9c2e6; font-size: 11px; }
.order-value-summary strong { color: #fff; font-size: 19px; font-weight: 650; }
.order-value-summary b { font-weight: 650; }
.order-status-panel, .order-search-panel, .order-list-panel { margin-top: 14px; border: 1px solid #e5ebf4; border-radius: 10px; background: #fff; box-shadow: 0 3px 13px rgba(31,49,77,.05); }
.order-status-panel { display: flex; align-items: center; gap: 22px; min-height: 66px; padding: 0 22px; }
.order-status-caption { flex: 0 0 auto; color: #334155; font-size: 13px; font-weight: 700; }
.order-status-tabs { display: flex; flex: 1; gap: 4px; align-items: center; overflow-x: auto; }
.order-status-tabs a { flex: 0 0 auto; padding: 8px 13px; border-radius: 6px; color: #61718a; font-size: 13px; transition: all .16s ease; cursor: pointer; }
.order-status-tabs a { display: inline-flex; align-items: center; gap: 7px; }
.order-status-tabs a em { display: inline-flex; min-width: 20px; height: 20px; align-items: center; justify-content: center; padding: 0 6px; border-radius: 999px; color: #68778d; background: #edf1f6; font-size: 10px; font-style: normal; font-weight: 700; line-height: 20px; box-sizing: border-box; }
.order-status-tabs a:hover { color: #1d65db; background: #f0f6ff; }
.order-status-tabs a.active { color: #1559c9; font-weight: 650; background: #eaf2ff; }
.order-status-tabs a.active em { color: #fff; background: #2563eb; box-shadow: 0 2px 5px rgba(37,99,235,.18); }

/* Monthly rental billing rule */
.monthly-billing-box { padding: 14px 15px 12px; border: 1px solid #cfe0f7; border-radius: 10px; background: linear-gradient(180deg, #f7faff, #f1f6fd); }
.monthly-billing-box > label + label { margin-top: 12px; }
.monthly-billing-help { margin: 10px 0 0; color: #64748b; font-size: 11px; line-height: 1.65; }
.monthly-rule-badge { display: inline-flex; min-height: 24px; align-items: center; padding: 3px 9px; border-radius: 999px; color: #285f9e; background: #eaf3ff; font-size: 10px; font-weight: 650; line-height: 1.4; white-space: nowrap; }
.project-price-editor .fixed-days-editor { grid-column: span 1; }
.order-search-panel { padding: 17px 20px 13px; }
.order-quick-search .order-search-main, .order-more-search { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.order-quick-search .order-field { width: 156px; }
.order-quick-search .order-field-wide { width: 180px; }
.order-quick-search .order-field label { display: block; margin: 0 0 6px 1px; color: #64748b; font-size: 12px; }
.order-quick-search .layui-input, .order-quick-search .layui-select, .order-quick-search .layui-form-select .layui-input { height: 34px; border-color: #dce5f0; border-radius: 6px; font-size: 12px; }
.order-quick-search .layui-form-select dl { border-color: #dce5f0; }
.order-search-actions { display: flex; gap: 7px; padding-bottom: 0; }
.order-search-actions .layui-btn { height: 34px; line-height: 34px; margin: 0; padding: 0 13px; border-radius: 6px; font-size: 12px; }
.order-search-actions .layui-btn-primary { color: #506179; border-color: #dce5f0; }
.order-more-search { margin-top: 15px; padding: 15px 0 2px; border-top: 1px dashed #dce5f0; }
.order-search-utility { display: flex; gap: 8px; padding-top: 13px; }
.order-search-utility .layui-btn { margin: 0; border-radius: 6px; color: #506179; border-color: #dce5f0; }

/* Employee accounting workspace */
.employee-income-page{min-height:100%;padding:16px;background:#f3f6fb;box-sizing:border-box;color:#24334a}.employee-income-hero{position:relative;display:flex;align-items:center;gap:18px;min-height:116px;padding:22px 26px;border-radius:16px;color:#fff;background:radial-gradient(circle at 78% -60%,rgba(55,195,255,.38),transparent 43%),linear-gradient(120deg,#102a58,#174b83 68%,#14717c);box-shadow:0 12px 30px rgba(22,55,100,.13);overflow:hidden;box-sizing:border-box}.employee-income-hero:after{content:'';position:absolute;right:150px;top:-105px;width:220px;height:220px;border:1px solid rgba(255,255,255,.1);border-radius:50%}.employee-avatar{position:relative;z-index:1;display:flex;width:54px;height:54px;align-items:center;justify-content:center;flex:0 0 auto;border:1px solid rgba(255,255,255,.28);border-radius:15px;color:#fff;background:rgba(255,255,255,.12);font-size:25px;font-weight:800}.employee-hero-main{position:relative;z-index:1;min-width:0;flex:1}.employee-eyebrow{color:#6ed7ff;font-size:9px;font-weight:750;letter-spacing:.15em}.employee-hero-main h1{display:flex;align-items:center;gap:10px;margin:7px 0 6px;color:#fff;font-size:23px;font-weight:760}.employee-hero-main h1 em{padding:3px 8px;border-radius:999px;color:#ffd28b;background:rgba(245,158,11,.15);font-size:9px;font-style:normal}.employee-hero-main h1 em.is-active{color:#91f2bf;background:rgba(34,197,94,.14)}.employee-hero-main p{margin:0;color:rgba(225,238,255,.76);font-size:11px}.employee-rule-state{position:relative;z-index:1;min-width:210px;padding-left:24px;border-left:1px solid rgba(255,255,255,.18)}.employee-rule-state span,.employee-rule-state strong,.employee-rule-state small{display:block}.employee-rule-state span{color:#a9c6e9;font-size:9px}.employee-rule-state strong{margin:6px 0 5px;color:#fff;font-size:20px}.employee-rule-state small{color:rgba(229,240,255,.68);font-size:9px}.employee-income-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}.employee-income-kpis article{position:relative;min-height:82px;padding:14px 16px;border:1px solid #e5ebf3;border-radius:12px;background:#fff;box-sizing:border-box}.employee-income-kpis article:before{content:'';position:absolute;left:0;top:14px;width:3px;height:28px;border-radius:0 4px 4px 0;background:#3478e5}.employee-income-kpis article:nth-child(2):before{background:#7c3aed}.employee-income-kpis article:nth-child(3):before{background:#f59e0b}.employee-income-kpis article:nth-child(4):before{background:#16a36a}.employee-income-kpis span,.employee-income-kpis strong,.employee-income-kpis small{display:block}.employee-income-kpis span{color:#758399;font-size:9px}.employee-income-kpis strong{margin:5px 0 3px;color:#1c2c44;font-size:17px}.employee-income-kpis small{color:#a0aaba;font-size:8px}.employee-income-tabs{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px;padding:9px;border:1px solid #e3e9f2;border-radius:13px;background:#fff}.employee-income-tabs a{display:flex;min-height:36px;align-items:center;gap:7px;padding:0 13px;border:1px solid transparent;border-radius:8px;color:#617087;font-size:10px;transition:.16s}.employee-income-tabs a i{width:6px;height:6px;border-radius:50%;background:#bbc5d2}.employee-income-tabs a:hover{color:#1e63d8;background:#f4f8ff}.employee-income-tabs a.active{color:#155fd1;border-color:#cfe0fb;background:#edf4ff;font-weight:700}.employee-income-tabs a.active i{background:#2f73e7;box-shadow:0 0 0 4px rgba(47,115,231,.1)}.employee-income-panel{border:1px solid #e3e9f2;border-radius:14px;background:#fff;box-shadow:0 6px 20px rgba(16,42,76,.045);overflow:hidden}.employee-panel-head{display:flex;min-height:68px;align-items:center;justify-content:space-between;gap:20px;padding:12px 18px;border-bottom:1px solid #e8edf4;box-sizing:border-box}.employee-panel-head h2{margin:0 0 4px;color:#26374f;font-size:15px;font-weight:750}.employee-panel-head p{margin:0;color:#909bac;font-size:9px}.employee-panel-actions,.employee-panel-actions form{display:flex;align-items:center;gap:8px}.employee-panel-actions .layui-input{width:122px;height:32px}.employee-panel-actions .layui-btn{height:32px;line-height:32px;margin:0;border-radius:7px}.employee-profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px}.employee-profile-grid article{padding:16px;border:1px solid #e6ebf2;border-radius:11px;background:#fbfcfe}.employee-profile-grid h3{margin:0 0 13px;color:#34445c;font-size:11px}.employee-profile-grid dl{display:grid;grid-template-columns:86px 1fr;margin:0}.employee-profile-grid dt,.employee-profile-grid dd{min-height:34px;margin:0;padding:8px 0;border-bottom:1px dashed #e8edf3;box-sizing:border-box;font-size:9px}.employee-profile-grid dt{color:#8c98a9}.employee-profile-grid dd{color:#33445b;font-weight:600}.employee-profile-grid .employee-accounting-note{grid-column:1/-1;color:#5f718a;background:linear-gradient(90deg,#f4f8ff,#f7fbff)}.employee-accounting-note p{margin:0;font-size:10px;line-height:1.8}.income-rule-list{display:grid;grid-template-columns:repeat(3,minmax(250px,1fr));gap:12px;padding:16px}.income-rule-card{position:relative;min-height:190px;padding:17px;border:1px solid #e1e8f1;border-radius:12px;background:#fff;box-sizing:border-box;overflow:hidden}.income-rule-card:before{content:'';position:absolute;left:0;top:0;width:100%;height:3px;background:#3b82f6}.income-rule-card.mode-2:before{background:#8b5cf6}.income-rule-card.mode-3:before{background:#0f9f8f}.income-rule-title{display:flex;align-items:center;justify-content:space-between}.income-rule-title span{font-size:13px;font-weight:750}.income-rule-title em{padding:3px 8px;border-radius:999px;color:#8a96a6;background:#edf1f5;font-size:8px;font-style:normal}.income-rule-title em.on{color:#168044;background:#dcfce7}.income-rule-period{margin:8px 0 13px;color:#8995a5;font-size:9px}.income-rule-card>strong{display:block;color:#23364f;font-size:15px}.income-rule-card>p{min-height:32px;margin:7px 0;color:#687991;font-size:9px;line-height:1.7}.income-rule-card>small{display:block;color:#9ca6b4;font-size:8px}.income-rule-card footer{position:absolute;left:17px;right:17px;bottom:13px;display:flex;gap:7px;padding-top:10px;border-top:1px solid #edf1f5}.income-rule-card button,.employee-data-table button{padding:3px 8px;border:1px solid #d8e1ed;border-radius:5px;color:#52657d;background:#fff;font-size:9px;cursor:pointer}.income-rule-card button.danger,.employee-data-table button.danger{color:#dc3545;border-color:#f6cbd0}.employee-empty{display:flex;min-height:180px;align-items:center;justify-content:center;flex-direction:column;gap:7px;grid-column:1/-1;color:#99a5b5}.employee-empty i{font-size:28px}.employee-empty strong{color:#5e6d82;font-size:12px}.employee-empty span{font-size:9px}.employee-device-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:9px;padding:14px 16px 4px}.employee-device-summary article{padding:12px 14px;border:1px solid #e4ebf4;border-radius:9px;background:#f9fbfe}.employee-device-summary span,.employee-device-summary strong,.employee-device-summary small{display:block}.employee-device-summary span{color:#66768c;font-size:9px}.employee-device-summary strong{margin:5px 0;color:#1e5fb9;font-size:14px}.employee-device-summary small{color:#9aa5b4;font-size:8px}.employee-table-wrap{padding:14px 16px;overflow-x:auto}.employee-data-table{width:100%;border-collapse:collapse;table-layout:auto}.employee-data-table th,.employee-data-table td{padding:9px 10px;border-bottom:1px solid #e9eef4;color:#42536a;font-size:9px;line-height:1.55;text-align:left;vertical-align:middle;overflow-wrap:anywhere}.employee-data-table th{color:#718097;background:#f6f8fb;font-weight:700;white-space:nowrap}.employee-data-table tr:hover td{background:#fafcff}.employee-data-table td.num,.employee-data-table th.num{text-align:right;white-space:nowrap}.employee-data-table td b{color:#24364e}.employee-data-table td.deduct,.income-formula-grid strong.deduct{color:#c2410c}.employee-data-table td.empty{padding:36px;text-align:center;color:#9ba6b5}.employee-source-tag,.employee-status{display:inline-flex;padding:3px 7px;border-radius:999px;color:#1e63b4;background:#eaf3ff;font-size:8px}.employee-status{color:#8a5b08;background:#fff1c7}.employee-status.paid{color:#15733e;background:#dcfce7}.employee-status.confirmed{color:#235fc0;background:#e8f1ff}.employee-alert{margin:14px 16px 0;padding:10px 13px;border:1px solid #fed7aa;border-radius:8px;color:#9a4b09;background:#fff7ed;font-size:10px}.income-formula-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;padding:14px 16px}.income-formula-grid article{min-height:84px;padding:12px;border:1px solid #e5ebf3;border-radius:10px;background:#fbfcfe;box-sizing:border-box}.income-formula-grid article.total{color:#fff;border-color:#2767cf;background:linear-gradient(135deg,#1f5ebc,#317dec)}.income-formula-grid span,.income-formula-grid strong,.income-formula-grid small{display:block}.income-formula-grid span{color:#7b899c;font-size:8px}.income-formula-grid strong{margin:7px 0 5px;color:#263a55;font-size:14px}.income-formula-grid small{color:#9aa5b5;font-size:7px;line-height:1.5}.income-formula-grid .total span,.income-formula-grid .total strong,.income-formula-grid .total small{color:#fff}.employee-subtitle{margin:5px 16px 0;padding:12px 0 0;border-top:1px solid #edf1f5;color:#364860;font-size:11px}.employee-inline-summary{display:flex;align-items:baseline;gap:15px;margin:14px 16px 0;padding:13px 15px;border:1px solid #dce8f7;border-radius:9px;background:#f5f9ff}.employee-inline-summary span{color:#607089;font-size:9px}.employee-inline-summary strong{color:#1d5daf;font-size:16px}.employee-inline-summary small{color:#94a0b0;font-size:8px}.attendance-summary-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:15px 16px 0}.attendance-summary-cards article{padding:14px;border:1px solid #e5ebf3;border-radius:9px;text-align:center;background:#f9fbfe}.attendance-summary-cards span,.attendance-summary-cards strong{display:block}.attendance-summary-cards span{color:#8390a2;font-size:9px}.attendance-summary-cards strong{margin-top:5px;color:#25446c;font-size:18px}.employee-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px}.employee-card-grid article{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px;border:1px solid #e4eaf2;border-radius:10px}.employee-card-grid span,.employee-card-grid strong,.employee-card-grid small{display:block}.employee-card-grid span{color:#7e8ba0;font-size:9px}.employee-card-grid strong{margin:6px 0;color:#304159;font-size:12px}.employee-card-grid small{color:#99a4b3;font-size:8px}.employee-card-grid img{width:110px;height:72px;border-radius:6px;object-fit:cover}.rule-partner-fields .layui-form-checkbox{margin:4px 8px 4px 0}.rule-partner-fields .layui-bg-gray{border-radius:7px}
@media(max-width:1100px){.employee-income-kpis{grid-template-columns:repeat(2,1fr)}.income-formula-grid{grid-template-columns:repeat(3,1fr)}.income-rule-list{grid-template-columns:repeat(2,1fr)}.employee-profile-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.employee-income-page{padding:9px}.employee-income-hero{align-items:flex-start;flex-wrap:wrap}.employee-rule-state{width:100%;padding:12px 0 0;border-left:0;border-top:1px solid rgba(255,255,255,.18)}.employee-income-kpis,.employee-profile-grid,.income-rule-list,.employee-card-grid{grid-template-columns:1fr}.income-formula-grid,.attendance-summary-cards{grid-template-columns:repeat(2,1fr)}.employee-panel-head{align-items:flex-start;flex-direction:column}.employee-income-tabs a{padding:0 9px}.employee-table-wrap{padding:10px}}
.order-list-panel { overflow: hidden; }
.order-list-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 63px; padding: 0 20px; border-bottom: 1px solid #e9eef5; }
.order-list-heading h3 { margin: 0 0 4px; color: #26364d; font-size: 15px; font-weight: 700; }
.order-list-heading p, .order-list-tip { margin: 0; color: #94a3b8; font-size: 12px; }
.order-list-tip { white-space: nowrap; }
.order-list-tip i { color: #3b82f6; }
.order-list-panel .layui-table-view { margin: 0; border: 0; }
.order-list-panel .layui-table-header { border-bottom-color: #e8edf4; }
.order-list-panel .layui-table-header th { color: #5a6a82; background: #f8fafc; font-weight: 650; }
.order-list-panel .layui-table td { color: #334155; }

/* Main order list: header/body/total must use one shared column grid. */
.order-list-panel .layui-table-view,
.order-list-panel .layui-table-box,
.order-list-panel .layui-table-main,
.order-list-panel .layui-table-body { height: auto !important; max-height: none !important; overflow: visible !important; }
.order-list-panel .layui-table-header { overflow: visible !important; }
.order-list-panel .layui-table-header table,
.order-list-panel .layui-table-body table,
.order-list-panel .layui-table-total table { width: 100% !important; table-layout: fixed !important; }
/* Layui renders the header, body and total as three tables. The same percentages on
   every colgroup keep them aligned while still fitting the page without a scrollbar. */
.order-list-panel col:nth-child(1) { width: 2% !important; }
.order-list-panel col:nth-child(2) { width: 6.5% !important; }
.order-list-panel col:nth-child(3) { width: 7% !important; }
.order-list-panel col:nth-child(4) { width: 4.5% !important; }
.order-list-panel col:nth-child(5) { width: 6% !important; }
.order-list-panel col:nth-child(6) { width: 5.5% !important; }
.order-list-panel col:nth-child(7) { width: 5% !important; }
.order-list-panel col:nth-child(8) { width: 4.5% !important; }
.order-list-panel col:nth-child(9) { width: 18% !important; }
.order-list-panel col:nth-child(10) { width: 6% !important; }
.order-list-panel col:nth-child(11) { width: 5.5% !important; }
.order-list-panel col:nth-child(12) { width: 4.5% !important; }
.order-list-panel col:nth-child(13) { width: 4.5% !important; }
.order-list-panel col:nth-child(14) { width: 5.5% !important; }
.order-list-panel col:nth-child(15) { width: 4% !important; }
.order-list-panel col:nth-child(16) { width: 11% !important; }
.order-list-panel .layui-table-cell { width: auto !important; height: auto; min-height: 32px; padding: 6px 6px; overflow: visible; line-height: 1.42; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; word-break: break-word; box-sizing: border-box; }
.order-list-panel .layui-table-fixed,
.order-list-panel .layui-table-patch { display: none !important; }
.order-list-panel .layui-table-body::-webkit-scrollbar,
.order-list-panel .layui-table-main::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }
.order-list-panel td[data-field="0"],
.order-list-panel th[data-field="0"] { width: 34px !important; }
.order-list-panel td[data-field="no"] .layui-table-cell,
.order-list-panel td[data-field="contact"] .layui-table-cell,
.order-list-panel td[data-field="start_date"] .layui-table-cell,
.order-list-panel td[data-field="zujin"] .layui-table-cell,
.order-list-panel td[data-field="nv"] .layui-table-cell { white-space: nowrap; }
.order-list-panel td[data-field="toolbar"] .layui-table-cell { display: flex; min-width: 126px; align-items: center; justify-content: center; gap: 3px; white-space: nowrap; }
.order-list-panel td[data-field="toolbar"] .layui-btn { margin: 0; padding: 0 6px; }

@media (max-width: 980px) {
    .order-workspace-head { align-items: flex-start; flex-direction: column; }
    .order-value-summary { min-width: 0; width: 100%; }
    .order-status-panel { align-items: flex-start; flex-direction: column; gap: 6px; padding: 14px 16px; }
    .order-status-tabs { width: 100%; }
    .order-search-panel { padding: 14px; }
}

/* Keep ongoing monthly-rental orders separate from daily spot orders. */
.cockpit-order-type-tabs { display:flex; gap:7px; padding:0 0 10px; }
.cockpit-order-type-tabs button { min-height:34px; padding:6px 12px; border:1px solid #dce5f1; border-radius:8px; color:#60728c; background:#fff; font-size:11px; font-weight:600; cursor:pointer; }
.cockpit-order-type-tabs button:hover { border-color:#9ec2f5; color:#2563eb; }
.cockpit-order-type-tabs button.is-active { border-color:#2563eb; color:#fff; background:#2563eb; box-shadow:0 4px 12px rgba(37,99,235,.16); }
.cockpit-order-type-tabs em { margin-left:4px; padding:2px 5px; border-radius:9px; color:#6b7d94; background:#eef2f7; font-size:9px; font-style:normal; }
.cockpit-order-type-tabs button.is-active em { color:#2563eb; background:#fff; }

/* Project and supplier detail: keep the amount summary directly below the hero and above navigation. */
.project-detail-page { display:flex; flex-direction:column; }
.project-detail-page > * { order:4; }
.project-detail-page > .project-workspace-summary { order:1; margin-bottom:8px; }
.project-detail-page > .project-overview-kpis { order:2; margin-bottom:8px; }
.project-detail-page > .project-workspace-tabs-wrap { order:3; margin-bottom:12px; }
.supplier-detail-page > .supplier-workspace-summary { margin-bottom:8px; }
.supplier-detail-page > .supplier-overview-kpis { margin-bottom:8px; }
.supplier-detail-page > .supplier-tabs-wrap { margin-bottom:12px; }

/* Dense vehicle cost matrix with aligned headers and numeric columns. */
.vehicle-period-picker { display:flex; align-items:center; flex-wrap:wrap; gap:9px; margin:0 0 10px; padding:8px 12px; border:1px solid #dce6f2; border-radius:9px; background:#fff; color:#415572; font-size:11px; }
.vehicle-period-picker label { display:flex; align-items:center; gap:8px; font-weight:650; }
.vehicle-period-picker input,.vehicle-period-picker select { height:30px; padding:3px 8px; border:1px solid #cbd8e9; border-radius:6px; color:#172b48; background:#fff; font-size:11px; }
.vehicle-period-picker button { height:30px; padding:0 14px; border:0; border-radius:6px; color:#fff; background:#2563eb; font-size:11px; font-weight:700; cursor:pointer; }
.vehicle-period-picker > span { margin-left:auto; color:#536783; }
.vehicle-profit-matrix-wrap { width:100%; overflow-x:auto; }
.vehicle-profit-matrix { width:100%; min-width:1200px; border-collapse:separate; border-spacing:0; table-layout:auto; color:#1d3351; font-size:10px; }
.vehicle-profit-matrix th,.vehicle-profit-matrix td { padding:8px 6px; border-right:1px solid #e7edf5; border-bottom:1px solid #e7edf5; white-space:nowrap; text-align:right; }
.vehicle-profit-matrix thead th { position:sticky; top:0; z-index:2; color:#284465; background:#f3f7fd; font-weight:700; }
.vehicle-profit-matrix th:first-child { position:sticky; left:0; z-index:1; min-width:120px; text-align:left; background:#fff; }
.vehicle-profit-matrix thead th:first-child { z-index:3; background:#f3f7fd; }
.vehicle-profit-matrix tfoot th,.vehicle-profit-matrix tfoot td { position:sticky; bottom:0; z-index:2; background:#eaf2ff; font-weight:750; }
.vehicle-profit-matrix tfoot th:first-child { z-index:3; background:#eaf2ff; }
.vehicle-profit-matrix tbody tr:hover td,.vehicle-profit-matrix tbody tr:hover th { background:#f5f9ff; }
.vehicle-profit-matrix a { color:#1756bc; font-weight:700; cursor:pointer; }
.vehicle-profit-matrix small { display:block; margin-top:3px; color:#566b87; font-size:9px; }
.vehicle-profit-matrix .vehicle-total { font-weight:750; }
.vehicle-profit-matrix .is-positive { color:#087443; }
.vehicle-profit-matrix .is-negative { color:#c52626; }
.vehicle-profit-matrix .profit-empty { text-align:center; }

.annual-warning-list { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:10px 14px; border-bottom:1px solid #f0d7a8; color:#8a4500; background:#fff7e8; font-size:11px; }
.annual-warning-list > strong { margin-right:4px; }
.annual-warning-item { padding:4px 8px; border:1px solid #ebc785; border-radius:6px; background:#fff; font-weight:650; }
.annual-warning-item.is-overdue { border-color:#f3b0b0; color:#af2727; background:#fff5f5; }
.annual-due { display:inline-block; padding:4px 7px; border-radius:6px; font-weight:700; }
.annual-due-ok { color:#087442; background:#dcfce7; }
.annual-due-warning { color:#8a4500; background:#ffedc1; }
.annual-due-danger { color:#a62222; background:#fee2e2; }
.annual-due-muted { color:#52647b; background:#e9eef5; }
.device-summary-grid a.device-summary-card { display:block; color:inherit; text-decoration:none; cursor:pointer; }
.device-summary-grid a.device-summary-card:hover { border-color:#e9a23b; box-shadow:0 6px 20px rgba(143,91,18,.13); }
.annual-hero-alert { padding:4px 9px; border:1px solid #f3c678; border-radius:7px; color:#7a3c00; background:#fff4dc; font-size:10px; font-weight:750; cursor:pointer; }

/* Employee attendance: annual filter with a readable month-by-month attendance grid. */
.employee-attendance-year-form { display:flex; align-items:center; gap:8px; }
.employee-attendance-year-form label { color:#344968; font-size:11px; font-weight:700; white-space:nowrap; }
.employee-attendance-year-form select { min-width:108px; height:32px; padding:3px 8px; border:1px solid #b9cbe2; border-radius:7px; color:#172f50; background:#fff; font-size:11px; font-weight:700; }
.employee-attendance-months { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:7px; padding:14px 16px 0; }
.employee-attendance-months a { display:flex; align-items:center; justify-content:space-between; gap:5px; min-height:34px; padding:5px 10px; border:1px solid #cbd9ea; border-radius:7px; color:#294361; background:#f8fbff; text-decoration:none; box-sizing:border-box; }
.employee-attendance-months a:hover { border-color:#4b86df; background:#eef5ff; }
.employee-attendance-months a.is-active { border-color:#225fce; color:#fff; background:#225fce; box-shadow:0 3px 9px rgba(34,95,206,.14); }
.employee-attendance-months strong { font-size:11px; white-space:nowrap; }
.employee-attendance-months small { font-size:9px; white-space:nowrap; }
.employee-attendance-body { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(470px,.95fr); gap:12px; margin:13px 16px 0; }
.employee-attendance-calendar-section,.employee-attendance-year-section { min-width:0; border:1px solid #dce6f3; border-radius:9px; background:#fff; overflow:hidden; }
.employee-attendance-calendar-head { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 12px; border-bottom:1px solid #e1e9f3; color:#284261; }
.employee-attendance-calendar-head strong { font-size:12px; }
.employee-attendance-calendar-head span { display:flex; align-items:center; gap:5px; color:#536783; font-size:9px; }
.employee-attendance-calendar-head i { display:inline-block; width:8px; height:8px; margin-left:7px; border-radius:50%; }
.employee-attendance-calendar-head i.is-work { background:#0e9f6e; }
.employee-attendance-calendar-head i.is-leave { background:#d89a25; }
.employee-attendance-calendar-head i.is-empty { background:#9aaec4; }
.employee-attendance-calendar { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:6px; padding:10px; }
.employee-attendance-day { position:relative; display:flex; flex-direction:column; align-items:flex-start; justify-content:space-between; min-height:46px; padding:6px 7px; border:1px solid #dfe7f1; border-radius:7px; color:#52647d; background:#f6f9fd; box-sizing:border-box; }
.employee-attendance-day span { font-size:9px; }
.employee-attendance-day strong { font-size:12px; line-height:1.1; }
.employee-attendance-day small { position:absolute; right:5px; bottom:5px; font-size:8px; }
.employee-attendance-day.is-work { border-color:#a8e8ce; color:#075d3b; background:#e6f8ef; }
.employee-attendance-day.is-leave { border-color:#f4d794; color:#875006; background:#fff2d4; }
.employee-attendance-day.is-future { color:#687a90; background:#f8fafc; }
.employee-attendance-source { margin:0 10px 10px; color:#405f84; font-size:10px; line-height:1.5; }
.employee-attendance-year-section .employee-subtitle { margin:0 10px; padding:10px 0; border:0; }
.employee-attendance-year-section .employee-table-wrap { padding:0 10px 10px; }
.employee-attendance-summary-table tr.is-current { background:#edf5ff; }
.employee-attendance-summary-table td,.employee-attendance-summary-table th { padding:5px 7px; }
.employee-attendance-summary-table a { color:#175bb9; font-weight:700; }
@media(max-width:1100px){.employee-attendance-body{grid-template-columns:1fr}.employee-attendance-months{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:640px){.employee-attendance-months{grid-template-columns:repeat(3,minmax(0,1fr))}.employee-attendance-months a{flex-direction:column;align-items:flex-start}.employee-attendance-calendar-head{align-items:flex-start;flex-direction:column}}

/* Supplier order overview: keep status, filters and payable figures easy to scan. */
.supplier-order-workspace{min-width:0;padding:8px 10px 18px;box-sizing:border-box}
.supplier-order-head{padding:18px 22px}
.supplier-order-head h2{font-size:22px}
.supplier-order-status-panel{margin-top:11px;min-height:60px;padding:0 17px}
.supplier-order-status-panel .order-status-tabs{flex-wrap:wrap;overflow:visible}
.supplier-order-status-panel .order-status-tabs a{padding:7px 10px}
.supplier-order-search-panel{margin-top:11px;padding:14px 17px 11px}
.supplier-order-filters .order-search-main{gap:9px}
.supplier-order-filters .order-field{width:150px}
.supplier-order-filters .order-field-wide{width:176px}
.supplier-order-filters .order-search-utility{padding-top:10px;border-top:1px solid #edf1f6}
.supplier-order-filters .order-search-utility .layui-btn{height:32px;line-height:30px}
.supplier-order-list-panel{min-width:0;margin-top:11px;border:1px solid #dfe8f3;border-radius:10px;background:#fff;box-shadow:0 3px 13px rgba(31,49,77,.05);overflow:hidden}
.supplier-order-list-panel .order-list-heading{min-height:57px;padding:0 17px}
.supplier-order-list-panel .layui-table-view{margin:0;border:0}
.supplier-order-list-panel .layui-table-header th{color:#334b69;background:#f5f8fd;font-weight:700}
.supplier-order-list-panel .layui-table td{color:#20344f}
.supplier-order-list-panel .layui-table-cell{height:auto;min-height:33px;padding:6px 8px;line-height:1.4;box-sizing:border-box}
.supplier-order-list-panel .layui-table-body{max-height:none!important;overflow-y:visible!important}
.supplier-order-list-panel .layui-table-main{height:auto!important;max-height:none!important}
.supplier-order-list-panel td[data-field="out_price"],.supplier-order-list-panel td[data-field="out_workload"]{background:#f6faff}
.supplier-order-list-panel td[data-field="out_price"]:hover,.supplier-order-list-panel td[data-field="out_workload"]:hover{background:#e9f2ff;cursor:text}
.supplier-order-primary,.supplier-order-list-panel .layui-table-cell small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.supplier-order-primary{color:#203a60;font-size:12px;font-weight:650}
.supplier-order-list-panel .layui-table-cell small{margin-top:3px;color:#526681;font-size:11px}
.supplier-order-clamp{max-width:100%}
.supplier-order-amount{color:#1259b6;font-weight:750}
.supplier-order-state{display:inline-flex;padding:4px 8px;border-radius:99px;font-size:11px;font-weight:700;white-space:nowrap}
.supplier-order-state.slate{color:#42546d;background:#e9eef5}.supplier-order-state.amber{color:#875108;background:#fff0c9}.supplier-order-state.blue{color:#1359b9;background:#e4efff}.supplier-order-state.purple{color:#6638ac;background:#f0e8ff}.supplier-order-state.green{color:#147447;background:#ddf7e9}.supplier-order-state.red{color:#ac3036;background:#ffebed}
.compact-order-table{min-width:0;overflow:hidden}
.compact-order-table .layui-table-view{margin:0;border-radius:8px;overflow:hidden}
.compact-order-table .layui-table-box,.compact-order-table .layui-table-header,.compact-order-table .layui-table-body,.compact-order-table .layui-table-main{height:auto!important;max-height:none!important;overflow:hidden!important}
.compact-order-table .layui-table-header th{background:#f4f7fb;color:#34465f;font-weight:700}
.compact-order-table .layui-table-cell{height:auto;min-height:34px;padding:6px;line-height:1.35;white-space:normal!important;word-break:break-word;overflow-wrap:anywhere;box-sizing:border-box}
.compact-order-table .layui-table-header .layui-table-cell{display:flex;align-items:center;min-height:34px;white-space:normal!important}
.compact-order-table .order-number-combined{display:flex!important;align-items:center;gap:7px;white-space:nowrap!important}
.compact-order-table .order-number-combined>.layui-form-checkbox{flex:0 0 auto;margin:0}
.compact-order-cell strong,.compact-order-cell small{display:block}
.compact-order-cell strong{color:#26364d;font-size:11px;line-height:1.35}
.compact-order-cell small{margin-top:3px;color:#7c899b;font-size:9px;line-height:1.35}
.compact-order-cell .money{color:#075fc4;font-weight:700}
.compact-order-cell .value{color:#137b45;font-weight:700}
.compact-order-cell .subtle{color:#9aa5b3}
.compact-order-cell.payable{padding-left:7px;border-left:3px solid #f59e0b}
.compact-order-cell.payable strong,.compact-order-cell.payable .money{color:#a55208}
.compact-order-cell .compact-order-input,.compact-order-cell .compact-order-select{width:100%;height:26px;margin-top:3px;padding:0 6px;border:1px solid #d4deeb;border-radius:5px;background:#fff;color:#1d4f91;font-size:9px;box-sizing:border-box}
.compact-order-cell .compact-order-select{padding-right:18px}
.compact-order-table td[data-field="toolbar"] .layui-table-cell{display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;gap:3px;white-space:nowrap!important;overflow:visible!important}
.compact-order-table td[data-field="toolbar"] .layui-btn{flex:0 0 auto;margin:0;padding:0 5px;font-size:10px}
.layui-table-view td[data-field="toolbar"] .layui-table-cell,.layui-table-view td[data-field="operate"] .layui-table-cell,.layui-table-view td[data-field="operation"] .layui-table-cell,.layui-table-view td[data-field="action"] .layui-table-cell{display:flex;align-items:center;justify-content:center;flex-wrap:nowrap;gap:3px;white-space:nowrap!important}
.layui-table-view td[data-field="toolbar"] .layui-btn,.layui-table-view td[data-field="operate"] .layui-btn,.layui-table-view td[data-field="operation"] .layui-btn,.layui-table-view td[data-field="action"] .layui-btn{flex:0 0 auto;margin:0;padding:0 5px;font-size:10px}
.layui-table-view .layui-table-header th[data-field="toolbar"],.layui-table-view .layui-table-header th[data-field="operate"],.layui-table-view .layui-table-header th[data-field="operation"],.layui-table-view .layui-table-header th[data-field="action"],.layui-table-view .layui-table-body td[data-field="toolbar"],.layui-table-view .layui-table-body td[data-field="operate"],.layui-table-view .layui-table-body td[data-field="operation"],.layui-table-view .layui-table-body td[data-field="action"]{min-width:148px!important;width:148px!important}
.layui-table-view td[data-field="toolbar"] .layui-btn,.layui-table-view td[data-field="operate"] .layui-btn,.layui-table-view td[data-field="operation"] .layui-btn,.layui-table-view td[data-field="action"] .layui-btn{height:26px;line-height:26px;min-width:0!important}
.compact-order-native{width:100%;table-layout:fixed;border-collapse:collapse}
.compact-order-native th,.compact-order-native td{padding:8px 7px;border:1px solid #e2e8f0;text-align:left;vertical-align:middle;white-space:normal;word-break:break-word;overflow-wrap:anywhere}
.compact-order-native th{color:#34465f;background:#f4f7fb;font-size:10px;font-weight:700}
.compact-order-native td{color:#42536a;font-size:9px;line-height:1.45}
.compact-order-native tbody tr:nth-child(even){background:#f8fafc}
.compact-order-native .compact-order-cell strong{font-size:10px}
.compact-order-native .compact-order-cell small{font-size:8px}
.compact-order-table .layui-table-page{overflow:hidden;white-space:nowrap}
@media(max-width:1400px){.compact-order-table .layui-table-cell{padding:5px 4px;font-size:10px}.compact-order-cell strong{font-size:10px}.compact-order-cell small{font-size:8px}}
.supplier-order-list-panel td[data-field="toolbar"] .layui-table-cell{display:flex;align-items:center;justify-content:center;gap:4px;white-space:nowrap}
.supplier-order-list-panel td[data-field="toolbar"] .layui-btn{margin:0;padding:0 7px}
@media(max-width:1100px){.supplier-order-head{align-items:flex-start;flex-direction:column}.supplier-order-head .order-value-summary{width:100%;min-width:0}.supplier-order-status-panel{align-items:flex-start;flex-direction:column;gap:5px;padding:12px 14px}.supplier-order-status-panel .order-status-tabs{width:100%}.supplier-order-list-panel .order-list-tip{display:none}}
.operations-audit-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:14px 16px 4px}
.operations-audit-summary>div{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border:1px solid #e4eaf2;border-radius:9px;background:#fbfcfe}
.operations-audit-summary span{color:#718096;font-size:10px}.operations-audit-summary strong{color:#334155;font-size:20px}.operations-audit-summary strong.is-warn{color:#b45309}.operations-audit-summary strong.is-ok{color:#15803d}
.operations-audit-table{overflow-x:auto;padding:0 16px}.operations-audit-table .layui-table{min-width:1000px}
.operations-risk{display:inline-flex;align-items:center;justify-content:center;min-width:44px;padding:3px 7px;border-radius:99px;font-size:9px;font-weight:700}.operations-risk.is-danger{color:#b42318;background:#fee4e2}.operations-risk.is-warning{color:#a15c07;background:#fff1cf}
.operations-count{color:#b42318;font-size:12px}.operations-zero{color:#15803d}
.operations-action{display:inline-flex;padding:5px 8px;border:1px solid #b9cff2;border-radius:6px;color:#245fad;background:#f4f8ff;font-size:9px;white-space:nowrap;cursor:pointer}.operations-action:hover{color:#174886;border-color:#8fb1e5}
.data-quality-filter{display:flex;align-items:center;gap:8px;width:100%;margin:0 0 10px;padding:9px 12px;border:1px solid #f2d49d;border-radius:7px;color:#8a5511;background:#fff9eb;box-sizing:border-box}.data-quality-filter a{margin-left:auto;color:#245fad;cursor:pointer}
.filter-memory-actions{display:inline-flex;align-items:center;gap:6px;margin-left:4px;vertical-align:middle}.filter-memory-actions .filter-memory-save{height:32px;line-height:30px;padding:0 11px;color:#31557f;border-color:#bfcfe3;background:#fff}.filter-memory-actions .filter-memory-save:hover{color:#155dc0;border-color:#8eb2e2}.filter-memory-actions .filter-memory-clear{padding:2px 3px;border:0;color:#718096;background:transparent;font-size:10px;cursor:pointer}.filter-memory-actions .filter-memory-clear:hover{color:#c2413a}.form-search.has-filter-memory .filter-memory-save{color:#146c43;border-color:#9ed5ba;background:#eefaf4}.form-search.has-filter-memory .filter-memory-save:after{content:'\00b7 \5df2\4fdd\5b58';margin-left:3px;font-size:9px}@media(max-width:760px){.filter-memory-actions{width:100%;margin:7px 0 0}.filter-memory-actions .filter-memory-save{flex:1}}
.column-preference-actions{display:inline-flex;align-items:center;margin-left:4px;vertical-align:middle}.column-preference-actions .column-preference-open{height:32px;line-height:30px;padding:0 11px;color:#31557f;border-color:#bfcfe3;background:#fff}.column-preference-actions .column-preference-open:hover{color:#155dc0;border-color:#8eb2e2}.column-preference-panel{padding:18px 20px 16px}.column-preference-panel header strong{color:#1d3557;font-size:16px}.column-preference-panel header p{margin:6px 0 14px;color:#74849a;font-size:12px}.column-preference-panel ul{max-height:420px;margin:0;padding:0;border:1px solid #dfe7f1;border-radius:9px;overflow:auto;list-style:none}.column-preference-panel li{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;padding:0 11px;border-bottom:1px solid #edf1f6;background:#fff}.column-preference-panel li:last-child{border-bottom:0}.column-preference-panel li:hover{background:#f7faff}.column-preference-panel label{display:flex;align-items:center;gap:8px;min-width:0;color:#354a66;cursor:pointer}.column-preference-panel label span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.column-order-buttons{display:inline-flex;gap:4px}.column-order-buttons button{width:28px;height:26px;border:1px solid #cdd9e8;border-radius:5px;color:#47617f;background:#fff;cursor:pointer}.column-order-buttons button:hover{color:#155fc0;border-color:#8eb4e5;background:#f0f6ff}.column-preference-panel footer{display:flex;justify-content:flex-end;gap:8px;margin-top:15px}.column-preference-panel footer .layui-btn{margin:0}@media(max-width:760px){.column-preference-actions{width:100%;margin:7px 0 0}.column-preference-actions .column-preference-open{width:100%}}
@media(max-width:760px){.operations-audit-summary{grid-template-columns:1fr}}
.operations-risk.is-ok{color:#15803d;background:#dcfce7}.operations-reconcile-note{margin:10px 16px 16px;padding:10px 12px;border-left:3px solid #3b82f6;color:#53657d;background:#f6f9ff;font-size:10px;line-height:1.7}
.operations-release-gate{border-width:1px 1px 1px 4px}.operations-release-gate.is-ready{border-left-color:#16a34a}.operations-release-gate.is-blocked{border-left-color:#dc2626}.operations-release-summary{display:grid;grid-template-columns:minmax(210px,.7fr) minmax(300px,1.3fr);gap:12px;padding:14px 16px 4px}.operations-release-summary>div{padding:14px 16px;border:1px solid #e5eaf1;border-radius:9px;background:#fbfcfe}.release-decision span,.release-decision strong,.release-decision small{display:block}.release-decision span{color:#718096;font-size:9px}.release-decision strong{margin:5px 0;color:#b42318;font-size:20px}.is-ready .release-decision strong{color:#15803d}.release-decision small{color:#8793a5;font-size:9px}.release-copy b{color:#35455d;font-size:12px}.release-copy p{margin:7px 0 0;color:#7e8b9d;font-size:9px;line-height:1.7}@media(max-width:700px){.operations-release-summary{grid-template-columns:1fr}}
.operations-reconcile-toolbar{display:flex;align-items:center;gap:12px;padding:12px 16px 0}.operations-reconcile-toolbar label{color:#45566f;font-size:10px}.operations-reconcile-toolbar span{color:#8a97a8;font-size:9px}.operations-reconcile-pages{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:0 16px 14px;color:#7e8b9d;font-size:9px}.operations-reconcile-pages a{padding:5px 9px;border:1px solid #d7e1ed;border-radius:6px;color:#2865bd;background:#fff;cursor:pointer}
.acceptance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.acceptance-card>header span{font-size:9px}.acceptance-state{padding:3px 8px;border-radius:99px;color:#8a5b05;background:#fef3c7}.acceptance-state.is-passed{color:#166534;background:#dcfce7}.acceptance-state.is-blocked{color:#b42318;background:#fee4e2}.acceptance-body{padding:14px 16px}.acceptance-body ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none}.acceptance-body li{color:#526174;font-size:10px}.acceptance-body li i{margin-right:5px;color:#3b82f6}.acceptance-body p{margin:12px 0 0;padding:9px;border-radius:6px;color:#6b7280;background:#f8fafc;font-size:9px;line-height:1.6}.acceptance-form{display:grid;grid-template-columns:130px 1fr auto;gap:8px;padding:12px 16px;border-top:1px solid #edf0f4}.acceptance-form .layui-input{height:36px}.acceptance-form .layui-btn{margin:0}@media(max-width:900px){.acceptance-grid{grid-template-columns:1fr}}@media(max-width:600px){.acceptance-body ul{grid-template-columns:1fr}.acceptance-form{grid-template-columns:1fr}}
.operations-monitor-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:14px 16px 4px}.operations-monitor-summary>div{display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border:1px solid #e5eaf1;border-radius:8px;background:#fbfcfe}.operations-monitor-summary span{color:#718096;font-size:10px}.operations-monitor-summary strong{font-size:18px}.operations-monitor-summary .is-ok{color:#15803d}.operations-monitor-summary .is-warn{color:#a16207}.operations-monitor-summary .is-danger{color:#b42318}@media(max-width:600px){.operations-monitor-summary{grid-template-columns:1fr}}
.period-lock-page{max-width:100%;margin:0 auto}.period-lock-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:3px 2px 14px}.period-lock-head h2{margin:5px 0 6px;color:#203049;font-size:25px;font-weight:760}.period-lock-head p{margin:0;color:#7e8b9d;font-size:12px}.period-lock-head>span{padding:8px 10px;border:1px solid #f0d49b;border-radius:7px;color:#895713;background:#fff9eb;font-size:10px;white-space:nowrap}.period-lock-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:14px}.period-lock-card,.period-lock-panel{padding:0;border:1px solid #dfe6ef;border-radius:12px;background:#fff;box-shadow:0 5px 18px rgba(15,23,42,.05);overflow:hidden}.period-lock-card header,.period-lock-panel>header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px 12px;border-bottom:1px solid #eaf0f4;background:#fbfcfe}.period-lock-card header strong,.period-lock-panel>header strong{color:#35455d;font-size:12px}.period-lock-card header em,.period-lock-panel>header span{color:#8a96a7;font-size:9px;font-style:normal}.period-lock-card label{display:block;padding:12px 16px 0}.period-lock-card label>span{display:block;margin-bottom:6px;color:#526277;font-size:10px;font-weight:700}.period-lock-card textarea{min-height:76px}.period-lock-card button{margin:14px 16px 16px}.period-lock-panel{margin-bottom:14px}.period-lock-table{overflow-x:auto;padding:0 14px 10px}.period-lock-table .layui-table{min-width:900px}.period-state{display:inline-flex;padding:3px 8px;border-radius:99px;color:#875108;background:#fff0c9;font-size:9px;font-weight:700}.period-state.is-locked{color:#b42318;background:#fee4e2}.period-lock-empty{padding:30px!important;color:#98a2b0;text-align:center!important}@media(max-width:760px){.period-lock-head{align-items:flex-start;flex-direction:column}.period-lock-head>span{white-space:normal}.period-lock-grid{grid-template-columns:1fr}}
