:root {
  --bg-primary: #151515;
  --bg-secondary: #1e1e1e;
  --bg-card: #222222;
  --bg-card-hover: #2a2a2a;
  --border-color: #333333;
  --text-primary: #e8e8e8;
  --text-muted: #9a9a9a;
  --accent: #c8a84b;
  --accent-dark: #a8892e;
  --success: #2dce89;
  --danger: #f5365c;
  --warning: #fb6340;
  --info: #11cdef;
}

* { box-sizing: border-box; }

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  min-height: 100vh;
}

/* ── LOGIN PAGE ── */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at 30% 40%, #1a1a2e 0%, #151515 60%);
}

.login-hero {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}

.login-logo {
  display: block;
  margin: 0 auto 1.5rem;
  max-height: 70px;
  object-fit: contain;
}

.login-title {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.login-subtitle {
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.form-label { color: var(--text-muted); font-size: .85rem; font-weight: 500; }

.form-control {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 8px;
  padding: .6rem .85rem;
  transition: border-color .2s;
}
.form-control:focus {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,168,75,.15);
  outline: none;
}
.form-control::placeholder { color: #555; }

.btn-login {
  width: 100%;
  padding: .7rem;
  background: var(--accent);
  color: #111;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.btn-login:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-login:active { transform: translateY(0); }

.login-footer {
  text-align: center;
  font-size: .72rem;
  color: #555;
  padding: 1rem;
  border-top: 1px solid #222;
  background: #111;
}

/* ── NAVBAR ── */
.erp-navbar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: .6rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.erp-navbar .brand img { height: 38px; object-fit: contain; }
.erp-navbar .brand span {
  color: var(--accent);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  display: block;
  margin-top: 2px;
}

.nav-user { display: flex; align-items: center; gap: 1rem; }
.nav-user .user-name { color: var(--text-muted); font-size: .85rem; }

.btn-nav {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 6px;
  padding: .35rem .75rem;
  font-size: .82rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: all .2s;
}
.btn-nav:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── DASHBOARD ── */
.page-header {
  padding: 2rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border-color);
}
.page-header h1 { font-size: 1.4rem; font-weight: 700; margin: 0; }
.page-header p { color: var(--text-muted); font-size: .88rem; margin: .25rem 0 0; }

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  padding: 2rem 1.5rem;
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.module-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,168,75,.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .25s;
}
.module-card:hover { background: var(--bg-card-hover); border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.3); }
.module-card:hover::before { opacity: 1; }
.module-card.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

.module-icon {
  width: 48px; height: 48px;
  background: rgba(200,168,75,.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--accent);
}
.module-card h3 { font-size: 1rem; font-weight: 700; margin: 0; }
.module-card p { font-size: .82rem; color: var(--text-muted); margin: 0; line-height: 1.5; }
.module-badge {
  font-size: .68rem;
  padding: .2rem .55rem;
  border-radius: 20px;
  font-weight: 600;
  width: fit-content;
}
.badge-active { background: rgba(45,206,137,.15); color: var(--success); }
.badge-soon { background: rgba(154,154,154,.1); color: var(--text-muted); }

