/* ================================================================
   NDAPU CAR HIRE — Admin UI  (pure CSS, no Bootstrap dependency)
   System fonts · CSS Grid · CSS custom properties
   ================================================================ */

/* ---- Reset + tokens ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:        #C62828;
  --red-dark:   #9b1c1c;
  --red-hover:  #B71C1C;
  --red-light:  #fef2f2;
  --blue:       #2563eb;
  --blue-light: #eff6ff;
  --green:      #16a34a;
  --green-light:#f0fdf4;
  --bg:         #f0f2f5;
  --surface:    #ffffff;
  --border:     #e2e8f0;
  --text:       #1e293b;
  --muted:      #64748b;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow:     0 2px 8px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.04);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.14);
  --radius:     10px;
  --font:       system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
                Roboto, 'Helvetica Neue', Arial, sans-serif;
  --sidebar-w:  220px;
  --nav-h:      56px;
}

html { font-size: 15px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Navbar ------------------------------------------------ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--surface);
  border-bottom: 2px solid var(--red);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 16px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--red);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar-brand img { height: 34px; width: auto; }

.navbar-space { flex: 1; }

.navbar-user {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px 5px 8px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--font);
  color: var(--text);
  transition: background .15s;
}

.nav-user-btn:hover { background: var(--bg); }

.nav-user-btn .avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  display: none;
  z-index: 200;
  overflow: hidden;
}

.dropdown.open { display: block; }

.dropdown a, .dropdown button.dd-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 0.88rem;
  color: var(--text);
  text-decoration: none;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
  transition: background .1s;
}

.dropdown a:hover, .dropdown button.dd-item:hover {
  background: var(--bg);
  text-decoration: none;
}

.dropdown hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }

.dropdown .danger { color: var(--red); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .2s;
}

/* ---- Page layout ------------------------------------------ */
.admin-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 0;
  min-height: calc(100vh - var(--nav-h));
  align-items: start;
}

.admin-sidebar {
  width: var(--sidebar-w);
  padding: 20px 12px;
  position: sticky;
  top: var(--nav-h);
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.admin-sidebar::-webkit-scrollbar { display: none; }

.admin-main {
  padding: 24px 28px;
  min-width: 0;
}

/* ---- Sidebar nav ------------------------------------------ */
.sidebar-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  padding: 0 10px 8px;
  margin-bottom: 4px;
}

.sidebar-nav { list-style: none; }

.sidebar-nav li + li { margin-top: 2px; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all .15s;
}

.sidebar-nav a .icon {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: var(--red-light);
  color: var(--red);
  border-left-color: var(--red);
  text-decoration: none;
}

.sidebar-nav a.active { font-weight: 700; }

/* ---- Cards ------------------------------------------------ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card + .card { margin-top: 20px; }

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
  gap: 12px;
  min-height: 52px;
}

.card-head h2 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  margin: 0;
  line-height: 1.3;
}

.card-head h2 .count {
  font-size: 0.7rem;
  background: var(--surface);
  color: var(--muted);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--border);
  line-height: 1.6;
}

.card-head > div,
.card-head > a,
.card-head > button { flex-shrink: 0; }

.card-body { padding: 20px; }
.card-body.flush { padding: 0; }

/* ---- Flash alerts ----------------------------------------- */
.flash-area { padding: 0 28px; margin-top: 16px; }

.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.88rem;
  border-left: 3px solid;
  margin-bottom: 12px;
}

.alert.success {
  background: var(--green-light);
  border-color: var(--green);
  color: #14532d;
}

.alert.error {
  background: var(--red-light);
  border-color: var(--red);
  color: #7f1d1d;
}

.alert.info {
  background: var(--blue-light);
  border-color: var(--blue);
  color: #1e3a8a;
}

.alert ul { margin: 4px 0 0 16px; }

/* ---- Tables ----------------------------------------------- */
.tbl-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}

.tbl-search {
  position: relative;
  flex: 1;
  max-width: 280px;
}

