.shell {
  transition: grid-template-columns .2s ease;
}

.sidebar {
  overflow: visible;
}

.sidebar .nav {
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
  grid-auto-rows: max-content;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 7px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #6e91ae #0a2946;
}

.sidebar .nav::-webkit-scrollbar {
  width: 7px;
}

.sidebar .nav::-webkit-scrollbar-track {
  border-radius: 10px;
  background: #0a2946;
}

.sidebar .nav::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #6e91ae;
}

.sidebar .sidebar-foot {
  flex: 0 0 auto;
}

.sidebar-toggle {
  position: absolute;
  top: 72px;
  right: -14px;
  z-index: 40;
  width: 28px;
  height: 34px;
  padding: 0;
  border: 2px solid #0a2d4c;
  border-radius: 0 8px 8px 0;
  background: #fff;
  color: #07558f;
  font-size: 20px;
  font-weight: 900;
  line-height: 28px;
  cursor: pointer;
  box-shadow: 0 2px 7px #10243d24;
}

.sidebar-toggle:hover {
  background: #edf7ff;
}

.shell.sidebar-collapsed {
  grid-template-columns: 22px 1fr;
}

.shell.sidebar-collapsed .sidebar {
  padding: 0;
}

.shell.sidebar-collapsed .brand,
.shell.sidebar-collapsed .nav,
.shell.sidebar-collapsed .sidebar-foot {
  display: none;
}

@media (max-width: 1050px) {
  .shell.sidebar-collapsed {
    grid-template-columns: 22px 1fr;
  }
}

@media (max-width: 650px) {
  .sidebar-toggle {
    display: none;
  }

  .sidebar .nav {
    flex: none;
    min-height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 0;
  }
}

.route-generation-status {
  width: 100%;
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.route-generation-status.is-working {
  border: 1px solid #9dc9f5;
  background: #edf6ff;
  color: #155b9f;
}

.route-generation-status.is-error {
  border: 1px solid #efaaaa;
  background: #fff0f0;
  color: #a82626;
}

.route-source-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  width: 100%;
  margin: 14px 0;
}

.route-source-picker label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid #c9dced;
  border-radius: 10px;
  background: #f7fbff;
  cursor: pointer;
}

.route-source-picker input {
  width: 18px;
  height: 18px;
  accent-color: #1269dc;
}

.route-source-picker b,
.route-source-picker small {
  display: block;
}

.route-source-picker small {
  margin-top: 3px;
  color: #71869d;
}

.route-generation-rule {
  width: 100%;
  margin-top: 12px;
  padding: 11px 14px;
  border-left: 4px solid #1269dc;
  background: #eef6ff;
  color: #294e73;
  font-size: 12px;
}

@media (max-width: 650px) {
  .route-source-picker {
    grid-template-columns: 1fr;
  }
}

.route-plan-boxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
}

.route-plan-box {
  min-width: 0;
  padding: 0;
  border: 1px solid #c9d9e8;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.route-plan-box > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #dce6f0;
  background: #f3f8fd;
}

.route-plan-box header label,
.route-plan-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.route-plan-box input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: #1269dc;
}

.route-plan-box b,
.route-plan-box small {
  display: block;
}

.route-plan-box small {
  margin-top: 3px;
  color: #71869d;
  font-size: 11px;
}

.route-plan-list {
  max-height: 260px;
  overflow: auto;
}

.route-plan-row {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid #edf1f5;
  cursor: pointer;
}

.route-plan-row:last-child {
  border-bottom: 0;
}

.route-plan-row > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.route-plan-row > strong,
.route-plan-box header > strong {
  min-width: 28px;
  padding: 4px 8px;
  border-radius: 20px;
  background: #e5efff;
  color: #175eae;
  text-align: center;
  font-size: 11px;
}

.route-plan-check {
  width: 20px;
  height: 20px;
  display: grid !important;
  place-items: center;
  border-radius: 50%;
  background: #dff5eb;
  color: #08724d;
  font-weight: 900;
}

.route-generation-controls {
  width: 100%;
  margin-top: 18px;
}

@media (max-width: 850px) {
  .route-plan-boxes {
    grid-template-columns: 1fr;
  }
}

