/* ─── Finance ERP — Production Stylesheet ─────────────────────────────────── */

/* Typography */
body {
    font-size: 0.875rem;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Navbar */
.navbar-brand { font-size: 1rem; letter-spacing: 0.5px; }

/* Cards */
.card { border-radius: 0.5rem; }
.card-header { font-size: 0.85rem; }
.hover-card { transition: transform 0.15s ease, box-shadow 0.15s ease; cursor: pointer; }
.hover-card:hover { transform: translateY(-3px); box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.12) !important; }

/* Tables */
.table { font-size: 0.8125rem; }
.table th { font-weight: 600; white-space: nowrap; }
.table td { vertical-align: middle; }

/* Forms */
.form-label { font-size: 0.8125rem; margin-bottom: 0.25rem; }
.form-control, .form-select { font-size: 0.8125rem; }
.form-control-sm, .form-select-sm { font-size: 0.75rem; }

/* Badges */
.badge { font-size: 0.7rem; }

/* Login card */
.card .card-header.bg-primary { border-radius: 0.5rem 0.5rem 0 0 !important; }

/* Nav tabs in voucher entry */
.nav-tabs .nav-link { font-size: 0.8125rem; padding: 0.4rem 0.8rem; }
.nav-tabs .nav-link.active { font-weight: 600; }

/* Amount columns */
.text-end.text-success { color: #198754 !important; }
.text-end.text-danger  { color: #dc3545 !important; }

/* Alerts auto-dismiss */
.alert { font-size: 0.8125rem; }

/* Spinner centering */
.spinner-overlay {
    position: fixed; inset: 0;
    background: rgba(255,255,255,0.7);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999;
}

/* DataTables overrides */
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
}
.dataTables_wrapper .dataTables_length select {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.2rem 0.4rem;
    font-size: 0.8125rem;
}

/* Print */
@media print {
    .navbar, .btn, form { display: none !important; }
    .card { border: none !important; box-shadow: none !important; }
}

/* ── Premium Navbar ─────────────────────────────────────────────────────── */
.nav-pill {
    display: flex; align-items: center; gap: .42rem;
    padding: .42rem .85rem; border-radius: 9px;
    color: rgba(255,255,255,.6); font-size: .82rem; font-weight: 500;
    text-decoration: none; border: none; background: none; cursor: pointer;
    transition: background .18s, color .18s, box-shadow .18s;
    white-space: nowrap; position: relative; letter-spacing: .01em;
}
.nav-pill:hover {
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.95);
    box-shadow: 0 1px 0 rgba(255,255,255,.06) inset;
}
.nav-pill.active {
    background: rgba(59,130,246,.18);
    color: #60a5fa;
    box-shadow: 0 1px 0 rgba(59,130,246,.2) inset;
}
.nav-pill i:first-child { font-size: .76rem; }
.nav-arrow { font-size: .5rem !important; margin-left: .15rem; opacity: .5; transition: transform .2s; }
.nav-dd-wrap:hover .nav-arrow { transform: rotate(180deg); opacity: .9; }

/* Dropdown wrapper */
.nav-dd-wrap { position: relative; }
.nav-dd-wrap::after {
    content: ''; position: absolute;
    top: 100%; left: -10px; right: -10px;
    height: 20px;
    background: transparent;
    display: block; z-index: 9998;
}

/* Dropdown panel */
.nav-dd {
    display: none; position: absolute; top: 100%; left: 0;
    margin-top: 6px;
    background: linear-gradient(145deg, #1a2744 0%, #0f1f3d 100%);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px; padding: .5rem; min-width: 230px;
    box-shadow: 0 20px 60px rgba(0,0,0,.6),
                0 0 0 1px rgba(255,255,255,.04) inset;
    z-index: 9999;
    animation: ddSlide .15s cubic-bezier(.16,1,.3,1);
}
@keyframes ddSlide {
    from { opacity:0; transform:translateY(-6px) scale(.98) }
    to   { opacity:1; transform:none }
}

/* Dropdown section divider */
.nav-dd-sep {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent);
    margin: .35rem .5rem;
}
.nav-dd-section-title {
    font-size: .58rem; font-weight: 700; color: #475569;
    text-transform: uppercase; letter-spacing: .6px;
    padding: .3rem .65rem .1rem;
}

/* Dropdown items */
.nav-dd-item {
    display: flex; align-items: center; gap: .65rem;
    padding: .48rem .75rem; border-radius: 9px; font-size: .81rem;
    color: rgba(255,255,255,.65); text-decoration: none; font-weight: 500;
    transition: background .12s, color .12s, transform .1s;
    white-space: nowrap; position: relative;
}
.nav-dd-item:hover {
    background: rgba(59,130,246,.15);
    color: #fff;
    transform: translateX(2px);
}
.nav-dd-item .dd-icon {
    width: 26px; height: 26px; border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    font-size: .72rem; flex-shrink: 0;
    background: rgba(255,255,255,.06);
    transition: background .12s;
}
.nav-dd-item:hover .dd-icon { background: rgba(59,130,246,.25); }
/* Breadcrumb bar */
.breadcrumb-bar {
    background: linear-gradient(135deg,#0f172a,#1a2744);
    padding: .45rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.06);
}
.breadcrumb-bar a { color: #64748b; font-size: .78rem; text-decoration: none; }
.breadcrumb-bar a:hover { color: #94a3b8; }
.breadcrumb-bar .sep { color: #334155; margin: 0 .4rem; font-size: .75rem; }
.breadcrumb-bar .cur { color: #e2e8f0; font-size: .78rem; font-weight: 600; }
