/* ===================================================
   trechnung – Hauptstylesheet v1.0
   Professionelles, minimalistisches ERP-UI
   =================================================== */

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

:root {
  --blue:       #2563eb;
  --blue-dark:  #1d4ed8;
  --blue-light: #eff6ff;
  --green:      #16a34a;
  --green-dark: #15803d;
  --green-light:#f0fdf4;
  --red:        #dc2626;
  --red-light:  #fef2f2;
  --orange:     #ea580c;
  --yellow:     #ca8a04;
  --gray-50:    #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-300:   #cbd5e1;
  --gray-400:   #94a3b8;
  --gray-500:   #64748b;
  --gray-600:   #475569;
  --gray-700:   #334155;
  --gray-800:   #1e293b;
  --gray-900:   #0f172a;
  --white:      #ffffff;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow:     0 2px 8px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.12);
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --sidebar-w:  240px;
  --topbar-h:   60px;
  --font:       -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

html { font-size: 15px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); color: var(--gray-800); background: var(--gray-100); line-height: 1.5; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
button { font-family: var(--font); }

/* --- Auth Pages ------------------------------------ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 60%, #f0fdf4 100%);
  padding: 24px;
}

.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 440px;
  padding: 44px 44px 36px;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  justify-content: center;
}

.auth-logo-mark {
  width: 42px; height: 42px;
  background: var(--blue);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 20px;
}

.auth-logo-text { font-size: 24px; font-weight: 700; color: var(--gray-900); }
.auth-logo-text span { color: var(--blue); }

.auth-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
  text-align: center;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--gray-500);
  text-align: center;
  margin-bottom: 28px;
}

/* --- Form Elements --------------------------------- */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 5px;
}

.form-label .required { color: var(--red); margin-left: 3px; }

.form-control {
  width: 100%;
  padding: 9px 13px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--gray-800);
  background: var(--gray-50);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.form-control:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(37,99,235,.10);
}

.form-control::placeholder { color: var(--gray-400); }
.form-control:disabled { background: var(--gray-100); color: var(--gray-500); cursor: not-allowed; }

select.form-control { cursor: pointer; }

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.form-hint { font-size: 12px; color: var(--gray-400); margin-top: 4px; }

.form-row {
  display: grid;
  gap: 12px;
}
.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; }

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--gray-700);
}

.form-check input[type=checkbox] {
  width: 16px; height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
}

/* --- Buttons --------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s, transform .1s, box-shadow .15s;
  line-height: 1;
}

.btn:active { transform: translateY(1px); }

.btn-primary   { background: var(--blue);  color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }

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

.btn-danger    { background: var(--red); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }

.btn-secondary { background: var(--gray-200); color: var(--gray-700); }
.btn-secondary:hover { background: var(--gray-300); }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-outline:hover { background: var(--blue); color: #fff; }

.btn-outline-danger {
  background: transparent;
  color: var(--red);
  border: 1.5px solid var(--red);
}
.btn-outline-danger:hover { background: var(--red); color: #fff; }

.btn-sm  { padding: 6px 14px; font-size: 12px; }
.btn-lg  { padding: 13px 28px; font-size: 15px; }
.btn-xl  {
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  min-width: 200px;
  height: 44px;
}

.btn-icon {
  width: 34px; height: 34px;
  padding: 0;
  border-radius: var(--radius-sm);
}

.btn-full { width: 100%; }

/* --- Alerts ---------------------------------------- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-error   { background: var(--red-light); color: var(--red); border: 1px solid #fecaca; }
.alert-success { background: var(--green-light); color: var(--green); border: 1px solid #bbf7d0; }
.alert-info    { background: var(--blue-light); color: var(--blue); border: 1px solid #bfdbfe; }
.alert-warning { background: #fffbeb; color: var(--yellow); border: 1px solid #fde68a; }

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

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: var(--gray-900);
  color: var(--gray-300);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 8px;
}

.sidebar-logo-mark {
  width: 34px; height: 34px;
  background: var(--blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.sidebar-logo-text { font-size: 16px; font-weight: 700; color: #fff; }
.sidebar-logo-text span { color: #60a5fa; }

.sidebar-firma {
  padding: 10px 20px 16px;
  font-size: 11px;
  color: var(--gray-500);
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 8px;
}

.sidebar-firma strong {
  display: block;
  font-size: 13px;
  color: var(--gray-300);
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-nav { flex: 1; padding: 4px 10px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-400);
  text-decoration: none;
  transition: background .15s, color .15s;
  margin-bottom: 2px;
}

.nav-item:hover {
  background: rgba(255,255,255,.07);
  color: var(--white);
  text-decoration: none;
}

.nav-item.active {
  background: var(--blue);
  color: var(--white);
}

.nav-item svg, .nav-item .nav-icon { flex-shrink: 0; opacity: .8; }
.nav-item.active .nav-icon, .nav-item:hover .nav-icon { opacity: 1; }

.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--gray-600);
  padding: 14px 12px 6px;
}

.sidebar-bottom {
  padding: 12px 10px;
  border-top: 1px solid rgba(255,255,255,.07);
}

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

/* Topbar */
.topbar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-800);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background .15s;
}
.topbar-user:hover { background: var(--gray-100); }

