/*
 * SmartTax 7a – Design rendszer felülírás
 * Navy oldalsáv · világoskék akcent · Nunito Sans · lekerekített, barátságos felület
 * A smarttax-2a.css HELYETT töltendő be (ugyanazok a szelektorok, új értékek + új 7a komponensek).
 * Betöltési sorrend: style.css → admin-ui.css → smarttax-7a.css (utoljára)
 */

@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:opsz,wght@6..12,400;6..12,600;6..12,700;6..12,800&display=swap");

/* ══════════════════════════════════════════════════════════════
   1. CSS TOKENEK – 7a értékek
   ══════════════════════════════════════════════════════════════ */
:root {
  /* Brand */
  --st-900: #0F2A4A;          /* navy – oldalsáv, címsorok, sötét gombok */
  --st-800: #163A63;          /* navy hover */
  --st-600: #2B93CB;          /* világoskék – elsődleges akcent, csempék, gombok */
  --st-700: #237FB0;          /* világoskék hover */
  --st-750: #1C6C97;          /* világoskék active */
  --st-300: #7FA3CE;          /* oldalsáv címkék */
  --st-100: #E6F3FA;          /* világoskék halvány háttér (soft gomb, ikon kör) */
  --st-50:  #F2F8FC;          /* sor hover */

  /* Oldalsáv szövegek */
  --st-nav-text:     #C6D5E8;
  --st-nav-section:  #5E7B9F;
  --st-nav-surface:  rgba(255,255,255,.08);

  /* Felületek */
  --st-surface-app:    #ECF1F5;
  --st-surface-card:   #FFFFFF;
  --st-surface-subtle: #F4F7FA;
  --st-surface-zebra:  #FAFCFD;

  /* Keretek */
  --st-border-strong: #CFDAE3;
  --st-border-base:   #DDE5EC;
  --st-border-row:    #EEF2F5;

  /* Szöveg */
  --st-text-primary:   #1E3342;
  --st-text-secondary: #5B6F7E;
  --st-text-muted:     #8FA0AD;

  /* Státusz: success */
  --st-success-text:   #23794B;
  --st-success-bg:     #DDF3E6;
  --st-success-border: #B5E0C6;
  --st-success-solid:  #3BB273;

  /* Státusz: warning */
  --st-warning-text:   #7A5A0B;
  --st-warning-bg:     #FFF1C9;
  --st-warning-border: #F2D98A;
  --st-warning-soft:   #FFF6DB;   /* figyelmeztető doboz háttér */

  /* Státusz: danger */
  --st-danger-text:    #B8323A;
  --st-danger-bg:      #FDE7E8;
  --st-danger-border:  #F3C2C5;
  --st-danger-solid:   #E0484F;

  /* Státusz: info (NAV) */
  --st-info-text:      #2360A8;
  --st-info-bg:        #E1EEFB;

  /* Avatar másodszín */
  --st-avatar-alt:     #6C7BF0;

  /* Lekerekítés */
  --st-radius-xs:   4px;   /* badge, kis címke */
  --st-radius-sm:   6px;   /* kártya, csempe, input, oldalsáv menüpont */
  --st-radius-md:   8px;   /* kontextusdoboz, figyelmeztetés */
  --st-radius-pill: 999px; /* gombok, kereső, chipek */

  /* Árnyék – csak lágy, kártyákon opcionális */
  --st-shadow-card: 0 1px 2px rgba(15,42,74,.06);
  --st-shadow-pop:  0 8px 24px rgba(15,42,74,.14);

  /* Layout */
  --st-sidebar-width:  310px;
  --st-header-height:  58px;
  --st-content-px:     24px;
  --st-content-py:     20px;

  /* Tipográfia */
  --st-font: "Nunito Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Örökölt változók felülírása (style.css / admin-ui.css) */
  --brand:         var(--st-600);
  --brand-dark:    var(--st-700);
  --brand-soft:    var(--st-100);
  --nav:           var(--st-900);
  --canvas:        var(--st-surface-app);
  --paper:         var(--st-surface-card);
  --ink:           var(--st-text-primary);
  --ink-2:         var(--st-text-secondary);
  --muted:         var(--st-text-muted);
  --line:          var(--st-border-base);
  --sidebar-width: var(--st-sidebar-width);
  --topbar-height: var(--st-header-height);
  --content-padding-x: var(--st-content-px);
  --content-padding-y: var(--st-content-py);
  --primary:       var(--st-600);
  --primary-dark:  var(--st-700);
  --primary-light: var(--st-100);
  --success:       var(--st-success-solid);
  --warning:       #F2B233;
  --danger:        var(--st-danger-solid);
  --info:          var(--st-info-text);
  --radius-sm:     var(--st-radius-xs);
  --radius:        var(--st-radius-sm);
  --radius-md:     var(--st-radius-sm);
  --radius-lg:     var(--st-radius-md);
  --radius-xl:     var(--st-radius-md);
  --radius-full:   var(--st-radius-pill);
  --font-family:   var(--st-font);
  --font-sans:     var(--st-font);

  --shadow:    var(--st-shadow-card);
  --shadow-sm: var(--st-shadow-card);
  --shadow-md: var(--st-shadow-card);
  --shadow-lg: var(--st-shadow-pop);
}

