/* ─────────────────────────────────────────────
   KY Web CRM — Stylesheet
   Premium dashboard redesign.
   Type: Inter (UI) + Space Grotesk (display).
   Accent: indigo. Cool slate neutrals, soft elevation.
   Class & variable names kept stable so existing markup
   (incl. inline var(--x) usage) re-themes from here.
   ───────────────────────────────────────────── */

:root {
  /* Accent */
  --primary:        #4f46e5;
  --primary-hover:  #4338ca;
  --primary-light:  #eef2ff;
  --primary-ring:   rgba(79,70,229,.22);
  --accent:         #4f46e5;

  /* Ink + cool neutrals */
  --black:      #0b1220;
  --gray-900:   #0f172a;
  --gray-800:   #1e293b;
  --gray-600:   #475569;
  --gray-400:   #94a3b8;
  --gray-300:   #cbd5e1;
  --gray-200:   #e6e9f0;
  --gray-100:   #eef1f6;
  --gray-50:    #f8fafc;
  --white:      #ffffff;
  --canvas:     #f6f7fb;

  /* Status */
  --green:      #16a34a;
  --red:        #dc2626;
  --amber:      #d97706;
  --blue:       #2563eb;
  --purple:     #7c3aed;

  /* Type */
  --font-ui:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  --sidebar-w: 244px;
  --topbar-h:  64px;
  --radius:    14px;
  --radius-sm: 9px;
  --shadow-xs: 0 1px 2px rgba(15,23,42,.05);
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 2px 6px rgba(15,23,42,.05);
  --shadow:    0 8px 24px rgba(15,23,42,.10), 0 2px 6px rgba(15,23,42,.06);
  --shadow-lg: 0 24px 56px rgba(15,23,42,.20);

  font-size: 15px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
::selection { background: var(--primary-light); color: var(--primary-hover); }

body {
  font-family: var(--font-ui);
  background: var(--canvas);
  color: var(--gray-900);
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { letter-spacing: -0.02em; }

/* ─── Layout ─────────────────────────────────── */
.app-layout { display: flex; min-height: 100vh; }

/* ─── Sidebar ────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: #0b1018;
  background-image: radial-gradient(120% 60% at 0% 0%, #131c2e 0%, #0b1018 55%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform .25s ease;
  border-right: 1px solid rgba(255,255,255,.06);
}

.sidebar-logo { padding: 22px 20px 16px; }
/* Logo art is black; invert to white for the dark sidebar */
.sidebar-logo-img { display: block; width: 130px; max-width: 100%; height: auto; filter: brightness(0) invert(1); }
.wordmark {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.wordmark em { font-style: normal; font-weight: 400; color: rgba(255,255,255,.5); }

.sidebar-nav { flex: 1; padding: 8px 12px 16px; overflow-y: auto; }

.nav-section {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .9px;
  color: rgba(255,255,255,.34);
  padding: 16px 12px 7px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 10px;
  color: rgba(255,255,255,.64);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: background .15s, color .15s;
  margin-bottom: 2px;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .9; transition: color .15s; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav-item.active { color: #fff; background: rgba(99,102,241,.22); box-shadow: inset 0 0 0 1px rgba(129,140,248,.25); }
.nav-item.active svg { color: #a5b4fc; opacity: 1; }

.nav-divider { height: 1px; background: rgba(255,255,255,.08); margin: 12px 8px; }

.sidebar-user {
  margin: 12px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
  font-family: var(--font-display);
  flex-shrink: 0;
}

.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: rgba(255,255,255,.45); text-transform: capitalize; }

.btn-logout { color: rgba(255,255,255,.4); transition: color .15s, background .15s; flex-shrink: 0; border-radius: 8px; padding: 6px !important; }
.btn-logout:hover { color: #fff; background: rgba(255,255,255,.08); }
.btn-logout svg { width: 16px; height: 16px; display: block; }

/* ─── Main Content ───────────────────────────── */
.main-content { flex: 1; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-width: 0; }

/* ─── Topbar ─────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: rgba(246,247,251,.8);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.sidebar-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--gray-600); padding: 4px; }
.sidebar-toggle svg { width: 22px; height: 22px; }

.topbar-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; flex: 1; letter-spacing: -.3px; }

.topbar-search {
  position: relative; display: flex; align-items: center;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 11px; padding: 0 12px; height: 40px; width: 290px;
  box-shadow: var(--shadow-xs);
  transition: border-color .15s, box-shadow .15s;
}
.topbar-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.topbar-search svg { width: 16px; height: 16px; color: var(--gray-400); flex-shrink: 0; }
.topbar-search input { border: none; background: none; outline: none; font-size: 13.5px; padding: 0 8px; width: 100%; color: var(--gray-900); font-family: inherit; }
.topbar-search input::placeholder { color: var(--gray-400); }

.topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-avatar {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
}

/* ─── Page Body / Header ─────────────────────── */
.page-body { padding: 32px 32px; flex: 1; max-width: 1400px; width: 100%; }

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}
.page-header h1 { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.8px; }
.page-header p { color: var(--gray-400); font-size: 14px; margin-top: 4px; }

/* ─── Cards ──────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.card-header h2 { font-size: 15px; font-weight: 600; letter-spacing: -.2px; }

/* ─── Stats Grid ─────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease;
  overflow: hidden;
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.stat-card::after {
  content: ""; position: absolute; right: -30px; top: -30px;
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  opacity: .7; pointer-events: none;
}
.stat-card .stat-label {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .6px; color: var(--gray-400); margin-bottom: 10px;
}
.stat-card .stat-value {
  font-family: var(--font-display); font-size: 30px; font-weight: 700;
  letter-spacing: -1.2px; color: var(--gray-900);
  font-variant-numeric: tabular-nums; font-feature-settings: 'tnum';
}
.stat-card .stat-sub { font-size: 12.5px; color: var(--gray-400); margin-top: 5px; }
.stat-card.stat-green .stat-value { color: var(--green); }
.stat-card.stat-red   .stat-value { color: var(--red); }
.stat-card.stat-blue  .stat-value { color: var(--primary); }
.stat-card.stat-green::after { background: radial-gradient(circle, #dcfce7 0%, transparent 70%); }
.stat-card.stat-red::after   { background: radial-gradient(circle, #fee2e2 0%, transparent 70%); }

/* ─── Table ──────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
thead th {
  background: var(--gray-50);
  padding: 12px 18px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--gray-400);
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}
tbody td { padding: 14px 18px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: var(--primary-light); }
td.font-bold, td .font-bold { font-variant-numeric: tabular-nums; }

.table-link { color: var(--gray-900); font-weight: 600; text-decoration: none; transition: color .12s; }
.table-link:hover { color: var(--primary); }

/* ─── Badges ─────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  text-transform: capitalize; white-space: nowrap; letter-spacing: .2px;
}
.badge-green  { background: #dcfce7; color: #15803d; }
.badge-red    { background: #fee2e2; color: #b91c1c; }
.badge-amber  { background: #fef3c7; color: #b45309; }
.badge-blue   { background: var(--primary-light); color: var(--primary-hover); }
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-gray   { background: var(--gray-100); color: var(--gray-600); }
.badge-black  { background: var(--gray-900); color: #fff; }

/* ─── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; cursor: pointer;
  text-decoration: none; border: 1px solid transparent;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
  white-space: nowrap; line-height: 1.2; font-family: inherit;
}
.btn svg { width: 15px; height: 15px; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--primary-ring); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(79,70,229,.4), inset 0 1px 0 rgba(255,255,255,.12); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--white); color: var(--gray-800); border-color: var(--gray-200); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { background: var(--gray-50); border-color: var(--gray-300); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-icon { padding: 7px; }

/* ─── Forms ──────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-grid.cols-1 { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label { font-size: 13px; font-weight: 500; color: var(--gray-800); }
.form-control {
  padding: 10px 13px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit;
  color: var(--gray-900); background: var(--white);
  transition: border-color .15s, box-shadow .15s; width: 100%;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.form-control::placeholder { color: var(--gray-400); }
textarea.form-control { resize: vertical; min-height: 84px; }
select.form-control { cursor: pointer; }

/* ─── Modal ──────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(15,23,42,.55); backdrop-filter: blur(4px);
  z-index: 200; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; animation: overlayIn .15s ease; }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--white); border-radius: 16px;
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn .2s cubic-bezier(.16,1,.3,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px 16px; border-bottom: 1px solid var(--gray-200); }
.modal-header h2 { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -.3px; }
.modal-close { background: none; border: none; cursor: pointer; color: var(--gray-400); padding: 4px; border-radius: 6px; transition: color .15s, background .15s; }
.modal-close:hover { color: var(--gray-900); background: var(--gray-100); }
.modal-close svg { width: 18px; height: 18px; display: block; }
.modal-body { padding: 24px 26px; }
.modal-footer { padding: 16px 26px; border-top: 1px solid var(--gray-200); display: flex; justify-content: flex-end; gap: 10px; }

/* ─── Empty State ────────────────────────────── */
.empty-state { text-align: center; padding: 64px 20px; color: var(--gray-400); }
.empty-state .empty-icon { font-size: 42px; margin-bottom: 14px; opacity: .85; }
.empty-state h3 { font-size: 16px; font-weight: 600; color: var(--gray-600); margin-bottom: 6px; }
.empty-state p { font-size: 14px; }

/* ─── Pipeline Kanban ────────────────────────── */
.pipeline-board { display: grid; grid-template-columns: repeat(6, minmax(210px, 1fr)); gap: 16px; overflow-x: auto; padding-bottom: 16px; }
.pipeline-col { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); min-height: 420px; display: flex; flex-direction: column; }
.pipeline-col-header { padding: 13px 15px; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; }
.pipeline-col-header .col-name { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.pipeline-col-header .col-count { background: var(--gray-200); color: var(--gray-600); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.pipeline-col-body { padding: 11px; flex: 1; display: flex; flex-direction: column; gap: 9px; }
.deal-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  padding: 14px; cursor: pointer; box-shadow: var(--shadow-xs);
  transition: box-shadow .15s, border-color .15s, transform .12s;
}
.deal-card:hover { box-shadow: var(--shadow); border-color: var(--primary); transform: translateY(-2px); }
.deal-card .deal-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.deal-card .deal-client { font-size: 12px; color: var(--gray-400); margin-bottom: 8px; }
.deal-card .deal-value { font-size: 13px; font-weight: 700; color: var(--gray-900); font-variant-numeric: tabular-nums; }
.deal-card .deal-prob { font-size: 11px; color: var(--gray-400); margin-top: 2px; }

/* ─── Alert ──────────────────────────────────── */
.alert {
  padding: 13px 16px; border-radius: var(--radius-sm); font-size: 13px;
  margin-bottom: 18px; display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid transparent; box-shadow: var(--shadow-xs);
}
.alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.alert-error   { background: #fef2f2; border-color: #fecaca; color: #dc2626; }
.alert-info    { background: var(--primary-light); border-color: #c7d2fe; color: var(--primary-hover); }

/* ─── Search / Filters ───────────────────────── */
.filter-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.search-input {
  padding: 10px 12px 10px 38px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  font-size: 13px; width: 280px; background: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 12px center; background-size: 16px;
  box-shadow: var(--shadow-xs);
  transition: border-color .15s, box-shadow .15s;
}
.search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }

/* ─── Invoice Print ──────────────────────────── */
.invoice-paper { background: #fff; max-width: 800px; margin: 0 auto; padding: 48px; border: 1px solid var(--gray-200); border-radius: var(--radius); }

/* ─── Tabs ───────────────────────────────────── */
.tabs { display: flex; border-bottom: 2px solid var(--gray-200); margin-bottom: 24px; gap: 0; flex-wrap: wrap; }
.tab {
  padding: 11px 18px; font-size: 14px; font-weight: 500; color: var(--gray-400);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px;
  text-decoration: none; transition: color .15s, border-color .15s;
}
.tab:hover { color: var(--gray-900); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* ─── Two-column layout ──────────────────────── */
.content-grid { display: grid; grid-template-columns: 1fr 330px; gap: 22px; align-items: start; }
/* Let grid children shrink so wide tables scroll inside their card instead of widening the page */
.content-grid > * { min-width: 0; }

/* ─── Pager ──────────────────────────────────── */
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; padding: 16px 0; }

/* ─── Dashboard ──────────────────────────────── */
.dash-hero { margin-bottom: 26px; }
.dash-hero h1 { font-family: var(--font-display); font-size: 27px; font-weight: 700; letter-spacing: -.8px; }
.dash-hero p { color: var(--gray-400); font-size: 14px; margin-top: 5px; }

.stat-ic {
  position: absolute; top: 18px; right: 18px; z-index: 1;
  width: 38px; height: 38px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary);
}
.stat-ic svg { width: 19px; height: 19px; }
.stat-card .stat-label { padding-right: 48px; }
.stat-card.stat-green .stat-ic { background: #dcfce7; color: var(--green); }
.stat-card.stat-red   .stat-ic { background: #fee2e2; color: var(--red); }

.chart-card .chart { display: flex; gap: 14px; align-items: flex-end; height: 172px; padding: 12px 4px 0; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 9px; min-width: 0; }
.chart-col .bars { display: flex; gap: 5px; align-items: flex-end; height: 150px; }
.chart-col .bar { width: 16px; border-radius: 6px 6px 0 0; transition: height .5s cubic-bezier(.16,1,.3,1); }
.chart-col .bar.income  { background: var(--green); }
.chart-col .bar.expense { background: var(--red); }
.chart-col .m { font-size: 11px; font-weight: 500; color: var(--gray-400); }
.chart-legend { display: flex; gap: 18px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--gray-100); font-size: 12px; color: var(--gray-600); }
.chart-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }

.list-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
.list-row:last-child { border-bottom: none; }
.list-row:first-child { padding-top: 4px; }

/* ─── Utilities ──────────────────────────────── */
.text-muted  { color: var(--gray-400); }
.text-sm     { font-size: 13px; }
.text-xs     { font-size: 12px; }
.text-right  { text-align: right; }
.font-bold   { font-weight: 700; }
.mt-4        { margin-top: 16px; }
.mb-4        { margin-bottom: 16px; }
.flex        { display: flex; }
.items-center { align-items: center; }
.gap-2       { gap: 8px; }
.gap-3       { gap: 12px; }
.ml-auto     { margin-left: auto; }

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 1000px) { .topbar-search { display: none; } }
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; overflow-x: hidden; }
  .sidebar-toggle { display: flex; }
  .form-grid, .form-grid.cols-3 { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .page-body { padding: 20px 16px; }
  .topbar { padding: 0 16px; gap: 12px; }
  .page-header { flex-wrap: wrap; }
  .page-header > div { flex-wrap: wrap; }
  .card { padding: 18px; }
}
@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 22px; }
  .dash-hero h1 { font-size: 23px; }
  .modal-body { padding: 18px; }
  .modal-header { padding: 18px 18px 14px; }
  .modal-footer { padding: 14px 18px; }
  thead th, tbody td { padding: 11px 12px; }
  .btn { padding: 9px 13px; }
  .filter-bar { gap: 8px; }
  .filter-bar .search-input { width: 100%; }
  .tab { padding: 10px 14px; }
  .chart-col .bar { width: 12px; }
}

@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .main-content { margin-left: 0; }
  .page-body { padding: 0; }
  body { background: white; }
}
