/* 
   ROOT TOKENS
 */
:root {
    --primary: #16106a;
    --primary-hover: #221996;
    --primary-light: rgba(22, 16, 106, 0.08);
    --secondary: #bc0610;
    --success: #68bc3a;
    --sky-blue: #0078d4;
    --yellow: #e8ba37;
    --yellow-light: rgba(232, 186, 55, 0.18);
    --white: #ffffff;
    --black: #000000;
    --dark: #1a1a2e;
    --grey: #f6f6f6;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.55);
    --dark-card-bg: #1e1b3a;
    --radius-card: 20px;
    --radius-btn: 30px;
    --radius-sm: 12px;
    --shadow-card: 0 4px 24px rgba(22, 16, 106, 0.07);
    --shadow-hover: 0 8px 32px rgba(22, 16, 106, 0.14);
    --shadow-header: 0 4px 24px rgba(22, 16, 106, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-body: 'DM Sans', sans-serif;
    --font-display: 'DM Sans', sans-serif;
}

/* 
   ANIMATION KEYFRAMES & UTILITIES
 */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }

    50% {
        transform: translateY(-30%);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.45;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-bounce {
    animation: bounce 1s infinite;
    display: inline-block;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    display: inline-block;
}

.fade-up {
    animation: fadeUp 0.5s ease both;
}

.fade-up.delay-1 {
    animation-delay: 0.1s;
}

.fade-up.delay-2 {
    animation-delay: 0.2s;
}

.fade-up.delay-3 {
    animation-delay: 0.3s;
}

.ri-spin {
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-zoom-in {
    animation: zoomIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

.trans-all-3 {
    transition: all 0.3s ease;
}

.hover-elevate:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@keyframes float-slow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes glow-pulse {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(22, 16, 106, 0.1);
        opacity: 0.8;
    }

    50% {
        text-shadow: 0 0 40px rgba(22, 16, 106, 0.25);
        opacity: 1;
    }
}

.animate-float {
    animation: float-slow 4s ease-in-out infinite;
}

.animate-glow {
    animation: glow-pulse 3s ease-in-out infinite;
}

.text-404 {
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 20px rgba(22, 16, 106, 0.1));
}

@keyframes glitch-subtle {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

.animate-glitch {
    animation: glitch-subtle 3s ease-in-out infinite;
}

.text-500 {
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, #f43f5e 0%, #fb923c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 10px 20px rgba(244, 63, 94, 0.15));
}

/* 
   RESET & BASE
 */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    /* background: linear-gradient(135deg, #fef9e7 0%, #fde68a 55%, #fbbf24 100%); */
    background: linear-gradient(135deg, #eeebfdb3 0%, #d6d3e5a1 55%, #e2201b1c 100%);
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--dark);
    display: flex;
    flex-direction: column;
}

body::before {
    content: '';
    position: fixed;
    width: 420px;
    height: 420px;
    /* background: rgba(255, 200, 50, 0.32); */
    background: rgb(252 237 238);
    top: -110px;
    right: -110px;
    border-radius: 50%;
    filter: blur(65px);
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    width: 320px;
    height: 320px;
    /* background: rgba(255, 220, 80, 0.22); */
    background: rgb(252 237 238);
    bottom: -90px;
    left: -80px;
    border-radius: 50%;
    filter: blur(55px);
    z-index: 0;
    pointer-events: none;
}

/* 
   TYPOGRAPHY
 */
.font-display {
    font-family: var(--font-display);
}

.text-primary-coa {
    color: var(--primary);
}

.text-secondary-coa {
    color: var(--secondary);
}

.text-yellow-coa {
    color: var(--yellow);
}

.text-sm-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #aaa;
}

.text-stat-num {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.text-section-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dark);
}

.text-welcome {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
}

/* 
   LAYOUT
 */
.main-content {
    position: relative;
    z-index: 1;
    padding: 20px 16px 30px;
    flex-grow: 1;
}

/* 
   HEADER
 */
.top-header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    margin: 12px 16px 0;
    position: sticky;
    top: 12px;
    z-index: 2;
    box-shadow: var(--shadow-header);
}

/* Header Flash Message */
.header-flash-container {
    position: absolute;
    top: 5%;
    right: 16px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 9999;
    display: flex;
    justify-content: flex-end;
    width: auto;
}

.header-flash-item {
    pointer-events: all;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    padding: 10px 14px 10px 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px -5px rgba(22, 16, 106, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);
    animation: slideInRight 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    min-width: 260px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.header-flash-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(22, 16, 106, 0.18), 0 6px 15px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.9);
}

.header-flash-item.flash-out {
    animation: slideOutRight 0.4s ease forwards;
}

.flash-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.flash-success .flash-icon {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #16a34a;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.15);
}

.flash-warning .flash-icon {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #d97706;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.15);
}

.flash-danger .flash-icon {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #dc2626;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.15);
}

.flash-content {
    flex-grow: 1;
}

.flash-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.flash-close {
    background: rgba(0, 0, 0, 0.04);
    border: none;
    color: #777;
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.flash-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--dark);
    transform: rotate(90deg);
}

/* Progress Bar */
.flash-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.03);
}

.flash-progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left;
    animation: flashProgress 4s linear forwards;
}

.flash-success .flash-progress-bar {
    background: #16a34a;
}

.flash-warning .flash-progress-bar {
    background: #d97706;
}

.flash-danger .flash-progress-bar {
    background: #dc2626;
}

@keyframes flashProgress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    gap: 12px;
    flex-wrap: nowrap;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Logo */
.logo-wrap {
    width: 170px;
    flex-shrink: 0;
}

.logo-wrap img {
    height: auto;
    object-fit: contain;
    image-rendering: high-quality;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Nav pills */
.nav-pill-active {
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-btn);
    padding: 6px 18px;
    font-weight: 600;
    font-size: 0.83rem;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-pill-active:hover {
    background: var(--primary-hover);
    color: #fff;
}

.nav-link-h {
    color: #444;
    font-size: 0.83rem;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 11px;
    border-radius: 10px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link-h:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
}

/* Icon buttons */
.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: #555;
    font-size: 1rem;
    position: relative;
    flex-shrink: 0;
}

.icon-btn:hover {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    color: var(--primary);
}

.notif-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: var(--success);
    color: #fff;
    border-radius: 50%;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #65b7384a;
    font-weight: 700;
}

.dropdown-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: default;
}

.notif-header-title {
    font-size: 0.9rem;
}

/* Profile avatar in header */
.profile-dropdown-circle {
    width: 34px;
    height: 34px;
}

.header-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
    cursor: pointer;
    transition: var(--transition);
}

.header-avatar:hover {
    border-color: var(--yellow);
}

/* 
   MOBILE SIDEBAR
 */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1999;
    display: none;
    backdrop-filter: blur(3px);
}

.sidebar-overlay.show {
    display: block;
}

.sidebar-mobile {
    position: fixed;
    top: 0;
    left: -280px;
    width: 262px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(24px);
    z-index: 2000;
    transition: left 0.34s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
}

.sidebar-mobile.open {
    left: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sidebar-logo img {
    height: 32px;
}

.sidebar-section-label {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #bbb;
    padding: 14px 20px 4px;
}

.side-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    margin: 2px 10px;
    font-size: 0.87rem;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    transition: var(--transition);
}

.side-link i {
    font-size: 1.1rem;
    width: 20px;
    flex-shrink: 0;
}

.side-link.active {
    background: var(--primary);
    color: #fff;
}

.side-link.danger:hover {
    background: #dc3545;
    color: #fff;
}

.side-sub {
    padding-left: 14px;
    display: none;
}

.side-sub .side-link {
    font-size: 0.8rem;
}

/* Custom utility extensions for clean layout */
.breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    font-size: 1.2rem;
    line-height: 1;
    vertical-align: middle;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.action-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
}

/* 
   MODERN SEARCH UI (HEADER & TABLES)
 */
.header-search-group {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.header-search-group:focus-within {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(22, 16, 106, 0.08), 0 8px 24px rgba(0, 0, 0, 0.06) !important;
    transform: translateY(-2px);
}

.header-search-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-search-group:focus-within .header-search-icon {
    color: var(--primary) !important;
    transform: scale(1.15) rotate(-3deg);
}

.search-box input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    background: rgba(255, 255, 255, 0.6) !important;
}

.search-box input:focus {
    background: #ffffff !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(22, 16, 106, 0.08), 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    transform: translateY(-1px);
}

.search-box i {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
}

.search-box:focus-within i {
    color: var(--primary) !important;
    transform: translateY(-50%) scale(1.15) !important;
}

.collapse.show {
    visibility: visible;
}

/* Common Style Css  */

.d-float-center {
    display: flex !important;
    align-items: center;
    column-gap: 5px;
    row-gap: 2px;
    flex-flow: wrap;
}

.text-blue {
    color: #0d6efd !important;
}

.bg-blue-subtle {
    background-color: #0d6efd52 !important;
}

.border-blue-subtle {
    border-color: #0d6efd63 !important;
}

.bg-muted-subtle {
    background-color: #21252926 !important;
}

.bg-success-subtle {
    background-color: var(--bs-success-bg-subtle) !important;
}

.status-badge-applied {
    color: #b45309 !important;
    background-color: #fffbeb !important;
    border: 1px solid #fde68a !important;
}

.status-badge-approved {
    color: #15803d !important;
    background-color: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
}

.status-badge-settled {
    color: #4b5563 !important;
    background-color: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
}

.status-badge-disputed {
    color: #b91c1c !important;
    background-color: #fef2f2 !important;
    border: 1px solid #fecaca !important;
}

.border-muted-subtle {
    border-color: #21252908 !important;
}

.box-shadow-none {
    box-shadow: none !important;
}

.radius-0 {
    border-radius: 0 !important;
}

.radius-10 {
    border-radius: 10px !important;
}

.radius-12 {
    border-radius: 12px !important;
}

.radius-16 {
    border-radius: 16px !important;
}

.radius-20 {
    border-radius: 20px !important;
}

.radius-24 {
    border-radius: 24px !important;
}

.radius-50 {
    border-radius: 50px !important;
}

.py-2 {
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
}

.ls-wider {
    letter-spacing: 0.05em !important;
}

.fs-xtra-tiny {
    font-size: 0.65rem !important;
}

a {
    text-decoration: none;
}

.text-decoration-none {
    text-decoration: none;
}

.btn-round {
    border-radius: 50px !important;
    padding: 7px 14px !important;
}

.btn-round2 {
    border-radius: 50px !important;
    padding: 7px 11px !important;
}

.font-12 {
    font-size: 12px !important;
}

.bg-opacity03 {
    --bs-bg-opacity: 0.3;
}

input,
textarea {
    caret-color: #000000 !important;
    color: #333;
}

/* ── Read-Only Input Styles ─────────────────────────────────────────────────
   Applies to: [readonly], :read-only, .form-control[readonly], .input-readonly
   Visual: muted bg, dashed border, lock cursor, no focus ring/glow
   ──────────────────────────────────────────────────────────────── */
input[readonly],
textarea[readonly],
.form-control[readonly],
.input-readonly {
    background-color: #f5f5f7 !important;
    border: 1.5px dashed #c8cbd4 !important;
    color: #5a6270 !important;
    cursor: not-allowed !important;
    caret-color: transparent !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

/* No focus state at all */
input[readonly]:focus,
textarea[readonly]:focus,
.form-control[readonly]:focus,
.input-readonly:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: #c8cbd4 !important;
    background-color: #f5f5f7 !important;
}

/* Override Bootstrap's active/focus border on readonly */
.form-control[readonly]:focus,
.form-control[readonly]:active {
    border-color: #c8cbd4 !important;
    box-shadow: none !important;
}

/* ── Custom File Input Styles (Matching Readonly Aesthetics) ────────────────
   Uses ::file-selector-button to style the functional part differently.
   ──────────────────────────────────────────────────────────────── */
input[type="file"].f-input-file {
    background-color: #fff !important;
    border: 1px solid #e0e0e0 !important;
    color: #5a6270 !important;
    border-radius: 12px !important;
    padding: 0 !important;
    /* Padding is handled by the internal button */
    cursor: pointer !important;
    box-shadow: none !important;
    height: auto !important;
    font-size: 0.85rem !important;
    line-height: 1 !important;
    transition: var(--transition) !important;
}

input[type="file"].f-input-file::file-selector-button {
    background-color: #e2e8f0 !important;
    color: #475569 !important;
    border: none !important;
    border-right: 1.5px dashed #c8cbd4 !important;
    padding: 0.65rem 1.25rem !important;
    margin-right: 1rem !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    transition: background-color 0.2s ease !important;
    border-radius: 8px 0 0 8px !important;
}

input[type="file"].f-input-file::file-selector-button:hover {
    background-color: #cbd5e1 !important;
    color: #1e293b !important;
}

/* Slight hover/focus effect since it IS interactive, unlike readonly */
input[type="file"].f-input-file:hover {
    border-color: #94a3b8 !important;
}

input[type="file"].f-input-file:focus {
    outline: none !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(22, 16, 106, 0.15) !important;
    background-color: #ffffff !important;
}

.form-check.custom-check .form-check-input[type=radio] {
    background-color: #fff !important;
    border: 1px solid #dee2e6 !important;
}

.form-check.custom-check .form-check-input:checked[type=radio] {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.input-group input.form-control[type=file] {
    border: 1.5px solid rgba(0, 0, 0, 0.1) !important;
    background-color: #fff !important;
    cursor: pointer !important;
}

.w-max-content {
    width: max-content !important;
}

/* 
   SETTINGS PAGE COMPONENTS
 */
.settings-card {
    min-height: calc(100vh - 140px);
}

.sidebar-primary-width {
    width: 260px;
    flex-shrink: 0;
}

.sidebar-secondary-width {
    width: 220px;
    flex-shrink: 0;
}

.search-min-width {
    min-width: 200px;
}

.table-content-scroll {
    max-height: calc(100vh - 220px);
}

.min-h-inherit {
    min-height: inherit;
}

.hover-bg-light:hover {
    background-color: rgba(0, 0, 0, 0.02) !important;
}

.settings-sidebar-primary .list-group-item.active {
    background-color: var(--primary) !important;
    box-shadow: 0 4px 15px rgba(22, 16, 106, 0.15);
}

.settings-sidebar-secondary .list-group-item.active {
    border-left: 3px solid var(--primary) !important;
    color: var(--primary) !important;
    background: white !important;
}

.custom-pagination .page-link {
    color: var(--primary);
    font-weight: 500;
    transition: all 0.2s;
}

.custom-pagination .page-item.active .page-link {
    background-color: var(--primary);
    color: #fff;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-right {
    animation: fadeInRight 0.3s ease forwards;
}

/* 
   BROADBAND & IMPORT COMPONENTS
 */
.upload-zone {
    border: 2px dashed #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-zone:hover {
    border-color: var(--primary);
    background-color: rgba(22, 16, 106, 0.02) !important;
    transform: translateY(-2px);
}

.mapping-item select {
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.radius-10 {
    border-radius: 10px !important;
}

.radius-5 {
    border-radius: 5px !important;
}

.bg-primary-soft {
    background-color: rgba(22, 16, 106, 0.05);
}

@keyframes pulse-primary {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(22, 16, 106, 0.2);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(22, 16, 106, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(22, 16, 106, 0);
    }
}

.pulse-animation {
    animation: pulse-primary 2s infinite;
}

/* 
   UTILITIES & HELPER CLASSES
 */
.cursor-pointer {
    cursor: pointer !important;
}

.transition-all {
    transition: all 0.3s ease;
}

.ls-tight {
    letter-spacing: -0.2px;
}

.ls-wide {
    letter-spacing: 0.5px;
}

/* 
   EXPANDABLE TABLE COMPONENT
 */
.expandable-table .main-row {
    transition: all 0.3s ease;
}

.expandable-table .main-row.expanded {
    background-color: rgba(22, 16, 106, 0.04) !important;
}

.collapse-icon:hover {
    text-decoration: none !important;
}

.expansion-wrapper {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.expansion-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.expansion-value {
    font-size: 0.85rem;
}

.table>:not(caption)>*>* {
    padding: .35rem .25rem;
}

table tbody td:last-child button {
    line-height: normal;
}

table tbody td {
    color: var(--bs-secondary-color) !important;
    font-size: 0.8rem;
}

table a:hover {
    text-decoration: underline;
}

.text-underline {
    text-decoration: underline !important;
}

button:hover {
    opacity: 0.7;
}

.h-max {
    height: max-content;
}

.text-decoration-none {
    border-radius: 1rem !important;
}

/* 
   GLASS CARD
 */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.glass-card:hover {
    box-shadow: var(--shadow-hover);
}

.dark-card {
    background: var(--dark-card-bg);
    border-radius: var(--radius-card);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* 
   PROGRESS BARS
 */
.prog-row {
    margin-bottom: 0;
}

.prog-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: #555;
}

.prog-pct {
    font-size: 0.76rem;
    font-weight: 700;
}

.prog-track {
    height: 8px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.prog-fill {
    height: 100%;
    border-radius: 8px;
    width: 0;
    transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.prog-fill.pf-primary {
    background: var(--primary);
}

.prog-fill.pf-yellow {
    background: var(--yellow);
}

.prog-fill.pf-blue {
    background: var(--sky-blue);
}

.prog-fill.pf-green {
    background: #22c55e;
}

/* 
   STAT CARDS
 */
.stat-card {
    cursor: pointer;
}

.stat-card:hover .stat-num {
    color: var(--primary);
}

.stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.stat-icon-yellow {
    background: var(--yellow-light);
    color: #c9930a;
}

.stat-icon-blue {
    background: rgba(0, 120, 212, 0.1);
    color: var(--sky-blue);
}

.stat-icon-red {
    background: rgba(188, 6, 16, 0.1);
    color: var(--secondary);
}

.stat-icon-green {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.stat-card:hover .stat-icon {
    transform: scale(1.08);
}

.stat-label {
    font-size: 0.72rem;
    color: #888;
    margin-bottom: 1px;
}

.stat-num {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw + 0.5rem, 1.55rem);
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    transition: var(--transition);
}

/* 
   PROFILE GRID CARD (replaces old horizontal card)
 */
.profile-grid-card {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: var(--transition);
}

.profile-grid-card:hover {
    box-shadow: var(--shadow-hover);
}

/* Top banner with gradient */
.profile-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #2d25b5 100%);
    height: 76px;
    position: relative;
}

.profile-banner-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(232, 186, 55, 0.12) 0%, transparent 40%);
}

/* Avatar overlapping banner */
.profile-avatar-wrap {
    display: flex;
    justify-content: center;
    margin-top: -36px;
    position: relative;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
    object-fit: cover;
    transition: var(--transition);
}

.profile-avatar:hover {
    transform: scale(1.06);
}

/* Grid stats row inside profile card */
.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
}

.profile-info-item {
    background: rgba(22, 16, 106, 0.04);
    border-radius: 12px;
    padding: 10px 12px;
    text-align: center;
    transition: var(--transition);
}

.profile-info-item:hover {
    background: var(--primary-light);
}

.profile-info-val {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw + 0.2rem, 1.25rem);
    font-weight: 800;
    color: var(--primary);
}

h6[data-count] {
    font-size: clamp(1.1rem, 2vw + 0.5rem, 1.5rem);
}

.profile-info-lbl {
    font-size: 0.68rem;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1px;
}

/* Salary badge */
.salary-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--yellow-light);
    color: #8a6200;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(232, 186, 55, 0.3);
    transition: var(--transition);
}

.salary-badge:hover {
    background: var(--yellow);
    color: #333;
}

/* Accordion */
.acc-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.acc-item:last-child {
    border-bottom: none;
}