/* ══════════════════════════════════════════════════════════════
   2. GLOBÁLIS RESET – 7a szerint
   (A 2a „nincs kerekítés / nincs árnyék” szabályai kivéve.)
   ══════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  font-family: var(--st-font) !important;
  font-variant-numeric: tabular-nums;
}

body {
  background: var(--st-surface-app);
  color: var(--st-text-primary);
  font-size: 14px;
  line-height: 1.5;
}

a { color: var(--st-600); }
a:hover { color: var(--st-900); }

/* ══════════════════════════════════════════════════════════════
   3. SIDEBAR – navy
   ══════════════════════════════════════════════════════════════ */
.sidebar {
  width: var(--st-sidebar-width) !important;
  min-width: var(--st-sidebar-width) !important;
  max-width: var(--st-sidebar-width) !important;
  background: var(--st-900) !important;
  border-right: none !important;
  box-shadow: none !important;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
}

.sidebar .brand,
.sidebar-logo-area {
  padding: 18px 8px 16px;
  border-bottom: none;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.st-logo-mark {
  width: 30px;
  height: 30px;
  background: var(--st-600);
  border-radius: var(--st-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

/* „SMARTTax” – SMART 800, Tax 400 (a Tax <span>-ben) */
.st-logo-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  line-height: 1;
}
.st-logo-text span { font-weight: 400; }

.st-logo-sep {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,.18);
  flex-shrink: 0;
}

.st-logo-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--st-nav-section);
  line-height: 1;
}

/* Kontextusdoboz */
.sidebar-context,
.sctx-box {
  margin: 0 0 16px;
  padding: 10px 12px;
  background: var(--st-nav-surface) !important;
  border: none !important;
  border-radius: var(--st-radius-md);
}

/* ── Multi-entitás választó ── */
.entity-switcher {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 4px;
}

.entity-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--st-radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s;
  border: 1px solid transparent;
}
.entity-item:hover { background: rgba(255,255,255,.08); }
.entity-item.active { background: var(--st-600); }

.entity-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--st-radius-xs);
  background: rgba(255,255,255,.12);
  color: var(--st-nav-text);
  min-width: 26px;
  text-align: center;
  line-height: 1.4;
}
.entity-item.active .entity-badge { background: #FFFFFF; color: var(--st-900); }

.entity-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--st-nav-text);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}
.entity-item.active .entity-name { color: #fff; font-weight: 700; }

.entity-check {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: #FFFFFF;
}

.sidebar-context .sctx-label,
.sctx-label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--st-300);
  margin-bottom: 2px;
  display: block;
}

/* Menü szekció-cím – nagybetűs, halvány */
.sidebar .nav-section-title,
.sidebar-nav .nav-section-title,
.nav-group-title {
  font-size: 10.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  color: var(--st-nav-section) !important;
  padding: 14px 12px 6px !important;
}

/* Menüpont */
.sidebar .nav-link {
  color: var(--st-nav-text) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  border-radius: var(--st-radius-sm) !important;
  padding: 10px 12px !important;
  min-height: 40px;
  gap: 10px;
  display: flex;
  align-items: center;
  border-left: none !important;
  transition: background 120ms ease-out, color 120ms ease-out;
}
.sidebar .nav-link:hover {
  background: rgba(255,255,255,.06) !important;
  color: #FFFFFF !important;
}
.sidebar .nav-link.active {
  background: var(--st-600) !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}
