:root {
  --bg-app: #f4f6fa;
  --bg-card: #ffffff;
  --bg-card-hover: #fff5f5;
  --bg-surface: #ffffff;
  --bg-input: #ffffff;
  --border-subtle: #dce2eb;
  --border-focus: #c62828;
  
  --text-main: #17243b;
  --text-muted: #526078;
  --text-dim: #748198;
  
  --primary: #c62828;
  --primary-glow: rgba(198, 40, 40, 0.18);
  --accent-navy: #17365d;
  
  --color-success: #16794c;
  --color-success-bg: #e8f5ee;
  --color-warning: #a45b00;
  --color-warning-bg: #fff3dc;
  --color-danger: #b4232c;
  --color-danger-bg: #fdebed;
  --color-info: #244e7a;
  --color-info-bg: #eaf1f8;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(23, 36, 59, 0.06);
  --shadow-md: 0 8px 24px -4px rgba(23, 36, 59, 0.1);
  --shadow-lg: 0 16px 36px -6px rgba(23, 36, 59, 0.16);

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  background-image:
    radial-gradient(at 0% 0%, rgba(198, 40, 40, 0.06) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(23, 54, 93, 0.05) 0px, transparent 50%);
  background-attachment: fixed;
}

/* ---------------------------------
   App Header
   --------------------------------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 1.25rem;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #c62828, #a91f27);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 18px rgba(198, 40, 40, 0.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #17365d, #526078);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--accent-navy);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.branch-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: #f1f4f8;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.dot-live {
  width: 8px;
  height: 8px;
  background-color: var(--color-success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--color-success);
}

.user-profile-menu {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #17365d, #274b73);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.user-details-mini {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-navy);
}

/* ---------------------------------
   Buttons & Inputs
   --------------------------------- */
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #c62828, #a91f27);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(198, 40, 40, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #a91f27, #c62828);
  box-shadow: 0 6px 20px rgba(198, 40, 40, 0.28);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #f1f4f8;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background: #e7ecf3;
  border-color: #c8d1df;
}

.btn-icon {
  background: transparent;
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  color: var(--text-main);
  background: #edf1f6;
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--primary-glow);
  outline: none;
}

.anomaly-tree-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.anomaly-tree-list > li {
  margin: 0.4rem 0;
}

.anomaly-tree-node {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--text-main);
}

.anomaly-tree-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.anomaly-tree-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-anomaly-action {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
}

.user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.user-name-combobox {
  position: relative;
}

.user-name-suggestions {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  left: 0;
  z-index: 20;
  max-height: 240px;
  overflow-y: auto;
  padding: 0.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.user-name-suggestions[hidden] {
  display: none;
}

.user-name-suggestion {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.75rem;
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  text-align: left;
}

.user-name-suggestion:hover,
.user-name-suggestion:focus {
  background: var(--bg-card-hover);
  outline: none;
}

.user-name-suggestion small {
  color: var(--text-muted);
}

.btn-user-action {
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
}

/* ---------------------------------
   Main Layout & Auth View
   --------------------------------- */
.app-main {
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.view-auth {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg);
}

.auth-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #fdebed;
  color: var(--accent-navy);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.auth-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-group input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-main);
  font-size: 0.95rem;
}

/* ---------------------------------
   Cards & Content Units
   --------------------------------- */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}

.card-header {
  margin-bottom: 1.5rem;
}

.card-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.card-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------------------------------
   Driver Tabs & Report Form
   --------------------------------- */
.driver-nav-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: #edf1f6;
  border: 1px solid var(--border-subtle);
  padding: 0.35rem;
  border-radius: var(--radius-md);
}

.report-form-card {
  max-width: 760px;
  margin: 0 auto 1.5rem;
}

.report-form-card .form-step {
  margin-bottom: 1.25rem;
}

.driver-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
}

.driver-tab.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(198, 40, 40, 0.2);
}

.badge-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.driver-tab-content {
  display: none;
}

.driver-tab-content.active {
  display: block;
}

.form-step {
  display: block;
  margin-bottom: 1.75rem;
}

.step-num {
  width: 32px;
  height: 32px;
  background: #eaf1f8;
  color: var(--accent-navy);
  border: 1px solid #c8d8e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step-body {
  flex: 1;
  min-width: 0;
}

.step-title {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.vehicle-search-results {
  display: grid;
  gap: 0.35rem;
  max-height: 260px;
  margin-top: 0.4rem;
  overflow-y: auto;
}

.vehicle-search-result {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.75rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-align: left;
}

.vehicle-search-result strong {
  color: var(--accent-navy);
  font-size: 1rem;
}

.vehicle-search-result span,
.vehicle-search-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.photo-pick-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  cursor: pointer;
}

