:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef3f9;
  --text: #172033;
  --muted: #68758a;
  --border: #dfe6f0;
  --border-strong: #cbd5e1;
  --primary: #2563eb;
  --primary-2: #4f46e5;
  --primary-soft: #eaf1ff;
  --success: #15803d;
  --success-soft: #eaf8ef;
  --danger: #dc2626;
  --danger-soft: #fff0f0;
  --warning: #b45309;
  --warning-soft: #fff7e8;
  --navy: #0f172a;
  --sidebar: #101828;
  --sidebar-2: #172033;
  --sidebar-text: #ecf2ff;
  --sidebar-muted: #98a5ba;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05), 0 2px 8px rgba(15,23,42,.035);
  --shadow-md: 0 10px 35px rgba(15,23,42,.10);
  --radius: 16px;
  --radius-sm: 10px;
  --scroll-track: transparent;
  --scroll-thumb: #c1cad8;
  --scroll-thumb-hover: #98a6bb;
}

html[data-theme="dark"] {
  --bg: #0c1220;
  --surface: #121a2b;
  --surface-2: #182236;
  --surface-3: #202c42;
  --text: #edf3ff;
  --muted: #9ba8bc;
  --border: #26344c;
  --border-strong: #34445f;
  --primary-soft: #142850;
  --success-soft: #12301f;
  --danger-soft: #3a171c;
  --warning-soft: #3b2a13;
  --sidebar: #080d17;
  --sidebar-2: #101827;
  --scroll-thumb: #43516a;
  --scroll-thumb-hover: #60708b;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.45;
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; }

* {
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--scroll-track);
}
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: var(--scroll-track); }
*::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover { background-color: var(--scroll-thumb-hover); }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 50;
  width: 236px; padding: 18px 14px;
  background: linear-gradient(180deg, var(--sidebar) 0%, #0b1220 100%);
  color: var(--sidebar-text);
  display: flex; flex-direction: column; gap: 18px;
  border-right: 1px solid rgba(255,255,255,.06);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 7px 12px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 13px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  box-shadow: 0 8px 22px rgba(37,99,235,.35);
  font-size: 20px; font-weight: 800;
}
.brand-title { font-size: 15px; font-weight: 750; letter-spacing: -.01em; }
.brand-subtitle { color: var(--sidebar-muted); font-size: 11px; margin-top: 2px; }
.nav-label { padding: 0 10px; color: var(--sidebar-muted); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 5px; }
.nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 11px; border-radius: 11px;
  color: #d9e2f1; text-decoration: none; font-weight: 600;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.nav a:hover { background: rgba(255,255,255,.07); color: #fff; transform: translateX(1px); }
.nav a.active { background: linear-gradient(90deg, rgba(37,99,235,.32), rgba(124,58,237,.18)); color: #fff; box-shadow: inset 3px 0 0 #60a5fa; }
.nav-icon { width: 20px; text-align: center; font-size: 16px; opacity: .95; }
.sidebar-spacer { flex: 1; }
.sidebar-status { display:none;
  border: 1px solid rgba(255,255,255,.08); border-radius: 13px;
  padding: 11px; background: rgba(255,255,255,.035);
}
.status-line { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.12); }
.status-note { margin-top: 5px; color: var(--sidebar-muted); font-size: 10.5px; line-height: 1.35; }

