
:root{
  --bg:#0c1320;
  --card:#121a2a;
  --text:#e6eefc;
  --muted:#a7b6d6;
  --primary:#3b82f6;
  --success:#16a34a;
  --danger:#ef4444;
  --warning:#f59e0b;
  --border:#1f2a44;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,Segoe UI,Roboto,Arial,sans-serif}

.topbar{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid var(--border);position:sticky;top:0;background:rgba(12,19,32,.9);backdrop-filter:blur(6px);z-index:10}
.brand{font-weight:700}
.tabs{display:flex;gap:6px;flex-wrap:wrap}
.tab{background:transparent;border:1px solid var(--border);color:var(--text);padding:8px 12px;border-radius:999px;cursor:pointer}
.tab.active,.tab:hover{background:var(--primary);border-color:transparent}
.admin-lock{display:flex;gap:6px}
.admin-lock input{background:var(--card);border:1px solid var(--border);color:var(--text);padding:8px;border-radius:8px}
.admin-lock button{background:var(--success);border:none;color:white;padding:8px 12px;border-radius:8px;cursor:pointer}

.container{max-width:1100px;margin:24px auto;padding:0 16px}
.panel{display:none}
.panel.active{display:block}

.panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.filters select,.filters button{background:var(--card);border:1px solid var(--border);color:var(--text);padding:8px;border-radius:8px}
.filters button{background:var(--primary);border:none}

.kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}
.kpi{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:12px}
.kpi .label{color:var(--muted);font-size:12px}
.kpi .value{font-size:22px;font-weight:700}
.kpi .hint{color:var(--muted);font-size:12px;margin-top:4px}

.card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:16px;margin:12px 0}
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#labelExpDay,
#labelExpDate {
  flex: 1 1 150px;
}

#addExpenseBtn {
  margin-top: 0.5rem;
  align-self: flex-start;
}

