:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #18283d;
  background: #f5f7fa;
  font-synthesis: none;
  --blue: #245eea;
  --navy: #142238;
  --muted: #748095;
  --line: #e5eaf0;
  --green: #23836a;
  --amber: #ae6a0b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #90b6ff;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  letter-spacing: -0.9px;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 15px;
  font-weight: 650;
}
p {
  line-height: 1.6;
}
svg.icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.tiny {
  font-size: 12px;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
  color: #748095;
}
.demo-bar {
  height: 30px;
  background: #142238;
  color: #b9c9e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  gap: 9px;
}
.demo-bar b {
  color: white;
  font-weight: 550;
}
.demo-bar span + span:before {
  content: "·";
  margin-right: 9px;
}
.sidebar {
  position: fixed;
  inset: 30px auto 0 0;
  width: 228px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 29px 17px 16px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px 31px;
  font-size: 25px;
  letter-spacing: -1px;
}
.brand img {
  width: 32px;
  height: 32px;
}
.brand strong {
  font-weight: 700;
}
.brand span {
  font-weight: 400;
}
.nav-label {
  color: #8a94a4;
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 650;
  padding: 14px 15px 10px;
}
.nav-link {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  color: #657287;
  font-size: 14px;
  font-weight: 500;
  border-radius: 7px;
  margin: 3px 0;
}
.nav-link:hover {
  background: #f6f8fb;
  color: #18283d;
}
.nav-link.active {
  background: #edf3ff;
  color: #245eea;
}
.nav-link.active .icon {
  stroke-width: 2;
}
.nav-count {
  margin-left: auto;
  background: #e0eaff;
  color: #3764be;
  font-size: 11px;
  border-radius: 5px;
  padding: 2px 6px;
}
.side-bottom {
  margin-top: auto;
}
.side-note {
  margin: 16px 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #8b96a6;
  line-height: 1.7;
}
.workspace {
  margin-left: 228px;
}
.topbar {
  height: 77px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 0 34px;
}
.location-switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 245px;
}
.location-switch .building {
  width: 34px;
  height: 34px;
  background: #f4f6fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #617186;
}
.location-switch label {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  color: #8792a3;
  text-transform: uppercase;
}
.location-switch select {
  font-size: 14px;
  font-weight: 600;
  border: 0;
  background: none;
  color: #24324a;
  width: 200px;
  margin-left: -4px;
  cursor: pointer;
}
.global-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 360px;
  margin-left: auto;
  color: #95a0ae;
  width: 100%;
}
.global-search input {
  border: 0;
  background: none;
  outline: 0;
  width: 100%;
  font-size: 13px;
  color: #22334c;
}
.kbd {
  font-size: 11px;
  border: 1px solid #e4e8ee;
  border-radius: 4px;
  padding: 3px 6px;
  white-space: nowrap;
}
.top-avatar {
  border-left: 1px solid var(--line);
  padding-left: 21px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  white-space: nowrap;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e7edfa;
  color: #536c96;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
}
.top-avatar small {
  display: block;
  font-size: 11px;
  color: #8792a3;
  margin-top: 3px;
}
.mobile-menu {
  display: none;
}
.main {
  padding: 32px 34px 44px;
  max-width: 1660px;
  margin: auto;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}