.report-photo-preview {
  display: grid;
  justify-items: start;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.report-photo-preview img,
.drawer-report-photo img {
  display: block;
  max-width: 100%;
  max-height: 320px;
  border-radius: var(--radius-md);
  object-fit: contain;
}

.photo-error {
  min-height: 1.1rem;
  margin-top: 0.35rem;
  color: var(--color-danger);
  font-size: 0.85rem;
}

.drawer-report-photo[hidden],
.report-photo-preview[hidden] {
  display: none;
}

/* Anomaly Breadcrumb & Grid */
.anomaly-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f1f5fa;
  border: 1px solid #c8d8e9;
  border-radius: var(--radius-md);
  padding: 0.65rem 0.95rem;
  margin-bottom: 0.75rem;
}

.breadcrumb-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-navy);
  font-weight: 700;
}

.breadcrumb-items {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.btn-text-sm {
  margin-left: auto;
  background: transparent;
  color: var(--accent-navy);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: underline;
}

.anomaly-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}

.btn-anomaly-choice {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  padding: 0.85rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.15s ease;
}

.btn-anomaly-choice:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Severity Radio Chips */
.severity-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.severity-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0.5rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.severity-chip input {
  display: none;
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.severity-low .chip-dot { background: var(--color-success); }
.severity-normal .chip-dot { background: var(--color-info); }
.severity-high .chip-dot { background: var(--color-warning); }
.severity-urgent .chip-dot { background: var(--color-danger); }

.severity-chip.active {
  border-color: currentColor;
  box-shadow: 0 0 12px currentColor;
}
.severity-low.active { color: var(--color-success); background: var(--color-success-bg); }
.severity-normal.active { color: var(--color-info); background: var(--color-info-bg); }
.severity-high.active { color: var(--color-warning); background: var(--color-warning-bg); }
.severity-urgent.active { color: var(--color-danger); background: var(--color-danger-bg); }

.pulse {
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

/* ---------------------------------
   Manager Sub-Navigation
   --------------------------------- */
.manager-nav-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.btn-subtab {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.55rem 1rem;
  white-space: nowrap;
}

.btn-subtab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ---------------------------------
   Toolbar & Filters
   --------------------------------- */
.card-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.status-filters {
  display: flex;
  gap: 0.4rem;
  background: #f1f4f8;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.25rem;
}

.filter-btn {
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
}

.filter-btn.active {
  background: #fdebed;
  color: var(--primary);
}

.toolbar-right {
  display: flex;
  gap: 0.75rem;
  flex: 1;
  max-width: 480px;
  justify-content: flex-end;
}

.search-box {
  position: relative;
  flex: 1;
}

.search-box svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.search-box input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.85rem 0.55rem 2.25rem;
  color: var(--text-main);
  font-size: 0.88rem;
}

/* ---------------------------------
   Reports Feed Cards
   --------------------------------- */
.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.report-item-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.report-item-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(198, 40, 40, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(23, 36, 59, 0.12);
}

.report-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}

