/* A2 cards: solid surfaces, quiet depth and clear information hierarchy. */
:root{--card-edge:#e3e3e3;--card-shadow:0 3px 5px #2a2a2903,0 12px 32px -18px #2b2b2a38;--card-ink:#2b2b2b;--card-subtle:#f7f7f6}
.card,.stat,.work-card,.route-card,.request-card,.task-summary>div,.schedule-stage{background:#fff;border:1px solid var(--card-edge);border-radius:20px;box-shadow:var(--card-shadow)}
.card{padding:26px}.cardhead{margin-bottom:22px}.cardhead h2{letter-spacing:-.025em;line-height:1.45}.cardhead .avatar{width:44px;height:44px;border-radius:14px}.cardhead .avatar svg{width:22px;height:22px}.card p{line-height:1.65}.card:focus-within,.work-card:focus-within,.route-card:focus-within,.request-card:focus-within{border-color:#92918f}
.stat{padding:24px;position:relative;overflow:hidden}.stat .label{font-size:13px;font-weight:600;line-height:1.5;gap:12px}.stat .label svg{box-sizing:content-box;width:20px;height:20px;padding:10px;border-radius:13px;background:#f1f1f1;flex-shrink:0}.stat strong{font-size:clamp(24px,2.15vw,34px);margin:12px 0 8px;line-height:1.15;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.stat small{display:block;font-size:12px}.stat:after{content:'';height:3px;background:#4f4e4c;position:absolute;left:24px;bottom:0;width:36px;border-radius:4px 4px 0 0}
.badge{display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:650;padding:7px 10px;border-radius:30px;line-height:1.3}.badge:before{content:'';width:5px;height:5px;border-radius:50%;background:currentColor;flex-shrink:0}.badge.ok{color:#3c3c3b;background:#f0f0f0}.badge.warn{color:#4f4e4d;background:#efefee}.progress{height:7px;background:#ededed}.progress span,.progress.green span{background:linear-gradient(90deg,#3b3b3a,#777673)}
.work-card{display:flex;flex-direction:column;isolation:isolate}.work-card .work-cover{height:215px;position:relative}.work-card .cover-empty{background:linear-gradient(135deg,#e7e7e7,#f5f5f5);color:#605f5d}.work-card .cover-empty svg{width:48px;height:48px;padding:10px;box-sizing:content-box;background:#ffffffb3;border:1px solid #fff;border-radius:20px}.work-card-body{display:flex;flex-direction:column;flex:1;padding:24px}.work-card h2{font-size:21px;letter-spacing:-.025em;line-height:1.35;margin-top:20px;overflow-wrap:anywhere}.work-card .projectline{flex-wrap:wrap}.work-card .projectline small{font-weight:600;font-size:12px}.work-card .rowmeta{font-size:12px;margin-top:2px}.work-card-actions{padding-top:20px;margin-top:auto;border-top:1px solid #efefef}.work-card .rowmeta{margin-bottom:22px}.work-card-actions button{min-height:43px;border-radius:11px}
.task-summary>div{padding:22px;position:relative;overflow:hidden}.task-summary strong{font-size:30px;font-variant-numeric:tabular-nums;letter-spacing:-.035em}.task-summary span{font-size:12px;line-height:1.55;max-width:90%}.task-summary>div:before{content:'';display:block;width:22px;height:3px;background:#5a5957;border-radius:3px;margin-bottom:14px}.task-summary>div:nth-child(2):before{background:#7d7b78}.task-summary>div:nth-child(3):before{background:#8e8d8b}
.stage-library{gap:20px}.stage-library .card{position:relative;overflow:hidden;gap:18px;padding:24px;transition:border-color .18s,box-shadow .18s}.stage-library .stage-code{width:48px;height:48px;background:#2b2b2b;color:white;font-size:17px;font-variant-numeric:tabular-nums;border-radius:15px}.stage-library h2{font-size:18px;letter-spacing:-.025em;max-width:95%}.stage-library p{font-size:13px;color:#7a7978;margin-top:-8px}.stage-library button{width:100%;text-align:left;padding:13px 0;border:0;border-top:1px solid #ececeb;border-radius:0;background:none;color:#484746}.stage-library .card:after{content:'';position:absolute;right:24px;top:30px;width:40px;height:28px;background:repeating-linear-gradient(90deg,#e2e2e2 0 3px,transparent 3px 7px);opacity:.6;pointer-events:none}
.schedule-stage{overflow:hidden}.schedule-stage summary{padding:22px 24px;background:#fff;border-bottom:1px solid #ebebea}.schedule-stage summary b{font-size:16px;letter-spacing:-.02em}.schedule-stage summary small{font-size:12px}.stage-percent{font-variant-numeric:tabular-nums;color:#484746}.schedule-task-list{padding:12px;background:#f8f8f7;display:grid;gap:10px}.schedule-task{padding:20px;background:#fff;border:1px solid #e6e6e5;border-radius:13px;gap:20px}.schedule-task h3{font-size:15px}.schedule-task-progress>b{font-size:18px;letter-spacing:-.03em}.schedule-task>button{background:#f1f1f1;color:#3f3f3f;border-color:#e2e2e2;font-size:12px}.schedule-task small{font-size:12px}.schedule-task-progress{min-width:0}
.truck-heading-actions{display:flex;gap:10px;flex-wrap:wrap}.logistics-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0}.logistics-summary>div{display:grid;grid-template-columns:1fr 38px;gap:8px;align-items:center;padding:22px;background:#fff;border:1px solid var(--card-edge);border-radius:18px;box-shadow:var(--card-shadow)}.logistics-summary svg{grid-column:2;grid-row:1/3;width:38px;height:38px;padding:9px;border-radius:12px;background:#f1f1f1;color:#504f4d}.logistics-summary span{grid-column:1;grid-row:1;color:#757473;font-size:12px;font-weight:550;line-height:1.5}.logistics-summary strong{grid-column:1;grid-row:2;font-size:30px;letter-spacing:-.035em;font-variant-numeric:tabular-nums}.logistics-section-heading{display:flex;justify-content:space-between;align-items:center;margin:26px 0 14px;gap:16px}.logistics-section-heading h2{font-size:18px;letter-spacing:-.02em}.logistics-section-heading p{font-size:12px;color:#7e7d7c;margin-top:6px;line-height:1.5}.logistics-section-heading>span{background:#ebebea;color:#3f3f3e;padding:5px 10px;border-radius:10px;font-weight:700}.truck-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.truck-list>.empty{grid-column:1/-1}.route-card{padding:24px;min-width:0}.route-card.on-road{border-left:1px solid var(--card-edge);border-top:3px solid #817f7c}.route-card.delivered{border-top:3px solid #838280}.route-top{align-items:flex-start;gap:12px;flex-wrap:wrap}.route-rank{display:flex;gap:12px;align-items:center}.route-rank>span{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#2b2b2b;color:#fff;font-size:21px;font-weight:650;font-variant-numeric:tabular-nums}.route-rank>span svg{width:24px;height:24px}.route-rank small{font-size:9px;font-weight:700;letter-spacing:.11em;color:#807f7d}.route-rank b{display:block;margin-top:3px;font-size:13px;font-weight:600}.route-path{grid-template-columns:minmax(0,1fr) 48px minmax(0,1fr);gap:12px;margin:24px 0}.route-path h3{font-size:16px;font-weight:650;line-height:1.5;letter-spacing:-.02em}.route-path small{font-size:10px;letter-spacing:.12em}.route-arrow{display:flex;flex-direction:column;align-items:center;color:#7f7e7d;font-size:21px;gap:2px}.route-arrow svg{width:27px;height:27px}.route-cargo{padding:15px 16px;background:#f4f4f4;border:1px solid #eaeaea;border-radius:12px;align-items:center;justify-content:space-between;gap:10px}.route-cargo small{font-size:9px;letter-spacing:.09em;color:#777675;display:block;margin-bottom:5px}.route-cargo strong{font-size:14px;font-weight:650;display:block}.cargo-quantity{padding:6px 9px;background:#fff;border:1px solid #e5e5e4;border-radius:8px;font-size:12px;font-weight:600}.route-facts{display:flex;gap:18px;flex-wrap:wrap;padding:18px 0;color:#706f6e;font-size:12px}.route-facts span{display:flex;align-items:center;gap:6px}.route-facts svg{width:15px;height:15px;flex-shrink:0}.route-actions{border-top:1px solid #ebebeb;padding-top:16px;gap:8px}.route-actions button{font-size:12px;min-height:40px}.route-order{display:flex;gap:5px;margin-left:auto}.route-order button{padding:8px;color:#62615f;background:#f9f9f8}.route-order button:disabled{opacity:.4;cursor:not-allowed}.truck-history{border-top:1px solid #e1e1e1;padding-top:8px}.truck-history summary{font-size:14px;color:#727170;letter-spacing:-.01em}.request-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:22px}.request-card{padding:24px;min-width:0}.request-card>.route-top>small{font-size:11px}.request-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.request-meta small{display:block;font-size:9px;letter-spacing:.1em}.request-meta b{display:block;font-size:13px;margin-top:4px;overflow-wrap:anywhere}.request-card .route-notes{background:#fafafa;font-size:13px;line-height:1.65;color:#656462;margin:16px 0;overflow-wrap:anywhere}.request-decision{border-top:1px solid #eaeaea;padding-top:16px;font-size:13px;line-height:1.65}.request-decision small{display:block;font-size:11px}.request-decision p{margin-top:6px;white-space:pre-wrap}.review-button{width:100%;margin-top:8px;text-align:left}.form-note{margin-top:16px}.logistics-notice{background:#f8f8f7;border:1px solid #cccccb;padding:20px;border-radius:15px;margin:20px 0;line-height:1.6;color:#4d4c4b}.logistics-notice p{font-size:13px;margin:6px 0}.logistics-notice a{font-weight:600;font-size:13px}
@media(hover:hover){.work-card:hover{transform:translateY(-3px);box-shadow:0 15px 30px -16px #3838374d}.stage-library .card:hover{border-color:#a2a1a0;box-shadow:0 12px 30px -18px #3333334d}.schedule-task:hover{border-color:#c0c0bf}.route-card:hover,.request-card:hover{border-color:#c2c1c0}}
@media(max-width:1150px){.truck-list,.request-grid{grid-template-columns:1fr}.logistics-summary{gap:10px}.logistics-summary>div{padding:16px}.stat{padding:18px}}
@media(max-width:650px){.card,.route-card,.request-card{padding:20px;border-radius:17px}.work-card-body{padding:20px}.logistics-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.logistics-summary strong{font-size:26px}.logistics-summary svg{width:32px;height:32px;padding:7px}.logistics-summary>div{grid-template-columns:1fr 32px;padding:15px}.truck-heading-actions{width:100%}.truck-heading-actions button{flex:1}.title:has(.truck-heading-actions){flex-wrap:wrap}.route-rank b{font-size:12px}.route-path{grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr);gap:8px}.route-path h3{font-size:14px}.route-arrow svg{width:24px;height:24px;display:block;margin:auto}.route-order{margin-left:0;width:100%}.route-order button{flex:1}.route-actions>button{flex:1}.stat strong{font-size:24px}.stat .label svg{padding:7px;width:17px;height:17px}.task-summary>div{padding:18px}.task-summary strong{font-size:26px}.stage-library .card{padding:22px}.schedule-stage summary{padding:18px}.schedule-stage summary b{font-size:14px}.schedule-task{padding:16px}.request-meta{gap:12px}.work-card h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){.work-card,.stage-library .card{transition:none}.work-card:hover{transform:none}}
@media print{.card,.stat,.work-card,.route-card,.request-card,.task-summary>div,.schedule-stage{box-shadow:none;border-color:#ccc}.truck-heading-actions,.route-actions,.review-button,.logistics-notice{display:none!important}.truck-list,.request-grid{grid-template-columns:1fr}.route-card,.request-card{break-inside:avoid}.schedule-task-list{background:white}.stat:after{display:none}}