.page-head p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 7px;
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #dfe5ec;
  border-radius: 7px;
  background: white;
  color: #38465c;
  padding: 10px 15px;
  min-height: 39px;
  font-size: 13px;
  font-weight: 550;
  white-space: nowrap;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.btn:hover {
  background: #f7f9fc;
  border-color: #cbd5e3;
}
.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  box-shadow: 0 2px 3px #245eea14;
}
.btn.primary:hover {
  background: #184ed4;
}
.btn.ghost {
  border-color: transparent;
  background: transparent;
  color: #67778e;
}
.btn.text {
  border: 0;
  padding: 4px 0;
  min-height: 24px;
  background: transparent;
  color: var(--blue);
}
.btn.icon-only {
  padding: 8px;
  min-height: 34px;
}
.btn.danger {
  color: #bb4444;
}
.btn .icon {
  width: 16px;
  height: 16px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 25px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 19px 20px 17px;
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
  color: #778397;
}
.stat-top .icon {
  width: 17px;
  color: #9aa7ba;
}
.stat-value {
  font-size: 32px;
  font-weight: 650;
  letter-spacing: -1px;
  margin: 12px 0 8px;
  line-height: 1;
}
.stat-foot {
  font-size: 12px;
  color: #929bad;
  display: flex;
  gap: 6px;
  align-items: center;
}
.stat-foot b {
  font-weight: 500;
  color: #53759e;
}
.stat-foot.green b {
  color: #208467;
}
.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  overflow: hidden;
  margin-bottom: 22px;
}
.panel-head {
  padding: 21px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.panel-head p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.panel-body {
  padding: 0 22px 22px;
}
.panel-head .count {
  font-size: 11px;
  border-radius: 5px;
  background: #f1f4f8;
  color: #7b8798;
  padding: 3px 7px;
  margin-left: 7px;
}
.section-kicker {
  font-size: 10px;
  color: #8290a3;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  margin-bottom: 12px;
}
.shipment {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 17px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.shipment-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f0f5ff;
  color: #537cc4;
}
.shipment-info {
  flex: 1;
  min-width: 0;
}
.shipment-info h3 {
  font-size: 14px;
  margin-bottom: 6px;
}
.shipment-info p {
  font-size: 12px;
  color: #8490a2;
}
.shipment-bottom {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 7px;
  border-radius: 4px;
  background: #f1f4f8;
  color: #6f7c90;
  white-space: nowrap;
}
.badge.green {
  background: #edf7f2;
  color: #278368;
}
.badge.blue {
  background: #eef3ff;
  color: #4b72c2;
}
.badge.amber {
  background: #fff5e8;
  color: #a37124;
}
.badge.purple {
  background: #f3effd;
  color: #8662b4;
}
.badge.red {
  background: #fff0ef;
  color: #b8615c;
}
.badge .icon {
  width: 12px;
  height: 12px;
}
.status-dot {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: currentColor;
}
.attention {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 0;
  border-top: 1px solid #edf0f5;
}
.attention:first-child {
  border-top: 0;
  padding-top: 0;
}
.attention-icon {
  width: 33px;
  height: 33px;
  background: #fff5e8;
  color: #be8a38;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.attention h3 {
  font-size: 13px;
  font-weight: 550;
}
.attention p {
  font-size: 11px;
  color: #8b96a6;
  margin-top: 3px;
}
.attention > b {
  margin-left: auto;
  font-size: 17px;
  font-weight: 600;
}
.connection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-top: 1px solid #edf0f5;
  font-size: 13px;
}
.connection:first-child {
  border: 0;
}
.connection-name {
  display: flex;
  align-items: center;
  gap: 9px;
}
.connection-mark {
  width: 27px;
  height: 27px;
  border: 1px solid #e9edf3;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
  color: #5874a3;
}
.connection .small {
  font-size: 11px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: 10px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  font-weight: 600;
  color: #8d97a6;
  background: #fafbfd;
  border-block: 1px solid #edf0f4;
  padding: 12px 20px;
}
td {
  padding: 15px 20px;
  font-size: 13px;
  border-bottom: 1px solid #eef1f5;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fbfcfe;
}
.vehicle-name {
  display: flex;
  align-items: center;
  gap: 12px;
}
.vehicle-icon {
  height: 35px;
  width: 44px;
  background: #f3f6fa;
  border-radius: 6px;
  color: #8b9cb4;
  display: grid;
  place-items: center;
}
.vehicle-name strong {
  font-size: 13px;
  font-weight: 600;
  display: block;
}
.vehicle-name small {
  font-size: 11px;
  color: #8a96a8;
  display: block;
  margin-top: 4px;
}
.stock-button {
  color: #466998;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 12px;
  padding: 0;
  text-decoration: none;
  cursor: pointer;
}
.stock-button:hover {
  text-decoration: underline;
}
.row-action {
  border: 0;
  background: transparent;
  color: #8f9daf;
  display: grid;
  place-items: center;
  border-radius: 5px;
  padding: 5px;
}
.row-action:hover {
  background: #edf3ff;
  color: #245eea;
}
.table-footer {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #919bad;
  font-size: 11px;
  border-top: 1px solid var(--line);
}
.activity-row {
  display: flex;
  gap: 13px;
  padding: 14px 0;
  border-top: 1px solid #eef1f5;
}
.activity-row:first-child {
  border-top: 0;
}
.activity-row .icon {
  width: 16px;
  color: #638cc7;
  margin-top: 2px;
}
.activity-row strong {
  font-size: 12px;
  font-weight: 550;
}
.activity-row p {
  font-size: 11px;
  color: #8a96a7;
  margin-top: 4px;
}
.activity-row time {
  margin-left: auto;
  white-space: nowrap;
  font-size: 10px;
  color: #9aa5b3;
}
.quick-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid #eef1f5;
  font-size: 13px;
}
.quick-link:first-child {
  border: 0;
}
.quick-link > .icon:last-child {
  margin-left: auto;
  color: #a4afbd;
  width: 14px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #dfe5ed;
  border-radius: 7px;
  background: white;
  padding: 0 12px;
  color: #90a0b4;
  min-width: 240px;
  flex: 1;
  max-width: 400px;
}
.search-field input {
  border: 0;
  background: transparent;
  width: 100%;
  padding: 12px 0;
  outline: 0;
  font-size: 13px;
}
.field-control,
select.input {
  border: 1px solid #dfe5ed;
  border-radius: 7px;
  padding: 10px 12px;
  background: white;
  color: #45536a;
  font-size: 13px;
}
.tabs {
  display: flex;
  border-bottom: 1px solid #dfe5ed;
  margin-bottom: 23px;
  gap: 27px;
}
.tab {
  border: 0;
  background: none;
  padding: 0 0 13px;
  color: #8792a3;
  font-size: 13px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tab.active {
  color: #245eea;
  border-bottom-color: #245eea;
  font-weight: 600;
}
.note {
  padding: 14px 17px;
  border-radius: 7px;
  background: #edf3ff;
  color: #5a739a;
  font-size: 13px;
  line-height: 1.6;
  display: flex;
  gap: 11px;
  margin-bottom: 20px;
}
.note .icon {
  margin-top: 2px;
}
.note.amber {
  background: #fff7e9;
  color: #9e7a3c;
}
.empty {
  padding: 45px 22px;
  text-align: center;
  color: #8190a6;
}
.empty > .icon {
  height: 32px;
  width: 32px;
  margin-bottom: 13px;
  color: #b2bfd1;
}
.empty h3 {
  font-size: 15px;
  color: #4c5d75;
  margin-bottom: 7px;
}
.empty p {
  font-size: 13px;
}
.empty .btn {
  margin-top: 16px;
}
.check {
  accent-color: #245eea;
  width: 16px;
  height: 16px;
}
.print-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 22px;
}
.print-options {
  display: grid;
  gap: 12px;
}
.option {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 13px;
  font-size: 13px;
  cursor: pointer;
}
.option input {
  accent-color: var(--blue);
}
.option small {
  display: block;
  font-size: 11px;
  color: #8995a7;
  margin-top: 3px;
}
.selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #edf3ff;
  padding: 14px 18px;
  border-radius: 7px;
  margin-bottom: 18px;
  color: #426499;
  font-size: 13px;
}
.label-preview {
  background: #f5f7fa;
  padding: 22px;
  border: 1px dashed #dbe2ec;
  border-radius: 8px;
}
.physical-label {
  border: 1px solid #d9dfe7;
  border-radius: 5px;
  background: #fff;
  padding: 17px;
  text-align: center;
  box-shadow: 0 3px 6px #18324d08;
  color: #142238;
}
.physical-label strong {
  display: block;
  font-size: 15px;
}
.physical-label p {
  font-size: 12px;
  margin: 7px 0;
}
.qr-placeholder {
  margin: 13px auto;
  width: 70px;
  height: 70px;
  background: repeating-conic-gradient(#23354d 0% 25%, white 0% 50%) 50% / 14px
    14px;
  border: 6px solid white;
  outline: 1px solid #e0e5ee;
}
.physical-label small {
  font-size: 10px;
  color: #8290a4;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 17px;
  font-size: 13px;
  color: #516077;
}
.field > span,
.field > label {
  font-weight: 550;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #dbe2ec;
  border-radius: 6px;
  padding: 11px 12px;
  color: #273b55;
  background: white;
  font-size: 14px;
}
.field small {
  font-size: 11px;
  line-height: 1.5;
  color: #909aab;
}
.field textarea {
  resize: vertical;
  min-height: 95px;
  line-height: 1.6;
}
.field.full {
  grid-column: 1/-1;
}
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.setting-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 15px 0;
  border-bottom: 1px solid #edf1f6;
  font-size: 13px;
}
.setting-line:last-child {
  border-bottom: 0;
}
.setting-line p {
  font-size: 12px;
  color: #909bae;
  margin-top: 4px;
}
.switch {
  appearance: none;
  display: inline-block;
  width: 36px !important;
  height: 21px;
  border-radius: 11px !important;
  background: #d6dce6 !important;
  border: 0 !important;
  position: relative;
  cursor: pointer;
  padding: 0 !important;
  flex-shrink: 0;
}
.switch:before {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: white;
  top: 3px;
  left: 3px;
  transition: transform 0.15s;
}
.switch:checked {
  background: #245eea !important;
}
.switch:checked:before {
  transform: translateX(15px);
}
.colour-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--swatch);
  border: 1px solid #00000015;
  display: inline-block;
}
.supply-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 0;
  border-bottom: 1px solid #edf1f6;
  font-size: 14px;
}
.supply-row .quantity {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8694a8;
  font-size: 11px;
}
.quantity input {
  width: 70px;
  padding: 9px;
  border: 1px solid #dce3ed;
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
}
.request-summary {
  background: #f8faff;
  border: 1px solid #e3eaf6;
  padding: 17px;
  border-radius: 7px;
  line-height: 1.8;
  font-size: 13px;
}
.lot-map {
  position: relative;
  min-height: 420px;
  background: #f0f3f5;
  overflow: hidden;
  border-radius: 8px;
  padding: 43px 24px 24px;
  border: 1px solid #e3e8ed;
}
.map-road {
  margin: 18px -24px;
  padding: 14px 24px;
  border-block: 1px dashed #cbd4df;
  color: #a3adba;
  text-align: center;
  font-size: 9px;
  letter-spacing: 4px;
  background: #e7ecf1;
}
.lot-zone {
  display: grid;
  grid-template-columns: 20px repeat(8, 1fr);
  gap: 7px;
  align-items: center;
  margin: 0 10px;
}
.lot-zone > span {
  font-size: 11px;
  font-weight: 700;
  color: #a0acba;
}
.bay {
  min-height: 60px;
  border: 1px solid #d4dde6;
  border-radius: 5px;
  background: #ffffff7a;
  color: #bcc5d1;
  font-size: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px;
}
.bay.occupied {
  background: #fff;
  border-color: #b6cee8;
  color: #567da5;
  box-shadow: 0 2px 2px #1c3e6905;
  cursor: pointer;
}
.bay.occupied.blocked {
  background: #fff9e9;
  border-color: #e1cca7;
  color: #ad833d;
}
.bay .icon {
  width: 23px;
  height: 23px;
}
.map-key {
  position: absolute;
  right: 17px;
  top: 14px;
  color: #8594a8;
  font-size: 10px;
}
.map-building {
  text-align: center;
  margin: 20px auto 0;
  background: #e0e6ed;
  width: 65%;
  border-radius: 7px;
  padding: 20px;
  font-size: 11px;
  letter-spacing: 2px;
  color: #95a2b4;
}
.park-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 22px;
}
.park-list {
  max-height: 385px;
  overflow: auto;
}
.park-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 13px 0;
  font-size: 12px;
  gap: 8px;
}
.park-item strong {
  font-weight: 600;
}
.park-item small {
  display: block;
  color: #8896a8;
  margin-top: 5px;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 5px;
  padding: 7px 10px;
  background: #f3f6fa;
  font-size: 12px;
  color: #63748c;
}
.client-card {
  padding: 22px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  text-align: left;
  color: inherit;
  width: 100%;
  cursor: pointer;
}
.client-card:hover {
  border-color: #afc5ee;
}
.client-card h2 {
  margin-bottom: 7px;
}
.client-card p {
  font-size: 12px;
  color: #8795a7;
  margin-bottom: 20px;
}
.client-card .chips {
  margin-bottom: 18px;
}
.client-count {
  font-size: 12px;
  color: #8a98ab;
  border-top: 1px solid var(--line);
  padding-top: 17px;
  display: flex;
  justify-content: space-between;
}
.admin-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  background: #eaf0fb;
  color: #4b638c;
  border-radius: 9px;
  font-size: 13px;
  margin-bottom: 24px;
}
.overlay {
  position: fixed;
  inset: 0;
  background: #11233c60;
  z-index: 80;
  display: flex;
  justify-content: flex-end;
  backdrop-filter: blur(2px);
}
.drawer {
  width: min(590px, 100%);
  height: 100%;
  overflow: auto;
  background: white;
  box-shadow: -12px 0 40px #14223815;
  display: flex;
  flex-direction: column;
  animation: slide-in 0.18s ease-out;
}
.drawer-head {
  padding: 27px 28px 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
}
.drawer-head h2 {
  font-size: 21px;
  letter-spacing: -0.5px;
}
.drawer-head p {
  font-size: 12px;
  color: #8390a4;
  margin-top: 7px;
}
.drawer-body {
  padding: 25px 28px;
  flex: 1;
}
.drawer-footer {
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  position: sticky;
  bottom: 0;
  background: #fff;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 24px 0;
}
.detail-grid dt {
  color: #8b98aa;
  font-size: 11px;
  margin-bottom: 7px;
}
.detail-grid dd {
  margin: 0;
  font-size: 13px;
  color: #364c69;
}
.vehicle-hero {
  padding: 25px;
  background: #f5f8fd;
  display: flex;
  align-items: center;
  gap: 19px;
  border-radius: 9px;
}
.vehicle-hero > .icon {
  width: 64px;
  height: 64px;
  color: #91a8c6;
}
.vehicle-hero h3 {
  font-size: 20px;
  letter-spacing: -0.5px;
}
.vehicle-hero p {
  font-size: 13px;
  color: #8898ad;
  margin-top: 4px;
}
.modal {
  margin: auto;
  max-height: 90vh;
  width: min(620px, 95vw);
  border-radius: 12px;
  overflow: auto;
  background: #fff;
}
.modal .drawer-head {
  position: static;
}
.modal .drawer-body {
  padding: 23px 28px;
}
.modal .drawer-footer {
  position: static;
}
.message {
  padding: 13px 16px;
  border-radius: 9px;
  background: #f0f4fa;
  max-width: 90%;
  margin-bottom: 15px;
  font-size: 13px;
  line-height: 1.6;
}
.message.out {
  background: #eaf1ff;
  margin-left: auto;
}
.message small {
  font-size: 10px;
  color: #8b98ac;
  display: block;
  margin-bottom: 5px;
}
.email-preview {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.7;
  color: #556880;
  background: #f7f9fc;
  padding: 18px;
  border-radius: 8px;
  overflow: auto;
}
#toast {
  position: fixed;
  bottom: 26px;
  left: calc(50% + 114px);
  transform: translateX(-50%) translateY(15px);
  background: #172941;
  color: #fff;
  border-radius: 9px;
  padding: 13px 20px;
  font-size: 13px;
  box-shadow: 0 5px 20px #17294125;
  z-index: 110;
  opacity: 0;
  transition: all 0.15s;
  pointer-events: none;
  max-width: 80vw;
  line-height: 1.5;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.error-inline {
  color: #b44f4f;
  font-size: 13px;
  padding: 10px 0;
  line-height: 1.5;
}
.skip {
  position: fixed;
  top: -100px;
  left: 12px;
  background: #fff;
  padding: 12px;
  z-index: 200;
}
.skip:focus {
  top: 10px;
}
.menu-scrim {
  display: none;
}
.code {
  font-family: ui-monospace, monospace !important;
  font-size: 12px !important;
}
.bottom-note {
  color: #99a5b5;
  font-size: 11px;
  text-align: center;
  padding-top: 5px;
}
.skeleton-action {
  color: #8796aa;
  font-size: 12px;
}
.row-link {
  cursor: pointer;
}
.row-link:hover td {
  background: #f7faff;
}
@keyframes slide-in {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (min-width: 1600px) {
  .main {
    padding-top: 39px;
  }
  .stat {
    padding: 23px;
  }
  .grid-two {
    grid-template-columns: minmax(0, 1fr) 335px;
  }
}
@media (max-width: 1200px) {
  .main {
    padding: 25px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .grid-two {
    grid-template-columns: minmax(0, 1fr) 265px;
  }
  .stats {
    gap: 11px;
  }
  .stat {
    padding: 16px;
  }
  .stat-top {
    font-size: 11px;
  }
  .sidebar {
    width: 205px;
    padding-inline: 12px;
  }
  .workspace {
    margin-left: 205px;
  }
  .print-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .top-avatar > div:last-child {
    display: none;
  }
  .global-search {
    max-width: 250px;
  }
  .park-layout {
    grid-template-columns: 1fr;
  }
  .location-switch {
    min-width: 220px;
  }
  #toast {
    left: calc(50% + 103px);
  }
}
@media (max-width: 950px) {
  .grid-two {
    grid-template-columns: 1fr;
  }
  .grid-two > .aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .topbar {
    gap: 10px;
  }
  .global-search {
    display: none;
  }
  .top-avatar {
    margin-left: auto;
  }
  .print-layout {
    grid-template-columns: 1fr;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .page-head {
    align-items: flex-start;
  }
  .lot-zone {
    gap: 5px;
    margin: 0;
  }
  .bay {
    font-size: 8px;
  }
  .tabs {
    overflow: auto;
  }
  .lot-map {
    padding-inline: 15px;
  }
  .main {
    padding: 25px 20px;
  }
  .shipment {
    padding: 14px;
  }
  .shipment-info p {
    font-size: 11px;
  }
}
@media (max-width: 700px) {
  .demo-bar {
    font-size: 10px;
    height: 28px;
  }
  .demo-bar span:last-child {
    display: none;
  }
  .sidebar {
    display: none;
    inset: 28px auto 0 0;
    width: 228px;
    box-shadow: 20px 0 30px #16243d15;
  }
  .sidebar.open {
    display: flex;
  }
  .menu-scrim.open {
    display: block;
    position: fixed;
    inset: 28px 0 0;
    background: #14223840;
    z-index: 15;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 65px;
    padding: 0 16px;
  }
  .mobile-menu {
    display: grid;
  }
  .location-switch {
    min-width: 0;
    flex: 1;
  }
  .location-switch .building {
    display: none;
  }
  .location-switch select {
    width: 100%;
    max-width: 210px;
    font-size: 13px;
  }
  .top-avatar {
    padding-left: 10px;
    margin-left: 0;
    border: 0;
  }
  .main {
    padding: 24px 16px;
  }
  .page-head {
    display: block;
    margin-bottom: 22px;
  }
  h1 {
    font-size: 26px;
  }
  .page-head > .actions {
    margin-top: 17px;
  }
  .stat-value {
    font-size: 29px;
  }
  .stat {
    padding: 16px;
  }
  .stat-top {
    font-size: 11px;
  }
  .stat-foot {
    font-size: 10px;
  }
  .grid-two > .aside {
    display: block;
  }
  .panel-head {
    padding: 19px 17px;
  }
  .panel-body {
    padding: 0 17px 18px;
  }
  .shipment {
    gap: 10px;
  }
  .shipment-icon {
    display: none;
  }
  .shipment .btn {
    padding: 8px 10px;
    font-size: 11px;
  }
  .shipment-info h3 {
    font-size: 13px;
  }
  .toolbar {
    gap: 9px;
  }
  .search-field {
    max-width: none;
    min-width: 100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .field {
    margin-bottom: 0;
  }
  .form-grid {
    margin-bottom: 17px;
  }
  .drawer-head,
  .drawer-body {
    padding: 22px 20px;
  }
  .drawer-footer {
    padding: 15px 20px;
  }
  .settings-grid {
    gap: 0;
  }
  .lot-zone {
    grid-template-columns: 13px repeat(8, 1fr);
    gap: 3px;
  }
  .bay {
    min-height: 48px;
    font-size: 7px;
  }
  .bay .icon {
    width: 17px;
  }
  .lot-map {
    padding: 42px 10px 18px;
    min-height: 340px;
  }
  .map-road {
    margin: 13px -10px;
    padding: 11px 0;
  }
  .map-building {
    padding: 15px;
  }
  .modal {
    max-height: 94vh;
  }
  .tabs {
    gap: 22px;
  }
  .tab {
    font-size: 12px;
  }
  #toast {
    left: 50%;
    width: 90%;
    max-width: 90vw;
  }
  .detail-grid {
    gap: 18px;
  }
  .btn {
    font-size: 12px;
  }
  .selection-bar {
    gap: 10px;
    flex-wrap: wrap;
  }
  .settings-grid .panel {
    min-width: 0;
  }
  .email-preview {
    font-size: 12px;
  }
  .mobile-hidden {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

.btn.mobile-menu {
  display: none;
}
@media (max-width: 760px) {
  .btn.mobile-menu {
    display: inline-flex;
  }
}
.grid-two > *,
.print-layout > * {
  min-width: 0;
}
@media (max-width: 950px) {
  .grid-two,
  .print-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

.home-print-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1050px;
}
.home-print-card {
  padding: 30px;
  margin: 0;
}
.home-task-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #edf3ff;
  color: var(--blue);
  margin-bottom: 22px;
}
.home-task-icon .icon {
  width: 23px;
  height: 23px;
}
.home-print-card h2 {
  font-size: 21px;
  margin-bottom: 9px;
}
.home-print-card form {
  margin-top: 27px;
}
.home-print-card .field {
  margin-bottom: 20px;
}
.home-print-card .btn.primary {
  width: 100%;
  margin-top: 7px;
}
.home-labels {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 13px;
}
.home-labels legend {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 13px;
}
.home-labels label {
  display: flex;
  align-items: center;
  gap: 4px;
}
.home-labels input {
  accent-color: var(--blue);
}
.batch-summary {
  margin-top: 21px;
  margin-bottom: 7px;
}
.home-footer-links {
  display: flex;
  gap: 24px;
  margin-top: 23px;
  font-size: 13px;
  color: #66758b;
}
.home-footer-links a:hover {
  color: var(--blue);
}
@media (max-width: 1000px) {
  .home-print-grid {
    grid-template-columns: 1fr;
  }
  .home-print-card {
    padding: 24px;
  }
}

.home-welcome {
  max-width: 1050px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.home-welcome h2 {
  font-size: 23px;
  margin-bottom: 10px;
}
.home-welcome p {
  max-width: 550px;
}
.home-welcome .btn {
  flex-shrink: 0;
}
.home-receipts {
  max-width: 1050px;
}
.home-receipts td strong {
  font-weight: 500;
}
.home-receipts td .small {
  margin-top: 5px;
}
@media (max-width: 700px) {
  .home-welcome {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
    gap: 20px;
  }
  .home-receipts th,
  .home-receipts td {
    padding-left: 13px;
    padding-right: 13px;
  }
  .home-receipts .table-footer {
    line-height: 1.6;
  }
}

.vehicle-register th,
.vehicle-register td {
  padding: 16px 12px;
}
.vehicle-register .vehicle-icon {
  display: none;
}
.vehicle-register .vehicle-name strong {
  white-space: normal;
  min-width: 145px;
}
.vehicle-register .vehicle-vin {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.1px;
}
.vehicle-register .btn.text {
  padding: 6px 0;
  white-space: nowrap;
}
.row-meta {
  display: block;
  color: #8290a4;
  font-size: 10px;
  margin-top: 4px;
}
.vehicle-register .badge {
  white-space: nowrap;
}

.home-stock-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 20px;
}
.home-stock-form .field {
  margin: 0;
  min-width: 220px;
}
.home-welcome > div {
  flex: 1;
}
.shipment-picker {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}
.shipment-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.shipment-columns h2 {
  font-size: 13px;
  margin-bottom: 12px;
}
.shipment-choices {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding: 3px;
}
.shipment-choice {
  display: grid;
  gap: 6px;
  text-align: left;
  background: #f8fafc;
  border: 1px solid #dce3ed;
  border-radius: 8px;
  padding: 14px;
  color: #40536c;
  cursor: pointer;
}
.shipment-choice strong {
  font-size: 14px;
}
.shipment-choice span,
.shipment-choice small {
  font-size: 12px;
}
.shipment-choice.active {
  outline: 2px solid #245eea;
  outline-offset: 1px;
}
.shipment-choice.complete {
  background: #e8f5eb;
  color: #24633c;
  border-color: #a8d4b6;
}
.shipment-picker > p {
  margin-top: 14px;
}
@media (max-width: 700px) {
  .home-stock-form {
    align-items: stretch;
    flex-direction: column;
  }
  .home-stock-form .field {
    min-width: 0;
  }
  .shipment-columns {
    gap: 12px;
  }
  .shipment-picker {
    padding: 14px;
  }
}

.stock-print-panel {
  padding: 24px;
}
.stock-inline-search {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 18px;
}
.stock-inline-search .field {
  margin: 0;
  width: 300px;
  max-width: 100%;
}
.single-print-result {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.single-print-result p {
  font-size: 13px;
  color: #7b899c;
  margin-top: 7px;
}
.single-label-options {
  border: 0;
  padding: 0;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.single-label-options legend {
  font-size: 12px;
  margin-bottom: 10px;
  color: #718096;
}
.single-label-options label {
  font-size: 13px;
  white-space: nowrap;
}
.single-label-options input {
  accent-color: #245eea;
}
.batch-heading {
  margin: 30px 0 18px;
  font-size: 20px;
}
@media (max-width: 850px) {
  .single-print-result {
    align-items: flex-start;
    flex-direction: column;
  }
  .stock-inline-search {
    flex-wrap: wrap;
  }
}

.stock-print-panel {
  padding: 18px 22px;
}
.stock-print-panel h2 {
  font-size: 14px;
  margin-bottom: 14px;
}
.stock-print-row {
  display: flex;
  align-items: center;
  gap: 18px;
}
.stock-print-row .stock-inline-search {
  margin: 0;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}
.stock-inline-search > input {
  width: 165px;
  border: 1px solid #dbe2ec;
  border-radius: 6px;
  padding: 11px 12px;
  font-size: 14px;
}
.stock-row-details {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 4px;
}
.stock-row-details strong {
  font-size: 14px;
}
.stock-row-details span,
.stock-row-details small {
  font-size: 12px;
  color: #7b899c;
}
.stock-row-details small {
  font-family: ui-monospace, monospace;
  font-size: 10px;
}
.stock-row-labels {
  width: 145px;
  flex-shrink: 0;
}
.stock-print-row > .btn {
  flex-shrink: 0;
}
@media (max-width: 1050px) {
  .stock-print-row {
    gap: 10px;
  }
  .stock-inline-search > input {
    width: 130px;
  }
  .stock-row-labels {
    width: 125px;
  }
}
@media (max-width: 760px) {
  .stock-print-row {
    flex-wrap: wrap;
  }
  .stock-print-row .stock-inline-search {
    width: 100%;
  }
  .stock-inline-search > input {
    flex: 1;
  }
  .stock-row-details {
    flex-basis: 100%;
  }
}

.used-refresh {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.used-refresh p {
  margin-top: 6px;
}
.used-refresh .btn {
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .used-refresh {
    align-items: flex-start;
    flex-direction: column;
  }
}

.qr-mode-options {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 8px;
}
.qr-mode-options legend {
  font-size: 13px;
  color: #516077;
  margin-bottom: 10px;
}

.feed-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.feed-tabs a {
  text-decoration: none;
}
#host-config-form h3 {
  margin: 24px 0 16px;
}
#feed-config-form .small,
#host-config-form .small {
  margin: 16px 0;
}
#feed-preview-result table {
  font-size: 12px;
}
/* Print centre: one reading path, with actions directly above the list. */
.simple-print-batch {
  display: grid;
  gap: 20px;
}
.simple-print-batch .shipment-picker {
  margin: 0;
}
.batch-print-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.batch-print-bar > div:first-child {
  display: flex;
  align-items: center;
  gap: 16px;
}
.batch-print-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.batch-label-select {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #66758a;
}
.shipment-choice {
  grid-template-columns: minmax(100px, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 5px;
}
.shipment-choice small {
  text-align: right;
  min-width: 92px;
}
.shipment-choices {
  max-height: 205px;
}
.batch-vehicles {
  margin-bottom: 0;
}
.simple-print-batch .used-refresh {
  padding: 0 2px;
}
.supply-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 20px;
  column-gap: 12px;
  min-height: 56px;
  cursor: pointer;
}
.supply-row > .check {
  margin: 0;
  justify-self: end;
}
.supply-row > .icon {
  width: 20px;
}
.supply-row > .colour-dot {
  justify-self: center;
}
@media (max-width: 700px) {
  .batch-print-bar {
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
  }
  .batch-print-actions {
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .shipment-choice {
    grid-template-columns: 1fr auto;
    gap: 6px;
  }
  .shipment-choice small {
    grid-column: 1/-1;
    text-align: left;
  }
  .stock-print-row {
    gap: 12px;
  }
}

.language-control {
  display: grid;
  gap: 5px;
  margin: 0 10px 16px;
}
.sidebar .language-control select {
  width: 100%;
  max-width: none;
}
.language-control select {
  max-width: 130px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}
/* Connected local backend workspace */
.connected-login {
  max-width: 460px;
  margin: 8vh auto;
  padding: 20px;
}
.connected-login > .brand {
  margin: 0 0 26px;
}
.connected-login .panel {
  margin-bottom: 16px;
}
.connected-form {
  padding: 24px !important;
}
.connected-form > h1,
.connected-form > h2,
.connected-form > p,
.connected-form > .note,
.connected-form > .detail-grid {
  margin-bottom: 20px;
}
.connected-checks {
  display: grid;
  gap: 14px;
  margin: 20px 0;
}
.connected-checks label {
  display: flex;
  align-items: center;
  gap: 9px;
}
.connected-checks input {
  width: 18px;
  height: 18px;
}
.connected-form .field {
  margin-bottom: 16px;
}
.connected-login .btn.primary {
  width: 100%;
}
.connected-login .brand .icon {
  width: 30px;
  height: 30px;
}
.backend-connected .top-avatar {
  margin-left: auto;
}
.backend-connected #search-form.toolbar {
  padding: 20px;
  align-items: flex-end;
}
.backend-connected #search-form.toolbar .field {
  margin: 0;
  min-width: 220px;
  max-width: 380px;
  flex: 1;
}
.backend-connected .main > .note {
  margin-bottom: 20px;
}
/* Connected Print Centre: stock lookup stays on one row, loads below. */
.print-single {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.print-single input {
  width: 180px;
}
.print-single .print-found {
  flex: 1;
  min-width: 190px;
}
.print-found small {
  display: block;
  color: var(--muted, #64748b);
}
.print-load-layout {
  display: grid;
  grid-template-columns: 140px 175px minmax(0, 1fr);
  gap: 16px;
}
.print-load-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.print-load-list .btn {
  display: block;
  text-align: left;
  white-space: normal;
}
.print-load-list small {
  display: block;
}
.load-complete {
  background: #e3f5e9 !important;
  color: #176c38 !important;
  border-color: #8dc99e !important;
}
.selected-load {
  outline: 2px solid #245bea;
  outline-offset: 1px;
}
.print-load-vehicles {
  min-width: 0;
  overflow: auto;
}
.print-load-vehicles .toolbar {
  flex-wrap: wrap;
  padding: 0 0 14px;
}
.print-load-vehicles table {
  width: 100%;
}
#connected-print .panel {
  margin-bottom: 22px;
}
#connected-print textarea {
  margin-top: 12px;
}
#connected-print input[type="checkbox"] {
  width: 18px;
  height: 18px;
}
@media (max-width: 900px) {
  .print-load-layout {
    grid-template-columns: 130px 1fr;
  }
  .print-load-vehicles {
    grid-column: 1/-1;
  }
}
@media (max-width: 540px) {
  .print-single .print-found {
    flex-basis: 100%;
  }
  .print-single input {
    flex: 1;
    width: 120px;
  }
}
#connected-print input:not([type="checkbox"]),
#connected-print select,
#connected-print textarea {
  font: inherit;
  border: 1px solid #d9e1eb;
  border-radius: 7px;
  background: white;
  color: #20314b;
  padding: 10px 12px;
}
#connected-print h2 {
  margin: 0 0 16px;
}
.print-single select {
  max-width: 160px;
}

