/* ==========================================================
   KSRTC Trade Union Portal Theme (logo-matched palette)
   Built on Bootstrap 5 — overrides & custom components
   ========================================================== */

/* -------------------------
   Root color variables
   ------------------------- */
:root {
    /* Primary (KSTDU Blue — used for brand & buttons)*/
    --primary-50: #eaf6ff;
    --primary-100: #cfe9ff;
    --primary-200: #9fd1ff;
    --primary-300: #6fb9ff;
    --primary-400: #3f9ff0;
    --primary-500: #2d86c9; /* main brand blue */
    --primary-600: #2369a8;
    --primary-700: #1a4f7b;
    --primary-800: #123554;
    --primary-900: #071927;
    /* Secondary (Maroon / deep red from flags & elephants) */
    --secondary-500: #7a1f1f;
    /* Accent (Saffron / gold from flag stripes) */
    --accent-400: #ffc75a;
    --accent-500: #ffb300;
    /* Highlight (warm amber for subtle emphasis) */
    --highlight-500: #f39c12;
    /* Grayscale */
    --grey-50: #fbfcfd;
    --grey-100: #f3f5f7;
    --grey-200: #e6eaee;
    --grey-300: #d2d8df;
    --grey-400: #9aa3ad;
    --grey-500: #6b7280;
    --grey-600: #4b5563;
    --grey-700: #374151;
    --grey-800: #1f2937;
    --grey-900: #0f1720;
    /* Semantic */
    --color-text: var(--grey-800);
    --color-muted: var(--grey-500);
    --color-bg: #f6fbff; /* very light bluish surface to echo badge */
    --color-surface: #ffffff;
    --color-border: var(--grey-200);
    --color-success: #22c55e;
    --color-warning: #facc15;
    --color-error: #ef4444;
    /* Components */
    --btn-radius: 999px;
    --card-radius: 18px;
    --input-radius: 12px;
    /* Bootstrap overrides */
    --bs-body-bg: var(--color-bg);
    --bs-body-color: var(--color-text);
    --bs-primary: var(--primary-500);
    --bs-secondary: var(--secondary-500);
    --bs-success: var(--color-success);
    --bs-danger: var(--color-error);
    --bs-warning: var(--color-warning);
    --bs-info: var(--highlight-500);
    --bs-light: var(--grey-50);
    --bs-dark: var(--grey-900);
}

:root {
    --font-family: "Inter", Helvetica, Arial, sans-serif;
    --bs-body-font-size: 0.9rem;
    --bs-body-font-weight: 400;
    --bs-body-line-height: 1.5;
}

:root {
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 72px;
    --sidebar-bg: #eef6fb; /* subtle bluish sidebar */
    --transition-fast: 0.22s;
    --transition-slow: 0.32s;
}

.table {
    --bs-table-color: #495057; /* soft gray text */
    --bs-table-bg: #ffffff; /* keep table background white */
    --bs-table-border-color: #f1f3f5; /* very light border */

    --bs-table-striped-color: #495057;
    --bs-table-striped-bg: #fbfbfd; /* subtle stripe effect with bluish tint */
    --bs-table-hover-color: #212529;
    --bs-table-hover-bg: #f8fafc; /* soft hover */
    --bs-table-active-color: #212529;
    --bs-table-active-bg: #f1f3f5;
    --bs-table-accent-bg: transparent; /* no strong accent */
}

::-webkit-scrollbar {
    width: 6px; /* vertical scrollbar width */
    height: 6px; /* horizontal scrollbar height */
}

::-webkit-scrollbar-track {
    background: transparent; /* or a light color if you prefer */
}

::-webkit-scrollbar-thumb {
    background-color: rgba(45,134,201,0.22); /* blue-tinted scrollbar to match brand */
    border-radius: 4px;
}

    ::-webkit-scrollbar-thumb:hover {
        background-color: rgba(45,134,201,0.36);
    }

/* For Firefox */
* {
    scrollbar-width: thin; /* "auto" or "thin" */
    scrollbar-color: rgba(45,134,201,0.22) transparent; /* thumb and track */
}

/* -------------------------
   Base
   ------------------------- */