.vehicle-reg-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  background: #edf1f6;
  border: 1px solid var(--border-subtle);
  color: var(--accent-navy);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.badge-status {
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-open { background: var(--color-warning-bg); color: var(--color-warning); }
.status-in_progress { background: var(--color-info-bg); color: var(--color-info); }
.status-resolved { background: var(--color-success-bg); color: var(--color-success); }
.status-closed { background: rgba(148, 163, 184, 0.15); color: var(--text-muted); }

.report-title-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.report-desc-preview {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  line-height: 1.4;
  flex-grow: 1;
}

.report-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.badge-severity {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
}

.severity-urgent-tag { background: var(--color-danger-bg); color: var(--color-danger); }
.severity-high-tag { background: var(--color-warning-bg); color: var(--color-warning); }
.severity-normal-tag { background: var(--color-info-bg); color: var(--color-info); }
.severity-low-tag { background: var(--color-success-bg); color: var(--color-success); }

/* ---------------------------------
   Drawer / Modal Details
   --------------------------------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 36, 59, 0.4);
  backdrop-filter: blur(8px);
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.drawer-panel {
  width: 100%;
  max-width: 520px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-subtle);
  height: 100%;
  overflow-y: auto;
  box-shadow: -8px 0 32px rgba(23, 36, 59, 0.18);
  display: flex;
  flex-direction: column;
}

.drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f7f9fc;
  position: sticky;
  top: 0;
  z-index: 10;
}

.drawer-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-navy);
  text-transform: uppercase;
}

.drawer-title-group h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.drawer-body {
  padding: 1.5rem;
  flex-grow: 1;
}

.drawer-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.report-meta-box {
  background: #f7f9fc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.meta-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.meta-row:last-child {
  margin-bottom: 0;
}

.meta-label {
  width: 100px;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-weight: 600;
}

.meta-val {
  font-size: 0.9rem;
  font-weight: 600;
}

.meta-val.highlight {
  font-family: var(--font-mono);
  color: var(--accent-navy);
}

.meta-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 0.25rem;
}

.status-change-box {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Tasks Checklist */
.tasks-checklist {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.task-item {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.task-item.completed {
  opacity: 0.7;
  border-color: rgba(16, 185, 129, 0.3);
}

.task-item.completed .task-text {
  text-decoration: line-through;
  color: var(--text-dim);
}

.task-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-success);
  margin-top: 0.15rem;
}

.task-info {
  flex-grow: 1;
}

.task-text {
  font-size: 0.92rem;
  font-weight: 600;
  display: block;
}

.task-meta-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

.box-add-task {
  background: #f7f9fc;
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.task-form-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

/* ---------------------------------
   Tables (Fleet & Drivers)
   --------------------------------- */
.table-responsive {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th {
  padding: 0.75rem 1rem;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.data-table tr:hover td {
  background: #f7f9fc;
}

/* ---------------------------------
   Toast Notifications
   --------------------------------- */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  animation: slideIn 0.25s ease;
  max-width: 360px;
}

.toast-success { border-left: 4px solid var(--color-success); }
.toast-error { border-left: 4px solid var(--color-danger); }
.toast-info { border-left: 4px solid var(--color-info); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ---------------------------------
   Responsive Styles
   --------------------------------- */
@media (max-width: 640px) {
  .app-header {
    padding: 0.65rem 1rem;
  }
  .header-meta .user-details-mini {
    display: none;
  }
  .reports-grid {
    grid-template-columns: 1fr;
  }
  .severity-picker {
    grid-template-columns: repeat(2, 1fr);
  }
  .report-form-card {
    padding: 1rem;
  }
  .form-step {
    margin-bottom: 1rem;
  }
  .vehicle-search-result {
    min-height: 54px;
  }
  .toolbar-right {
    max-width: 100%;
    width: 100%;
  }
}

/* ==========================================================================
   DRIVER SERVICES (« MES SERVICES » / FDT 2026) STYLES
   ========================================================================== */

/* Driver Navigation Segmented Tabs */
.driver-nav-tabs {
  display: flex;
  gap: 0.5rem;
  background: var(--color-surface, #ffffff);
  padding: 0.35rem;
  border-radius: var(--radius-lg, 12px);
  border: 1px solid var(--color-border, #e2e8f0);
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.btn-driver-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-secondary, #64748b);
  background: transparent;
  border: none;
  border-radius: var(--radius-md, 8px);
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.btn-driver-tab:hover {
  color: var(--color-text, #0f172a);
  background: rgba(0, 0, 0, 0.03);
}

.btn-driver-tab.active {
  color: #ffffff;
  background: var(--color-primary, #062653);
  box-shadow: 0 2px 4px rgba(6, 38, 83, 0.2);
}

/* Period Controls Card */
.service-header-card {
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
}

.service-period-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.service-month-picker-wrap {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  max-width: 380px;
}

.service-month-select {
  flex: 2;
  font-weight: 600;
}

.service-year-select {
  flex: 1.2;
  font-weight: 600;
}

/* Status & Reminder Banner */
.service-status-banner {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border, #e2e8f0);
}

.alert-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md, 8px);
  font-size: 0.9rem;
  line-height: 1.4;
}

.alert-banner.alert-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.alert-banner.alert-warning {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  font-weight: 500;
}

.alert-banner.alert-urgent {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  font-weight: 600;
  animation: pulseWarning 2s infinite;
}

.alert-banner.alert-submitted {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-weight: 500;
}

.alert-banner.alert-closed {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

@keyframes pulseWarning {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

/* ==========================================================================
   DAILY NAVIGATION CAROUSEL & SERVICES VIEW
   ========================================================================== */

.btn-service-today {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary, #062653);
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-service-today:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.service-carousel-card {
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

/* Progress & Legend */
.calendar-progress-wrap {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border, #e2e8f0);
}

.calendar-progress-header {
  margin-bottom: 0.65rem;
}

.progress-title-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.progress-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.progress-stats {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary, #062653);
  font-family: 'JetBrains Mono', monospace;
}

.progress-bar-track {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 9999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  border-radius: 9999px;
  transition: width 0.35s ease-in-out;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.dot-completed {
  background: #10b981;
}

.legend-dot.dot-partial {
  background: #f59e0b;
}

.legend-dot.dot-empty {
  background: #cbd5e1;
}

.legend-dot.dot-today {
  background: #3b82f6;
  box-shadow: 0 0 0 2px #bfdbfe;
}

/* Horizontal Day Selector Carousel */
.day-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  position: relative;
}

.btn-carousel-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  z-index: 2;
}

.btn-carousel-nav:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

.day-carousel-track {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
  flex: 1;
}

.day-carousel-track::-webkit-scrollbar {
  height: 4px;
}

.day-carousel-track::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 9999px;
}

/* Day Carousel Card */
.day-carousel-card {
  flex: 0 0 auto;
  width: 58px;
  min-width: 52px;
  height: 72px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  cursor: pointer;
  user-select: none;
  scroll-snap-align: center;
  transition: all 0.15s ease-in-out;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.day-carousel-card:hover {
  transform: translateY(-2px);
  border-color: #94a3b8;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

.carousel-day-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}

.day-carousel-card.is-weekend .carousel-day-name {
  color: #3b82f6;
}

.carousel-day-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e293b;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.1;
}

.carousel-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-top: 0.1rem;
}

.carousel-status-dot.dot-completed {
  background: #10b981;
  box-shadow: 0 0 0 1.5px #dcfce7;
}

.carousel-status-dot.dot-partial {
  background: #f59e0b;
  box-shadow: 0 0 0 1.5px #fef3c7;
}

.carousel-status-dot.dot-empty {
  background: #cbd5e1;
}

/* Today highlight in carousel */
.day-carousel-card.is-today {
  border-color: #3b82f6;
}

.day-carousel-card.is-today::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  background: #3b82f6;
  border-radius: 50%;
}

/* Selected active day card in carousel */
.day-carousel-card.is-selected {
  background: #f0f4fa;
  border-color: var(--color-primary, #062653);
  box-shadow: 0 0 0 2px rgba(6, 38, 83, 0.25), 0 4px 8px rgba(6, 38, 83, 0.1);
  transform: translateY(-2px);
}

.day-carousel-card.is-selected .carousel-day-num {
  color: var(--color-primary, #062653);
}

.day-carousel-card.is-selected .carousel-day-name {
  color: var(--color-primary, #062653);
}

/* ==========================================================================
   ACTIVE DAY DECLARATION CARD
   ========================================================================== */

.service-active-day-card {
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  background: #ffffff;
  border-radius: var(--radius-lg, 12px);
  border: 1px solid var(--color-border, #e2e8f0);
}

.active-day-header {
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e2e8f0;
}

.active-day-nav-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.active-day-title-wrap {
  text-align: center;
  flex: 1;
}

.active-day-full-date {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.2;
}

.active-day-status-row {
  margin-top: 0.35rem;
}

.status-pill-compact {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.65rem;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #64748b;
}

.status-pill-compact.pill-completed {
  background: #dcfce7;
  color: #15803d;
}

.status-pill-compact.pill-partial {
  background: #fef3c7;
  color: #b45309;
}

.status-pill-compact.pill-empty {
  background: #f1f5f9;
  color: #64748b;
}

/* ==========================================================================
   STANDARD MODALS
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.15s ease-out;
}

.modal-card {
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  animation: fadeIn 0.15s ease-out;
}

.modal-header {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main, #0f172a);
}

.modal-body {
  padding: 1.25rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.mb-3 {
  margin-bottom: 0.85rem;
}

.btn-close-modal {
  color: #64748b;
  border-radius: 50%;
  padding: 0.35rem;
}

.btn-close-modal:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.modal-day-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
}

.modal-form-section {
  margin-bottom: 1.25rem;
}

.modal-section-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Rest Toggle Switch Card */
.rest-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.15s ease;
}

.rest-toggle-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rest-icon {
  font-size: 1.5rem;
}

.rest-toggle-title {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
}

.rest-toggle-subtitle {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
}

/* Switch control */
.switch-control {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  cursor: pointer;
  flex-shrink: 0;
}

.switch-control input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  inset: 0;
  background-color: #cbd5e1;
  border-radius: 34px;
  transition: 0.25s;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.25s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.switch-control input:checked + .switch-slider {
  background-color: #3b82f6;
}

.switch-control input:checked + .switch-slider:before {
  transform: translateX(22px);
}

/* Meal Stepper Selector */
.meal-stepper-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.btn-meal-option {
  padding: 0.65rem 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  color: #475569;
  transition: all 0.15s ease;
}

.btn-meal-option:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.btn-meal-option.active {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.15);
}

/* Primes Selection Grid */
.primes-selection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
}

.modal-prime-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: #334155;
  transition: all 0.12s ease-in-out;
  user-select: none;
}

.modal-prime-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.modal-prime-btn.active {
  background: var(--color-primary, #062653);
  border-color: var(--color-primary, #062653);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(6, 38, 83, 0.2);
}

.modal-prime-code {
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.modal-prime-label {
  font-size: 0.75rem;
  opacity: 0.85;
}

.modal-day-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.form-input-lg {
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  border-radius: 10px;
}


/* Recap & Accounting Card */
.service-recap-card {
  padding: 1.25rem;
}

.recap-section {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border, #e2e8f0);
}

.recap-title {
  margin: 0 0 0.85rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.recap-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.recap-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-label-sm {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.form-input-sm {
  padding: 0.45rem 0.65rem;
  font-size: 0.9rem;
}

/* Indicative summary list */
.indicative-primes-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.indicative-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-md, 8px);
  background: #f8fafc;
  font-size: 0.88rem;
}

.indicative-item-label {
  font-weight: 500;
  color: #334155;
}

.indicative-item-calc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: #64748b;
}

.indicative-item-total {
  font-weight: 700;
  color: #0f172a;
  font-family: 'JetBrains Mono', monospace;
}

.recap-totals-box {
  background: #f1f5f9;
  border-radius: var(--radius-md, 8px);
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.recap-totals-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
}

.recap-totals-amount {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary, #062653);
  font-family: 'JetBrains Mono', monospace;
}

.recap-disclaimer {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
  font-style: italic;
}

/* Service Actions Bar */
.service-actions-bar {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--color-border, #e2e8f0);
}

.service-actions-bar .btn-secondary,
.service-actions-bar .btn-primary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Manager Drawer & Tables */
.drawer-panel-wide {
  max-width: 850px;
}

.drawer-service-meta {
  font-size: 0.9rem;
  color: #475569;
}

.drawer-actions-group {
  display: flex;
  gap: 0.5rem;
}

.table-compact th,
.table-compact td {
  padding: 0.45rem 0.6rem;
  font-size: 0.82rem;
}

.stats-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.stat-box {
  background: #f8fafc;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: var(--radius-md, 8px);
  padding: 0.85rem 1rem;
  text-align: center;
}

.stat-box .stat-number {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  font-family: 'JetBrains Mono', monospace;
}

.stat-box .stat-label {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
}

.stat-box.stat-success {
  background: #ecfdf5;
  border-color: #a7f3d0;
}
.stat-box.stat-success .stat-number {
  color: #047857;
}

.stat-box.stat-warning {
  background: #fffbeb;
  border-color: #fde68a;
}
.stat-box.stat-warning .stat-number {
  color: #b45309;
}

.stat-box.stat-muted {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

@media (max-width: 640px) {
  .day-carousel-card {
    width: 52px;
    min-width: 48px;
    height: 68px;
  }
  .carousel-day-num {
    font-size: 1.05rem;
  }
  .btn-carousel-nav {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }
  .active-day-full-date {
    font-size: 1.05rem;
  }
  .active-day-nav-group {
    gap: 0.4rem;
  }
  .service-period-controls {
    flex-wrap: wrap;
    gap: 0.45rem;
  }
  .btn-service-today {
    padding: 0.35rem 0.6rem;
    font-size: 0.78rem;
  }
  .primes-selection-grid {
    grid-template-columns: 1fr;
  }
  .recap-grid-4 {
    grid-template-columns: 1fr 1fr;
  }
  .recap-grid-2 {
    grid-template-columns: 1fr;
  }
  .service-actions-bar {
    flex-direction: column;
  }
  .stats-overview-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Manager & Conta Drawer Edition Styles */
.mgr-input-time {
  width: 96px;
  min-width: 90px;
}

.mgr-input-meals {
  width: 55px;
  min-width: 50px;
}

.mgr-input-service {
  min-width: 140px;
}

.mgr-btn-primes {
  max-width: 170px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.table-compact input.form-input-sm {
  padding: 0.25rem 0.45rem;
  font-size: 0.82rem;
  height: 30px;
}

