* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* Larger, clearer relationship selectors (customer, vehicle, merchant, and job). */
body.premium-ui form select,
form select {
  width: 100%;
  min-height: 56px;
  padding: 0 50px 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background-color: rgba(8, 10, 14, 0.9);
  background-image:
    linear-gradient(45deg, transparent 50%, #ff8a3d 50%),
    linear-gradient(135deg, #ff8a3d 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% - 2px),
    calc(100% - 14px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  color: #f4f6fa;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

body.premium-ui form select:hover,
form select:hover {
  border-color: rgba(255, 138, 61, 0.48);
  background-color: rgba(13, 16, 21, 0.96);
}

body.premium-ui form select:focus,
form select:focus {
  border-color: #ff7a18;
  box-shadow: 0 0 0 4px rgba(255, 122, 24, 0.14);
}

body.premium-ui form select option,
form select option {
  padding: 12px;
  background: #171a20;
  color: #f4f6fa;
  font-weight: 500;
}

.job-board-add {
  width: calc(100% - 24px);
  margin: 0 12px 14px;
  padding: 10px 12px;
  border: 1px dashed rgba(255, 122, 24, 0.5);
  border-radius: 10px;
  background: rgba(255, 122, 24, 0.07);
  color: #ff9a52;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.job-board-add:hover {
  border-color: #ff7a18;
  background: rgba(255, 122, 24, 0.14);
  color: #fff;
}

/* Compact secondary navigation used above dedicated creation forms. */
.form-card .admin-back-link,
.topbar .admin-back-link {
  width: fit-content;
  min-height: 38px;
  margin: 0 0 22px;
  padding: 8px 13px;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: #cbd3df;
  box-shadow: none;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1;
}

.form-card .admin-back-link::before,
.topbar .admin-back-link::before {
  content: "←";
  color: #ff7a18;
  font-size: 1rem;
}

.form-card .admin-back-link:hover,
.topbar .admin-back-link:hover {
  transform: translateX(-2px);
  border-color: rgba(255, 122, 24, 0.42);
  background: rgba(255, 122, 24, 0.08);
  color: #fff;
  box-shadow: none;
}

.topbar .admin-back-link {
  margin: 0;
}

.admin-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0;
}

.customer-flow {
  min-height: calc(100vh - 150px);
  display: grid;
  align-content: center;
  gap: 34px;
  max-width: 980px;
  margin: 0 auto;
  padding: 36px 0 70px;
}

.customer-flow-heading {
  max-width: 650px;
}

.customer-flow-heading h2 {
  margin: 0 0 12px;
  color: #f5f7fa;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.customer-flow-heading > p:last-child {
  margin: 0;
  color: #9da7b4;
  font-size: 16px;
}

.customer-flow-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.customer-flow-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(28,32,40,.96), rgba(16,19,24,.98));
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
  transition: transform 180ms ease, border-color 180ms ease;
}

.customer-flow-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,122,24,.5);
  background: radial-gradient(circle at 100% 0, rgba(255,151,73,.2), transparent 38%), linear-gradient(145deg, #2b1b12, #171515);
  box-shadow: 0 20px 55px rgba(255,106,0,.14);
}

.customer-flow-card-primary {
  background: linear-gradient(145deg, rgba(28,32,40,.96), rgba(16,19,24,.98));
  border-color: rgba(255,255,255,.11);
  transition: transform 180ms ease, border-color 180ms ease, background 220ms ease, box-shadow 220ms ease;
}

.customer-flow-card-primary:hover {
  background: radial-gradient(circle at 100% 0, rgba(255,151,73,.2), transparent 38%), linear-gradient(145deg, #2b1b12, #171515);
  border-color: rgba(255,122,24,.5);
  box-shadow: 0 20px 55px rgba(255,106,0,.14);
}

.customer-flow-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 35px;
  border: 1px solid rgba(255,122,24,.45);
  border-radius: 13px;
  color: #ff8a3d;
  font-size: 24px;
}