.acc-btn {
    background: none;
    border: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    font-weight: 600;
    font-size: 0.87rem;
    cursor: pointer;
    color: #222;
    transition: var(--transition);
}

.acc-btn:hover {
    color: var(--primary);
}

.acc-btn .acc-arrow {
    transition: transform 0.3s;
    font-size: 1.1rem;
    color: #aaa;
}

.acc-btn.open .acc-arrow {
    transform: rotate(180deg);
}

.acc-content {
    display: none;
    padding-bottom: 10px;
}

.acc-content.open {
    display: block;
    animation: fadeDown 0.22s ease;
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.acc-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.acc-row:last-child {
    margin-bottom: 0;
}

/* 
   BAR CHART (Progress card)
 */
.bar-chart-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 120px;
    padding-top: 30px;
}

.bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 8px;
    /* space between dot and label */
    position: relative;
}

.bar-col-inner {
    height: 60px;
    /* Max height of the bar container */
    display: flex;
    align-items: flex-end;
    width: 6px;
    margin-bottom: 2px;
    /* space between bar and dot */
}

.bar-col-bar {
    width: 100%;
    border-radius: 10px;
    transition: height 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
}

.bar-light {
    background-color: #e2e8f0;
}

.bar-dark {
    background-color: #334155;
}

.bar-yellow {
    background-color: #fcd34d;
}

.bar-col-lbl {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 500;
}

.active-badge-pill {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #fde68a;
    color: #92400e;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
    animation: fadeUp 0.5s ease 0.3s both;
}

/* 
   TIME TRACKER
 */
.bg-cream-card {
    background-color: #fbf7eb;
    border-radius: 1.5rem;
}

.btn-cream-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fbf1d8;
    color: #4a4a4a;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.2s;
}

.btn-cream-circle:hover {
    background-color: #fcebc0;
    color: #000;
}

.btn-dark-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #2b2b2b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: all 0.2s;
}

.btn-dark-circle:hover {
    background-color: #000;
}

.ring-wrap {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto;
}

.ring-svg {
    transform: rotate(-90deg);
}

.ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    color: #111;
    color: var(--dark);
    white-space: nowrap;
}

.timer-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: #555;
    font-size: 0.9rem;
}

.timer-btn:hover {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timer-btn-stop {
    background: var(--dark-card-bg);
    color: #fff;
    border-color: var(--dark-card-bg);
}

.timer-btn-stop:hover {
    background: #2d2a50;
    color: #fff;
}

/* 
   CALENDAR
 */
.cal-header-label {
    font-family: var(--font-display);
    font-size: 0.96rem;
    font-weight: 800;
}

.cal-nav-badge {
    font-size: 0.76rem;
    font-weight: 700;
    background: var(--yellow);
    color: #333;
    padding: 5px 13px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.cal-nav-badge:hover {
    background: #d4a820;
    color: #fff;
}

.cal-grid-header {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.cal-grid-body {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
}

.cal-hdr-cell {
    text-align: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: #bbb;
    padding: 3px 0 5px;
}

.cal-day {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.79rem;
    font-weight: 500;
    cursor: pointer;
    margin: 0 auto;
    transition: var(--transition);
}

.cal-day:hover {
    background: var(--primary-light);
}

.cal-day.today {
    background: var(--primary);
    color: #fff;
}

.cal-day.has-event::after {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--yellow);
    margin: -5px auto 0;
}

.cal-event-chip {
    background: var(--primary-light);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.78rem;
}

.cal-event-title {
    font-weight: 600;
    color: var(--dark);
}

.cal-event-sub {
    font-size: 0.71rem;
    color: #888;
}

.cal-avatars img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #fff;
    margin-left: -5px;
    object-fit: cover;
}

.cal-avatars img:first-child {
    margin-left: 0;
}

/* 
   ONBOARDING / TASK LIST
 */
.onboard-progress-bars {
    display: flex;
    gap: 5px;
}

.ob-bar-wrap {
    flex: 1;
}

.ob-bar-pct {
    font-size: 0.65rem;
    color: #aaa;
    margin-bottom: 3px;
}

.ob-bar {
    height: 5px;
    border-radius: 4px;
}

.ob-bar-lbl {
    font-size: 0.65rem;
    color: #aaa;
    margin-top: 2px;
}

.ob-bar-yellow {
    background: var(--yellow);
}

.ob-bar-white1 {
    background: rgba(255, 255, 255, 0.22);
}

.ob-bar-white2 {
    background: rgba(255, 255, 255, 0.1);
}

.task-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.task-row:last-child {
    border-bottom: none;
}

.task-check {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.7rem;
    transition: var(--transition);
}

.task-check.done {
    background: #22c55e;
    color: #fff;
}

.task-check.pending {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.task-icon-wrap {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}

.task-title {
    font-size: 0.82rem;
    font-weight: 500;
}

.task-date {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
}

/* 
   TABLE SECTION
 */
.tbl-wrap {
    overflow-x: auto;
}

.coa-table {
    font-size: 0.84rem;
    margin: 0;
}

.coa-table thead th {
    font-weight: 700;
    font-size: 0.71rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #777;
    border-bottom: 2px solid rgba(0, 0, 0, 0.06) !important;
    padding: 10px 12px;
    background: transparent;
    white-space: nowrap;
}

.coa-table tbody td {
    padding: 6px 12px;
    vertical-align: middle;
    border-color: rgba(0, 0, 0, 0.04);
}

.coa-table tbody tr {
    transition: var(--transition);
}

.coa-table tbody tr:hover {
    background: rgba(22, 16, 106, 0.025);
}

.reg-id {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.82rem;
}

.member-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.member-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(22, 16, 106, 0.1);
    flex-shrink: 0;
}

/* Status badges */
.badge-active {
    background: #dcfce7;
    color: #15803d;
    font-weight: 700;
    font-size: 0.71rem;
    padding: 4px 10px;
    border-radius: 20px;
}

.badge-pending {
    background: #fef9c3;
    color: #a16207;
    font-weight: 700;
    font-size: 0.71rem;
    padding: 4px 10px;
    border-radius: 20px;
}

.badge-inactive {
    background: #fee2e2;
    color: #b91c1c;
    font-weight: 700;
    font-size: 0.71rem;
    padding: 4px 10px;
    border-radius: 20px;
}

/* Action buttons */
.btn-action-view {
    background: var(--primary-light);
    border: none;
    border-radius: 8px;
    font-size: 0.74rem;
    color: var(--primary);
    padding: 4px 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-action-view:hover {
    background: rgba(22, 16, 106, 0.16);
}

.btn-action-del {
    background: rgba(220, 53, 69, 0.09);
    border: none;
    border-radius: 8px;
    font-size: 0.74rem;
    color: #dc3545;
    padding: 4px 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-action-del:hover {
    background: rgba(220, 53, 69, 0.2);
}

/* Table toolbar */
.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.table-search {
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 30px;
    padding: 6px 14px;
    font-size: 0.8rem;
    outline: none;
    font-family: var(--font-body);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.6);
    width: 165px;
}

.table-search:focus {
    border-color: var(--primary);
    background: #fff;
}

/* Pagination */
.pagination-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.page-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

button.radius-btn {
    border-radius: var(--radius-btn) !important;
}

.btn-coa-primary {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-btn);
    padding: 7px 18px;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
}

.btn-coa-primary:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 16, 106, 0.25);
}

.btn-coa-ghost {
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    border-radius: var(--radius-btn);
    padding: 7px 18px;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
}

.btn-coa-ghost:hover {
    background: rgba(22, 16, 106, 0.14);
}

.dropdown-menu {
    border: none;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.13);
    padding: 8px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
}

/* A â€” Header/nav: full keyframe animation */
.top-header .dropdown-menu.show,
.nav-left-menus .dropdown-menu.show {
    animation: dropdownSlideFade 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-fullscreen .modal-content {
    border-radius: 0 !important;
}

.modal-fullscreen .modal-content.radius-24 {
    border-radius: 24px !important;
}

.modal-fullscreen .hover-elevate:hover {
    background: transparent;
}

.search-result-modal .close-btn {
    position: absolute;
    right: -10px;
    top: -40px;
}

.top-header .dropdown-menu.show {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(24px);
    border-radius: 24px;
}

.top-header .header-inner .header-left .icon-btn {
    width: 25px;
    height: 25px;
}

@keyframes dropdownSlideFade {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Table cell dropdowns: CSS4 individual scale + opacity transition.
   `scale` is a separate CSS property from `transform` in CSS4,
   so it composes with Popper's inline translate3d safely. */
.dropdown-coa-menu {
    border-radius: 12px !important;
    min-width: 160px;
    box-shadow: 0 4px 20px rgba(22, 16, 106, 0.12) !important;
    z-index: 9999;
    transform-origin: top right;
    /* Entry state: hidden and scaled down */
    opacity: 0;
    scale: 0.96;
    transition: opacity 0.18s ease, scale 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-coa-menu.show {
    opacity: 1;
    scale: 1;
}


.dropdown-item {
    border-radius: 8px;
    font-size: 0.83rem;
    padding: 8px 12px;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item i {
    font-size: 1rem;
    width: 18px;
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.dropdown-item.text-danger:hover {
    background: rgba(220, 53, 69, 0.08);
    color: #dc3545;
}

.dropdown-divider {
    margin: 6px 0;
}

.settings-dropdown-list .dropdown-toggle::after {
    position: absolute;
    right: 15px;
    border-top: .3em solid transparent;
    border-right: 0;
    border-bottom: .3em solid transparent;
    border-left: .3em solid;
}

.dropdown.other-menus .icon-btn.dropdown-toggle::after {
    display: none;
}

.notif-dropdown {
    width: 300px;
    padding: 14px;
}

.notif-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}

.notif-dot-red {
    background: var(--secondary);
}

.notif-dot-yellow {
    background: var(--yellow);
}

.notif-dot-blue {
    background: var(--sky-blue);
}

.notif-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark);
}

.notif-sub {
    font-size: 0.75rem;
    color: #888;
}

.notif-time {
    font-size: 0.7rem;
    color: #bbb;
}

.notif-all-link {
    font-size: 0.78rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: 10px;
}

.notif-all-link:hover {
    text-decoration: underline;
}

.settings-dropdown {
    width: 240px;
}

.badge-yellow-pill {
    background: var(--yellow);
    color: #333;
    font-weight: 700;
    font-size: 0.68rem;
    padding: 3px 10px;
    border-radius: 20px;
}

.profile-dropdown-header {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-dropdown-name {
    font-weight: 700;
    font-size: 0.87rem;
    color: var(--dark);
}

.profile-dropdown-role {
    font-size: 0.73rem;
    color: #888;
}

/* 
   MODALS
 */
.modal-content {
    border: none;
    border-radius: var(--radius-card);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
}

.modal-header {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.modal-footer {
    border-top-color: rgba(0, 0, 0, 0.06);
}

.modal-title {
    font-family: var(--font-display);
    font-weight: 800;
}

.view-field {
    background: #f8f9fb;
    border-radius: 12px;
    padding: 11px 14px;
    margin-bottom: 8px;
}

.view-field-label {
    font-size: 0.69rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bs-secondary-color);
    margin-bottom: 2px;
}

.view-field-value {
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--dark);
}

.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    font-family: var(--font-body);
    font-size: 0.84rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22, 16, 106, 0.08);
}

/* 
   FOOTER
 */
.sticky-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    margin: 0 16px 12px;
    position: sticky;
    bottom: 12px;
    z-index: 1040;
    box-shadow: 0 -4px 24px rgba(22, 16, 106, 0.05);
    padding: 10px 20px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-size: 0.82rem;
    font-weight: 600;
    color: #555;
}

.footer-ver {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 8px;
}

/* 
   ANIMATIONS
 */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.94);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(232, 186, 55, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(232, 186, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(232, 186, 55, 0);
    }
}

.fade-up {
    animation: fadeUp 0.5s ease forwards;
    opacity: 0;
}

.scale-in {
    animation: scaleIn 0.4s ease forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.05s;
}

.delay-2 {
    animation-delay: 0.1s;
}

.delay-3 {
    animation-delay: 0.15s;
}

.delay-4 {
    animation-delay: 0.2s;
}

.delay-5 {
    animation-delay: 0.25s;
}

.delay-6 {
    animation-delay: 0.3s;
}

/* 
   SCROLLBAR
 */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(22, 16, 106, 0.2);
    border-radius: 10px;
}

/* 
   PAGINATION
 */
.custom-pagination {
    gap: 4px;
}

.custom-pagination .page-item .page-link {
    border: 1px solid #e2e8f0;
    color: #64748b;
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s;
    background: #fff;
    margin: 0;
}

.custom-pagination .page-item .page-link:hover {
    background: #f8fafc;
    color: var(--primary);
    border-color: #cbd5e1;
}

.custom-pagination .page-item.active .page-link {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 4px rgba(22, 16, 106, 0.2);
}

.custom-pagination .page-item.disabled .page-link {
    background: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
}

.calender-time {
    font-size: 0.68rem;
}

/* 
   MEMBER DETAILS MODAL (FULLSCREEN & GLASS)
 */
.modal-theme-glass .modal-content {
    background: linear-gradient(135deg, #eeebfdb3 0%, #d6d3e5a1 55%, #e2201b1c 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    position: relative;
    overflow: hidden;
}

.modal-theme-glass .modal-content::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    background: rgb(252 237 238);
    top: -110px;
    right: -110px;
    border-radius: 50%;
    filter: blur(65px);
    z-index: -1;
    pointer-events: none;
}

.modal-theme-glass .modal-content::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    background: rgb(252 237 238);
    bottom: -90px;
    left: -80px;
    border-radius: 50%;
    filter: blur(55px);
    z-index: 0;
    pointer-events: none;
}

.modal-theme-glass .modal-header,
.modal-theme-glass .glass-tabs-container,
.modal-theme-glass .modal-footer {
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important;
}

.modal-theme-glass .modal-body {
    position: relative;
    z-index: 1;
}

/* Reusable Modern Card Components for Dashboard Integration */


.modern-glass-card {
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 1rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-glass-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04) !important;
}

.modern-card-header {
    background: transparent !important;
    border-bottom: none !important;
    padding-top: 1.25rem !important;
    padding-bottom: 0.5rem !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
}

.modern-card-title {
    /* color: #1e293b; */
    color: var(--bs-secondary-color) !important;
    font-size: 1.125rem !important;
}

.modal-avatar {
    width: 55px;
    height: 55px;
}

.grid-avatar {
    width: 72px;
    height: 72px;
}

.fs-7 {
    font-size: 0.8rem;
}

.fs-8 {
    font-size: 0.7rem;
}

.modern-btn-action {
    background: #0c134f !important;
    color: #ffffff !important;
    border-radius: 0.5rem !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 0.75rem !important;
    transition: background-color 0.2s;
}

.modern-btn-action:hover {
    background: #16106a !important;
}

.modal-theme-glass .table tr {
    background: transparent !important;
}

.modal-theme-glass .table-hover tbody tr:hover {
    background: rgba(255, 255, 255, 0.5) !important;
}

.modal-theme-glass .nav-link {
    color: #475569 !important;
}

.modal-theme-glass .insurance-modal .nav-link {
    color: #fff !important;
}

.modal-theme-glass .nav-link.active {
    color: var(--primary) !important;
    background: transparent !important;
}

.modal-theme-glass hr {
    border-color: rgba(22, 16, 106, 0.15) !important;
    opacity: 1 !important;
}

.border-dashed {
    border-style: dashed !important;
}

.custom-tabs {
    border-bottom: 0 !important;
}

.custom-tabs .nav-link {
    border: none !important;
    border-bottom: 3px solid transparent !important;
    color: #64748b;
    padding: 1rem 0.5rem !important;
    margin: 0 0.5rem;
    border-radius: 0;
    transition: all 0.3s ease;
    background: transparent !important;
    width: max-content;
}

.custom-tabs .nav-link:hover {
    color: var(--primary);
}

.custom-tabs .nav-link.active {
    color: var(--primary) !important;
    border-bottom: 4px solid var(--primary) !important;
    font-weight: 600 !important;
    border-radius: 3px !important;
}

/* Hide scrollbar for cleanly scrolling tabs horizontally on small screens */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    /* IE & Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* 
   ADD MEMBER PAGE (FORM COMPONENTS)
 */
.sys-warning-banner {
    background-color: #fefce8;
    color: #854d0e;
    border-bottom: 1px solid #fef08a;
    font-size: 0.85rem;
    font-weight: 500;
}

.form-label-req::after {
    content: " *";
    color: #ef4444;
}

.form-float-anim:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 16, 106, 0.1);
    border-color: var(--primary);
}

/* 
   MODAL HEADER ABSTRACTIONS
 */
.badge-sm {
    font-size: 0.65rem;
    padding: 3px 8px;
}

.btn-hover-primary:hover {
    color: var(--primary) !important;
}

.btn-hover-opacity {
    transition: opacity 0.2s;
}

.btn-hover-opacity:hover {
    opacity: 1 !important;
}

/* 
   LOGIN PAGE
 */
.login-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.login-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
}

.login-bg-shape.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--yellow-light);
    top: -100px;
    left: -100px;
}

.login-bg-shape.shape-2 {
    width: 300px;
    height: 300px;
    background: rgba(22, 16, 106, 0.05);
    /* Primary tint */
    bottom: -50px;
    right: -50px;
}

.login-container {
    max-width: 440px;
}

.login-logo {
    width: 65%;
}

.login-container a:hover {
    text-decoration: underline;
}