.sidebar .nav-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: .75;
}
.sidebar .nav-link.active svg,
.sidebar .nav-link:hover svg { opacity: 1; }

/* Darabszám a menüpontban */
.sidebar .nav-badge,
.st-nav-count {
  margin-left: auto;
  background: #FFFFFF;
  color: var(--st-900);
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: var(--st-radius-pill);
}

/* Felhasználói blokk */
.sidebar .sidebar-user,
.sidebar-user-block {
  margin-top: auto;
  padding: 12px 8px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.st-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--st-600);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.st-avatar.alt { background: var(--st-avatar-alt); }
.st-avatar.sm  { width: 26px; height: 26px; font-size: 10px; }

/* ══════════════════════════════════════════════════════════════
   4. FEJLÉC (TOPBAR)
   ══════════════════════════════════════════════════════════════ */
.topbar,
.app-header {
  height: var(--st-header-height) !important;
  border-bottom: 1px solid var(--st-border-base) !important;
  padding: 0 var(--st-content-px) !important;
  background: var(--st-surface-card) !important;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: none !important;
}

/* Oldalcím – nagybetűs, ritkított (pl. DASHBOARD) */
.topbar-title {
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--st-900) !important;
}
/* Morzsamenü előtag (pl. „KÖNYVELÉS -”) */
.topbar-crumb {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--st-text-muted);
}

.topbar-search input,
.search-input {
  height: 34px;
  max-width: 360px;
  background: #FFFFFF;
  border: 1px solid var(--st-border-base);
  border-radius: var(--st-radius-pill);
  font-size: 13px;
  padding: 0 14px;
  color: var(--st-text-primary);
  outline: none;
}
.topbar-search input:focus,
.search-input:focus {
  border-color: var(--st-600);
  outline: 3px solid var(--st-100);
  outline-offset: 0;
}

/* Kerek ikon gomb (frissítés, beállítás) */
.st-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--st-100);
  color: var(--st-600);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.st-icon-btn:hover { background: #D3EAF6; }

.test-mode-bar,
.st-test-bar {
  height: 34px;
  background: var(--st-warning-soft);
  border-bottom: 1px solid var(--st-warning-border);
  color: var(--st-warning-text);
  font-size: 12.5px;
  display: flex;
  align-items: center;
  padding: 0 var(--st-content-px);
  gap: 12px;
}

/* ══════════════════════════════════════════════════════════════
   5. TARTALOMTERÜLET
   ══════════════════════════════════════════════════════════════ */
.content,
.main-content,
.app-content {
  background: var(--st-surface-app) !important;
  padding: var(--st-content-py) var(--st-content-px) !important;
}

/* Kék, nagybetűs szekciócímke a kártyák FELETT (7a jellegzetesség) */
.st-section-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--st-600);
  margin: 0 0 10px;
  display: block;
}
.st-section-label .count { color: var(--st-900); }

/* ══════════════════════════════════════════════════════════════
   6. GOMBOK – pirula forma
   ══════════════════════════════════════════════════════════════ */
.btn {
  border-radius: var(--st-radius-pill) !important;
  font-size: 13.5px;
  font-weight: 700;
  padding: 0 18px;
  min-height: 32px;
  border: 1.5px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 120ms ease-out, border-color 120ms ease-out;
  font-family: var(--st-font) !important;
}