label{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:14px}
input,select{background:#0b1323;border:1px solid var(--border);color:var(--text);padding:10px;border-radius:10px}
button{background:var(--primary);border:none;color:#fff;padding:10px 14px;border-radius:10px;cursor:pointer}
button:hover{opacity:.95}

.search{width:100%;margin-bottom:10px}
.table-wrap{overflow:auto;border:1px solid var(--border);border-radius:12px}
.table{width:100%;border-collapse:collapse}
.table th,.table td{padding:10px;border-bottom:1px solid var(--border);text-align:left}
.badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:12px}
.badge.success{background:rgba(22,163,74,.1);color:#86efac;border:1px solid rgba(22,163,74,.3)}
.badge.danger{background:rgba(239,68,68,.1);color:#fecaca;border:1px solid rgba(239,68,68,.3)}

.footer{opacity:.7;text-align:center;padding:24px}

.msg{margin-top:8px;font-size:13px;color:#9ecbff}
.muted{color:var(--muted)}

.admin-only{opacity:.95}
.locked .admin-only{display:none}

@media (max-width:800px){
  .grid-2,.grid-3{grid-template-columns:1fr}
}

/* --- Rýchly prehľad zamestnancov --- */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.summary-card {
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 10px 14px;
  color: #ddd;
  text-align: center;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
}
.summary-card .name {
  font-weight: bold;
  color: #4fc3f7;
}
.summary-card .stat {
  font-size: 0.9em;
  margin-top: 4px;
}
.summary-card b { color: #81c784; }

.summary-card {
  background: #1f1f1f;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 8px;
  width: 240px;
  color: #eee;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-card .name {
  font-weight: 600;
  font-size: 1.1em;
  margin-bottom: 4px;
}

.summary-card .stat {
  font-size: 0.9em;
  color: #ccc;
}

.progress-wrap {
  background: #333;
  border-radius: 10px;
  height: 10px;
  margin-top: 6px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #2ecc71, #27ae60);
  transition: width 0.4s ease;
}

.summary-card .percent {
  font-size: 0.85em;
  text-align: right;
  color: #aaa;
}

.summary-box {
  background: #222;
  padding: 1rem;
  border-radius: 10px;
  margin-top: 1rem;
  color: #eee;
  line-height: 1.5;
}

.summary-box ul {
  list-style: none;
  padding-left: 0;
}

.summary-box b {
  color: #4caf50;
}

.summary-box .msg {
  margin-top: 0.5rem;
  font-weight: bold;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

/* 🔴 Červená pre mínus (varovanie) */
.summary-box .msg:has(⚠️) {
  color: #f44336;
}

/* 🟢 Zelená pre plus (všetko v poriadku) */
.summary-box .msg:has(✅) {
  color: #4caf50;
}

.cf-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.cf-toggle button {
  background: #333;
  color: #eee;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.cf-toggle button:hover {
  background: #444;
}

.cf-toggle button.active {
  background: #4caf50;
  color: #fff;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: flex-end;
}

.filters label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.filters select,
.filters input {
  min-width: 110px;
}

.filters select,
.filters input {
  min-width: 130px;
  padding: 0.6rem;
}

/* --- Odstup tlačidiel pod inputmi (napr. Uložiť predaj, plán, cieľ) --- */
form button,
.card button,
.filters button {
  margin-top: 8px;
}

/* === FIX: dropdown pre výber mesiaca/roka v prehľade cashflow === */
#cashflowSummary select,
#cashflowYearSummary select,
#cfSelectMonth,
#cfSelectYear {
  position: relative;
  z-index: 1000;       /* vyššia vrstva */
  background-color: #0d1117;  /* tmavý podklad, nech ladí s témou */
  color: #fff;
}

select:focus {
  outline: 2px solid #007bff; /* jemné zvýraznenie pri kliku */
}

/* === FIX pre select Mesiac/Rok v cashflow sekcii === */
#cashflowSummary select,
#cashflowYearSummary select,
#cfSelectMonth,
#cfSelectYear {
  position: relative;
  z-index: 9999 !important;   /* musí byť veľmi vysoko, aby menu nebolo pod inými elementmi */
  background-color: #111827;
  color: #fff;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 6px 8px;
  appearance: auto; /* zabezpečí natívne rozbaľovanie */
}

select:focus {
  outline: 2px solid #3b82f6;
}

/* Zvýraznenie ikony kalendára pri type="date" */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);       /* zmení čiernu na bielu */
  cursor: pointer;
  scale: 1.3;              /* zväčší ikonku */
}

/* Pre prípad, že chceš aj jemné orámovanie inputu pri focus */
input[type="date"]:focus {
  outline: 1px solid #4a90e2;
}

/* === MODAL SYSTEM === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-box {
  background: #1f1f2a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 24px;
  width: 420px;
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.modal-box h3 {
  margin-top: 0;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.modal-body label {
  display: block;
  font-size: 0.9rem;
  margin-top: 8px;
  color: #ccc;
}

.modal-body input {
  width: 100%;
  padding: 8px;
  border: 1px solid #444;
  border-radius: 6px;
  background: #2b2b38;
  color: #fff;
  margin-top: 4px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 1.2rem;
}

.modal-actions button {
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
}

.modal-actions .cancelBtn {
  background: #444;
  color: #fff;
}

.modal-actions .confirmBtn {
  background: #1e90ff;
  color: #fff;
}


/* === Vylepšenie vzhľadu modálneho okna === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-box {
  background: #1e1f25;
  color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
  width: 360px;
  max-width: 90%;
  animation: fadeIn 0.2s ease-out;
}

.modal-box h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.modal-body label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
}

.modal-body input,
.modal-body select,
.modal-body textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #444;
  border-radius: 6px;
  background: #2b2c33;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border 0.2s ease;
}

.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
  border-color: #3a82f7;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
  gap: 8px;
}

.modal-actions button {
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.95rem;
  cursor: pointer;
}

.modal-actions .cancelBtn {
  background: #3a3a3a;
  color: #fff;
}

.modal-actions .confirmBtn {
  background: #007bff;
  color: #fff;
}

.modal-actions .cancelBtn:hover {
  background: #555;
}

.modal-actions .confirmBtn:hover {
  background: #2a91ff;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}


#custom-scrollbar {
  z-index: 2147483647; /* istota, že custom scrollbar bude nad všetkým */
}


#custom-scrollbar {
  z-index: 2147483647; /* custom scrollbar bude navrchu */
}