/* Match the prototype's compact lookup and full-width shipment list. */
#connected-print {
  font-size: 13px;
}
#connected-print .stock-print-panel h2 {
  font-size: 14px;
  margin-bottom: 14px;
}
#connected-print .print-single {
  flex-wrap: nowrap;
  gap: 12px;
}
#connected-print .print-single input {
  width: 165px;
  min-width: 100px;
}
#connected-print .print-found {
  font-size: 13px;
  line-height: 1.5;
}
#connected-print .print-found strong {
  font-weight: 600;
}
#connected-print .print-found small {
  font-size: 12px;
  margin-top: 3px;
}
#connected-print input:not([type="checkbox"]),
#connected-print select {
  font-size: 13px;
  min-height: 40px;
}
#connected-print .batch-heading {
  font-size: 17px;
  margin: 28px 0 16px;
}
#connected-print .connected-batch-body {
  padding: 22px;
}
.print-load-layout {
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.print-load-list {
  max-height: 250px;
  overflow: auto;
  padding: 3px;
}
.print-load-list h3 {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.print-load-list .btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
}
.print-load-list small {
  font-size: 11px;
}
.print-load-vehicles {
  grid-column: 1/-1;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.print-load-vehicles .toolbar {
  margin-bottom: 0;
  gap: 16px;
  align-items: center;
}
.print-load-vehicles .toolbar strong {
  margin-right: auto;
}
#connected-print .panel-body {
  padding: 22px;
}
#connected-print .panel-body > p {
  margin-bottom: 16px;
}
.browser-print-help {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  max-width: 540px;
  width: calc(100% - 32px);
  color: var(--navy);
  box-shadow: 0 20px 80px #14223833;
}
.browser-print-help::backdrop {
  background: #14223866;
}
.browser-print-help p {
  font-size: 14px;
  margin: 14px 0 24px;
}
.browser-print-help .actions {
  flex-wrap: wrap;
}
@media (max-width: 800px) {
  #connected-print .print-single {
    flex-wrap: wrap;
  }
  #connected-print .print-found {
    flex-basis: 100%;
    order: 3;
  }
  #connected-print .connected-batch-body {
    padding: 16px;
  }
  .print-load-layout {
    gap: 16px;
  }
  .print-load-list .btn {
    flex-wrap: wrap;
    gap: 6px;
  }
  #connected-print .print-single input {
    flex: 1;
  }
  .print-load-vehicles .toolbar {
    gap: 10px;
  }
}