.tbl-search input {
  width: 100%;
  padding: 7px 12px 7px 32px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 0.85rem;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.tbl-search input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(198,40,40,.12);
  background: var(--surface);
}

.tbl-search::before {
  content: '\f002';
  font-family: FontAwesome;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.8rem;
  pointer-events: none;
}

.tbl-info {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.tbl-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

table.tbl thead th {
  background: #f8f9fb;
  border-bottom: 2px solid var(--border);
  padding: 10px 16px;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  position: relative;
  vertical-align: middle;
}

table.tbl thead th.sortable::after {
  content: ' ⇅';
  opacity: .4;
  font-size: .7rem;
}

table.tbl thead th.sort-asc::after  { content: ' ↑'; opacity: .9; color: var(--red); }
table.tbl thead th.sort-desc::after { content: ' ↓'; opacity: .9; color: var(--red); }

table.tbl tbody tr { transition: background .1s; }
table.tbl tbody tr:nth-child(even) { background: #fafbfc; }
table.tbl tbody tr:hover td { background: #f1f5f9; }

table.tbl td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
  line-height: 1.4;
}

table.tbl td .actions { display: flex; gap: 4px; flex-wrap: nowrap; }

table.tbl tr.hidden-row { display: none; }

.tbl-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.tbl-empty .icon { font-size: 2.5rem; opacity: .2; margin-bottom: 10px; display: block; }

/* Pagination */
.tbl-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 8px;
}

.tbl-footer .tbl-info { font-size: 0.8rem; color: var(--muted); }

.pagination {
  display: flex;
  gap: 4px;
  align-items: center;
  list-style: none;
}

.pagination button {
  min-width: 30px; height: 30px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all .15s;
}

.pagination button:hover { background: var(--red-light); border-color: var(--red); color: var(--red); }
.pagination button.active { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font);
  border-radius: 7px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all .15s;
  line-height: 1;
}

.btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(198,40,40,.25); }

.btn-sm { padding: 5px 10px; font-size: 0.8rem; border-radius: 6px; gap: 4px; }

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

.btn-primary:hover { background: var(--red-hover); border-color: var(--red-hover); color: #fff; text-decoration: none; }

.btn-secondary {
  background: #64748b;
  border-color: #64748b;
  color: #fff;
}

.btn-secondary:hover { background: #475569; border-color: #475569; color: #fff; text-decoration: none; }

.btn-light {
  background: var(--bg);
  border-color: var(--border);
  color: var(--text);
}

.btn-light:hover { background: var(--border); color: var(--text); text-decoration: none; }

.btn-info {
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: #fff;
}

.btn-info:hover { background: #0284c7; border-color: #0284c7; color: #fff; text-decoration: none; }

.btn-danger-outline {
  background: transparent;
  border-color: var(--red);
  color: var(--red);
}

.btn-danger-outline:hover { background: var(--red); color: #fff; text-decoration: none; }

.btn-success {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.btn-success:hover { background: #15803d; border-color: #15803d; color: #fff; text-decoration: none; }

/* ---- Forms ------------------------------------------------ */
.form-row { display: grid; gap: 16px; align-items: start; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-row.cols-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }

.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }

.field label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
  margin-bottom: 6px;
  line-height: 1;
}

.field label .req { color: var(--red); margin-left: 2px; }
.field label .opt { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 0.72rem; }

.input {
  display: block;
  width: 100%;
  padding: 8px 12px;
  font-size: 0.88rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}

.input::placeholder { color: #a0aec0; }

.input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(198,40,40,.12);
}

.input.invalid { border-color: var(--red); background: var(--red-light); }

.field-error {
  font-size: 0.78rem;
  color: var(--red);
  margin-top: 4px;
}

.form-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 16px;
}

.form-section-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}

/* ---- Modals ----------------------------------------------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  padding: 20px;
  overflow-y: auto;
}

.modal.open { display: flex; align-items: center; justify-content: center; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(2px);
  z-index: -1;
  animation: fadeIn .15s ease;
}

@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }

.modal-box {
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  width: 100%;
  max-width: 520px;
  animation: slideUp .18s ease;
  position: relative;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
}

.modal-box.wide { max-width: 720px; }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-head h2 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--muted);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
  transition: all .1s;
}

.modal-close:hover { background: var(--bg); color: var(--text); }

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* ---- Login page ------------------------------------------- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f2f5;
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.auth-header {
  padding: 32px 32px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.auth-header h1 {
  color: var(--red);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: -.3px;
}

.auth-header p { color: var(--muted); font-size: 0.82rem; }

.auth-body { padding: 28px 32px 32px; }

.auth-error {
  background: var(--red-light);
  border: 1px solid #fca5a5;
  border-left: 3px solid var(--red);
  border-radius: 7px;
  padding: 10px 14px;
  color: #7f1d1d;
  font-size: 0.85rem;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap .icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.85rem;
  pointer-events: none;
}

.input-icon-wrap .input { padding-left: 34px; }

.auth-submit {
  width: 100%;
  padding: 11px;
  background: linear-gradient(135deg, #C62828, #9b1c1c);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity .15s, transform .1s;
}

.auth-submit:hover { opacity: .9; transform: translateY(-1px); }

/* ---- Dashboard -------------------------------------------- */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 20px 20px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  transition: box-shadow .18s, transform .12s;
  border-left: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.10);
  transform: translateY(-2px);
  text-decoration: none;
}