body::-webkit-scrollbar {
  display: none; /* Chrome, Edge, Safari */
}


/* === Scroll fix (final version) === */
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;

  /* umožní posúvanie, ale bez natívneho scrollbar pásika */
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;       /* Firefox */
  -ms-overflow-style: none;    /* Edge/IE */
}

/* schová scrollbar vizuálne */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

/* Ak máš vlastný vizuálny scrollbar element */
#custom-scrollbar {
  z-index: 2147483647;
}

/* === Logo v topbare (Created by LORD'S BENISON) === */
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.brand-logo {
  height: 32px;       /* výška loga, môžeš skúsiť 36px ak chceš väčšie */
  width: auto;
  display: inline-block;
  transform: translateY(1px);
}

/* Voliteľné – jemný efekt po prejdení myšou */
.brand-logo:hover {
  transform: translateY(1px) scale(1.05);
  transition: transform 0.2s ease;
}


/* 💸 Štýl pre sekciu Nezaplatené predaje */
#unpaidSalesSection {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

#unpaidSalesSection h2 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

#unpaidSalesSection .filters {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

#unpaidSalesList {
  width: 100%;
  overflow-x: auto;
}

/* Tabuľka – vzdušnejšia a celoplošná */
#unpaidSalesList table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  overflow: hidden;
}

#unpaidSalesList th,
#unpaidSalesList td {
  padding: 10px 14px;
  text-align: left;
  white-space: nowrap;
}

#unpaidSalesList th {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  font-size: 0.9rem;
  color: #9cb3d8;
  text-transform: uppercase;
}

#unpaidSalesList tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

#unpaidSalesList tr:hover {
  background: rgba(255, 255, 255, 0.07);
  transition: background 0.2s ease-in-out;
}

/* Tlačidlo "Zaplatené" */
#unpaidSalesList .togglePaidBtn {
  background: #3a74ff;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

#unpaidSalesList .togglePaidBtn:hover {
  background: #5890ff;
  transform: scale(1.05);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
}

.data-table th {
  text-transform: uppercase;
  color: #a0aec0;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  background: #202736;
}

.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid #2a3142;
}

.data-table tr:hover {
  background: #232c3e;
}

.togglePaidBtn {
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.togglePaidBtn:hover {
  background: #2563eb;
}

.editSaleBtn,
.deleteSaleBtn {
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  margin-left: 4px;
  cursor: pointer;
}

.editSaleBtn:hover { background: #2563eb; }
.deleteSaleBtn:hover { background: #dc2626; }


/* ================================= */
/* ✅ História predajov (zaplatené)  */
/* ================================= */
#historySalesSection {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

#historySalesSection h2 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

#historySalesList {
  width: 100%;
  overflow-x: auto;
}

#historySalesList table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  overflow: hidden;
}

#historySalesList th,
#historySalesList td {
  padding: 10px 14px;
  text-align: left;
  white-space: nowrap;
}

#historySalesList th {
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  font-size: 0.9rem;
  color: #9cb3d8;
  text-transform: uppercase;
}

#historySalesList tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

#historySalesList tr:hover {
  background: rgba(255, 255, 255, 0.07);
  transition: background 0.2s ease-in-out;
}

#historySalesList .togglePaidBtn {
  background: #3a74ff;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