#connected-print [hidden] {
  display: none !important;
}

/* One compact print control, with a quiet disabled state. */
#connected-print .single-print-actions {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  gap: 0;
}
#connected-print .single-print-actions select {
  appearance: none;
  -webkit-appearance: none;
  width: 138px;
  max-width: none;
  height: 38px;
  min-height: 38px;
  padding: 0 32px 0 12px;
  font-size: 13px;
  border-radius: 6px 0 0 6px;
  border-right: 0;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m5 6 3 3 3-3' fill='none' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 10px center;
}
#connected-print .single-print-actions .btn {
  height: 38px;
  min-height: 38px;
  padding: 0 18px;
  font-size: 13px;
  border-radius: 0 6px 6px 0;
  box-shadow: none;
}
#connected-print .single-print-actions .btn:disabled {
  opacity: 1;
  background: #edf0f4;
  border-color: #d9e1eb;
  color: #8995a6;
}
@media (max-width: 800px) {
  #connected-print .single-print-actions {
    margin-left: auto;
  }
}
/* Shared portal dropdowns: consistent typography, spacing and chevron. */
:is(#app, #connected-print) select:not([multiple]) {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  color: #40516a;
  min-height: 38px;
  padding: 8px 34px 8px 12px;
  border: 1px solid #dbe2ec;
  border-radius: 6px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m5 6 3 3 3-3' fill='none' stroke='%23748095' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  box-shadow: 0 1px 2px #18283d04;
}
:is(#app, #connected-print) select:not([multiple]):hover {
  border-color: #b8c5d7;
  background-color: #fbfcfe;
}
:is(#app, #connected-print) select:disabled {
  cursor: not-allowed;
  background-color: #f4f6f9;
  color: #8b96a6;
}
#app .language-control select {
  font-size: 13px;
  min-height: 36px;
  width: 100%;
}
#app .location-switch select {
  font-size: 13px;
  min-height: 34px;
  padding-top: 5px;
  padding-bottom: 5px;
  border-color: transparent;
  background-color: transparent;
  box-shadow: none;
}
#connected-print .single-print-actions select {
  border-radius: 6px 0 0 6px;
  border-right: 0;
  height: 38px;
  min-height: 38px;
}
.home-print-entry {
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.home-print-entry h2 {
  margin-bottom: 6px;
}
.home-print-entry form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-print-entry input {
  width: 190px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  font-size: 13px;
}
.home-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.home-stat {
  display: block;
}
.home-stat:hover {
  border-color: #b8c9e6;
}
.home-stat .stat-value {
  font-size: 27px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.home-stat .stat-top .icon {
  width: 15px;
}
.home-stat p {
  font-size: 12px;
}
.home-attention {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-color: #f0d5ae;
  background: #fffbf5;
}
.home-attention p {
  font-size: 13px;
  color: #8d6631;
  margin-top: 6px;
}
@media (max-width: 950px) {
  .home-print-entry {
    align-items: flex-start;
    flex-direction: column;
  }
  .home-stats {
    grid-template-columns: 1fr;
  }
  .home-print-entry form {
    width: 100%;
    flex-wrap: wrap;
  }
  .home-print-entry input {
    flex: 1;
    min-width: 130px;
  }
  .home-attention {
    gap: 14px;
    flex-wrap: wrap;
  }
}
@media (min-width: 1200px) {
  .home-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .home-stat .stat-value {
    font-size: 25px;
  }
}
@media (min-width: 951px) and (max-width: 1199px) {
  .home-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
  .home-stats {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.park-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 2fr;
  gap: 24px;
}
.park-grid form {
  display: grid;
  gap: 16px;
}
.park-grid label {
  display: grid;
  gap: 7px;
}
.park-area-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #e7edf5;
}
.park-area-row strong {
  flex: 1;
}
@media (max-width: 800px) {
  .park-grid {
    grid-template-columns: 1fr;
  }
  .park-area-row {
    flex-wrap: wrap;
  }
}
#connected-park {
  font-size: 14px;
}
#connected-park .panel-body {
  padding: 24px;
}
#connected-park h2 {
  margin-bottom: 16px;
}
#connected-park input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--navy);
  background: white;
  width: 100%;
}
#connected-park label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}
#connected-park label > span {
  display: inline;
}
#park-area-form {
  margin-top: 20px;
  flex-wrap: wrap;
}
#park-area-form input {
  width: 240px;
}
#park-status:not(:empty) {
  margin-top: 16px;
  font-size: 13px;
  color: var(--green);
}
#park-map {
  border-radius: 8px;
}
#park-map-help {
  margin-top: 12px;
}
#park-points:not(:empty) {
  margin-top: 12px;
}