.input-group-modern .input-group-text {
    border-color: #dee2e6;
    border-top-left-radius: var(--bs-border-radius-lg);
    border-bottom-left-radius: var(--bs-border-radius-lg);
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group-modern .form-control {
    border-color: #dee2e6;
    border-radius: 0 !important;
}

.input-group-modern .form-control:last-child {
    border-top-right-radius: var(--bs-border-radius-lg) !important;
    border-bottom-right-radius: var(--bs-border-radius-lg) !important;
}

.input-group-modern .btn {
    border-top-right-radius: var(--bs-border-radius-lg) !important;
    border-bottom-right-radius: var(--bs-border-radius-lg) !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.input-group-modern .form-control:focus {
    border-color: var(--primary) !important;
}

.input-group-modern:focus-within .input-group-text,
.input-group-modern:focus-within .btn-white {
    border-color: var(--primary) !important;
}

/* View detail rows */
.detail-row {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 12px;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-key {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #aaa;
    min-width: 130px;
    flex-shrink: 0;
    padding-top: 2px;
}

.detail-val {
    font-size: 0.86rem;
    color: var(--dark);
    font-weight: 500;
}

.notification-page {
    .space-y-4> :not([hidden])~ :not([hidden]) {
        --tw-space-y-reverse: 0;
        margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
        margin-bottom: calc(1rem * var(--tw-space-y-reverse));
    }
}

/* Notifications Page Custom Classes */
.notif-page-avatar {
    width: 48px;
    height: 48px;
}

.notif-badge-indicator {
    width: 14px;
    height: 14px;
}

.notif-time-sm {
    font-size: 0.75rem;
}

.notif-status-dot {
    width: 8px;
    height: 8px;
}

.notif-read-state {
    filter: grayscale(0.3);
}

.notif-card-item {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none !important;
    /* Fully removes full-box borders */
    border-left: 5px solid transparent !important;
    /* Thick left border */
    border-radius: 16px !important;
    /* 16px radius applied to container which curves the left border */
}

.notif-card-item.border-primary {
    border-left-color: var(--primary) !important;
}

.notif-card-item.border-warning {
    border-left-color: var(--yellow) !important;
}

.notif-card-item.border-secondary {
    border-left-color: #cbd5e1 !important;
}

/* 
   MODAL UI OVERRIDES (Fixing transparency)
 */
.modal-content {
    background-color: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: var(--radius-card, 16px) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

.modal-backdrop.show {
    opacity: 0.65 !important;
    background-color: #000000 !important;
    backdrop-filter: blur(4px);
}

.modal-header,
.modal-footer {
    border-color: rgba(0, 0, 0, 0.05) !important;
}

.hover-elevate {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-elevate:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08) !important;
    background: #ffffff !important;
    color: var(--black) !important;
}

/* 
   MEETINGS UTILITY CLASSES
 */
.min-w-70 {
    min-width: 70px;
}

.min-w-250 {
    min-width: 250px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up-anim {
    animation: fadeUp 0.3s ease both;
}

/* 
   AGENDA COMPONENTS
   Clean, modern list items with quick actions
 */
.agenda-list-item {
    background: #fff;
    border: 1px solid rgba(22, 16, 106, 0.08);
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0.75rem;
}

.agenda-list-item:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(22, 16, 106, 0.06);
    transform: translateY(-2px);
}

.agenda-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0;
}

.agenda-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.btn-add-minutes {
    color: #3b82f6;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.btn-add-minutes:hover {
    color: var(--primary);
}

.btn-delete-agenda {
    color: #f43f5e;
    background: transparent;
    border: none;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    transition: all 0.2s;
    opacity: 0.7;
}

.btn-delete-agenda:hover {
    opacity: 1;
    transform: scale(1.1);
}

.badge-executive {
    background: #16106a18;
    color: #16106a;
    font-weight: 700;
    font-size: 0.71rem;
    padding: 3px 9px;
    border-radius: 20px;
}

/* 
   DYNAMIC NAVIGATION MENU
 */
.nav-menu-dropdown {
    min-width: 260px;
    max-height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
}

.menu-label-heading {
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.menu-item-text {
    font-size: 0.9rem;
}

.menu-list-item {
    transition: all 0.2s ease;
}

.menu-star-icon {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 10px;
    margin-left: auto;
}

.dropdown-item .menu-star-icon.text-muted {
    opacity: 0.55;
}

.dropdown-item .menu-star-icon.text-muted:hover {
    opacity: 1;
}

.dropdown-item .menu-star-icon {
    margin-right: 10px;
}

/* â•
   BROADBAND â€” OFFICE-STYLE MAPPING DIALOG
â• */
.mapping-type-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
}

.mapping-center-controls {
    flex-shrink: 0;
    width: 80px;
    padding-top: 3.5rem;
}

.mapping-list-box {
    min-height: 240px;
    height: 240px;
}

.mapping-source-item.active {
    background-color: var(--primary, #16106a) !important;
    color: #fff !important;
}

.mapping-source-item.active .mapping-type-chip {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

.mapping-source-item.active span {
    color: #fff !important;
}

/* Draggable row hover in mapped list */
.mapping-pane-right .list-group-item:hover {
    background-color: rgba(22, 16, 106, 0.04);
    cursor: pointer;
}

.dropend .menu-star-icon {
    margin-right: 0;
}

.menu-star-icon:hover {
    transform: scale(1.2);
}

.nav-counter-badge {
    font-size: 0.65rem;
    padding: 0.25em 0.45em;
    transition: transform 0.2s ease;
    left: auto;
    right: -15px;
    top: 5px;
    font-size: 10px;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(5px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-nav-item {
    animation: fadeInScale 0.3s ease-out forwards;
}

/* Nested Dropdown (dropend) Fixes */
.dropdown-menu .dropend {
    position: relative;
}

.dropdown-menu .dropend .dropdown-menu {
    position: absolute !important;
    inset: 0 auto auto 100% !important;
    margin-top: 0 !important;
    margin-left: 0.125rem !important;
    transform: none !important;
    /* Prevent Popper.js from breaking position */
}

.dropdown-menu .dropend .dropdown-toggle {
    display: flex;
    align-items: center;
}

.accordion-flush .accordion-item .accordion-button,
.accordion-flush .accordion-item .accordion-button.collapsed {
    padding: 0.5rem 1.25rem;
}

/* 
   ART GRID CARD (Members Grid View)
 */
.art-grid-card {
    display: block;
    background: var(--glass-bg);
    padding: 6px;
    /* Tighter frame for denser grid */
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    height: 100%;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.art-grid-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.art-grid-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    /* Square shape */
    overflow: hidden;
    border-radius: 10px;
}

.hide-mobile {
    display: none !important;
}

.art-grid-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.art-grid-card:hover .art-grid-img-wrap img {
    transform: scale(1.1);
    /* Zoom in effect */
}

.art-grid-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.1) 60%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.9;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.art-grid-card:hover .art-grid-overlay {
    opacity: 1;
}

.art-grid-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 12px 10px;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.art-grid-title {
    color: #fff;
    font-size: clamp(0.75rem, 1.5vw + 0.4rem, 1rem);
    /* Auto scaling font */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0px;
    margin-bottom: 2px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
}

.art-grid-id {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.6rem, 1vw + 0.45rem, 0.75rem);
    /* Auto scaling font */
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
}

/* Reveal full wrapped text dynamically on card hover */
.art-grid-card:hover .art-grid-title,
.art-grid-card:hover .art-grid-id {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    /* Increase shadow intensity purely for the wrapped readable overflow */
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 1);
}

.art-grid-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
}

.art-grid-badge .badge {
    font-size: clamp(0.55rem, 1vw + 0.3rem, 0.7rem);
    /* Auto scaling badge */
    padding: 0.25em 0.5em;
    /* Tighter padding for badge */
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* 
   AUTOMATIC FLEXIBLE GALLERY GRID
   Maximum columns per row based on optimal widths (Compact Mode)
 */
.auto-gallery-grid {
    display: grid;
    /* Fit absolute maximum tiny cards on smallest mobile */
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 5px;
    /* Decrease grid gap minimum */
}







.auto-gallery-grid>* {
    /* Resets any bootstrap col properties conflicting with pure CSS grid */
    flex: unset !important;
    max-width: none !important;
    width: auto !important;
    min-width: 0;
}

/* 
   A-Z ALPHABET SORTING MODULE
 */
.alphabet-sort-container {
    width: 100%;
    margin-bottom: 24px;
    position: relative;
    border-radius: 16px;
    background: transparent;
}

.alphabet-scroll-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
    /* space for scrollbar */
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: rgba(22, 16, 106, 0.2) transparent;
    -webkit-overflow-scrolling: touch;
    /* Smooth iOS scroll */
}

/* Chrome/Safari tiny scrollbar */
.alphabet-scroll-wrapper::-webkit-scrollbar {
    height: 4px;
}

.alphabet-scroll-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.alphabet-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: rgba(22, 16, 106, 0.15);
    border-radius: 10px;
}

.alpha-btn {
    flex: 0 0 auto;
    /* Prevent from shrinking */
    min-width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-dark, #333);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* "All" button wider padding */
.alpha-btn:first-child {
    padding: 0 20px;
}

.alpha-btn:hover {
    background: linear-gradient(135deg, var(--primary), #4e40c6);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(22, 16, 106, 0.2);
    border-color: transparent;
}

.alpha-btn.active {
    background: linear-gradient(135deg, var(--primary), #4e40c6);
    color: #fff;
    border-color: transparent;
    /* box-shadow: 0 4px 12px rgba(22, 16, 106, 0.25); */
    transform: translateY(-1px);
}

/* Advanced Mobile Optimizations */


.shares-tab {
    text-transform: initial;
}

/* 
   EXTRACTED INLINE STYLES & UTILITIES
 */
.min-w-0 {
    min-width: 0;
}

.directory-search-input {
    padding-left: 42px !important;
    height: 44px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.directory-search-icon {
    left: 16px;
}

.img-grayscale {
    filter: grayscale(100%);
}

/* 
   RESPONSIVE CARD TABLE (MOBILE)
 */


/* 
   UTILITY CLASSES (REPLACING INLINE STYLES)
 */
.fs-tiny {
    font-size: 0.7rem !important;
}

.fs-xtra-tiny {
    font-size: 0.65rem !important;
}

.fs-small {
    font-size: 0.8rem !important;
}

.fs-medium {
    font-size: 1rem !important;
}

.fs-7 {
    font-size: 0.85rem !important;
}

.fs-75 {
    font-size: 0.75rem !important;
}

.ls-tight {
    letter-spacing: 0.5px !important;
}

.radius-10 {
    border-radius: 10px !important;
}

.radius-12 {
    border-radius: 12px !important;
}

.radius-20 {
    border-radius: 20px !important;
}

.members-left-box .fs-xtra-tiny {
    font-size: 0.75rem !important;
}

.glass-modal-content {
    border-radius: 20px !important;
    overflow: hidden !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

.btn-coa-gradient {
    background: linear-gradient(135deg, var(--primary), #3b82f6) !important;
    color: white !important;
    border: none !important;
    transition: var(--transition) !important;
}

.btn-coa-gradient:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.pos-tr-15 {
    position: absolute;
    top: 15px;
    right: 15px;
}

/* Entry Delays */
.delay-05 {
    animation-delay: 0.05s !important;
}

.delay-10 {
    animation-delay: 0.10s !important;
}

.delay-15 {
    animation-delay: 0.15s !important;
}

.trans-all-3 {
    transition: all 0.3s ease !important;
}

.trans-transform-4 {
    transition: transform 0.4s ease !important;
}

.lh-relaxed {
    line-height: 1.6 !important;
}

.h-260 {
    height: 260px !important;
}



.obj-cover {
    object-fit: cover !important;
}

.fade-up-anim {
    animation: fadeUp 0.3s ease !important;
}

/* -----------------------------------------------
   PREMIUM COMPONENTS
----------------------------------------------- */
.modern-banner-wrap {
    width: 100%;
    border-radius: var(--radius-sm, 12px);
    margin-bottom: 1.5rem;
    background: var(--grey, #f8f9fa);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    overflow: hidden;
    height: 260px;
    position: relative;
}



.modern-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* -----------------------------------------------
   SELECT2 CUSTOM STYLING (GLASSMORPHISM)
----------------------------------------------- */
.select2-container--default .select2-selection--multiple,
.select2-container--default .select2-selection--single {
    /* background-color: #f8f9fa !important; */
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px !important;
    padding: 2px 8px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    font-size: 0.85rem !important;
}

.select2-container .select2-selection--multiple .select2-selection__rendered {
    margin: 0;
}

.select2-container .select2-search--inline .select2-search__field {
    margin-top: 0;
    margin-bottom: 5px;
}

.select2-container--default.select2-container--focus .select2-selection--multiple,
.select2-container--default.select2-container--focus .select2-selection--single {
    border: 1px solid var(--primary-light) !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 0.25rem rgba(22, 16, 106, 0.1) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--primary) !important;
    border: none !important;
    color: #fff !important;
    border-radius: 6px !important;
    padding: 2px 10px !important;
    margin-top: 1px !important;
    margin-bottom: 4px !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__clear {
    margin-top: 1px !important;
    margin-bottom: 4px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #fff !important;
    margin-right: 5px !important;
    border: none !important;
    background: transparent !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

.select2-dropdown {
    border: none !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    overflow: hidden !important;
    margin-top: 5px !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary) !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border-radius: 8px !important;
    border: 1px solid #eee !important;
    padding: 6px 12px !important;
    font-size: 0.85rem !important;
}

.operator-select-group .select2-container {
    flex: 1 1 auto;
    width: 1% !important;
    min-width: 0;
}

.operator-select-group .select2-container--default .select2-selection--single {
    border-left: 0 !important;
    border-radius: 0 5px 5px 0 !important;
    min-height: 38px !important;
}

.operator-select-group .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #212529;
    font-weight: 600;
    line-height: 32px;
    padding-left: 0;
}

.operator-select-group .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}


/* -----------------------------------------------
   PROFILE DASHBOARD STYLES
----------------------------------------------- */

/* Sidebar Utilities */
.profile-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), #4e40c6);
    color: #fff;
    font-size: 1rem;
}

.profile-stat-icon.secondary {
    background: linear-gradient(135deg, #12c2e9, #c471ed);
}

/* Social Links */
.social-link-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.social-link-card:hover {
    transform: translateY(-5px);
    background-color: var(--white) !important;
    box-shadow: 0 10px 25px rgba(22, 16, 106, 0.1);
    border-color: var(--primary-light);
}

.social-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-link-card:hover .social-icon-btn {
    background-color: var(--primary);
    color: #fff;
}

/* Activity Timeline */
.activity-timeline {
    position: relative;
    padding-left: 32px;
}

.activity-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: rgba(22, 16, 106, 0.1);
    border-radius: 2px;
}

.live-activity-card .activity-timeline {
    padding-left: 10px;
}

.live-activity-card .activity-timeline::before {
    display: none;
}

.activity-item {
    position: relative;
    padding-bottom: 24px;
}

.activity-marker {
    position: absolute;
    left: -28px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 4px solid var(--success);
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(22, 16, 106, 0.05);
}

.activity-item:last-child {
    padding-bottom: 0;
}

.activity-content {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid rgba(22, 16, 106, 0.05);
}


/* -----------------------------------------------
   MODERN UI COMPONENTS
----------------------------------------------- */

/* Toast Notifications */
.coa-toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.coa-toast {
    min-width: 320px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(22, 16, 106, 0.1);
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.coa-toast.show {
    transform: translateX(0);
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.toast-success .toast-icon {
    background: #dcfce7;
    color: #16a34a;
}

.toast-error .toast-icon {
    background: #fee2e2;
    color: #dc2626;
}

/* Modern Inputs */
.form-floating-modern>.form-control {
    padding: 1.25rem 0.75rem;
    border-radius: 12px;
    background: var(--glass-bg);
    transition: all 0.3s ease;
}

.form-floating-modern>.form-control:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(22, 16, 106, 0.08);
}

/* Glass Modal Extra */
.glass-modal-content {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 24px !important;
}


/* -----------------------------------------------
   FINE-TUNED MODERN UI (ENHANCED)
----------------------------------------------- */
:root {
    --glass-blur: 16px;
    --glass-opacity: 0.7;
    --premium-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'DM Sans', sans-serif !important;
    background: #f8f9fc;
}

.modern-glass-card {
    background: rgba(255, 255, 255, var(--glass-opacity)) !important;
    backdrop-filter: blur(var(--glass-blur)) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 20px !important;
    box-shadow: var(--premium-shadow) !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modern-glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(22, 16, 106, 0.08) !important;
}

.view-field {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(22, 16, 106, 0.05);
    border-radius: 12px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.view-field:hover {
    background: #fff;
    border-color: var(--primary-light);
    transform: scale(1.02);
}

.view-field-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    opacity: 0.7;
    margin-bottom: 4px;
}

.view-field-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}


/* -----------------------------------------------
   THEMATIC DASHBOARD TABS
----------------------------------------------- */
.theme-tab-nav-wrapper {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 5px 15px rgba(22, 16, 106, 0.03);
}

.theme-tab-nav {
    display: flex;
    gap: 4px;
    border: none !important;
}

.theme-tab-nav .nav-link {
    border: none !important;
    border-radius: 12px !important;
    padding: 12px 24px !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: var(--dark) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: transparent !important;
    /* display: flex !important; */
    align-items: center !important;
    gap: 10px !important;
    position: relative;
    overflow: hidden;
}

.theme-tab-nav .nav-link .stat-num {
    font-size: 0.75rem !important;
}

.theme-tab-nav .nav-link:hover {
    background: rgba(22, 16, 106, 0.05) !important;
    color: var(--primary) !important;
}

.theme-tab-nav .nav-link.active {
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(22, 16, 106, 0.2) !important;
}

.theme-tab-nav .nav-link.active .stat-num {
    color: var(--white);
}

/* Content Area Refinement */
.theme-card-premium {
    border-top: 4px solid var(--primary) !important;
    position: relative;
}

.theme-card-accent {
    border-left: 4px solid var(--secondary) !important;
}


/* -----------------------------------------------
   PIXEL-PERFECT PROFILE UPGRADE (EXACT MIRROR)
----------------------------------------------- */

/* Value Box Grid System */
.profile-value-box {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px 16px;
    height: 100%;
    transition: all 0.3s ease;
}

.profile-value-box:hover {
    background: #fff;
    box-shadow: 0 4px 15px rgba(22, 16, 106, 0.05);
    transform: translateY(-2px);
}

.value-box-label {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary, #16106a);
    opacity: 0.55;
    letter-spacing: 0.7px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.value-box-content {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e2a3b;
    line-height: 1.35;
}

/* -----------------------------------------------
   MEETING VIEW ROW — ATTRACTIVE DETAIL GRID
----------------------------------------------- */
.meeting-view-row {
    --mvr-radius: 14px;
    --mvr-gap: 12px;
}

.meeting-view-row .col-xl-3,
.meeting-view-row .col-lg-4,
.meeting-view-row .col-md-6,
.meeting-view-row .col-sm-6 {
    animation: mvrFadeUp 0.4s ease both;
}

.meeting-view-row .col-xl-3:nth-child(1) {
    animation-delay: 0.05s;
}

.meeting-view-row .col-xl-3:nth-child(2) {
    animation-delay: 0.10s;
}

.meeting-view-row .col-xl-3:nth-child(3) {
    animation-delay: 0.15s;
}

.meeting-view-row .col-xl-3:nth-child(4) {
    animation-delay: 0.20s;
}

.meeting-view-row .col-xl-3:nth-child(5) {
    animation-delay: 0.25s;
}

.meeting-view-row .col-xl-3:nth-child(6) {
    animation-delay: 0.30s;
}

.meeting-view-row .col-xl-3:nth-child(7) {
    animation-delay: 0.35s;
}

.meeting-view-row .col-xl-3:nth-child(8) {
    animation-delay: 0.40s;
}

@keyframes mvrFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sidebar v2 */
.v2-banner {
    height: 125px;
    background: linear-gradient(135deg, #3f36c5, #6366f1);
    border-radius: 20px 20px 0 0;
}

/*  Banner Edit Button  */
@keyframes shimmer-slide {
    0% {
        transform: translateX(-120%) skewX(-15deg);
    }

    100% {
        transform: translateX(220%) skewX(-15deg);
    }
}

@keyframes icon-shake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-12deg);
    }

    75% {
        transform: rotate(12deg);
    }
}

.v2-banner-edit-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px 5px 10px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 50px;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.04em;
    overflow: hidden;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
    z-index: 10;
}

.v2-banner-edit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 100%;
    background: rgba(255, 255, 255, 0.28);
    filter: blur(6px);
    transform: translateX(-120%) skewX(-15deg);
    pointer-events: none;
}

.v2-banner-edit-btn:hover {
    background: rgba(255, 255, 255, 0.32);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
    transform: translateY(-2px);
    color: #fff;
}

.v2-banner-edit-btn:hover::before {
    animation: shimmer-slide 0.65s ease forwards;
}

.v2-banner-edit-btn i {
    font-size: 0.88rem;
    transition: transform 0.3s ease;
}

.v2-banner-edit-btn:hover i {
    animation: icon-shake 0.4s ease;
}


.v2-avatar-wrap {
    margin-top: -85px;
    position: relative;
    z-index: 5;
    display: inline-block;
}

/* 
   DISTRICT VIEW CUSTOM CLASSES FROM INLINE STYLES
 */
.dist-icon-wrap {
    width: 56px;
    height: 56px;
}

.dist-section-line {
    height: 1px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.1), transparent);
}