#historySalesList .togglePaidBtn:hover {
  background: #5890ff;
  transform: scale(1.05);
}







/* === Vzhľad tlačidiel Zaplatené / Nezaplatené (finálna verzia) === */
.togglePaidBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

/* 💸 Nezaplatené */
.togglePaidBtn[data-paid="0"] {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #f87171 !important;
}
.togglePaidBtn[data-paid="0"]:hover {
  background: rgba(239, 68, 68, 0.3) !important;
  transform: scale(1.05);
}

/* ✅ Zaplatené */
.togglePaidBtn[data-paid="1"] {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  color: #6ee7b7 !important;
}
.togglePaidBtn[data-paid="1"]:hover {
  background: rgba(16, 185, 129, 0.3) !important;
  transform: scale(1.05);
}
<button class="pay">Uložiť</button>
<button class="gray">Export CSV</button>
<button class="danger">Zmazať</button>

/* === Jemnejšie písmo pre tlačidlá ZAPLATENÉ / NEZAPLATENÉ === */
.togglePaidBtn {
  font-weight: 500 !important;   /* bolo 600 – toto je o krok jemnejšie */
  letter-spacing: 0.3px !important; /* trošku vzduchu medzi písmenami */
  font-size: 0.9rem !important;  /* jemne menšie, decentnejšie */
  text-transform: uppercase !important; /* nech to zostane ako titulok */
  padding: 6px 12px !important;  /* trošku kompaktnejší vzhľad */
}

/* === 💎 UNIVERZÁLNY MODERNÝ ŠTÝL PRE VŠETKY TLAČIDLÁ === */
button,
.btn {
  background: rgba(59, 130, 246, 0.12) !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(59, 130, 246, 0.25) !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
  backdrop-filter: blur(4px) !important;
}

button:hover,
.btn:hover {
  background: rgba(59, 130, 246, 0.22) !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
  color: #fff !important;
  transform: scale(1.03) !important;
}

/* 🟢 Pozitívne (uložiť, potvrdiť, zaplatiť) */
button.pay, .btn.pay {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #6ee7b7 !important;
  border-color: rgba(16, 185, 129, 0.35) !important;
}
button.pay:hover, .btn.pay:hover {
  background: rgba(16, 185, 129, 0.25) !important;
  transform: scale(1.05) !important;
}

/* 🔴 Rizikové (zmazať, zrušiť) */
button.danger, .btn.danger {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #fca5a5 !important;
  border-color: rgba(239, 68, 68, 0.35) !important;
}
button.danger:hover, .btn.danger:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  transform: scale(1.05) !important;
}

/* ⚙️ Neutrálne (Export, Zobraziť, Obnoviť) */
button.gray, .btn.gray {
  background: rgba(148, 163, 184, 0.1) !important;
  border-color: rgba(148, 163, 184, 0.3) !important;
  color: #cbd5e1 !important;
}
button.gray:hover, .btn.gray:hover {
  background: rgba(148, 163, 184, 0.2) !important;
  transform: scale(1.03) !important;
}

/* 💸 Zaplatené / Nezaplatené */
.togglePaidBtn[data-paid="0"] {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #f87171 !important;
  font-weight: 500 !important;
  letter-spacing: 0.3px !important;
  text-transform: uppercase !important;
}
.togglePaidBtn[data-paid="0"]:hover {
  background: rgba(239, 68, 68, 0.3) !important;
}

.togglePaidBtn[data-paid="1"] {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  color: #6ee7b7 !important;
  font-weight: 500 !important;
  letter-spacing: 0.3px !important;
  text-transform: uppercase !important;
}
.togglePaidBtn[data-paid="1"]:hover {
  background: rgba(16, 185, 129, 0.3) !important;
}