.main { grid-column: 2; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 35;
  min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 24px; background: var(--surface);
  border-bottom: 1px solid var(--border); backdrop-filter: blur(10px);
}
.topbar-left { min-width: 0; display: flex; align-items: center; gap: 12px; }
.mobile-menu { display: none; }
.page-kicker { color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.page-title { margin: 1px 0 0; font-size: 20px; line-height: 1.2; letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 5px 7px 5px 5px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg,#2563eb,#7c3aed); color:#fff; font-weight:800; }
.user-name { font-size: 12px; font-weight: 700; }

.content { padding: 22px 24px 36px; max-width: 1600px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.page-head h2 { margin: 0; font-size: 22px; line-height: 1.25; letter-spacing: -.025em; }
.page-head p { margin: 5px 0 0; color: var(--muted); max-width: 760px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.card-header { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border); }
.card-header h3 { margin: 0; font-size: 14px; letter-spacing: -.01em; }
.card-header p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.card-body { padding: 16px; }
.card-compact .card-body { padding: 12px; }
.section-title { margin: 0 0 12px; font-size: 13px; font-weight: 800; letter-spacing: .02em; }

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.layout-2-1 { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 14px; }
.layout-1-1 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 14px; }

.kpi {
  padding: 15px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface);
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.kpi::after { content:""; position:absolute; width:74px; height:74px; border-radius:50%; right:-24px; top:-28px; background:var(--primary-soft); opacity:.8; }
.kpi-label { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.kpi-value { margin-top: 8px; font-size: 25px; font-weight: 800; line-height: 1; letter-spacing: -.035em; }
.kpi-note { margin-top: 7px; color: var(--muted); font-size: 11px; }
.kpi.accent { background: linear-gradient(145deg, #1d4ed8, #4f46e5); color:#fff; border:0; }
.kpi.accent .kpi-label, .kpi.accent .kpi-note { color: rgba(255,255,255,.72); }
.kpi.accent::after { background: rgba(255,255,255,.14); }

.btn {
  appearance: none; border: 1px solid transparent; border-radius: 10px;
  min-height: 36px; padding: 8px 13px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  text-decoration: none; cursor: pointer; font-weight: 750; font-size: 12px; line-height: 1;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 6px 16px rgba(37,99,235,.20); }
.btn-secondary { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-success { background: var(--success); color:#fff; }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: #f1b7bd; }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; }
.btn-icon { width: 36px; padding: 0; }
.btn-sm { min-height: 31px; padding: 6px 10px; font-size: 11px; border-radius: 8px; }
.btn-block { width: 100%; }

.form-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 12px; }
.field { grid-column: span 6; min-width: 0; }
.field-3 { grid-column: span 3; }
.field-4 { grid-column: span 4; }
.field-6 { grid-column: span 6; }
.field-8 { grid-column: span 8; }
.field-9 { grid-column: span 9; }
.field-12 { grid-column: 1 / -1; }
label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; font-weight: 750; }
.input, select, textarea {
  width: 100%; border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--surface); color: var(--text); outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.input, select { min-height: 38px; padding: 8px 10px; }
textarea { min-height: 86px; padding: 9px 10px; resize: vertical; }
.input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.input[readonly] { background: var(--surface-2); color: var(--muted); }
.help { color: var(--muted); font-size: 10.5px; margin-top: 5px; }
.inline-fields { display: flex; gap: 9px; align-items: end; flex-wrap: wrap; }
.inline-fields > .field { flex: 1 1 150px; grid-column: auto; }
.checkbox { display: inline-flex; align-items: center; gap: 7px; margin: 0; color: var(--text); font-size: 12px; }
.checkbox input { width: 16px; height: 16px; }

.searchbar { display: flex; gap: 8px; align-items: center; }
.searchbar .input { flex: 1; }

.table-wrap { overflow: auto; max-width: 100%; }
.table-wrap.tall { max-height: 520px; }
.table-wrap.medium { max-height: 360px; }
table.data { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; }
table.data thead th {
  position: sticky; top: 0; z-index: 2; padding: 10px 11px;
  background: var(--surface-2); color: var(--muted); border-bottom: 1px solid var(--border);
  text-align: left; font-size: 10.5px; font-weight: 850; letter-spacing: .045em; text-transform: uppercase;
  white-space: nowrap;
}
table.data tbody td { padding: 10px 11px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--primary-soft); }
table.data a.row-link { color: var(--text); text-decoration: none; font-weight: 750; }
.cell-actions { display: flex; justify-content: flex-end; gap: 5px; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.center { text-align: center !important; }
.empty { padding: 30px 16px !important; color: var(--muted); text-align: center; }

.badge { display:inline-flex; align-items:center; gap:5px; min-height:24px; padding:4px 8px; border-radius:999px; font-size:10.5px; font-weight:800; white-space:nowrap; }
.badge-blue { background: var(--primary-soft); color: var(--primary); }
.badge-green { background: var(--success-soft); color: var(--success); }
.badge-red { background: var(--danger-soft); color: var(--danger); }
.badge-gray { background: var(--surface-3); color: var(--muted); }
.badge-orange { background: var(--warning-soft); color: var(--warning); }

.alert { border-radius: 12px; padding: 11px 13px; margin-bottom: 14px; border: 1px solid; font-size: 12px; font-weight: 650; }
.alert-success { background: var(--success-soft); color: var(--success); border-color: #b8e2c4; }
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: #f1b7bd; }
.alert-info { background: var(--primary-soft); color: var(--primary); border-color: #b9cffd; }

.sticky-actions {
  position: sticky; top: 66px; z-index: 25;
  margin: -6px 0 14px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 13px;
  background: var(--surface); backdrop-filter: blur(9px);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; box-shadow: var(--shadow-sm);
}
.sticky-actions .left, .sticky-actions .right { display:flex; gap:7px; align-items:center; flex-wrap:wrap; }
.total-chip { padding: 7px 11px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-weight: 850; font-variant-numeric: tabular-nums; }

.tabs { display:flex; gap:5px; padding:5px; border-radius:12px; background:var(--surface-2); border:1px solid var(--border); width:max-content; max-width:100%; overflow:auto; }
.tab-btn { border:0; background:transparent; color:var(--muted); padding:8px 11px; border-radius:9px; font-weight:750; cursor:pointer; white-space:nowrap; }
.tab-btn.active { background:var(--surface); color:var(--primary); box-shadow:var(--shadow-sm); }
.tab-panel { display:none; }
.tab-panel.active { display:block; }

.editor-row { display:grid; grid-template-columns: minmax(0,1.6fr) minmax(120px,.7fr) minmax(90px,.45fr) minmax(120px,.7fr) auto; gap:8px; align-items:end; }
.editor-row.work { grid-template-columns: 145px minmax(0,1fr) auto; }
.editor-row.labor { grid-template-columns: minmax(170px,1.2fr) 95px 130px 130px auto; }
.editor-list { margin-top:12px; border:1px solid var(--border); border-radius:12px; overflow:auto; max-height:300px; }
.editor-item { display:grid; grid-template-columns: minmax(0,1fr) auto; gap:10px; align-items:center; padding:10px 11px; border-bottom:1px solid var(--border); background:var(--surface); }
.editor-item:last-child { border-bottom:0; }
.editor-item-title { font-weight:750; }
.editor-item-meta { margin-top:2px; color:var(--muted); font-size:10.5px; }
.editor-item-actions { display:flex; gap:5px; }

.payroll-days { display:grid; gap:7px; }
.payroll-day { display:grid; grid-template-columns: 155px 90px 95px 115px minmax(120px,1fr); gap:8px; align-items:end; padding:9px; border:1px solid var(--border); border-radius:11px; background:var(--surface-2); }
.day-name { font-weight:800; }
.day-date { color:var(--muted); font-size:10px; margin-top:2px; }

.timeline { position:relative; padding-left:23px; }
.timeline::before { content:""; position:absolute; left:7px; top:7px; bottom:7px; width:2px; background:var(--border); }
.timeline-item { position:relative; padding:0 0 16px; }
.timeline-item::before { content:""; position:absolute; left:-20px; top:5px; width:10px; height:10px; border-radius:50%; background:var(--primary); box-shadow:0 0 0 4px var(--primary-soft); }
.timeline-date { color:var(--muted); font-size:10px; font-weight:800; }
.timeline-title { margin-top:3px; font-weight:800; }

.auth-page { min-height:100vh; display:grid; place-items:center; padding:20px; background:radial-gradient(circle at 20% 10%, #dbeafe 0, transparent 35%), radial-gradient(circle at 85% 75%, #ede9fe 0, transparent 32%), var(--bg); }
.auth-card { width:min(440px,100%); background:var(--surface); border:1px solid var(--border); border-radius:22px; box-shadow:var(--shadow-md); padding:27px; }
.auth-logo { width:50px; height:50px; border-radius:16px; display:grid; place-items:center; color:#fff; font-size:24px; font-weight:900; background:linear-gradient(135deg,#2563eb,#7c3aed); box-shadow:0 12px 30px rgba(37,99,235,.25); }
.auth-card h1 { margin:16px 0 5px; font-size:24px; letter-spacing:-.03em; }
.auth-card p { color:var(--muted); margin:0 0 18px; }

.footer-note { margin-top:16px; color:var(--muted); font-size:10.5px; text-align:center; }
.divider { height:1px; background:var(--border); margin:14px 0; }
.muted { color:var(--muted); }
.text-danger { color:var(--danger); }
.text-success { color:var(--success); }
.nowrap { white-space:nowrap; }
.mono { font-family:Consolas, monospace; }

@media (max-width: 1180px) {
  .grid-5 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .layout-2-1 { grid-template-columns: 1fr; }
  .editor-row.labor { grid-template-columns: minmax(160px,1fr) 90px 115px 115px; }
  .editor-row.labor .editor-submit { grid-column:1/-1; }
}

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { transform:translateX(-105%); transition:transform .2s ease; box-shadow:var(--shadow-md); }
  body.sidebar-open .sidebar { transform:translateX(0); }
  .main { grid-column:1; }
  .mobile-menu { display:inline-flex; }
  .content { padding:16px 14px 28px; }
  .topbar { padding:9px 14px; }
  .user-name { display:none; }
  .grid-4, .grid-5 { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .grid-3 { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .layout-1-1, .grid-2 { grid-template-columns:1fr; }
  .sticky-actions { top:64px; }
  .payroll-day { grid-template-columns: 1fr 80px 95px; }
  .payroll-day .payroll-note { grid-column:1/-1; }
  .editor-row, .editor-row.work, .editor-row.labor { grid-template-columns:1fr 1fr; }
  .editor-row .wide, .editor-row.work .wide, .editor-row.labor .wide, .editor-submit { grid-column:1/-1; }
}

@media (max-width: 620px) {
  .page-head { flex-direction:column; }
  .page-actions { justify-content:flex-start; width:100%; }
  .page-actions .btn { flex:1 1 auto; }
  .grid-3, .grid-4, .grid-5 { grid-template-columns:1fr; }
  .form-grid { grid-template-columns:1fr; }
  .field, .field-3, .field-4, .field-6, .field-8, .field-9, .field-12 { grid-column:1/-1; }
  .topbar-actions .btn-ghost:not(.theme-toggle) { display:none; }
  .page-title { font-size:17px; }
  .content { padding:13px 10px 24px; }
  .card-header, .card-body { padding:12px; }
  .sticky-actions { align-items:flex-start; flex-direction:column; }
  .sticky-actions .left, .sticky-actions .right { width:100%; }
  .sticky-actions .btn { flex:1 1 auto; }
  .total-chip { width:100%; text-align:center; }
  .payroll-day { grid-template-columns:1fr 1fr; }
  .payroll-day .day-label, .payroll-day .payroll-note { grid-column:1/-1; }
  .editor-row, .editor-row.work, .editor-row.labor { grid-template-columns:1fr; }
  .editor-row > *, .editor-row.work > *, .editor-row.labor > * { grid-column:1 !important; }
  .hide-mobile { display:none; }
}


.form-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.week-picker-card .card-body {
  display: grid;
  grid-template-columns: minmax(240px, .75fr) minmax(390px, 1.25fr);
  gap: 16px;
  align-items: start;
}
.week-select-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 9px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-2);
}
.week-select-form .field { grid-column: auto; }
.week-calendar {
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  padding: 10px;
  overflow: hidden;
}
.week-calendar-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  text-align: center;
}
.week-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(28px, 1fr));
  gap: 4px;
}
.week-cal-head {
  padding: 4px 2px;
  color: var(--muted);
  text-align: center;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}
.week-cal-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(7, minmax(28px, 1fr));
  gap: 4px;
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  transition: background .12s ease, border-color .12s ease;
}
.week-cal-row:hover { background: var(--primary-soft); border-color: var(--border-strong); }
.week-cal-row.selected { background: var(--primary-soft); border-color: var(--primary); }
.week-cal-row.current { box-shadow: inset 3px 0 0 var(--success); }
.week-cal-day {
  min-height: 27px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 720;
}
.week-cal-day.outside { color: var(--muted); opacity: .55; }
.week-cal-day.today { background: var(--success-soft); color: var(--success); font-weight: 900; }
.week-cal-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 9px;
  color: var(--muted);
  font-size: 10.5px;
}
.week-cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 9px; height: 9px; border-radius: 999px; display: inline-block; }
.legend-dot.current { background: var(--success); }
.legend-dot.selected { background: var(--primary); }

@media (max-width: 980px) {
  .week-picker-card .card-body { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .week-select-form { grid-template-columns: 1fr; }
  .week-select-form .btn { width: 100%; }
  .form-actions .btn { flex: 1 1 auto; }
  .week-calendar { padding: 7px; }
  .week-cal-grid, .week-cal-row { gap: 2px; }
  .week-cal-day { min-height: 25px; font-size: 10px; }
}

/* Webtárhelyes kiadás kiegészítések */
.inline-form { display:inline; margin:0; }
.page-intro { margin: -5px 0 16px; color: var(--muted); }
.alert { padding: 11px 13px; border-radius: 11px; margin-bottom: 12px; border:1px solid var(--border); font-weight:650; }
.alert-success { background:var(--success-soft); color:var(--success); border-color:rgba(21,128,61,.22); }
.alert-error { background:var(--danger-soft); color:var(--danger); border-color:rgba(220,38,38,.22); }
.alert-warning { background:var(--warning-soft); color:var(--warning); border-color:rgba(180,83,9,.22); }
.auth-body { min-height:100vh; display:grid; place-items:center; padding:24px; background:radial-gradient(circle at 15% 15%,#dbeafe 0,transparent 28%),radial-gradient(circle at 85% 12%,#ede9fe 0,transparent 25%),var(--bg); }
.auth-card,.install-card { width:min(100%,460px); background:var(--surface); border:1px solid var(--border); border-radius:22px; padding:26px; box-shadow:var(--shadow-md); }
.install-card { width:min(100%,760px); }
.install-shell { width:100%; display:grid; place-items:center; }
.install-brand { display:flex; align-items:center; gap:13px; margin-bottom:22px; }
.install-brand h1 { margin:0; font-size:24px; }
.install-brand p { margin:3px 0 0; color:var(--muted); }
.install-card h2 { font-size:15px; margin:23px 0 12px; }
.check-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-bottom:16px; }
.check-item { padding:9px 11px; border-radius:10px; border:1px solid var(--border); background:var(--surface-2); font-size:12px; font-weight:700; }
.check-item span { display:inline-grid; place-items:center; width:20px; height:20px; border-radius:50%; margin-right:7px; }
.check-item.ok span { background:var(--success-soft); color:var(--success); }
.check-item.bad span { background:var(--danger-soft); color:var(--danger); }
.center { text-align:center; }
.btn-lg { min-height:44px; font-size:13px; margin-top:14px; }
.table-actions { display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end; }
.table-link { color:var(--primary); font-weight:750; text-decoration:none; }
.table-link:hover { text-decoration:underline; }
.badge { display:inline-flex; align-items:center; border-radius:999px; padding:4px 8px; font-size:10px; font-weight:800; background:var(--surface-3); color:var(--muted); }
.badge-open { background:#eff6ff; color:#1d4ed8; }
.badge-in_progress { background:#fff7ed; color:#c2410c; }
.badge-completed { background:#ecfdf5; color:#047857; }
.badge-delivered { background:#f3e8ff; color:#7e22ce; }
.muted { color:var(--muted); }
.empty-state { padding:28px; text-align:center; color:var(--muted); }
.split-layout { display:grid; grid-template-columns:minmax(260px,.75fr) minmax(0,1.65fr); gap:14px; }
.sticky-card { position:sticky; top:82px; align-self:start; }
.list-stack { display:flex; flex-direction:column; gap:7px; max-height:60vh; overflow:auto; padding-right:3px; }
.list-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 11px; border:1px solid var(--border); border-radius:11px; text-decoration:none; background:var(--surface); }
.list-row:hover,.list-row.active { border-color:var(--primary); background:var(--primary-soft); }
.list-row-title { font-weight:780; }
.list-row-meta { color:var(--muted); font-size:11px; margin-top:2px; }
.toolbar { display:flex; gap:8px; flex-wrap:wrap; align-items:end; }
.toolbar .grow { flex:1 1 250px; }
.editor-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.editor-item { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; padding:10px 11px; border:1px solid var(--border); border-radius:11px; background:var(--surface-2); }
.editor-item-title { font-weight:760; }
.editor-item-meta { color:var(--muted); font-size:11px; margin-top:3px; }
.editor-item-actions { display:flex; gap:5px; flex-shrink:0; }
.editor-list { display:flex; flex-direction:column; gap:7px; margin-top:10px; }
.total-bar { display:flex; justify-content:space-between; align-items:center; gap:15px; padding:14px 16px; border-radius:14px; background:linear-gradient(135deg,var(--primary),var(--primary-2)); color:white; }
.total-bar strong { font-size:23px; }
.payroll-days { display:grid; grid-template-columns:repeat(7,minmax(115px,1fr)); gap:8px; overflow-x:auto; padding-bottom:5px; }
.payroll-day { min-width:115px; padding:11px; border:1px solid var(--border); border-radius:12px; background:var(--surface-2); }
.payroll-day h4 { margin:0 0 3px; font-size:12px; }
.payroll-day .date { color:var(--muted); font-size:10px; margin-bottom:8px; }
.payroll-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.summary-box { padding:12px; border:1px solid var(--border); border-radius:12px; background:var(--surface-2); }
.summary-box span { display:block; color:var(--muted); font-size:10px; text-transform:uppercase; font-weight:800; }
.summary-box strong { display:block; font-size:18px; margin-top:4px; }
.color-input { height:38px; padding:3px; }
hr.soft { border:0; border-top:1px solid var(--border); margin:18px 0; }
@media(max-width:1100px){.split-layout{grid-template-columns:1fr}.sticky-card{position:static}.editor-grid{grid-template-columns:1fr 1fr}.payroll-summary{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.check-grid{grid-template-columns:1fr}.editor-grid{grid-template-columns:1fr}.payroll-summary{grid-template-columns:1fr}.auth-card,.install-card{padding:18px}.content{padding:16px 12px 28px}}


/* 1.1 – kompakt márka, havi összesítések és belépés */
.car-mark { color:#fff; }
.brand-car { width:25px; height:25px; display:block; }
.auth-car { width:31px; height:31px; display:block; }
.brand-mark.car-mark { font-size:0; }
.auth-brand { display:flex; align-items:center; gap:13px; margin-bottom:20px; }
.auth-brand h1 { margin:0; font-size:22px; letter-spacing:-.03em; }
.auth-brand p { margin:3px 0 0; color:var(--muted); }
.remember-row { display:flex; gap:10px; align-items:flex-start; margin:2px 0 16px; padding:11px 12px; border:1px solid var(--border); border-radius:12px; background:var(--surface-2); cursor:pointer; }
.remember-row input { margin-top:3px; }
.remember-row span { display:grid; gap:2px; }
.remember-row strong { font-size:12px; }
.remember-row small { color:var(--muted); line-height:1.35; }
.kpi-link { display:block; text-decoration:none; transition:transform .15s ease, box-shadow .15s ease; }
.kpi-link:hover { transform:translateY(-2px); box-shadow:var(--shadow-md); }
.month-toolbar { display:flex; justify-content:space-between; align-items:end; gap:12px; margin-bottom:14px; padding:11px; border:1px solid var(--border); border-radius:14px; background:var(--surface); box-shadow:var(--shadow-sm); }
.month-nav, .month-select { display:flex; align-items:end; gap:7px; flex-wrap:wrap; }
.month-select label { color:var(--muted); font-size:11px; font-weight:800; }
.month-select .input { width:175px; }
.summary-heading { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:14px; }
.summary-month { font-size:24px; font-weight:850; letter-spacing:-.035em; }
.monthly-secondary { margin-top:14px; }
.snapshot-kpi { border-style:dashed; }
table tfoot th { padding:11px; background:var(--surface-2); border-top:2px solid var(--border-strong); }
@media(max-width:760px){.month-toolbar,.summary-heading{align-items:stretch;flex-direction:column}.month-nav .btn{flex:1}.month-select{display:grid;grid-template-columns:1fr auto}.month-select label{grid-column:1/-1}.month-select .input{width:100%}.summary-heading .page-actions{justify-content:flex-start}}
@media print {
  .sidebar,.topbar,.no-print,.page-intro,.alert { display:none !important; }
  .app-shell { display:block; }
  .main { grid-column:auto; }
  .content { padding:0; max-width:none; }
  body { background:#fff; color:#111; }
  .card,.kpi { box-shadow:none; break-inside:avoid; }
  .layout-2-1 { display:block; }
}


/* 1.2 – TecDoc/TecRMI előkészített katalógus és műszaki modul */
.integration-banner{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:14px 16px;margin-bottom:14px;border:1px solid rgba(37,99,235,.22);border-radius:16px;background:linear-gradient(135deg,var(--primary-soft),var(--surface));box-shadow:var(--shadow-sm)}
.integration-banner.technical-banner{border-color:rgba(124,58,237,.22);background:linear-gradient(135deg,rgba(124,58,237,.09),var(--surface))}
.integration-icon{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,var(--primary),var(--primary-2));color:#fff;font-size:22px;font-weight:900;box-shadow:0 8px 20px rgba(37,99,235,.22)}
.integration-banner strong{font-size:14px}.integration-banner p{margin:3px 0 0;color:var(--muted);font-size:11px;line-height:1.45}
.integration-status{display:inline-flex;align-items:center;justify-content:center;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:900;letter-spacing:.04em}.integration-status.demo{background:var(--warning-soft);color:var(--warning)}.integration-status.live{background:var(--success-soft);color:var(--success)}
.vehicle-context-card{display:flex;align-items:center;gap:12px;padding:12px 14px;margin-bottom:14px;border:1px solid var(--border);border-radius:15px;background:var(--surface);box-shadow:var(--shadow-sm)}
.vehicle-context-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--surface-3);font-size:21px}.vehicle-context-card span,.vehicle-context-card small{display:block;color:var(--muted);font-size:10px}.vehicle-context-card strong{display:block;margin:2px 0;font-size:15px}
.catalog-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:14px;align-items:start}.catalog-searchbar{display:flex;gap:8px;align-items:end;flex-wrap:wrap}.catalog-searchbar select{min-width:190px}
.catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.part-card{display:flex;flex-direction:column;gap:10px;padding:14px;border:1px solid var(--border);border-radius:15px;background:var(--surface);box-shadow:var(--shadow-sm)}.part-card:hover{border-color:var(--primary);box-shadow:var(--shadow-md)}
.part-card-top{display:flex;align-items:flex-start;gap:10px}.part-symbol{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--primary-soft);color:var(--primary);font-size:20px;font-weight:900}.part-category{font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;color:var(--primary)}.part-card h3{margin:2px 0;font-size:14px}.part-brand{font-size:10px;color:var(--muted)}.part-card>p{margin:0;color:var(--muted);font-size:11px;line-height:1.45}.part-warning{padding:8px 9px;border-radius:9px;background:var(--warning-soft);color:var(--warning);font-size:9.5px;line-height:1.35}.part-add-form{display:grid;grid-template-columns:85px 1fr auto;gap:7px;align-items:end;margin-top:auto}.part-add-form label{font-size:9px}.part-add-form .btn{height:38px}
.catalog-basket{position:sticky;top:82px}.basket-count{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;background:var(--primary);color:#fff;font-weight:900;font-size:11px}.basket-list{display:flex;flex-direction:column;gap:7px}.basket-item{display:flex;align-items:flex-start;gap:8px;padding:9px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2)}.basket-item strong,.basket-item span,.basket-item small{display:block}.basket-item strong{font-size:11px}.basket-item span,.basket-item small{color:var(--muted);font-size:9.5px;margin-top:2px}.basket-total{display:flex;justify-content:space-between;align-items:center;margin-top:10px;padding-top:10px;border-top:1px solid var(--border)}.basket-total strong{font-size:17px}.stack-actions{display:grid;gap:7px;margin-top:10px}.stack-actions form,.stack-actions .btn{width:100%}.empty-state.compact{padding:14px}
.technical-tabs{display:flex;gap:5px;overflow:auto;margin-bottom:14px;padding:5px;border:1px solid var(--border);border-radius:13px;background:var(--surface)}.technical-tabs a{white-space:nowrap;padding:8px 10px;border-radius:9px;text-decoration:none;color:var(--muted);font-size:10.5px;font-weight:800}.technical-tabs a:hover,.technical-tabs a.active{background:var(--primary-soft);color:var(--primary)}
.operation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.operation-card{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:11px;border:1px solid var(--border);border-radius:11px;background:var(--surface-2)}.operation-card>span{font-size:9px;color:var(--primary);font-weight:900;text-transform:uppercase}.operation-card strong{font-size:11.5px}.operation-card small{color:var(--muted);font-size:9.5px}.operation-card .btn{margin-top:auto}
.locked-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.locked-module{padding:20px;border:1px solid var(--border);border-radius:16px;background:var(--surface);box-shadow:var(--shadow-sm)}.locked-module>span,.diagram-header span{font-size:9px;font-weight:900;letter-spacing:.09em;color:var(--primary)}.locked-module h3{margin:6px 0}.locked-module p{color:var(--muted);font-size:11px;line-height:1.55}.locked-state{display:inline-flex;margin-top:8px;padding:6px 9px;border-radius:999px;background:var(--warning-soft);color:var(--warning);font-size:9.5px;font-weight:850}
.diagram-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.diagram-card{padding:16px;border:1px solid var(--border);border-radius:16px;background:var(--surface);box-shadow:var(--shadow-sm)}.diagram-header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.diagram-header h3{margin:4px 0 0}.exploded-svg{width:100%;height:auto;min-height:230px;margin-top:12px;color:var(--text)}.diagram-note{margin:9px 0 0;padding:9px 10px;border-radius:10px;background:var(--surface-2);color:var(--muted);font-size:10px;line-height:1.45}.wiring-demo{display:flex;align-items:center;justify-content:center;gap:10px;overflow:auto;padding:35px 8px}.wire-node{min-width:105px;padding:16px 10px;border:2px solid var(--primary);border-radius:14px;text-align:center;font-weight:900;background:var(--primary-soft)}.wire-node small{font-weight:650;color:var(--muted)}.wire-line{min-width:55px;height:3px;background:var(--primary);position:relative}.wire-line span{position:absolute;left:50%;top:-20px;transform:translateX(-50%);white-space:nowrap;font-size:9px;color:var(--muted)}
.integration-settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.integration-setting{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;padding:12px;border:1px solid var(--border);border-radius:12px;background:var(--surface-2)}.integration-setting-icon{width:37px;height:37px;border-radius:10px;display:grid;place-items:center;background:var(--primary-soft);color:var(--primary);font-size:18px;font-weight:900}.integration-setting strong{font-size:11.5px}.integration-setting p{margin:3px 0 0;color:var(--muted);font-size:9.5px;line-height:1.4}
@media(max-width:1180px){.catalog-layout{grid-template-columns:1fr}.catalog-basket{position:static}.diagram-grid{grid-template-columns:1fr}}
@media(max-width:820px){.catalog-grid,.operation-grid,.locked-module-grid,.integration-settings-grid{grid-template-columns:1fr}.part-add-form{grid-template-columns:1fr 1fr}.part-add-form .btn{grid-column:1/-1}.vehicle-context-card{align-items:flex-start;flex-wrap:wrap}.vehicle-context-card .page-actions{width:100%;justify-content:flex-start}}

/* 1.3 – egységes, kompakt táblázatok és saját alkatrészkatalógus */
.content { max-width: 1540px; }
.card { border-color: var(--border); }
.card-header { min-height: 58px; }
.card-header h3 { font-size: 15px; }
.card-header p { font-size: 11.5px; }

/* A régebbi oldalak class nélküli táblázatai is ugyanazt a modern stílust kapják. */
.table-wrap { border-radius: 0 0 var(--radius) var(--radius); }
.table-wrap > table,
table.data {
  width: 100%;
  min-width: 660px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
  line-height: 1.35;
}
.table-wrap > table thead th,
table.data thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 11px 13px;
  background: var(--surface-2);
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
}
.table-wrap > table tbody td,
table.data tbody td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table-wrap > table tbody tr:last-child td,
table.data tbody tr:last-child td { border-bottom: 0; }
.table-wrap > table tbody tr:nth-child(even),
table.data tbody tr:nth-child(even) { background: var(--surface-2); }
.table-wrap > table tbody tr:hover,
table.data tbody tr:hover { background: var(--primary-soft); }
.table-wrap > table tfoot th,
.table-wrap > table tfoot td { padding: 12px 13px; }
.table-wrap .right, table .right { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-wrap .btn { vertical-align: middle; }
.table-actions { justify-content: flex-end; min-width: max-content; }
.table-link { display: inline-flex; align-items: center; min-height: 28px; }

/* A kártyákban lévő egyszerű listák kevésbé zsúfoltak. */
.list-row { min-height: 58px; padding: 11px 12px; }
.list-row-title { font-size: 12.5px; }
.list-row-meta { line-height: 1.45; }
.summary-box { min-height: 84px; display:flex; flex-direction:column; justify-content:center; }
.summary-box strong { font-variant-numeric: tabular-nums; }

/* Heti fizetés: minden nap önálló, jól olvasható kártya. */
.payroll-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  overflow: visible;
  padding: 0;
}
.payroll-day {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
}
.payroll-day h4 { margin:0; font-size:14px; }
.payroll-day .date { margin:0 0 5px; font-size:10.5px; }
.payroll-day .help { margin:0; }
.payroll-day > strong {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 27px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
}
.payroll-day label { margin: 3px 0 0; }
.payroll-day .input { min-height: 36px; }
.payroll-summary { margin-top: 2px; }

/* Saját alkatrészkatalógus */
.catalog-summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:14px; }
.catalog-notice {
  display:flex; align-items:center; gap:12px;
  margin-bottom:14px; padding:13px 15px;
  border:1px solid rgba(37,99,235,.20); border-radius:15px;
  background:linear-gradient(135deg,rgba(37,99,235,.09),rgba(124,58,237,.05),var(--surface));
}
.catalog-notice-icon { width:42px; height:42px; flex:0 0 42px; display:grid; place-items:center; border-radius:13px; background:var(--primary); color:#fff; font-size:21px; }
.catalog-notice strong { display:block; font-size:13px; }
.catalog-notice p { margin:3px 0 0; color:var(--muted); font-size:11px; }
.catalog-admin-panel, .catalog-import-panel { margin-bottom:14px; overflow:visible; }
.catalog-admin-panel summary, .catalog-import-panel summary {
  list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:13px 15px; border-radius:var(--radius); background:var(--surface);
}
.catalog-admin-panel summary::-webkit-details-marker, .catalog-import-panel summary::-webkit-details-marker { display:none; }
.catalog-admin-panel summary span:first-child, .catalog-import-panel summary span:first-child { display:grid; gap:2px; }
.catalog-admin-panel summary small, .catalog-import-panel summary small { color:var(--muted); font-size:10.5px; }
.catalog-admin-panel[open] summary, .catalog-import-panel[open] summary { border-bottom:1px solid var(--border); border-radius:var(--radius) var(--radius) 0 0; }
.catalog-fitment-box { margin-top:14px; padding:13px; border:1px dashed var(--border-strong); border-radius:13px; background:var(--surface-2); }
.catalog-category-strip {
  display:flex; gap:8px; overflow-x:auto; padding:2px 1px 10px; margin-bottom:4px;
  scroll-snap-type:x proximity;
}
.category-chip {
  min-width:154px; max-width:190px; flex:0 0 auto; scroll-snap-align:start;
  display:grid; grid-template-columns:32px minmax(0,1fr) auto; align-items:center; gap:8px;
  padding:9px 10px; border:1px solid var(--border); border-radius:12px;
  background:var(--surface); color:var(--text); text-decoration:none; box-shadow:var(--shadow-sm);
}
.category-chip > span { width:30px; height:30px; display:grid; place-items:center; border-radius:9px; background:var(--surface-3); color:var(--primary); }
.category-chip strong { font-size:10.5px; line-height:1.25; }
.category-chip small { color:var(--muted); font-weight:800; }
.category-chip:hover, .category-chip.active { border-color:var(--primary); background:var(--primary-soft); }
.catalog-searchbar { align-items:end; }
.catalog-compatible { min-height:38px; padding:8px 10px; border:1px solid var(--border); border-radius:10px; background:var(--surface-2); white-space:nowrap; }
.catalog-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.part-card { min-height:300px; }
.part-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
.part-facts span { min-width:0; padding:8px; border:1px solid var(--border); border-radius:9px; background:var(--surface-2); }
.part-facts small, .part-facts strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.part-facts small { color:var(--muted); font-size:8.5px; text-transform:uppercase; font-weight:800; }
.part-facts strong { margin-top:2px; font-size:10.5px; }
.part-fitment { padding:8px 9px; border-radius:9px; background:var(--success-soft); color:var(--success); font-size:9.5px; line-height:1.35; }
.part-fitment.universal { background:var(--surface-3); color:var(--muted); }
.part-admin-actions { display:flex; justify-content:flex-end; gap:6px; padding-top:8px; border-top:1px solid var(--border); }
.part-admin-actions form { margin:0; }
.catalog-empty { grid-column:1/-1; }
.catalog-empty p { margin:6px auto 0; max-width:560px; }
.integration-status.configured { background:var(--success-soft); color:var(--success); }

/* Nyomtatási linkek ugyanabban az alkalmazásablakban nyílnak meg. */
a[data-print-link]::before { content:'▤'; font-size:11px; }

@media (max-width: 1300px) {
  .catalog-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .catalog-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 820px) {
  .catalog-grid { grid-template-columns:1fr; }
  .part-card { min-height:0; }
  .catalog-summary-grid { grid-template-columns:1fr 1fr; }
  .catalog-notice { align-items:flex-start; }
}
@media (max-width: 620px) {
  .table-wrap > table, table.data { min-width:580px; }
  .catalog-summary-grid { grid-template-columns:1fr; }
  .part-facts { grid-template-columns:1fr 1fr; }
  .catalog-notice { flex-direction:column; }
}
.field-2 { grid-column: span 2; }
@media (max-width:620px){.field-2{grid-column:1/-1}}


/* 1.4.1 – egyszerűsített munkaóra-bevitel */
.labor-editor-grid {
  grid-template-columns: minmax(220px, 1.4fr) minmax(140px, .6fr);
  max-width: 760px;
}
@media (max-width: 720px) {
  .labor-editor-grid { grid-template-columns: 1fr; max-width: none; }
}


/* 1.4.2 – heti fizetés és kifizetési állapot */
.payroll-list-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.badge-paid,
.payment-status-paid {
  background: rgba(34, 197, 94, .16);
  border: 1px solid rgba(74, 222, 128, .52);
  color: #86efac;
}

.badge-unpaid,
.payment-status-open {
  background: rgba(245, 158, 11, .13);
  border: 1px solid rgba(251, 191, 36, .42);
  color: #fcd34d;
}

.payment-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.payment-paid-card {
  border-color: rgba(74, 222, 128, .5);
  box-shadow: inset 4px 0 0 rgba(34, 197, 94, .8);
}

.payroll-day {
  align-content: start;
}

.payroll-day [data-manual-hours] {
  margin-top: 2px;
}

@media (max-width: 700px) {
  .payroll-list-status {
    width: 100%;
    justify-content: space-between;
    margin-top: 7px;
  }

  .payment-status {
    width: 100%;
  }
}


/* 1.4.3 – Windows alkalmazás letöltése */
.app-download-card {
  overflow: hidden;
  border-color: rgba(59, 130, 246, .34);
}

.app-download-layout {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.app-download-icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(145deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 14px 30px rgba(37, 99, 235, .24);
}

.download-car-icon {
  width: 42px;
  height: 42px;
}

.app-download-copy strong {
  display: block;
  font-size: 17px;
  margin-bottom: 5px;
}

.app-download-copy p {
  margin: 0;
  line-height: 1.55;
  opacity: .78;
}

.app-download-button {
  min-width: 235px;
  justify-content: center;
}

.download-ready-badge,
.download-missing-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.download-ready-badge {
  color: #86efac;
  background: rgba(34, 197, 94, .15);
  border: 1px solid rgba(74, 222, 128, .45);
}

.download-missing-badge {
  color: #fcd34d;
  background: rgba(245, 158, 11, .12);
  border: 1px solid rgba(251, 191, 36, .38);
}

.app-download-note {
  margin-top: 16px;
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .app-download-layout {
    grid-template-columns: 58px minmax(0, 1fr);
  }
  .app-download-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }
  .download-car-icon {
    width: 35px;
    height: 35px;
  }
  .app-download-action {
    grid-column: 1 / -1;
  }
  .app-download-button {
    width: 100%;
    min-width: 0;
  }
}


/* 1.4.5 – modern bejelentkezési oldal */
.auth-page-modern {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 8% 8%, rgba(37,99,235,.18), transparent 30%),
    radial-gradient(circle at 92% 90%, rgba(124,58,237,.16), transparent 32%),
    #07101e;
}
.auth-shell-modern {
  width: min(1120px, 100%);
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 30px;
  background: #111c2f;
  box-shadow: 0 35px 100px rgba(0,0,0,.42);
}
.auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 48px 52px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(145deg,#2563eb 0%,#6d28d9 100%);
}
.auth-visual::before {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  right: -220px;
  top: -130px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.17);
}
.auth-visual::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  left: -150px;
  bottom: -150px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.auth-visual-brand,
.auth-visual-main,
.auth-points { position: relative; z-index: 1; }
.auth-visual-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 19px;
}
.auth-visual-brand .auth-logo {
  width: 52px;
  height: 52px;
  box-shadow: none;
  background: rgba(255,255,255,.17);
  border: 1px solid rgba(255,255,255,.2);
}
.auth-visual-main {
  margin-top: auto;
  margin-bottom: 52px;
}
.auth-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: #93c5fd;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.auth-visual .auth-kicker { color: rgba(255,255,255,.72); }
.auth-visual-main h1 {
  max-width: 480px;
  margin: 0 0 18px;
  font-size: clamp(40px,5vw,62px);
  line-height: 1.02;
  letter-spacing: -.05em;
}
.auth-visual-main p {
  max-width: 480px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 16px;
  line-height: 1.7;
}
.auth-points { display: grid; gap: 13px; }
.auth-points div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.9);
  font-size: 14px;
  font-weight: 700;
}
.auth-points span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
}
.auth-login-panel {
  display: grid;
  place-items: center;
  padding: 50px;
  background: #111c2f;
}
.auth-login-box { width: min(410px,100%); }
.auth-mobile-logo {
  display: none;
  align-items: center;
  gap: 11px;
  margin-bottom: 30px;
}
.auth-mobile-logo .auth-logo { width: 46px; height: 46px; }
.auth-login-heading { margin-bottom: 28px; }
.auth-login-heading h2 {
  margin: 0 0 8px;
  color: #f8fafc;
  font-size: 34px;
  letter-spacing: -.04em;
}
.auth-login-heading p { margin: 0; color: #94a3b8; line-height: 1.55; }
.auth-login-form { display: grid; gap: 18px; }
.auth-field-modern label {
  display: block;
  margin-bottom: 8px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
}
.auth-field-modern .input {
  min-height: 52px;
  border-radius: 14px;
  background: #0b1526;
  border-color: #334155;
  color: #f8fafc;
}
.auth-field-modern .input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(59,130,246,.14);
}
.password-field-wrap { position: relative; }
.password-field-wrap .input { padding-right: 76px; }
.password-show-button {
  position: absolute;
  top: 50%;
  right: 9px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 9px;
  padding: 8px 10px;
  color: #bfdbfe;
  background: rgba(59,130,246,.14);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.remember-row-modern {
  margin: 0;
  padding: 13px 14px;
  border: 1px solid #29364b;
  border-radius: 14px;
  background: rgba(15,23,42,.48);
}
.remember-row-modern small { color: #94a3b8; }
.auth-login-button {
  min-height: 54px;
  display: flex;
  justify-content: space-between;
  border-radius: 14px;
}
.auth-safe-note {
  margin-top: 20px;
  color: #64748b;
  font-size: 12px;
  text-align: center;
}
@media (max-width: 850px) {
  .auth-page-modern { padding: 16px; }
  .auth-shell-modern {
    width: min(520px,100%);
    min-height: auto;
    grid-template-columns: 1fr;
  }
  .auth-visual { display: none; }
  .auth-login-panel { padding: 34px 28px; }
  .auth-mobile-logo { display: flex; }
}
@media (max-width: 500px) {
  .auth-page-modern { padding: 0; }
  .auth-shell-modern { min-height: 100vh; border: 0; border-radius: 0; }
  .auth-login-panel { padding: 28px 20px; }
}


/* 1.4.6 – kompakt, prémium bejelentkezési oldal */
.login-v2-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 15% 12%, rgba(37,99,235,.14), transparent 28%),
    radial-gradient(circle at 88% 86%, rgba(124,58,237,.13), transparent 30%),
    #07101d;
}

.login-v2-shell {
  width: min(980px, 100%);
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 26px;
  background: #111c2f;
  box-shadow: 0 32px 90px rgba(0,0,0,.44);
}

.login-v2-main {
  display: flex;
  flex-direction: column;
  padding: 42px 48px 38px;
  background: #111c2f;
}

.login-v2-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.login-v2-logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: white;
  background: linear-gradient(145deg,#2563eb,#7c3aed);
  box-shadow: 0 14px 30px rgba(37,99,235,.24);
}

.login-v2-car {
  width: 29px;
  height: 29px;
}

.login-v2-brand strong {
  display: block;
  color: #f8fafc;
  font-size: 17px;
  line-height: 1.15;
}

.login-v2-brand span {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
}

.login-v2-heading {
  margin: 54px 0 28px;
}

.login-v2-eyebrow,
.login-v2-side-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: #60a5fa;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.login-v2-heading h1 {
  margin: 0 0 8px;
  color: #f8fafc;
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: -.045em;
}

