/* ============================================================
   FANTAPIANTO — style.css
   Glassmorphism Dark Theme — Mobile First
   ============================================================ */

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
    --bg: #050b18;
    --bg2: #0a1628;

    --glass: rgba(255, 255, 255, 0.04);
    --glass-b: rgba(255, 255, 255, 0.09);
    --glass-hov: rgba(255, 255, 255, 0.08);

    --blue: #38bdf8;
    --blue-dim: rgba(56, 189, 248, 0.14);
    --blue-ring: rgba(56, 189, 248, 0.28);
    --green: #22c55e;
    --green-dim: rgba(34, 197, 94, 0.14);
    --gold: #f59e0b;
    --gold-dim: rgba(245, 158, 11, 0.14);
    --red: #ef4444;
    --red-dim: rgba(239, 68, 68, 0.14);
    --purple: #a78bfa;
    --purple-dim: rgba(167, 139, 250, 0.14);

    --t1: #f8fafc;
    --t2: #94a3b8;
    --t3: #475569;

    --f-display: 'Outfit', sans-serif;
    --f-body: 'Inter', sans-serif;

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-full: 9999px;

    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
    --glow-b: 0 0 48px rgba(56, 189, 248, 0.14);
    --glow-g: 0 0 48px rgba(34, 197, 94, 0.14);
    --sidebar-bg: rgba(8, 18, 36, 0.96);
    --digit-bg: rgba(0, 0, 0, 0.25);

    --nav-h: 70px;
    --hdr-h: 56px;
    --sidebar-w: 228px;
    --content-max: 820px;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── LIGHT THEME OVERRIDES ─────────────────────────────────── */
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --bg: #f1f5f9;
        --bg2: #e2e8f0;
        --sidebar-bg: rgba(255, 255, 255, 0.92);
        --digit-bg: rgba(56, 189, 248, 0.08);
        --glass: rgba(255, 255, 255, 0.85);
        --glass-b: rgba(203, 213, 225, 0.7);
        --glass-hov: rgba(255, 255, 255, 0.98);
        --blue: #0284c7;
        --blue-dim: rgba(2, 132, 199, 0.12);
        --blue-ring: rgba(2, 132, 199, 0.28);
        --green: #16a34a;
        --green-dim: rgba(22, 163, 74, 0.12);
        --t1: #0f172a;
        --t2: #334155;
        --t3: #64748b;
        --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
        --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.1);
    }
}

:root[data-theme="light"] {
    --bg: #f1f5f9;
    --bg2: #e2e8f0;
    --sidebar-bg: rgba(255, 255, 255, 0.92);
    --digit-bg: rgba(56, 189, 248, 0.08);
    --glass: rgba(255, 255, 255, 0.85);
    --glass-b: rgba(203, 213, 225, 0.7);
    --glass-hov: rgba(255, 255, 255, 0.98);
    --blue: #0284c7;
    --blue-dim: rgba(2, 132, 199, 0.12);
    --blue-ring: rgba(2, 132, 199, 0.28);
    --green: #16a34a;
    --green-dim: rgba(22, 163, 74, 0.12);
    --t1: #0f172a;
    --t2: #334155;
    --t3: #64748b;
    --shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 8px 32px rgba(15, 23, 42, 0.1);
}

/* ── RESET ──────────────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--f-body);
    background: var(--bg);
    color: var(--t1);
    min-height: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button {
    font-family: inherit;
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}

img,
svg {
    display: block;
}

/* ── AMBIENT BACKGROUND GLOWS ───────────────────────────────── */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.bg-glow-1 {
    width: 480px;
    height: 480px;
    top: -120px;
    left: -120px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.28) 0%, transparent 70%);
    animation: drift1 22s ease-in-out infinite;
}

.bg-glow-2 {
    width: 360px;
    height: 360px;
    bottom: 80px;
    right: -80px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.2) 0%, transparent 70%);
    animation: drift2 28s ease-in-out infinite;
}

.bg-glow-3 {
    width: 280px;
    height: 280px;
    top: 55%;
    left: 48%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(167, 139, 250, 0.16) 0%, transparent 70%);
    animation: drift3 34s ease-in-out infinite;
}