/* === 🌿 Jemný neonový status (Načítané) === */
#telStatus {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.4) !important;
  color: #6ee7b7 !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  padding: 6px 12px !important;
  border-radius: 8px !important;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.25) !important;
  animation: statusPulse 3s infinite ease-in-out !important;
  backdrop-filter: blur(4px) !important;
  text-transform: uppercase !important;
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 4px rgba(16,185,129,0.25); }
  50% { box-shadow: 0 0 10px rgba(16,185,129,0.45); }
}

















/* === 💠 Moderné taby v topbare (Predaje, Telefonovanie, Plány, Admin) === */
.tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 6px 0;
}

.tab {
  background: rgba(17, 24, 39, 0.6) !important;
  border: 1px solid rgba(59, 130, 246, 0.25) !important;
  color: #e5e7eb !important;
  padding: 10px 20px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  backdrop-filter: blur(6px) !important;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.1) !important;
}

/* Hover efekt – jemné zasvietenie */
.tab:hover {
  background: rgba(37, 99, 235, 0.25) !important;
  border-color: rgba(59, 130, 246, 0.5) !important;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3) !important;
  transform: scale(1.04) !important;
}

/* Aktívna karta – svetelný prstenec */
.tab.active {
  background: rgba(37, 99, 235, 0.35) !important;
  border-color: rgba(96, 165, 250, 0.6) !important;
  color: #ffffff !important;
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.45),
              0 0 25px rgba(96, 165, 250, 0.25) inset !important;
  transform: scale(1.05) !important;
}

/* Jemná animácia pre kliknutie */
.tab:active {
  transform: scale(0.97) !important;
}








/* === Sekcia PLÁNY === */
.plan-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 12px 16px;
  transition: background 0.3s;
}

.plan-card:hover {
  background: rgba(255,255,255,0.1);
}

.circle {
  --percent: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(#4caf50 calc(var(--percent)*1%), #2d2d2d calc(var(--percent)*1%));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 18px;
  transition: all 0.6s ease-in-out;
  box-shadow: 0 0 12px rgba(76,175,80,0.3);
}

.circle::before {
  content: "";
  position: absolute;
  width: 65px;
  height: 65px;
  background: #121212;
  border-radius: 50%;
}

.circle span {
  position: relative;
  z-index: 2;
}

.plan-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}














/* === Sekcia PLÁNY – rozloženie mriežky === */
#plansGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
  gap: 20px;
  justify-items: stretch;
  align-items: stretch;
  margin-top: 10px;
}

/* Karta jedného plánu (už máš, ale doladíme rozmer) */
.plan-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 16px 20px;
  transition: background 0.3s, transform 0.2s;
}

.plan-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}




















/* === Karty KPI (vrchný prehľad v sekcii Predaje) === */
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 1rem;
}

.kpis .kpi-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 18px 20px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: all 0.25s ease;
  border: 1px solid rgba(255,255,255,0.07);
}

.kpis .kpi-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}

.kpi-card h4 {
  font-size: 0.95rem;
  color: #a8b3c7;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.kpi-card .value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #eaf4ff;
}

/* Dodatočný riadok pod KPI (napr. „Firma splnila X % cieľa“) */
.kpi-footer {
  text-align: center;
  font-size: 0.95rem;
  color: #8ea4c7;
  margin-top: 1rem;
  padding: 6px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}



/* === Upravený vzhľad poslednej KPI karty (Ostáva do konca plánu) === */
.kpi-card.days {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.kpi-card.days h4 {
  font-size: 1rem;
  color: #a8b3c7;
  margin-bottom: 0;
}

.kpi-card.days .days-big {
  font-size: 1.6rem;
  font-weight: 700;
  color: #eaf4ff;
}

.kpi-card.days .date-small {
  font-size: 0.85rem;
  color: #9aa9c7;
  margin-top: -2px;
}

/* === Mini koláčový progress (pri % plnení cieľa) === */
.kpi-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.progress-circle-small {
  --p: 7; /* tu sa dá dynamicky nastaviť % */
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background:
    conic-gradient(#22c55e calc(var(--p) * 1%), rgba(255,255,255,0.08) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #eaf4ff;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
}

.kpi-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.03);
  padding: 12px 20px;
  border-radius: 10px;
  margin-top: 12px;
}