.login-v2-heading p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.55;
}

.login-v2-form {
  display: grid;
  gap: 17px;
}

.login-v2-field label {
  display: block;
  margin-bottom: 8px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
}

.login-v2-input-wrap {
  position: relative;
}

.login-v2-input-wrap .input {
  width: 100%;
  min-height: 51px;
  padding-left: 45px;
  border: 1px solid #334155;
  border-radius: 14px;
  color: #f8fafc;
  background: #0a1424;
}

.login-v2-input-wrap .input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(59,130,246,.13);
}

.login-v2-input-icon {
  position: absolute;
  left: 17px;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 8px;
}

.login-v2-lock {
  font-size: 9px;
}

.login-v2-password-button {
  position: absolute;
  top: 50%;
  right: 9px;
  z-index: 3;
  transform: translateY(-50%);
  min-width: 58px;
  border: 0;
  border-radius: 9px;
  padding: 8px 10px;
  color: #bfdbfe;
  background: rgba(59,130,246,.14);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.login-v2-field:has(.login-v2-password-button) .input {
  padding-right: 82px;
}

.login-v2-remember {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid #29364a;
  border-radius: 13px;
  background: rgba(8,17,31,.42);
  cursor: pointer;
}

.login-v2-remember input {
  margin-top: 3px;
}

.login-v2-remember strong {
  display: block;
  color: #e2e8f0;
  font-size: 12px;
}

.login-v2-remember small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.4;
}

