/* ============================================================
   Gestion Imprimerie — Thème Clair / Bleu
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

/* ── Variables ─────────────────────────────────────────── */
:root {
  --primary:        #1E6FD9;
  --primary-dark:   #1558B0;
  --primary-light:  #4A90E2;
  --primary-pale:   #EBF3FD;
  --primary-mid:    #D0E6FA;
  --accent:         #0EA5E9;
  --accent2:        #7C3AED;

  --bg:             #F4F7FB;
  --bg-white:       #FFFFFF;
  --bg-card:        #FFFFFF;
  --bg-sidebar:     #1A2B4A;
  --bg-sidebar-deep:#13203A;
  --bg-hover:       #F0F6FF;

  --border:         #DDE6F0;
  --border-light:   #EEF3F9;
  --border-focus:   #1E6FD9;

  --text:           #1A2535;
  --text-sub:       #4A5568;
  --text-muted:     #8A9BB5;
  --text-light:     #B8C8DA;

  --success:        #0E9E6A;
  --success-bg:     #E8F7F2;
  --warning:        #D97706;
  --warning-bg:     #FEF3E2;
  --error:          #DC3545;
  --error-bg:       #FEEBEC;
  --info:           #0891B2;
  --info-bg:        #E0F5FA;

  --sidebar-w:      255px;
  --radius:         10px;
  --radius-sm:      6px;
  --radius-lg:      14px;
  --shadow-sm:      0 1px 3px rgba(30,111,217,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow:         0 4px 16px rgba(30,111,217,.10), 0 1px 4px rgba(0,0,0,.05);
  --shadow-lg:      0 10px 40px rgba(30,111,217,.14), 0 2px 8px rgba(0,0,0,.06);
  --font-body:      'Plus Jakarta Sans', sans-serif;
  --font-mono:      'JetBrains Mono', monospace;
  --transition:     .18s ease;
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

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

/* ── Sidebar ────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--transition);
  box-shadow: 4px 0 20px rgba(0,0,0,.15);
}

.sidebar-brand {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Logo image dans la sidebar */
.sidebar-brand .brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  margin-bottom: 8px;
  background: rgba(255,255,255,.1);
  padding: 4px;
  box-shadow: 0 3px 10px rgba(0,0,0,.25);
}

.sidebar-brand .brand-icon {
  width: 38px; height: 38px;
  background: var(--primary);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  margin-bottom: 8px;
  box-shadow: 0 3px 10px rgba(30,111,217,.4);
}

.sidebar-brand h2 {
  font-size: 13.5px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: .3px;
}

.sidebar-brand small {
  font-size: 11px;
  color: rgba(255,255,255,.45);
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

.nav-section {
  padding: 16px 20px 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 20px;
  color: rgba(255,255,255,.65);
  font-size: 13px;
  font-weight: 500;
  border-radius: 0;
  transition: all var(--transition);
  border-left: 3px solid transparent;
  margin: 1px 0;
}

.sidebar-nav a:hover {
  background: rgba(255,255,255,.07);
  color: #FFFFFF;
  border-left-color: rgba(255,255,255,.3);
}

.sidebar-nav a.active {
  background: rgba(30,111,217,.35);
  color: #FFFFFF;
  border-left-color: #4A90E2;
  font-weight: 600;
}

.sidebar-nav a .nav-icon { width: 17px; font-size: 15px; flex-shrink: 0; }

.sidebar-footer {
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: var(--bg-sidebar-deep);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.user-avatar {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: white;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(30,111,217,.4);
}

.user-info .user-name  { font-size: 13px; font-weight: 700; color: #FFFFFF; }
.user-info .user-role  { font-size: 11px; color: rgba(255,255,255,.45); }

.btn-logout {
  width: 100%;
  padding: 8px;
  background: rgba(220,53,69,.12);
  border: 1px solid rgba(220,53,69,.25);
  color: #FF6B7A;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all var(--transition);
  text-align: center;
  display: block;
}
.btn-logout:hover { background: rgba(220,53,69,.2); color: #FF6B7A; }

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

/* ── Top bar ────────────────────────────────────────────── */
.topbar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.topbar-title h1 {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text);
}

.topbar-title p {
  font-size: 11.5px;
  color: var(--text-muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-date {
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* ── Page body ──────────────────────────────────────────── */
.page-body { padding: 22px 28px; flex: 1; }

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

.card-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #FAFCFF;
}

.card-header h2, .card-header h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.card-body { padding: 20px; }

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

.stat-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--primary);
}
.stat-card.success::before { background: var(--success); }
.stat-card.warning::before { background: var(--warning); }
.stat-card.info::before    { background: var(--info); }
.stat-card.error::before   { background: var(--error); }

.stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.stat-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-icon {
  position: absolute;
  top: 14px; right: 16px;
  font-size: 22px;
  opacity: .12;
}

/* ── Tables ─────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }

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

thead th {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 2px solid var(--border);
  background: #FAFCFF;
  white-space: nowrap;
}

tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text);
  vertical-align: middle;
}

tbody tr:hover td { background: var(--primary-pale); }
tbody tr:last-child td { border-bottom: none; }

.td-mono { font-family: var(--font-mono); font-size: 12px; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(30,111,217,.3);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  box-shadow: 0 4px 14px rgba(30,111,217,.4);
  transform: translateY(-1px);
}

.btn-success {
  background: var(--success);
  color: white;
  box-shadow: 0 2px 8px rgba(14,158,106,.25);
}
.btn-success:hover { filter: brightness(1.08); }

.btn-warning {
  background: var(--warning);
  color: white;
  box-shadow: 0 2px 8px rgba(217,119,6,.25);
}
.btn-warning:hover { filter: brightness(1.08); }

.btn-danger {
  background: var(--error);
  color: white;
  box-shadow: 0 2px 8px rgba(220,53,69,.2);
}
.btn-danger:hover { filter: brightness(1.1); }

.btn-ghost {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-sub);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-pale);
}

.btn-sm  { padding: 5px 11px; font-size: 12px; border-radius: 5px; }
.btn-icon { padding: 6px; }

/* ── Forms ──────────────────────────────────────────────── */
.form-grid { display: grid; gap: 14px; }
.form-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: .4px;
}
.form-group .required::after { content: ' *'; color: var(--error); }

input, select, textarea {
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: var(--text);
  font-size: 13px;
  font-family: var(--font-body);
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,111,217,.12);
  background: var(--bg-white);
}

input:hover:not(:focus), select:hover:not(:focus) {
  border-color: var(--primary-light);
}

input[readonly] {
  background: var(--bg);
  color: var(--text-muted);
  cursor: not-allowed;
}

select option { background: var(--bg-white); color: var(--text); }
textarea { resize: vertical; min-height: 80px; }

.input-group { position: relative; }
.input-group input { padding-right: 40px; }
.input-addon {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
}

/* ── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2px;
}
.badge-paid      { background: var(--success-bg); color: var(--success); }
.badge-unpaid    { background: var(--error-bg);   color: var(--error); }
.badge-partial   { background: var(--warning-bg); color: var(--warning); }
.badge-cancelled { background: #F3F4F6;           color: var(--text-muted); }
.badge-warning   { background: var(--warning-bg); color: var(--warning); }
.badge-default   { background: var(--primary-pale); color: var(--primary); border: 1px solid var(--primary-mid); }
.badge-info      { background: var(--info-bg);    color: var(--info); }

/* ── Alerts ─────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.alert-success {
  background: var(--success-bg);
  border: 1px solid rgba(14,158,106,.25);
  color: var(--success);
}
.alert-error {
  background: var(--error-bg);
  border: 1px solid rgba(220,53,69,.2);
  color: var(--error);
}
.alert-warning {
  background: var(--warning-bg);
  border: 1px solid rgba(217,119,6,.2);
  color: var(--warning);
}
.alert-info {
  background: var(--info-bg);
  border: 1px solid rgba(8,145,178,.2);
  color: var(--info);
}
.alert-icon { font-weight: 900; font-size: 15px; }

/* ── Pagination ─────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 14px 20px;
  border-top: 1px solid var(--border-light);
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-sub);
  border: 1px solid var(--border);
  background: var(--bg-white);
  transition: all var(--transition);
}
.pagination a:hover  { border-color: var(--primary); color: var(--primary); background: var(--primary-pale); }
.pagination .active  { background: var(--primary); border-color: var(--primary); color: white; }
.pagination .disabled { opacity: .35; pointer-events: none; }
.pagination-info { margin-left: auto; font-size: 12px; color: var(--text-muted); }

/* ── Login Page ─────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
}

.login-art {
  background: linear-gradient(160deg, #1A2B4A 0%, #1E6FD9 60%, #0EA5E9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.login-art::before {
  content: '';
  position: absolute;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.07) 0%, transparent 70%);
  top: 50%; left: 40%;
  transform: translate(-50%, -50%);
}

.login-art::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 40px solid rgba(255,255,255,.05);
  bottom: -50px; left: -50px;
}

.login-art-text { position: relative; z-index: 1; }

.login-art-text h1 {
  font-size: 36px;
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 16px;
}

.login-art-text h1 span {
  color: #93C5FD;
}

.login-art-text p {
  font-size: 15px;
  color: rgba(255,255,255,.6);
  max-width: 300px;
  line-height: 1.7;
}

.login-brand-tag {
  font-size: 13px !important;
  color: rgba(255,255,255,.5) !important;
  letter-spacing: .3px;
  margin-top: 4px;
}

.login-brand-tag strong {
  color: #93C5FD;
  font-weight: 700;
}

.login-description {
  font-size: 13px !important;
  color: rgba(255,255,255,.55) !important;
  max-width: 320px !important;
  line-height: 1.8 !important;
  margin-top: 16px;
  border-left: 2px solid rgba(147,197,253,.35);
  padding-left: 12px;
}

.login-features { margin-top: 28px; display: flex; flex-direction: column; gap: 11px; }
.login-feature  { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.7); font-size: 13px; }
.login-feature .feat-dot { width: 6px; height: 6px; border-radius: 50%; background: #93C5FD; flex-shrink: 0; }

.login-contact {
  margin-top: 36px;
  padding: 16px 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(147,197,253,.3);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.login-contact-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #93C5FD;
  margin-bottom: 4px;
}

.login-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #ffffff;
}

.login-contact-item .contact-icon {
  font-size: 14px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.login-contact-item a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(147,197,253,.4);
}

.login-contact-item a:hover {
  color: #93C5FD;
  border-bottom-color: #93C5FD;
}

.login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  background: var(--bg-white);
}

.login-form-wrap { width: 100%; max-width: 380px; }

.login-form-wrap .logo-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.login-form-wrap .logo-block {
  width: 42px; height: 42px;
  background: var(--primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(30,111,217,.35);
}

.login-form-wrap h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; color: var(--text); }
.login-form-wrap p  { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }

/* ── Utility classes ────────────────────────────────────── */
.flex          { display: flex; }
.items-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2  { gap: 8px; }
.gap-3  { gap: 12px; }
.gap-4  { gap: 16px; }
.mt-1   { margin-top: 4px; }
.mt-2   { margin-top: 8px; }
.mt-4   { margin-top: 16px; }
.mt-6   { margin-top: 24px; }
.mb-2   { margin-bottom: 8px; }
.mb-3   { margin-bottom: 12px; }
.mb-4   { margin-bottom: 16px; }
.mb-6   { margin-bottom: 24px; }
.text-muted    { color: var(--text-muted); }
.text-sm       { font-size: 12px; }
.font-mono     { font-family: var(--font-mono); }
.text-right    { text-align: right; }
.text-center   { text-align: center; }
.w-full        { width: 100%; }

/* ── Product rows (vente form) ──────────────────────────── */
.prow {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
  position: relative;
  transition: border-color var(--transition);
}
.prow:hover { border-color: var(--primary-light); }

.prow-grid { display: grid; grid-template-columns: 1fr 90px 130px 100px; gap: 10px; align-items: end; }
.prow-dim  { display: none; margin-top: 10px; }
.prow-dim-grid { display: grid; grid-template-columns: 120px 120px auto; gap: 10px; align-items: end; }
.prow-footer { text-align: right; margin-top: 6px; font-size: 12px; color: var(--text-muted); }
.prow-footer b { color: var(--primary); font-family: var(--font-mono); }

.del-row {
  position: absolute; top: 8px; right: 8px;
  width: 26px; height: 26px;
  background: var(--error-bg);
  border: 1px solid rgba(220,53,69,.2);
  color: var(--error);
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.del-row:hover { background: var(--error); color: white; }

/* ── Type-client tabs ───────────────────────────────────── */
.type-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tcbtn {
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-sub);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all .15s;
  font-family: var(--font-body);
}
.tcbtn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-pale); }
.tcbtn.on    { border-color: var(--primary); background: var(--primary); color: white; box-shadow: 0 2px 8px rgba(30,111,217,.3); }
.cpanel      { display: none; }
.cpanel.on   { display: block; }