#connected-park .park-lookup {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
#connected-park .park-lookup .btn {
  justify-self: start;
}

/* Connected administration shares the portal's existing form and panel styles. */
.admin-checks,
.supply-choice-list {
  max-width: 680px;
  display: grid;
  gap: 0;
}
.admin-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid #e8edf5;
  max-width: 680px;
}
.admin-check input[type="checkbox"] {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  margin: 0;
  accent-color: #245cf3;
}
.colour-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.colour-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 18px;
  border: 1px solid #dce4ef;
  background: white;
  border-radius: 12px;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.colour-swatch {
  width: 42px;
  height: 42px;
  border: 1px solid #dce4ef;
  border-radius: 50%;
}
.colour-dot {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1px solid #dce4ef;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 10px;
}
.admin-notice:empty {
  display: none;
}
.connected-form h3 {
  margin-top: 26px;
}
.connected-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  font: inherit;
}
.connected-form input[type="color"] {
  height: 46px;
  min-width: 100px;
  padding: 5px;
}

/* Keep feature-specific settings compact and their controls beside the label. */
[data-stockin-settings][hidden] {
  display: none !important;
}
#arrival-settings .arrival-option {
  justify-content: flex-start;
  gap: 12px;
  align-items: flex-start;
}
#arrival-settings .arrival-option input[type="checkbox"] {
  order: -1;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
}

/* Home: one shared width, quiet colour accents, responsive metric cards. */
.home-print-entry {
  border-color: #d8e3ef;
  border-left: 4px solid #294b70;
  background: linear-gradient(110deg, #edf3f9 0%, #f8fafc 55%, #fff 100%);
  padding: 24px;
  box-shadow: 0 2px 8px #18283d04;
}
.home-print-entry h2 {
  color: #203c5b;
  font-size: 18px;
}
.home-print-entry p {
  color: #63758b;
}
.home-print-entry form {
  gap: 10px;
}
.home-print-entry input {
  background: #fff;
  border-color: #ccd8e5;
  min-height: 44px;
}
.home-print-entry .btn {
  min-height: 44px;
  background: #294b70;
  border-color: #294b70;
  box-shadow: none;
}
.home-print-entry .btn:hover {
  background: #203c5b;
  border-color: #203c5b;
}
.home-stat {
  --card-accent: #355f91;
  --card-tint: #eef4fb;
  position: relative;
  border-color: #dce5ef;
  border-top: 3px solid var(--card-accent);
  background: linear-gradient(145deg, var(--card-tint), #fff 78%);
  padding: 24px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.home-stat:nth-child(2) {
  --card-accent: #28756c;
  --card-tint: #edf6f3;
}
.home-stat:nth-child(3) {
  --card-accent: #76603d;
  --card-tint: #f8f4ed;
}
.home-stat:nth-child(4) {
  --card-accent: #66578a;
  --card-tint: #f3f0f8;
}
.home-stat:nth-child(5) {
  --card-accent: #416875;
  --card-tint: #eef5f7;
}
.home-stat .stat-top {
  color: #42536b;
  font-size: 12px;
  line-height: 1.5;
  gap: 12px;
  min-height: 36px;
}
.home-stat .stat-top .icon {
  color: var(--card-accent);
  opacity: 0.7;
}
.home-stat .stat-value {
  color: var(--card-accent);
  font-size: 30px;
  letter-spacing: -0.7px;
  margin: 14px 0 10px;
  font-weight: 650;
}
.home-stat p {
  color: #65758b;
  line-height: 1.65;
}
.home-stat:hover {
  border-color: var(--card-accent);
  box-shadow: 0 5px 18px #203c5b0c;
}
.home-footer-links {
  display: flex;
  gap: 20px;
  color: #426183;
  font-size: 13px;
}
.home-footer-links a:hover {
  text-decoration: underline;
}
@media (min-width: 1400px) {
  .home-stats {
    grid-template-columns: repeat(var(--home-columns, 4), minmax(0, 1fr));
  }
}
@media (min-width: 951px) and (max-width: 1399px) {
  .home-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 701px) and (max-width: 950px) {
  .home-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .home-stat {
    padding: 20px;
  }
  .home-print-entry {
    padding: 20px;
  }
  .home-print-entry form {
    align-items: stretch;
  }
  .home-print-entry input {
    width: 100%;
    min-width: 0;
  }
  .home-print-entry .btn {
    white-space: normal;
  }
  .home-stats {
    gap: 14px;
  }
}

/* Shared product identity and public company/legal links. */
.product-brand {
  align-items: flex-start;
  gap: 8px;
  padding-bottom: 24px;
}
.product-brand img {
  margin-top: 2px;
}
.brand-wordmark {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand-wordmark strong {
  line-height: 1.1;
}
.brand-wordmark small {
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  color: #677d96;
}
.sidebar {
  overflow-y: auto;
}
.sidebar > .brand,
.sidebar > .nav-link,
.sidebar > .nav-label {
  flex-shrink: 0;
}
.portal-legal {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding: 15px 10px 0;
  font-size: 11px;
  line-height: 1.6;
  color: #64758c;
}
.portal-legal .portal-website {
  display: inline-block;
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 9px;
  color: #355679;
}
.portal-legal > div {
  display: flex;
  flex-wrap: wrap;
  column-gap: 12px;
  row-gap: 5px;
}
.portal-legal a:hover {
  color: #245eea;
  text-decoration: underline;
}
.connected-login > .product-brand {
  justify-content: center;
}
.connected-login > .portal-legal {
  margin-top: 24px;
  text-align: center;
}
.connected-login > .portal-legal > div {
  justify-content: center;
}

/* Inventory: concise columns, with secondary details available in place. */
.vehicle-list {
  width: 100%;
  min-width: 0;
}
.vehicle-table {
  table-layout: fixed;
  width: 100%;
  min-width: 0;
}
.vehicle-table .vehicle-identity {
  width: 30%;
}
.vehicle-table th,
.vehicle-table td {
  padding: 16px 14px;
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: top;
}
.vehicle-table td {
  line-height: 1.55;
}
.vehicle-table td strong {
  white-space: normal;
}
.vehicle-table .vehicle-vin {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.vehicle-listing {
  display: inline-block;
  font-size: 12px;
  color: var(--blue);
  margin-top: 6px;
}
.vehicle-more {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}
.vehicle-more summary {
  cursor: pointer;
  color: #526983;
}
.vehicle-more[open] summary {
  margin-bottom: 5px;
}
.vehicle-table .btn.text {
  padding: 5px 0;
  min-height: 28px;
  white-space: normal;
  text-align: left;
  justify-content: flex-start;
}
.vehicle-table .badge {
  white-space: normal;
  max-width: 100%;
  line-height: 1.5;
}
.vehicle-arrival {
  margin-top: 12px;
}
.vehicle-note {
  margin-top: 5px;
}
.vehicle-table td a:not(.badge) {
  color: var(--blue);
}
@media (max-width: 1050px) {
  .vehicle-table th,
  .vehicle-table td {
    padding: 13px 9px;
    font-size: 12px;
  }
  .vehicle-table .vehicle-identity {
    width: 28%;
  }
}
@media (max-width: 800px) {
  .vehicle-table,
  .vehicle-table tbody {
    display: block;
    width: 100%;
  }
  .vehicle-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .vehicle-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px;
    border-bottom: 1px solid var(--line);
    gap: 14px;
  }
  .vehicle-table td {
    display: block;
    border: 0;
    padding: 0;
    min-width: 0;
    font-size: 13px;
  }
  .vehicle-table td:first-child {
    grid-column: 1/-1;
  }
  .vehicle-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: var(--muted);
    margin-bottom: 5px;
  }
  .vehicle-table .vehicle-vin {
    overflow-wrap: anywhere;
  }
}

.vehicle-title {
  border: 0;
  background: none;
  padding: 0;
  color: var(--blue);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
}
.status-button {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
}
.vehicle-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.vehicle-pagination .actions {
  align-items: center;
}
.vehicle-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(620px, calc(100vw - 32px));
  max-height: 85vh;
  overflow: auto;
  z-index: 1000;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 0 0 100vmax #10203066;
  background: white;
  color: var(--ink);
}
.vehicle-dialog .panel-body {
  padding: 24px;
}
.vehicle-dialog .detail-grid {
  margin-bottom: 24px;
}
.vehicle-dialog dd {
  overflow-wrap: anywhere;
}

.pdi-operation {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.vehicle-dialog::backdrop {
  background: #10203066;
}
fieldset.pdi-operation {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin: 18px 0;
}
fieldset.pdi-operation legend {
  font-size: 12px;
  color: var(--muted);
  padding: 0 6px;
}
fieldset.pdi-operation .btn.text {
  margin-top: 8px;
}

/* Store settings: compact, feature-scoped groups. */
.settings-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
}
.settings-section > summary {
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
}
.settings-section > summary::after {
  content: "+";
  margin-left: auto;
  color: var(--blue);
  font-size: 22px;
}
.settings-section[open] > summary::after {
  content: "−";
}
.settings-section > summary strong {
  display: block;
  font-size: 16px;
  color: var(--ink, #203047);
}
.settings-section > summary small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  font-size: 13px;
}
.settings-section[open] > summary {
  border-bottom: 1px solid var(--line);
  background: #f8faff;
}
.settings-section-body {
  padding: 16px;
}
.settings-section-body .panel {
  box-shadow: none;
  margin-bottom: 12px;
}
.settings-section-body .panel:last-child {
  margin-bottom: 0;
}
.settings-subsection {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  margin-top: 16px;
}
.settings-subsection > summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 14px;
}
.settings-section summary:focus-visible,
.settings-subsection summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -3px;
}