.login-v2-submit {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 13px;
  padding-inline: 18px;
  font-weight: 900;
}

.login-v2-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 25px;
  color: #64748b;
  font-size: 10px;
}

.login-v2-side {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 46px 38px 32px;
  color: white;
  background:
    linear-gradient(155deg, rgba(37,99,235,.96), rgba(91,33,182,.96)),
    #4f46e5;
}

.login-v2-side::before {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  right: -150px;
  top: -110px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
}

.login-v2-side-glow {
  position: absolute;
  width: 260px;
  height: 260px;
  left: -150px;
  bottom: -140px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}

.login-v2-side-content,
.login-v2-side-footer {
  position: relative;
  z-index: 1;
}

.login-v2-side-content {
  margin: auto 0;
}

.login-v2-side .login-v2-side-kicker {
  color: rgba(255,255,255,.7);
}

.login-v2-side h2 {
  margin: 0 0 31px;
  font-size: 31px;
  line-height: 1.12;
  letter-spacing: -.04em;
}

.login-v2-side-grid {
  display: grid;
  gap: 11px;
}

.login-v2-side-grid div {
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 13px;
  background: rgba(255,255,255,.09);
  backdrop-filter: blur(7px);
}

.login-v2-side-grid strong {
  display: block;
  font-size: 12px;
}