.btn-primary {
  background: var(--st-600) !important;
  color: #FFFFFF !important;
  border-color: var(--st-600) !important;
}
.btn-primary:hover  { background: var(--st-700) !important; border-color: var(--st-700) !important; }
.btn-primary:active { background: var(--st-750) !important; }
.btn-primary:disabled { background: #A9D2E8 !important; border-color: #A9D2E8 !important; cursor: not-allowed; }

/* Körvonalas (Excel/PDF export) */
.btn-outline,
.btn-secondary {
  background: #FFFFFF !important;
  border: 1.5px solid var(--st-600) !important;
  color: var(--st-600) !important;
}
.btn-outline:hover,
.btn-secondary:hover { background: var(--st-50) !important; }

/* Halvány (Súgó) */
.btn-soft {
  background: var(--st-100) !important;
  color: var(--st-600) !important;
  border-color: var(--st-100) !important;
}
.btn-soft:hover { background: #D3EAF6 !important; }

/* Sötét (navy) */
.btn-dark {
  background: var(--st-900) !important;
  color: #FFFFFF !important;
  border-color: var(--st-900) !important;
}
.btn-dark:hover { background: var(--st-800) !important; }

.btn-success { background: var(--st-success-solid) !important; color: #fff !important; border-color: var(--st-success-solid) !important; }
.btn-danger  { background: var(--st-danger-solid)  !important; color: #fff !important; border-color: var(--st-danger-solid)  !important; }

.btn-sm { min-height: 28px; padding: 0 12px; font-size: 12.5px; }
.btn-lg { min-height: 44px; padding: 0 24px; font-size: 15px; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(43,147,203,.35) !important;
  outline-offset: 1px !important;
}

/* ══════════════════════════════════════════════════════════════
   7. KÁRTYA / PANEL
   ══════════════════════════════════════════════════════════════ */
.card,
.panel {
  background: var(--st-surface-card) !important;
  border: 1px solid var(--st-border-base) !important;
  border-radius: var(--st-radius-sm) !important;
  box-shadow: none !important;
}
.card-header,
.panel-head {
  border-bottom: 1px solid var(--st-border-base) !important;
  background: transparent !important;
  padding: 12px 16px;
}

/* ══════════════════════════════════════════════════════════════
   7b. GYORSMŰVELET-CSEMPÉK (7a új komponens)
   <div class="st-tiles"><a class="st-tile">+ Új számla</a> … </div>
   ══════════════════════════════════════════════════════════════ */
.st-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.st-tile {
  height: 78px;
  border-radius: var(--st-radius-sm);
  background: var(--st-600);
  color: #FFFFFF !important;
  font-size: 15.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 12px;
  text-decoration: none !important;
  transition: background 120ms ease-out;
}
.st-tile:hover { background: var(--st-700); }
.st-tile.dark  { background: var(--st-900); }
.st-tile.dark:hover { background: var(--st-800); }

/* ══════════════════════════════════════════════════════════════
   7c. FELADATKÁRTYA (dashboard jobb oszlop)
   ══════════════════════════════════════════════════════════════ */
.st-task-card {
  background: var(--st-surface-card);
  border: 1px solid var(--st-border-base);
  border-radius: var(--st-radius-sm);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.st-task-title { font-size: 14px; font-weight: 700; color: var(--st-text-primary); }
.st-task-due {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--st-text-secondary);
  margin-top: 5px;
}
.st-task-due strong { color: var(--st-text-primary); letter-spacing: 0; font-weight: 800; }

/* Figyelmeztető doboz */
.st-alert,
.alert-warning {
  background: var(--st-warning-soft);
  border: 1px solid var(--st-warning-border);
  border-radius: var(--st-radius-sm);
  color: #6E5310;
  padding: 12px 14px;
  font-size: 13.5px;
}

/* ══════════════════════════════════════════════════════════════
   8. ADATTÁBLA
   ══════════════════════════════════════════════════════════════ */
.data-table,
table.st-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--st-surface-card);
  border: 1px solid var(--st-border-base);
  border-radius: var(--st-radius-sm);
  overflow: hidden;
  font-size: 13.5px;
  color: var(--st-text-primary);
}

/* Fejléc: normál kis-nagybetű, félkövér, alatta 2px kék vonal */
.data-table th,
table.st-table th {
  background: var(--st-surface-subtle);
  border-bottom: 2px solid var(--st-600);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  color: var(--st-text-primary);
  padding: 0 16px;
  height: 38px;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: left;
}

.data-table td,
table.st-table td {
  padding: 8px 16px;
  height: 38px;
  border-bottom: 1px solid var(--st-border-row);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 0;
}
.data-table td:first-child,
table.st-table td:first-child { font-weight: 700; }

.data-table tr:nth-child(even) td,
table.st-table tr:nth-child(even) td { background: var(--st-surface-zebra); }

.data-table tbody tr:hover td,
table.st-table tbody tr:hover td {
  background: var(--st-50) !important;
  cursor: pointer;
}

.st-empty-val { color: var(--st-text-muted); }
.st-empty-val::before { content: "—"; }

.text-right,
.st-num { text-align: right !important; }

/* ══════════════════════════════════════════════════════════════
   9. STÁTUSZ BADGE-EK – kitöltött, keret nélkül
   ══════════════════════════════════════════════════════════════ */
.st-badge,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 8px;
  border: none;
  border-radius: var(--st-radius-xs);
  white-space: nowrap;
  line-height: 1.5;
}
.st-badge + .st-badge { margin-left: 4px; }

.st-badge-success, .badge-success { color: var(--st-success-text); background: var(--st-success-bg); }
.st-badge-warning, .badge-warning { color: var(--st-warning-text); background: var(--st-warning-bg); }
.st-badge-danger,  .badge-danger  { color: var(--st-danger-text);  background: var(--st-danger-bg); }
.st-badge-info,    .badge-info    { color: var(--st-info-text);    background: var(--st-info-bg); }
.st-badge-neutral, .badge-gray    { color: var(--st-text-secondary); background: var(--st-surface-subtle); }

/* Sikeres/összegző címke: pirula */
.st-badge.pill { border-radius: var(--st-radius-pill); padding: 3px 10px; }

.st-status-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.st-status-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.st-status-dot.open::before     { background: var(--st-600); }
.st-status-dot.progress::before { background: #F2B233; }
.st-status-dot.done::before     { background: var(--st-success-solid); }

.st-priority {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--st-radius-xs);
  border: none;
}
.st-priority-high   { color: var(--st-danger-text);  background: var(--st-danger-bg); }
.st-priority-medium { color: var(--st-warning-text); background: var(--st-warning-bg); }
.st-priority-low    { color: var(--st-text-secondary); background: var(--st-surface-subtle); }

/* ══════════════════════════════════════════════════════════════
   10. SZŰRŐ CHIPEK – pirula
   ══════════════════════════════════════════════════════════════ */
.st-chips {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.st-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  min-height: 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--st-text-primary);
  background: #FFFFFF;
  border: 1px solid var(--st-border-base);
  border-radius: var(--st-radius-pill);
  cursor: pointer;
  transition: background 120ms ease-out;
  white-space: nowrap;
}
.st-chip:hover { background: var(--st-50); }
.st-chip.active {
  background: var(--st-900);
  color: #FFFFFF;
  border-color: var(--st-900);
  font-weight: 700;
}
.st-chip-count { opacity: .65; font-size: 11.5px; }