/* ── MODULE PAGE ── */
.module-page { padding: 1.5rem; }
.module-page .section-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.form-card .card-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border-color);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.donem-bar {
  background: linear-gradient(90deg, #1a2a1a, var(--bg-secondary));
  border: 1px solid #2a3a2a;
  border-radius: 8px;
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.donem-bar .donem-text {
  font-size: .9rem;
  font-weight: 700;
  color: var(--success);
}

/* ── TABLE ── */
.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.erp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
}
.erp-table thead th {
  background: #1a1a1a;
  color: var(--text-muted);
  padding: .75rem .85rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-color);
}
.erp-table tbody td {
  padding: .65rem .85rem;
  border-bottom: 1px solid #2a2a2a;
  text-align: center;
  color: var(--text-primary);
}
.erp-table tbody tr:hover td { background: var(--bg-card-hover); }
.erp-table tbody tr:last-child td { border-bottom: none; }
.erp-table .td-name { text-align: left; font-weight: 600; }
.erp-table .td-total { color: var(--accent); font-weight: 700; }
.erp-table .td-neg { color: #e57373; }
.erp-table .td-pos { color: var(--success); }

.total-bar {
  background: linear-gradient(90deg, var(--bg-secondary), #1a1a1a);
  border-top: 1px solid var(--border-color);
  padding: .85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.total-bar .total-label { font-size: .82rem; color: var(--text-muted); }
.total-bar .total-amount { font-size: 1.1rem; font-weight: 800; color: var(--accent); }

/* ── BUTTONS ── */
.btn-primary-erp {
  background: var(--accent);
  color: #111;
  border: none;
  border-radius: 7px;
  padding: .55rem 1.2rem;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: all .2s;
  text-decoration: none;
}
.btn-primary-erp:hover { background: var(--accent-dark); color: #111; transform: translateY(-1px); }

.btn-ghost {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 7px;
  padding: .45rem .9rem;
  font-size: .8rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: all .2s;
  text-decoration: none;
}
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text-primary); }
.btn-ghost.danger:hover { border-color: var(--danger); color: var(--danger); }

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: .3rem .5rem;
  border-radius: 5px;
  color: var(--text-muted);
  transition: all .2s;
  font-size: .9rem;
}
.btn-icon:hover { background: var(--border-color); color: var(--text-primary); }
.btn-icon.edit:hover { color: var(--info); }
.btn-icon.delete:hover { color: var(--danger); }

/* ── ALERTS ── */
.alert {
  border-radius: 8px;
  padding: .75rem 1rem;
  font-size: .85rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid transparent;
}
.alert-success { background: rgba(45,206,137,.1); border-color: rgba(45,206,137,.3); color: var(--success); }
.alert-danger  { background: rgba(245,54,92,.1);  border-color: rgba(245,54,92,.3);  color: var(--danger); }
.alert-warning { background: rgba(251,99,64,.1);  border-color: rgba(251,99,64,.3);  color: var(--warning); }
.alert-info    { background: rgba(17,205,239,.1); border-color: rgba(17,205,239,.3); color: var(--info); }

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-box .modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none; border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}
.modal-close:hover { color: var(--text-primary); }

/* ── INACTIVITY TIMER ── */
.session-timer {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: .4rem .8rem;
  font-size: .72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .35rem;
  z-index: 50;
  opacity: .6;
  transition: opacity .2s;
}
.session-timer:hover { opacity: 1; }
.session-timer.warning { border-color: var(--warning); color: var(--warning); opacity: 1; }
.session-timer.danger  { border-color: var(--danger);  color: var(--danger);  opacity: 1; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .modules-grid { grid-template-columns: 1fr; padding: 1rem; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .module-page { padding: 1rem; }
  .erp-table { font-size: .75rem; }
  .erp-table thead th, .erp-table tbody td { padding: .5rem .5rem; }
  .donem-bar { flex-direction: column; gap: .5rem; align-items: flex-start; }
}

/* ══════════════════════════════════════════
   MODERN UI v2 — Maaş & Personel Modülleri
   ══════════════════════════════════════════ */

/* breadcrumb */
.breadcrumb-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.breadcrumb-bar a { color: var(--text-muted); text-decoration: none; transition: color .2s; }
.breadcrumb-bar a:hover { color: var(--accent); }
.breadcrumb-bar span { color: var(--accent); font-weight: 600; }
.breadcrumb-bar .bi-chevron-right { font-size: .7rem; }

/* stats row */
.stats-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: stretch;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  min-width: 180px;
}
.stat-card.accent { border-color: rgba(200,168,75,.3); background: linear-gradient(135deg,#1e1a0e,var(--bg-card)); }
.stat-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(200,168,75,.12);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.stat-label { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.stat-value { font-size: 1.15rem; font-weight: 800; color: var(--text-primary); margin-top: .1rem; }

/* modern form card */
.form-card-modern {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.fcard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  font-weight: 700;
  font-size: .9rem;
  background: #1a1a1a;
}
#form-body { padding: .9rem 1.1rem; }

.form-section { margin-bottom: 1.25rem; }
.form-section-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.form-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .85rem; }
.form-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: .85rem; }
.form-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: .75rem; }
.form-grid-6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: .7rem; }
.form-grid-7 { display: grid; grid-template-columns: repeat(7, 1fr); gap: .65rem; }
.col-span-2 { grid-column: span 2; }