.customer-flow-card small { color: #ff8a3d; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.customer-flow-card strong { margin-top: 8px; font-size: 25px; }
.customer-flow-card em { margin-top: 10px; color: #aab2be; font-size: 13px; font-style: normal; line-height: 1.5; }
.customer-flow-card b { margin-top: auto; color: #ff9a52; font-size: 12px; }

@media (max-width: 700px) {
  .customer-flow { min-height: auto; padding-top: 22px; }
  .customer-flow-options { grid-template-columns: 1fr; }
  .customer-flow-card { min-height: 240px; }
}

.admin-primary-action,
.admin-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 106, 0, 0.45);
  border-radius: 12px;
  background: linear-gradient(135deg, #ff7a18, #e85300);
  color: #fff;
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(232, 83, 0, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.admin-primary-action:hover,
.admin-back-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(232, 83, 0, 0.3);
}

.admin-primary-action--secondary,
.admin-back-link {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.admin-create-card {
  max-width: 680px;
  margin: 32px auto;
}

.admin-form-intro {
  margin: 0 0 20px;
  color: #aeb7c5;
}

/* Premium garage workspace */
:root {
  --mecho-bg: #090b0f;
  --mecho-surface: rgba(20, 23, 29, 0.92);
  --mecho-surface-raised: rgba(28, 32, 40, 0.96);
  --mecho-border: rgba(255, 255, 255, 0.09);
  --mecho-border-strong: rgba(255, 130, 42, 0.32);
  --mecho-text: #f7f8fa;
  --mecho-muted: #979eaa;
  --mecho-accent: #ff7626;
  --mecho-accent-bright: #ff934f;
  --mecho-success: #35c989;
  --mecho-radius: 16px;
  --mecho-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

body {
  color: var(--mecho-text);
  background:
    radial-gradient(circle at 78% -10%, rgba(255, 118, 38, 0.12), transparent 34%),
    radial-gradient(circle at 28% 110%, rgba(54, 95, 190, 0.08), transparent 38%),
    var(--mecho-bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.app-shell {
  isolation: isolate;
}

.sidebar {
  width: 258px;
  padding: 26px 16px 20px;
  border-right: 1px solid var(--mecho-border);
  background: rgba(12, 14, 18, 0.84);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.sidebar-brand {
  padding: 0 9px 22px;
  border-bottom-color: var(--mecho-border);
}

.sidebar-logo {
  width: 58px;
  filter: drop-shadow(0 8px 18px rgba(255, 106, 0, 0.2));
}

.sidebar-brand h1 {
  color: var(--mecho-text);
  font-size: 21px;
  letter-spacing: -0.02em;
}

.sidebar-brand p {
  color: var(--mecho-muted);
  font-size: 12px;
}

.sidebar-nav {
  gap: 6px;
}

.sidebar-link,
.sidebar-logout {
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #b7bdc8;
  font-size: 14px;
  font-weight: 650;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.sidebar-link:hover {
  color: #fff;
  border-color: var(--mecho-border);
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(2px);
}

.sidebar-link.active {
  color: #fff;
  border-color: var(--mecho-border-strong);
  background: linear-gradient(135deg, rgba(255, 118, 38, 0.24), rgba(255, 118, 38, 0.1));
  box-shadow: inset 3px 0 0 var(--mecho-accent), 0 8px 24px rgba(255, 106, 0, 0.08);
}

.sidebar-logout {
  color: #f3a9a9;
  background: rgba(229, 83, 83, 0.08);
}

.dashboard-main {
  padding: 30px clamp(22px, 3.2vw, 52px) 52px;
}

.topbar {
  min-height: 68px;
  margin-bottom: 26px;
  padding: 0 2px 18px;
  border-bottom: 1px solid var(--mecho-border);
  background: transparent;
}

.topbar h1 {
  color: var(--mecho-text);
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -0.035em;
}

.eyebrow {
  color: var(--mecho-accent-bright);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.form-card,
.table-card,
.dashboard-filter,
.metric-card,
.settings-panel {
  border: 1px solid var(--mecho-border);
  border-radius: var(--mecho-radius);
  background: linear-gradient(145deg, rgba(25, 28, 35, 0.94), rgba(17, 20, 25, 0.94));
  box-shadow: var(--mecho-shadow);
}

.form-card,
.table-card {
  padding: clamp(18px, 2.4vw, 28px);
  margin-bottom: 22px;
}

.form-card h2,
.table-card h2 {
  color: var(--mecho-text);
  letter-spacing: -0.02em;
}

input,
textarea,
select {
  min-height: 45px;
  border: 1px solid var(--mecho-border);
  border-radius: 11px;
  color: var(--mecho-text);
  background: rgba(7, 9, 12, 0.7);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input:hover,
textarea:hover,
select:hover {
  border-color: rgba(255, 255, 255, 0.17);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--mecho-accent);
  background: rgba(12, 14, 18, 0.95);
  box-shadow: 0 0 0 4px rgba(255, 118, 38, 0.12);
  outline: none;
}

button {
  min-height: 42px;
  border-radius: 11px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--mecho-accent), #e8540c);
  box-shadow: 0 8px 22px rgba(232, 84, 12, 0.18);
  transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease;
}

button:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 11px 28px rgba(232, 84, 12, 0.25);
}

button:active:not(:disabled) {
  transform: translateY(0) scale(0.985);
}

.job-board {
  gap: 18px;
}

.job-board-column {
  min-height: 520px;
  padding: 16px;
  border-color: var(--mecho-border);
  border-radius: var(--mecho-radius);
  background: rgba(14, 17, 22, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.job-board-column > header {
  padding: 2px 2px 12px;
  border-bottom: 1px solid var(--mecho-border);
}

.job-board-column > header h2 {
  color: #dfe3e9;
  letter-spacing: -0.015em;
}

.job-board-column > header span {
  background: rgba(255, 255, 255, 0.07);
}

.job-board-column:nth-child(1) > header h2 { color: #d8b65d; }
.job-board-column:nth-child(2) > header h2 { color: #73a7ff; }
.job-board-column:nth-child(3) > header h2 { color: var(--mecho-success); }

.job-board-card {
  padding: 17px;
  border-color: var(--mecho-border);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(34, 38, 47, 0.98), rgba(25, 28, 35, 0.98));
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.22);
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.job-board-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 118, 38, 0.3);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

.job-board-column.drag-over {
  border-color: var(--mecho-accent);
  background: rgba(255, 118, 38, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 118, 38, 0.22), 0 0 32px rgba(255, 118, 38, 0.08);
}

.job-invoice-btn {
  background: linear-gradient(135deg, #29b879, #168d5b);
  box-shadow: 0 8px 22px rgba(41, 184, 121, 0.17);
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

th {
  color: var(--mecho-muted);
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

td,
th {
  border-color: var(--mecho-border) !important;
}

tbody tr {
  transition: background 150ms ease;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.modal-overlay {
  background: rgba(2, 3, 5, 0.78);
  backdrop-filter: blur(10px);
}

.modal-panel {
  border: 1px solid var(--mecho-border);
  border-radius: 20px;
  background: #15181e;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

@media (max-width: 820px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: relative;
    width: 100%;
    min-height: auto;
    padding: 14px;
  }

  .sidebar-brand {
    padding-bottom: 14px;
  }

  .sidebar-nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .sidebar-link {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
  }

  .sidebar-logout {
    margin-top: 10px;
  }

  .dashboard-main {
    padding: 22px 16px 42px;
  }

  .job-board {
    grid-template-columns: repeat(3, minmax(280px, 82vw));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

body {
  background: #111;
  color: #fff;
  min-height: 100vh;
}

.whatsapp-retired {
  display: none !important;
}

.login-container,
.dashboard-container {
  width: 100%;
  padding: 30px;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  width: 280px;
  min-height: 100vh;
  padding: 24px 18px;
  background: #171717;
  border-right: 1px solid #2a2a2a;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid #2a2a2a;
}

.sidebar-logo {
  width: 72px;
  height: auto;
  object-fit: contain;
}

.sidebar-brand h1 {
  color: #ff6a00;
  font-size: 24px;
  margin-bottom: 4px;
}

.sidebar-brand p {
  color: #cfcfcf;
  font-size: 14px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-subnav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: -2px 0 4px 0;
  padding-left: 14px;
}

.sidebar-subnav[hidden] {
  display: none;
}

.hidden {
  display: none !important;
}

.sidebar-link,
.sidebar-logout {
  width: 100%;
  text-align: left;
}

.sidebar-link {
  background: transparent;
  color: #f2f2f2;
  border: 1px solid #333;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: #ff6a00;
  border-color: #ff6a00;
  color: #fff;
  opacity: 1;
}

.sidebar-sublink {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #2c2c2c;
  border-radius: 10px;
  background: #141414;
  color: #d3d3d3;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
}

.sidebar-sublink:hover,
.sidebar-sublink.active {
  background: #262626;
  border-color: #ff6a00;
  color: #fff;
  opacity: 1;
}

.sidebar-logout {
  margin-top: auto;
  background: #2b2b2b;
}

.dashboard-main {
  flex: 1;
  min-width: 0;
  padding: 30px;
}

.dashboard-page {
  display: none;
}

.dashboard-page.active {
  display: block;
}

.dashboard-filter {
  background: #1d1d1d;
  border: 1px solid #2f2f2f;
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.dashboard-filter h2 {
  color: #ff6a00;
  margin-bottom: 8px;
}

.dashboard-filter p {
  color: #cfcfcf;
}

.job-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 16px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 8px;
}

.job-board-column {
  min-height: 420px;
  padding: 14px;
  border: 1px solid #303030;
  border-radius: 12px;
  background: #181818;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.job-board-column > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.job-board-column > header h2 {
  font-size: 17px;
}

.job-board-column > header span {
  min-width: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #303030;
  color: #ddd;
  font-size: 12px;
  text-align: center;
}

.job-board-column.drag-over {
  border-color: #ff6a00;
  background: rgba(255, 106, 0, 0.08);
}

.job-card-list {
  display: grid;
  gap: 12px;
  min-height: 340px;
  align-content: start;
}

.job-board-card {
  padding: 15px;
  border: 1px solid #333;
  border-radius: 10px;
  background: #222;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  cursor: grab;
}

.job-board-card.dragging {
  opacity: 0.45;
}

.job-board-card h3 {
  margin: 10px 0 7px;
  color: #fff;
  font-size: 17px;
}

.job-card-topline,
.job-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.job-card-topline span,
.job-card-vehicle,
.job-card-description {
  color: #cfcfcf;
  font-size: 13px;
}

.job-card-topline strong {
  color: #ff8a38;
}

.job-card-description {
  margin-top: 8px;
  line-height: 1.45;
}

.job-card-status {
  width: 100%;
  margin: 13px 0 10px;
}

.job-card-actions button,
.job-invoice-btn {
  width: auto;
}

.job-invoice-btn {
  width: 100%;
  margin-top: 10px;
  background: #00a65a;
}

.job-board-empty {
  padding: 28px 12px;
  border: 1px dashed #3b3b3b;
  border-radius: 9px;
  color: #888;
  text-align: center;
}

.job-board-error {
  color: #ff7777;
}

.date-range {
  display: flex;
  gap: 12px;
}

.date-range label {
  color: #cfcfcf;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: bold;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.metric-card {
  background: #1d1d1d;
  border: 1px solid #2f2f2f;
  border-radius: 8px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 150px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.metric-card h2 {
  color: #ff6a00;
  font-size: 20px;
  margin-bottom: 8px;
}

.metric-card p {
  color: #cfcfcf;
}

.metric-chart {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 96px;
  background: conic-gradient(#ff6a00 0deg, #333 0deg);
  position: relative;
}

.metric-chart::before {
  content: "";
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #1d1d1d;
}

.metric-chart span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 24px;
  font-weight: bold;
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.report-card {
  background: #1d1d1d;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 120px;
  padding: 22px;
  text-align: left;
}

.report-card span {
  color: #ff6a00;
  font-size: 20px;
}

.report-card small {
  color: #cfcfcf;
  font-size: 14px;
  line-height: 1.4;
}

.report-card.active,
.report-card:hover {
  border-color: #ff6a00;
  opacity: 1;
}

.bo-chart-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bo-alert-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bo-alert-item {
  padding: 14px;
  border: 1px solid rgba(255, 106, 0, 0.3);
  border-radius: 8px;
  background: rgba(255, 106, 0, 0.08);
}

.bo-alert-item strong {
  display: block;
  margin-bottom: 6px;
  color: #ffb27b;
}

.bo-alert-item span {
  color: #f2f2f2;
  line-height: 1.4;
}

.bo-chart-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bo-chart-row-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.bo-chart-row-head strong {
  color: #fff;
}

.bo-chart-row-head span {
  color: #ffb27b;
  font-weight: 700;
}

.bo-chart-bar-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #2a2a2a;
  overflow: hidden;
}

.bo-chart-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff6a00, #ffb27b);
}

.bo-payment-breakdown {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.bo-pie-chart {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1f1f1f;
  position: relative;
  margin: 0 auto;
}

.bo-pie-chart::before {
  content: "";
  position: absolute;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: #171717;
}

.bo-pie-chart span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.bo-pie-legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bo-pie-legend-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.bo-pie-legend-item i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
}

.bo-pie-legend-item span {
  color: #d7d7d7;
}

.bo-pie-legend-item strong {
  color: #fff;
}

.bo-hour-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 280px;
}

.bo-hour-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.bo-hour-bar-value {
  color: #d7d7d7;
  font-size: 12px;
}

.bo-hour-bar-track {
  width: 100%;
  height: 180px;
  border-radius: 16px;
  background: linear-gradient(180deg, #262626, #171717);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 10px 0;
}

.bo-hour-bar-fill {
  width: 70%;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffb27b, #ff6a00);
}

.bo-hour-bar-wrap span:last-child {
  color: #a9a9a9;
  font-size: 11px;
  text-align: center;
}

.bo-line-chart {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bo-line-chart-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.bo-line-chart-head span {
  display: block;
  margin-bottom: 4px;
  color: #a9a9a9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bo-line-chart-head strong {
  color: #fff;
  font-size: 20px;
}

.bo-line-chart-canvas {
  height: 220px;
  padding: 0;
  border: 1px solid #2f2f2f;
  border-radius: 12px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008)),
    #171717;
  background-size: 100% 25%, 100% 100%, 100% 100%;
  overflow: hidden;
}

.bo-line-chart-canvas svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}

.bo-line-chart-axis {
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.bo-line-chart-area {
  opacity: 1;
}

.bo-line-chart-path {
  fill: none;
  stroke: #ff6a00;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 3px 8px rgba(255, 106, 0, 0.28));
}

.bo-line-chart-point {
  fill: #171717;
  stroke: #ff6a00;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.bo-line-chart-labels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 10px;
}

.bo-line-chart-label {
  padding: 8px 10px;
  border: 1px solid #2f2f2f;
  border-radius: 8px;
  background: #151515;
}

.bo-line-chart-label span {
  display: block;
  margin-bottom: 6px;
  color: #a9a9a9;
  font-size: 11px;
  font-weight: 700;
}

.bo-line-chart-label strong {
  color: #fff;
  font-size: 14px;
}

.back-office-subpage {
  display: none;
}

.back-office-subpage.active {
  display: block;
}

.product-page-header {
  margin-bottom: 20px;
}

.product-page-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.product-page-actions button {
  width: auto;
  min-width: 140px;
}

.product-action-panel {
  margin-bottom: 20px;
}

.product-action-panel[hidden] {
  display: none;
}

.product-action-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.product-action-panel-head h2 {
  margin-bottom: 8px;
}

.product-action-panel-head p {
  color: #cfcfcf;
  line-height: 1.5;
}

.product-action-panel-head button {
  width: auto;
  min-width: 110px;
}

.product-create-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.discount-management-grid {
  align-items: start;
}

.multi-select {
  min-height: 132px;
}

.product-create-grid input,
.product-create-grid select {
  width: 100%;
}

.discount-code-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.discount-code-tools .secondary-btn {
  width: auto;
  min-width: 96px;
  padding-inline: 14px;
}

.editable-cell {
  cursor: pointer;
}

.inline-product-input {
  width: 104px;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid #303030;
  border-radius: 8px;
  background: #111;
  color: #fff;
  font: inherit;
  font-weight: 700;
}

.inline-stock-input {
  width: 82px;
}

.inline-product-input:focus {
  border-color: #ff6a00;
  box-shadow: 0 0 0 2px rgba(255, 106, 0, 0.18);
  outline: none;
}

.inline-product-input:disabled {
  opacity: 0.55;
  cursor: progress;
}

.vendor-panel {
  max-width: 920px;
}

.vendor-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.vendor-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #d8d8d8;
  font-size: 13px;
  font-weight: 700;
}

.vendor-form-grid input,
.vendor-form-grid select {
  width: 100%;
}

.vendor-form-wide {
  grid-column: 1 / -1;
}

.vendor-table td,
.vendor-table th {
  vertical-align: middle;
}

.purchase-order-panel {
  max-width: 1100px;
}

.po-header-grid,
.po-entry-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.65fr);
  gap: 14px;
  align-items: end;
}

.po-header-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #d8d8d8;
  font-size: 13px;
  font-weight: 700;
}

.po-header-grid select,
.po-header-grid input,
.po-entry-panel input {
  width: 100%;
}

.po-entry-panel {
  margin-top: 16px;
  grid-template-columns: minmax(260px, 1fr) auto;
}

.product-action-panel-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}

.product-action-panel-footer p {
  flex: 1;
}

.product-action-panel-footer button {
  width: auto;
  min-width: 140px;
}

.product-import-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.product-import-actions button {
  width: auto;
}

.product-list-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.product-status-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-status-tab {
  width: auto;
  min-width: 110px;
  padding: 10px 14px;
  border: 1px solid #333;
  background: #171717;
  color: #e8e8e8;
}

.product-status-tab.active,
.product-status-tab:hover {
  background: #ff6a00;
  border-color: #ff6a00;
  color: #fff;
  opacity: 1;
}

.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.report-summary-item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.report-summary-item span {
  display: block;
  color: #cfcfcf;
  font-size: 12px;
  margin-bottom: 6px;
}

.report-summary-item strong {
  color: #fff;
  font-size: 18px;
}

.report-table-wrap {
  overflow-x: auto;
}

.report-click-row {
  cursor: pointer;
}

.report-click-row:hover {
  background: rgba(255, 106, 0, 0.12);
}

.report-transaction-detail[hidden],
.report-extra-filter[hidden] {
  display: none;
}

.report-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.report-menu-card {
  min-height: 132px;
  padding: 18px;
  border: 1px solid #333;
  border-radius: 8px;
  background: #1d1d1d;
  color: #fff;
  text-align: left;
}

.report-menu-card strong {
  display: block;
  margin-bottom: 8px;
  color: #ff6a00;
  font-size: 18px;
}

.report-menu-card span {
  display: block;
  color: #cfcfcf;
  font-size: 13px;
  line-height: 1.4;
}

.report-menu-card:hover {
  border-color: #ff6a00;
  background: #242424;
  opacity: 1;
}

.report-date-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
}

.report-date-actions label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #cfcfcf;
  font-size: 13px;
  font-weight: 700;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.settings-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.settings-menu-card {
  min-height: 132px;
  padding: 18px;
  border: 1px solid #333;
  border-radius: 8px;
  background: #1d1d1d;
  color: #fff;
  text-align: left;
}

.settings-menu-card strong {
  display: block;
  margin-bottom: 8px;
  color: #ff6a00;
  font-size: 18px;
}

.settings-menu-card span {
  display: block;
  color: #cfcfcf;
  font-size: 13px;
  line-height: 1.4;
}

.settings-menu-card:hover {
  border-color: #ff6a00;
  background: #242424;
  opacity: 1;
}

.settings-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid #333;
  border-radius: 8px;
  background: #171717;
}

.settings-section.settings-detail-page {
  display: none;
  margin-bottom: 18px;
}

.settings-section.settings-detail-page.active {
  display: flex;
}

.settings-section h3 {
  color: #ff6a00;
  margin-bottom: 4px;
}

.settings-section textarea {
  min-height: 90px;
  padding: 12px;
  border-radius: 8px;
  outline: none;
  resize: vertical;
  font-family: inherit;
}

#autoStoreReceiptLogoPreview {
  display: none;
  max-height: 120px;
  max-width: 260px;
  object-fit: contain;
}

.receipt-logo-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.receipt-logo-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border: 1px solid #333;
  border-radius: 8px;
  background: #101010;
}

.receipt-logo-editor[hidden] {
  display: none;
}

#receiptLogoEditorCanvas {
  width: 100%;
  max-height: 380px;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  background: #fff;
  cursor: move;
  touch-action: none;
}

.settings-choice-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid #2d2d2d;
  border-radius: 8px;
  background: #121212;
}

.settings-choice-group span {
  grid-column: 1 / -1;
  color: #cfcfcf;
  font-size: 13px;
  font-weight: 700;
}

.settings-choice-group button {
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid #333;
  background: #242424;
  color: #e8e8e8;
}

.settings-choice-group button.active,
.settings-choice-group button:hover {
  border-color: #ff6a00;
  background: #ff6a00;
  color: #fff;
  opacity: 1;
}

.hr-panel {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.hr-panel.active {
  display: flex;
}

.hr-permission-dropdowns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hr-permission-dropdown {
  border: 1px solid #333;
  border-radius: 8px;
  background: #1f1f1f;
  overflow: hidden;
}

.hr-permission-dropdown summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 700;
  color: #fff;
  background: #292929;
}

.hr-permission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
}

.hr-permission-btn {
  min-height: 44px;
  border: 1px solid #333;
  background: #242424;
  color: #e8e8e8;
}

.hr-permission-btn.active,
.hr-permission-btn:hover {
  border-color: #ff6a00;
  background: #ff6a00;
  color: #fff;
  opacity: 1;
}

.product-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-table-actions .action-btn {
  margin-right: 0;
}

.report-panel {
  display: none;
}

.report-panel.active {
  display: block;
}

.report-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.quick-filters button {
  width: auto;
}

.permission-table {
  overflow-x: auto;
}

.permission-table h3 {
  color: #ff6a00;
  margin-bottom: 12px;
}

.permission-table table {
  width: 100%;
  border-collapse: collapse;
}

.permission-table th,
.permission-table td {
  border-bottom: 1px solid #333;
  padding: 10px;
  text-align: left;
}

.permission-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #ff6a00;
}

.logo-preview-wrap {
  align-items: center;
  border: 1px solid #333;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 140px;
  margin-bottom: 18px;
  padding: 18px;
}

#settingsLogoPreview {
  display: none;
  max-height: 120px;
  max-width: 260px;
  object-fit: contain;
}

.toggle-row {
  align-items: center;
  border: 1px solid #333;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}

.toggle-row span {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toggle-row strong {
  color: #ff6a00;
}

.toggle-row small {
  color: #cfcfcf;
}

.toggle-row input[type="checkbox"] {
  width: 26px;
  height: 26px;
  accent-color: #ff6a00;
}

.color-picker-row {
  align-items: center;
  border: 1px solid #333;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
}

.color-picker-row span {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.color-picker-row strong {
  color: #ff6a00;
}

.color-picker-row small {
  color: #cfcfcf;
}

.color-picker-row input[type="color"] {
  width: 58px;
  height: 42px;
  padding: 3px;
  border: 1px solid #444;
  border-radius: 8px;
  background: #2a2a2a;
  cursor: pointer;
}

.job-cost-builder {
  border: 1px solid #333;
  border-radius: 8px;
  padding: 14px;
}

.job-cost-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.job-cost-header h3 {
  color: #ff6a00;
  font-size: 16px;
}

.job-cost-header button {
  width: auto;
  padding: 8px 10px;
}

.part-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px auto;
  gap: 10px;
  margin-bottom: 10px;
}

.part-row .remove-part-btn {
  background: #333;
  padding: 8px 10px;
  white-space: nowrap;
}

.settings-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.settings-action-card {
  background: #1d1d1d;
  border: 1px solid #333;
  border-radius: 8px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 110px;
  padding: 22px;
  text-align: left;
}

.settings-action-card span {
  color: #ff6a00;
  font-size: 20px;
}

.settings-action-card small {
  color: #cfcfcf;
  font-size: 14px;
  line-height: 1.4;
}

.settings-action-card.active,
.settings-action-card:hover {
  border-color: #ff6a00;
  opacity: 1;
}

.settings-panel {
  display: none;
}

.settings-panel.active {
  display: block;
}

.eyebrow {
  color: #bdbdbd;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.login-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  position: relative;
  padding-bottom: 76px;
}

.login-card,
.form-card,
.table-card {
  background: #1d1d1d;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.login-card {
  width: 100%;
  max-width: 400px;
}

.login-card h1,
.topbar h1,
.form-card h2,
.table-card h2 {
  margin-bottom: 15px;
  color: #ff6a00;
}

.login-card p {
  margin-bottom: 15px;
}

.login-copyright {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 22px;
  color: #b8b8b8;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.login-divider {
  margin: 18px 0 14px;
  padding-top: 16px;
  border-top: 1px solid #333;
  color: #cfcfcf;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input,
textarea,
select {
  padding: 12px;
  border: 1px solid #343434;
  border-radius: 8px;
  background: #161616;
  color: #f4f4f4;
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: #8f8f8f;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #ff6a00;
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.16);
}

input[type="date"],
input[type="time"],
input[type="datetime-local"] {
  color-scheme: dark;
}

input[type="number"] {
  color-scheme: dark;
}

select option {
  background: #161616;
  color: #f4f4f4;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f4f4f4;
  box-shadow: 0 0 0 1000px #161616 inset, 0 0 0 3px rgba(255, 106, 0, 0.16);
  transition: background-color 9999s ease-in-out 0s;
}

.date-picker-field {
  position: relative;
  display: flex;
  align-items: stretch;
  min-width: 170px;
}

.date-picker-field input[type="text"] {
  width: 100%;
  padding-right: 46px;
}

.hidden-date-picker {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.date-picker-btn {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  border-radius: 8px;
  background: #2b2b2b;
  color: transparent;
  font-size: 0;
  transform: translateY(-50%);
}

.date-picker-btn::before {
  content: "";
  width: 15px;
  height: 15px;
  display: block;
  margin: 0 auto;
  border: 2px solid #f4f4f4;
  border-top-width: 5px;
  border-radius: 2px;
}

.compact-date-picker {
  width: 150px;
  max-width: 100%;
}

.compact-date-picker input[type="text"] {
  min-width: 0;
}

.due-date-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
}

.due-date-control .action-btn {
  white-space: nowrap;
}

.phone-input-row {
  display: flex;
  align-items: stretch;
}

.phone-prefix {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px 0 0 8px;
  background: #2a2a2a;
  color: #fff;
  font-weight: bold;
  white-space: nowrap;
}

.phone-input-row input {
  flex: 1;
  min-width: 0;
  border-radius: 0 8px 8px 0;
}

button {
  padding: 12px;
  border: none;
  border-radius: 8px;
  background: #ff6a00;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  opacity: 0.9;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.secondary-btn {
  background: #333;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
}

.modal-overlay[hidden] {
  display: none;
}

.modal-panel {
  position: relative;
  width: min(100%, 420px);
  padding: 24px;
  border: 1px solid #333;
  border-radius: 8px;
  background: #1d1d1d;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
}

.modal-panel h2 {
  color: #ff6a00;
  margin-bottom: 10px;
  padding-right: 38px;
}

.modal-panel p {
  color: #cfcfcf;
  line-height: 1.45;
  margin-bottom: 16px;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
  background: #2a2a2a;
  font-size: 22px;
  line-height: 1;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-actions button {
  min-width: 120px;
}

.modal-message {
  min-height: 20px;
  margin-bottom: 0 !important;
  color: #ff3b3b !important;
  font-size: 14px;
  font-weight: bold;
}

.receipt-preview-shell {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #333;
  border-radius: 10px;
  background: #151515;
}

.receipt-preview-label {
  margin-bottom: 10px;
  color: #ff6a00;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.receipt-preview {
  margin: 0;
  color: #f4f4f4;
  white-space: pre-wrap;
  font-family: "Courier New", monospace;
  font-size: 13px;
  line-height: 1.45;
}

.consent-section {
  padding: 12px;
  border: 1px solid #333;
  border-radius: 8px;
  background: #1d1d1d;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}

.checkbox-row input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
}

.consent-section small,
.form-help {
  color: #cfcfcf;
  font-size: 13px;
  line-height: 1.4;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.form-card {
  margin-bottom: 30px;
}

.table-card table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.table-card {
  overflow-x: auto;
}

.table-card th,
.table-card td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #333;
}

.action-btn {
  margin-right: 8px;
  padding: 8px 10px;
  font-size: 12px;
}

.invoice-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 300px;
}

.invoice-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.invoice-actions .action-btn {
  margin: 0;
  min-height: 30px;
  padding: 7px 10px;
  font-size: 11px;
  white-space: nowrap;
}

.invoice-actions .action-danger {
  background: #3a3a3a;
}

.pay-link-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin-top: 6px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #2a2a2a;
  color: #ff6a00;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
}

.pay-link-chip:hover {
  background: #333;
  opacity: 1;
}

.status-active {
  color: #00d26a;
  font-weight: bold;
}

.status-inactive {
  color: #ff3b3b;
  font-weight: bold;
}
.logo {
  width: 160px;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
}
.top-logo {
  width: 200px;       /* small size for dashboard */
  height: auto;
  object-fit: contain;
}

.pos-shell {
  min-height: 100vh;
  padding: 20px;
  background:
    radial-gradient(circle at top left, rgba(255, 106, 0, 0.18), transparent 30%),
    linear-gradient(180deg, #121212 0%, #090909 100%);
}

.pos-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 22px;
  margin-bottom: 18px;
  border: 1px solid #2f2f2f;
  border-radius: 18px;
  background: rgba(19, 19, 19, 0.92);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.24);
}

.pos-brand-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pos-header-logo {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  object-fit: contain;
  background: #fff;
  padding: 8px;
}

.pos-kicker {
  margin-bottom: 6px;
  color: #ffb27b;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pos-brand-block h1 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 28px;
}

.pos-brand-block span {
  color: #cfcfcf;
  font-size: 14px;
}

.pos-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pos-status-rail {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-right: 6px;
}

.pos-status-chip {
  min-width: 118px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.pos-status-chip strong {
  display: block;
  color: #fff;
  font-size: 15px;
}

.pos-status-label {
  display: block;
  margin-bottom: 4px;
  color: #b7b7b7;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pos-tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.pos-tabbar .sidebar-link {
  width: auto;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(29, 29, 29, 0.95);
}

.pos-main {
  min-width: 0;
}

.pos-home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.pos-catalog-panel,
.pos-cart-panel,
.pos-search-panel,
.pos-results-panel {
  border: 1px solid #2f2f2f;
  border-radius: 18px;
  background: rgba(23, 23, 23, 0.96);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

.pos-catalog-panel {
  padding: 18px;
}

.pos-page-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pos-page-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid #2f2f2f;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(255, 106, 0, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(26, 26, 26, 0.98), rgba(17, 17, 17, 0.98));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.pos-page-hero h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 28px;
}

.pos-page-hero p:not(.eyebrow) {
  color: #c9c9c9;
  max-width: 760px;
  line-height: 1.5;
}

.pos-app-card {
  border: 1px solid #2f2f2f;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(28, 28, 28, 0.97), rgba(18, 18, 18, 0.98));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.pos-sale-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.pos-sale-toolbar h2,
.pos-cart-header h2,
.pos-section-header h3 {
  margin: 0;
  color: #fff;
}

.pos-toolbar-copy {
  margin-top: 6px;
  color: #bdbdbd;
}

.pos-toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pos-search-panel,
.pos-results-panel {
  padding: 16px;
}

.pos-search-panel {
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.12), rgba(255, 255, 255, 0.02));
}

.pos-search-panel[hidden] {
  display: none;
}

.pos-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 12px;
  margin-bottom: 10px;
}