.gov-card-top-bar {
    height: 3px;
    background: linear-gradient(90deg, #ca8a04, #facc15);
}

.gov-menu-btn {
    width: 28px;
    height: 28px;
}

.gov-card-img {
    width: 85px;
    height: 85px;
    object-fit: cover;
}

.gov-card-title {
    color: #b48608;
    letter-spacing: 0.5px;
}

.modal-label-sm {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
}

/* 
   MEMBER THUMBNAIL GRID
 */
.mem-thumb-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 992px) {
    .mem-thumb-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.mem-thumb-card {
    display: flex;
    flex-direction: column;
    aspect-ratio: 1 / 1 !important;
    border-radius: 12px;
    overflow: hidden;
    animation: fadeUp 0.4s ease both;
}

.mem-thumb-img-wrap {
    aspect-ratio: 1 / 1 !important;
    flex-grow: 1;
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #e8e8e8;
}

.mem-thumb-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mem-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 8, 50, 0.82) 0%, rgba(10, 8, 50, 0.1) 55%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 10px 8px;
    transition: background 0.3s ease;
}

.mem-thumb-info {
    width: 100%;
    transform: translateY(4px);
    transition: transform 0.3s ease;
}

.mem-thumb-name {
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.mem-thumb-loc {
    font-size: 0.58rem;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.mem-thumb-card:hover .mem-thumb-img-wrap img {
    transform: scale(1.08);
}

.mem-thumb-card:hover .mem-thumb-overlay {
    background: linear-gradient(to top, rgba(22, 16, 106, 0.88) 0%, rgba(22, 16, 106, 0.18) 60%, transparent 100%);
}

.mem-thumb-card:hover .mem-thumb-info {
    transform: translateY(0);
}

.grid-section {
    animation: fadeUp 0.4s ease both;
}

/* 
   EXECUTIVE THUMBNAIL GRID
 */
.exec-thumb-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, 1fr);
}

/* Global COA Dropdown Styling */
.dropdown-coa-menu .dropdown-item {
    font-size: clamp(0.75rem, 0.8vw + 0.35rem, 0.83rem) !important;
    padding: 8px 12px;
}

.dropdown-coa-menu {
    min-width: 180px;
    max-width: 260px;
    white-space: normal;
    z-index: 9999 !important;
}

.exec-thumb-card {
    aspect-ratio: 1 / 1 !important;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 12px rgba(22, 16, 106, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, z-index 0s;
    animation: fadeUp 0.4s ease both;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.exec-thumb-card:hover,
.exec-thumb-card:focus-within,
.exec-thumb-card:has(.show) {
    z-index: 50;
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(22, 16, 106, 0.14);
}

.exec-thumb-top-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #16a34a, #4ade80);
    z-index: 2;
}

.exec-thumb-menu {
    position: absolute;
    top: 10px;
    right: 8px;
    z-index: 4;
}

.exec-menu-btn {
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #555;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease;
    padding: 0;
}

.exec-menu-btn:hover {
    background: #fff;
    color: var(--primary);
}

.exec-thumb-img-wrap {
    aspect-ratio: 1 / 1 !important;
    flex-grow: 1;
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.exec-thumb-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.exec-thumb-card:hover .exec-thumb-img-wrap img {
    transform: scale(1.07);
}

.exec-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 8, 50, 0.88) 0%, rgba(10, 8, 50, 0.12) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 12px 10px;
    transition: background 0.3s ease;
}

.exec-thumb-card:hover .exec-thumb-overlay {
    background: linear-gradient(to top, rgba(22, 16, 106, 0.92) 0%, rgba(22, 16, 106, 0.22) 55%, transparent 100%);
}

.exec-thumb-info {
    width: 100%;
    transform: translateY(3px);
    transition: transform 0.3s ease;
}

.exec-thumb-card:hover .exec-thumb-info {
    transform: translateY(0);
}

.exec-thumb-name {
    font-size: clamp(0.75rem, 1.5vw + 0.2rem, 1rem);
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.exec-thumb-role {
    font-size: clamp(0.65rem, 1vw + 0.2rem, 0.85rem);
    font-weight: 600;
    color: #86efac;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 3px;
    letter-spacing: 0.02em;
}

/* 
   UTILITY FOR HOVER ROTATION
 */
.hover-rotate-icon i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-rotate-icon:hover i {
    transform: rotate(180deg);
}

.v2-avatar {
    width: 180px;
    height: 180px;
    border: 5px solid #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    object-fit: cover;
}

.v2-avatar-wrap span.rounded-circle.border-white {
    margin-right: 20px !important;
}

.v2-avatar-overlay {
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    /* Deeper, more professional gradient */
    background: linear-gradient(0deg, rgba(22, 16, 106, 0.8) 0%, rgba(22, 16, 106, 0.4) 30%, transparent 60%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 12px;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.v2-avatar-overlay i {
    font-size: 1.35rem;
    margin-bottom: -2px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.v2-avatar-overlay span {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.85;
}

.v2-avatar-overlay:hover {
    background: linear-gradient(0deg, rgba(22, 16, 106, 0.95) 0%, rgba(22, 16, 106, 0.6) 40%, transparent 70%);
}

.v2-avatar-overlay:hover i {
    transform: translateY(-2px);
    color: var(--yellow);
}

/* 
   FAQ ACCORDION STYLES
 */
.faq-delete-btn {
    width: 38px;
    height: 38px;
    transition: all 0.3s ease;
}

.faq-delete-btn:hover {
    background-color: var(--bs-danger);
    color: white !important;
    transform: scale(1.05);
}

.faq-glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.custom-glass-accordion .accordion-button:not(.collapsed) {
    background-color: rgba(var(--bs-primary-rgb), 0.05);
    color: var(--bs-primary);
    box-shadow: none;
}

.custom-glass-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(var(--bs-primary-rgb), 0.2);
}

/* 
   PERMISSIONS TOGGLE SWITCHES
 */
.perm-switch {
    margin-bottom: 0;
    display: flex;
    justify-content: center;
}

.perm-switch .form-check-input {
    width: 3.2rem;
    height: 1.6rem;
    cursor: pointer;
    border: none;
    background-color: #e2e8f0;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3cpath d='M-1.5 -1.5 L1.5 1.5 M1.5 -1.5 L-1.5 1.5' stroke='%23cbd5e1' stroke-width='0.8' stroke-linecap='round'/%3e%3c/svg%3e");
    transition: background-position .25s ease-in-out, background-color .25s ease-in-out;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.perm-switch .form-check-input:focus {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3cpath d='M-1.5 -1.5 L1.5 1.5 M1.5 -1.5 L-1.5 1.5' stroke='%23cbd5e1' stroke-width='0.8' stroke-linecap='round'/%3e%3c/svg%3e");
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 0.25rem rgba(104, 188, 58, 0.25);
}

.perm-switch .form-check-input:checked {
    background-color: var(--success);
    border-color: var(--success);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffffff'/%3e%3cpath d='M-1.2 0.2 L -0.2 1.2 L 1.5 -1' fill='none' stroke='%2368bc3a' stroke-width='0.8' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
}

.perm-group-header td {
    background-color: #f1f5f9 !important;
    font-weight: 600;
    color: #334155;
    padding: 0.75rem 1rem;
}

.perm-group-header.cursor-pointer {
    cursor: pointer;
}

.perm-group-header[aria-expanded="false"] .toggle-arrow {
    transform: translateY(-50%) rotate(180deg) !important;
}

.transition-all {
    transition: all 0.3s ease;
}

/* 
   ROLE PERMISSIONS MANAGER
 */
.role-perm-table th,
.role-perm-table td {
    border-right: 1px solid #e2e8f0;
    vertical-align: top;
    padding: 1.25rem 1rem;
}

.role-perm-table th:last-child,
.role-perm-table td:last-child {
    border-right: none;
}

.perm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 15px;
    row-gap: 12px;
}

.role-item-title {
    font-weight: 600;
    color: #334155;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* 
   ROLES & PERMISSIONS MODULE
 */

/* Filter label above dropdowns */
.perm-filter-label {
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Master checkbox label offset */
.perm-master-lbl {
    margin-top: 5px;
}

/* Permission child checkbox label size */
.perm-child-lbl {
    font-size: 0.82rem;
}

/* Accordion arrow rotation animation */
.collapse-trigger {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.collapse-trigger.collapsed {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

/*  Permissions Table Column Widths (desktop)  */
.perm-th-check {
    width: 50px;
}

.perm-th-action {
    width: 110px;
}

.perm-desc {
    font-size: 0.8rem;
}

/* 
   NEWS TICKER BAR
 */
.news-ticker-bar {
    display: flex;
    align-items: center;
    width: 100%;
    height: 34px;
    background: linear-gradient(15deg, rgba(22, 16, 106, 1) 0%, rgba(188, 6, 16, 1) 70%, rgba(104, 188, 58, 1) 100%);
    overflow: hidden;
    position: relative;
    /* z-index: 1100; */
}

/* LIVE badge on the left */
.news-ticker-label {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0 14px 0 12px;
    height: 100%;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
    white-space: nowrap;
}

.news-ticker-label i {
    font-size: 0.78rem;
    animation: tickerPulse 1.2s ease-in-out infinite;
    color: #ff6b6b;
}

@keyframes tickerPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

/* Scrolling track */
.news-ticker-track-wrap {
    flex: 1;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

.news-ticker-track {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: tickerScroll 38s linear infinite;
    will-change: transform;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.news-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0 24px;
    cursor: default;
}

.news-ticker-item i {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.news-ticker-item strong {
    color: #fff;
    font-weight: 700;
}

.news-ticker-item:hover {
    color: #fff;
}

/* Bullet separator between items */
.news-ticker-sep {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.5rem;
    padding: 0 4px;
    flex-shrink: 0;
}

/* Dismiss Ã— button on the right */
.news-ticker-close {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    height: 100%;
    width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.news-ticker-close:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* 
   DASHBOARD â€” INDEX.PHP COMPONENT STYLES
 */

/*  Stat Card Trend Badges  */
.badge-trend {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.trend-up {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.trend-down {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

.trend-neutral {
    background: rgba(100, 116, 139, 0.12);
    color: #475569;
}

.stat-sub {
    font-size: 0.68rem;
    color: #9ca3af;
    margin-top: 2px;
}

/*  Extended Stat Icon Colors  */
.stat-icon-purple {
    background: rgba(139, 92, 246, 0.12);
    color: #7c3aed;
}

.stat-icon-teal {
    background: rgba(20, 184, 166, 0.12);
    color: #0d9488;
}

.stat-icon-orange {
    background: rgba(249, 115, 22, 0.12);
    color: #ea580c;
}

.stat-icon-indigo {
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
}

/*  KPI progress pct text helpers  */
.kpi-blue {
    color: var(--sky-blue, #38bdf8);
}

.kpi-green {
    color: #22c55e;
}

/*  pf-purple, pf-orange, pf-teal progress fills  */
.pf-purple {
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

.pf-orange {
    background: linear-gradient(90deg, #ea580c, #fb923c);
}

.pf-teal {
    background: linear-gradient(90deg, #0d9488, #34d399);
}

/*  Quick Action Buttons  */
.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 8px;
    border-radius: 14px;
    border: 1.5px solid rgba(22, 16, 106, 0.08);
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.22s ease;
    cursor: pointer;
}

.quick-action-btn i {
    font-size: 1.4rem;
    color: var(--primary);
    opacity: 0.85;
    transition: transform 0.2s ease;
}

.quick-action-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 16, 106, 0.18);
}

.quick-action-btn:hover i {
    color: #fff;
    transform: scale(1.15);
    opacity: 1;
}

/*  Activity Timeline  */
.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 14px;
    position: relative;
}

.activity-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 16px;
    bottom: 0;
    width: 1.5px;
    background: rgba(22, 16, 106, 0.08);
}

.activity-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    border: 2.5px solid #fff;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
}

.dot-green {
    background: #22c55e;
}

.dot-blue {
    background: #3b82f6;
}

.dot-yellow {
    background: #f59e0b;
}

.dot-red {
    background: #ef4444;
}

.dot-purple {
    background: #8b5cf6;
}

.activity-body {
    flex: 1;
}

.activity-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
}

.activity-sub {
    font-size: 0.72rem;
    color: #6b7280;
    margin-top: 2px;
}

.activity-time {
    font-size: 0.65rem;
    color: #9ca3af;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 3px;
}

/*  Calendar Event Chip Variants  */
.cal-event-primary {
    background: var(--primary-light, rgba(22, 16, 106, 0.06));
    border-left: 3px solid var(--primary);
}

.cal-event-yellow {
    background: rgba(253, 224, 71, 0.15);
    border-left: 3px solid #f59e0b;
}

.cal-event-teal {
    background: rgba(20, 184, 166, 0.1);
    border-left: 3px solid #14b8a6;
}

.cal-event-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--dark);
}

.cal-event-sub {
    font-size: 0.68rem;
    color: #6b7280;
    margin-top: 2px;
}

/*  Calendar: 7-column grid (Monâ€“Sun)  */
.cal-grid-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.cal-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

/*  Upcoming Events  */
.upcoming-event-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    border: 1.5px solid rgba(22, 16, 106, 0.07);
    transition: all 0.2s ease;
}

.upcoming-event-card:hover {
    border-color: rgba(22, 16, 106, 0.18);
    box-shadow: 0 4px 14px rgba(22, 16, 106, 0.08);
    transform: translateY(-1px);
}

.upcoming-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    padding: 6px 4px;
    flex-shrink: 0;
}

.event-day {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
}

.event-month {
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    opacity: 0.85;
}

.upcoming-event-body {
    flex: 1;
    min-width: 0;
}

.upcoming-event-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

.upcoming-event-sub {
    font-size: 0.68rem;
    color: #6b7280;
    margin-top: 3px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.event-badge-pill {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    align-self: flex-start;
}

.badge-primary-pill {
    background: rgba(22, 16, 106, 0.1);
    color: var(--primary);
}

.badge-success-pill {
    background: rgba(34, 197, 94, 0.12);
    color: #16a34a;
}

.badge-warning-pill {
    background: rgba(245, 158, 11, 0.12);
    color: #d97706;
}

.badge-info-pill {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

.badge-danger-pill {
    background: rgba(239, 68, 68, 0.12);
    color: #dc2626;
}

/* 
   DASHBOARD HERO BANNER
 */
.db-hero-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(120deg, var(--primary) 0%, #2d1d8f 55%, #3b1fd4 100%);
    border-radius: var(--radius-card);
    padding: 15px 15px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.db-hero-banner::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    top: -60px;
    right: -60px;
    pointer-events: none;
}

.db-hero-banner::after {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    bottom: -40px;
    left: 160px;
    pointer-events: none;
}

.db-hero-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.db-hero-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.db-hero-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    object-fit: cover;
}

.db-hero-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid #fff;
}

.db-hero-greeting {
    font-size: clamp(1.15rem, 2vw + 0.8rem, 1.6rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.db-hero-sub {
    font-size: clamp(0.75rem, 1.5vw + 0.5rem, 0.95rem);
    color: rgba(255, 255, 255, 0.7);
    margin-top: 3px;
    font-weight: 500;
}

.db-hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.65);
}

.db-hero-dot {
    color: rgba(255, 255, 255, 0.3);
}

.db-hero-meta i {
    font-size: 0.75rem;
}

.text-success-soft {
    color: #86efac;
}

.db-hero-right {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.db-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.22s ease;
    white-space: nowrap;
}

.db-hero-btn-outline {
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    background: transparent;
}

.db-hero-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.db-hero-btn-solid {
    background: #fff;
    color: var(--primary);
    border: 1.5px solid #fff;
}

.db-hero-btn-solid:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 
   GRADIENT HERO STAT CARDS
 */
.db-stat-hero {
    border-radius: 16px;
    padding: 16px;
    position: relative;
    overflow: hidden;
    height: 100%;
    /* min-height: 130px; */
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.db-stat-hero::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -30px;
    right: -30px;
}

.db-stat-blue {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
}

.db-stat-green {
    background: linear-gradient(135deg, #14532d 0%, #16a34a 100%);
}

.db-stat-amber {
    background: linear-gradient(135deg, #78350f 0%, #d97706 100%);
}

.db-stat-red {
    background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 100%);
}

.db-stat-hero-icon {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

.db-stat-hero-num {
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.5px;
}

.db-stat-hero-lbl {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    margin-top: 4px;
}

.db-stat-hero-footer {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 3px;
}

/* 
   CARD HEADER COMPONENTS
 */
.db-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(22, 16, 106, 0.07);
    gap: 8px;
    flex-wrap: wrap;
}

.db-card-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.db-card-title {
    font-size: clamp(0.9rem, 1.5vw + 0.5rem, 1.15rem);
    font-weight: 700;
    color: var(--dark);
}

.db-card-sub {
    font-size: clamp(0.7rem, 1vw + 0.4rem, 0.8rem);
    color: #9ca3af;
    margin-top: 1px;
}

.db-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-top: 1px solid rgba(22, 16, 106, 0.06);
    flex-wrap: wrap;
    gap: 4px;
}

.db-card-header-sm {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.db-card-title-sm {
    font-size: clamp(0.85rem, 1.2vw + 0.4rem, 0.95rem);
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 
   SEARCH INPUT
 */
.db-search-input {
    font-size: 0.76rem;
    padding: 6px 12px;
    border: 1.5px solid rgba(22, 16, 106, 0.12);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.7);
    outline: none;
    color: var(--dark);
    transition: border-color 0.2s;
    width: 140px;
}

.db-search-input:focus {
    border-color: var(--primary);
    width: 180px;
}

/* 
   WEEKLY BAR CHART
 */
.db-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 120px;
    padding: 0 0 0 0;
}

.db-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 4px;
}

.db-bar-inner {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
}

.db-bar-fill {
    width: 100%;
    border-radius: 6px 6px 0 0;
    height: 0;
    transition: height 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.db-bar-xlow {
    background: rgba(22, 16, 106, 0.12);
}

.db-bar-low {
    background: rgba(22, 16, 106, 0.22);
}

.db-bar-med {
    background: rgba(22, 16, 106, 0.45);
}

.db-bar-high {
    background: var(--primary);
}

.db-bar-accent {
    background: linear-gradient(180deg, #f59e0b, #d97706);
}

.db-bar-lbl {
    font-size: 0.6rem;
    color: #9ca3af;
    font-weight: 600;
    text-align: center;
}

.db-bar-val {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
}

.db-bar-active .db-bar-lbl {
    color: var(--primary);
    font-weight: 800;
}

/* 
   MINI STAT CHIPS
 */
.db-mini-chip {
    background: var(--primary-light);
    border-radius: 10px;
    padding: 8px 10px;
    text-align: center;
}

.db-mini-val {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.db-mini-lbl {
    display: block;
    font-size: 0.6rem;
    color: #6b7280;
    margin-top: 3px;
}

/* 
   NOTICE / ANNOUNCEMENT CARDS
 */
.db-notice-card {
    border-radius: 12px;
    padding: 10px 12px;
    border-left: 3px solid transparent;
    position: relative;
}

.db-notice-urgent {
    background: rgba(239, 68, 68, 0.06);
    border-color: #ef4444;
}

.db-notice-info {
    background: rgba(59, 130, 246, 0.06);
    border-color: #3b82f6;
}

.db-notice-success {
    background: rgba(34, 197, 94, 0.06);
    border-color: #22c55e;
}

.db-notice-default {
    background: rgba(22, 16, 106, 0.04);
    border-color: var(--primary);
}

.db-notice-badge {
    display: inline-block;
    font-size: 0.58rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 7px;
    border-radius: 20px;
    margin-bottom: 4px;
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.db-notice-badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
}

.db-notice-badge-success {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.db-notice-badge-default {
    background: rgba(22, 16, 106, 0.1);
    color: var(--primary);
}

.db-notice-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 3px;
}

.db-notice-body {
    font-size: 0.68rem;
    color: #6b7280;
    line-height: 1.45;
}

.db-notice-meta {
    font-size: 0.62rem;
    color: #9ca3af;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 
   TOP MEMBER ROWS
 */
.db-member-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(22, 16, 106, 0.05);
    transition: background 0.18s;
}

.db-member-row:last-child {
    border-bottom: none;
}

.db-mem-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(22, 16, 106, 0.1);
    flex-shrink: 0;
}

.db-mem-info {
    flex: 1;
    min-width: 0;
}

.db-mem-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-mem-meta {
    font-size: 0.65rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 
   GRIEVANCE TRACKER
 */
.db-griev-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.db-griev-box {
    border-radius: 10px;
    padding: 10px 4px;
    text-align: center;
}

.db-griev-open {
    background: rgba(239, 68, 68, 0.08);
}

.db-griev-progress {
    background: rgba(245, 158, 11, 0.08);
}

.db-griev-resolved {
    background: rgba(34, 197, 94, 0.08);
}

.db-griev-closed {
    background: rgba(99, 102, 241, 0.08);
}

.db-griev-num {
    font-size: 1.2rem;
    font-weight: 900;
}

.db-griev-open .db-griev-num {
    color: #dc2626;
}

.db-griev-progress .db-griev-num {
    color: #d97706;
}

.db-griev-resolved .db-griev-num {
    color: #16a34a;
}

.db-griev-closed .db-griev-num {
    color: #4f46e5;
}

.db-griev-lbl {
    font-size: 0.58rem;
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

.db-griev-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(22, 16, 106, 0.05);
}

.db-griev-item:last-child {
    border-bottom: none;
}

.db-griev-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.griev-dot-red {
    background: #ef4444;
}

.griev-dot-yellow {
    background: #f59e0b;
}

.griev-dot-green {
    background: #22c55e;
}

.db-griev-title {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--dark);
}

.db-griev-meta {
    font-size: 0.62rem;
    color: #9ca3af;
}

.dot-teal {
    background: #14b8a6;
}

/* 
   FINANCE / FEE CARDS
 */
.db-fin-card {
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.db-fin-collected {
    background: rgba(34, 197, 94, 0.08);
}

.db-fin-pending {
    background: rgba(239, 68, 68, 0.08);
}

.db-fin-icon {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.db-fin-collected .db-fin-icon {
    color: #16a34a;
}

.db-fin-pending .db-fin-icon {
    color: #dc2626;
}

.db-fin-num {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark);
}

.db-fin-lbl {
    font-size: 0.62rem;
    color: #9ca3af;
    margin-top: 2px;
}

.db-txn-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(22, 16, 106, 0.05);
}

.db-txn-row:last-child {
    border-bottom: none;
}

.db-txn-name {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--dark);
}

.db-txn-meta {
    font-size: 0.62rem;
    color: #9ca3af;
}

.db-txn-amt {
    font-size: 0.78rem;
    font-weight: 700;
}

/* text purple/orange helpers */
.text-purple-coa {
    color: #7c3aed;
}

.text-orange-coa {
    color: #ea580c;
}



/* Dashboard Native CSS Grid */
.db-grid-view {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}

.db-grid-item {
    width: 100%;
    /* Auto height by default based on content */
}

/* Calendar wrapper class to replace inline style */
.cal-day-wrap {
    padding: 2px;
    text-align: center;
    /* Standardized Dashboard Cards */
}

.db-card-standard {
    height: 420px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.db-card-header {
    flex-shrink: 0;
}

.db-card-body-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(22, 16, 106, 0.2) transparent;
}

/* Custom Scrollbar for Card Body */
.db-card-body-scroll::-webkit-scrollbar {
    width: 6px;
}

.db-card-body-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.db-card-body-scroll::-webkit-scrollbar-thumb {
    background: rgba(22, 16, 106, 0.1);
    border-radius: 10px;
}

.db-card-body-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(22, 16, 106, 0.2);
}

/* Utility Font Sizes (Removing Inline Styles) */
.fs-xtra-tiny-8 {
    font-size: 0.65rem !important;
}

.fs-tiny-9 {
    font-size: 0.72rem !important;
}

.fs-sm-75 {
    font-size: 0.75rem !important;
}

.fs-sm-8 {
    font-size: 0.8rem !important;
}

.fs-sm-82 {
    font-size: 0.82rem !important;
}

.fs-sm-85 {
    font-size: 0.85rem !important;
}

.fs-sm-9 {
    font-size: 0.9rem !important;
}

.fs-lg-18 {
    font-size: 1.8rem !important;
}

/* Ring Timer Styles (Removing Inline Styles) */
.ring-timer-header {
    font-size: 0.9rem;
}

.ring-timer-icon-small {
    font-size: 0.8rem;
}

.ring-timer-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
}

.ring-timer-svg {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.05));
    display: block;
    margin: 0 auto;
}

.ring-timer-track {
    stroke: #eee;
    stroke-width: 4;
    stroke-dasharray: 4 6;
    opacity: 0.5;
}

.ring-timer-progress {
    stroke: #fed85c;
    stroke-width: 10;
    stroke-dasharray: 345.5;
    stroke-dashoffset: 140;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
}

/* Progress Stat Text */
.prog-stat-value {
    font-size: 1.8rem;
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
}

/* Bar Chart Utility Fills */
.bar-h-35 {
    height: 35%;
}

.bar-h-65 {
    height: 65%;
}

.bar-h-50 {
    height: 50%;
}

.bar-h-40 {
    height: 40%;
}

.bar-h-80 {
    height: 80%;
}

/* Calendar Buttons Standard */
.btn-cal-nav {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none !important;
    background: rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.btn-cal-nav:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* 
   ACTIVITY LOG ROWS (compact log-line style)
 */
.activity-log-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 16px 10px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.2s ease;
    cursor: default;
}

.activity-log-row:last-child {
    border-bottom: none;
}

.activity-log-row:hover {
    background: rgba(22, 16, 106, 0.03);
}

.activity-log-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.activity-log-time {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 128px;
    gap: 1px;
}

.activity-log-date {
    font-size: 0.72rem;
    font-weight: 700;
    color: #444;
    letter-spacing: 0.02em;
}

.activity-log-ts {
    font-size: 0.68rem;
    font-family: 'Courier New', monospace;
    color: #999;
    font-weight: 600;
}

.activity-log-body {
    flex: 1;
    font-size: 0.78rem;
    color: #555;
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
}

.activity-log-user {
    font-weight: 700;
    color: #222;
    white-space: nowrap;
}

.activity-log-sep {
    color: #bbb;
    font-weight: 400;
}

.activity-log-msg {
    color: #666;
}

/* 
   ACTIVITY LOG â€” TERMINAL / SYSTEM-LOG STYLE
 */
.activity-log-terminal {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.775rem;
    line-height: 1.6;
    background: #fff;
}

.alt-log-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 2px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.045);
    transition: background 0.15s ease;
}

