/* ============================================================
   Horas Extras — Premium Design System v3
   Design: Modern Corporate · Deep theme · Teal accent
   Fonts: Sora + Outfit (Google Fonts)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  /* ── Core palette ── */
  --bg:           #F1F5F9;
  --bg-alt:       #E9EDF5;
  --surface:      #FFFFFF;
  --surface-2:    #F8FAFC;
  --border:       #E2E8F0;
  --border-2:     #CBD5E1;

  --text:         #0B1121;
  --text-2:       #334155;
  --muted:        #64748B;
  --muted-2:      #94A3B8;

  /* ── Brand ── */
  --brand:        #0D9488;
  --brand-light:  #14B8A6;
  --brand-dark:   #0F766E;
  --brand-bg:     #F0FDFA;
  --brand-border: #99F6E4;

  /* ── Semantic ── */
  --green:        #059669;
  --green-bg:     #ECFDF5;
  --green-border: #A7F3D0;
  --red:          #DC2626;
  --red-bg:       #FEF2F2;
  --red-border:   #FECACA;
  --amber:        #D97706;
  --amber-bg:     #FFFBEB;
  --amber-border: #FCD34D;
  --blue:         #2563EB;
  --blue-bg:      #EFF6FF;
  --blue-border:  #BFDBFE;

  /* ── Shadows ── */
  --sh-xs:  0 1px 2px rgba(0,0,0,.04);
  --sh-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --sh-md:  0 4px 6px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.04);
  --sh-lg:  0 10px 25px rgba(0,0,0,.06), 0 4px 10px rgba(0,0,0,.04);
  --sh-xl:  0 20px 40px rgba(0,0,0,.08);

  /* ── Radius ── */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  14px;
  --r-xl:  18px;

  /* ── Dimensions ── */
  --nav-h: 68px;
  --hdr-h: 60px;

  /* ── Motion ── */
  --ease:    cubic-bezier(.25,.46,.45,.94);
  --ease-2:  cubic-bezier(.34,1.56,.64,1);
  --dur:     .2s;
  --dur-md:  .35s;
}

/* ── Dark Mode ── */
@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #0B1121;
    --bg-alt:       #101829;
    --surface:      #151E30;
    --surface-2:    #1A253A;
    --border:       #1E2A45;
    --border-2:     #2A3A5A;

    --text:         #EDF2F7;
    --text-2:       #CBD5E1;
    --muted:        #94A3B8;
    --muted-2:      #64748B;

    --brand-bg:     #0F2D2A;
    --brand-border: #115E56;

    --green-bg:     #0A2E1D;
    --green-border: #065F46;
    --red-bg:       #2E0A0A;
    --red-border:   #7F1D1D;
    --amber-bg:     #2E260A;
    --amber-border: #783F04;
    --blue-bg:      #0A1E2E;
    --blue-border:  #1E40AF;

    --sh-xs: 0 1px 2px rgba(0,0,0,.2);
    --sh-sm: 0 1px 3px rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.2);
    --sh-md: 0 4px 6px rgba(0,0,0,.3), 0 2px 4px rgba(0,0,0,.2);
    --sh-lg: 0 10px 25px rgba(0,0,0,.4), 0 4px 10px rgba(0,0,0,.3);
    --sh-xl: 0 20px 40px rgba(0,0,0,.5);
  }
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  transition: background var(--dur-md), color var(--dur-md);
}
a   { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
svg { display: block; flex-shrink: 0; }

::selection { background: var(--brand); color: white; }

/* ── Layout ── */
.main-content {
  padding-top: calc(var(--hdr-h) + 1px);
  padding-bottom: calc(var(--nav-h) + 24px);
  min-height: 100vh;
}
.container { max-width: 640px; margin: 0 auto; padding: 24px 20px; }

/* ── Header ── */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--hdr-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--dur-md), border-color var(--dur-md);
}
.header-brand   { display: flex; align-items: center; gap: 12px; }
.header-mark    {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(13,148,136,.35);
}
.header-mark svg { color: #fff; width: 18px; height: 18px; }
.header-title   { font-family: 'Sora', sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.header-right   { display: flex; align-items: center; gap: 12px; }
.header-user    {
  font-size: .8rem;
  font-weight: 500;
  color: var(--muted);
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--surface-2);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.header-exit {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.header-exit:hover { background: var(--red-bg); color: var(--red); border-color: var(--red-border); }
.header-exit:active { transform: scale(.92); }
.header-exit svg { width: 16px; height: 16px; }

/* ── Bottom Navigation ── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0));
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom, 0);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--dur-md), border-color var(--dur-md);
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted-2);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
  -webkit-tap-highlight-color: transparent;
  padding: 6px 4px;
  position: relative;
}
.nav-item svg   { width: 22px; height: 22px; stroke-width: 1.75; }
.nav-item span  { font-size: .62rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.nav-item.active       { color: var(--brand); }
.nav-item.active svg   { stroke-width: 2.25; }
.nav-item:active       { opacity: .7; }

/* Active indicator dot */
.nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--brand);
  border-radius: 0 0 3px 3px;
}

/* ── Premium Card ── */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  padding: 24px;
  margin-bottom: 16px;
  transition: box-shadow var(--dur-md), border-color var(--dur-md);
}
.card:hover { box-shadow: var(--sh-md); }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.card-title {
  font-family: 'Sora', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}

