/* =========================================================
   Bendra projekto stilistika — buhalterija
   ========================================================= */

/* ── Design system CSS kintamieji ──────────────────────── */
:root {
  --bg-blue:      #1e40af;
  --bg-blue-h:    #16348f;
  --bg-blue-50:   #eef3fb;
  --bg-ink:       #0b1426;
  --bg-ink-2:     #2c3a52;
  --bg-muted:     #5b6b85;
  --bg-line:      #e8ecf2;
  --bg-line-2:    #f1f4f8;
  --bg-surface:   #f7f9fc;
  --bg-paper:     #ffffff;

  /* Bootstrap kintamųjų perrašymas */
  --bs-primary:              #1e40af;
  --bs-primary-rgb:          30, 64, 175;
  --bs-link-color:           #1e40af;
  --bs-link-hover-color:     #16348f;
  --bs-body-bg:              #f7f9fc;
  --bs-body-color:           #0b1426;
  --bs-border-color:         #e8ecf2;
  --bs-border-radius:        8px;
  --bs-border-radius-sm:     6px;
  --bs-border-radius-lg:     12px;
  --bs-border-radius-xl:     14px;
}

/* ── Kortelės ───────────────────────────────────────────── */
.card {
    border: 1px solid var(--bg-line) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    background: var(--bg-paper);
}
.card:hover {
    box-shadow: none !important;
}
.card-header {
    background: #fafbfd !important;
    border-bottom-color: var(--bg-line-2) !important;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--bg-ink);
    padding: 14px 18px;
}
.card-body {
    padding: 18px;
}
.card-footer {
    background: #fafbfd !important;
    border-top-color: var(--bg-line-2) !important;
}

/* ── Mygtukai ───────────────────────────────────────────── */
.btn {
    font-weight: 600;
    font-size: 13px;
    border-radius: 8px;
    transition: all .15s ease;
}
.btn-primary {
    background-color: var(--bg-blue) !important;
    border-color: var(--bg-blue) !important;
    color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: var(--bg-blue-h) !important;
    border-color: var(--bg-blue-h) !important;
    box-shadow: none !important;
}
.btn-outline-primary {
    color: var(--bg-blue) !important;
    border-color: var(--bg-line) !important;
    background: var(--bg-paper) !important;
}
.btn-outline-primary:hover {
    background: var(--bg-blue-50) !important;
    border-color: #c5d5f0 !important;
    color: var(--bg-blue) !important;
}
.btn-outline-secondary {
    color: var(--bg-ink-2) !important;
    border-color: var(--bg-line) !important;
    background: var(--bg-paper) !important;
}
.btn-outline-secondary:hover {
    background: var(--bg-line-2) !important;
    border-color: #d6dde8 !important;
    color: var(--bg-ink) !important;
}
.btn-sm {
    font-size: 12px;
    padding: 5px 11px;
    border-radius: 6px;
}
/* Focus ring visuose mygtukuose */
.btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(30,64,175,.18) !important;
}