.mobile-staff {
  display: grid;
  gap: 20px;
}
.mobile-staff .panel {
  margin-bottom: 0;
}
.mobile-staff .panel-head {
  flex-wrap: wrap;
}
.mobile-staff .panel-head .form-actions {
  margin: 0;
}
.mobile-staff [data-link] {
  font-size: 13px;
}
.mobile-staff img {
  display: block;
  margin: 0 auto 20px;
}

/* Consistent room for selected text and the dropdown arrow across all forms. */
#app select:not([multiple]):not([size]) {
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 40px 10px 14px;
  line-height: 1.5;
  background-position: right 14px center;
  text-overflow: ellipsis;
  max-width: 100%;
}
#app .location-switch select,
#app .language-control select {
  min-height: 40px;
  padding: 8px 36px 8px 12px;
}
#app #connected-print .single-print-actions select {
  height: 44px;
  min-height: 44px;
  padding: 10px 36px 10px 12px;
}
.save-feedback:not(:empty) {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  max-width: min(480px, calc(100vw - 32px));
  margin: 0;
  padding: 14px 20px;
  background: #f1f6ff;
  color: #284361;
  border: 1px solid #bfd0e5;
  border-radius: 10px;
  box-shadow: 0 6px 24px #172f4720;
  pointer-events: none;
}
.template-feedback {
  font-size: 14px;
  color: #315b43;
  line-height: 1.5;
}
@media (max-width: 700px) {
  .save-feedback:not(:empty) {
    right: 16px;
    bottom: 16px;
  }
}

/* Keep sidebar controls and legal links on one shared inset. */
#app .side-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 12px 12px;
}
#app .side-bottom .language-control {
  margin: 0;
  gap: 8px;
}
#app .side-bottom > .btn[data-action="logout"] {
  align-self: stretch;
  text-align: left;
  justify-content: flex-start;
  margin: 0;
  padding: 10px 12px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink, #203047);
  background: #fff;
}
#app .side-bottom > .btn[data-action="logout"]:hover {
  background: #f1f5fa;
}
#app .side-bottom .portal-legal {
  margin: 0;
  padding: 16px 0 0;
}

#app .side-bottom .portal-legal > div {
  display: grid;
  gap: 8px;
}
#app .side-bottom .portal-legal a {
  margin: 0;
}

.store-actions-cell {
  width: 245px;
  vertical-align: top;
}
.store-row-actions {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}
.store-row-actions > .btn,
.store-action-menu > summary {
  min-height: 40px;
  padding: 10px 14px;
  white-space: nowrap;
  font-weight: 600;
}
.store-action-menu {
  min-width: 90px;
}
.store-action-menu > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
}
.store-action-menu > summary::-webkit-details-marker {
  display: none;
}
.store-action-menu[open] {
  flex-basis: 100%;
}
.store-action-menu[open] > summary {
  background: #f3f6fa;
}
.store-action-options {
  display: grid;
  gap: 8px;
  padding: 10px 0 0;
}
.store-action-options > .btn {
  justify-content: flex-start;
  text-align: left;
  min-height: 40px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
}
.store-action-options > .store-access-action,
.store-danger-action {
  color: #9e3535;
  border-color: #e6c9c9;
  background: #fffafa;
}
.store-action-menu > summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* Layout classes must not override feature/provider visibility. */
#app [hidden] {
  display: none !important;
}

#connected-admin h3 {
  margin-bottom: 12px;
}
/* Administration controls: readable groups, generous targets, clear hierarchy. */
.table-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 210px;
}
.table-actions .btn {
  white-space: nowrap;
}
.setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 20px;
}
.setup-step {
  display: flex;
  gap: 14px;
  text-align: left;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}
.setup-step:hover {
  background: #f6f9ff;
  border-color: #aac0ee;
}
.setup-step strong,
.setup-step small {
  display: block;
}
.setup-step small {
  color: var(--muted);
  line-height: 1.5;
  margin-top: 6px;
}
.setup-number {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #edf3ff;
  color: #2450a4;
  font-size: 13px;
  font-weight: 700;
}
.setup-status {
  display: block;
  font-size: 12px;
  font-weight: 650;
  margin-top: 10px;
  color: #355779;
}
#connection-editor,
.settings-section {
  scroll-margin-top: 24px;
}
#connected-connections .connection-notice:not(:empty) {
  padding: 16px;
  margin-bottom: 16px;
}
#app .form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
#app .connected-form label.field {
  min-width: 0;
}
#app .connected-form input:not([type="checkbox"]):not([type="color"]),
#app .connected-form textarea {
  box-sizing: border-box;
  max-width: 100%;
}
#app button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
@media (max-width: 760px) {
  .setup-grid {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .panel-head {
    flex-wrap: wrap;
    gap: 12px;
  }
  .table-actions {
    min-width: 150px;
  }
}
#connection-editor .form-actions + p {
  margin-top: 14px;
}
.setup-fieldset {
  border: 0;
  border-top: 1px solid var(--line);
  padding: 24px 0;
  margin: 28px 0 0;
  min-width: 0;
}
.setup-fieldset legend {
  font-size: 18px;
  font-weight: 700;
  padding: 0 16px 0 0;
}
.product-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.product-choices label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
}
.product-choices strong,
.product-choices small {
  display: block;
}
.product-choices small {
  margin-top: 6px;
  color: var(--muted);
}
@media (max-width: 700px) {
  .product-choices {
    grid-template-columns: 1fr;
  }
}

/* Homepage tasks: print lookup first, followed by store-appropriate shortcuts. */
.home-print-entry {
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}
.home-actions,
.home-shortcuts {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.home-print-entry .home-actions form {
  width: auto;
  flex-wrap: wrap;
  gap: 10px;
}
.home-print-entry .home-actions .btn {
  min-height: 52px;
  padding: 14px 22px;
  font-size: 15px;
  white-space: nowrap;
}
.home-print-entry .home-actions input {
  min-height: 52px;
  font-size: 15px;
  width: 190px;
}
.home-print-entry .home-shortcuts .btn {
  background: #fff;
  color: #294b70;
  border: 1px solid #b8c9dc;
}
.home-print-entry .home-shortcuts .btn:hover {
  background: #edf3f9;
  border-color: #294b70;
}
.home-actions a:focus-visible,
.home-actions button:focus-visible {
  outline: 3px solid #6697d5;
  outline-offset: 3px;
}
@media (max-width: 700px) {
  .home-actions {
    align-items: stretch;
  }
  .home-print-entry .home-actions form {
    width: 100%;
  }
  .home-print-entry .home-actions input {
    flex: 1;
    min-width: 130px;
  }
  .home-shortcuts {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
  .home-print-entry .home-actions .btn {
    white-space: normal;
    text-align: center;
    justify-content: center;
  }
}

/* Consistent form spacing and readable secondary actions. */
#app .connected-form input[readonly] {
  background: #edf1f5;
  color: #526275;
  border-color: #dbe3ec;
  cursor: default;
}
#app .connected-form select {
  min-height: 46px;
  padding: 11px 40px 11px 14px;
  line-height: 1.45;
}
#app .connected-form textarea {
  min-height: 150px;
  padding: 14px;
  line-height: 1.6;
  resize: vertical;
}
#app .btn:focus-visible,
#app input:focus-visible,
#app select:focus-visible,
#app textarea:focus-visible {
  outline: 3px solid #9bb9ff;
  outline-offset: 3px;
}
.settings-section,
.settings-section form {
  scroll-margin-top: 24px;
}
.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}
.support-layout .panel {
  min-width: 0;
}
.support-layout label {
  display: grid;
  gap: 9px;
}
.support-layout h2 {
  margin-top: 0;
}
.support-history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.support-history-heading h2 {
  margin: 0;
}
.support-request {
  padding: 20px 0;
  border-top: 1px solid #e4eaf2;
  overflow-wrap: anywhere;
}
.support-request > strong {
  display: block;
  margin-bottom: 10px;
}
.support-request p {
  margin: 8px 0;
}
.support-empty {
  padding: 28px 16px;
  border: 1px dashed #ced9e6;
  border-radius: 10px;
  color: #617189;
  line-height: 1.7;
  text-align: center;
}
#support-feedback:empty {
  display: none;
}
#support-feedback {
  padding: 14px 16px;
  border-radius: 8px;
  background: #eef4ff;
  color: #244065;
}
@media (max-width: 980px) {
  .support-layout {
    grid-template-columns: 1fr;
  }
}
.support-layout #support-form {
  display: grid;
  gap: 20px;
}
.support-layout #support-form > h2,
.support-layout #support-form > p {
  margin: 0;
}
.support-layout .panel-body {
  padding: 24px;
}
.support-layout .field {
  margin: 0;
}
.support-layout input[type="text"] {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
}
.page-heading:has(+ .support-layout) {
  margin-bottom: 24px;
}
#app .connected-form > label:not(.setting-line):not(.setting-toggle) {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
#app #support-form > label {
  margin-bottom: 0;
}
.dealer-group-filter {
  display: grid;
  gap: 4px;
  min-width: 150px;
  max-width: 220px;
  margin-right: 18px;
}
.dealer-group-filter > span {
  font-size: 11px;
  color: #65768d;
  letter-spacing: 0.04em;
}
.dealer-group-filter select {
  padding: 8px 30px 8px 10px;
  min-height: 38px;
  width: 100%;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  background: white;
  color: #304560;
}
@media (max-width: 700px) {
  .topbar:has(.dealer-group-filter) {
    flex-wrap: wrap;
    height: auto;
    gap: 12px;
    padding: 12px 16px;
  }
  .dealer-group-filter {
    min-width: 120px;
    max-width: 160px;
    margin-right: 0;
  }
}