.alt-log-row:last-child {
    border-bottom: none;
}

.alt-log-row:hover {
    background: rgba(22, 16, 106, 0.04) !important;
}

.alt-log-row--shade {
    background: #f9f9fc;
}

.alt-log-ts {
    flex-shrink: 0;
    color: #888;
    font-size: 0.72rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
    font-weight: 600;
}

.alt-log-text {
    color: #444;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    flex: 1;
    line-height: 1.55;
}

.alt-log-user {
    font-weight: 700;
    color: #1a1a2e;
}

.alt-log-role {
    font-weight: 400;
    color: #888;
    margin-left: 3px;
}

.list-group-item.active {
    color: var(--white) !important;
}

.v2-avatar-status {
    width: 25px;
    height: 25px;
    margin-bottom: 10px;
    margin-right: 10px;
}

/* 
   CMS & MEETING MANAGEMENT SYSTEM
 */
.ls-tight {
    letter-spacing: -0.02em;
}

.hover-elevate {
    transition: all 0.3s ease;
}

.hover-elevate:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.stat-card {
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(10px);
}

.article-thumb img {
    transition: transform 0.5s ease;
}

tr:hover .article-thumb img {
    transform: scale(1.1);
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
}

.pulse-indicator::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    animation: pulse-ring 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.article-dropzone:hover {
    border-color: var(--primary) !important;
    background: var(--primary-light) !important;
}

/* Modal Enhancements */
.radius-24 {
    border-radius: 24px !important;
}

.radius-12 {
    border-radius: 12px !important;
}

.modal-confirm-delete .modal-content {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.icon-box-danger {
    width: 70px;
    height: 70px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 24px;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.btn-gradient-danger {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
    transition: all 0.3s ease !important;
}

.btn-gradient-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(239, 68, 68, 0.3) !important;
    filter: brightness(1.1);
}

.modal-header-danger {
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
}

.modal-header-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #2e27b5 100%);
}

.modal-header-dark {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Sizing Utilities for CMS */
.thumb-article {
    width: 50px;
    height: 40px;
}

.text-limit-sm {
    max-width: 280px;
}

.dot-status {
    width: 8px;
    height: 8px;
}

.modal-avatar {
    width: 50px;
    height: 50px;
}

.icon-box-success {
    width: 70px;
    height: 70px;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 24px;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.icon-box-warning {
    width: 70px;
    height: 70px;
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 24px;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.btn-gradient-success {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%) !important;
    transition: all 0.3s ease !important;
}

.btn-gradient-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    transition: all 0.3s ease !important;
}

/* 
   PROFESSIONAL UI UTILITIES
 */
.avatar-lg-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-sm-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.radius-20 {
    border-radius: 20px !important;
}

.radius-16 {
    border-radius: 16px !important;
}

.radius-8 {
    border-radius: 8px !important;
}

.file-drop-area {
    border: 2px dashed rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.file-drop-area:hover {
    border-color: var(--primary);
    background: rgba(22, 16, 106, 0.05) !important;
}

.no-caret::after {
    display: none !important;
}

.radius-10 {
    border-radius: 10px !important;
}

.fs-xtra-tiny {
    font-size: 0.65rem !important;
}

.ls-tight {
    letter-spacing: -0.02em;
}

/* Timeline V2 */
.timeline-v2 {
    margin-top: 5px;
}

.timeline-item-v2 {
    border-color: rgba(0, 0, 0, 0.05) !important;
}

.timeline-item-v2:last-child {
    border-left: none !important;
}

.timeline-dot {
    z-index: 1;
}

.list-group-flush>.list-group-item {
    border-color: #eee !important;
}

.animate-number,
.counter {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* 
   DISTRICT VIEW RESPONSIVE GRIDS
 */
/* MEMBER THUMBNAIL GRID */
.mem-thumb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.mem-thumb-card {
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mem-thumb-img-wrap {
    flex-grow: 1;
    height: 100%;
    width: 100%;
    position: relative;
}

.mem-thumb-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}











/* EXECUTIVE THUMBNAIL GRID */
.exec-thumb-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.exec-thumb-card {
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gov-grid-section .exec-thumb-card {
    aspect-ratio: 1 / 1;
}

.gov-grid-section .exec-thumb-card {
    .exec-thumb-top-bar {
        background: linear-gradient(90deg, #ffc107, #d4c69b);
    }

    .exec-thumb-name {
        font-size: clamp(1.2rem, 3vw + 0.5rem, 1.35rem);
    }

    .exec-thumb-role {
        font-size: clamp(0.9rem, 2vw + 0.3rem, 1.05rem);
        color: var(--yellow);
    }

    .exec-thumb-role:last-child {
        font-size: clamp(0.7rem, 1.5vw + 0.1rem, 0.685rem);
        color: var(--grey);
    }
}

.exec-thumb-img-wrap {
    flex-grow: 1;
    height: 100%;
    width: 100%;
    position: relative;
}

.exec-thumb-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 
   CUSTOM MULTI SELECT (MAE DESIGN)
 */
.custom-ms-wrapper {
    position: relative;
    width: 100%;
    user-select: none;
}

.ms-display-box {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 6px 35px 6px 12px;
    /* min-height: 42px; */
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    transition: border-color 0.2s;
}

.ms-display-box:hover {
    border-color: var(--primary);
}

.ms-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ms-placeholder {
    color: #9ca3af;
    font-size: 0.85rem;
}

.ms-tag {
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.ms-tag i {
    cursor: pointer;
    font-size: 0.85rem;
    opacity: 0.8;
}

.ms-tag i:hover {
    opacity: 1;
}

.ms-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    transition: transform 0.3s;
}

.custom-ms-wrapper.open .ms-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.ms-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-top: 5px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.custom-ms-wrapper.open .ms-dropdown-menu {
    display: block;
}

.ms-header-item {
    padding: 10px 15px;
    border-bottom: 1px solid #f3f4f6;
}

.ms-search-container {
    padding: 8px 12px;
    position: relative;
    border-bottom: 1px solid #f3f4f6;
}

.ms-search-container i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.9rem;
}

.ms-search-input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px 10px 6px 30px;
    font-size: 0.85rem;
    outline: none;
}

.ms-search-input:focus {
    border-color: var(--primary);
}

.ms-options-list {
    max-height: 220px;
    overflow-y: auto;
}

.ms-option-item {
    padding: 8px 15px;
    transition: background 0.1s;
}

.ms-option-item:hover {
    background: #f9fafb;
}

.ms-option-item .form-check-label {
    font-size: 0.85rem;
    cursor: pointer;
    width: 100%;
}

.ms-options-list::-webkit-scrollbar {
    width: 5px;
}

.ms-options-list::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 10px;
}

/* 
   UTILITY CLASSES (CLEANUP)
 */
.radius-12 {
    border-radius: 12px !important;
}

.radius-20 {
    border-radius: 20px !important;
}

.radius-24 {
    border-radius: 24px !important;
}

.lh-1-5 {
    line-height: 1.5 !important;
}

.icon-box-72 {
    width: 72px;
    height: 72px;
}

.bg-gradient-confirm {
    background: linear-gradient(180deg, #ffffff 0%, #fff0f0 100%) !important;
}

.fs-95 {
    font-size: 0.95rem !important;
}

/* GRID UTILS */
.grid-cols-auto-180 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.grid-cols-auto-130 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

.grid-cols-auto-90 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
}

/* ASPECT RATIO UTILS */
.aspect-3-3 {
    aspect-ratio: 3/3;
}

.aspect-1-1 {
    aspect-ratio: 1/1;
}

/* BORDER STYLE UTILS */
.border-dashed-2 {
    border-style: dashed !important;
    border-width: 2px !important;
}

/* ICON BOX UTILS */
.icon-box-32 {
    width: 32px;
    height: 32px;
}

.icon-box-44 {
    width: 44px;
    height: 44px;
}

.icon-box-50 {
    width: 50px;
    height: 50px;
}

.icon-box-180 {
    font-size: 180px !important;
}

/* BACKGROUND & OPACITY UTILS */
.bg-coa-dark {
    background: #1e1b76 !important;
}

.bg-white-10 {
    background: rgba(255, 255, 255, 0.1) !important;
}

.border-white-25 {
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
}

.opacity-90 {
    opacity: 0.9 !important;
}

/* TEXT UTILS */
.fs-xtra-small {
    font-size: 0.6rem !important;
}

/* GLASS UTILS */
.glass-header {
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(10px);
}

.lh-1-3 {
    line-height: 1.3 !important;
}

/* MODAL & COMPONENT UTILS */
.min-w-320 {
    min-width: 320px !important;
}

.h-260 {
    height: 260px !important;
}

.h-6 {
    height: 6px !important;
}

.bg-gradient-bottom-dark {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.8) 100%) !important;
}

.bg-gradient-bottom-dark-soft {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%) !important;
}

.icon-box-80 {
    font-size: 80px !important;
}

/* THEMED TABS (MODAL) */
.themed-modal-tabs .nav-link {
    color: rgba(255, 255, 255, 0.75);
}

.themed-modal-tabs .nav-link.active {
    background: white !important;
    color: #1e1b76 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 1;
}

.themed-modal-tabs .nav-link:not(.active):hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

/* ANIMATION UTILS */
.duration-3s {
    animation-duration: 3s !important;
}

.delay-0s {
    animation-delay: 0s !important;
}

.delay-1s {
    animation-delay: 1s !important;
}

.delay-2s {
    animation-delay: 2s !important;
}

/* STICKY DISTRICT LIST */
@media (min-width: 992px) {
    .district-list-left {
        position: sticky;
        top: 90px;
        align-self: flex-start;
        z-index: 10;
        height: auto;
    }

    .dist-sidebar-list {
        max-height: calc(100vh - 180px);
        overflow-y: auto;
    }
}

@media (max-width: 991px) {
    .dist-sidebar-list {
        max-height: 400px;
        overflow-y: auto;
    }
}

/* 
   INSURANCE & WELFARE MODULE
 */
.custom-image-tabs .nav-link.active {
    border-bottom: 3px solid #1e1b76 !important;
    color: #1e1b76 !important;
    font-weight: 700 !important;
}

.custom-image-tabs .nav-link {
    font-size: 16px;
    letter-spacing: 0.3px;
    font-weight: 500 !important;
    color: #64748b !important;
    transition: all 0.25s ease;
}

.custom-image-tabs .nav-link:hover {
    color: #1e1b76 !important;
}

.bill-slider-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding: 1rem;
    scrollbar-width: none;
}

.bill-slider-container::-webkit-scrollbar {
    display: none;
}

.bill-card-slide {
    min-width: 100%;
    scroll-snap-align: start;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    border: 1px solid #eee;
}

.bill-preview-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    background: #f0f0f0;
}

.action-log-timeline {
    position: relative;
    padding-left: 2rem;
}

.action-log-timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.slider-arrow-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e2e8f0;
    color: var(--primary);
    /* Identify color */
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.slider-arrow-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.slider-arrow-btn:disabled {
    opacity: 0.2;
    cursor: default;
    pointer-events: none;
    /* No action on click */
}

.timeline-dot {
    position: absolute;
    left: -1.85rem;
    width: 1rem;
    height: 1rem;
    background: #fff;
    border: 2px solid #0d6efd;
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
}

/* Action Log Timeline */
.action-timeline-container {
    position: relative;
    padding-left: 10px;
    margin-top: 20px;
}

.action-timeline-container::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 10px;
    bottom: 40px;
    width: 1px;
    border-left: 1px dashed #ced4da;
}

.action-item {
    display: flex;
    gap: 20px;
    margin-bottom: 35px;
    position: relative;
}

.action-box {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    z-index: 1;
    position: relative;
    flex-shrink: 0;
    margin-top: 5px;
}

.action-content {
    flex: 1;
}

.fs-xtra-tiny {
    font-size: 11px !important;
}

/* Member Linking UI */
.member-link-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.member-link-card:hover {
    background: #f8f9ff !important;
    border-color: rgba(30, 27, 118, 0.3) !important;
    transform: translateY(-2px);
}

.square-radio-check {
    background: #fff;
    border: 1.5px solid #dee2e6;
    transition: all 0.2s ease;
}

.member-link-card input[type="radio"]:checked+.square-radio-check {
    background-color: #1e1b76;
    border-color: #1e1b76;
}

.member-link-card input[type="radio"]:checked+.square-radio-check i {
    display: block !important;
}

.member-selection-list::-webkit-scrollbar {
    width: 4px;
}

.member-selection-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.member-selection-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.member-selection-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.modal-header .btn-close {
    font-size: 3.2vh !important;
}

/* 
   MY PROFILE & CROPPER STYLES
    */

.v2-banner-pattern {
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
}

.v2-avatar-status {
    width: 25px;
    height: 25px;
    margin-bottom: 10px;
    margin-right: 10px;
}

.badge-icon-sm {
    font-size: 0.85rem;
}