.pos-search-row input {
  min-height: 58px;
  padding: 16px 18px;
  border: 1px solid #343434;
  background: #161616;
  color: #f4f4f4;
  font-size: 18px;
}

.pos-search-row button {
  min-height: 58px;
  font-size: 16px;
}

.pos-search-dropdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  max-height: 280px;
  overflow-y: auto;
}

.pos-search-dropdown[hidden] {
  display: none;
}

.pos-search-dropdown-item {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #353535;
  background: #191919;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  text-align: left;
}

.pos-search-dropdown-item strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 15px;
}

.pos-search-dropdown-item span {
  color: #c6c6c6;
  font-size: 12px;
  line-height: 1.4;
}

.pos-search-dropdown-item em {
  color: #ffb27b;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.pos-search-dropdown-item:hover {
  border-color: #ff6a00;
  background: rgba(255, 106, 0, 0.12);
  opacity: 1;
}

.pos-hidden-scan-input {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.pos-home-status {
  min-height: 20px;
  margin: 2px 0 16px;
  color: #d6d6d6;
}

.pos-section-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.pos-section-header span {
  color: #bdbdbd;
  font-size: 13px;
}

.pos-product-filter-bar,
.pos-department-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.pos-department-strip {
  margin-top: -4px;
}

.pos-department-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.pos-department-breadcrumb span {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.pos-department-tile {
  width: 100%;
  min-height: 112px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #353535;
  background: linear-gradient(180deg, #222 0%, #191919 100%);
  color: #f2f2f2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
}

.pos-department-tile-label {
  display: block;
  color: #adadad;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pos-department-tile strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
}

.pos-department-tile.active,
.pos-department-tile:hover {
  border-color: #ff6a00;
  background: linear-gradient(180deg, rgba(255, 106, 0, 0.2), rgba(255, 106, 0, 0.08));
  color: #fff;
  opacity: 1;
}

.pos-filter-chip {
  width: auto;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #353535;
  background: #1d1d1d;
  color: #ececec;
  font-size: 13px;
  font-weight: 700;
}

.pos-filter-chip.active,
.pos-filter-chip:hover {
  border-color: #ff6a00;
  background: rgba(255, 106, 0, 0.14);
  color: #fff;
  opacity: 1;
}

.pos-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.pos-catalog-pager {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 120px;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.pos-catalog-pager[hidden] {
  display: none;
}

.pos-catalog-pager button {
  width: 100%;
}

.pos-catalog-pager span {
  color: #d7d7d7;
  font-weight: 700;
  text-align: center;
}

.pos-product-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid #343434;
  border-radius: 16px;
  background: linear-gradient(180deg, #222 0%, #191919 100%);
}

.pos-product-card h4 {
  margin: 0;
  color: #fff;
  font-size: 17px;
}

.pos-product-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #cfcfcf;
  font-size: 13px;
}

.pos-product-price {
  color: #ffb27b;
  font-size: 22px;
  font-weight: bold;
}

.pos-stock-pill {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: #2e2e2e;
  color: #f2f2f2;
  font-size: 12px;
  font-weight: bold;
}

.pos-stock-pill.low {
  background: rgba(255, 106, 0, 0.18);
  color: #ffb27b;
}

.pos-product-card button {
  margin-top: auto;
}

.pos-product-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.pos-favorite-toggle {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 14px;
  border: 1px solid #3a3a3a;
  background: #171717;
  color: #f2f2f2;
  font-size: 18px;
  line-height: 1;
}

.pos-favorite-toggle.is-favorite {
  border-color: #ff6a00;
  background: rgba(255, 106, 0, 0.14);
  color: #ffb27b;
}

.pos-cart-panel {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
}

.pos-cart-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.pos-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 106, 0, 0.16);
  color: #ffb27b;
  font-weight: bold;
  font-size: 13px;
}

.pos-cart-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 4px;
}