body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-family);
    font-optical-sizing: auto;
    font-style: normal;
}
.aim-sec {
    font-family: 'Noto Sans Malayalam', sans-serif;
    background: #f8fafc;
    color: #222;
    padding: 2rem;
    line-height: 1.7;
}
    .aim-sec li {
        margin-bottom:10px;
    }
    .aim-sec .aim-title {
        color: #2d86c9;
    }

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* -------------------------
   Header & Nav
   ------------------------- */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 60;
}

.header-inner {
    height: 72px;
    padding: .5rem 0;
}

.brand img {
    height: 60px;
}

.nav .nav-link {
    color: var(--color-muted);
    font-weight: 600;
    padding: .4rem .6rem;
    border-radius: 12px;
}

    .nav .nav-link:hover {
        color: var(--color-text);
        background: rgba(45,134,201,0.08);
    }

.btn .badge.badge-count {
    top: 8px;
    right: -14px;
}
/* Mobile menu */
.mobile-nav {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

/* Hamburger */
.hamburger {
    border-radius: 8px;
    padding: .25rem;
    border: 0;
    background: transparent;
}

    .hamburger span {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--color-text);
        margin: 3px 0;
        border-radius: 2px;
    }

/* -------------------------
   Hero
   ------------------------- */
.hero {
    padding: 3.5rem 0 0;
    background-color: #fff6e8;
    background: url("../images/hero-bg.jpg") no-repeat center 77%;
    background-size: cover;
    height:550px;
    align-items:center;
    display:flex;
    /* background: linear-gradient(90deg, #f8f6ee 0%, #fff6e8 55%, #eaf5fb 75%, #d6eefb 100% );*/
}

.hero-copy h1 {
    font-weight: 800;
    color: var(--color-surface);
}

.hero-copy .accent {
    color: var(--primary-500);
}

.hero-copy p {
    color: var(--grey-50);
}

.hero-art { display:none; }
.hero-art .hero-art-inner {
    max-width: 600px;
    margin-left: auto;
}

.hero-card {
    overflow: hidden;
}

    .hero-card img {
        display: none;
        width: 100%;
        height: auto;
        object-fit: cover;
    }