.user-avatar {
  width: 32px; height: 32px;
  background: var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.user-name { font-size: 13px; font-weight: 600; color: var(--gray-700); }

/* Page Content */
.page-content {
  padding: 28px;
  flex: 1;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.page-header-left h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.page-header-left p {
  font-size: 13px;
  color: var(--gray-500);
}

/* --- Cards ----------------------------------------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-800);
}

.card-body { padding: 20px; }

.card-collapsible .card-header {
  cursor: pointer;
  user-select: none;
}

.card-collapsible .card-header:hover { background: var(--gray-50); }

.card-body.collapsed { display: none; }

/* --- Entry Card (New Record) ----------------------- */
.entry-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.entry-card .card-header {
  background: var(--gray-50);
  border-radius: var(--radius) var(--radius) 0 0;
}

/* --- Filter Card ----------------------------------- */
.filter-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-row + .filter-row { margin-top: 10px; }

.filter-select {
  padding: 7px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--gray-50);
  color: var(--gray-700);
  cursor: pointer;
  min-width: 140px;
}

.filter-input {
  padding: 7px 12px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--gray-50);
  flex: 1;
  min-width: 160px;
}

.filter-input:focus, .filter-select:focus {
  outline: none;
  border-color: var(--blue);
}

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

table.tr-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tr-table th {
  background: var(--gray-50);
  color: var(--gray-600);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
  text-align: left;
}

.tr-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  vertical-align: middle;
}

.tr-table tr:last-child td { border-bottom: none; }
.tr-table tr:hover td { background: var(--gray-50); }
.tr-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.tr-table .actions { display: flex; gap: 6px; align-items: center; }

/* --- Badges ---------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-blue    { background: #dbeafe; color: #1d4ed8; }
.badge-green   { background: #dcfce7; color: #15803d; }
.badge-red     { background: #fee2e2; color: #b91c1c; }
.badge-orange  { background: #ffedd5; color: #c2410c; }
.badge-yellow  { background: #fef9c3; color: #a16207; }
.badge-gray    { background: var(--gray-200); color: var(--gray-600); }
.badge-purple  { background: #ede9fe; color: #6d28d9; }

/* --- KPI Cards ------------------------------------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}

.kpi-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--gray-900);
  line-height: 1;
}

.kpi-value.blue  { color: var(--blue); }
.kpi-value.green { color: var(--green); }
.kpi-value.red   { color: var(--red); }
.kpi-value.orange{ color: var(--orange); }

.kpi-trend {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 6px;
}

/* --- Positions Table (Document) -------------------- */
.positions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.positions-table th {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: 8px 8px 8px 0;
  border-bottom: 2px solid var(--gray-200);
  text-align: left;
}

.positions-table td {
  padding: 6px 8px 6px 0;
  vertical-align: middle;
  border-bottom: 1px solid var(--gray-100);
}

.positions-table .pos-input {
  width: 100%;
  padding: 7px 9px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--gray-50);
  color: var(--gray-800);
}
.positions-table .pos-input:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
}

.pos-col-nr    { width: 36px; }
.pos-col-art   { width: 30%; }
.pos-col-desc  { width: auto; }
.pos-col-qty   { width: 80px; }
.pos-col-unit  { width: 70px; }
.pos-col-price { width: 110px; }
.pos-col-mwst  { width: 80px; }
.pos-col-total { width: 110px; text-align: right; }
.pos-col-del   { width: 36px; }

