.weekly{max-width:1500px;margin:auto}.wk-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.wk-eyebrow{font-size:11px;font-weight:700;letter-spacing:1.5px;color:#59738d}.wk-heading h2{margin:6px 0;font-size:27px;color:#103c61}.wk-heading p,.wk-hint{font-size:13px;color:#607489;margin:8px 0 14px}.wk-state{padding:9px 14px;border-radius:20px;background:#fff1d6;color:#855100;font-weight:600;font-size:13px;white-space:nowrap}.wk-published{background:#dff2e8;color:#176541}.wk-toolbar,.wk-actions,.wk-date,.wk-filters{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.wk-toolbar{justify-content:space-between;background:white;padding:14px;border:1px solid #dce5ee;border-radius:12px}.wk-date button{padding:8px 12px;background:#edf3f8;border:0;border-radius:7px;cursor:pointer}.weekly input,.weekly select,.weekly textarea,.wk-form input:not([type=checkbox]),.wk-form select{padding:9px 10px;border:1px solid #cad7e3;border-radius:7px;font:inherit;max-width:100%}.weekly input:focus,.weekly select:focus,.weekly textarea:focus,.wk-form select:focus{outline:2px solid #1976b8;outline-offset:1px}.wk-summary{display:flex;gap:28px;flex-wrap:wrap;margin:18px 0;color:#536a80;font-size:13px}.wk-summary b{font-size:20px;margin-right:4px;color:#163e62}.wk-filters{margin:14px 0}.wk-filters input[type=search]{min-width:250px}.wk-filters label{font-size:13px;color:#52677b}.wk-scroll{overflow:auto;border:1px solid #dce5ee;border-radius:12px;background:white;max-height:68vh}.wk-table{width:100%;border-collapse:separate;border-spacing:0;min-width:1000px;font-size:13px}.wk-table thead th{position:sticky;top:0;z-index:2;background:#eaf1f8;color:#163e62;padding:14px;text-align:center;border-bottom:1px solid #cedbe7}.wk-table thead th:first-child{left:0;z-index:3;text-align:left}.wk-table tbody th{position:sticky;left:0;z-index:1;background:white;text-align:left;min-width:215px;padding:12px 14px;font-weight:600}.wk-table th small{display:block;font-size:11px;color:#718397;font-weight:400;margin-top:5px}.wk-table td,.wk-table tbody th{border-bottom:1px solid #e5ebf2;border-right:1px solid #e5ebf2}.wk-table td{min-width:122px;width:13%;vertical-align:top}.wk-cell{display:block;border:0;background:transparent;text-align:left;width:100%;min-height:68px;padding:13px 10px;color:#183d5f;font:inherit}.wk-cell strong{font-size:14px}.wk-cell small{display:block;font-size:11px;margin-top:5px;line-height:1.4}.wk-cell:is(button){cursor:pointer}.wk-cell:is(button):hover{background:#eaf3fd}.wk-cell:is(button):focus-visible{outline:2px solid #126bc0;outline-offset:-2px}.wk-rest{background:#e8f4df}.wk-rest .wk-cell{color:#356727}.wk-atm{background:#f0f6ff}.wk-empty{color:#bdc9d3}.wk-cover{color:#a35f0b;font-weight:500}.wk-notes{margin-top:18px}.wk-notes textarea{display:block;width:100%;margin-top:9px;background:white}.wk-form{display:grid;gap:14px}.wk-form label:not(.wk-check){display:grid;gap:6px;font-size:13px;font-weight:600}.wk-form .wk-check{display:flex;align-items:flex-start;gap:8px;font-size:13px}.wk-form input[type=checkbox]{margin-top:3px}.wk-form #wk-rest-fields{padding:14px;background:#f0f7eb;border-radius:8px}.wk-form #wk-rest-fields>label{margin-bottom:12px}.wk-message:empty{display:none}.wk-message{padding:12px 14px;border-radius:8px;margin:12px 0;font-size:14px}.wk-error{color:#a62b22;background:#fff0ed}.wk-success{color:#176541;background:#e5f4eb}.wk-form .wk-error:empty{display:none}.wk-form .wk-actions{justify-content:flex-end}@media(max-width:700px){.wk-heading{align-items:flex-start;flex-direction:column;gap:8px}.wk-heading h2{font-size:23px}.wk-toolbar{align-items:stretch}.wk-actions{gap:7px}.wk-scroll{max-height:65vh}.wk-filters input[type=search]{min-width:0;width:100%}}@media print{@page{size:A4 landscape;margin:10mm}.menu-ben,.menu-duoi,.thanh-dau,.wk-no-print,.wk-message,#lop-phu,#menu-them-lop{display:none!important}body,#app,#noi-dung,.weekly{margin:0!important;padding:0!important;max-width:none!important;width:100%!important;background:white!important}.wk-scroll{overflow:visible;max-height:none;border:0}.wk-table{min-width:0;font-size:10px}.wk-table th,.wk-table td{min-width:0!important}.wk-table th{position:static!important}.wk-cell{min-height:0;padding:6px}.wk-cell strong{font-size:11px}.wk-table tbody th{padding:6px}.wk-table tr{break-inside:avoid}.wk-notes textarea{border:0}.wk-heading h2{font-size:20px}.wk-summary{margin:8px 0}.wk-heading{margin-bottom:8px}}
main.noi-dung:has(.weekly){max-width:1600px;min-width:0}
.wk-route-matrix{table-layout:fixed;min-width:1280px;border:1px solid #9ba9b2}.wk-route-matrix caption{background:white;color:#192f43;padding:15px 10px;font-size:19px;font-weight:750;text-align:center;caption-side:top}.wk-route-matrix thead th{background:#f5e76b;color:#202d3a;border-bottom:1px solid #9ba9b2;border-right:1px solid #9ba9b2;padding:12px 5px;text-align:center}.wk-route-matrix thead th small{font-size:13px;font-weight:600;color:#334353}.wk-route-matrix thead th:first-child,.wk-route-matrix tbody th{width:68px;min-width:68px;text-align:center}.wk-route-matrix tbody th{background:#f3f5f7;font-size:17px;vertical-align:middle;padding:7px;border-right:1px solid #9ba9b2;border-bottom:1px solid #9ba9b2}.wk-route-matrix td{width:auto;min-width:0;vertical-align:top;padding:0;border-right:1px solid #9ba9b2;border-bottom:1px solid #9ba9b2}.wk-matrix-role{display:grid;grid-template-columns:25px minmax(0,1fr);gap:5px;min-height:65px;padding:8px 7px;border-bottom:1px dotted #c0cbd4;align-items:start}.wk-role-code{font-size:10px;font-weight:700;color:#6c7882;padding-top:2px}.wk-route-matrix .wk-crew-member strong{font-size:12px;font-weight:650;line-height:1.4;overflow-wrap:anywhere}.wk-route-matrix .wk-crew-member small{font-size:10px;margin-top:3px}.wk-route-matrix .wk-missing{font-size:11px;color:#9b6749}.wk-matrix-footer{display:flex;justify-content:space-between;align-items:center;gap:3px;padding:5px 7px;min-height:27px}.wk-matrix-footer .wk-crew-status{font-size:9px;margin:0}.wk-edit-crew{background:none;border:0;color:#1f618c;font-size:10px;padding:3px;width:auto;cursor:pointer}.wk-edit-crew:hover{text-decoration:underline}.wk-matrix-replacement{background:#eff7e6}.wk-saturday-empty{min-height:195px;display:flex;align-items:center;justify-content:center;color:#94a1ac;font-size:12px}.wk-route-matrix .wk-dual-role{background:none;padding:0;font-size:10px;color:#276b3e}@media print{.wk-route-matrix{min-width:0;table-layout:fixed}.wk-route-matrix caption{font-size:15px;padding:8px}.wk-route-matrix th:first-child{width:40px!important}.wk-route-matrix td{padding:0!important}.wk-route-matrix .wk-crew-member strong{font-size:9px}.wk-route-matrix .wk-crew-member small{font-size:8px}.wk-matrix-role{grid-template-columns:17px minmax(0,1fr);gap:3px;padding:5px 3px;min-height:48px}.wk-role-code{font-size:8px}.wk-matrix-footer{min-height:0;padding:3px}.wk-saturday-empty{min-height:144px}}
.wk-auto{display:flex;justify-content:space-between;align-items:center;gap:16px;background:#e8f2fc;border:1px solid #bad4ed;border-radius:12px;padding:16px;margin-bottom:16px}.wk-auto p{margin:6px 0 0;color:#4d657d;font-size:13px}.weekly .wk-auto button,.weekly .wk-actions button,.weekly .wk-date button{width:auto;flex-shrink:0}.weekly .wk-filters{display:grid;grid-template-columns:minmax(220px,1fr) 240px auto;align-items:center}.weekly .wk-filters input,.weekly .wk-filters select{margin:0}.weekly .wk-filters label{display:flex;gap:8px;align-items:center;margin:0;white-space:nowrap}.weekly input[type=checkbox],.wk-form input[type=checkbox]{width:16px!important;height:16px;padding:0;margin:0;flex:none}.weekly .wk-date label{display:flex;align-items:center;gap:8px;margin:0}.weekly .wk-date input{width:auto;margin:0}.wk-message{white-space:pre-line;max-height:240px;overflow:auto}@media(max-width:900px){.weekly .wk-filters{grid-template-columns:1fr 1fr}.wk-auto{align-items:flex-start;flex-direction:column}.weekly .wk-filters label{grid-column:1/-1}}@media(max-width:550px){.weekly .wk-filters{grid-template-columns:1fr}}
@media print{header.top-bar{display:none!important}}
.wk-view-tabs,.wk-day-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.wk-view-tabs button,.wk-day-tabs button{padding:9px 14px;border:1px solid #cddbe8;border-radius:8px;background:white;color:#365572;cursor:pointer;width:auto}.wk-view-tabs button.active,.wk-day-tabs button.active{background:#174d7c;border-color:#174d7c;color:white}.wk-day-tabs[hidden]{display:none}.weekly .wk-day-tabs select{width:auto;margin:0}.weekly select[hidden]{display:none}.wk-crew-table{min-width:1000px}.wk-crew-table tbody th{min-width:130px;width:14%}.wk-crew-table td{width:24%;padding:13px 15px;vertical-align:middle}.wk-crew-table td:last-child{width:14%;min-width:135px}.wk-crew-member+ .wk-crew-member{border-top:1px dashed #cbd7e2;padding-top:8px;margin-top:8px}.wk-crew-member strong{display:block;font-size:14px}.wk-crew-member small{display:block;font-size:12px;line-height:1.5;margin-top:5px;color:#60788c}.wk-crew-member .wk-duty{color:#154e7f;font-weight:650}.wk-crew-member .wk-dual-role{color:#217449;background:#e5f4e9;border-radius:4px;padding:2px 7px;display:inline-block;font-weight:600}.wk-missing{display:block;color:#ad5423;font-size:12px}.wk-crew-status{display:block;font-size:11px;margin-bottom:8px}.wk-crew-status.ready{color:#217449}.wk-crew-status.missing{color:#ad5423}.wk-form fieldset{border:1px solid #cfdae5;border-radius:8px;padding:12px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.wk-form fieldset legend{font-weight:650;font-size:13px;color:#174d7c}@media(max-width:550px){.wk-form fieldset{grid-template-columns:1fr}}@media print{.wk-crew-table{min-width:0}.wk-crew-table td{padding:7px}.wk-crew-member strong{font-size:11px}.wk-crew-member small{font-size:10px}}

/* Route identity and visible stop addresses */
.wk-route-matrix{min-width:1480px!important}.wk-route-matrix th:first-child{width:260px!important;min-width:260px;text-align:left;vertical-align:top}.wk-route-matrix thead th{background:#eaf1f8;color:#214666;border-color:#d2deea}.wk-route-matrix tr{--route-bg:#f0f7ff;--route-ink:#326caa;--route-line:#bed8ef}.wk-route-matrix .wk-route-color-1{--route-bg:#eef8f5;--route-ink:#277c68;--route-line:#b9dfd3}.wk-route-matrix .wk-route-color-2{--route-bg:#f5f1fc;--route-ink:#7758a4;--route-line:#d7c7eb}.wk-route-matrix .wk-route-color-3{--route-bg:#fff5ec;--route-ink:#a06630;--route-line:#eed4b7}.wk-route-matrix .wk-route-color-4{--route-bg:#eef8fa;--route-ink:#317e8e;--route-line:#b9dfe5}.wk-route-matrix .wk-route-color-5{--route-bg:#fcf0f4;--route-ink:#9c5570;--route-line:#e9c6d3}.wk-route-matrix tbody th{background:var(--route-bg)!important;border-left:5px solid var(--route-ink)!important;padding:12px!important}.wk-route-matrix tbody td{background:color-mix(in srgb,var(--route-bg) 48%,white);border-color:var(--route-line);border-top:3px solid var(--route-line)}.wk-route-matrix tbody th{border-top:3px solid var(--route-line)}.wk-route-badge{display:inline-block;background:var(--route-ink);color:white;border-radius:7px;padding:5px 12px;font-size:15px;font-weight:700}.wk-stop-count{margin-left:10px;font-size:11px;color:#58677a;font-weight:400}.wk-destinations{list-style:none;margin:12px 0 0;padding:0}.wk-destinations li{display:flex;gap:7px;padding:8px 0;border-top:1px solid var(--route-line);font-weight:400}.wk-stop-order{flex-shrink:0;width:20px;height:20px;border-radius:50%;background:white;color:var(--route-ink);text-align:center;line-height:20px;font-size:11px;font-weight:700}.wk-destinations strong{font-size:12px;line-height:1.45;display:block;color:#24394f}.wk-destinations small{display:block!important;margin:3px 0 0!important;font-size:11px!important;font-weight:400;color:#56677b!important;line-height:1.5}.wk-stop-days{font-style:italic}.wk-no-destinations{display:block;margin-top:12px;color:#66778a;font-weight:400}.wk-route-matrix .wk-role-code{color:var(--route-ink);background:white;border:1px solid var(--route-line);border-radius:4px;padding:3px}.wk-route-matrix .wk-matrix-replacement{box-shadow:inset 0 4px #7cbf82}.wk-route-matrix .wk-matrix-role{border-color:var(--route-line)}
@media print{.wk-route-matrix{min-width:0!important}.wk-route-matrix th:first-child{width:22%!important;min-width:0}.wk-route-matrix th,.wk-route-matrix td{print-color-adjust:exact;-webkit-print-color-adjust:exact}.wk-destinations strong{font-size:9px}.wk-destinations small{font-size:8px!important}.wk-destinations li{padding:4px 0}.wk-route-matrix tr{break-inside:avoid}}


/* Staff self-service: phone-first "Lịch của tôi"; managers keep the full matrix. */
.wk-self-note{margin:8px 0 14px;color:#52677b}
@media(max-width:700px){
  .wk-self-scroll{overflow:visible;border:0;max-height:none;background:transparent}
  .wk-self-table{min-width:0;width:100%;border-collapse:separate;border-spacing:0 10px}
  .wk-self-table thead{display:none}
  .wk-self-table tbody,.wk-self-table tr,.wk-self-table th,.wk-self-table td{display:block;width:100%!important;min-width:0!important}
  .wk-self-table tr{background:#fff;border:1px solid #dce5ee;border-radius:12px;overflow:hidden;margin-bottom:12px}
  .wk-self-table tbody th{position:static;padding:12px 14px;background:#eef4fa;border:0}
  .wk-self-table td{border:0;border-top:1px solid #e5ebf2;padding:0}
  .wk-self-table td::before{display:block;padding:8px 12px 0;font-size:11px;font-weight:700;color:#60788c}
  .wk-self-table td:nth-child(2)::before{content:"Thứ Hai"}
  .wk-self-table td:nth-child(3)::before{content:"Thứ Ba"}
  .wk-self-table td:nth-child(4)::before{content:"Thứ Tư"}
  .wk-self-table td:nth-child(5)::before{content:"Thứ Năm"}
  .wk-self-table td:nth-child(6)::before{content:"Thứ Sáu"}
  .wk-self-table td:nth-child(7)::before{content:"Thứ Bảy"}
  .wk-self-table .wk-cell{min-height:0;padding:7px 12px 12px}
  .weekly:not(:has(.wk-route-matrix)) .wk-filters{display:none}
  .weekly:not(:has(.wk-route-matrix)) .wk-summary{gap:14px}
}


/* Manager/dispatcher mobile: keep the full route matrix usable on phones without a 1480px canvas. */
@media(max-width:700px){
  .weekly .wk-scroll:has(.wk-route-matrix){overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%;border:1px solid #dce5ee;border-radius:10px}
  .wk-route-matrix{min-width:980px!important}
  .wk-route-matrix th:first-child{width:190px!important;min-width:190px;position:sticky;left:0;z-index:3}
  .wk-route-matrix thead th:first-child{z-index:5}
  .wk-route-matrix tbody th{padding:8px!important}
  .wk-route-badge{padding:4px 8px;font-size:13px}
  .wk-destinations{margin-top:8px}
  .wk-destinations li{padding:5px 0}
  .wk-destinations strong{font-size:11px}
  .wk-destinations small{font-size:10px!important}
  .wk-route-matrix .wk-cell{min-width:125px}
  .wk-toolbar{align-items:flex-start}
  .wk-actions{width:100%;overflow-x:auto;white-space:nowrap;padding-bottom:4px}
}


/* Personal schedule details on every screen; managers keep their matrix. */
@media all {
  main.noi-dung:has(.wk-mobile-schedule){padding:12px!important;background:#f4f7fb}
  .wk-mobile-schedule{max-width:560px;margin:0 auto;padding-bottom:88px}
  .wk-mobile-title{display:flex;align-items:center;gap:12px;margin:2px 2px 14px}
  .wk-mobile-title>span{display:grid;place-items:center;width:46px;height:46px;border-radius:12px;background:#103c61;color:white;font-weight:800;font-size:13px;letter-spacing:.4px;box-shadow:0 4px 14px rgba(16,60,97,.18)}
  .wk-mobile-title small{display:block;color:#718397;font-size:10px;font-weight:800;letter-spacing:1.4px;margin-bottom:2px}
  .wk-mobile-title h2{margin:0;color:#102f4d;font-size:24px;line-height:1.1}
  .wk-mobile-weeknav{display:grid;grid-template-columns:38px 1fr 38px;align-items:center;gap:8px;background:linear-gradient(135deg,#edf6ff,#f7fbff);border:1px solid #d9e8f5;border-radius:16px;padding:10px;margin-bottom:14px;box-shadow:0 4px 14px rgba(38,77,111,.06)}
  .wk-mobile-weeknav button{width:36px;height:36px;border:0;border-radius:50%;background:white;color:#145ea2;font-size:26px;line-height:1;box-shadow:0 2px 8px rgba(20,94,162,.12)}
  .wk-mobile-weeknav div{text-align:center}
  .wk-mobile-weeknav strong{display:block;color:#154b80;font-size:15px}
  .wk-mobile-weeknav small{display:block;color:#6c8093;font-size:11px;margin-top:2px}
  .wk-mobile-cards{display:grid;gap:11px}
  .wk-mobile-day{background:white;border:1px solid #dbe5ee;border-radius:17px;overflow:hidden;box-shadow:0 4px 14px rgba(35,64,91,.06)}
  .wk-mobile-day.is-today{border-color:#43b96f;box-shadow:0 5px 18px rgba(50,166,92,.12)}
  .wk-mobile-day.is-open.is-today{background:linear-gradient(180deg,#f2fff6 0,#fff 190px)}
  .wk-mobile-day-head{display:grid;grid-template-columns:86px 1fr 24px;gap:10px;align-items:center;width:100%;border:0;background:transparent;padding:14px 12px;text-align:left;color:#183a5a;font:inherit}
  .wk-mobile-date{display:flex;flex-direction:column;gap:2px;padding-right:10px;border-right:1px solid #e5edf4}
  .wk-mobile-date strong{font-size:14px;color:#19344e}
  .wk-mobile-date b{font-size:18px;color:#183b5d}
  .wk-mobile-date em{align-self:flex-start;margin-top:5px;padding:3px 8px;border-radius:999px;background:#1eae5d;color:white;font-size:10px;font-style:normal;font-weight:700}
  .wk-mobile-summary{display:flex;flex-direction:column;min-width:0}
  .wk-mobile-summary>strong{font-size:25px;color:#0e2c58;line-height:1}
  .wk-mobile-summary>b{font-size:14px;color:#116bc2;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .wk-mobile-summary>small{font-size:12px;color:#587087;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .wk-mobile-chevron{font-size:25px;color:#126bc0;text-align:center}
  .wk-mobile-detail{padding:0 13px 15px}
  .wk-mobile-duty+.wk-mobile-duty{border-top:1px solid #e4ebf2;margin-top:16px;padding-top:16px}
  .wk-mobile-route-hero{text-align:center;padding:12px 8px 14px}
  .wk-mobile-route-hero strong{display:block;font-size:48px;line-height:1;color:#0d2c5a;letter-spacing:-1px}
  .wk-mobile-route-hero span{display:block;color:#0869c7;font-size:22px;font-weight:800;margin-top:4px}
  .wk-mobile-person{display:grid;grid-template-columns:42px 1fr auto;gap:10px;align-items:center;background:#f7f9fc;border:1px solid #e7edf3;border-radius:13px;padding:11px 12px;margin-top:8px}
  .wk-mobile-person-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#e7f3ff;font-size:19px}
  .wk-mobile-person small{display:block;color:#687c8e;font-size:11px}
  .wk-mobile-person strong{display:block;color:#18354f;font-size:15px;margin-top:2px}
  .wk-mobile-person em{padding:4px 9px;border-radius:999px;background:#daf6e4;color:#16834a;font-size:11px;font-style:normal;font-weight:700}
  .wk-mobile-stops{margin-top:14px;border:1px solid #e2eaf2;border-radius:14px;padding:13px;background:white}
  .wk-mobile-stops h4{margin:0 0 8px;color:#1b3650;font-size:15px}
  .wk-mobile-pin{color:#ef4e42;font-size:14px}
  .wk-mobile-stops ol{list-style:none;margin:0;padding:0}
  .wk-mobile-stops li{display:grid;grid-template-columns:34px 1fr;gap:10px;padding:9px 0;border-top:1px solid #eef2f6}
  .wk-mobile-stops li:first-child{border-top:0}
  .wk-mobile-stops li>span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#e5f2ff;color:#116cc4;font-weight:800}
  .wk-mobile-stops li strong{display:block;color:#1d3852;font-size:14px;line-height:1.35}
  .wk-mobile-stops li small{display:block;color:#6a7c8d;font-size:12px;margin-top:3px;line-height:1.35}
  .wk-mobile-stops p,.wk-mobile-empty-detail{margin:8px 0;color:#708295;font-size:13px;text-align:center}
  .wk-mobile-rest{padding:18px;border-radius:12px;background:#eef9ea;color:#397229;text-align:center;font-weight:700}
}
@media(min-width:768px){
  main.noi-dung:has(.wk-mobile-schedule){padding:24px!important}
  .wk-mobile-schedule{max-width:1100px;padding-bottom:32px}
  .wk-mobile-cards{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:18px}
  .wk-mobile-weeknav{max-width:560px;margin:0 auto 22px}
  .wk-mobile-title{margin-bottom:22px}
  .wk-mobile-summary>b,.wk-mobile-summary>small{white-space:normal}
}