.linked-device-icon-wrap {
    background: linear-gradient(135deg, #667eea, #764ba2);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.linked-device-icon {
    color: #fff;
    font-size: 1rem;
}

.linked-device-name {
    font-size: 0.83rem;
    font-weight: 600;
}

.linked-device-version {
    font-size: 0.72rem;
    color: #888;
}

.benefit-icon-wrap {
    background: linear-gradient(135deg, #ff5f6d, #ffc371);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon {
    color: #fff;
    font-size: 1rem;
}

.benefit-title {
    font-size: 0.83rem;
    font-weight: 600;
}

.benefit-subtitle {
    font-size: 0.72rem;
    color: #888;
}

.trust-progress {
    height: 10px;
}

.pass-toggle-icon {
    margin-top: -12px;
}

.delay-0-05 {
    animation-delay: 0.05s;
}

.delay-0-1 {
    animation-delay: 0.1s;
}

.delay-0-15 {
    animation-delay: 0.15s;
}

.cropper-container {
    max-height: 400px;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 1rem;
}

.cropper-btn {
    width: 40px;
    height: 40px;
}

.transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-bounce:hover {
    transform: translateY(-2px);
}

.hover-bounce:active {
    transform: translateY(0);
}

#cropImageBtn {
    background: linear-gradient(135deg, #120e64 0%, #2a22b5 100%);
    border: none;
    position: relative;
    overflow: hidden;
}

#cropImageBtn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

#cropImageBtn:hover::after {
    left: 100%;
}

.cropper-img-fluid {
    max-width: 100%;
}

.cropper-toolbar-wrap {
    width: max-content;
}

/* 
   REJECTION MODAL â€” insurance-welfare.php
 */

/*  Modal Structure  */
#rejectionModal {
    z-index: 1090;
}

#rejectionModal .rejection-modal-header {
    background: linear-gradient(135deg, #7b1020 0%, #dc3545 100%);
}

#rejectionModal .rejection-modal-body {
    background: linear-gradient(160deg, #fff5f5 0%, #fff0f0 100%);
}

#rejectionModal .rejection-header-subtitle {
    font-size: 0.75rem;
}

/* Header icon box */
#rejectionModal .rejection-header-icon {
    width: 46px;
    height: 46px;
}

/* Decorative large icon behind header */
#rejectionModal .rejection-decor-icon {
    font-size: 5rem;
    line-height: 1;
    pointer-events: none;
}

/* Section mini-icon boxes (28Ã—28) */
#rejectionModal .rejection-section-icon {
    width: 28px;
    height: 28px;
}

/* Required badge text */
#rejectionModal .rejection-required-badge {
    font-size: 0.65rem;
}

/* Textarea */
#rejectionReasonInput {
    resize: vertical;
    min-height: 110px;
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Decorative watermark icon inside textarea card */
#rejectionModal .rejection-watermark-icon {
    font-size: 6rem;
    pointer-events: none;
}

/* Quick-select "click to autofill" label */
#rejectionModal .quick-select-hint {
    font-size: 0.68rem;
}

/* Quick-select pill buttons */
.quick-reason-btn {
    font-size: 0.72rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.quick-reason-btn:hover {
    background-color: #fff0f0;
    border-color: #dc3545 !important;
    color: #dc3545;
    transform: translateY(-1px);
}

/*  Keyframes  */
@keyframes rejectShimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes rejectGlow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(220, 53, 69, 0.35);
    }

    50% {
        box-shadow: 0 4px 28px rgba(220, 53, 69, 0.70), 0 0 0 4px rgba(220, 53, 69, 0.12);
    }
}

@keyframes spinOnce {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rejectRipple {
    0% {
        transform: scale(0);
        opacity: 0.6;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/*  Confirm Reject Button  */
.rejection-confirm-btn {
    position: relative;
    overflow: hidden;
    color: #fff;
    border: none;
    background: linear-gradient(135deg, #7b1020 0%, #dc3545 50%, #c0392b 100%);
    background-size: 200% auto;
    animation: rejectGlow 2.4s ease-in-out infinite;
    transition: transform 0.22s cubic-bezier(.34, 1.56, .64, 1),
        background-position 0.5s ease,
        box-shadow 0.3s ease;
}

.rejection-confirm-btn:hover {
    transform: translateY(-2px) scale(1.03);
    background-position: right center;
    animation: rejectShimmer 1.4s linear infinite, rejectGlow 2.4s ease-in-out infinite;
    color: #fff;
}

.rejection-confirm-btn:hover .reject-btn-icon {
    animation: spinOnce 0.5s ease forwards;
}

.rejection-confirm-btn:active {
    transform: scale(0.97);
}

/* Ripple pseudo-element */
.rejection-confirm-btn::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
}

.rejection-confirm-btn:active::after {
    animation: rejectRipple 0.55s ease-out forwards;
}

/*  Cancel Button  */
.rejection-cancel-btn {
    transition: transform 0.2s cubic-bezier(.34, 1.56, .64, 1),
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        color 0.2s ease;
}

.rejection-cancel-btn:hover {
    transform: translateY(-2px);
    border-color: #dc3545 !important;
    color: #dc3545 !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.15);
}

.rejection-cancel-btn:active {
    transform: scale(0.97);
}

/* -----------------------------------------------
   STATE VIEW SPECIFIC STYLES
   (Appended from state-view2.php)
----------------------------------------------- */
.dist-icon-wrap+div h3 {
    font-size: clamp(1rem, 1.8vw + 0.5rem, 1.4rem) !important;
    letter-spacing: -0.01em;
}

.dist-icon-wrap+div p {
    font-size: clamp(0.72rem, 0.8vw + 0.4rem, 0.85rem) !important;
    opacity: 0.85;
}

.grid-section h5 {
    font-size: clamp(0.95rem, 1.2vw + 0.5rem, 1.15rem) !important;
    letter-spacing: -0.01em;
}

.dist-sidebar-list span {
    font-size: clamp(0.78rem, 0.8vw + 0.45rem, 0.88rem) !important;
}

.dist-sidebar-list .badge {
    font-size: clamp(0.65rem, 0.5vw + 0.35rem, 0.72rem) !important;
}

.radius-14 {
    border-radius: 14px;
}

.btn-toggle-pill {
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    border: none;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: #333;
}

.btn-toggle-pill.active {
    background: #0d0a52;
    color: #fff;
    box-shadow: 0 4px 12px rgba(13, 10, 82, 0.2);
}

.sidebar-active-item {
    background: #0d0a52 !important;
    color: #fff !important;
    border-radius: 12px !important;
    margin: 2px 8px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
}

.sidebar-active-item i,
.sidebar-active-item span {
    color: #fff !important;
}

.sidebar-active-item .badge {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
}

.mekhala-member-card {
    transition: transform 0.3s ease;
}

.mekhala-member-card:hover {
    transform: translateY(-5px);
}

.mekhala-member-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
}

.text-indigo-900 {
    color: #1e1b4b;
}

.aspect-1-1 {
    aspect-ratio: 1/1 !important;
}

.aspect-3-3 {
    aspect-ratio: 1/1 !important;
}

.aspect-3-4 {
    aspect-ratio: 3/4 !important;
}

.mekhala-member-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

@media (max-width: 480px) {
    .mekhala-member-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


.border-dashed {
    border-style: dashed !important;
}

.sidebar-scroll-area {
    max-height: 600px;
    overflow-y: auto;
}

.offcanvas-width-360 {
    width: 360px !important;
}

.trans-rotate {
    transition: transform 0.4s ease;
}

.btn-indigo {
    background: #1e1b76 !important;
    color: #fff !important;
}

.icon-box-28 {
    width: 28px !important;
    height: 28px !important;
}

.anim-delay-gov-0,
.anim-delay-exec-0,
.anim-delay-mem-0 {
    animation-delay: 0s;
}

.anim-delay-gov-1 {
    animation-delay: 0.06s;
}

.anim-delay-gov-2 {
    animation-delay: 0.12s;
}

.anim-delay-gov-3 {
    animation-delay: 0.18s;
}

.anim-delay-gov-4 {
    animation-delay: 0.24s;
}

.anim-delay-gov-5 {
    animation-delay: 0.3s;
}

.anim-delay-exec-1 {
    animation-delay: 0.05s;
}

.anim-delay-exec-2 {
    animation-delay: 0.1s;
}

.anim-delay-exec-3 {
    animation-delay: 0.15s;
}

.anim-delay-exec-4 {
    animation-delay: 0.2s;
}

.anim-delay-exec-5 {
    animation-delay: 0.25s;
}

.anim-delay-exec-6 {
    animation-delay: 0.3s;
}

.anim-delay-exec-7 {
    animation-delay: 0.35s;
}

.anim-delay-exec-8 {
    animation-delay: 0.4s;
}

.anim-delay-exec-9 {
    animation-delay: 0.45s;
}

.anim-delay-exec-10 {
    animation-delay: 0.5s;
}

.anim-delay-exec-11 {
    animation-delay: 0.55s;
}

.anim-delay-exec-12 {
    animation-delay: 0.6s;
}

.anim-delay-exec-13 {
    animation-delay: 0.65s;
}

.anim-delay-exec-14 {
    animation-delay: 0.7s;
}

.anim-delay-exec-15 {
    animation-delay: 0.75s;
}

.anim-delay-exec-16 {
    animation-delay: 0.8s;
}

.anim-delay-exec-17 {
    animation-delay: 0.85s;
}

.anim-delay-exec-18 {
    animation-delay: 0.9s;
}

.anim-delay-exec-19 {
    animation-delay: 0.95s;
}

.anim-delay-exec-20 {
    animation-delay: 1s;
}

.anim-delay-mem-1 {
    animation-delay: 0.03s;
}

.anim-delay-mem-2 {
    animation-delay: 0.06s;
}

.anim-delay-mem-3 {
    animation-delay: 0.09s;
}

.anim-delay-mem-4 {
    animation-delay: 0.12s;
}

.anim-delay-mem-5 {
    animation-delay: 0.15s;
}

.anim-delay-mem-6 {
    animation-delay: 0.18s;
}

.anim-delay-mem-7 {
    animation-delay: 0.21s;
}

.anim-delay-mem-8 {
    animation-delay: 0.24s;
}

.anim-delay-mem-9 {
    animation-delay: 0.27s;
}

.anim-delay-mem-10 {
    animation-delay: 0.3s;
}

.anim-delay-mem-11 {
    animation-delay: 0.33s;
}

.anim-delay-mem-12 {
    animation-delay: 0.36s;
}

.anim-delay-mem-13 {
    animation-delay: 0.39s;
}

.anim-delay-mem-14 {
    animation-delay: 0.42s;
}

.anim-delay-mem-15 {
    animation-delay: 0.45s;
}

.anim-delay-mem-16 {
    animation-delay: 0.48s;
}

.anim-delay-mem-17 {
    animation-delay: 0.51s;
}

.anim-delay-mem-18 {
    animation-delay: 0.54s;
}

.anim-delay-mem-19 {
    animation-delay: 0.57s;
}

.anim-delay-mem-20 {
    animation-delay: 0.6s;
}

/* -----------------------------------------------
   MEMBERS PAGE SPECIFIC STYLES
----------------------------------------------- */
.members-items-select {
    min-width: 70px;
}

.members-search-box {
    min-width: 250px;
}

.table-row-delay-0 {
    animation-delay: 0s;
}

.active-filter-tag {
    animation: fadeUp 0.3s ease;
}

.filter-reset-icon {
    transition: transform 0.4s ease;
}

.filter-reset-btn:hover .filter-reset-icon {
    transform: rotate(180deg);
}

.desktop-view-prompt .modal-dialog {
    max-width: 420px;
    margin: 1rem auto;
}

.desktop-view-prompt .modal-content {
    border-radius: 22px;
    overflow: hidden;
}

.desktop-view-prompt .prompt-hero {
    background: linear-gradient(135deg, #1e1b76 0%, #2456d6 55%, #12a6a6 100%);
    min-height: 150px;
}

.desktop-view-prompt .prompt-device {
    width: 112px;
    height: 74px;
    border: 4px solid rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 40px rgba(6, 14, 65, 0.3);
}

.desktop-view-prompt .prompt-device::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -18px;
    width: 48px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    transform: translateX(-50%);
}

.desktop-view-prompt .prompt-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
}

.desktop-view-prompt .prompt-line {
    height: 8px;
}

.desktop-view-prompt .prompt-line-primary {
    width: 76%;
}

.desktop-view-prompt .prompt-line-secondary {
    width: 54%;
}

.desktop-view-prompt .prompt-chip {
    border: 1px solid rgba(30, 27, 118, 0.12);
    background: #f5f7ff;
    color: #1e1b76;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.45rem 0.75rem;
}

.desktop-view-highlight {
    background: linear-gradient(135deg, #f5f7ff 0%, #eef8ff 100%);
    border: 1px solid rgba(30, 27, 118, 0.14);
    box-shadow: 0 10px 24px rgba(30, 27, 118, 0.08);
    color: #1e1b76;
    min-height: 42px;
    padding: 0.85rem 1rem;
}

.desktop-view-highlight-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 12px;
    background: #1e1b76;
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 8px 18px rgba(30, 27, 118, 0.22);
}

.desktop-view-highlight-title {
    color: #15124f;
    font-size: 0.92rem;
    line-height: 1.2;
}

.desktop-view-highlight-text {
    color: #667085;
    font-size: 0.78rem;
    line-height: 1.35;
    margin-top: 0.15rem;
}

.member-status-modal-header {
    background: #1e1b76;
}

.member-status-decor-icon {
    font-size: 120px;
}

.member-status-icon-box {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (min-width: 768px) {
    .desktop-view-prompt {
        display: none !important;
    }
}

/* ==========================================
   ALLOWANCES PAGE STYLES
   ========================================== */
.allowance-summary-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(22, 16, 106, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.allowance-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: rgba(255, 255, 255, 0.85);
}

.allowance-summary-value {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--primary);
}

.summary-pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.summary-pulse-dot.pulse-pending {
    background: var(--secondary);
    animation: pulse-dot-red 1.6s infinite;
}

.summary-pulse-dot.pulse-settled {
    background: var(--success);
    animation: pulse-dot-green 1.6s infinite;
}

@keyframes pulse-dot-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(188, 6, 16, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(188, 6, 16, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(188, 6, 16, 0);
    }
}

@keyframes pulse-dot-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(104, 188, 58, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(104, 188, 58, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(104, 188, 58, 0);
    }
}

/* Row transition animations */
.row-fade-out {
    animation: fadeOutRow 0.35s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.row-fade-in {
    animation: fadeInRow 0.4s cubic-bezier(0, 0, 0.2, 1) forwards;
}

@keyframes fadeOutRow {
    0% {
        opacity: 1;
        transform: translateX(0);
        background: rgba(22, 16, 106, 0.05);
    }

    100% {
        opacity: 0;
        transform: translateX(40px);
        height: 0;
        padding: 0;
        border: none;
    }
}

@keyframes fadeInRow {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Receipt slip design */
.receipt-slip {
    background: #fff;
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(22, 16, 106, 0.15);
    box-shadow: 0 8px 24px rgba(22, 16, 106, 0.03);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.receipt-slip::before,
.receipt-slip::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 6px;
    background-image: radial-gradient(circle, #f6f6f6 3px, transparent 4px);
    background-size: 12px 6px;
}

.receipt-slip::before {
    top: -3px;
    background-repeat: repeat-x;
}

.receipt-slip::after {
    bottom: -3px;
    background-repeat: repeat-x;
}

.receipt-header {
    border-bottom: 2px dashed rgba(22, 16, 106, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.receipt-line-item {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 0.88rem;
}

.receipt-line-item:last-child {
    border-bottom: none;
}

.receipt-total {
    border-top: 2px solid rgba(22, 16, 106, 0.1);
    padding-top: 0.85rem;
    margin-top: 0.85rem;
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}

.receipt-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-12deg);
    font-size: 3.5rem;
    font-weight: 800;
    opacity: 0.03;
    pointer-events: none;
    user-select: none;
    color: var(--primary);
}

.filter-input-group {
    border: 1px solid rgba(22, 16, 106, 0.08);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.55);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(22, 16, 106, 0.03);
}

.filter-input-group:hover {
    border-color: rgba(22, 16, 106, 0.2);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 4px 12px rgba(22, 16, 106, 0.06);
}

.filter-input-group:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(22, 16, 106, 0.06);
    background: #fff;
}

/* Sliding active tab toggles */
.custom-toggle-tabs {
    position: relative;
    padding: 4px !important;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(22, 16, 106, 0.08) !important;
    gap: 4px;
}

.custom-toggle-tabs button {
    position: relative;
    border: 0 !important;
    background: transparent !important;
    color: #667085 !important;
    font-weight: 600 !important;
    padding: 6px 20px !important;
    min-width: 110px;
    border-radius: 50px !important;
    transition: color 0.3s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
    box-shadow: none !important;
}

.custom-toggle-tabs button:active {
    transform: scale(0.95);
}

.custom-toggle-tabs button.active {
    color: #fff !important;
}

.custom-toggle-tabs button:hover:not(.active) {
    color: var(--primary) !important;
}

.tab-slider-indicator {
    position: absolute;
    height: calc(100% - 8px);
    top: 4px;
    left: 4px;
    background: var(--primary);
    border-radius: 50px;
    z-index: 1;
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), width 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Premium Filter Pill Selects */
.filter-pill-select {
    background: #ffffff;
    /* border: 1px solid rgba(22, 16, 106, 0.08) !important; */
    border-radius: 16px;
    padding: 10px 20px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(22, 16, 106, 0.02);
}

.filter-pill-select:hover,
.filter-pill-select:focus-within {
    border-color: var(--primary) !important;
    box-shadow: 0 4px 12px rgba(22, 16, 106, 0.08);
    transform: translateY(-1px);
}

.filter-select-box {
    border: 1px solid rgba(22, 16, 106, 0.12) !important;
    border-radius: 8px;
    background-color: #f8f9fa !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    padding: 6px 32px 6px 12px !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16' fill='%2316106a'%3E%3Cpath d='M12 16L6 10H18L12 16Z'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    transition: all 0.2s ease;
}

.filter-select-box:hover {
    border-color: var(--primary) !important;
    background-color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(22, 16, 106, 0.05) !important;
}

.filter-select-box:focus {
    border-color: var(--primary) !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(22, 16, 106, 0.06) !important;
}

/* Premium Summary Pill Card */
.summary-pill-card {
    background: #ffffff;
    border: 1px solid rgba(22, 16, 106, 0.08) !important;
    border-radius: 16px;
    padding: 10px 20px;
    box-shadow: 0 4px 15px rgba(22, 16, 106, 0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.summary-pill-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 16, 106, 0.08);
}

/* ==========================================
   WORK REPORTS CUSTOM STYLES
   ========================================== */
.claim-checkbox-card {
    border: 1px solid rgba(22, 16, 106, 0.08);
    border-radius: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.claim-checkbox-card:hover {
    border-color: var(--primary);
    background-color: rgba(22, 16, 106, 0.02);
}

.claim-section-box {
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    background: #fcfcfd;
}

.modal-body-scrollable-wr {
    max-height: 80vh;
    overflow-y: auto;
}

.filter-label {
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.ls-05 {
    letter-spacing: 0.5px;
}

.text-justify {
    text-align: justify;
}

.wr-approval-title {
    color: #1e1b76;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.text-bright-blue {
    color: #0d6efd !important;
}

/* Digital TV member profile */
.member-type-ring {
    --member-type-color: #6fdd3f;
    border: 6px solid var(--member-type-color);
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 8px 24px rgba(30, 27, 118, 0.16);
    width: 100px;
    height: 100px;
}

.member-type-ring img {
    display: block;
    width: 100%;
    height: 100%
}

.member-type-managing {
    --member-type-color: #6fdd3f;
}

.member-type-ordinary {
    --member-type-color: #2f80ed;
}

.member-type-associate {
    --member-type-color: #f2c94c;
}

/* Responsive refinements scoped to Work Reports */
#addWorkReportModal,
#viewWorkReportDetailsModal,
#filterSection {
    font-size: clamp(0.82rem, 0.24vw + 0.76rem, 0.95rem);
}

.work-reports-table th,
.work-reports-table td {
    font-size: clamp(0.76rem, 0.24vw + 0.7rem, 0.9rem);
}

.work-reports-table .badge,
.work-reports-table .dropdown-coa-menu .dropdown-item {
    font-size: clamp(0.7rem, 0.2vw + 0.66rem, 0.82rem) !important;
}

#addWorkReportModal .modal-dialog {
    width: min(96vw, 920px);
    margin-left: auto;
    margin-right: auto;
}

#addWorkReportModal .modal-title,
#viewWorkReportDetailsModal h4,
#viewWRCodeHeader {
    font-size: clamp(1rem, 0.7vw + 0.82rem, 1.35rem) !important;
    line-height: 1.2;
}

#addWorkReportModal .modal-body {
    padding: clamp(0.85rem, 1.4vw, 1.5rem) !important;
}

#addWorkReportModal .glass-card,
#viewWorkReportDetailsModal .card {
    padding: clamp(0.85rem, 1.5vw, 1.5rem) !important;
}