/* ══════════════════════════════════════════════════════════════
   11. KPI – külön kártyák, kék nagybetűs címkével
   ══════════════════════════════════════════════════════════════ */
.st-kpi-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border: none;
  background: transparent;
  margin-bottom: 14px;
}
.st-kpi-cell {
  padding: 12px 16px;
  position: relative;
  background: var(--st-surface-card);
  border: 1px solid var(--st-border-base);
  border-radius: var(--st-radius-sm);
  overflow: hidden;
}
.st-kpi-cell + .st-kpi-cell { border-left: 1px solid var(--st-border-base); }

.st-kpi-label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--st-600);
  margin-bottom: 2px;
  display: block;
}
.st-kpi-label.danger { color: var(--st-danger-solid); }

.st-kpi-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--st-900);
  white-space: nowrap;
  line-height: 1.2;
}
.st-kpi-value.danger { color: var(--st-danger-solid); }
.st-kpi-caption { font-size: 13.5px; color: var(--st-text-secondary); }

.st-kpi-unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--st-text-muted);
}

.st-kpi-bar-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--st-border-row);
}
.st-kpi-bar-fill {
  height: 100%;
  background: var(--st-danger-solid);
  transition: width 300ms ease-out;
}
.st-kpi-bar-fill.full { background: var(--st-success-solid); }

/* ══════════════════════════════════════════════════════════════
   12. IDŐSZAKVÁLASZTÓ – kék keretes gombcsoport
   ══════════════════════════════════════════════════════════════ */