@keyframes drift1 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(50px, 40px);
    }

    66% {
        transform: translate(-20px, 70px);
    }
}

@keyframes drift2 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    40% {
        transform: translate(-45px, -55px);
    }

    70% {
        transform: translate(25px, -25px);
    }
}

@keyframes drift3 {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.35);
    }
}

/* ── SIDEBAR (desktop only) ─────────────────────────────────── */
.sidebar {
    display: none;
    /* shown via media query */
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-w);
    height: 100vh;
    flex-direction: column;
    background: var(--sidebar-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid var(--glass-b);
    z-index: 100;
    padding: 28px 16px 24px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px 28px;
    border-bottom: 1px solid var(--glass-b);
    margin-bottom: 20px;
    cursor: default;
}

.brand-emoji {
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

.brand-name {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.brand-season {
    font-size: 0.72rem;
    color: var(--t3);
    margin-top: 1px;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: var(--r-md);
    background: transparent;
    color: var(--t2);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s var(--ease);
    text-align: left;
}

.nav-btn:hover {
    background: var(--glass-hov);
    color: var(--t1);
}

.nav-btn.active {
    background: var(--blue-dim);
    color: var(--blue);
}

.nav-ico {
    font-size: 1.15rem;
}

.sidebar-footer {
    padding-top: 18px;
    border-top: 1px solid var(--glass-b);
}

.admin-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: var(--r-md);
    color: var(--t3);
    font-size: 0.82rem;
    transition: all 0.2s;
}

.admin-link:hover {
    background: var(--glass);
    color: var(--t2);
}

/* ── APP SHELL ──────────────────────────────────────────────── */
.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ── MOBILE HEADER ──────────────────────────────────────────── */
.mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--hdr-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    background: var(--sidebar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-b);
    z-index: 50;
}

.mhdr-brand {
    display: flex;
    align-items: center;
    gap: 9px;
}

.brand-emoji-sm {
    font-size: 1.35rem;
    cursor: pointer;
    user-select: none;
}

.brand-name-sm {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 1.05rem;
}

.mhdr-admin {
    font-size: 1.3rem;
    padding: 8px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.mhdr-admin:hover {
    opacity: 1;
}

/* ── CONTENT AREA ───────────────────────────────────────────── */
.content-area {
    flex: 1;
    padding-top: calc(var(--hdr-h) + 20px);
    padding-bottom: calc(var(--nav-h) + 20px);
    padding-left: 16px;
    padding-right: 16px;
    max-width: var(--content-max);
    width: 100%;
    margin: 0 auto;
}

/* ── SECTIONS ───────────────────────────────────────────────── */
.pg {
    display: none;
}

.pg.active {
    display: block;
    animation: fadeUp 0.38s var(--ease) both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pg-head {
    margin-bottom: 24px;
}

.pg-title {
    font-family: var(--f-display);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.pg-sub {
    color: var(--t2);
    font-size: 0.875rem;
}

.wave {
    display: inline-block;
    animation: wave 2.4s ease-in-out infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {

    0%,
    100% {
        transform: rotate(0deg);
    }

    15% {
        transform: rotate(-12deg);
    }

    35% {
        transform: rotate(16deg);
    }

    55% {
        transform: rotate(-8deg);
    }

    75% {
        transform: rotate(10deg);
    }
}

/* ── GLASS CARD ─────────────────────────────────────────────── */
.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-b);
    border-radius: var(--r-xl);
    padding: 24px;
    box-shadow: var(--shadow);
}

/* ── HERO COUNTDOWN ─────────────────────────────────────────── */
.hero-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(140deg,
            rgba(56, 189, 248, 0.09) 0%,
            rgba(34, 197, 94, 0.05) 60%,
            rgba(167, 139, 250, 0.06) 100%);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: var(--r-xl);
    padding: 28px 22px 24px;
    margin-bottom: 20px;
    box-shadow: var(--glow-b), var(--shadow-lg);
    animation: fadeUp 0.5s var(--ease) both;
}

/* Animated top border line */
.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    right: -50%;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%, var(--blue) 30%,
            var(--green) 55%, var(--purple) 80%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--blue-dim);
    border: 1px solid var(--blue-ring);
    color: var(--blue);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--r-full);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.hero-event-emoji {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 8px;
}