/* --- Spalvų akcentai stat kortelėms --- */
.card-accent-primary { border-left: 3px solid #0d6efd; }
.card-accent-success { border-left: 3px solid #198754; }
.card-accent-danger  { border-left: 3px solid #dc3545; }
.card-accent-warning { border-left: 3px solid #fd7e14; }
.card-accent-info    { border-left: 3px solid #0dcaf0; }
.card-accent-dark    { border-left: 3px solid #495057; }
.card-accent-muted   { border-left: 3px solid #adb5bd; }

/* --- Stat kortelės --- */
.stat-card .stat-label  { font-size: .76rem; color: #6c757d; margin-bottom: .2rem; text-transform: uppercase; letter-spacing: .3px; }
.stat-card .stat-value  { font-size: 1.4rem; font-weight: 700; line-height: 1.1; }
.stat-card .stat-sub    { font-size: .75rem; color: #6c757d; margin-top: .15rem; }

/* ── Lentelės ───────────────────────────────────────────── */
.table {
    font-size: 13px;
    color: var(--bg-ink);
    --bs-table-hover-bg: #fafbfd;
    --bs-table-striped-bg: #fafbfd;
    border-color: var(--bg-line-2);
}
.table thead th {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--bg-muted);
    background: #fafbfd !important;
    border-bottom: 1px solid var(--bg-line) !important;
    padding: 10px 14px;
    white-space: nowrap;
}
.table tbody td {
    vertical-align: middle;
    padding: 12px 14px;
    border-color: var(--bg-line-2);
    color: var(--bg-ink-2);
}
.table tbody tr:hover td {
    background: #fafbfd;
}
.table tbody tr:last-child td {
    border-bottom: 0;
}
/* Senasis .inv-table — suderinamumas */
.inv-table { font-size: 13px; }
.inv-table thead th {
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
    background-color: #fafbfd !important;
    color: var(--bg-muted);
    border-bottom: 1px solid var(--bg-line) !important;
    padding: 10px 14px;
}
.inv-table td { vertical-align: middle; padding: 12px 14px; }
.inv-table tbody tr:hover { background-color: #fafbfd; }

/* ── Status ženkliukai ──────────────────────────────────── */

/* Bazinis badge restilingas */
.badge {
    font-size: 11.5px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 100px;
    letter-spacing: .01em;
}

/* Bootstrap soft variantai — jau naudojami puslapiuose */
.bg-success-subtle  { background: #eef5f0 !important; }
.bg-danger-subtle   { background: #f9eded !important; }
.bg-warning-subtle  { background: #f9f3e6 !important; }
.bg-info-subtle     { background: #eef3fb !important; }
.bg-secondary-subtle{ background: #eef1f5 !important; }
.bg-primary-subtle  { background: #eef3fb !important; }

.text-success { color: #2f6b4f !important; }
.text-danger  { color: #a64545 !important; }
.text-warning { color: #8a6a2a !important; }
.text-info    { color: #1e40af !important; }
.text-muted   { color: #5b6b85 !important; }
.text-primary { color: #1e40af !important; }

/* Dot badge — minkštas su taškeliu */
.badge.bg-success-subtle,
.badge.bg-danger-subtle,
.badge.bg-warning-subtle,
.badge.bg-info-subtle,
.badge.bg-secondary-subtle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.badge.bg-success-subtle::before  { content:''; width:5px; height:5px; border-radius:50%; background:#3f9b73; flex-shrink:0; }
.badge.bg-danger-subtle::before   { content:''; width:5px; height:5px; border-radius:50%; background:#c45b5b; flex-shrink:0; }
.badge.bg-warning-subtle::before  { content:''; width:5px; height:5px; border-radius:50%; background:#c79a3a; flex-shrink:0; }
.badge.bg-info-subtle::before     { content:''; width:5px; height:5px; border-radius:50%; background:#2459c9; flex-shrink:0; }
.badge.bg-secondary-subtle::before{ content:''; width:5px; height:5px; border-radius:50%; background:#94a3b8; flex-shrink:0; }
.badge.bg-primary-subtle::before  { content:''; width:5px; height:5px; border-radius:50%; background:#1e40af; flex-shrink:0; }

/* Senasis .badge-soft — suderinamumas */
.badge-soft {
    font-weight: 600;
    font-size: 11.5px;
    padding: 3px 9px;
    border-radius: 100px;
}

/* Bootstrap spalvoti badge'ai (bg-success, bg-danger ir t.t.) */
.badge.bg-success  { background: #eef5f0 !important; color: #2f6b4f !important; }
.badge.bg-danger   { background: #f9eded !important; color: #a64545 !important; }
.badge.bg-warning  { background: #f9f3e6 !important; color: #8a6a2a !important; }
.badge.bg-info     { background: #eef3fb !important; color: #1e40af !important; }
.badge.bg-secondary{ background: #eef1f5 !important; color: #475569 !important; }
.badge.bg-primary  { background: #eef3fb !important; color: #1e40af !important; }
.badge.bg-dark     { background: #1a2f4f !important; color: #fff    !important; }

/* ── Formos elementai ───────────────────────────────────── */
.form-control,
.form-select {
    font-size: 13.5px;
    color: var(--bg-ink);
    background: var(--bg-paper);
    border: 1px solid var(--bg-line);
    border-radius: 8px;
    padding: 9px 13px;
    transition: border-color .15s, box-shadow .15s;
    box-shadow: none;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--bg-blue) !important;
    box-shadow: 0 0 0 3px rgba(30,64,175,.12) !important;
    color: var(--bg-ink);
    background: var(--bg-paper);
    outline: none;
}
.form-control::placeholder {
    color: #94a3b8;
}
.form-control-sm,
.form-select-sm {
    font-size: 12.5px;
    padding: 6px 10px;
    border-radius: 6px;
}
.form-control-lg,
.form-select-lg {
    font-size: 14.5px;
    padding: 11px 15px;
    border-radius: 10px;
}
.form-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--bg-ink-2);
    margin-bottom: 6px;
    letter-spacing: .005em;
}
.form-text {
    font-size: 11.5px;
    color: var(--bg-muted);
    margin-top: 5px;
}
.form-check-input:checked {
    background-color: var(--bg-blue);
    border-color: var(--bg-blue);
}
.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(30,64,175,.12);
    border-color: var(--bg-blue);
}
/* Input group */
.input-group-text {
    background: #fafbfd;
    border-color: var(--bg-line);
    color: var(--bg-muted);
    font-size: 13px;
}
.input-group .form-control:focus {
    z-index: 3;
}
/* Validation states */
.form-control.is-valid,
.was-validated .form-control:valid {
    border-color: #3f9b73 !important;
    box-shadow: none !important;
}
.form-control.is-invalid,
.was-validated .form-control:invalid {
    border-color: #c45b5b !important;
    box-shadow: none !important;
}
.form-control.is-valid:focus {
    box-shadow: 0 0 0 3px rgba(63,155,115,.15) !important;
}
.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(196,91,91,.15) !important;
}
.valid-feedback   { font-size: 11.5px; color: #2f6b4f; }
.invalid-feedback { font-size: 11.5px; color: #a64545; }

/* --- Filtro forma --- */
.filter-bar { background: var(--bg-paper); border: 1px solid var(--bg-line); border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.filter-bar .form-control-sm,
.filter-bar .form-select-sm { font-size: 12.5px; }

/* --- Veiksmų mygtukai lentelėje --- */
.action-btn { padding: .2rem .45rem; font-size: .78rem; }

/* ── Modalai ────────────────────────────────────────────── */
.modal-content {
    border: 1px solid var(--bg-line);
    border-radius: 14px;
    box-shadow: 0 20px 48px rgba(11,20,38,.14), 0 4px 12px rgba(11,20,38,.06);
}
.modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--bg-line-2);
    background: #fafbfd;
    border-radius: 14px 14px 0 0;
}
.modal-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--bg-ink);
    letter-spacing: -.005em;
}
.modal-body {
    padding: 22px;
    font-size: 13.5px;
    color: var(--bg-ink-2);
}
.modal-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--bg-line-2);
    background: #fafbfd;
    border-radius: 0 0 14px 14px;
    gap: 8px;
}
.modal-backdrop.show {
    opacity: .4;
}
.btn-close {
    opacity: .4;
    transition: opacity .15s;
}
.btn-close:hover { opacity: .8; }

/* ── Alerts ─────────────────────────────────────────────── */
.alert {
    font-size: 13.5px;
    border-radius: 10px;
    padding: 13px 16px;
    border-width: 1px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.alert-success {
    background: #eef5f0;
    border-color: #c2dcc9;
    color: #2f6b4f;
}
.alert-danger {
    background: #f9eded;
    border-color: #e8c4c4;
    color: #a64545;
}
.alert-warning {
    background: #f9f3e6;
    border-color: #e8d8a8;
    color: #8a6a2a;
}
.alert-info {
    background: #eef3fb;
    border-color: #c5d5f0;
    color: #1e40af;
}
.alert-secondary {
    background: #eef1f5;
    border-color: #d6dce6;
    color: #475569;
}
.alert-primary {
    background: #eef3fb;
    border-color: #c5d5f0;
    color: #1e40af;
}
.alert .btn-close {
    padding: 0;
    margin-left: auto;
    flex-shrink: 0;
    align-self: center;
}
.alert-dismissible { padding-right: 40px; }
.alert-dismissible .btn-close { position: absolute; top: 13px; right: 14px; }

/* ── Puslapiavimas ──────────────────────────────────────── */
.pagination {
    margin-top: 16px;
    gap: 3px;
}
.page-link {
    font-size: 12.5px;
    font-weight: 500;
    padding: 6px 12px;
    color: var(--bg-ink-2);
    background: var(--bg-paper);
    border: 1px solid var(--bg-line);
    border-radius: 7px !important;
    transition: all .15s;
    line-height: 1.5;
}
.page-link:hover {
    background: var(--bg-blue-50);
    border-color: #c5d5f0;
    color: var(--bg-blue);
}
.page-item.active .page-link {
    background: var(--bg-blue) !important;
    border-color: var(--bg-blue) !important;
    color: #fff !important;
    box-shadow: none;
}
.page-item.disabled .page-link {
    color: #c5cdd8;
    background: #fafbfd;
    border-color: var(--bg-line);
}
.page-item:first-child .page-link,
.page-item:last-child .page-link {
    border-radius: 7px !important;
}

/* --- Tuščia būsena --- */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--bg-muted); }
.empty-state .empty-icon { font-size: 2.5rem; margin-bottom: .75rem; opacity: .4; color: var(--bg-muted); }

/* --- Dashboard kortelės --- */
.kpi-card { border-radius: 12px !important; box-shadow: none !important; transition: border-color .15s; }
.kpi-card:hover { border-color: #d0d8e8 !important; }

/* ── Tabs ───────────────────────────────────────────────── */
.nav-tabs {
    border-bottom: 1px solid var(--bg-line);
    gap: 2px;
}
.nav-tabs .nav-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--bg-muted);
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 10px 14px;
    margin-bottom: -1px;
    transition: color .15s, border-color .15s;
    background: transparent;
}
.nav-tabs .nav-link:hover {
    color: var(--bg-ink);
    border-bottom-color: var(--bg-line);
    background: transparent;
}
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: var(--bg-blue);
    font-weight: 600;
    border-bottom: 2px solid var(--bg-blue);
    background: transparent;
}
.tab-content {
    padding-top: 20px;
}

/* Nav pills */
.nav-pills .nav-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--bg-ink-2);
    border-radius: 8px;
    padding: 8px 14px;
    transition: all .15s;
}
.nav-pills .nav-link:hover {
    background: var(--bg-line-2);
    color: var(--bg-ink);
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background: var(--bg-blue-50);
    color: var(--bg-blue);
    font-weight: 600;
}

/* ── Toasts ─────────────────────────────────────────────── */
.toast {
    border: 1px solid var(--bg-line);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(11,20,38,.11), 0 2px 6px rgba(11,20,38,.05);
    font-size: 13px;
    min-width: 280px;
    background: var(--bg-paper);
    overflow: hidden;
}
.toast-header {
    background: var(--bg-paper);
    border-bottom: 1px solid var(--bg-line-2);
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--bg-ink);
    gap: 8px;
}
.toast-header .text-muted {
    font-size: 11.5px;
    font-weight: 400;
    color: var(--bg-muted) !important;
    margin-left: auto;
}
.toast-body {
    padding: 12px 14px;
    color: var(--bg-ink-2);
    line-height: 1.55;
}
/* Toast spalvų akcentas — kairys rėmelis */
.toast.toast-success { border-left: 3px solid #3f9b73; }
.toast.toast-danger  { border-left: 3px solid #c45b5b; }
.toast.toast-warning { border-left: 3px solid #c79a3a; }
.toast.toast-info    { border-left: 3px solid var(--bg-blue); }

/* ── Progress bars ──────────────────────────────────────── */
.progress {
    height: 6px;
    border-radius: 100px;
    background: var(--bg-line-2);
    overflow: hidden;
    box-shadow: none;
}
.progress-bar {
    background: var(--bg-blue);
    border-radius: 100px;
    transition: width .4s ease;
}
.progress-bar.bg-success  { background: #3f9b73 !important; }
.progress-bar.bg-danger   { background: #c45b5b !important; }
.progress-bar.bg-warning  { background: #c79a3a !important; }
.progress-bar.bg-info     { background: var(--bg-blue) !important; }

/* Thinck variantas */
.progress.progress-sm { height: 4px; }
.progress.progress-lg { height: 10px; }

/* --- Navigacijos ženkliukai --- */
.nav-badge { font-size: .65rem; padding: .2em .5em; }

/* ══ MOBILUSIS DIZAINAS ════════════════════════════════════
   Responsive improvements + bottom navigation bar
   ══════════════════════════════════════════════════════════ */

/* ── Lentelės mobilyje → horizontal scroll ───────────────── */
@media (max-width: 767px) {
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* Sumažinti lentelių fontą mobilyje */
    .table { font-size: 12px; }
    .table thead th { font-size: 10px; padding: 8px 10px; }
    .table tbody td { padding: 8px 10px; }

    /* Kortelės — mažiau padding */
    .card-body { padding: 14px !important; }
    .card-header { padding: 10px 14px !important; }

    /* Konteinerio padding */
    .container-fluid { padding-left: 12px !important; padding-right: 12px !important; }

    /* KPI kortelės — 2 stulpeliai */
    .row.g-3 > .col-sm-6.col-xl-3 { flex: 0 0 50%; max-width: 50%; }

    /* Greiti veiksmai — 4 stulpeliai */
    .row.row-cols-4 > .col { flex: 0 0 25%; max-width: 25%; }

    /* Form grupės — vertikaliai */
    .d-flex.gap-2:not(.no-wrap-mobile) { flex-wrap: wrap; }

    /* Paslėpti desktop footer mobilyje */
    footer.mt-5 { display: none; }

    /* Body padding apačioje dėl bottom nav */
    body { padding-bottom: 80px !important; }

    /* Nukreipti float chat aukštyn */
    #floatChat { bottom: 88px !important; }
    #floatChatPanel { bottom: 64px !important; }

    /* Puslapio header mygtukų grup */
    .d-flex.justify-content-between.align-items-end,
    .d-flex.justify-content-between.align-items-center {
        flex-wrap: wrap;
        gap: 12px;
    }

    /* H1 puslapiuose */
    h1[style*="font-size:22px"] { font-size: 18px !important; }
    .dash-greeting { font-size: 18px; }

    /* Mygtukai mobilyje — kompaktiški */
    .btn.btn-sm { font-size: 12px; }

    /* Modal pilno ekrano mobilyje */
    .modal-dialog { margin: 8px; }
    .modal-content { border-radius: 12px; }

    /* Lentelių stulpeliai — slėpti nesvarbius */
    .d-none-mobile { display: none !important; }
}

/* ── Bottom navigation bar ───────────────────────────────── */
.bg-bottom-nav {
    display: none !important;
}
@media (min-width: 768px) {
    .bg-bottom-nav { display: none !important; }
}

@media (max-width: 767px) {
    .bg-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1050;
        background: #fff;
        border-top: 1px solid #e8ecf2;
        padding: 8px 0 env(safe-area-inset-bottom, 0px);
        box-shadow: 0 -4px 20px rgba(11,20,38,.08);
        justify-content: space-around;
        align-items: center;
    }

    .bg-bottom-nav a,
    .bg-bottom-nav .bn-link {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        font-size: 10px;
        font-weight: 600;
        color: #94a3b8;
        text-decoration: none;
        padding: 6px 4px;
        border-radius: 12px;
        transition: color .15s;
        position: relative;
    }
    .bg-bottom-nav a i,
    .bg-bottom-nav .bn-link i { font-size: 20px; }
    .bg-bottom-nav a.active,
    .bg-bottom-nav .bn-link.active { color: #1e40af; }
    .bg-bottom-nav a .bn-badge {
        position: absolute;
        top: 2px;
        right: 18%;
        background: #c45b5b;
        color: #fff;
        border-radius: 50%;
        font-size: 9px;
        font-weight: 700;
        min-width: 16px;
        height: 16px;
        line-height: 16px;
        text-align: center;
        padding: 0 3px;
    }

    /* FAB mygtukas viduryje */
    .bg-bottom-nav .bn-fab {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: #1e40af;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        box-shadow: 0 6px 18px rgba(30,64,175,.35);
        border: 3px solid #fff;
        margin-top: -18px;
        flex-shrink: 0;
        text-decoration: none;
        transition: background .15s, transform .15s;
    }
    .bg-bottom-nav .bn-fab:hover,
    .bg-bottom-nav .bn-fab:active {
        background: #16348f;
        transform: scale(1.08);
    }
}

/* --- Spalvota teksto pakeitimas vietoj ryškių fono spalvų --- */
.text-overdue  { color: #b02a37; font-weight: 600; }
.text-due-soon { color: #856404; font-weight: 600; }

/* ══ GLOBALŪS VISUOTINIAI OVERRIDE'AI ═════════════════════
   Konvertuoja Bootstrap spalvotus komponentus į
   dizaino sistemos soft-tint stilių — veikia visuose puslapiuose
   be individualių failų keitimų.
   ══════════════════════════════════════════════════════════ */

/* ── Card header spalvoti fonai → soft tint ─────────────── */
.card-header.bg-primary,
.card-header.bg-primary.text-white {
    background: #eef3fb !important;
    color: #1e40af !important;
    border-bottom-color: #c5d5f0 !important;
}
.card-header.bg-success,
.card-header.bg-success.text-white {
    background: #eef5f0 !important;
    color: #2f6b4f !important;
    border-bottom-color: #b8dcc8 !important;
}
.card-header.bg-danger,
.card-header.bg-danger.text-white {
    background: #f9eded !important;
    color: #a64545 !important;
    border-bottom-color: #e8c4c4 !important;
}
.card-header.bg-warning,
.card-header.bg-warning.text-white,
.card-header.bg-warning.text-dark {
    background: #f9f3e6 !important;
    color: #8a6a2a !important;
    border-bottom-color: #e8d8a8 !important;
}
.card-header.bg-info,
.card-header.bg-info.text-white {
    background: #eef3fb !important;
    color: #1e40af !important;
    border-bottom-color: #c5d5f0 !important;
}
.card-header.bg-dark,
.card-header.bg-dark.text-white {
    background: #0f1f3a !important;
    color: #e2e8f0 !important;
    border-bottom-color: #1a2f4f !important;
}
.card-header.bg-secondary,
.card-header.bg-secondary.text-white {
    background: #eef1f5 !important;
    color: #475569 !important;
    border-bottom-color: #d6dce6 !important;
}

/* ── Card border spalvos → subtilesnės ──────────────────── */
.border-primary { border-color: #c5d5f0 !important; }
.border-success  { border-color: #b8dcc8 !important; }
.border-danger   { border-color: #e8c4c4 !important; }
.border-warning  { border-color: #e8d8a8 !important; }
.border-info     { border-color: #c5d5f0 !important; }

/* ── List group item spalvos → soft tint ────────────────── */
.list-group-item-primary {
    background: #eef3fb !important;
    color: #1e40af !important;
    border-color: #d8e8f8 !important;
}
.list-group-item-success {
    background: #eef5f0 !important;
    color: #2f6b4f !important;
    border-color: #cee8d8 !important;
}
.list-group-item-danger {
    background: #fef8f8 !important;
    color: #a64545 !important;
    border-color: #f0d8d8 !important;
}
.list-group-item-warning {
    background: #fdf9f0 !important;
    color: #8a6a2a !important;
    border-color: #ede8d0 !important;
}
.list-group-item-info {
    background: #eef3fb !important;
    color: #1e40af !important;
    border-color: #d8e8f8 !important;
}
.list-group-item-action:hover,
.list-group-item-action:focus {
    background: #fafbfd !important;
    color: var(--bg-ink) !important;
}

/* ── Table spalvoti variantai → soft ────────────────────── */
.table-primary { --bs-table-bg: #eef3fb; --bs-table-color: #1e40af; }
.table-success  { --bs-table-bg: #eef5f0; --bs-table-color: #2f6b4f; }
.table-danger   { --bs-table-bg: #f9eded; --bs-table-color: #a64545; }
.table-warning  { --bs-table-bg: #f9f3e6; --bs-table-color: #8a6a2a; }
.table-info     { --bs-table-bg: #eef3fb; --bs-table-color: #1e40af; }
.table-light    { --bs-table-bg: #fafbfd; }
.table-dark     { --bs-table-bg: #0f1f3a; --bs-table-color: #e2e8f0; }

/* ── Puslapių header tipografija ────────────────────────── */
.container-fluid h4.fw-bold,
.container-fluid h4.fw-semibold,
.container-fluid h5.fw-bold,
.container-fluid h5.fw-semibold {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -.01em;
    color: #0b1426;
}

/* ── Pagrindiniai spalvų override'ai ────────────────────── */
.bg-primary   { background-color: var(--bg-blue) !important; }
.bg-secondary { background-color: #475569 !important; }
.bg-light     { background-color: #fafbfd !important; }

/* ── Spalvoti teksto akcentai → dizaino sistema ─────────── */
.text-primary   { color: var(--bg-blue) !important; }
.text-secondary { color: #475569 !important; }

/* ── Dropdown spalvoti elementai ────────────────────────── */
.dropdown-item.text-danger { color: #a64545 !important; }
.dropdown-item.text-success { color: #2f6b4f !important; }
.dropdown-item.text-primary { color: var(--bg-blue) !important; }

/* ── Specifinis card-accent override ────────────────────── */
.card-accent-primary { border-left-color: var(--bg-blue) !important; }

/* ── Puslapio content wrapper spacing ───────────────────── */
.container-fluid[style*="max-width"] {
    padding-bottom: 40px;
}

/* ── fw-bold → fw-semibold (softer) ────────────────────── */
.card-header.fw-bold { font-weight: 600 !important; }