/* ── Hero Card ── */
.card-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0D9488 0%, #0F766E 50%, #115E59 100%);
  border: none;
  border-radius: var(--r-xl);
  padding: 24px;
  margin-bottom: 16px;
  color: white;
  box-shadow: 0 8px 32px rgba(13,148,136,.35);
}
.card-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.card-hero::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.card-hero .h-label { font-size: .75rem; font-weight: 500; opacity: .75; text-transform: uppercase; letter-spacing: .08em; }
.card-hero .h-value { font-family: 'Sora', sans-serif; font-size: 2rem; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 2px; line-height: 1.1; }
.card-hero .h-sub   { font-size: .82rem; opacity: .7; font-weight: 400; }
.card-hero > * { position: relative; z-index: 1; }

/* ── Stats Grid ── */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all var(--dur-md);
}
.stat-card:hover {
  box-shadow: var(--sh-md);
  border-color: var(--brand-border);
  transform: translateY(-2px);
}
.stat-card.wide { grid-column: span 2; }
.stat-label { font-size: .7rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.stat-value { font-family: 'Sora', sans-serif; font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.stat-value.lg { font-size: 1.6rem; }
.stat-sub   { font-size: .75rem; color: var(--muted); font-weight: 500; }

/* ── Type Dots ── */
.dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-green  { background: var(--green); }
.dot-amber  { background: var(--amber); }
.dot-blue   { background: var(--blue); }
.dot-red    { background: var(--red); }
.dot-brand  { background: var(--brand); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-size: .88rem; font-weight: 600;
  border: none; cursor: pointer;
  transition: all var(--dur) var(--ease);
  white-space: nowrap; line-height: 1;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Outfit', sans-serif;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(.96); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  color: #fff;
  box-shadow: 0 2px 8px rgba(13,148,136,.3);
}
.btn-primary:hover {
  box-shadow: 0 4px 16px rgba(13,148,136,.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--brand-bg);
  color: var(--brand-dark);
  border: 1px solid var(--brand-border);
}
.btn-secondary:hover { background: #D9F7F0; }

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

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

.btn-ghost    { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover  { background: var(--surface-2); color: var(--text); }

.btn-white {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--sh-xs);
}
.btn-white:hover { background: var(--surface-2); border-color: var(--border-2); }

.btn-sm  { padding: 8px 14px; font-size: .8rem; border-radius: var(--r-sm); }
.btn-sm svg { width: 14px; height: 14px; }
.btn-lg  { padding: 15px 26px; font-size: .92rem; border-radius: var(--r-lg); }
.btn-block { width: 100%; }

/* ── Forms ── */
.form-group  { margin-bottom: 18px; }
.form-label  { display: block; font-size: .82rem; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.required    { color: var(--red); }

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: .92rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  transition: all var(--dur) var(--ease);
  -webkit-appearance: none; appearance: none;
  font-family: 'Outfit', sans-serif;
}
.form-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(13,148,136,.12);
}
.form-control::placeholder { color: var(--muted-2); }
.form-control:disabled     { opacity: .55; cursor: not-allowed; }
textarea.form-control      { resize: vertical; min-height: 90px; }
select.form-control {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394A3B8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 14px center;
  background-repeat: no-repeat;
  background-size: 18px;
  padding-right: 42px;
}
select.form-control:focus {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%230D9488' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

/* Input password toggle */
.input-wrap { position: relative; }
.input-wrap .form-control { padding-right: 46px; }
.input-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: none; background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); cursor: pointer; border-radius: var(--r-sm);
  transition: color var(--dur);
}
.input-toggle:hover { color: var(--brand); }
.input-toggle svg { width: 18px; height: 18px; }

.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint  { font-size: .76rem; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.form-error { font-size: .76rem; color: var(--red);   margin-top: 6px; }

/* ── Checkbox ── */
.check-group {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 0;
}
.check-group input[type="checkbox"] {
  width: 16px; height: 16px;
  border: 1.5px solid var(--border-2);
  border-radius: 4px;
  accent-color: var(--brand);
  cursor: pointer;
  flex-shrink: 0;
}
.check-group .check-label { font-size: .88rem; color: var(--text-2); user-select: none; }

/* ── Toggle ── */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--dur);
}
.toggle-row:hover { border-color: var(--brand); }
.toggle-label { font-size: .88rem; font-weight: 600; }
.toggle-sub   { font-size: .74rem; color: var(--muted); margin-top: 2px; }
.toggle-sw    { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle-sw input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
  position: absolute; inset: 0;
  background: var(--border-2); border-radius: 12px;
  transition: background var(--dur-md) var(--ease); cursor: pointer;
}
.toggle-thumb {
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: white; border-radius: 50%;
  transition: transform var(--dur-md) var(--ease-2);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle-sw input:checked ~ .toggle-track { background: var(--brand); }
.toggle-sw input:checked ~ .toggle-thumb { transform: translateX(20px); }

/* ── Preview Box ── */
.preview-box {
  background: linear-gradient(135deg, var(--brand-bg), #F0FDFA);
  border: 1.5px solid var(--brand-border);
  border-radius: var(--r-md);
  padding: 16px 18px;
  margin-top: 4px;
}
.preview-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 0; font-size: .88rem; color: var(--brand-dark);
}
.preview-row .pl { color: var(--muted); font-size: .8rem; }
.preview-row.total {
  border-top: 1px solid var(--brand-border);
  margin-top: 8px; padding-top: 10px;
  font-family: 'Sora', sans-serif;
  font-weight: 700; font-size: .95rem;
  color: var(--brand-dark);
}

/* ── Entry Cards ── */
.entry-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  border-left: 4px solid var(--border-2);
  box-shadow: var(--sh-xs);
  padding: 18px;
  margin-bottom: 12px;
  transition: all var(--dur-md);
}
.entry-card:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-2px);
}
.entry-card.weekday  { border-left-color: var(--green); }
.entry-card.saturday { border-left-color: var(--amber); }
.entry-card.sunday   { border-left-color: var(--blue);  }
.entry-card.holiday  { border-left-color: var(--red);   }