.hero-event-name {
    font-family: var(--f-display);
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.hero-event-meta {
    color: var(--t2);
    font-size: 0.85rem;
    margin-bottom: 28px;
}

.hero-event-meta strong {
    color: var(--blue);
}

/* ─ Countdown digits ─ */
.cd-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
}

.cd-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.cd-digit {
    font-family: var(--f-display);
    font-size: clamp(2rem, 9vw, 3.4rem);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    color: var(--t1);
    background: var(--digit-bg);
    border: 1px solid var(--glass-b);
    border-radius: var(--r-md);
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cd-digit.pulse {
    animation: digitPulse 0.28s ease;
}

@keyframes digitPulse {
    0% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.07);
        color: var(--blue);
    }

    100% {
        transform: scale(1);
    }
}

.cd-sep {
    font-family: var(--f-display);
    font-size: clamp(1.6rem, 6vw, 2.8rem);
    font-weight: 900;
    color: var(--t3);
    padding-bottom: 22px;
    flex-shrink: 0;
    align-self: flex-start;
    padding-top: 6px;
}

.cd-lbl {
    font-size: 0.62rem;
    font-weight: 600;
    color: var(--t3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ─ Location row ─ */
.hero-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 5px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-b);
    border-radius: var(--r-full);
    font-size: 0.8rem;
    color: var(--t2);
}

.hero-location-icon {
    font-size: 0.9rem;
    line-height: 1;
}

.hero-location-text {
    font-weight: 500;
}

/* ─ Expired state ─ */
.cd-expired {
    text-align: center;
    padding: 20px 0 8px;
}

.cd-expired-emoji {
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.cd-expired-text {
    font-family: var(--f-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--green);
}

/* ── SECONDARY DEADLINES ────────────────────────────────────── */
.sec-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--t3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.dl-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.dl-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-b);
    border-radius: var(--r-lg);
    transition: transform 0.2s var(--ease), background 0.2s;
    animation: fadeUp 0.4s var(--ease) both;
}

.dl-card:hover {
    transform: translateX(4px);
    background: var(--glass-hov);
}

.dl-card.urgent {
    border-color: rgba(239, 68, 68, 0.35);
    background: var(--red-dim);
}

.dl-card.soon {
    border-color: rgba(245, 158, 11, 0.35);
    background: var(--gold-dim);
}

.dl-card.ok {
    border-color: rgba(34, 197, 94, 0.25);
}

.dl-emoji {
    font-size: 1.7rem;
    flex-shrink: 0;
}

.dl-info {
    flex: 1;
    min-width: 0;
}

.dl-name {
    font-family: var(--f-display);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.dl-when {
    font-size: 0.78rem;
    color: var(--t2);
}

.dl-timer {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 0.82rem;
    text-align: right;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.dl-timer.urgent {
    color: var(--red);
}

.dl-timer.soon {
    color: var(--gold);
}

.dl-timer.ok {
    color: var(--green);
}

/* ── FILTER BAR ─────────────────────────────────────────────── */
.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-pill {
    padding: 6px 16px;
    border: 1px solid var(--glass-b);
    border-radius: var(--r-full);
    background: var(--glass);
    color: var(--t2);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-pill:hover {
    background: var(--glass-hov);
    color: var(--t1);
}

.filter-pill.active {
    background: var(--blue-dim);
    border-color: var(--blue-ring);
    color: var(--blue);
}

/* ── REGOLAMENTO — NOTES CARD ───────────────────────────────── */
.reg-notes-card {
    background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(34,197,94,0.05));
    border: 1px solid rgba(245,158,11,0.25);
    border-radius: var(--r-xl);
    padding: 20px 22px;
    margin-bottom: 20px;
    box-shadow: var(--glow-gold);
    animation: fadeUp 0.4s var(--ease) both;
}

.reg-notes-hdr {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(245,158,11,0.2);
}

.reg-notes-emoji { font-size: 1.6rem; }

.reg-notes-title {
    font-family: var(--f-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--t1);
}

.reg-notes-sub {
    font-size: 0.75rem;
    color: var(--t2);
    margin-top: 2px;
}

.reg-notes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.note-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--r-md);
    font-size: 0.85rem;
    line-height: 1.5;
}

