:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #14b8a6;
  --primary-soft: #ccfbf1;
  --primary-ghost: rgba(13, 148, 136, 0.08);
  --bg: #edf7f5;
  --bg-deep: #d8efe9;
  --card: #ffffff;
  --border: #e2efec;
  --border-strong: #cbddd8;
  --text: #0b1f1c;
  --muted: #5b746f;
  --sidebar-w: 260px;
  --danger: #dc2626;
  --warning: #d97706;
  --success: #059669;
  --info: #0284c7;
  --shadow-sm: 0 1px 2px rgba(11, 31, 28, 0.04);
  --shadow-md: 0 8px 24px rgba(11, 31, 28, 0.06);
  --shadow-lg: 0 20px 50px rgba(11, 31, 28, 0.1);
  --radius: 16px;
  --radius-sm: 12px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 0% -10%, rgba(13, 148, 136, 0.14), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(20, 184, 166, 0.1), transparent 50%),
    linear-gradient(180deg, #f4fbf9 0%, var(--bg) 40%, #e8f4f1 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.15s var(--ease); }
a:hover { color: var(--primary-dark); }
[x-cloak] { display: none !important; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

.app-shell { display: flex; min-height: 100vh; }
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 28, 0.4);
  backdrop-filter: blur(2px);
  z-index: 35;
  animation: fadeIn 0.2s var(--ease);
}
.sidebar-overlay.show { display: block; }

.sidebar {
  width: var(--sidebar-w);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-right: 1px solid var(--border);
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  z-index: 40;
  transition: transform 0.28s var(--ease);
}
.sidebar-brand {
  padding: 1.35rem 1.25rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--primary-light), var(--primary-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.04em;
  box-shadow: 0 8px 18px rgba(13, 148, 136, 0.28);
  flex-shrink: 0;
}
.brand-text {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.brand-text span {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}
.sidebar-nav { padding: 0.35rem 0.85rem 1.5rem; overflow-y: auto; flex: 1; }
.nav-section {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 1rem 0.75rem 0.4rem;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.58rem 0.8rem;
  border-radius: 12px;
  color: #3d5550;
  font-weight: 550;
  font-size: 0.9rem;
  margin-bottom: 2px;
  transition: background 0.15s var(--ease), color 0.15s var(--ease), transform 0.15s var(--ease);
}
.nav-link svg { width: 18px; height: 18px; opacity: 0.7; flex-shrink: 0; }
.nav-link:hover {
  background: var(--primary-ghost);
  color: var(--primary-dark);
}
.nav-link:hover svg { opacity: 1; }
.nav-link.active {
  background: linear-gradient(90deg, var(--primary-soft), rgba(204, 251, 241, 0.4));
  color: var(--primary-dark);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--primary);
}
.nav-link.active svg { opacity: 1; color: var(--primary); }
.nav-link.logout {
  margin-top: 1rem;
  color: #b91c1c;
  border: 1px solid #fecaca;
  background: #fff5f5;
}
.nav-link.logout:hover { background: #fee2e2; color: #991b1b; }

.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  animation: fadeIn 0.35s var(--ease);
}
.topbar {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 30;
}
.search-box {
  flex: 1;
  max-width: 460px;
  position: relative;
}
.search-box input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.7rem 1rem 0.7rem 2.55rem;
  font-size: 0.9rem;
  font-family: inherit;
  background: rgba(237, 247, 245, 0.9);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.search-box input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}