/* Clear daily tasks and compact forms. */
.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.task-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 26px;
  border-radius: 18px;
  text-decoration: none;
  color: #172b4d;
  border: 1px solid #dbe4ef;
  min-height: 170px;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.task-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px #172b4d14;
}
.task-card strong {
  font-size: 22px;
}
.task-card span {
  font-size: 14px;
  color: #3e526d;
}
.task-card svg {
  width: 28px;
  height: 28px;
}
.task-blue {
  background: #e9efff;
}
.task-green {
  background: #e8f6eb;
}
.task-purple {
  background: #f1ebff;
}
.task-teal {
  background: #e4f5f5;
}
.task-amber {
  background: #fff4dd;
}
.quick-stock {
  padding: 20px 24px;
}
.quick-stock form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.quick-stock input {
  max-width: 240px;
}
.home-detail {
  margin-bottom: 20px;
}
.home-detail > summary,
.support-history > summary {
  padding: 20px 24px;
  font-weight: 650;
  cursor: pointer;
}
.home-detail .home-stats {
  padding: 0 20px 20px;
}
#app .location-switch {
  flex: 1 1 380px;
  max-width: 650px;
  min-width: 0;
}
#app .location-switch > div:last-child {
  flex: 1;
  min-width: 0;
}
#app .location-switch select {
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 10px 38px 10px 10px;
  font-size: 16px;
}
#app .topbar {
  flex-wrap: wrap;
  height: auto;
  min-height: 84px;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.supply-choice-list {
  display: grid;
  gap: 10px;
  max-width: 650px;
}
.supply-choice {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid #dce4ef;
  border-radius: 12px;
  cursor: pointer;
}
.supply-choice input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 0;
  flex: 0 0 22px;
}
.supply-choice > span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.supply-choice:has(:checked) {
  background: #edf3ff;
  border-color: #6c90ee;
}
.supply-notes {
  display: grid;
  gap: 8px;
  max-width: 650px;
  margin: 22px 0;
}
.supply-notes textarea {
  width: 100%;
  padding: 14px;
}
.support-layout {
  display: flex;
  flex-direction: column;
  max-width: 900px;
}
.support-history {
  width: 100%;
}
.audit-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.audit-range {
  position: relative;
}
.audit-calendar {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  background: white;
  padding: 18px;
  border: 1px solid #dce4ef;
  border-radius: 16px;
  box-shadow: 0 10px 35px #172b4d22;
}
.audit-calendar header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.audit-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.audit-days button {
  border: 0;
  background: none;
  min-height: 36px;
  border-radius: 6px;
  cursor: pointer;
}
.audit-days .selected {
  background: #2457e8;
  color: white;
}
.audit-days .in-range {
  background: #e8efff;
}
.audit-days small {
  text-align: center;
  padding: 8px 0;
}
.audit-calendar p {
  font-size: 13px;
  margin: 12px 0;
}
.audit-calendar footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
@media (max-width: 600px) {
  .task-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .task-card {
    padding: 18px;
    min-height: 160px;
  }
  .task-card strong {
    font-size: 19px;
  }
  .task-card span {
    font-size: 13px;
  }
  #app .location-switch {
    flex-basis: 100%;
    max-width: none;
  }
  .audit-calendar {
    width: min(320px, calc(100vw - 70px));
  }
}

#app .quick-stock input {
  padding: 12px 14px;
  border: 1px solid #dce4ef;
  border-radius: 9px;
  font: inherit;
  min-height: 44px;
}

/* Keep the audit calendar outside the short empty-results card. */
.panel.audit-panel {
  overflow: visible;
}
.printer-advanced {
  margin-top: 20px;
}
.printer-advanced > summary {
  width: fit-content;
  cursor: pointer;
}
.printer-advanced-content {
  margin-top: 16px;
  padding-top: 8px;
  border-top: 1px solid #dce4ef;
}
.printer-advanced-content li {
  margin: 10px 0;
}

.setup-colour-blue {
  --section-accent: #2457c5;
  --section-tint: #edf3ff;
}
.setup-colour-teal {
  --section-accent: #087c77;
  --section-tint: #e9f7f5;
}
.setup-colour-purple {
  --section-accent: #7542aa;
  --section-tint: #f4edfb;
}
.setup-colour-amber {
  --section-accent: #986000;
  --section-tint: #fff5df;
}
.setup-colour-rose {
  --section-accent: #b03963;
  --section-tint: #fff0f5;
}
.setup-colour-indigo {
  --section-accent: #5053ad;
  --section-tint: #f0f0ff;
}
.setup-step[class*="setup-colour-"] {
  border-left: 4px solid var(--section-accent);
  background: var(--section-tint);
}
.settings-section[class*="setup-colour-"] > summary {
  border-left: 4px solid var(--section-accent);
  background: var(--section-tint);
  gap: 16px;
}
[class*="setup-colour-"] .setup-number {
  background: var(--section-accent);
  color: white;
  flex-shrink: 0;
}
.settings-section > summary > .setup-number {
  display: grid;
  place-items: center;
}

.portal-user-filters {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.portal-user-filters label {
  display: grid;
  gap: 6px;
  flex: 1;
  min-width: 150px;
}
.portal-user-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  height: 100dvh;
  max-height: 100dvh;
  width: min(560px, 100vw);
  max-width: 100vw;
  border: 0;
  padding: 0;
  color: var(--text, #203047);
  background: white;
  box-shadow: -8px 0 40px #0002;
}
.portal-user-dialog::backdrop {
  background: #17283d66;
}
.portal-user-dialog .panel-body {
  padding: 24px;
}
.portal-user-dialog .panel-head {
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}
.portal-store-choices {
  max-height: 280px;
  overflow: auto;
  display: grid;
  gap: 8px;
}
.portal-user-dialog fieldset {
  border: 1px solid #dce3ed;
  border-radius: 12px;
  padding: 16px;
}
.portal-user-dialog .field {
  margin-bottom: 18px;
}

.portal-user-dialog [hidden],
#access [hidden] {
  display: none !important;
}
.portal-user-filters input,
.portal-user-filters select {
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #dce3ed;
  border-radius: 8px;
  background: #fff;
  color: #203047;
  font: inherit;
  width: 100%;
}
.portal-user-filters select {
  padding-right: 32px;
}

.print-secondary-actions {
  position: relative;
}
.print-secondary-actions > .form-actions {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 12;
  min-width: 240px;
  padding: 12px;
  background: white;
  border: 1px solid #dce3ed;
  border-radius: 12px;
  box-shadow: 0 8px 24px #18283f20;
  flex-direction: column;
  align-items: stretch;
}

.staff-page > .toolbar {
  margin-bottom: 20px;
}
.staff-page [data-search] {
  align-items: end;
  margin-bottom: 20px;
}
.staff-page [data-search] .field {
  flex: 1;
  max-width: 420px;
}
.staff-page .staff-invitation > summary {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
}
.staff-page .connected-form .staff-access-option {
  display: flex;
  align-items: center;
  gap: 12px;
}
.staff-page .connected-form .staff-access-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 20px;
}

/* Compact, task-focused store staff lists. */
.staff-page .panel-body {
  padding: 24px;
}
.staff-page .staff-invitation {
  background: transparent;
  border: 0;
}
.staff-page .staff-invitation > summary {
  display: inline-flex;
  padding: 12px 18px;
}
.staff-page .staff-invitation[open] form {
  margin-top: 16px;
  background: white;
  border: 1px solid var(--border, #dce3ed);
  border-radius: 12px;
}
.staff-list-heading,
.staff-member-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.mobile-staff .staff-member {
  padding: 20px 24px;
}
.staff-member-heading p {
  margin: 4px 0;
}
.staff-member [data-member-details] {
  margin-top: 20px;
  border-top: 1px solid #e5eaf0;
  padding-top: 16px;
}
.staff-inactive {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.staff-inactive input {
  width: 16px;
  height: 16px;
  margin: 0;
}
.staff-link-option summary {
  cursor: pointer;
  color: #52627a;
  font-size: 14px;
}
.staff-link-option button {
  margin-top: 12px;
}

/* Hidden controls must remain hidden despite layout display rules. */
[hidden] {
  display: none !important;
}
.empty-caught-up {
  padding: 64px 24px;
  text-align: center;
  font-size: 24px;
  font-weight: 650;
  color: #087f70;
}
.settings-tabs {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}
.printer-advanced {
  margin-top: 24px;
}
.printer-advanced-content > * {
  margin-bottom: 18px;
}
.shipment-progress {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 0;
}

/* Compact store and shipment navigation. */
#app .location-switch {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
}
#app .location-switch select {
  width: auto;
  min-width: 180px;
  max-width: min(340px, 65vw);
  padding-right: 30px;
}
.shipment-selector {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px;
}
.shipment-selector > .field {
  flex: 0 0 190px;
}
.load-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: 48px;
}
@media (max-width: 600px) {
  .shipment-selector {
    gap: 12px;
  }
  .load-tabs .btn {
    white-space: normal;
  }
}