.entry-top    { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.entry-date   { font-family: 'Sora', sans-serif; font-weight: 700; font-size: .95rem; letter-spacing: -.01em; }
.entry-dow    { font-size: .75rem; color: var(--muted); margin-top: 3px; }
.entry-amount { font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1rem; color: var(--brand); white-space: nowrap; padding-left: 8px; }
.entry-act    { font-size: .88rem; color: var(--text-2); margin-bottom: 12px; line-height: 1.5; }
.entry-meta   { display: flex; flex-wrap: wrap; gap: 6px; }
.entry-foot   {
  display: flex; gap: 8px; margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* ── Badges ── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  font-size: .7rem; font-weight: 600;
}
.badge-brand { background: var(--brand-bg);  color: var(--brand-dark); }
.badge-green  { background: var(--green-bg); color: var(--green); }
.badge-red    { background: var(--red-bg);   color: var(--red); }
.badge-amber  { background: var(--amber-bg); color: var(--amber); }
.badge-blue   { background: var(--blue-bg);  color: var(--blue); }
.badge-gray   { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }

/* ── Alerts ── */
.alert {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px; border-radius: var(--r-md);
  font-size: .86rem; font-weight: 500; margin-bottom: 16px;
  line-height: 1.5;
}
.alert svg  { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.alert-ok   { background: var(--green-bg); color: #065F46; border: 1px solid var(--green-border); }
.alert-err  { background: var(--red-bg);   color: #991B1B; border: 1px solid var(--red-border); }
.alert-warn { background: var(--amber-bg); color: #92400E; border: 1px solid var(--amber-border); }
.alert-info { background: var(--blue-bg);  color: #1E40AF; border: 1px solid var(--blue-border); }

/* ── Section Header ── */
.section-hdr {
  display: flex; align-items: center; justify-content: space-between;
  margin: 24px 0 12px;
}
.section-title { font-family: 'Sora', sans-serif; font-size: .95rem; font-weight: 700; letter-spacing: -.01em; }

/* ── Search ── */
.search-wrap { position: relative; margin-bottom: 16px; }
.search-wrap .form-control { padding-left: 44px; }
.search-ico  {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted-2); width: 18px; height: 18px; pointer-events: none;
}

/* ── Chips / Filters ── */
.chip-row {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px;
  margin-bottom: 14px; scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 7px 14px; border-radius: 999px; font-size: .76rem; font-weight: 600;
  border: 1.5px solid var(--border); background: var(--surface);
  color: var(--muted); cursor: pointer; white-space: nowrap;
  text-decoration: none;
  transition: all var(--dur) var(--ease);
}
.chip.active, .chip:hover {
  background: var(--brand-bg); border-color: var(--brand-border); color: var(--brand-dark);
}

/* ── Totals Bar ── */
.totals-bar {
  background: linear-gradient(135deg, #0D9488, #0F766E);
  color: white;
  border-radius: var(--r-lg); padding: 18px 20px;
  display: flex; justify-content: space-around; align-items: center;
  gap: 8px; margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(13,148,136,.3);
}
.totals-bar .t-item { text-align: center; }
.totals-bar .t-lbl  { font-size: .68rem; opacity: .75; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; }
.totals-bar .t-val  { font-family: 'Sora', sans-serif; font-size: 1.05rem; font-weight: 800; margin-top: 3px; letter-spacing: -.01em; }

/* ── Quick Actions ── */
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.quick-btn {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 22px 12px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
  color: var(--text);
  transition: all var(--dur-md) var(--ease);
  text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}
.quick-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  opacity: 0;
  transition: opacity var(--dur-md);
}
.quick-btn:hover {
  border-color: var(--brand-border);
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
}
.quick-btn:hover::before { opacity: 1; }
.quick-btn svg  { width: 26px; height: 26px; color: var(--brand); stroke-width: 1.75; }
.quick-btn span { font-size: .78rem; font-weight: 600; text-align: center; color: var(--text-2); }

/* ── Tables ── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
}
table.dt    { width: 100%; border-collapse: collapse; font-size: .83rem; }
table.dt th {
  background: var(--surface-2);
  color: var(--text-2);
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
table.dt td    { padding: 10px 14px; border-bottom: 1px solid var(--border); }
table.dt tr:last-child td { border-bottom: none; }
table.dt tr:hover td { background: var(--surface-2); }
table.dt .tot-row td { font-weight: 700; background: var(--brand-bg); color: var(--brand-dark); border-top: 2px solid var(--brand-border); }

/* ── Modal (Bottom Sheet) ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(11,17,33,.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--surface);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 28px 24px calc(28px + env(safe-area-inset-bottom,0));
  width: 100%; max-width: 640px;
  transform: translateY(100%);
  transition: transform .3s var(--ease-2);
  box-shadow: 0 -8px 30px rgba(0,0,0,.12);
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-handle { width: 36px; height: 4px; background: var(--border); border-radius: 2px; margin: 0 auto 24px; }
.modal-title  { font-family: 'Sora', sans-serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.modal-body   { font-size: .88rem; color: var(--muted); margin-bottom: 24px; line-height: 1.5; }
.modal-acts   { display: flex; gap: 10px; }
.modal-acts .btn { flex: 1; }

/* ── Login ── */
.login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  background: linear-gradient(150deg, #0B1121 0%, #151E30 55%, #101829 100%);
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(13,148,136,.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.login-page::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(13,148,136,.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px 32px;
  width: 100%; max-width: 400px;
  box-shadow: var(--sh-xl);
  position: relative;
  z-index: 1;
}
.login-mark {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(13,148,136,.4);
}
.login-mark svg { width: 28px; height: 28px; color: #fff; }
.login-title    { font-family: 'Sora', sans-serif; font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 4px; }
.login-sub      { font-size: .88rem; color: var(--muted); margin-bottom: 32px; }

/* ── Divider ── */
.divider { height: 1px; background: var(--border); margin: 20px 0; }

/* ── Empty State ── */
.empty-state { text-align: center; padding: 56px 24px; color: var(--muted); }
.empty-ico   {
  width: 72px; height: 72px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: var(--muted-2);
  transition: border-color var(--dur);
}
.empty-ico svg  { width: 30px; height: 30px; stroke-width: 1.5; }
.empty-title    { font-family: 'Sora', sans-serif; font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.empty-desc     { font-size: .88rem; line-height: 1.5; }

/* ── Charts / Stats Cards ── */
.chart-card  { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; margin-bottom: 16px; box-shadow: var(--sh-xs); }
.chart-title { font-family: 'Sora', sans-serif; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 16px; }
.chart-wrap  { position: relative; height: 220px; }

/* ── Utilities ── */
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center{ align-items: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-6  { gap: 6px; }
.gap-8  { gap: 8px; }
.gap-10 { gap: 10px; }
.flex-1 { flex: 1; }
.w-full { width: 100%; }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--muted); }
.text-brand   { color: var(--brand); }
.text-success { color: var(--green); }
.text-danger  { color: var(--red); }
.fw-6 { font-weight: 600; }
.fw-7 { font-weight: 700; }
.fw-8 { font-weight: 800; }
.fs-sm{ font-size: .82rem; }
.fs-xs{ font-size: .75rem; }
.mt-4 { margin-top: 4px; }
.mt-6 { margin-top: 6px; }
.mt-8 { margin-top: 8px; }
.mt-12{ margin-top: 12px; }
.mt-16{ margin-top: 16px; }
.mt-20{ margin-top: 20px; }
.mt-24{ margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-6 { margin-bottom: 6px; }
.mb-8 { margin-bottom: 8px; }
.mb-12{ margin-bottom: 12px; }
.mb-16{ margin-bottom: 16px; }
.mb-24{ margin-bottom: 24px; }

/* ── Responsive ── */
@media (min-width: 480px) {
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 640px) {
  .container  { padding: 28px 24px; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .main-content { padding-bottom: 32px; }
  .bottom-nav   { display: none; }
}

/* ── Print ── */
@media print {
  .app-header, .bottom-nav, .no-print, .btn, .modal-overlay { display: none !important; }
  .main-content { padding-top: 0; padding-bottom: 0; }
  body  { background: white; }
  .card, .entry-card { box-shadow: none; border: 1px solid #ddd; }
}