.search-box > svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 50;
  max-height: 340px;
  overflow: auto;
  animation: fadeUp 0.18s var(--ease);
}
.search-result-item {
  display: block;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3faf8;
  color: inherit;
  transition: background 0.12s;
}
.search-result-item:hover { background: var(--bg); }
.search-result-type {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.search-result-title { font-weight: 700; margin-top: 2px; }
.topbar-actions { display: flex; align-items: center; gap: 0.65rem; }
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  color: inherit;
  transition: transform 0.15s var(--ease), border-color 0.15s, box-shadow 0.15s;
}
.icon-btn:hover {
  border-color: var(--primary-soft);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.badge-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 0 0 2px #fff;
}
.user-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.28rem 0.6rem 0.28rem 0.28rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.user-pill:hover {
  border-color: var(--primary-soft);
  box-shadow: var(--shadow-sm);
  color: inherit;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--primary-light), var(--primary-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.72rem;
}
.user-name {
  font-size: 0.85rem;
  font-weight: 700;
  padding-right: 0.3rem;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.content {
  padding: 1.6rem 1.6rem 2.5rem;
  animation: fadeUp 0.35s var(--ease);
}
.page-title {
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin: 0 0 0.3rem;
  color: var(--text);
}
.page-sub {
  color: var(--muted);
  margin: 0 0 1.35rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); }