.login-v2-side-grid span {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.67);
  font-size: 10px;
}

.login-v2-side-footer {
  margin-top: auto;
  color: rgba(255,255,255,.55);
  font-size: 10px;
}

@media (max-width: 820px) {
  .login-v2-page {
    padding: 18px;
  }

  .login-v2-shell {
    width: min(520px,100%);
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .login-v2-side {
    display: none;
  }

  .login-v2-main {
    min-height: 620px;
    padding: 34px 30px 28px;
  }
}

@media (max-width: 480px) {
  .login-v2-page {
    padding: 0;
  }

  .login-v2-shell {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .login-v2-main {
    min-height: 100vh;
    padding: 27px 20px 24px;
  }

  .login-v2-heading {
    margin-top: 42px;
  }
}


/* 1.4.7 – teljes képernyőre reagáló bejelentkezés */
html,
body {
  min-height: 100%;
}

.login-v2-page {
  min-height: 100vh;
  width: 100%;
  padding: clamp(18px, 3vw, 52px);
  background:
    radial-gradient(circle at 12% 10%, rgba(37,99,235,.18), transparent 32%),
    radial-gradient(circle at 90% 88%, rgba(124,58,237,.17), transparent 34%),
    linear-gradient(145deg, #07101d 0%, #0a1424 100%);
}

.login-v2-shell {
  width: min(1380px, 100%);
  min-height: min(760px, calc(100vh - clamp(36px, 6vw, 104px)));
  grid-template-columns: minmax(470px, 1fr) minmax(390px, .82fr);
}

.login-v2-main {
  justify-content: center;
  padding: clamp(38px, 4vw, 70px);
}

.login-v2-main > * {
  width: min(470px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.login-v2-heading {
  margin-top: clamp(42px, 6vh, 72px);
}

.login-v2-security {
  margin-top: clamp(26px, 5vh, 54px);
}

.login-v2-side {
  padding: clamp(42px, 4vw, 70px);
}

.login-v2-side-content {
  width: min(460px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.login-v2-side h2 {
  font-size: clamp(30px, 3vw, 46px);
}

.login-v2-side-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.login-v2-side-grid div {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
}

@media (min-width: 1500px) {
  .login-v2-shell {
    width: min(1480px, calc(100vw - 80px));
  }
}

@media (max-height: 760px) and (min-width: 821px) {
  .login-v2-page {
    padding: 18px;
  }

  .login-v2-shell {
    min-height: calc(100vh - 36px);
  }

  .login-v2-main,
  .login-v2-side {
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .login-v2-heading {
    margin-top: 28px;
    margin-bottom: 20px;
  }

  .login-v2-form {
    gap: 13px;
  }

  .login-v2-side-grid div {
    min-height: 74px;
  }
}

@media (max-width: 1050px) and (min-width: 821px) {
  .login-v2-shell {
    grid-template-columns: minmax(430px, 1.05fr) minmax(320px, .75fr);
  }

  .login-v2-side-grid {
    grid-template-columns: 1fr;
  }

  .login-v2-side-grid div {
    min-height: 68px;
  }
}

@media (max-width: 820px) {
  .login-v2-page {
    padding: 16px;
  }

  .login-v2-shell {
    width: min(560px, 100%);
    min-height: calc(100vh - 32px);
  }

  .login-v2-main {
    justify-content: center;
    min-height: calc(100vh - 32px);
  }
}

@media (max-width: 480px) {
  .login-v2-page {
    padding: 0;
  }

  .login-v2-shell {
    width: 100%;
    min-height: 100vh;
  }

  .login-v2-main {
    min-height: 100vh;
  }
}


/* 1.4.8 – régi egyszerű stílus, modern sötét kivitelben */
.simple-dark-login-page {
  min-height: 100vh;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 12%, rgba(37,99,235,.20), transparent 34%),
    radial-gradient(circle at 86% 86%, rgba(124,58,237,.18), transparent 34%),
    linear-gradient(145deg, #050b15 0%, #0a1424 55%, #07101d 100%);
}

.simple-dark-login-card {
  width: min(470px, 100%);
  padding: 32px;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 24px;
  background: rgba(15, 27, 46, .97);
  box-shadow:
    0 32px 90px rgba(0,0,0,.46),
    inset 0 1px 0 rgba(255,255,255,.025);
}

.simple-dark-login-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 28px;
}

.simple-dark-login-logo {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, #2563eb, #7c3aed);
  box-shadow: 0 16px 34px rgba(37,99,235,.27);
}

.simple-dark-login-car {
  width: 35px;
  height: 35px;
}

.simple-dark-login-brand h1 {
  margin: 0 0 4px;
  color: #f8fafc;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.simple-dark-login-brand p {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
}

.simple-dark-login-form {
  display: grid;
  gap: 18px;
}

.simple-dark-login-field label {
  display: block;
  margin-bottom: 8px;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
}

.simple-dark-login-field .input {
  width: 100%;
  min-height: 53px;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 0 15px;
  color: #f8fafc;
  background: #091425;
}

.simple-dark-login-field .input::placeholder {
  color: #64748b;
}

.simple-dark-login-field .input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(59,130,246,.14);
}

.simple-dark-password-wrap {
  position: relative;
}

.simple-dark-password-wrap .input {
  padding-right: 58px;
}

.simple-dark-eye-button {
  position: absolute;
  top: 50%;
  right: 9px;
  width: 40px;
  height: 38px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 0;
  border-radius: 10px;
  color: #93c5fd;
  background: rgba(59,130,246,.13);
  cursor: pointer;
}

.simple-dark-eye-button:hover {
  background: rgba(59,130,246,.22);
}

.simple-dark-eye-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.simple-dark-eye-button .eye-closed {
  display: none;
}

.simple-dark-eye-button.is-visible .eye-open {
  display: none;
}

.simple-dark-eye-button.is-visible .eye-closed {
  display: block;
}

.simple-dark-remember {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid #29364a;
  border-radius: 13px;
  background: rgba(7,16,29,.46);
  cursor: pointer;
}

.simple-dark-remember input {
  margin-top: 3px;
}

.simple-dark-remember strong {
  display: block;
  color: #e2e8f0;
  font-size: 12px;
}

.simple-dark-remember small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.45;
}

.simple-dark-login-submit {
  min-height: 53px;
  border-radius: 14px;
  font-weight: 900;
}

.simple-dark-login-footer {
  margin-top: 21px;
  color: #64748b;
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 520px) {
  .simple-dark-login-page {
    padding: 0;
  }

  .simple-dark-login-card {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 0;
    border-radius: 0;
    padding: 27px 20px;
  }
}


/* 1.4.10 – egyetlen natív hatású fehér jelszószem */
.simple-dark-password-wrap input[type="password"]::-ms-reveal,
.simple-dark-password-wrap input[type="password"]::-ms-clear,
.simple-dark-password-wrap input[type="text"]::-ms-reveal,
.simple-dark-password-wrap input[type="text"]::-ms-clear {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.simple-dark-eye-button,
.simple-dark-eye-button:hover,
.simple-dark-eye-button:focus,
.simple-dark-eye-button:focus-visible,
.simple-dark-eye-button:active {
  width: 42px;
  height: 42px;
  display: grid !important;
  place-items: center;
  visibility: visible !important;
  opacity: 1 !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  color: #ffffff !important;
  background: transparent !important;
}

.simple-dark-eye-button:hover {
  color: #dbeafe !important;
}

.simple-dark-eye-button svg {
  width: 23px;
  height: 23px;
  display: block !important;
  fill: none;
  stroke: currentColor !important;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.simple-dark-eye-button.is-visible {
  color: #93c5fd !important;
}

/* Ne jelenjen meg plusz világos keret a teljes jelszómező körül. */
.simple-dark-password-wrap:focus-within {
  outline: 0 !important;
  box-shadow: none !important;
}

.simple-dark-password-wrap .input {
  outline: 0;
}

.simple-dark-password-wrap .input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59,130,246,.13);
}


/* 1.4.11 – nagyobb katalógusár mező és járműkitöltő segéd */
.part-add-form {
  grid-template-columns: 96px minmax(145px, 190px) minmax(130px, auto);
  gap: 10px;
}
.part-add-form .catalog-unit-price {
  min-width: 145px;
  width: 100%;
  font-size: 15px;
  font-weight: 800;
  text-align: right;
  padding-left: 12px;
  padding-right: 12px;
}
.part-add-form .catalog-quantity-field .input {
  min-width: 82px;
}
.vehicle-helper {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(59,130,246,.34);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(37,99,235,.09), rgba(124,58,237,.06));
}
.vehicle-helper-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}
.vehicle-helper-head strong { display:block; color:var(--text); font-size:14px; }
.vehicle-helper-head span { display:block; margin-top:3px; color:var(--muted); font-size:11px; }
.vehicle-helper-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}
.vehicle-helper-grid label { display:block; margin-bottom:6px; font-size:10px; font-weight:900; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; }
.vehicle-helper-grid select { width:100%; }
.vehicle-helper-note { margin-top:10px; color:var(--muted); font-size:10px; line-height:1.45; }
@media(max-width:900px){
  .vehicle-helper-grid{grid-template-columns:1fr;}
  .vehicle-helper-head{align-items:flex-start;flex-direction:column;}
}
@media(max-width:820px){
  .part-add-form{grid-template-columns:90px minmax(135px,1fr);}
  .part-add-form .btn{grid-column:1/-1;}
}


/* 1.4.12 – katalóguskártya stabil ár- és gombelrendezés */
.part-add-form {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(88px, .72fr) minmax(150px, 1.28fr);
  gap: 10px;
  align-items: end;
}

.part-add-form > * {
  min-width: 0;
}

.part-add-form .catalog-quantity-field,
.part-add-form .catalog-price-field {
  width: 100%;
  min-width: 0;
}

.part-add-form .catalog-quantity-field .input,
.part-add-form .catalog-price-field .input,
.part-add-form .catalog-unit-price {
  width: 100%;
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
}

.part-add-form .catalog-unit-price {
  min-height: 46px;
  padding-inline: 14px;
  font-size: 16px;
  font-weight: 900;
  text-align: right;
}

.part-add-form .catalog-quantity-field .input {
  min-height: 46px;
  font-size: 15px;
}

.part-add-form .btn {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  justify-content: center;
  white-space: nowrap;
}

.part-card {
  min-width: 0;
  overflow: hidden;
}

@media (max-width: 560px) {
  .part-add-form {
    grid-template-columns: 1fr;
  }

  .part-add-form .btn {
    grid-column: auto;
  }
}