.note-novita    { background: rgba(34,197,94,0.1);   border-left: 3px solid var(--green); }
.note-modifica  { background: rgba(245,158,11,0.1);  border-left: 3px solid var(--gold);  }
.note-attenzione{ background: rgba(239,68,68,0.1);   border-left: 3px solid var(--red);   }

.note-ico  { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.note-tag  { font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; margin-right: 6px; }
.note-text { color: var(--t2); }

/* ── REGOLAMENTO — ACCORDION ────────────────────────────────── */
.accordion { display: flex; flex-direction: column; gap: 8px; }

.acc-item {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-b);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: border-color 0.25s, box-shadow 0.25s;
    animation: fadeUp 0.4s var(--ease) both;
}

.acc-item:hover  { border-color: rgba(56,189,248,0.2); }
.acc-item.open   { border-color: rgba(56,189,248,0.3); box-shadow: var(--glow-b); }

.acc-hdr {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 18px 20px;
    background: transparent;
    border: none;
    color: var(--t1);
    text-align: left;
    cursor: pointer;
    transition: background 0.2s;
}

.acc-hdr:hover { background: var(--glass-hov); }

.acc-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--blue-dim);
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.acc-title {
    flex: 1;
    font-family: var(--f-display);
    font-size: 0.95rem;
    font-weight: 700;
}

.acc-chevron {
    font-size: 1.1rem;
    color: var(--t3);
    flex-shrink: 0;
    transition: transform 0.35s var(--ease), color 0.2s;
}

.acc-item.open .acc-chevron {
    transform: rotate(180deg);
    color: var(--blue);
}

/* Grid-based smooth open/close */
.acc-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.acc-item.open .acc-body {
    grid-template-rows: 1fr;
}

.acc-body-inner { overflow: hidden; }

.acc-content {
    padding: 16px 20px 22px;
    border-top: 1px solid var(--glass-b);
    color: var(--t2);
    font-size: 0.88rem;
    line-height: 1.7;
}

@media (max-width: 640px) {
    .acc-hdr {
        padding: 16px;
        gap: 10px;
    }
    .acc-content {
        padding: 14px 16px 20px;
    }
}

/* Content styling inside accordion */
.acc-content p   { margin-bottom: 10px; }
.acc-content p:last-child { margin-bottom: 0; }
.acc-content strong { color: var(--t1); font-weight: 600; }
.acc-content em  { color: var(--blue); font-style: normal; }
.acc-content h4  {
    font-family: var(--f-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--t1);
    margin: 16px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--glass-b);
}
.acc-content ul {
    padding-left: 20px;
    margin-bottom: 10px;
}
.acc-content li { margin-bottom: 6px; }

/* Regolamento tables */
.reg-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 0.83rem;
}
.reg-table th {
    background: rgba(56,189,248,0.1);
    color: var(--blue);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--glass-b);
}
.reg-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: var(--t2);
    vertical-align: top;
}
.reg-table tr:last-child td { border-bottom: none; }
.reg-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ── DOCS GRID (legacy, kept for safety) ────────────────────── */
.docs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.doc-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    background: var(--glass);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-b);
    border-radius: var(--r-lg);
    cursor: pointer;
    transition: all 0.22s var(--ease);
    animation: fadeUp 0.4s var(--ease) both;
    text-decoration: none;
    color: inherit;
}

.doc-card:hover {
    background: var(--glass-hov);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.doc-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.doc-icon.reg {
    background: var(--blue-dim);
}

.doc-icon.asta {
    background: var(--gold-dim);
}

.doc-icon.com {
    background: var(--green-dim);
}

.doc-icon.altro {
    background: var(--glass);
}

.doc-body {
    flex: 1;
    min-width: 0;
}

.doc-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.doc-title {
    font-family: var(--f-display);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--t1);
}