#addWorkReportModal .form-label,
#addWorkReportModal .form-control,
#addWorkReportModal .form-select,
#addWorkReportModal .input-group-text,
#filterSection .form-control,
#filterSection .form-select,
#filterSection .accordion-button {
    font-size: clamp(0.78rem, 0.22vw + 0.72rem, 0.9rem) !important;
}

#addWorkReportModal .input-group-sm>.form-control,
#addWorkReportModal .input-group-sm>.form-select,
#addWorkReportModal .input-group-sm>.input-group-text {
    min-height: clamp(36px, 3vw, 42px);
}

#addWorkReportModal .select2-container--default .select2-selection--single {
    min-height: clamp(36px, 3vw, 42px) !important;
}

#addWorkReportModal .select2-container--default .select2-selection--single .select2-selection__rendered,
#addWorkReportModal .select2-results__option,
#addWorkReportModal .select2-search__field {
    font-size: clamp(0.78rem, 0.22vw + 0.72rem, 0.9rem) !important;
}

.claim-checkbox-card {
    min-height: 52px;
    height: 100%;
}

.claim-options-grid>[class*="col-"] {
    min-width: 0;
}

.claim-checkbox-card .form-check-label,
.claim-section-box h6 {
    font-size: clamp(0.78rem, 0.25vw + 0.72rem, 0.92rem) !important;
    overflow-wrap: anywhere;
}

#formGrandTotal {
    font-size: clamp(1rem, 0.75vw + 0.85rem, 1.35rem) !important;
    text-align: right;
}

#workReportsTableBody td,
#viewWRTableBody td {
    overflow-wrap: anywhere;
    word-break: normal;
}

#viewWorkReportDetailsModal .btn-round2,
#viewAllowanceModal .btn-round2,
#addWorkReportModal .modal-footer .btn {
    font-size: clamp(0.78rem, 0.22vw + 0.72rem, 0.9rem) !important;
    white-space: nowrap;
}

.wr-view-header-bar {
    gap: 0.75rem;
    min-width: 0;
}

.wr-view-header-actions {
    flex-shrink: 0;
}

/* Pin close button to top-right corner at all screen sizes */
#viewWorkReportDetailsModal .modal-header {
    position: relative;
}

.wrk-report-modal {
    table td {
        border-bottom: 1px dashed #dce1e9;
        padding: .3rem .825rem;
    }
}

@media (max-width: 767.98px) {
    #addWorkReportModal .modal-dialog {
        width: 100%;
        max-width: none;
        height: 100%;
        margin: 0;
    }

    #addWorkReportModal .modal-content {
        min-height: 100%;
        border-radius: 0 !important;
    }

    #addWorkReportModal .modal-header .w-100 {
        padding: 0.85rem 1rem !important;
        align-items: flex-start !important;
        gap: 0.75rem;
    }

    #addWorkReportModal .modal-header .w-100>.d-flex {
        min-width: 0;
    }

    #addWorkReportModal .modal-header .w-100>.d-flex>div:last-child {
        min-width: 0;
    }

    #addWorkReportModal .modal-header .w-100>.d-flex>div:first-child {
        width: 38px !important;
        height: 38px !important;
        flex: 0 0 38px;
    }

    #addWorkReportModal .modal-header .position-absolute {
        display: none;
    }

    #addWorkReportModal .row.g-3 {
        --bs-gutter-y: 0.75rem;
    }

    #addWorkReportModal .claim-checkbox-card {
        padding: 0.75rem !important;
        min-height: 48px;
    }

    #addWorkReportModal .claim-section-box {
        padding: 0.85rem !important;
    }

    #addWorkReportModal .modal-footer {
        padding: 0.85rem 1rem !important;
    }

    #addWorkReportModal .modal-footer .d-flex {
        gap: 0.6rem !important;
    }

    #addWorkReportModal .modal-footer .btn {
        flex: 1 1 0;
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }

    #viewWorkReportDetailsModal .modal-header .w-100,
    #viewAllowanceModal .modal-header .w-100,
    #viewWorkReportDetailsModal .modal-header .w-100>.d-flex,
    #viewAllowanceModal .modal-header .w-100>.d-flex,
    #viewWorkReportDetailsModal .wr-view-header-bar,
    #viewAllowanceModal .wr-view-header-bar {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    #viewWorkReportDetailsModal .modal-header,
    #viewAllowanceModal .modal-header {
        padding: 0.85rem 1rem !important;
    }

    #viewWorkReportDetailsModal .btn-round2,
    #viewAllowanceModal .btn-round2 {
        width: auto;
        min-height: 36px;
        padding: 0.45rem 0.7rem;
    }

    #viewWRCodeHeader,
    #viewSlipId {
        flex: 1 1 100%;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    #viewWorkReportDetailsModal .wr-view-header-actions,
    #viewAllowanceModal .wr-view-header-actions {
        width: auto;
        justify-content: space-between;
        gap: 0.5rem !important;
    }

    #viewWorkReportDetailsModal .wr-view-header-actions .btn-round2,
    #viewAllowanceModal .wr-view-header-actions .btn-round2 {
        flex: 1 1 0;
        justify-content: center;
    }

    #viewWorkReportDetailsModal .wr-view-header-actions .btn-close,
    #viewAllowanceModal .wr-view-header-actions .btn-close {
        flex: 0 0 auto;
        margin-left: 0 !important;
    }

    #viewWorkReportDetailsModal .card {
        border-radius: 12px !important;
    }

    #viewWorkReportDetailsModal .card>.d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.4rem;
    }

    #viewWorkReportDetailsModal .tracking-wider {
        font-size: clamp(1.1rem, 8vw, 2rem) !important;
        line-height: 1;
    }

    #viewWRApprovalBanner .d-flex {
        flex-wrap: wrap;
        justify-content: center;
    }

    #filterSection {
        width: min(100vw, 360px) !important;
    }
}

@media (max-width: 575.98px) {
    #addWorkReportModal .glass-card>.d-flex.align-items-center {
        align-items: flex-start !important;
        flex-wrap: wrap;
    }

    #addWorkReportModal .glass-card>.d-flex.align-items-center .badge {
        margin-left: 0 !important;
    }

    #addWorkReportModal .claim-options-grid>.col-6 {
        width: 50%;
        flex: 0 0 auto;
    }

    #workReportsTableBody td {
        justify-content: flex-start !important;
        text-align: left !important;
    }

    #workReportsTableBody td::before {
        flex: 0 0 110px;
        margin-right: 0.5rem !important;
    }
}

@media (max-width: 380px) {
    #addWorkReportModal .modal-footer .d-flex {
        flex-direction: column;
    }

    #addWorkReportModal .modal-footer .btn,
    #viewWorkReportDetailsModal .btn-round2,
    #viewAllowanceModal .btn-round2 {
        width: 100%;
    }
}

/* Work Report Modal Styles */
.wr-modal-bg {
    font-family: 'Inter', sans-serif;
    background-color: #f2f5f8 !important;
}

.wr-modal-container {
    background-color: #f7f9fc;
    padding: clamp(20px, 5vw, 30px);
    border-radius: 4px;
    border: 1px solid #e1e5eb;
}

.wr-text-xs-spaced {
    font-size: clamp(0.55rem, 2vw, 0.65rem);
    letter-spacing: 0.5px;
}

.wr-heading-sm {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    letter-spacing: -0.5px;
}

.wr-title-lg {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    color: #dce1e9;
}

.wr-border-dashed {
    border-bottom: 1px dashed #dce1e9;
    border-bottom-width: 1px !important;
}

.wr-table-min-w {
    /* min-width: 600px; */
}

.wr-table-header-row {
    border-top: 1px solid #dce1e9;
    border-bottom: 1px solid #dce1e9;
}

.wr-table-body {
    border-bottom: 1px solid #dce1e9;
}

.wr-label-md {
    font-size: clamp(0.65rem, 2vw, 0.75rem);
    letter-spacing: 0.5px;
}

.wr-totals-table {
    /* max-width: 300px; */
    width: 100%;
}

.wr-w-100px {
    width: 100px;
}

.wr-total-applied-val {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: #3b82f6 !important;
}

.wr-total-approved-val {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--success) !important;
}

.form-check {
    padding-left: 0;
}

.form-check .form-check-input {
    margin-left: 0;
}

:disabled {
    opacity: 0.45;
    pointer-events: auto !important;
    cursor: not-allowed !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    box-shadow: none !important;
    color: #000 !important;
}

/* Print styles for Work Report Details Modal */
@media print {

    /* Force browsers to print exact background colors and styles */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    @page {
        size: A4;
        margin: 10mm;
    }

    body * {
        visibility: hidden;
    }

    #viewWorkReportDetailsModal,
    #viewWorkReportDetailsModal * {
        visibility: visible;
    }

    #viewWorkReportDetailsModal {
        position: absolute !important;
        left: 0;
        top: 0;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        background: white !important;
        height: auto !important;
        overflow: visible !important;
    }

    #viewWorkReportDetailsModal .modal-dialog,
    #viewWorkReportDetailsModal .modal-content,
    #viewWorkReportDetailsModal .modal-body,
    #viewWorkReportDetailsModal .wr-modal-bg {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        border: none !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        background-color: #fff !important;
    }

    #viewWorkReportDetailsModal .wr-view-header-actions,
    #viewWorkReportDetailsModal .btn-close,
    #viewWorkReportDetailsModal .modal-header {
        display: none !important;
    }

    /* Force desktop-like layout for print to prevent mobile stacking */
    #viewWorkReportDetailsModal .flex-column.flex-sm-row {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
    }

    #viewWorkReportDetailsModal .col-sm-12,
    #viewWorkReportDetailsModal .col-md-12,
    #viewWorkReportDetailsModal .col-lg {
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: 100% !important;
    }

    #viewWorkReportDetailsModal .order-sm-1 {
        order: 1 !important;
    }

    #viewWorkReportDetailsModal .order-sm-2 {
        order: 2 !important;
    }

    #viewWorkReportDetailsModal .text-sm-end {
        text-align: right !important;
    }

    #viewWorkReportDetailsModal .w-sm-auto,
    #viewWorkReportDetailsModal .w-auto {
        width: auto !important;
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }

    #viewWorkReportDetailsModal .mb-sm-0 {
        margin-bottom: 0 !important;
    }

    #viewWorkReportDetailsModal .wr-title-lg {
        color: #9aa5b5 !important;
        /* Darker than default #dce1e9 for print visibility */
    }

    #viewWorkReportDetailsModal .text-muted {
        color: #555 !important;
    }

    td.wr-text-xs-spaced.align-middle.text-dark.px-0.pt-3.text-end.text-uppercase.fw-bold {
        width: 70%;
    }

    td.wr-border-dashed.text-end.bg-transparent.text-dark.px-0.py-1 {
        width: 75%;
    }
}

/* transform creates a new containing block which breaks Popper.js fixed positioning for dropdowns */
.table-hover tbody tr:hover {
    transform: none !important;
}

/* Share Details Row */
.share-details-row {
    flex-flow: row wrap;
    gap: 8px;
}

.share-details-info {
    flex: 999 1 150px;
}

.share-input-wrap {
    flex: 1 1 120px;
    max-width: 100%;
}

/* Fullscreen Modal Body Scrollbar */
.modal-fullscreen .modal-body {
    overflow-y: auto;
}

.modal-fullscreen .modal-body::-webkit-scrollbar {
    width: 12px;
    height: 48px;
}

.modal-fullscreen .modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-fullscreen .modal-body::-webkit-scrollbar-thumb {
    background: rgba(22, 16, 106, 0.4);
    border-radius: 10px;
}

.modal-fullscreen .modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(22, 16, 106, 0.6);
}

/* Drag-to-scroll CSS preparation */
.table-responsive.overflow-x-auto {
    cursor: grab;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
}

.table-responsive.overflow-x-auto:active {
    cursor: grabbing;
}

.table-responsive.overflow-x-auto .table {
    user-select: none;
}

/* ═══════════════════════════════════════════════════
   MEETING AGENDA LIST
═══════════════════════════════════════════════════ */

.meeting-agenda-list {
    container-type: inline-size;
    container-name: agenda-list;
}

/* Each agenda row */
.agenda-list-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(8px, 2vw, 16px);
    padding: clamp(10px, 2vw, 14px) clamp(12px, 2.5vw, 18px);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 249, 252, 0.92) 100%);
    border: 1px solid rgba(22, 16, 106, 0.07);
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    animation: agendaSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
    flex-wrap: wrap;
}

.agenda-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary, #16106a), #6366f1);
    border-radius: 12px 0 0 12px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.agenda-list-item:hover {
    box-shadow: 0 6px 20px rgba(22, 16, 106, 0.09);
    transform: translateY(-2px);
    border-color: rgba(22, 16, 106, 0.14);
}

.agenda-list-item:hover::before {
    opacity: 1;
}

/* Stagger animation per item */
.agenda-list-item:nth-child(1) {
    animation-delay: 0.04s;
}

.agenda-list-item:nth-child(2) {
    animation-delay: 0.08s;
}

.agenda-list-item:nth-child(3) {
    animation-delay: 0.12s;
}

.agenda-list-item:nth-child(4) {
    animation-delay: 0.16s;
}

.agenda-list-item:nth-child(5) {
    animation-delay: 0.20s;
}

.agenda-list-item:nth-child(6) {
    animation-delay: 0.24s;
}

.agenda-list-item:nth-child(7) {
    animation-delay: 0.28s;
}

.agenda-list-item:nth-child(8) {
    animation-delay: 0.32s;
}

.agenda-list-item:nth-child(9) {
    animation-delay: 0.36s;
}

.agenda-list-item:nth-child(10) {
    animation-delay: 0.40s;
}

@keyframes agendaSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Agenda title — fluid, auto-adjusting font */
.agenda-title {
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    font-weight: 600;
    color: #1e2a3b;
    line-height: 1.5;
    margin: 0;
    flex: 1 1 0;
    min-width: 0;
    word-break: break-word;
    padding-right: 4px;
}

/* Agenda action buttons row */
.agenda-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* Add / Edit Minutes button */
.btn-add-minutes {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: clamp(4px, 0.8vw, 6px) clamp(10px, 1.5vw, 14px);
    font-size: clamp(0.68rem, 1.2vw, 0.78rem);
    font-weight: 700;
    white-space: nowrap;
    border-radius: 8px;
    border: 1.5px solid var(--primary, #16106a);
    background: transparent;
    color: var(--primary, #16106a);
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
    line-height: 1;
}

.btn-add-minutes:hover {
    background: var(--primary, #16106a);
    color: #fff;
    box-shadow: 0 4px 12px rgba(22, 16, 106, 0.22);
    transform: translateY(-1px);
}

.btn-add-minutes i {
    font-size: 0.85em;
}

/* Delete Agenda button */
.btn-delete-agenda {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(28px, 4vw, 30px);
    height: clamp(28px, 4vw, 30px);
    border-radius: 8px;
    border: 1.5px solid rgba(220, 38, 38, 0.2);
    background: rgba(254, 226, 226, 0.5);
    color: #dc2626;
    cursor: pointer;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.btn-delete-agenda:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    transform: translateY(-1px);
}

.btn-delete-agenda i {
    pointer-events: none;
}

/* 
   FORM SWITCH -> CHECKBOX DESIGN
   User prefers checkbox design over standard toggle switch.
 */
.form-switch .form-check-input {
    width: 1.15em;
    height: 1.15em;
    margin-left: 0em;
    margin-top: 0em;
    background-image: none !important;
    border-radius: 0.25em !important;
    background-position: center !important;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.form-switch .form-check-input:checked {
    border-radius: 0.25em !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e") !important;
}

.accordion .form-switch .form-check-input {
    width: .95rem !important;
    height: .95rem !important;
    border-radius: 4px !important;
}

/* 
   Mobile Fix for Gradient Hero Cards 
*/
@media (max-width: 767.98px) {
    .db-stat-hero {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 8px;
    }

    .db-stat-hero .db-stat-hero-num.text-end {
        align-self: flex-end;
    }

    /* Mobile Fix for Grievance Summary Grid */
    .db-griev-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* Mobile Fix for Modal Tabs */
    .custom-image-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        white-space: nowrap;
    }

    .custom-image-tabs::-webkit-scrollbar {
        display: none;
    }

    .custom-image-tabs .nav-link {
        white-space: nowrap;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* ==========================================
   BILL DETAIL MODAL CUSTOM STYLES
   ========================================== */
#billDetailModal {
    z-index: 1080;
}

#billDetailModal .modal-content {
    border-radius: 0;
    background: #000;
}

#billDetailModal .row.g-0 {
    min-height: 100vh;
}

#billDetailModal .viewer-controls {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#billDetailModal .verification-step {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
}

#billDetailModal .verification-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 14px;
    top: 28px;
    width: 1px;
    height: calc(100% - 8px);
    background: #eee;
}

#billDetailModal .verification-step.active:not(:last-child)::after {
    background: var(--success);
}

#billDetailModal .step-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f1f1f1;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    z-index: 1;
    border: 2px solid #fff;
}

#billDetailModal .verification-step.active .step-icon {
    background: var(--success);
    color: #fff;
}

#billDetailModal .verification-step.pending .step-icon {
    background: var(--yellow);
    color: #fff;
}

#billDetailModal .ls-tight {
    letter-spacing: -0.02em;
}

#billDetailModal .shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

#billDetailModal #billViewerBody {
    min-height: 500px;
}

#billDetailModal .nav-bill-btn {
    width: 46px;
    height: 46px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#billDetailModal #billModalImg {
    max-height: 70vh;
}

#billDetailModal #detailStatus {
    background-color: #FFF9E6;
    color: #FFB800;
    border: 1px solid #FFEBB3;
}

#billDetailModal #detailEst {
    letter-spacing: -1px;
    font-size: 2rem;
}

#billDetailModal .bill-amount-card {
    background-color: #F8F9FA;
}

#billDetailModal #detailAmount {
    color: #0066FF !important;
    font-size: 2.75rem;
    letter-spacing: -1px;
}

#billDetailModal #detailDate {
    font-size: 1.35rem;
}

#billDetailModal .btn-download-pdf {
    background: #120E64;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#billDetailModal #btnReject {
    background: #DC3545;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#billDetailModal #btnVerify {
    background: #198754;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Transition utilities */
.transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom details layout in viewInsuranceModal (accessible 54+ redesign) */
.ins-details-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 24px;
    padding: 8px 0;
}

.ins-detail-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    background-color: rgba(248, 250, 252, 0.65);
    border: 1px solid rgba(22, 16, 106, 0.04);
    border-radius: 16px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ins-detail-item:hover {
    transform: translateY(-2px);
    background-color: rgba(22, 16, 106, 0.03);
    border-color: rgba(22, 16, 106, 0.1);
    box-shadow: 0 6px 18px rgba(22, 16, 106, 0.04);
}