.pos-cart-item {
  padding: 14px;
  border: 1px solid #333;
  border-radius: 16px;
  background: #181818;
}

.pos-cart-item-main,
.pos-cart-item-meta,
.pos-cart-item-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.pos-cart-item-main {
  margin-bottom: 8px;
}

.pos-cart-item-main strong {
  color: #fff;
  font-size: 16px;
}

.pos-cart-item-type {
  color: #ffb27b;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.pos-cart-item-meta {
  color: #cfcfcf;
  font-size: 13px;
  margin-bottom: 12px;
}

.pos-cart-item-actions {
  justify-content: space-between;
}

.pos-qty-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: #232323;
}

.pos-qty-control button {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
}

.pos-item-total {
  color: #fff;
  font-weight: bold;
  font-size: 16px;
}

.pos-totals-panel {
  padding: 16px;
  border: 1px solid #333;
  border-radius: 16px;
  background: linear-gradient(180deg, #191919 0%, #121212 100%);
}

.pos-total-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  color: #d7d7d7;
}

.pos-total-row strong {
  color: #fff;
}

.pos-total-row-grand {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid #333;
  font-size: 18px;
}

.pos-total-row-grand strong {
  color: #ffb27b;
  font-size: 26px;
}

.pos-payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pos-pay-btn {
  min-height: 64px;
  font-size: 18px;
  border-radius: 16px;
}