.card + .card { margin-top: 1rem; }
.card-title {
  font-weight: 800;
  margin: 0 0 1rem;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.35rem;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.05rem 1.15rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  animation: fadeUp 0.4s var(--ease) both;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.stat-card:nth-child(1) { animation-delay: 0.02s; }
.stat-card:nth-child(2) { animation-delay: 0.06s; }
.stat-card:nth-child(3) { animation-delay: 0.1s; }
.stat-card:nth-child(4) { animation-delay: 0.14s; }
.stat-card:nth-child(5) { animation-delay: 0.18s; }
.stat-card:nth-child(6) { animation-delay: 0.22s; }
.stat-card:nth-child(7) { animation-delay: 0.26s; }
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary-light), var(--primary-dark));
  opacity: 0.85;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stat-value {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0.35rem 0 0.2rem;
  letter-spacing: -0.03em;
}
.stat-trend { font-size: 0.75rem; font-weight: 700; }
.stat-trend.up { color: var(--success); }
.stat-trend.down { color: var(--danger); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 12px;
  padding: 0.6rem 1.05rem;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s var(--ease), background 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(145deg, var(--primary-light), var(--primary));
  color: #fff;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.28);
}
.btn-primary:hover {
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.35);
}
.btn-outline {
  background: #fff;
  border: 1px solid var(--border-strong);
  color: #334155;
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-ghost);
}
.btn-danger { background: #fee2e2; color: var(--danger); }
.btn-danger:hover { background: #fecaca; }
.btn-sm { padding: 0.38rem 0.75rem; font-size: 0.8rem; border-radius: 10px; }
.btn-block { width: 100%; }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.chip-warning { background: #fef3c7; color: #b45309; }
.chip-success { background: #d1fae5; color: #047857; }
.chip-danger { background: #fee2e2; color: #b91c1c; }
.chip-info { background: #e0f2fe; color: #0369a1; }
.chip-primary { background: var(--primary-soft); color: var(--primary-dark); }
.chip-secondary { background: #eef4f2; color: #475569; }

.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  margin: 0 -0.15rem;
}
table.data {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
}
table.data th {
  text-align: left;
  padding: 0.8rem 0.85rem;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  background: #f7fcfb;
}
table.data td {
  padding: 0.9rem 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
table.data tbody tr {
  transition: background 0.12s;
}
table.data tbody tr:hover td { background: #f4fbf9; }
table.data tbody tr:last-child td { border-bottom: 0; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.form-grid .full { grid-column: 1 / -1; }
.form-group { margin-bottom: 0.9rem; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #3d5550;
}
.form-control {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.12);
}

.alert {
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  animation: fadeUp 0.25s var(--ease);
  border: 1px solid transparent;
}
.alert-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-info { background: #eff6ff; color: #075985; border-color: #bfdbfe; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}
.tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
  padding: 0.3rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
}
.tab {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: 0.84rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.tab:hover { color: var(--primary-dark); background: var(--primary-ghost); }
.tab.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 31, 28, 0.48);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
  animation: fadeIn 0.2s var(--ease);
}
.modal-backdrop.open { display: flex; }
.modal {
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow: auto;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.25s var(--ease);
}
.modal-lg { max-width: 880px; }
.modal-header, .modal-footer {
  padding: 1.1rem 1.35rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.modal-footer {
  border-bottom: 0;
  border-top: 1px solid var(--border);
  justify-content: flex-end;
  gap: 0.5rem;
  bottom: 0;
  top: auto;
}
.modal-body { padding: 1.35rem; }
.modal-title { font-weight: 800; margin: 0; letter-spacing: -0.02em; }

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.1rem;
}
.vehicle-card {
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease) !important;
}
.vehicle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md) !important;
}
.vehicle-card img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  border-radius: 14px;
  background: linear-gradient(135deg, #ccfbf1, #f0faf8);
}
.vehicle-card h3 {
  margin: 0.85rem 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.muted { color: var(--muted); }

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(13, 148, 136, 0.22), transparent 50%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(15, 118, 110, 0.16), transparent 45%),
    linear-gradient(160deg, #e6f7f4 0%, #f4fbf9 45%, #dcefeb 100%);
  padding: 1.5rem;
}
.auth-page::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(13, 148, 136, 0.15);
  top: -80px;
  right: -60px;
  animation: fadeIn 1s var(--ease);
}
.auth-page::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(13, 148, 136, 0.12);
  bottom: -40px;
  left: -40px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  border: 1px solid rgba(226, 239, 236, 0.9);
  padding: 2.25rem 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
  animation: fadeUp 0.45s var(--ease);
}
.auth-brand {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin-bottom: 0.15rem;
  letter-spacing: -0.04em;
}
.auth-brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--primary-light), var(--primary-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  margin: 0 auto 1rem;
  box-shadow: 0 12px 28px rgba(13, 148, 136, 0.35);
}

.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1rem; }
.grid-2-eq { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* —— Order detail (compact) —— */
.od { max-width: 1100px; }
.od-back {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.od-back:hover { color: var(--primary); }
.od-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.od-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.od-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}
.od-dot { opacity: 0.5; }
.od-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.od-actions .btn-primary { box-shadow: 0 2px 8px rgba(13, 148, 136, 0.22); }
.od-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.85fr);
  gap: 0.85rem;
  align-items: start;
}
.od-main, .od-side { display: flex; flex-direction: column; gap: 0.85rem; }
.od-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  box-shadow: none;
}
.od-panel:hover { box-shadow: none; transform: none; }
.od-section {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.od-dl {
  margin: 0;
  display: grid;
  gap: 0.45rem;
}
.od-dl > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.5rem;
  font-size: 0.88rem;
  line-height: 1.35;
}
.od-dl dt {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.8rem;
}
.od-dl dd { margin: 0; font-weight: 600; color: var(--text); }
.od-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.od-totals > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.od-totals span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.od-totals strong { font-size: 0.95rem; font-weight: 800; }
.od-total-row strong { color: var(--primary-dark); font-size: 1.05rem; }
.od-table th { padding: 0.45rem 0.6rem; background: transparent; }
.od-table td { padding: 0.5rem 0.6rem; font-size: 0.84rem; }
.od-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.od-timeline li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}
.od-timeline li:last-child { border-bottom: 0; padding-bottom: 0; }
.od-timeline li:first-child { padding-top: 0; }
.od-timeline-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.od-timeline-who { font-size: 0.75rem; margin-top: 0.2rem; }
.od-timeline-note { font-size: 0.82rem; margin-top: 0.25rem; font-weight: 500; }
.od-form .form-group { margin-bottom: 0.65rem; }
.od-form .form-control {
  padding: 0.45rem 0.7rem;
  border-radius: 9px;
  font-size: 0.875rem;
}
.od-form textarea.form-control { min-height: 56px; resize: vertical; }

@media (max-width: 960px) {
  .sidebar { transform: translateX(-105%); }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .main { margin-left: 0; }
  .form-grid, .grid-2, .grid-2-eq { grid-template-columns: 1fr; }
  .content { padding: 1.15rem 1rem 2rem; }
  .user-name { display: none; }
  .tabs { border-radius: 16px; width: 100%; }
  .od-layout { grid-template-columns: 1fr; }
  .od-dl > div { grid-template-columns: 6rem minmax(0, 1fr); }
  .od-totals { grid-template-columns: 1fr; }
}