.kpi-footer .footer-text {
  color: #cfd9ea;
  font-size: 1rem;
}

.kpi-footer .footer-text b {
  color: #22c55e;
  font-weight: 700;
}

.progress-circle-small {
  --p: 7;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: conic-gradient(#22c55e calc(var(--p) * 1%), rgba(255,255,255,0.08) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #eaf4ff;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 0 8px rgba(0,0,0,0.4);
}
























.footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 0.5rem;
}

.footer-text {
  color: #d0d6e2;
  font-size: 15px;
}

.footer-text b {
  color: #3bff77; /* zelené percento */
}

.footer-text.expected b {
  color: #ffa64d; /* oranžové pre očakávané príjmy */
}

.progress-circle-small {
  --p: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: conic-gradient(#3bff77 calc(var(--p) * 1%), #222 0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  transition: background 0.6s ease;
}

.progress-circle-small.orange {
  background: conic-gradient(orange calc(var(--p) * 1%), #222 0);
}


/* Schovaný, ale funkčný scrollbar */
html {
  scrollbar-width: thin; /* pre Firefox */
}

/* pre Chrome / Edge / Safari */
html::-webkit-scrollbar {
  width: 6px; /* stále existuje, ale malý */
}

html::-webkit-scrollbar-thumb {
  background-color: transparent; /* neviditeľný */
}

html::-webkit-scrollbar-track {
  background: transparent;
}














.summary-card .progress-wrap {
  background: #222;
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
  margin-top: 5px;
}
.summary-card .progress-bar {
  background: #4caf50;
  height: 100%;
  transition: width 0.4s ease;
}
.summary-card .progress-bar.expected {
  background: #f9a825;
}
.summary-card .stat {
  margin: 2px 0;
}

.summary-card {
  text-align: left;
  padding: 10px 15px;
}

.summary-card .stat {
  margin: 3px 0;
  font-size: 15px;
  color: #ccc;
}

.summary-card .stat b.white {
  color: #fff;
}

.summary-card .stat b.green {
  color: #4caf50;
}

.summary-card .stat b.yellow {
  color: #f9a825;
}

.summary-card .progress-wrap {
  background: #222;
  border-radius: 4px;
  height: 8px;
  overflow: hidden;
  margin-top: 5px;
}

.summary-card .progress-bar {
  background: #4caf50;
  height: 100%;
  transition: width 0.4s ease;
}

.summary-card .progress-bar.expected {
  background: #f9a825;
}

.summary-card .percent {
  font-size: 13px;
  margin-top: 2px;
  color: #aaa;
}


<div class="section-header">
  <h3>Prehľad zamestnancov</h3>
  <div class="underline"></div>
</div>

<div id="quickSummary" class="summary-grid"></div>


.section-header {
  margin: 30px 0 15px;
  text-align: left;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  color: #ffffff !important;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.section-underline {
  width: 180px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #00c896, #007aff);
  box-shadow: 0 0 10px rgba(0, 200, 150, 0.4);
}














#quickSummary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;

  width: 94%;
  margin: 25px auto 0; /* hore odsadenie 25px */
  box-sizing: border-box;

  justify-content: center;
  align-items: stretch;
}













.progress-circle-small {
  --size: 80px;                /* väčší kruh pre viac pixelov */
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: conic-gradient(
    var(--c, limegreen) calc(var(--p, 0) * 1%),
    rgba(255,255,255,0.05) 0
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 0.9rem;
  transform: scale(0.9) translateZ(0); /* 🧠 aktivuje GPU antialiasing */
  backface-visibility: hidden;
}





#expenseTimelineSection {
  display: none;
}

body.admin-unlocked #expenseTimelineSection {
  display: block;
}