.doc-badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--r-full);
    flex-shrink: 0;
    white-space: nowrap;
}

.badge-reg {
    background: var(--blue-dim);
    color: var(--blue);
}

.badge-asta {
    background: var(--gold-dim);
    color: var(--gold);
}

.badge-com {
    background: var(--green-dim);
    color: var(--green);
}

.badge-altro {
    background: var(--glass);
    color: var(--t2);
}

.doc-new {
    display: inline-block;
    margin-left: 6px;
    background: var(--red);
    color: white;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: var(--r-full);
    text-transform: uppercase;
    vertical-align: middle;
}

.doc-desc {
    font-size: 0.82rem;
    color: var(--t2);
    margin-bottom: 8px;
    line-height: 1.45;
}

.doc-meta {
    font-size: 0.73rem;
    color: var(--t3);
}

.doc-arrow {
    align-self: center;
    color: var(--t3);
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}

.doc-card:hover .doc-arrow {
    color: var(--blue);
    transform: translateX(4px);
}

/* ── EMPTY STATE ────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 56px 24px;
    color: var(--t3);
}

.empty-ico {
    font-size: 3rem;
    margin-bottom: 12px;
}

.empty-state p {
    font-size: 0.88rem;
}

/* ── FORM / SEGNALAZIONI ────────────────────────────────────── */
.form-card {
    max-width: 640px;
}

.form-intro {
    font-size: 0.88rem;
    color: var(--t2);
    line-height: 1.65;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--glass-b);
}

.form-intro strong {
    color: var(--t1);
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.form-lbl {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--t2);
}

.form-lbl em {
    font-style: normal;
    color: var(--t3);
    font-size: 0.78rem;
}

.req {
    color: var(--blue);
}

.form-inp {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-b);
    border-radius: var(--r-md);
    color: var(--t1);
    font-family: var(--f-body);
    font-size: 0.88rem;
    padding: 12px 14px;
    outline: none;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}

.form-inp:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.form-inp::placeholder {
    color: var(--t3);
}

.form-sel {
    cursor: pointer;
}

.form-sel option {
    background: #1a2944;
    color: var(--t1);
}

.form-ta {
    resize: vertical;
    min-height: 120px;
}

.char-count {
    font-size: 0.73rem;
    color: var(--t3);
    text-align: right;
    margin-top: 4px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 28px;
    margin-top: 8px;
    background: linear-gradient(135deg, var(--blue) 0%, #0ea5e9 100%);
    border: none;
    border-radius: var(--r-md);
    color: white;
    font-family: var(--f-display);
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.22);
    transition: all 0.22s var(--ease);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(56, 189, 248, 0.32);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-arrow {
    transition: transform 0.2s;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    margin-top: 16px;
    background: var(--glass);
    border: 1px solid var(--glass-b);
    border-radius: var(--r-md);
    color: var(--t2);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--glass-hov);
    color: var(--t1);
}

.form-success {
    text-align: center;
    padding: 32px 16px 16px;
    animation: fadeUp 0.38s var(--ease) both;
}

.success-ico {
    font-size: 3.2rem;
    margin-bottom: 14px;
}