.st-period-group {
  display: inline-flex;
  border: 1px solid var(--st-600);
  border-radius: var(--st-radius-sm);
  overflow: hidden;
  background: #FFFFFF;
}
.st-period-btn {
  padding: 0 14px;
  min-height: 32px;
  font-size: 13px;
  font-weight: 700;
  color: var(--st-600);
  background: transparent;
  border: none;
  border-right: 1px solid #CFE6F3;
  cursor: pointer;
  transition: background 120ms ease-out;
}
.st-period-btn:last-child { border-right: none; }
.st-period-btn:hover { background: var(--st-50); }
.st-period-btn.active { background: var(--st-600); color: #FFFFFF; }

/* ══════════════════════════════════════════════════════════════
   13. FÜLEK (TABS)
   ══════════════════════════════════════════════════════════════ */
.st-tabs {
  display: flex;
  border-bottom: 1px solid var(--st-border-base);
  gap: 4px;
  margin-bottom: 14px;
}
.st-tab {
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--st-text-secondary);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color 120ms ease-out;
  margin-bottom: -1px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.st-tab:hover { color: var(--st-text-primary); }
.st-tab.active {
  color: var(--st-900);
  font-weight: 800;
  border-bottom-color: var(--st-600);
}
.st-tab-count { font-size: 12px; opacity: .7; }

/* ══════════════════════════════════════════════════════════════
   14. INPUT / FORM ELEMEK
   ══════════════════════════════════════════════════════════════ */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
  border: 1px solid var(--st-border-base) !important;
  border-radius: var(--st-radius-sm) !important;
  background: #FFFFFF !important;
  font-size: 13.5px;
  color: var(--st-text-primary);
  padding: 7px 12px;
  min-height: 34px;
  outline: none;
  font-family: var(--st-font) !important;
}
.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--st-600) !important;
  outline: 3px solid var(--st-100) !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
}
.form-control:disabled { background: var(--st-surface-subtle) !important; color: var(--st-text-muted); }
.form-control.is-invalid { border-color: var(--st-danger-solid) !important; }

.form-label {
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: var(--st-text-primary) !important;
  margin-bottom: 6px !important;
  display: block;
}

/* Összegző mező (pl. „Fizetendő áfa összesen: [   ]”) */
.st-sum-field {
  display: flex;
  align-items: center;
  gap: 10px;
}
.st-sum-field label { font-size: 13px; font-weight: 700; white-space: nowrap; }
.st-sum-field output {
  flex: 1;
  min-height: 30px;
  background: var(--st-surface-subtle);
  border: 1px solid var(--st-border-base);
  border-radius: var(--st-radius-xs);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 10px;
  font-size: 14px;
}

/* ══════════════════════════════════════════════════════════════
   15. LAPOZÓ – kerek kék gombok
   ══════════════════════════════════════════════════════════════ */
.pagination {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  padding: 12px 0;
  font-size: 13px;
  font-weight: 700;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  font-size: 13px;
  border-radius: var(--st-radius-pill);
  border: 1px solid var(--st-border-base);
  color: var(--st-text-primary);
  text-decoration: none;
  transition: background 120ms ease-out;
}
.pagination a:hover { background: var(--st-50); border-color: var(--st-600); }
.pagination .active,
.pagination .nav-arrow { background: var(--st-600); color: #fff; border-color: var(--st-600); }

/* ══════════════════════════════════════════════════════════════
   16. BEJELENTKEZÉSI OLDAL – 7a
   A 2a elrendezés marad (bal űrlap + jobb navy panel), 7a formákkal.
   ══════════════════════════════════════════════════════════════ */
.st-login-page {
  min-height: 100vh;
  display: flex;
  background: #FFFFFF;
}
.st-login-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 96px;
  background: #FFFFFF;
  min-width: 0;
}
.st-login-right {
  width: 520px;
  flex-shrink: 0;
  background: var(--st-900);
  padding: 72px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.st-login-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 52px; }
.st-login-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--st-600);
  border-radius: var(--st-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.st-login-logo-name { font-size: 20px; font-weight: 800; letter-spacing: 0.02em; color: var(--st-900); }
.st-login-logo-name span { font-weight: 400; }
.st-login-logo-sep { width: 1px; height: 18px; background: var(--st-border-base); flex-shrink: 0; }
.st-login-logo-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--st-600);
}

.st-login-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--st-900);
  line-height: 1.15;
  margin: 0 0 10px;
}
.st-login-subtitle { font-size: 15px; color: var(--st-text-secondary); margin: 0 0 34px; }