.field-wrap { display: flex; flex-direction: column; gap: .3rem; }
.multiplier {
  font-size: .7rem;
  padding: .1rem .4rem;
  background: rgba(200,168,75,.15);
  color: var(--accent);
  border-radius: 4px;
  font-weight: 700;
}
.mesai-preview {
  font-size: .72rem;
  color: var(--success);
  padding: .15rem 0 0 .1rem;
  min-height: 1rem;
}
.tag-red { color: #e57373 !important; }
.tag-green { color: var(--success) !important; }
.tag-blue { color: var(--info) !important; }

/* Canlı hesap önizleme */
.calc-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #1a1a0e, #151510);
  border: 1px solid rgba(200,168,75,.25);
  border-radius: 8px;
  padding: .75rem 1.1rem;
  margin-bottom: 1.1rem;
}
.calc-label { font-size: .8rem; color: var(--text-muted); font-weight: 600; }
.calc-amount { font-size: 1.25rem; font-weight: 800; color: var(--accent); letter-spacing: .02em; }

.form-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.btn-sm { padding: .3rem .7rem; font-size: .78rem; }

/* table toolbar */
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .85rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.filter-form { display: flex; align-items: center; gap: .6rem; }
.filter-label { font-size: .82rem; color: var(--text-muted); white-space: nowrap; }
.form-select-sm { padding: .35rem .6rem; font-size: .82rem; }

/* data table v2 */
.data-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
}
.table-scroll { overflow-x: auto; }
.erp-table-v2 {
  width: 100%;
  border-collapse: collapse;
  font-size: .83rem;
}
.erp-table-v2 thead th {
  background: #1a1a1a;
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .8rem .9rem;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-color);
}
.th-left { text-align: left !important; }
.th-no { width: 40px; }
.th-total { color: var(--accent) !important; }

.erp-table-v2 tbody td {
  padding: .75rem .9rem;
  border-bottom: 1px solid #252525;
  text-align: center;
  color: var(--text-primary);
  vertical-align: middle;
}
.erp-table-v2 tbody tr:last-child td { border-bottom: none; }
.erp-table-v2 tbody tr { transition: background .15s; }
.erp-table-v2 tbody tr:hover td { background: rgba(255,255,255,.02); }

.td-no { color: var(--text-muted); font-size: .75rem; font-weight: 600; }
.td-name-cell { text-align: left !important; }
.td-actions { white-space: nowrap; }
.td-dash { color: #444; }

/* Person chip */
.person-chip { display: flex; align-items: center; gap: .65rem; }
.person-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #111;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: .85rem;
  flex-shrink: 0;
}
.person-name { font-weight: 600; font-size: .88rem; }
.person-meta { font-size: .72rem; color: var(--text-muted); margin-top: .05rem; }

/* Chips & pills */
.donem-chip {
  background: rgba(200,168,75,.1);
  color: var(--accent);
  padding: .2rem .6rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}
.amount-badge {
  font-weight: 800;
  color: var(--accent);
  font-size: .88rem;
}
.tag-red-pill {
  background: rgba(229,115,115,.1);
  color: #e57373;
  padding: .15rem .5rem;
  border-radius: 4px;
  font-size: .77rem;
  font-weight: 600;
  white-space: nowrap;
}
.tag-green-pill {
  background: rgba(45,206,137,.1);
  color: var(--success);
  padding: .15rem .5rem;
  border-radius: 4px;
  font-size: .77rem;
  font-weight: 600;
}
.tag-blue-pill {
  background: rgba(17,205,239,.1);
  color: var(--info);
  padding: .15rem .5rem;
  border-radius: 4px;
  font-size: .77rem;
  font-weight: 600;
}
.tag-orange-pill {
  background: rgba(251,99,64,.1);
  color: var(--warning);
  padding: .15rem .5rem;
  border-radius: 4px;
  font-size: .77rem;
  font-weight: 600;
}
.dept-chip {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border-color);
  padding: .15rem .55rem;
  border-radius: 20px;
  font-size: .75rem;
  color: var(--text-muted);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .65rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 700;
}
.status-pill.active { background: rgba(45,206,137,.12); color: var(--success); }
.status-pill.passive { background: rgba(154,154,154,.1); color: var(--text-muted); }
.status-pill .bi-circle-fill { font-size: .45rem; }

/* Icon buttons */
.icon-btn {
  background: none;
  border: none;
  width: 30px; height: 30px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all .15s;
  font-size: .85rem;
}
.icon-btn:hover { background: var(--border-color); color: var(--text-primary); }
.icon-btn.edit-btn:hover { color: var(--info); }
.icon-btn.del-btn:hover { color: var(--danger); }