.shift-roster-page {
  display: grid;
  gap: 18px;
}

.shift-roster-page .card {
  margin-bottom: 0;
}

.shift-roster-search h2 {
  margin-bottom: 14px;
}

.shift-roster-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.shift-roster-filters label,
.shift-schedule-fields > label,
.route-shift-dropdown label {
  display: grid;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  color: #294964;
}

.shift-roster-filters input,
.shift-roster-filters select,
.shift-schedule-fields input,
.shift-schedule-fields select,
.route-shift-dropdown select {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #bfd2e4;
  border-radius: 8px;
  background: #fff;
  color: #163650;
}

.shift-roster-filters label:has(#shiftRosterAck),
.shift-schedule-fields > label:has([name="acknowledgementNo"]) {
  display: none;
}

.shift-roster-create {
  display: flex;
  justify-content: flex-end;
  padding-top: 14px;
}

.route-board-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid #cbdced;
  background: #f4f8fc;
  color: #294964;
  font-size: 12px;
  font-weight: 700;
}

.route-board-pagination > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.route-board-pagination button,
.route-board-pagination select {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid #a9c5df;
  border-radius: 6px;
  background: #fff;
  color: #0d4f91;
  font-weight: 700;
}

.route-board-pagination button:disabled {
  opacity: .45;
}

.shift-roster-employee-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 12px;
  margin: 4px 0 14px;
  padding: 14px;
  border: 1px solid #d9e4ef;
  border-radius: 10px;
  background: #f8fbfe;
}

.shift-roster-employee-filters label {
  display: grid;
  gap: 7px;
  color: #294964;
  font-size: 11px;
  font-weight: 700;
}

.shift-roster-employee-filters input {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid #b9cee1;
  border-radius: 8px;
  background: #fff;
  color: #163650;
}

.shift-roster-select-row.is-scheduled {
  background: #f3f6f9;
  color: #7b8793;
}

.scheduled-label {
  display: block;
  margin-top: 3px;
  color: #4e6f8e;
  font-size: 9px;
  font-weight: 800;
}

.shift-roster-grid th,
.shift-roster-grid td {
  text-align: center;
  white-space: nowrap;
}

.shift-roster-grid th:first-child,
.shift-roster-grid th:nth-child(2),
.shift-roster-grid td:first-child,
.shift-roster-grid td:nth-child(2) {
  text-align: left;
}

.weekly-off {
  color: #a52525;
  font-weight: 700;
}

.shift-schedule-dialog {
  width: min(1050px, 94vw);
  border: 0;
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 24px 70px #0b263f45;
}

.shift-schedule-dialog form {
  padding: 20px;
}

.shift-schedule-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
  padding: 18px 0;
}

.shift-schedule-fields fieldset {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px;
  border: 1px solid #d1deea;
  border-radius: 9px;
}

.shift-schedule-fields fieldset label {
  font-size: 12px;
}

.route-plan-compact .route-plan-box {
  min-height: 170px;
}

.route-shift-dropdown {
  display: grid;
  gap: 8px;
  padding: 18px 16px;
}

.route-shift-dropdown > small {
  color: #71869d;
}

.route-shift-dropdown .route-shift-listbox {
  min-height: 82px;
  padding: 7px 9px;
  overflow-y: auto;
  border: 1px solid #bfd2e4;
  border-radius: 9px;
  background: #fff;
  line-height: 1.7;
}

.route-shift-listbox option {
  padding: 3px 7px;
}