/* -------------------------
   Announcements
   ------------------------- */
    .mini-card {
    border-radius: 14px;
    padding: 1rem;
    min-height: 150px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: 0 6px 20px rgba(11,14,12,0.03);
}

    .mini-card.warning {
        border-color: #d99500;
        background: linear-gradient(180deg,#fff7e6,#fff3da);
        box-shadow: 0 6px 20px rgba(217,149,0,0.12);
    }

        .mini-card.warning h5,
        .mini-card.warning .title {
            color: #b96a00;
        }

    .mini-card.info {
        border-color: var(--primary-400);
        background: linear-gradient(180deg,#eaf6ff,#e3f2ff);
        box-shadow: 0 6px 20px rgba(45,134,201,0.08);
    }

        .mini-card.info h5,
        .mini-card.info .title {
            color: #155e85;
        }

    .mini-card.emergency {
        border-color: #b82b2b;
        background: #fdecec;
        box-shadow: 0 6px 22px rgba(184,43,43,0.12);
    }

        .mini-card.emergency h5,
        .mini-card.emergency .title {
            color: #8a1515;
        }
/* -------------------------
   Cards & Services
   ------------------------- */
.card, .card-dashboard {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 1.25rem;
    box-shadow: 0 8px 28px rgba(11,14,12,0.04);
    transform: translateY(0);
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

    .card-dashboard:hover {
        transform: translateY(-10px);
    }
/* -------------------------
   Buttons
   ------------------------- */
.btn {
    font-weight: 600;
    --bs-btn-font-size: 1rem;
}

.btn-group-sm > .btn, .btn-sm {
    --bs-btn-font-size: 0.75rem;
}

, .table .btn {
    padding: .25rem .5rem;
}

.btn-primary {
    background: var(--primary-500) !important;
    border: none;
    color: #fff;
    box-shadow: 0 8px 20px rgba(45,134,201,0.12);
}

.btn-outline {
    border: 1px solid var(--color-border);
    color: var(--color-text);
    background: #fff;
    border-radius: 8px;
}

.btn-ghost {
    background: transparent;
    border: 1px dashed var(--color-border);
    border: 1px dashed var(--color-border);
    border-radius: 12px;
}

/* -------------------------
   Inputs
   ------------------------- */

.form-control, .form-select {
    /* min-height: calc(1.5em + 0.5rem + calc(var(--bs-border-width) * 2));
    padding: .25rem .5rem;
    border: 1px solid var(--color-border);*/
    font-size: .875rem;
    background: #fff;
    border-radius: var(--bs-border-radius-sm);
}

.form-select {
    appearance: auto;
    -webkit-appearance: auto;
}

.form-check-input {
    margin-top: 0;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.12rem rgba(45,134,201,0.12);
    border-color: var(--primary-600);
}
body .form-check { 
    display: flex;
    gap: 5px;
    align-items: center;
}
/* -------------------------
   Lists (ticks)
   ------------------------- */
.ticks, .mini-ticks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .6rem;
}

    .ticks li {
        position: relative;
        padding-left: 1.6rem;
        color: var(--color-text);
    }

        .ticks li::before {
            content: "";
            position: absolute;
            left: 0;
            top: .35rem;
            width: .95rem;
            height: .95rem;
            border-radius: 50%;
            background: conic-gradient(var(--primary-500),var(--primary-500)) padding-box, linear-gradient(#fff,#fff) border-box;
            border: 2px solid var(--primary-500);
        }

/* -------------------------
   Downloads / forms
   ------------------------- */
.badge-soft {
    display: inline-block;
    padding: .25rem .5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: .8rem;
    background: linear-gradient(90deg, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.dl-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transform: translateY(0);
    transition: all 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

    .dl-card:hover {
        transform: translateY(-10px);
    }

.dl-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* -------------------------
   CTA / Demo section
   ------------------------- */
.demo-inner {
    background: linear-gradient(90deg, rgba(45,134,201,0.06), rgba(255,179,0,0.03));
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
}

/* -------------------------
   Footer
   ------------------------- */
.site-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    color: var(--color-text);
}

.foot-links a {
    color: var(--color-muted);
    font-size: .9rem;
}

/* -------------------------
   Utilities
   ------------------------- */
.text-muted {
    color: var(--color-muted) !important;
}

.bg-soft {
    background: var(--grey-100);
    border-radius: 8px;
    padding: .5rem .75rem;
}

/* -------------------------
   Responsive
   ------------------------- */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2,1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 860px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .nav {
        display: none;
    }

    .hamburger {
        display: inline-block;
    }
    .hero {
        background: linear-gradient(90deg, #f8f6ee 0%, #fff6e8 55%, #eaf5fb 75%, #d6eefb 100% );
        height: auto;
    }
    .hero-art {
        display: block;
    }
    .hero-card img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    .hero-copy h1 { 
        color: var(--color-text);
    }  
    .hero-copy p {
        color: var(--color-muted);
    }
    .btn-ghost { 
        color: var(--color-text) !important;
    }
}


/* -------------------------
   Optional small refinements
   ------------------------- */
.bg-light-grey {
    background-color: var(--grey-100) !important;
}

.section-header {
    font-weight: 600;
    font-size: 1rem;
    border-left: 3px solid var(--bs-primary, var(--primary-500));
    padding-left: .5rem;
    color: #333;
}

.kpi {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

    .kpi .kpi-title {
        color: var(--color-text-light);
        font-weight: 600;
        font-size: .9rem;
    }

    .kpi .kpi-value {
        font-size: 1.6rem;
        font-weight: 700;
        color: var(--color-text);
    }

.table-light {
    --bs-table-color: #212529; /* Text color - dark grey for readability */
    --bs-table-bg: #ffffff; /* Pure white background */
    --bs-table-border-color: #e9ecef; /* Light border color */
    --bs-table-striped-bg: #f8f9fa; /* Very light grey for striped rows */
    --bs-table-striped-color: #212529; /* Keep text readable */
    --bs-table-active-bg: #f1f3f5; /* Light active row highlight */
    --bs-table-active-color: #212529;
    --bs-table-hover-bg: #f5f7f9; /* Slight hover background */
    --bs-table-hover-color: #212529;
    color: var(--bs-table-color);
    border-color: var(--bs-table-border-color);
}

.month-card {
    cursor: pointer;
    border: 2px solid #dee2e6; /* light gray border */
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease-in-out;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

    .month-card:hover {
        border-color: var(--primary-500);
        box-shadow: 0 2px 6px rgba(45,134,201,0.12);
    }

    .month-card.selected {
        border-color: var(--primary-500);
        background-color: #e9f6ff;
        font-weight: 600;
        box-shadow: 0 3px 8px rgba(45,134,201,0.18);
    }
    .month-card.disable {
        border-color: var(--bs-body-bg);
        background-color: var(--bs-light);
        opacity:0.5;
    }

.month-label {
    font-size: 0.95rem;
}

.list-transaction {
    padding: .75rem 1rem;
    border-radius: .6rem;
    margin-bottom: .35rem;
    transition: transform .12s ease, box-shadow .12s ease;
}

    .list-transaction:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    }

.transaction-badge {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #fff8f0, #fff9f5);
    border: 1px solid #f1e2c2;
    font-size: 1.15rem;
}

.tx-card {
    border-radius: .8rem;
    border: 1px solid #e9eef5;
    background: linear-gradient(180deg,#ffffff,#fbfdff);
    box-shadow: 0 6px 20px rgba(10,20,40,0.03);
}

    .tx-card .tx-chip {
        padding: .25rem .5rem;
        border-radius: .5rem;
        border: 1px solid rgba(0,0,0,0.06);
        background: rgba(0,0,0,0.02);
        font-size: .75rem;
        font-weight: 600;
    }

.summary-card {
    border-radius: .6rem;
    border: 1px solid #eef2f6;
}

.sticky-col {
    position: sticky;
    top: 1rem;
    z-index: 1020;
}

.emp-card {
    border: 0;
    box-shadow: 0 6px 18px rgba(16,24,40,0.06);
    border-radius: 12px;
}

.emp-avatar {
    width: 72px;
    height: 72px;
    font-size: 1.35rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg,var(--primary-400),var(--primary-500));
}

.emp-header {
    gap: 1rem;
    align-items: center;
}

.emp-actions .btn {
    min-width: 120px;
}

.info-key {
    color: #6c757d;
    font-size: 0.85rem;
}

.info-val {
    font-weight: 600;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.small-muted {
    color: #6c757d;
    font-size: 0.85rem;
}

.inspector-badge {
    font-weight: 600;
    font-size: 0.85rem;
}

.card-section {
    border-radius: 10px;
}


/* Summary / history widget styling */

.summary-widget, .history-widget, .actions-widget {
    border-radius: 0.7rem;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
    border: 1px solid rgba(15,23,42,0.04);
}

/* avatar */
.avatar {
    width: 44px;
    height: 44px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(11, 47, 93, 0.06);
    background: linear-gradient(180deg,var(--primary-300),var(--primary-500));
    color: #fff;
}

/* payment history list */
.history-list .list-group-item {
    border: none;
    padding-left: .5rem;
    padding-right: .5rem;
    border-radius: .45rem;
    transition: transform .12s ease, box-shadow .12s ease;
}

    .history-list .list-group-item + .list-group-item {
        margin-top: .35rem;
    }

    .history-list .list-group-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 24px rgba(12, 38, 63, 0.06);
    }

/* small utility */
.actions-widget .btn {
    border-radius: .55rem;
}

.card-section .card-body {
    position: relative; /* ensure positioned container for the icon */
    overflow: visible; /* allow icon to overflow card */
}

    .card-section .card-body > * {
        /*position: relative;*/
        z-index: 1;
    }
/* the icon element */
.section-icon {
    position: absolute;
    z-index: 0; /* behind the content (content should be z-index:1 implicitly) */
    font-size: 6.5rem; /* big, adjust as needed */
    line-height: 1;
    opacity: 0.06; /* low opacity */
    pointer-events: none; /* doesn't block clicks */
    transform: rotate(-10deg); /* slight tilt for style */
    color: currentColor; /* color is inherited from color utility on the element */
    right: 1rem;
    top: 0.6rem;
    user-select: none;
}

    /* Keep card content above the icon */



    /* position helpers */
    .section-icon.icon-top-right {
        right: 1rem;
        top: 0.6rem;
        transform: rotate(-10deg);
    }

    .section-icon.icon-top-left {
        left: 1rem;
        top: 0.6rem;
        transform: rotate(-8deg);
    }

    .section-icon.icon-bottom-left {
        left: 1rem;
        bottom: 0.6rem;
        top: auto;
        transform: rotate(6deg);
    }

    .section-icon.icon-bottom-right {
        right: 1rem;
        bottom: 0.6rem;
        top: auto;
        transform: rotate(6deg);
    }

/* responsive: scale down icon on smaller screens */
@media (max-width: 992px) {
    .section-icon {
        font-size: 5rem;
        opacity: 0.05;
    }
}

@media (max-width: 768px) {
    .section-icon {
        display: none;
    }
}

.loader-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(250,250,250,0.5));
    backdrop-filter: blur(6px) saturate(110%);
}

.announcement-marquee {
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.marquee-track {
    display: inline-block;
    padding-left: 100%; /* start off screen */
    animation: marquee-text 25s linear infinite;
}

.announcement-item {
    display: inline-block;
    margin-right: 2rem;
    font-size: 0.95rem;
}

/* animation */
@keyframes marquee-text {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* pause on hover */
.announcement-marquee:hover .marquee-track {
    animation-play-state: paused;
}


.custom-modal .modal-content {
    --bs-modal-padding: 1.25rem;
}

.avatar-48 {
    width: 44px;
    height: 44px;
    background: linear-gradient(180deg, rgba(108,117,125,.15), rgba(108,117,125,.05));
    color: #6c757d;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .8125rem;
    padding: .25rem .55rem;
    border-radius: 999px;
    background: #fff7e6;
    border: 1px solid #ffecd0;
}

.chip-soft {
    background: #f6f7f9;
    border-color: #eaedf1;
}

.custom-backdrop {
    backdrop-filter: blur(2px);
}

@media (min-width: 642px) {
    .modal-md, .modal-lg, .modal-xl {
        --bs-modal-width: 600px;
    }
}

.table-sticky-wrapper {
    max-height: 100vh;
    overflow: auto;
}
    .table-sticky-wrapper tr.inactive,
    .table-sticky-wrapper tr.inactive td {
        background: var(--grey-200);
        opacity:0.9;
    }
    .table-sticky-wrapper tr.inactive:hover,
    .table-sticky-wrapper tr.inactive:hover td
    {
        background: var(--grey-300);
    }

    .table-sticky thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: var(--bs-body-bg);
        padding-block: 0.5rem;
    }

.table-sticky thead th {
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.08);
}

.table-sticky {
    table-layout: fixed;
    width: 100%;
}

.stat-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid #f1f3f5;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #eaf6ff, #d3eefd);
    color: #16384f;
}

.bg-gradient-success {
    background: linear-gradient(135deg, #e9f9f1, #c8ecd7);
    color: #1d4d2c;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #fff8e5, #ffe2a1);
    color: #5c4300;
}

.bg-gradient-info {
    background: linear-gradient(135deg, #e6f7fb, #c8e7ef);
    color: #05445e;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 14px rgba(0,0,0,.12);
    border-color: var(--primary-500);
}

.stat-card.bg-gradient-primary:hover {
    border-color: #2d86c9;
}

.stat-card.bg-gradient-success:hover {
    border-color: #69d18a;
}

.stat-card.bg-gradient-warning:hover {
    border-color: #d7b353;
}

.stat-card.bg-gradient-info:hover {
    border-color: #7cc4e1;
}

.stat-body {
    text-align: left;
}

    .stat-body .bi {
        font-size: 3rem;
    }

.bg-gradient-primary .stat-body .bi {
    color: #224abe;
}

.bg-gradient-success .stat-body .bi {
    color: #13855c;
}

.bg-gradient-warning .stat-body .bi {
    color: #dda20a;
}

.bg-gradient-info .stat-body .bi {
    color: #258391;
}

.stat-title {
    font-size: .875rem;
    color: #000000;
    margin-bottom: .35rem;
    letter-spacing: .3px;
    text-transform: uppercase;
    opacity: 0.7;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    transition: color .2s ease;
}

.stat-card.bg-gradient-primary:hover .stat-value {
    color: #2d86c9;
}

.stat-card.bg-gradient-success:hover .stat-value {
    color: #13855c;
}

.stat-card.bg-gradient-warning:hover .stat-value {
    color: #dda20a;
}

.stat-card.bg-gradient-info:hover .stat-value {
    color: #258391;
}

.form-control.input-validation-error, .form-select.input-validation-error {
    border-color: var(--color-error);
}

.table-responsive .table {
    min-width: 950px;
}

@media (max-width: 991.98px) {
    .table-responsive table thead {
        display: none;
    }

    .table-responsive table tbody {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        width: 100%;
    }

    .table-responsive table tr {
        display: block;
    }

    .table-responsive table tr {
        background: var(--bs-body-bg, #fff);
        box-shadow: 0 4px 14px rgba(0,0,0,0.04);
        border-radius: 8px;
        margin: 0.6rem 0;
        padding: 0.6rem;
        box-sizing: border-box;
        min-width: 300px;
    }

        .table-responsive table tr td {
            display: flex;
            flex-direction: column;
            width: 100%;
            padding: 2px 8px;
            border-top: 0;
            border-bottom: 0;
            align-items: start;
        }

            .table-responsive table tr td::before {
                content: attr(data-label);
                display: block;
                font-size: 0.75rem;
                color: rgba(0,0,0,0.65);
                margin-bottom: 4px;
                font-weight: 600;
                text-transform: none;
            }

            .table-responsive table tr td[data-label="Action"] {
                display: block;
                padding: 8px 8px 4px 8px;
            }

                .table-responsive table tr td[data-label="Action"] > * {
                    width: 100%;
                }

            .table-responsive table tr td[data-label="Pending Months"] {
                display: block;
                padding: 6px 8px;
            }

                .table-responsive table tr td[data-label="Pending Months"] span,
                .table-responsive table tr td[data-label="Pending Months"] a {
                    display: inline-block;
                    margin-right: 6px;
                    margin-bottom: 4px;
                }

            .table-responsive table tr td.text-end {
                justify-content: flex-start;
            }

            .table-responsive table tr td.text-center {
                justify-content: center;
            }

            .table-responsive table tr td.text-end > .btn {
                width: auto;
            }

    .table-responsive table,
    .table-responsive table tbody,
    .table-responsive table tr,
    .table-responsive table td {
        font-size: 0.9rem;
    }

    .table-responsive table {
        border-collapse: separate;
    }

    .table-responsive .table {
        min-width: 0;
    }

    .table-responsive {
        padding: 0.5rem;
    }
}

@media (max-width: 459.98px) {
    .table-responsive table tr {
        min-width: 100%;
    }
}

.progress-bar.weak {
    background-color: #b82b2b;
}

.progress-bar.fair {
    background-color: #fd7e14;
}

.progress-bar.good {
    background-color: #ffc107;
}

.progress-bar.strong {
    background-color: #198754;
}

.user-table .icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .25rem .4rem;
    border-radius: .5rem;
}

.user-table .password-dots {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    letter-spacing: .05em;
    user-select: none;
}
.payment-details-card {
    border-radius: 16px;
    overflow: hidden;
}

.payment-details-header {
    background: linear-gradient(135deg, #0d6efd, #4dabf7);
    padding: 1rem 1.25rem;
}

.payment-members-table {
    max-height: calc(100vh - 280px);
    overflow-y: auto;
}
.add-payment-modal {
    border-radius: 16px;
    overflow: hidden;
}

.add-payment-header {
    background: linear-gradient(135deg, #0d6efd, #4dabf7);
    padding: 1rem 1.25rem;
}
.quick-collect-modal {
    border-radius: 16px;
    overflow: hidden;
}

.quick-collect-header {
    background: linear-gradient(135deg, #0d6efd, #4dabf7);
    padding: 1rem 1.25rem;
}

.quick-collect-table {
    max-height: calc(100vh - 300px);
    overflow-y: auto;
}
.backdrop {
    background: rgba(0, 0, 0, 0.45);
}