/* Table footer */
.table-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.1rem;
  border-top: 1px solid var(--border-color);
  background: #1a1a1a;
  font-size: .83rem;
  color: var(--text-muted);
}
.footer-total { display: flex; align-items: center; gap: .75rem; }
.ft-label { font-size: .75rem; color: var(--text-muted); }
.ft-amount { font-size: 1.05rem; font-weight: 800; color: var(--accent); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}
.empty-state .bi { font-size: 2.5rem; display: block; margin-bottom: .75rem; }

/* Modal v2 */
.modal-box-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.75rem;
  width: 90%;
  max-width: 720px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .95rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}
.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  padding: .25rem .4rem;
  border-radius: 6px;
  transition: all .2s;
}
.modal-close-btn:hover { background: var(--border-color); color: var(--text-primary); }

/* Autocomplete dropdown */
.ac-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #1e1e1e;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  z-index: 300;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
  max-height: 280px;
  overflow-y: auto;
}
.ac-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .85rem;
  cursor: pointer;
  border-bottom: 1px solid #2a2a2a;
  transition: background .15s;
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item.ac-active { background: rgba(200,168,75,.08); }
.ac-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #111;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .8rem;
  flex-shrink: 0;
}
.ac-info { flex: 1; min-width: 0; }
.ac-name { font-weight: 600; font-size: .88rem; }
.ac-meta { font-size: .72rem; color: var(--text-muted); margin-top: .05rem; }
.ac-salary { font-weight: 800; color: var(--accent); font-size: .85rem; white-space: nowrap; }

/* Responsive */
@media (max-width: 900px) {
  .form-grid-4, .form-grid-5, .form-grid-6, .form-grid-7 { grid-template-columns: 1fr 1fr; }
  .form-grid-3 { grid-template-columns: 1fr 1fr; }
  .col-span-2 { grid-column: span 2; }
  .module-page { padding: 1rem; }
  .stat-card { min-width: 140px; }
}
@media (max-width: 768px) {
  /* Navbar */
  .erp-navbar { padding: .6rem 1rem; gap: .5rem; }
  .nav-user .user-name { display: none; }
  .erp-navbar .brand span { display: none; }
  /* Stats */
  .stats-row { gap: .6rem; }
  .stat-card { padding: .75rem 1rem; min-width: unset; flex: 1 1 calc(50% - .6rem); }
  .stat-card .stat-value { font-size: 1rem; }
  /* Form card */
  .fcard-header { padding: .75rem 1rem; }
  #form-body { padding: .75rem; }
  /* Table */
  .table-scroll { font-size: .78rem; }
  .erp-table-v2 th, .erp-table-v2 td { padding: .4rem .55rem; }
  .person-chip { gap: .4rem; }
  .person-avatar { width: 28px; height: 28px; font-size: .7rem; }
  /* Table footer */
  .table-footer-bar { flex-direction: column; gap: .5rem; align-items: flex-start; }
  /* Modals */
  .modal-box-v2 { width: 96%; padding: 1.25rem; border-radius: 10px; }
  /* Breadcrumb */
  .breadcrumb-bar { font-size: .75rem; flex-wrap: wrap; }
  /* Table toolbar */
  .table-toolbar { flex-direction: column; align-items: stretch; gap: .5rem; }
  .filter-form { flex-wrap: wrap; gap: .4rem; }
  .filter-form input, .filter-form select { width: 100% !important; }
}
@media (max-width: 600px) {
  .erp-navbar { padding: .5rem .75rem; }
  .stats-row { flex-direction: column; }
  .stat-card { flex: unset; min-width: unset; }
  .form-grid-2, .form-grid-3, .form-grid-4,
  .form-grid-5, .form-grid-6, .form-grid-7 { grid-template-columns: 1fr; }
  .col-span-2 { grid-column: span 1; }
  .module-page { padding: .75rem; }
  /* Table: hide less-important columns on mobile */
  .erp-table-v2 .hide-mobile { display: none; }
  /* calc preview inline becomes full row */
  #calc-preview { grid-column: 1 / -1; }
  /* Modal full-screen-ish */
  .modal-overlay { align-items: flex-end; }
  .modal-box-v2 { width: 100%; border-radius: 14px 14px 0 0; max-height: 85vh; }
  /* Form actions stack */
  .form-actions { flex-direction: column; }
  .form-actions .btn-primary-erp,
  .form-actions .btn-ghost { width: 100%; justify-content: center; }
  .btn-primary-erp { justify-content: center; }
}