@media (max-width: 1050px) {
  .shift-roster-filters {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 650px) {
  .shift-roster-filters,
  .shift-roster-employee-filters,
  .shift-schedule-fields {
    grid-template-columns: 1fr;
  }
}
.legacy-collapse-bar[aria-expanded="true"]{background:#eaf4ff;color:#064f91}
.legacy-route-search>.unassigned-adhoc{margin:0;border-radius:0;border:1px solid #9dbad6;box-shadow:none}
.legacy-route-search>.unassigned-adhoc .card-head{padding:14px 16px}
.legacy-route-search>.unassigned-adhoc .table-wrap{margin:0 10px 12px}
.legacy-search-submit{display:flex;justify-content:flex-end;align-items:center;gap:10px}
.vendor-allocation-open{min-width:145px}
.vendor-allocation-page{max-width:1180px;margin:0 auto}
.vendor-allocation-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}
.vendor-allocation-page-head h2{margin:0 0 5px;font-size:24px}
.vendor-allocation-filters{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin-bottom:20px}.vendor-allocation-select{display:flex;align-items:center;gap:14px;font-weight:700;margin:0}
.vendor-allocation-select select{min-width:290px}
.vendor-allocation-filters .vendor-allocation-select:last-child select{min-width:180px}
.vendor-allocation-table th{background:#0b789f;color:#fff;text-align:center}
.vendor-allocation-actions{display:flex;gap:10px;margin-top:20px}
.my-desk-page{display:grid;gap:16px}.my-desk-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(135deg,#fff,#eef6ff)}.my-desk-hero h2{margin:2px 0 6px}.my-desk-identity,.my-desk-warning{display:grid;gap:4px;padding:14px 16px;border:1px solid #c9ddf3;border-radius:12px;background:#fff;min-width:300px}.my-desk-identity span,.my-desk-warning{font-size:12px;color:#58718e}.my-desk-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.my-desk-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.my-desk-form label{display:grid;gap:6px;font-size:12px;font-weight:700;color:#38526e}.my-desk-form input,.my-desk-form select{width:100%;min-height:40px;border:1px solid #c6d8ea;border-radius:8px;padding:8px;background:#fff}.my-desk-form select[multiple]{min-height:100px}.my-desk-form .span-2{grid-column:1/-1}.my-desk-form fieldset{border:1px solid #d6e3ef;border-radius:10px;padding:10px}.my-desk-form .inline-check{display:inline-flex;align-items:center;margin-right:14px}.my-desk-form .inline-check input{width:auto;min-height:auto;margin-right:4px}.my-desk-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #e4edf5}.my-desk-row>div{display:grid;gap:3px}.my-desk-row span,.my-desk-row small{color:#68809b}.my-desk-taxi-form input{margin-top:7px;min-height:36px;border:1px solid #c6d8ea;border-radius:7px;padding:7px}@media(max-width:900px){.my-desk-grid{grid-template-columns:1fr}.my-desk-hero{align-items:stretch;flex-direction:column}.my-desk-identity,.my-desk-warning{min-width:0}.my-desk-form{grid-template-columns:1fr}.my-desk-form .span-2{grid-column:auto}}

/* Fresh ETMS clean pinned-navigation theme */
.sidebar {
  border-right: 1px solid #dfe2e6;
  background: #f7f8fa;
  color: #3f4248;
  box-shadow: 5px 0 18px rgba(27, 31, 36, .06);
}

.sidebar .brand small,
.sidebar .nav button,
.sidebar .sidebar-foot {
  color: #4d5056;
}

.sidebar .brand b {
  color: #292c31;
  letter-spacing: .15px;
}

.sidebar .brand-icon {
  background: #e5edf7;
  color: #273b54;
  box-shadow: none;
}

.sidebar .nav button {
  position: relative;
  color: #42454b;
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
}

.sidebar .nav button:hover {
  background: #eceef0;
  color: #202328;
  transform: none;
}

.sidebar .nav button.active {
  background: #e4e6e8;
  color: #24272c;
  box-shadow: none;
}

.sidebar .nav button:focus {
  outline: none;
}

.sidebar .nav button:focus-visible {
  outline: 2px solid #8b949e;
  outline-offset: 2px;
}

.sidebar .sidebar-foot {
  border-color: #d9dde2;
  background: #eef0f2;
  color: #555960;
  box-shadow: none;
}

.sidebar .nav {
  scrollbar-color: #b8bdc3 #eef0f2;
}

.sidebar .nav::-webkit-scrollbar-track {
  background: #eef0f2;
}

.sidebar .nav::-webkit-scrollbar-thumb {
  border: 1px solid #eef0f2;
  background: #b8bdc3;
}

.sidebar-toggle {
  border-color: #d0d4d9;
  background: #ffffff;
  color: #555960;
}

.sidebar-toggle:hover {
  background: #eceef0;
  color: #202328;
}