.form-success h3 {
    font-family: var(--f-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 8px;
}

.form-success p {
    color: var(--t2);
    font-size: 0.88rem;
}

/* ── BOTTOM NAV ─────────────────────────────────────────────── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    display: flex;
    background: var(--sidebar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-b);
    z-index: 50;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.bnav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: none;
    background: transparent;
    color: var(--t3);
    padding: 8px 0;
    transition: color 0.2s;
    position: relative;
}

.bnav-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: var(--blue);
    border-radius: 0 0 var(--r-sm) var(--r-sm);
    transform: scaleX(0);
    transition: transform 0.25s var(--spring);
}

.bnav-btn.active::after {
    transform: scaleX(1);
}

.bnav-btn:hover {
    color: var(--t2);
}

.bnav-btn.active {
    color: var(--blue);
}

.bnav-ico {
    font-size: 1.25rem;
}

.bnav-lbl {
    font-size: 0.65rem;
    font-weight: 500;
}

/* ── TOAST ──────────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: calc(var(--nav-h) + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: var(--bg2);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-b);
    color: var(--t1);
    box-shadow: var(--shadow-lg);
    padding: 10px 20px;
    border-radius: var(--r-full);
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
    white-space: nowrap;
    transition: opacity 0.28s, transform 0.28s var(--spring);
}

:root[data-theme="light"] .toast {
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    border-color: rgba(203, 213, 225, 0.9);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.14);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── RESPONSIVE — TABLET & DESKTOP ─────────────────────────── */
@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .dl-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {

    /* Show sidebar, hide mobile elements */
    .sidebar {
        display: flex;
    }

    .mobile-header {
        display: none;
    }

    .bottom-nav {
        display: none;
    }

    /* Offset content for sidebar */
    .app-shell {
        margin-left: var(--sidebar-w);
    }

    .content-area {
        padding-top: 36px;
        padding-bottom: 36px;
        padding-left: 36px;
        padding-right: 36px;
    }

    .pg-title {
        font-size: 2rem;
    }

    .docs-grid {
        grid-template-columns: 1fr 1fr;
    }

    .toast {
        bottom: 24px;
    }

    .cd-digit {
        font-size: 3.8rem;
    }

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
    .hero-event-name {
        font-size: 2rem;
    }
}

/* ── MODAL OVERLAY ──────────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(5, 11, 24, 0.78);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.25s ease-out;
}
:root[data-theme="light"] .modal-overlay {
    background: rgba(15, 23, 42, 0.45);
}

.modal-card {
    background: var(--bg2);
    border: 1px solid var(--glass-b);
    border-radius: var(--r-xl);
    padding: 24px 28px;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-lg);
    color: var(--t1);
}

.modal-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-hdr h3 {
    font-family: var(--f-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--t1);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--t2);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
}
.modal-close:hover { color: var(--t1); }

.form-inp {
    width: 100%;
    padding: 10px 14px;
    margin-top: 4px;
    background: var(--glass);
    border: 1px solid var(--glass-b);
    border-radius: var(--r-md);
    color: var(--t1);
    font-family: var(--f-body);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}
.form-inp:focus {
    border-color: var(--blue);
}


/* Staggered entrance for grid items */
.docs-grid .doc-card:nth-child(1) {
    animation-delay: 0.04s;
}

.docs-grid .doc-card:nth-child(2) {
    animation-delay: 0.08s;
}

.docs-grid .doc-card:nth-child(3) {
    animation-delay: 0.12s;
}

.docs-grid .doc-card:nth-child(4) {
    animation-delay: 0.16s;
}

.docs-grid .doc-card:nth-child(5) {
    animation-delay: 0.20s;
}

.docs-grid .doc-card:nth-child(6) {
    animation-delay: 0.24s;
}

.dl-grid .dl-card:nth-child(1) {
    animation-delay: 0.08s;
}

.dl-grid .dl-card:nth-child(2) {
    animation-delay: 0.14s;
}

.dl-grid .dl-card:nth-child(3) {
    animation-delay: 0.20s;
}

/* ── MULTA CARTELLINO ROSSO ────────────────────────────────── */
.multa-card-box {
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.multa-card-box:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.25);
}

/* ── PRESET DOBLONI VERSAMENTO ───────────────────────────────── */
.preset-coin-btn {
    flex: 1;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--r-md);
    font-family: var(--f-body);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    border: 1px solid var(--glass-b);
    text-align: center;
    outline: none;
    box-sizing: border-box;
}

.preset-coin-btn.coin-yellow {
    background: rgba(234, 179, 8, 0.12);
    color: #eab308;
    border-color: rgba(234, 179, 8, 0.35);
}
.preset-coin-btn.coin-yellow:hover, .preset-coin-btn.coin-yellow:active {
    background: rgba(234, 179, 8, 0.25);
    border-color: #eab308;
    transform: translateY(-1px);
}