.pos-total-field {
  text-align: right;
  font-weight: 600;
  color: var(--gray-800);
  padding: 7px 9px;
}

.pos-delete-btn {
  width: 28px; height: 28px;
  border: none;
  background: none;
  color: var(--gray-400);
  cursor: pointer;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: color .15s, background .15s;
}
.pos-delete-btn:hover { color: var(--red); background: var(--red-light); }

/* Totals Block */
.totals-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 20px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  min-width: 280px;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--gray-600);
}

.totals-row.brutto {
  font-size: 16px;
  font-weight: 800;
  color: var(--gray-900);
  border-top: 2px solid var(--gray-200);
  padding-top: 8px;
  margin-top: 4px;
}

/* --- Autocomplete Dropdown ------------------------- */
.autocomplete-wrap { position: relative; }

.autocomplete-results {
  position: fixed;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  max-height: 220px;
  overflow-y: auto;
  display: none;
}

.autocomplete-results.open { display: block; }

.autocomplete-item {
  padding: 9px 14px;
  font-size: 13px;
  cursor: pointer;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover { background: var(--blue-light); color: var(--blue); }
.autocomplete-item .ac-price { font-size: 12px; color: var(--gray-400); }

/* --- Modal ----------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.45);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(16px);
  transition: transform .2s;
}

.modal-overlay.open .modal { transform: translateY(0); }

.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title { font-size: 16px; font-weight: 700; color: var(--gray-900); }

.modal-close {
  width: 32px; height: 32px;
  border: none;
  background: var(--gray-100);
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-500);
}
.modal-close:hover { background: var(--gray-200); }

.modal-body  { padding: 20px 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Confirm Modal variants */
.modal.modal-danger .modal-header { border-bottom-color: #fee2e2; }
.modal.modal-danger .modal-title  { color: var(--red); }

/* --- Pagination ------------------------------------ */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-top: 16px;
  justify-content: center;
}

.page-btn {
  min-width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  background: var(--white);
  text-decoration: none;
  transition: all .15s;
  padding: 0 10px;
}

.page-btn:hover    { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.page-btn.active   { background: var(--blue); border-color: var(--blue); color: #fff; }
.page-btn.disabled { opacity: .4; pointer-events: none; }

/* --- Admin Layout ---------------------------------- */
.admin-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--gray-100);
}

.admin-topbar {
  background: var(--gray-900);
  color: var(--gray-300);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-topbar-logo {
  display: flex; align-items: center; gap: 8px;
}
.admin-topbar-logo .mark {
  width: 30px; height: 30px; background: var(--blue); border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: #fff;
}
.admin-topbar-logo .name { font-size: 15px; font-weight: 700; color: #fff; }
.admin-topbar-logo .badge-admin {
  background: var(--orange); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 4px; letter-spacing: .5px;
  text-transform: uppercase;
}

.admin-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.admin-nav a {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-400);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.admin-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav a.active { background: var(--blue); color: #fff; }

.admin-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 28px 24px;
}

/* --- Utility --------------------------------------- */
.flex      { display: flex; }
.flex-col  { flex-direction: column; }
.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-3   { margin-top: 12px; }
.mt-4   { margin-top: 16px; }
.mb-4   { margin-bottom: 16px; }
.mb-6   { margin-bottom: 24px; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }
.text-muted { color: var(--gray-500); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.fw-700 { font-weight: 700; }
.d-none { display: none; }
.w-100  { width: 100%; }

/* --- Responsive ------------------------------------ */
@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-240px); transition: transform .25s; }
  .sidebar.open { transform: translateX(0); width: 240px; }
  .main-content { margin-left: 0; }
  .page-content { padding: 16px; }
  .form-row.cols-2, .form-row.cols-3, .form-row.cols-4 { grid-template-columns: 1fr; }
  .positions-table .pos-col-desc { display: none; }
}

@media print {
  .sidebar, .topbar, .btn, .filter-card, .page-header .btn { display: none !important; }
  .main-content { margin-left: 0; }
  .page-content { padding: 0; }
}