.st-login-form { max-width: 420px; width: 100%; }
.st-login-field { margin-bottom: 18px; }
.st-login-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
}
.st-login-label { font-size: 13.5px; font-weight: 700; color: var(--st-text-primary); }
.st-forgot-link { font-size: 13px; font-weight: 700; color: var(--st-600); text-decoration: none; }
.st-forgot-link:hover { text-decoration: underline; }

.st-login-input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--st-border-strong) !important;
  border-radius: var(--st-radius-sm) !important;
  background: #FFFFFF !important;
  font-size: 15px !important;
  color: var(--st-text-primary);
  padding: 0 14px;
  outline: none;
  transition: border-color 150ms ease-out;
}
.st-login-input:focus {
  border-color: var(--st-600) !important;
  outline: 3px solid var(--st-100) !important;
  outline-offset: 0 !important;
}
.st-login-input-wrap { position: relative; }
.st-pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--st-text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
}
.st-pw-toggle:hover { color: var(--st-600); }

.st-login-remember { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.st-login-remember input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-height: 0;
  padding: 0;
  border-radius: var(--st-radius-xs) !important;
  accent-color: var(--st-600);
  cursor: pointer;
}
.st-login-remember label { font-size: 14px; color: var(--st-text-secondary); cursor: pointer; }

.st-login-btn {
  width: 100%;
  height: 50px;
  background: var(--st-600) !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: var(--st-radius-pill) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  cursor: pointer;
  transition: background 120ms ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
}
.st-login-btn:hover:not(:disabled)  { background: var(--st-700) !important; }
.st-login-btn:active:not(:disabled) { background: var(--st-750) !important; }
.st-login-btn:disabled { background: #A9D2E8 !important; cursor: not-allowed; }

.st-login-error {
  background: var(--st-danger-bg);
  color: var(--st-danger-text);
  border-radius: var(--st-radius-sm);
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 18px;
}
.st-login-copy { margin-top: 28px; font-size: 12px; color: var(--st-text-muted); }

.st-login-right-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--st-300);
  text-transform: uppercase;
  margin-bottom: 28px;
}
.st-login-right-claim {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: #FFFFFF;
  margin-bottom: 36px;
}
.st-login-right-benefits { display: flex; flex-direction: column; margin-top: auto; }
.st-benefit-row {
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 16px 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.st-benefit-num { font-size: 13px; font-weight: 800; color: var(--st-600); flex-shrink: 0; width: 20px; }
.st-benefit-text { font-size: 14.5px; color: #DCE6F2; line-height: 1.4; }

.st-deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.10);
  pointer-events: none;
}
.st-deco-circle-1 { width: 340px; height: 340px; top: -120px; right: -100px; border-color: rgba(43,147,203,.30); }
.st-deco-circle-2 { width: 220px; height: 220px; bottom: -80px; right: -60px; border-color: rgba(255,255,255,.07); }

@media (max-width: 1024px) {
  .st-login-right { display: none; }
  .st-login-left  { padding: 0 40px; }
}

/* ══════════════════════════════════════════════════════════════
   17. ALKALMAZÁS-VÁZ (app-shell)
   ══════════════════════════════════════════════════════════════ */
.app-shell {
  grid-template-columns: var(--st-sidebar-width) minmax(0, 1fr) !important;
}
.sidebar { width: var(--st-sidebar-width) !important; }

/* Dashboard rács: bal tartalom + jobb 280px feladat-oszlop */
.st-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
}
@media (max-width: 1200px) {
  .st-dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .st-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ══════════════════════════════════════════════════════════════
   18. ÜRES ÁLLAPOT + SKELETON
   ══════════════════════════════════════════════════════════════ */
.st-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--st-text-secondary);
}
.st-empty-state h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--st-900);
  margin-bottom: 8px;
}
.st-empty-state p { font-size: 13.5px; }

@keyframes st-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.st-skeleton {
  background: linear-gradient(90deg, #EEF2F5 25%, #DDE5EC 50%, #EEF2F5 75%);
  background-size: 800px 100%;
  animation: st-shimmer 1.4s infinite;
  height: 14px;
  border-radius: var(--st-radius-xs);
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  .st-skeleton { animation: none; }
}

/* ══════════════════════════════════════════════════════════════
   19. HATÁRIDŐ SZÍN (lejárt)
   ══════════════════════════════════════════════════════════════ */
.st-deadline-overdue {
  color: var(--st-danger-solid) !important;
  font-weight: 800;
}