.stat-card:nth-child(1) { border-left-color: #2563eb; }
.stat-card:nth-child(2) { border-left-color: var(--red); }
.stat-card:nth-child(3) { border-left-color: var(--green); }
.stat-card:nth-child(4) { border-left-color: #ca8a04; }

.stat-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.stat-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.5px;
}

.stat-label {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.dash-bottom {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
  align-items: start;
}

.dash-company .company-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
  line-height: 1.3;
}

.dash-company .company-tin {
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.company-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.company-details li {
  font-size: 0.86rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.company-details li i {
  margin-top: 2px;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .dash-bottom { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .dash-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* ---- Client profile ---------------------------------------- */
.client-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--red-light);
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
  border: 2px solid #fca5a5;
}

.client-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border-top: 1px solid var(--border);
}

.client-detail-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.client-detail-block:last-child { border-right: none; }

.cdl {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}

.cdv {
  font-size: 0.88rem;
  color: var(--text);
}

/* ---- Info display table (management page) ----------------- */
.info-table { width: 100%; border-collapse: collapse; }
.info-table td { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; vertical-align: top; }
.info-table td:last-child { border-bottom: none; }
.info-table .label { width: 150px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding-right: 16px; }

/* ---- Badges / chips --------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.badge-gray   { background: var(--bg); color: var(--muted); border-color: var(--border); }
.badge-green  { background: var(--green-light); color: #14532d; border-color: #bbf7d0; }
.badge-red    { background: var(--red-light); color: #7f1d1d; border-color: #fca5a5; }
.badge-plate  { font-family: monospace; letter-spacing: .08em; background: var(--bg); color: var(--text); border: 1px solid var(--border); }

/* ---- Misc utilities --------------------------------------- */
.text-muted  { color: var(--muted) !important; }
.text-red    { color: var(--red) !important; }
.text-sm     { font-size: 0.82rem !important; }
.text-xs     { font-size: 0.72rem !important; }
.fw-700      { font-weight: 700 !important; }
.mt-2        { margin-top: 12px; }
.mt-3        { margin-top: 20px; }
.d-flex      { display: flex; }
.gap-2       { gap: 8px; }
.ml-auto     { margin-left: auto; }

/* ---- Responsive ------------------------------------------- */
@media (max-width: 768px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    width: 100%;
    padding: 12px;
    max-height: none;
    display: none;
  }

  .admin-sidebar.open { display: block; }

  .nav-toggle { display: flex; }

  .admin-main { padding: 16px; }

  .form-row.cols-2,
  .form-row.cols-3,
  .form-row.cols-4 {
    grid-template-columns: 1fr;
  }

  .tbl-controls { flex-direction: column; align-items: stretch; }
  .tbl-search { max-width: 100%; }
}