.preset-coin-btn.coin-green {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.35);
}
.preset-coin-btn.coin-green:hover, .preset-coin-btn.coin-green:active {
    background: rgba(34, 197, 94, 0.25);
    border-color: #22c55e;
    transform: translateY(-1px);
}

/* ── TEAM CARD ACTION BUTTONS ────────────────────────────────── */
.team-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--glass-b);
}

.team-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: var(--r-md);
    font-family: var(--f-body);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    border: 1px solid var(--glass-b);
    white-space: nowrap;
    outline: none;
    box-sizing: border-box;
}

.team-card-btn.btn-versamento {
    background: var(--glass);
    color: var(--t1);
    border-color: var(--glass-b);
}
.team-card-btn.btn-versamento:hover {
    background: var(--glass-hov);
    border-color: var(--blue);
    color: var(--blue);
}

.team-card-btn.btn-multa {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red);
    border-color: rgba(239, 68, 68, 0.35);
}
.team-card-btn.btn-multa:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--red);
}

.team-card-btn.btn-admin-edit {
    background: rgba(56, 189, 248, 0.12);
    color: var(--blue);
    border-color: rgba(56, 189, 248, 0.35);
}
.team-card-btn.btn-admin-edit:hover {
    background: rgba(56, 189, 248, 0.22);
    border-color: var(--blue);
    transform: translateY(-1px);
}

/* ── ADMIN QUOTE BANNER & TOOLBAR ────────────────────────────── */
.admin-quote-banner {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.14) 0%, rgba(34, 197, 94, 0.1) 100%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: var(--r-xl);
    padding: 14px 18px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.08);
    animation: fadeIn 0.25s ease-out;
}

.admin-quote-banner-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--f-display);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--blue);
}

.admin-quote-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── PRESET CHIPS FOR QUOTA & MULTE ─────────────────────────── */
.preset-chips-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.chip-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: var(--r-md);
    font-family: var(--f-body);
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--glass-b);
    background: var(--glass);
    color: var(--t1);
    cursor: pointer;
    transition: all 0.18s var(--ease);
}

.chip-btn:hover {
    background: var(--glass-hov);
    border-color: var(--blue);
    color: var(--blue);
    transform: translateY(-1px);
}

.chip-btn.active {
    background: rgba(56, 189, 248, 0.2);
    border-color: var(--blue);
    color: var(--blue);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.chip-btn.chip-green:hover, .chip-btn.chip-green.active {
    background: rgba(34, 197, 94, 0.2);
    border-color: var(--green);
    color: var(--green);
}

.chip-btn.chip-red:hover, .chip-btn.chip-red.active {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--red);
    color: var(--red);
}

.chip-btn.chip-gold:hover, .chip-btn.chip-gold.active {
    background: rgba(245, 158, 11, 0.2);
    border-color: var(--gold);
    color: var(--gold);
}

/* ── NUMERIC KEYPAD & PWD FIELD ─────────────────────────────── */
.pwd-field-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.pwd-toggle-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--t2);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.18s ease;
}

.pwd-toggle-btn:hover {
    color: var(--t1);
}

.num-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
    max-width: 240px;
    margin-left: auto;
    margin-right: auto;
}