.pos-pay-btn-card {
  background: #ffffff;
  color: #111;
}

.pos-empty-state {
  padding: 22px;
  border: 1px dashed #3a3a3a;
  border-radius: 16px;
  color: #bdbdbd;
  text-align: center;
}

.pos-split-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.45fr);
  gap: 18px;
  align-items: start;
}

.pos-transactions-layout {
  grid-template-columns: minmax(290px, 0.9fr) minmax(0, 1.4fr) minmax(240px, 0.65fr);
}

.pos-report-filters {
  grid-template-columns: 1fr;
}

.pos-check-card,
.pos-extra-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pos-extra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pos-side-note-card {
  padding: 20px;
  border: 1px solid #2f2f2f;
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(255, 106, 0, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(24, 24, 24, 0.98), rgba(15, 15, 15, 0.98));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.pos-side-note-card h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 22px;
}

.pos-side-note-card p {
  color: #d0d0d0;
  line-height: 1.55;
}

.pos-mini-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.pos-mini-checklist span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
}

.pos-mini-checklist span::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff6a00;
  box-shadow: 0 0 0 5px rgba(255, 106, 0, 0.12);
}

@media (max-width: 900px) {
  .app-shell {
    flex-direction: column;
  }

  .sidebar {
    position: static;
    width: 100%;
    min-height: auto;
  }

  .sidebar-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-main {
    padding: 20px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .reports-grid {
    grid-template-columns: 1fr;
  }

  .settings-actions {
    grid-template-columns: 1fr;
  }

  .report-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-menu-grid,
  .settings-menu-grid,
  .hr-permission-grid,
  .report-date-actions,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .report-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-filter {
    align-items: flex-start;
    flex-direction: column;
  }

  .pos-header,
  .pos-sale-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .pos-home-layout {
    grid-template-columns: 1fr;
  }

  .pos-cart-panel {
    position: static;
  }

  .pos-split-layout,
  .pos-transactions-layout,
  .pos-extra-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .login-container,
  .dashboard-container,
  .dashboard-main {
    padding: 16px;
  }

  .sidebar {
    padding: 18px 14px;
  }

  .sidebar-nav {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
  }

  .metric-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .date-range {
    width: 100%;
    flex-direction: column;
  }

  .date-range label {
    width: 100%;
  }

  .report-filters {
    grid-template-columns: 1fr;
  }

  .part-row {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions button {
    width: 100%;
  }

  .report-summary-grid {
    grid-template-columns: 1fr;
  }

  .pos-shell {
    padding: 14px;
  }

  .pos-header-actions,
  .pos-payment-grid,
  .pos-search-row {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .pos-header-actions {
    display: grid;
  }

  .pos-status-rail {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin-right: 0;
  }

  .pos-brand-block {
    align-items: flex-start;
  }

  .pos-brand-block h1 {
    font-size: 22px;
  }

  .pos-tabbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pos-tabbar .sidebar-link {
    width: 100%;
    text-align: center;
  }

  .pos-page-hero,
  .pos-app-card {
    padding-left: 16px;
    padding-right: 16px;
  }

  .pos-search-row {
    display: grid;
  }

  .pos-product-grid {
    grid-template-columns: 1fr;
  }

  .pos-cart-item-main,
  .pos-cart-item-meta,
  .pos-cart-item-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Garage-specific cascade guard */
body.premium-ui {
  color: var(--mecho-text);
  background: radial-gradient(circle at 78% -10%, rgba(255, 118, 38, 0.12), transparent 34%), var(--mecho-bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.premium-ui .sidebar {
  width: 258px; padding: 26px 16px 20px; border-right: 1px solid var(--mecho-border);
  background: rgba(12, 14, 18, 0.88); backdrop-filter: blur(24px);
}
body.premium-ui .sidebar-link,
body.premium-ui .sidebar-logout {
  min-height: 44px; padding: 11px 14px; border: 1px solid transparent; border-radius: 11px;
  color: #b7bdc8; background: transparent; box-shadow: none;
}
body.premium-ui .sidebar-link.active {
  color: #fff; border-color: var(--mecho-border-strong);
  background: linear-gradient(135deg, rgba(255, 118, 38, 0.24), rgba(255, 118, 38, 0.1));
  box-shadow: inset 3px 0 0 var(--mecho-accent);
}
body.premium-ui .dashboard-main { padding: 30px clamp(22px, 3.2vw, 52px) 52px; }
body.premium-ui .topbar {
  min-height: 68px; margin-bottom: 26px; padding: 0 2px 18px;
  border-bottom: 1px solid var(--mecho-border); background: transparent;
}
body.premium-ui .form-card,
body.premium-ui .table-card,
body.premium-ui .dashboard-filter,
body.premium-ui .metric-card {
  border: 1px solid var(--mecho-border); border-radius: var(--mecho-radius);
  background: linear-gradient(145deg, rgba(25, 28, 35, 0.96), rgba(17, 20, 25, 0.96));
  box-shadow: var(--mecho-shadow);
}
body.premium-ui input,
body.premium-ui textarea,
body.premium-ui select {
  min-height: 45px; border: 1px solid var(--mecho-border); border-radius: 11px;
  color: var(--mecho-text); background: rgba(7, 9, 12, 0.72);
}
body.premium-ui .job-board-column {
  min-height: 520px; padding: 16px; border: 1px solid var(--mecho-border);
  border-radius: var(--mecho-radius); background: rgba(14, 17, 22, 0.76);
}
body.premium-ui .job-board-card {
  padding: 17px; border: 1px solid var(--mecho-border); border-radius: 13px;
  background: linear-gradient(145deg, rgba(34, 38, 47, 0.98), rgba(25, 28, 35, 0.98));
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.22);
  animation: job-card-arrive 180ms ease-out;
  transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease;
}
body.premium-ui .job-board-card.syncing { opacity: .72; border-color: rgba(255,118,38,.42); }
@keyframes job-card-arrive { from { opacity: .45; transform: translateY(7px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

body.premium-ui .topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.workspace-tabs { display: inline-flex; gap: 5px; padding: 5px; border: 1px solid var(--mecho-border); border-radius: 13px; background: rgba(7,9,12,.65); }
.workspace-tab { min-height: 48px; width: auto; padding: 11px 24px; border: 0; border-radius: 9px; background: transparent; color: #9fa8b5; font-size: 14px; font-weight: 750; cursor: pointer; }
.workspace-tab.active { background: linear-gradient(135deg, #ff7a18, #e85300); color: #fff; box-shadow: 0 7px 18px rgba(232,83,0,.22); }
.sidebar-brand { position: relative; }
.sidebar-toggle { flex: 0 0 32px; width: 32px; min-height: 32px; margin-left: auto; padding: 0; border: 1px solid var(--mecho-border); border-radius: 9px; background: rgba(255,255,255,.04); color: #cbd2dc; font-size: 23px; cursor: pointer; }
.sidebar-group-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 11px 14px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: #b7bdc8; text-align: left; cursor: pointer; }
.sidebar-group-toggle > span { display: flex; align-items: center; gap: 10px; }
.sidebar-group-toggle:hover { border-color: var(--mecho-border); background: rgba(255,255,255,.04); color: #fff; }
.nav-symbol { display: inline-grid; place-items: center; width: 20px; color: #ff8a3d; font-size: 16px; }
body.premium-ui .sidebar-sublink { border-color: transparent; background: transparent; }
body.premium-ui .sidebar-sublink:hover,
body.premium-ui .sidebar-sublink.active { border-color: rgba(255,118,38,.25); background: rgba(255,118,38,.08); }
body.premium-ui .sidebar { transition: width 200ms ease, padding 200ms ease; }
body.premium-ui .sidebar.collapsed { width: 82px; padding-inline: 12px; }
.sidebar.collapsed .sidebar-logo { width: 48px; }
.sidebar.collapsed .sidebar-brand-copy,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .sidebar-group-toggle > b,
.sidebar.collapsed .sidebar-subnav { display: none; }
.sidebar.collapsed .sidebar-brand { justify-content: center; }
.sidebar.collapsed .sidebar-toggle { position: absolute; right: -29px; top: 13px; z-index: 3; background: #171b21; }
.sidebar.collapsed .sidebar-link,
.sidebar.collapsed .sidebar-logout,
.sidebar.collapsed .sidebar-group-toggle { display: flex; justify-content: center; padding-inline: 8px; }
@media (max-width: 820px) {
  body.premium-ui .sidebar { position: relative; width: 100%; min-height: auto; padding: 14px; }
  body.premium-ui .sidebar.collapsed { width: 100%; }
  .sidebar.collapsed .sidebar-nav,
  .sidebar.collapsed .sidebar-logout { display: none; }
  .sidebar.collapsed .sidebar-brand-copy { display: block; }
  .sidebar.collapsed .sidebar-toggle { position: static; margin-left: auto; }
  body.premium-ui .sidebar-nav { display: flex; flex-direction: row; overflow-x: auto; }
  body.premium-ui .sidebar-link { flex: 0 0 auto; width: auto; }
  body.premium-ui .dashboard-main { padding: 22px 16px 42px; }
  body.premium-ui .topbar { align-items: flex-start; flex-direction: column; }
  .workspace-tabs { width: 100%; }
  .workspace-tab { flex: 1; }
}

/* Tablet landscape: compact navigation with a full three-stage workflow. */
@media (min-width: 821px) and (max-width: 1180px) {
  body.premium-ui .sidebar { width: 214px; padding: 20px 13px; }
  body.premium-ui .sidebar.collapsed { width: 76px; }
  .sidebar-logo { width: 58px; }
  body.premium-ui .dashboard-main { padding: 22px 18px 42px; }
  body.premium-ui .topbar { margin-bottom: 20px; }
  .workspace-tab { min-height: 50px; padding-inline: 22px; }
  .job-board { grid-template-columns: repeat(3, minmax(250px, 1fr)); gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 10px; }
  body.premium-ui .job-board-column { min-height: 500px; padding: 13px; scroll-snap-align: start; }
  .customer-flow { min-height: calc(100vh - 130px); }
  .customer-flow-card { min-height: 260px; }
  .form-card.admin-create-card { width: min(100%, 720px); }
  .table-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-card table { min-width: 760px; }
  .action-btn, .job-card-status { min-height: 44px; }
}

/* Tablet portrait: top navigation, two-column menu, and swipeable job stages. */
@media (min-width: 600px) and (max-width: 820px) {
  .app-shell { display: block; }
  body.premium-ui .sidebar { position: relative; width: 100%; min-height: auto; padding: 14px 18px; }
  body.premium-ui .sidebar-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow: visible; }
  body.premium-ui .sidebar-link,
  .sidebar-group-toggle { width: 100%; min-height: 48px; }
  .sidebar-subnav { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; }
  .sidebar-subnav[hidden] { display: none; }
  .sidebar-logout { min-height: 48px; }
  body.premium-ui .dashboard-main { padding: 20px 18px 38px; }
  body.premium-ui .topbar { align-items: stretch; gap: 16px; }
  .workspace-tabs { width: 100%; }
  .workspace-tab { flex: 1; min-height: 52px; font-size: 15px; }
  .job-board { grid-template-columns: repeat(3, minmax(310px, 76vw)); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding: 2px 2px 14px; }
  body.premium-ui .job-board-column { min-height: 520px; scroll-snap-align: center; }
  .job-board-card { touch-action: pan-y; }
  .job-card-status { min-height: 50px; font-size: 16px; }
  .customer-flow { min-height: auto; padding: 28px 0 48px; }
  .customer-flow-options { gap: 14px; }
  .customer-flow-card { min-height: 250px; padding: 22px; }
  .form-card.admin-create-card { width: min(100%, 680px); margin-inline: auto; }
  .form-card input,
  .form-card select,
  .form-card button { min-height: 52px; }
  .table-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-card table { min-width: 760px; }
  .modal-panel { width: min(90vw, 650px); max-height: 88vh; overflow-y: auto; }
}