/* Compact vehicle workspace: one aligned header and task toolbar. */
.vehicle-workspace .vehicle-workspace-head {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.vehicle-workspace-head h1 {
  margin: 0;
  font-size: 28px;
}
.vehicle-workspace-head > div {
  flex: 1;
}
.vehicle-workspace .print-single {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
.vehicle-workspace .print-single input {
  width: 210px;
  min-height: 40px;
}
.vehicle-workspace .print-found:empty {
  display: none;
}
.vehicle-workspace .tabs {
  display: flex;
  align-items: center;
  margin: 0 0 12px;
  gap: 12px;
}
.vehicle-workspace .tabs .tab {
  margin: 0;
  padding: 10px 8px;
}
.vehicle-workspace .vehicle-workspace-table .panel-body {
  padding: 16px;
}
.vehicle-workspace .shipment-selector {
  align-items: center;
  gap: 16px;
}
.vehicle-workspace .shipment-selector > .field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin: 0;
}
.vehicle-workspace .shipment-selector select {
  width: 165px;
  min-height: 40px;
  padding: 8px;
}
.vehicle-workspace .load-tabs {
  min-height: 40px;
  gap: 8px;
}
.vehicle-workspace .btn {
  min-height: 40px;
  padding: 8px 12px;
}
.vehicle-workspace .shipment-progress {
  margin: 12px 0;
  font-size: 14px;
}
.vehicle-workspace .vehicle-workspace-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
}
.vehicle-workspace-actions > label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.vehicle-workspace table td,
.vehicle-workspace table th {
  padding: 12px 10px;
  vertical-align: middle;
}
.vehicle-workspace td .btn.text {
  min-height: 0;
  padding: 0;
  margin-bottom: 4px;
}
.vehicle-workspace .pdi-row-type {
  width: 160px;
  min-height: 38px;
  padding: 6px 10px;
}
.vehicle-workspace .pdi-result {
  display: block;
  max-width: 220px;
  margin-top: 5px;
}
.vehicle-workspace-table {
  overflow-x: auto;
}
@media (max-width: 700px) {
  .vehicle-workspace-head > div {
    flex-basis: 100%;
    order: 3;
  }
  .vehicle-workspace-head > a {
    margin-left: auto;
  }
  .vehicle-workspace table {
    min-width: 800px;
  }
}
#connected-print.vehicle-workspace .vehicle-workspace-table .panel-body {
  padding: 16px;
}
#connected-print.vehicle-workspace .shipment-selector > .field {
  flex-direction: row;
}
#connected-print.vehicle-workspace .shipment-selector > .field > span {
  margin: 0;
}
#connected-print.vehicle-workspace .panel-body > .shipment-progress {
  margin: 10px 0;
}
#connected-print.vehicle-workspace .vehicle-workspace-actions {
  margin: 0 0 10px;
}

/* Weekend workflow polish: status, adaptive header and viewport-centred dialogs. */
dialog[open] {
  position: fixed;
  inset: 0;
  margin: auto;
  max-height: calc(100dvh - 40px);
  max-width: calc(100vw - 32px);
  overflow: auto;
}
dialog.portal-user-dialog[open] {
  height: auto;
  border-radius: 16px;
}
.action-dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
}
.action-dialog p {
  white-space: pre-line;
  margin: 16px 0 24px;
}
.action-dialog::backdrop {
  background: #10203066;
}
.load-tabs .btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.load-print-status {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
}
.load-print-status.complete {
  color: #14623e;
  background: #e2f4e9;
}
.load-print-status.pending {
  color: #825305;
  background: #fff1d3;
}
.load-day-status {
  font-size: 13px;
  flex-basis: 100%;
  color: var(--muted);
}
.template-editor > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  cursor: pointer;
  font-weight: 600;
}
.workspace {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.workspace > .main {
  flex: 1;
  width: 100%;
  min-width: 0;
}
.workspace-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 20px 24px;
  color: var(--muted);
  font-size: 12px;
}
.workspace-footer a {
  color: inherit;
}
.topbar .location-switch {
  min-width: 0;
  max-width: 100%;
  flex: 0 1 auto;
}
.topbar #connected-store {
  max-width: 100%;
  min-width: 0;
}
.topbar .compact-language select {
  width: 66px;
  min-width: 0;
  padding: 8px;
  font-size: 13px;
}
.topbar .top-avatar {
  margin-left: auto;
  gap: 12px;
}
@media (max-width: 700px) {
  .topbar {
    flex-wrap: wrap;
  }
  .topbar .location-switch {
    max-width: 100%;
  }
  .workspace-footer {
    gap: 12px;
  }
}

.vehicle-dialog {
  padding: 24px;
}
.vehicle-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.vehicle-dialog-header h2 {
  margin: 0 0 8px;
}
.vehicle-dialog-header p {
  margin: 0;
}
.vehicle-dialog .dialog-close {
  font-size: 24px;
  line-height: 1;
  padding: 8px 12px;
  border: 0;
}
.vehicle-dialog-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}
.vehicle-dialog-details dt {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}
.vehicle-dialog-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.vehicle-dialog-details > div:first-child {
  grid-column: 1/-1;
}
.vehicle-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.damage-badge {
  background: #fff0f1;
  color: #a52a32;
  border-radius: 6px;
  padding: 4px 8px;
  display: inline-block;
}
.inline-print-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
}

/* Vehicle lookup and print controls share one deliberate control height. */
#app #connected-print .vehicle-workspace-head {
  align-items: center;
}
#app #connected-print .print-single {
  align-items: center;
  gap: 10px;
}
#app #connected-print .print-single input,
#app #connected-print .print-single select,
#app #connected-print .print-single .btn,
#app #connected-print .vehicle-workspace-head > .btn {
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  margin: 0;
}
#app #connected-print .single-print-actions {
  align-items: stretch;
  gap: 0;
  height: 44px;
}
#app #connected-print .single-print-actions select {
  border-radius: 8px 0 0 8px;
}
#app #connected-print .single-print-actions .btn {
  border-radius: 0 8px 8px 0;
}
#app #connected-print [hidden] {
  display: none !important;
}
.vehicle-lookup-label {
  font-weight: 600;
}
.inventory-filter {
  max-width: 420px;
  margin: 16px 0;
}

.workspace-choice-panel {
  display: block;
  background: #edf4ff;
  border: 2px solid #91b5ff;
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
}
.workspace-choice-panel h3 {
  margin: 0 0 14px;
  color: #183e85;
}
.workspace-choice-panel .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.vehicle-workspace-actions[hidden],
.toolbar[hidden] {
  display: none;
}
.vehicle-selection-tools {
  margin: 8px 0;
}
.shipment-vehicle-table > thead > tr > th:first-child,
.shipment-vehicle-table > tbody > tr > td:first-child {
  width: 48px;
  min-width: 48px;
  box-sizing: border-box;
}
.load-timestamp {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
#connected-print.vehicle-workspace
  .panel-body
  > .shipment-progress:has(+ .load-timestamp) {
  padding-bottom: 0;
  margin-bottom: 4px;
}
#connected-print.vehicle-workspace .panel-body > .load-timestamp {
  margin: 0 0 16px;
}

/* PDI settings: distinct presets, readable inputs and feedback beside Save. */
#pdi-settings .pdi-base-card,
#pdi-settings .pdi-preset-card {
  padding: 20px;
  margin: 20px 0;
  border: 1px solid #c6d8f5;
  border-left: 5px solid #285be7;
  border-radius: 12px;
  background: #f1f6ff;
}
#pdi-settings .pdi-preset-card:nth-child(even) {
  border-left-color: #147d70;
  background: #f0f9f6;
}
#pdi-settings .pdi-preset-card > summary {
  font-weight: 700;
  color: #204a94;
  padding: 4px 0 16px;
}
#pdi-settings input,
#pdi-settings select,
#pdi-settings textarea {
  background-color: #fff;
}
#pdi-settings .pdi-operation {
  background: #fff;
  border-color: #c6d8f5;
}
#pdi-settings .pdi-text-job {
  background: #fff9e9;
  border-color: #dfbc68;
}
#pdi-settings .pdi-order-buttons {
  display: flex;
  gap: 8px;
  align-items: end;
  flex-wrap: wrap;
}
#pdi-settings .pdi-save-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}
#pdi-settings .pdi-save-bar p {
  margin: 0;
}

#pdi-settings .pdi-default-badge {
  margin-left: 8px;
  font-size: 12px;
  vertical-align: middle;
}
#pdi-settings .pdi-default-badge[hidden] {
  display: none;
}
#pdi-settings .pdi-default-control {
  align-items: start;
  gap: 8px;
}

.btn.label-choice-windshield {
  background: #2457d6;
  border-color: #2457d6;
  color: white;
}
.btn.label-choice-key {
  background: #9a5700;
  border-color: #9a5700;
  color: white;
}
.btn.label-choice-jacket {
  background: #7240a6;
  border-color: #7240a6;
  color: white;
}
.btn.label-choice-all {
  background: #147564;
  border-color: #147564;
  color: #fff;
}
.btn.label-choice:hover:not(:disabled) {
  filter: brightness(0.9);
}

/* Admin usage reporting: quantities are individual items, not supplier packs. */
.usage-report .usage-section {
  padding: 24px;
  margin: 20px 0;
}
.usage-report .usage-section h3 {
  margin: 0 0 14px;
}
.usage-report .usage-section p {
  margin: 12px 0;
}
.usage-report .notice {
  background: #fff4db;
  border-left: 4px solid #b67a13;
  padding: 14px;
  border-radius: 8px;
}
.usage-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.usage-metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border-radius: 12px;
}
.usage-metric strong {
  font-size: 30px;
  line-height: 1.2;
}
.usage-metric.blue {
  background: #edf3ff;
  color: #204f9e;
}
.usage-metric.green {
  background: #eaf6f0;
  color: #20654d;
}
.usage-metric.purple {
  background: #f3effd;
  color: #66419b;
}

.mobile-staff [data-member-details] {
  margin-left: auto;
  max-width: 560px;
  padding: 16px;
  background: #f0f5ff;
  border-radius: 12px;
}
.mobile-staff [data-member-details] .form-actions {
  justify-content: flex-end;
}

/* Only demonstration workspaces retain a top safety banner. */
#app:not(:has(.demo-bar)) .sidebar {
  top: 0;
}