.keypad-btn {
    height: 44px;
    border-radius: var(--r-md);
    background: var(--glass);
    border: 1px solid var(--glass-b);
    color: var(--t1);
    font-family: var(--f-display);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.keypad-btn:active {
    background: rgba(56, 189, 248, 0.25);
    border-color: var(--blue);
    transform: scale(0.94);
}

.keypad-btn:hover {
    background: var(--glass-hov);
    border-color: rgba(56, 189, 248, 0.4);
}

.keypad-btn.action-btn {
    font-size: 0.95rem;
    background: rgba(239, 68, 68, 0.1);
    color: var(--red);
    border-color: rgba(239, 68, 68, 0.25);
}

.keypad-btn.action-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

@media (max-width: 580px) {
    .team-card-actions {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 8px;
        width: 100%;
    }
    .team-card-btn {
        width: 100%;
        padding: 0 10px;
        font-size: 0.75rem;
    }
}

/* ── ALBO D'ORO & TIMELINE ─────────────────────────────────── */
.albo-hero-card {
    position: relative;
    overflow: hidden;
    padding: 26px 24px;
    border-radius: var(--r-xl);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
    margin-bottom: 24px;
    transition: transform 0.3s var(--spring), box-shadow 0.3s var(--spring);
}

.albo-hero-trophy {
    position: absolute;
    top: -20px;
    right: -10px;
    font-size: 7.5rem;
    opacity: 0.15;
    pointer-events: none;
    user-select: none;
    transform: rotate(8deg);
}

.timeline-container {
    position: relative;
    padding-left: 32px;
    margin-top: 16px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 11px;
    width: 2px;
    background: linear-gradient(180deg, var(--blue) 0%, rgba(56, 189, 248, 0.2) 85%, transparent 100%);
    border-radius: var(--r-full);
}

.timeline-item {
    position: relative;
    margin-bottom: 16px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-node {
    position: absolute;
    left: -32px;
    top: 16px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg1);
    border: 2px solid var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
    z-index: 2;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.timeline-item:hover .timeline-node {
    transform: scale(1.15);
    border-color: var(--gold);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.6);
}

.timeline-card {
    padding: 16px 20px;
    border-radius: var(--r-lg);
    background: var(--glass);
    border: 1px solid var(--glass-b);
    backdrop-filter: blur(12px);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.timeline-card:hover {
    background: var(--glass-hov);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(4px);
}

/* ── PRINT & STAMPA PDF VETTORIALE (0ms LAG) ──────────────── */
@media print {
    @page {
        size: A4 portrait;
        margin: 12mm 10mm 12mm 10mm;
    }

    body {
        background: #ffffff !important;
        color: #0f172a !important;
        font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
        font-size: 10pt !important;
        line-height: 1.5 !important;
    }

    /* Hide web app UI controls */
    .sidebar, .mobile-header, .bottom-nav, .bg-glow, .pg-head button,
    #pwa-install-banner, .modal-overlay, #toast, .sidebar-footer,
    .pg-head p {
        display: none !important;
    }

    .app-shell, .content-area {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .pg-title {
        font-size: 22pt !important;
        color: #0284c7 !important;
        text-align: center !important;
        margin-bottom: 18px !important;
        border-bottom: 3px solid #0284c7 !important;
        padding-bottom: 10px !important;
    }

    /* Expand all accordion sections automatically */
    .acc-body {
        display: block !important;
        grid-template-rows: none !important;
        height: auto !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .acc-body-inner {
        overflow: visible !important;
    }
    .acc-content {
        padding: 10px 0 16px 0 !important;
        border-top: 1px solid #cbd5e1 !important;
        color: #334155 !important;
    }
    .acc-hdr {
        padding: 8px 0 !important;
        background: transparent !important;
        border-bottom: 1px solid #0284c7 !important;
        page-break-after: avoid;
        break-after: avoid;
    }
    .acc-title {
        color: #0284c7 !important;
        font-size: 13pt !important;
        font-weight: 700 !important;
    }
    .acc-chevron {
        display: none !important;
    }
    .acc-item {
        border: none !important;
        box-shadow: none !important;
        margin-bottom: 16px !important;
        page-break-inside: avoid;
        break-inside: avoid;
        background: transparent !important;
    }

    /* Table styles for vector PDF */
    .reg-table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin: 10px 0 !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    .reg-table th {
        background-color: #f0f9ff !important;
        color: #0369a1 !important;
        font-weight: 700 !important;
        padding: 6px 10px !important;
        border: 1px solid #bae6fd !important;
        font-size: 9pt !important;
        text-transform: uppercase !important;
    }
    .reg-table td {
        padding: 6px 10px !important;
        border: 1px solid #e2e8f0 !important;
        color: #334155 !important;
        font-size: 9pt !important;
    }

    .doc-badge {
        background: #e0f2fe !important;
        color: #0284c7 !important;
        border: 1px solid #bae6fd !important;
    }

    .type-badge {
        display: inline-block !important;
        padding: 2px 8px !important;
        border-radius: 999px !important;
        font-size: 8pt !important;
    }
}