/* Holding Familiar v2 — complementos ao Tailwind (100% offline) */
:root {
    --font-sans: 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: var(--font-sans);
    background-color: #0b0f19;
    color: #f1f5f9;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }

.panel {
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(51, 65, 85, 0.45);
    border-radius: 1rem;
}

.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.inp {
    background: #0b1220;
    border: 1px solid #334155;
    border-radius: 0.6rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.85rem;
    color: #e2e8f0;
    width: 100%;
    outline: none;
}
.inp:focus { border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25); }
select.inp { padding-right: 1.5rem; }
.inp-sm { padding: 0.3rem 0.5rem; font-size: 0.78rem; border-radius: 0.45rem; }

.btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.45rem 0.9rem; border-radius: 0.6rem; font-size: 0.82rem; font-weight: 600;
    transition: all .15s; white-space: nowrap; cursor: pointer;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: #4f46e5; color: white; }
.btn-primary:hover { background: #6366f1; }
.btn-ghost { background: #1e293b; color: #cbd5e1; border: 1px solid #334155; }
.btn-ghost:hover { background: #273449; color: white; }
.btn-danger { background: rgba(239, 68, 68, .12); color: #f87171; border: 1px solid rgba(239, 68, 68, .3); }
.btn-danger:hover { background: rgba(239, 68, 68, .22); }
.btn-ok { background: rgba(16, 185, 129, .15); color: #34d399; border: 1px solid rgba(16, 185, 129, .3); }
.btn-ok:hover { background: rgba(16, 185, 129, .25); }
.btn-xs { padding: 0.2rem 0.5rem; font-size: 0.72rem; border-radius: 0.45rem; }

.tbl { width: 100%; font-size: 0.82rem; border-collapse: collapse; }
.tbl th { text-align: left; font-weight: 600; color: #94a3b8; font-size: 0.7rem; text-transform: uppercase;
          letter-spacing: .04em; padding: 0.55rem 0.6rem; border-bottom: 1px solid #1e293b; white-space: nowrap; }
.tbl td { padding: 0.5rem 0.6rem; border-bottom: 1px solid rgba(30, 41, 59, .7); vertical-align: middle; }
.tbl tbody tr:hover { background: rgba(30, 41, 59, .45); }
.tbl .r { text-align: right; }

.chip { display: inline-flex; align-items: center; gap: .25rem; padding: .08rem .45rem; border-radius: 9999px;
        font-size: .68rem; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.chip-gray { background: #1e293b; color: #94a3b8; border-color: #334155; }
.chip-green { background: rgba(16, 185, 129, .12); color: #34d399; border-color: rgba(16, 185, 129, .25); }
.chip-red { background: rgba(239, 68, 68, .12); color: #f87171; border-color: rgba(239, 68, 68, .25); }
.chip-amber { background: rgba(245, 158, 11, .12); color: #fbbf24; border-color: rgba(245, 158, 11, .25); }
.chip-blue { background: rgba(59, 130, 246, .12); color: #60a5fa; border-color: rgba(59, 130, 246, .25); }
.chip-violet { background: rgba(139, 92, 246, .12); color: #a78bfa; border-color: rgba(139, 92, 246, .25); }

.tab { padding: .45rem .8rem; border-radius: .6rem; font-size: .8rem; font-weight: 600; color: #94a3b8; cursor: pointer; }
.tab:hover { color: white; background: #1e293b; }
.tab.active { background: rgba(99, 102, 241, .15); color: #a5b4fc; border: 1px solid rgba(99, 102, 241, .35); }

.nav-link { display: flex; align-items: center; gap: .5rem; padding: .5rem .7rem; border-radius: .6rem;
            font-size: .82rem; font-weight: 600; color: #94a3b8; white-space: nowrap; }
.nav-link:hover { color: white; background: #1e293b; }
.nav-link.active { color: #c7d2fe; background: rgba(99, 102, 241, .15); }

.modal-backdrop { background-color: rgba(3, 7, 18, 0.8); backdrop-filter: blur(6px); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadeIn .2s ease-out; }

.bar { height: 6px; border-radius: 9999px; background: #1e293b; overflow: hidden; }
.bar > div { height: 100%; border-radius: 9999px; }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }

@media print {
    header, nav, .no-print { display: none !important; }
    body { background: white; color: black; }
    .panel { border: 1px solid #ccc; background: white; }
}