.ins-detail-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 20px;
    flex-shrink: 0;
    background-color: var(--icon-bg, rgba(22, 16, 106, 0.08));
    color: var(--icon-color, #16106a);
    transition: all 0.2s ease;
}

.ins-detail-item:hover .ins-detail-icon {
    transform: scale(1.08);
}

.ins-detail-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.ins-detail-label {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1.1;
}

.ins-detail-value {
    font-size: 15.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.ins-detail-value.text-primary {
    color: var(--primary) !important;
}

.ins-detail-value.text-warning {
    color: #d97706 !important;
    /* High contrast amber for accessibility */
}

/* Member Digital Badge Card */
.ins-member-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(22, 16, 106, 0.01) 0%, rgba(22, 16, 106, 0.04) 100%);
    border: 1px solid rgba(22, 16, 106, 0.06);
    border-radius: 18px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ins-member-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-25deg);
    transition: none;
}

.ins-member-badge:hover::before {
    left: 150%;
    transition: all 0.75s ease;
}

.ins-member-badge:hover {
    border-color: rgba(22, 16, 106, 0.12);
    box-shadow: 0 8px 25px rgba(22, 16, 106, 0.03);
    transform: translateY(-2px);
}

.ins-member-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(22, 16, 106, 0.06);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: 2px solid rgba(22, 16, 106, 0.12);
    flex-shrink: 0;
}

.ins-member-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ins-member-name {
    font-size: 16.5px;
    font-weight: 750;
    color: #0f172a;
    margin: 0;
}

.ins-member-id {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.5px;
}

.ins-member-location {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    padding: 8px 16px;
    border: 1px solid rgba(22, 16, 106, 0.08);
    border-radius: 20px;
    font-size: 13.5px;
    font-weight: 700;
    color: #334155;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    z-index: 1;
}

.ins-member-location i {
    color: #bc0610;
    font-size: 15px;
}

/* Redesigned Claim Details Layout (Option B) */
.ins-redesigned-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ins-hero-summary-card {
    background: transparent;
    border-radius: 18px;
    padding: 0;
    color: #1e293b;
    position: relative;
    overflow: visible;
}

.ins-hero-summary-card::before {
    display: none;
}

.ins-hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.ins-hero-amount-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ins-hero-amount-label {
    font-size: 11px;
    font-weight: 750;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.ins-hero-amount-value {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.5px;
}

.ins-claim-steps {
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 10px;
}

.ins-claim-steps::before {
    content: '';
    position: absolute;
    top: 21px;
    left: 10px;
    right: 10px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.15);
    z-index: 1;
}

.ins-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.ins-step-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #374151;
    border: 4px solid #1f2937;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ins-step-label {
    font-size: 11.5px;
    font-weight: 750;
    color: #9ca3af;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ins-step.active .ins-step-dot {
    background-color: #0ea5e9;
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
}

.ins-step.active .ins-step-label {
    color: #e5e7eb;
}

.ins-step.active.current .ins-step-dot {
    background-color: #f59e0b;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
    animation: insStepPulse 2.5s infinite ease-in-out;
}

.ins-step.active.current .ins-step-label {
    color: #fbbf24;
    font-weight: 800;
}

@keyframes insStepPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
    }

    50% {
        transform: scale(1.2);
        box-shadow: 0 0 16px rgba(245, 158, 11, 0.8);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
    }
}

/* Metadata Info Grid */
.ins-info-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.ins-info-card {
    background-color: #ffffff;
    border: 1px solid rgba(22, 16, 106, 0.05);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 2px 6px rgba(22, 16, 106, 0.01);
}

.ins-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(22, 16, 106, 0.05);
    border-color: var(--accent-color);
    background-color: var(--card-bg);
}

.ins-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: var(--card-bg);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.ins-info-card:hover .ins-info-icon {
    transform: scale(1.08);
}

.ins-info-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.ins-info-label {
    font-size: 11px;
    font-weight: 750;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.ins-info-value {
    font-size: 15.5px;
    font-weight: 750;
    color: #111827;
    line-height: 1.3;
}

/* Styling overrides for metadata cards nested inside the Hero Summary Card (now light) */
.ins-hero-summary-card .ins-info-card {
    background-color: #f8fafc;
    border: 1px solid rgba(22, 16, 106, 0.07);
    box-shadow: 0 2px 8px rgba(22, 16, 106, 0.04);
}

.ins-hero-summary-card .ins-info-card:hover {
    background-color: #f1f5f9;
    border-color: var(--accent-color);
}

.ins-hero-summary-card .ins-info-icon {
    background-color: rgba(22, 16, 106, 0.05);
}

.ins-hero-summary-card .ins-info-label {
    color: #64748b;
}

.ins-hero-summary-card .ins-info-value {
    color: #0f172a;
}

/* Redesigned Premium Unified Layout for Claim Details (Unified Row Pattern) */
.ins-status-glow-badge {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    padding: 8px 16px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ins-glow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #f59e0b;
    box-shadow: 0 0 8px #f59e0b;
    animation: insDotPulse 1.8s infinite ease-in-out;
}

.ins-glow-text {
    font-size: 12px;
    font-weight: 750;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@keyframes insDotPulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 4px rgba(245, 158, 11, 0.4);
    }

    50% {
        transform: scale(1.2);
        box-shadow: 0 0 10px rgba(245, 158, 11, 0.8);
    }

    100% {
        transform: scale(0.9);
        box-shadow: 0 0 4px rgba(245, 158, 11, 0.4);
    }
}

.ins-hero-details-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    /* padding: 18px 20px; */
    /* background: #f8fafc; */
    /* border: 1px solid rgba(22, 16, 106, 0.07); */
    /* border-radius: 16px; */
}

.ins-hero-detail-col {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    transition: all 0.2s ease;
}

/* .ins-hero-detail-col:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 15%;
    bottom: 15%;
    width: 1px;
    background-color: rgba(22, 16, 106, 0.08);
} */

.ins-hero-detail-col:hover {
    transform: translateY(-1px);
}

.ins-detail-meta-icon {
    font-size: 20px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(22, 16, 106, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ins-detail-meta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ins-detail-meta-label {
    font-size: 11px;
    font-weight: 750;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.ins-detail-meta-val {
    font-size: 15.5px;
    font-weight: 750;
    color: #0f172a;
    line-height: 1.3;
}

.text-cyan {
    color: #38bdf8 !important;
}

.text-teal {
    color: #2dd4bf !important;
}

.text-sky {
    color: #0ea5e9 !important;
}

/* ── Premium Member Profile Card ───────────────────────────── */
.ins-member-card {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(22, 16, 106, 0.1);
    box-shadow: 0 4px 24px rgba(22, 16, 106, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.ins-member-card:hover {
    box-shadow: 0 10px 36px rgba(22, 16, 106, 0.12);
    transform: translateY(-2px);
}

/* Gradient hero section */
.ins-member-card-header {
    background: linear-gradient(135deg, #16106a 0%, #1e1b8a 50%, #0f0b5e 100%);
    padding: 32px 24px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative floating mesh circles */
.ins-member-card-deco {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.ins-member-card-deco-1 {
    width: 160px;
    height: 160px;
    top: -50px;
    right: -50px;
}

.ins-member-card-deco-2 {
    width: 100px;
    height: 100px;
    bottom: -30px;
    left: -30px;
    background: rgba(255, 255, 255, 0.03);
}

/* Avatar with glowing ring */
.ins-member-card-avatar-wrap {
    position: relative;
    margin-bottom: 14px;
}

.ins-member-card-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.06),
        0 0 20px rgba(255, 255, 255, 0.08);
    z-index: 1;
    position: relative;
    display: block;
    flex-shrink: 0;
}

/* Verified badge pinned to bottom-right of avatar */
.ins-member-card-verified {
    position: absolute;
    bottom: 0;
    right: -4px;
    width: 22px;
    height: 22px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #16106a;
    z-index: 2;
}

.ins-member-card-verified i {
    font-size: 12px;
    color: #ffffff;
    line-height: 1;
}

.ins-member-card-name {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 6px;
    letter-spacing: -0.2px;
    line-height: 1.3;
    z-index: 1;
    position: relative;
}

.ins-member-card-id {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 4px 14px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.8px;
    z-index: 1;
    position: relative;
}

.ins-member-card-id i {
    color: rgba(255, 255, 255, 0.6);
}

/* Stats row */
.ins-member-card-body {
    background: #ffffff;
    display: flex;
    align-items: stretch;
    padding: 0;
}

.ins-member-stat {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
}

.ins-member-stat-divider {
    width: 1px;
    background: rgba(22, 16, 106, 0.07);
    align-self: stretch;
}

.ins-member-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--s-color) 10%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 17px;
    color: var(--s-color);
}

.ins-member-stat-text {
    display: flex;
    flex-direction: column;
    /* gap: 2px; */
    min-width: 0;
}

.ins-member-stat-label {
    font-size: 10.5px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.ins-member-stat-value {
    font-size: 13px;
    font-weight: 750;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Financial Grant Card — Fluid Typography ──────────────── */
.ins-grant-card {
    padding: clamp(12px, 3vw, 20px);
    border-radius: 16px;
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(22, 16, 106, 0.18);
}

/* Decorative background icon — fluid size, no inline style */
.ins-grant-deco-icon {
    font-size: clamp(48px, 10vw, 80px);
    line-height: 1;
    display: block;
}

/* Label row: "Applied Amount", "Previously Granted", "Amount Granted" */
.ins-grant-label {
    font-size: clamp(9px, 1.6vw, 11px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.72;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Primary amount values: Applied & Previously Granted */
.ins-grant-value {
    font-size: clamp(14px, 3.2vw, 20px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin-top: 2px;
    word-break: break-word;
}

/* Highlighted total: Amount Granted */
.ins-grant-total {
    font-size: clamp(16px, 4vw, 24px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    word-break: break-word;
}

.report-print-area .table-responsive {
    min-height: auto;
    overflow-y: visible !important;
}

.report-print-area .wr-modal-container {
    max-height: calc(95vh - 20px);
    overflow: hidden;
    overflow-y: auto !important;
    display: flex;
    flex-direction: column;
    margin-bottom: 20rem;
}

.pagination {
    flex-flow: wrap;
}

table.table tbody tr:last-child td .settings-tooltip {
    top: auto !important;
    bottom: 30px !important;
}

table.table tbody tr:last-child td .settings-tooltip .position-absolute {
    top: auto !important;
    bottom: -6px;
    border-top: 6px solid rgb(33, 37, 41);
    border-bottom: 0 !important;
}

/* ==========================================
   YEAR PICKER (add-member.php)
   ========================================== */
.year-picker-wrapper {
    position: relative;
}

.year-picker-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.year-picker-arrow {
    transition: transform 0.25s ease;
    font-size: 1rem;
    color: #999;
}

.year-picker-wrapper.open .year-picker-arrow {
    transform: rotate(180deg);
    color: var(--bs-primary, #0d6efd);
}

.year-picker-wrapper.open .year-picker-display {
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.12);
}

.year-picker-wrapper.open #yearPickerLabel {
    color: var(--bs-primary, #0d6efd) !important;
}

.year-picker-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.13);
    padding: 10px;
    animation: yearDropIn 0.18s ease;
    max-height: clamp(160px, 35vh, 300px);
    overflow-y: auto;
    scroll-behavior: smooth;
}

@keyframes yearDropIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.year-picker-wrapper.open .year-picker-dropdown {
    display: block;
}

.year-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.year-grid-item {
    text-align: center;
    padding: 7px 4px;
    border-radius: 7px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    color: #444;
    transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}

.year-grid-item:hover {
    background: rgba(13, 110, 253, 0.10);
    color: var(--bs-primary, #0d6efd);
    transform: scale(1.07);
}

.year-grid-item.selected {
    background: var(--bs-primary, #0d6efd);
    color: #fff;
    font-weight: 600;
}

/* ==========================================
   IN PROGRESS BADGE CUSTOM STYLING
   ========================================== */
.bg-inprogress-subtle {
    background-color: rgba(180, 83, 9, 0.08) !important;
    color: #b45309 !important;
    border: 1px solid rgba(180, 83, 9, 0.25) !important;
}

/* ==========================================
   RESPONSIVE ATTACHMENT CARD TYPOGRAPHY
   ========================================== */
.attachment-title {
    font-size: clamp(0.725rem, 1.1vw, 0.85rem) !important;
    line-height: 1.25;
}

.attachment-size {
    font-size: clamp(0.575rem, 0.9vw, 0.7rem) !important;
}

.attachment-download-btn {
    transition: color 0.2s ease, transform 0.2s ease;
}

.attachment-download-btn:hover {
    color: #1e1b76 !important;
    transform: scale(1.15);
}

/* ==========================================
   VIEW GRIEVANCE MODAL RESPONSIVE TYPOGRAPHY
   ========================================== */
#viewGrievanceModal .modal-title {
    font-size: clamp(1.05rem, 2.2vw, 1.35rem) !important;
}

#viewGrievanceModal #modalTicketId,
#viewGrievanceModal #modalCategory {
    font-size: clamp(0.625rem, 1vw, 0.75rem) !important;
}

#viewGrievanceModal .modal-header .grievance-id#modalTicketId {
    font-size: clamp(0.625rem, 1vw, 0.95rem) !important;
    font-weight: 600;
    color: #0d6efd;
}

#viewGrievanceModal .modal-body h6.fw-bold {
    font-size: clamp(0.775rem, 1.2vw, 0.875rem) !important;
}

#viewGrievanceModal .modal-body .text-muted.fs-xtra-tiny {
    font-size: clamp(0.6rem, 0.9vw, 0.72rem) !important;
}

#viewGrievanceModal #modalDescription {
    font-size: clamp(0.75rem, 1.2vw, 0.85rem) !important;
    line-height: 1.6;
}

.grievance-meta-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.grievance-meta-item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.65rem;
    min-width: 0;
    padding: 1.1rem 1.25rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.grievance-meta-item:hover {
    background-color: rgba(30, 27, 118, 0.025);
}

.grievance-meta-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 18%;
    right: 0;
    width: 1px;
    height: 64%;
    background: linear-gradient(180deg, transparent, #dfe4ea, transparent);
}

.grievance-meta-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.grievance-meta-avatar {
    width: 42px;
    height: 42px;
    border: 2px solid #fff;
    font-size: 13px;
    flex: 0 0 42px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12) !important;
}

#modalCommentsList .comment-author-name {
    font-size: clamp(0.75rem, 1.2vw, 0.75rem) !important;
}

#modalCommentsList p.comment-text {
    font-size: clamp(0.725rem, 1.1vw, 0.85rem) !important;
    font-weight: 500;
}

#modalCommentsList .text-muted.fs-xtra-tiny {
    font-size: clamp(0.575rem, 0.9vw, 0.7rem) !important;
}

#modalCommentsList .comment-body {
    min-width: 0;
}

#modalCommentsList .comment-status .badge {
    max-width: 100%;
    white-space: normal;
    text-align: left;
    line-height: normal;
    font-size: clamp(0.6rem, 0.7vw, 0.6rem) !important;
}

#modalCommentsList .comment-text,
#modalCommentsList .comment-author,
#modalCommentsList .comment-time {
    overflow-wrap: anywhere;
}

#viewGrievanceModal .modal-footer button {
    font-size: clamp(0.75rem, 1.1vw, 0.875rem) !important;
}

/* ==========================================
   VIEW GRIEVANCE MODAL RESPONSIVE LAYOUT
   ========================================== */
@media (max-width: 576px) {
    #viewGrievanceModal .modal-body .attach-files {
        width: 100% !important;
        min-width: auto !important;
    }

    #viewGrievanceModal .modal-header {
        padding: 1.25rem !important;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
        position: relative;
        padding-right: 4rem !important;
    }

    #viewGrievanceModal .grievance-header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    #viewGrievanceModal .grievance-header-actions .btn-close {
        position: absolute;
        top: 1.35rem;
        right: 1.25rem;
        z-index: 2;
        margin: 0;
    }

    #viewGrievanceModal .grievance-header-actions #modalStatusBadge {
        order: 1;
    }

    .grievance-meta-panel {
        grid-template-columns: 1fr;
    }

    .grievance-meta-item {
        padding: 1rem;
        border-bottom: 0;
    }

    .grievance-meta-item:not(:last-child)::after {
        top: auto;
        right: 1rem;
        bottom: 0;
        left: 1rem;
        width: auto;
        height: 1px;
        background: linear-gradient(90deg, transparent, #dfe4ea, transparent);
    }

    .grievance-meta-avatar {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        font-size: 12px;
    }

    #modalCommentsList .comment-item {
        gap: 0.75rem !important;
    }

    #modalCommentsList .comment-avatar {
        width: 34px !important;
        height: 34px !important;
        font-size: 11px !important;
    }

    #modalCommentsList .comment-meta {
        gap: 0.15rem !important;
    }

    #modalCommentsList .comment-role {
        display: block;
        margin-left: 0 !important;
        margin-top: 0.1rem;
    }

    #modalCommentsList .comment-time {
        display: block;
        width: 100%;
    }

    #addReplyFormContainer .reply-composer {
        gap: 0.75rem !important;
    }

    #addReplyFormContainer .reply-avatar {
        width: 34px !important;
        height: 34px !important;
        font-size: 11px !important;
    }

    #addReplyFormContainer .reply-body,
    #addReplyFormContainer .reply-actions,
    #addReplyFormContainer .reply-select-group,
    #addReplyFormContainer .reply-select-wrap,
    #addReplyFormContainer .reply-select,
    #addReplyFormContainer .reply-submit {
        width: 100%;
    }

    #addReplyFormContainer .reply-actions,
    #addReplyFormContainer .reply-select-group {
        align-items: stretch !important;
    }

    #addReplyFormContainer .reply-select-group {
        flex-direction: column;
    }

    #addReplyFormContainer .reply-select {
        min-width: 0 !important;
    }

    #addReplyFormContainer .reply-submit {
        justify-content: center;
    }
}

.comment-textarea:focus {
    border-color: #1e1b76 !important;
    box-shadow: 0 0 0 3px rgba(30, 27, 118, 0.15) !important;
    background-color: #fff !important;
}

.hover-scale {
    transition: all 0.2s ease-in-out !important;
}

.hover-scale:hover {
    transform: translateY(-1px) scale(1.02);
    filter: brightness(1.1);
}

/* Permissions Accordion — 2-column grid on desktop only */
@media (min-width: 992px) {
    .permissions-modal-accordion {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        padding: 0.75rem;
        background: #f5f6fa;
        align-items: start;
    }

    /* Each accordion item: card-separated look */
    .permissions-modal-accordion>.accordion-item {
        border: 1px solid rgba(22, 16, 106, 0.09) !important;
        border-radius: 12px !important;
        overflow: hidden;
        background: #ffffff;
        box-shadow: 0 1px 4px rgba(22, 16, 106, 0.06);
        transition: box-shadow 0.2s ease, transform 0.2s ease;
    }

    /* Hover lift effect on each card */
    .permissions-modal-accordion>.accordion-item:hover {
        box-shadow: 0 4px 14px rgba(22, 16, 106, 0.12);
        transform: translateY(-1px);
    }

    /* Header row inside each card */
    .permissions-modal-accordion>.accordion-item>h2>div {
        border-radius: 12px 12px 0 0;
    }

    /* Expanded panel stays contained within its card */
    .permissions-modal-accordion>.accordion-item>.accordion-collapse {
        width: 100%;
        border-top: 1px dashed rgba(22, 16, 106, 0.1);
    }
}

/* Permissions modal — auto-scroll body */
#setPermissionModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767.98px) {
    #setPermissionModal .modal-body {
        max-height: 75vh;
    }
}