/* ── Service composition ────────────────────────────────── */
.service-card {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1.5px solid var(--border);
  margin-bottom: 5px;
  transition: all .15s;
  background: var(--bg-white);
}
.service-card:hover  { border-color: var(--primary); background: var(--primary-pale); }
.service-card.active { border-color: var(--primary); background: var(--primary-pale); box-shadow: 0 0 0 3px rgba(30,111,217,.1); }
.service-card h4     { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.service-card p      { font-size: 11px; color: var(--text-muted); }

.conso-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.conso-per_m2   { background: var(--info-bg);    color: var(--info); }
.conso-per_unit { background: var(--success-bg); color: var(--success); }
.conso-fixed    { background: var(--warning-bg); color: var(--warning); }

.impact-row { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 10px; }
.stock-bar  { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.stock-fill { height: 100%; background: var(--success); border-radius: 3px; transition: width .3s; }
.stock-fill.low { background: var(--error); }
.stock-fill.mid { background: var(--warning); }

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

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .login-page { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .form-grid.cols-2, .form-grid.cols-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .prow-grid  { grid-template-columns: 1fr 90px; }
  .page-body  { padding: 16px; }
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar       { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #B8C8DA; }

/* ── Misc ───────────────────────────────────────────────── */
optgroup { font-weight: 700; color: var(--primary); }
