/* input(1642,22): run-time error CSS1030: Expected identifier, found '>'
input(1642,37): run-time error CSS1025: Expected comma or open brace, found ')'
input(1766,22): run-time error CSS1030: Expected identifier, found '.'
input(1766,47): run-time error CSS1025: Expected comma or open brace, found ')'
input(1879,39): run-time error CSS1030: Expected identifier, found '.'
input(1879,49): run-time error CSS1025: Expected comma or open brace, found ')'
input(1919,47): run-time error CSS1030: Expected identifier, found '['
input(1919,56): run-time error CSS1031: Expected selector, found ']'
input(1919,56): run-time error CSS1025: Expected comma or open brace, found ']'
input(2427,26): run-time error CSS1030: Expected identifier, found '>'
input(2427,41): run-time error CSS1025: Expected comma or open brace, found ')' */
/* ===== Mobile sidebar overlay & full-width layout ===== */
@media only screen and (max-width: 768px) {
    /* Slide sidebar off-screen by default */
    .sidebar {
        transform: translateX(-210px);
        z-index: 1050;
        transition: transform 0.3s;
    }

    /* Toggle = slide in as full overlay (not icon-only) */
    #wrapper.toggled .sidebar {
        transform: translateX(0);
        width: 210px !important;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.18);
    }

    /* Keep menu text visible on mobile (desktop toggled hides it) */
    #wrapper.toggled .menu-text,
    #wrapper.toggled .dropdown-arrow {
        display: flex !important;
    }

    /* Semi-transparent backdrop behind open sidebar */
    #wrapper.toggled::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 1040;
    }

    /* Content: full width regardless of sidebar state */
    div#page-content-wrapper,
    #wrapper.toggled div#page-content-wrapper {
        margin-left: 0 !important;
    }

    /* Navbar: ensure full 100% width on mobile */
    .navbar {
        width: 100% !important;
    }

    .total-values-section .col-md-6:nth-child(1) .card, .total-values-section .col-md-6:nth-child(2) .card, .total-values-section .col-md-6:nth-child(3) .card, .total-values-section .col-md-6:nth-child(4) .card {
        margin-bottom: 10px;
    }

    .form-all-fields .row {
        gap: 24px;
    }

    .lead-member-column .row .w-fit {
        flex-direction: column !important;
        gap: 2px !important;
        padding-bottom: 4px;
        border-bottom: 1px solid var(--hr-line-color);
        width: 100%;
        margin-bottom: 15px !important;
    }

        .lead-member-column .row .w-fit .colon {
            display: none;
        }

    .lead-member-column {
        display: flex;
        flex-direction: column;
    }

        .lead-member-column .title {
            width: 100%;
        }

    .row {
        gap: 15px;
    }

    .donation-row {
        flex-direction: column;
    }

    .donation-btns, .donation-btns .d-flex {
        margin-top: 0;
    }

    .donation-row {
        margin-top: 15px;
    }

    /* Dashboard: donation cards stack vertically */
    .dashboard-donation-row {
        flex-direction: column;
    }

    /* Hide email and whatsapp columns in family members table */
    .col-email, .col-whatsapp, .contacts-table {
        display: none;
    }

    /* Reduce FamilyDetail section gap from 48px to 24px */
    .flex-col.gap-5 {
        gap: 24px !important;
    }

    /* Daughter card header stacks vertically */
    .daughter-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Add Family Member button full-width */
    .lead-member-details > a.w-fit {
        width: 100%;
    }

        .lead-member-details > a.w-fit > button {
            width: 100%;
        }

    .receipt-search-box {
        width: 100% !important;
    }
}
/* ===== End mobile sidebar ===== */

@media only screen and (max-width: 1279px) {
    .total-values-heading-and-icon {
        flex-direction: column-reverse;
        gap: 10px;
        align-items: flex-start;
    }

    .font-20 {
        font-size: 18px;
    }

    .font-24 {
        font-size: 22px;
    }

    .lead-member-column .bold {
        width: 185px;
        line-height: 140%;
    }
}

@media only screen and (max-width: 1023px) {
}

@media only screen and (max-width: 992px) {
    .font-24 {
        font-size: 20px;
    }

    .total-values-section .card {
        height: auto;
    }

    .total-values-section .col-md-6:nth-child(1) .card, .total-values-section .col-md-6:nth-child(2) .card {
        margin-bottom: 20px;
    }

    .total-values-heading-and-icon {
        flex-direction: row;
    }

    .lead-member-column .row .w-fit, .lead-member-column .bold {
        width: 100%;
    }

    .lead-member-column .row {
        flex-direction: column;
        width: 100%;
    }

    .lead-member-column .title {
        width: 180px;
    }

    .donation-btns {
        width: 100%;
        margin-top: 10px;
    }

    .donation-fileds label, .donation-fileds p, .donation-fileds select {
        font-size: 14px;
    }

    .donation-fileds select, .donation-fileds input {
        padding: 8px 6px;
    }

    .form-all-fields .row {
        flex-direction: column;
        gap: 24px;
    }

        .form-all-fields .row .col-md-4, .form-all-fields .row .col-md-6 {
            width: 100%;
        }

    /* Hide address and audit columns at tablet — too wide to be useful */
    .col-address, .col-audit {
        display: none;
    }
}

@media only screen and (max-width: 567px) {
    .search-box {
        width: 100% !important;
    }

    /* Donations page: search box and date filter row full-width stacked */
    .receipt-search-box {
        width: 100%;
    }

    .donation-filter-row {
        flex-direction: column !important;
        width: 100%;
    }

        .donation-filter-row > * {
            width: 100%;
        }

    /* flex-row-auto: header action buttons stretch full width when wrapped */
    .flex-row-auto > a {
        width: 100%;
    }

        .flex-row-auto > a > button {
            width: 100%;
        }

    .total-values-section {
        flex-direction: column !important;
    }

    .dates-section{
        flex-direction:column;
        gap: 10px;
    }

    .login-form-section{
        width: 350px !important;
    }
}


/***********Font Family*****************/
body {
  font-family: var(--font-sans);
  font-optical-sizing: auto;
  font-style: normal;
}
.login-card { 
    width: 500px; 
}
.toggle-password {
    position: absolute;
    top: 40px;
    right: 15px;
    cursor: pointer;
}
.sidebar {
    width: 210px;
    transition: all 0.3s;
    height: 100vh;
    position: fixed;
}
#wrapper.toggled .sidebar {
    width: 70px;
}
#wrapper.toggled .menu-text, #wrapper.toggled .dropdown-arrow {
    display: none;
}
#wrapper.toggled #settingsMenu {
    padding-left: 0 !important;
}
#page-content-wrapper {
    transition: all 0.3s;
}
.list-group-item {
    border: none;
}

/***********Logic Screen*************/
.kutumb1-logo {
    width: 180px;
}
.login-page {
    background-image: url('../img/login-bg-img.png');
    background-size: cover;
}

/***********Dashboard Screen*************/
.kutumb1-dashboard-logo {
    height: 64px;
    display: flex;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid var(--hr-line-color);
}

#wrapper.toggled .sidebar .kutumb1-dashboard-logo .logo {
    transform: translateX(-14px);
}

.kutumb1-dashboard-logo .logo {
    height: 45px;
}

.navbar {
    height: 64px;
    border-bottom: 1px solid var(--hr-line-color);
    padding: 12px 24px;
    position: fixed;
    width: stretch;
    z-index: 10;
    overflow: hidden;
}

    .navbar button#menu-toggle:hover {
        background-color: var(--hr-line-color);
    }

    .navbar button#menu-toggle {
        padding: 0px 8px;
        border: 0;
        font-size: 24px;
        color: var(--font-primary-color);
    }

        .navbar button#menu-toggle:focus-visible {
            outline: 2px solid var(--primary-color);
            outline-offset: 2px;
        }
        .form-all-fields .contact-number input:focus,
        .form-all-fields .contact-number select:focus {
            box-shadow: none;
        }

        .navbar button#menu-toggle:active {
            background-color: transparent;
        }

img.profile-icon {
    width: 32px;
    height: 32px;
}

#wrapper.toggled div#page-content-wrapper {
    margin-left: 70px;
}

div#page-content-wrapper {
    margin-left: 210px;
}

.dashboard-menu-list {
    height: calc(100% - 64px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 12px;
}

.dashboard-main-content {
    margin-top: 64px;
    height: stretch;
    background: var(--ghost-white);
}

.dashboard-menu-list a.list-group-item {
    padding: 10px 12px;
    gap: 10px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.dashboard-menu-list .settings-menu.active #settingsMenu .list-group-item {
    gap: 6px;
    padding: 8px 10px;
}

    .dashboard-menu-list span.menu-text, .dashboard-menu-list .settings-menu.active #settingsMenu .list-group-item .menu-text {
        color: var(--font-secondary-color);
        font-size: 14px;
        font-weight: 400;
    }

    .dashboard-menu-list .active .menu-text, .dashboard-menu-list .settings-menu.active #settingsMenu .list-group-item.active-submenu .menu-text {
        color: var(--primary-color);
        font-weight: 700;
    }

.dashboard-menu-list .active svg path {
    stroke: var(--primary-color);
}

.dashboard-menu-list .active svg.material-icons path {
    fill: var(--primary-color);
    stroke: none;
}

.dashboard-menu-list .settings-menu.active #settingsMenu .list-group-item svg path {
    fill: var(--blue-grey);
}

.dashboard-menu-list .settings-menu.active #settingsMenu .list-group-item.active-submenu svg path {
    fill: var(--primary-color);
}

.dashboard-menu-list a.list-group-item.active, .dashboard-menu-list a.list-group-item.active:hover {
    background: var(--grayish-blue);
}

    .dashboard-menu-list a.list-group-item.active::before {
        content: "";
        position: absolute;
        background: var(--primary-color);
        height: 24px;
        width: 2px;
        left: 0;
        border-radius: 0 20px 20px 0;
    }

.dashboard-menu-list a.list-group-item:hover {
    background: var(--icy-blue-color);
}

.sign-out-menu .list-group-item:hover {
    background: var(--light-red-color) !important;
}

    .sign-out-menu .list-group-item:hover svg path {
        stroke: var(--red-color);
    }

    .sign-out-menu .list-group-item:hover .menu-text {
        color: var(--red-color);
    }

.total-values-section .card {
    height: 100%;
    min-height: 116px;
}

.main-page {
    overflow-x: hidden;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.setting-dropdown-arrow {
    display: flex;
    position: absolute;
    right: 12px;
}

#yearSelectDonationYear {
    min-width: 80px;
}

#monthSelectDonation {
    min-width: 115px;
}
/* Rotate arrow when open */
a[aria-expanded="true"] .dropdown-arrow {
    transform: rotate(180deg);
}
.settings-menu #settingsMenu .list-group-item {
    background: none;
    border-left: 0.8px solid var(--hr-line-color);
    border-radius: 0;
    font-size: 14px;
    padding: 8px 12px;
}
.settings-menu #settingsMenu .list-group-item:hover {
    color: var(--primary-color) !important;
}
.settings-menu #settingsMenu {
    padding-top: 4px;
}
.settings-menu #settingsMenu .active-submenu {
    font-weight: 500;
    color: var(--primary-color) !important;
}


/***********Add Family Page Screen*************/
.form-all-field {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}
.form-field {
    width: 32.3%;
}

/***********Lead Member View Page Screen*************/
.lead-member-details .row.mb-2 {
    margin: 0;
}
.lead-member-details .row.mb-2 div {
    padding: 0;
}
.lead-member-column .title {
    color: var(--font-secondary-color);
    font-weight: 600;
    width: 120px;
}
.lead-member-column .bold {
    width: 300px;
}

/***********Receipts Page Screen*************/
.receipts-donation-fields{
    background: var(--ghost-white);
}
.donation-fileds .addRow:focus, .donation-fileds .removeRow:focus{
    box-shadow: none;
}
.donation-row:first-child {
    margin-top: 0;
}
.donation-row {
    margin-top: 24px;
}
.payemnts-fileds .nav-link {
    padding: 10px 12px;
    border: 1px solid var(--hr-line-color);
    border-radius: 8px;
    background: var(--white-color);
    color: var(--font-primary-color);
    transition: linear .2s;
}
.payemnts-fileds .nav-link.active {
    background: var(--primary-color);
    font-weight: 700;
    box-shadow: none;
    transition: linear .2s;
}
div#preview {
    margin: 0 auto;
    object-fit: cover;
    min-width: 150px;
    width: fit-content;
}
.preview-wrapper {
    position: relative;
    display: inline-block;
}
.remove-file {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: var(--red-color);
    color: var(--white-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.role {
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}
span.role.super-admin {
    background-color: #F5F3FF !important;
    color: var(--superadmin-color);
}
span.role.member {
    background-color: #ECFDF5 !important;
    color: var(--member-color);
}
span.role.admin {
    background-color: #EFF6FF !important;
    color: var(--admin-color);
}

/***********Add User Page Screen*************/
.add-user-fileds .toggle-password {
    right: 24px;
}

/***********Signature Page Screen*************/
.signature-image {
    height: 80px;
}
.signature-section{
    display: flex;
}

/***********Number Dropdown CSS*************/
.contact-number {
    display: flex;
    align-items: center;
    border: 1px solid var(--hr-line-color);
    border-radius: 8px;
    color: var(--font-primary-color);
    padding: 0;
    overflow: hidden;
}

.form-all-fields .contact-number select {
    border: 0;
    width: 110px;
    padding: 10px 12px;
    border-right: 1px solid var(--hr-line-color);
    border-radius: 0;
}

.form-all-fields .contact-number input {
    border: 0;
    padding: 10px 12px;
    width: 100%;
}

.addRow, .removeRow{
    min-height: 48px;
}

.text-success .req-icon {
    color: #28a745;
}
/* green ✓ */
.text-danger .req-icon {
    color: #dc3545;
}
/* red ✗   */
.text-muted .req-icon {
    color: #6c757d;
}
/* gray ○  */

/* Additional Css from old project  */

.kpi-card-trend {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--font-secondary-color);
}

.kpi-card-trend-line {
    display: block;
    width: 32px;
    height: 2px;
    border-radius: 999px;
    background: var(--blue-grey);
}

.kpi-card-trend.positive .kpi-card-trend-line {
    background: #16a34a;
}

.kpi-card-trend.positive .kpi-card-trend-text {
    color: #16a34a;
}

.kpi-card-trend.negative .kpi-card-trend-line {
    background: #dc2626;
}

.kpi-card-trend.negative .kpi-card-trend-text {
    color: #dc2626;
}

.kpi-card-trend.neutral .kpi-card-trend-line {
    background: var(--blue-grey);
}

.kpi-card-trend.neutral .kpi-card-trend-text {
    color: var(--font-secondary-color);
}

:root {
    /* Typography */
    --font-sans: "Inter", "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
    /* Primary */
    --primary-color: #035B8C;
    --primary-dark: #024A72;
    --primary-light: #BAE6FD;
    --primary-pressed: #013A5A;
    /* Text */
    --font-primary-color: #111827;
    --font-secondary-color: #4B5563;
    /* Neutrals (gray scale) */
    --white-color: #fff;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    /* Semantic aliases (kept for backward compat) */
    --hr-line-color: var(--gray-200);
    --grayish-blue: #E8F0F5;
    --icy-blue-color: #F0F9FF;
    --ghost-white: var(--gray-50);
    --gray-color: #6A7282;
    --blue-grey: #94A3B8;
    /* Status colors */
    --red-color: #DC2626;
    --light-red-color: #FEE2E2;
    --green-color: #16A34A;
    --light-green: #DCFCE7;
    --warning-color: #EA580C;
    --light-warning: #FFF7ED;
    --info-color: #0891B2;
    --light-info: #ECFEFF;
    /* Role colors */
    --superadmin-color: #7C3AED;
    --admin-color: #2563EB;
    --member-color: #059669;
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-inset: 0 8px 7.7px 0 rgba(255, 255, 255, 0.25) inset; /* no longer used by buttons (flat style in forms.css) */
    --shadow-inset-hover: 0 10px 7px 0 rgba(0, 54, 85, 0.25) inset;
    --focus-ring: 0 0 0 3px rgba(3, 91, 140, 0.25);
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-xl: 12px;
    --radius-full: 9999px;
    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
}

body,
h1, h2, h3, h4, h5, h6,
textarea,
select,
ul,
li,
input,
table,
label,
a,
span,
button,
p {
    font-family: var(--font-sans);
    font-optical-sizing: auto;
    font-style: normal;
    line-height: normal;
    color: var(--font-primary-color);
}

p,
body,
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
}

p {
    font-weight: 400;
}

body {
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

.italic {
    font-style: italic;
}

button {
    cursor: pointer;
}

/*********Width CSS*********/
.w-fit {
    width: fit-content;
}

.w-49 {
    width: 49.2%;
}


/*********Table CSS*********/
.table-responsive {
    border: 1px solid var(--hr-line-color);
    overflow-x: auto;
    min-width: 100%;
    width: 100px;
    scrollbar-width: thin;
    background: var(--white-color);
}

.actions-table {
    width: 130px;
}

th, td {
    padding: 14px 20px !important;
    white-space: nowrap;
}

th {
    background: var(--white-color) !important;
    border-bottom: 2px solid var(--hr-line-color) !important;
    color: var(--font-secondary-color);
    font-weight: 600;
    font-size: 14px;
}

td {
    border-bottom: 1px solid var(--hr-line-color) !important;
    color: var(--font-primary-color);
    font-size: 14px;
}

tbody tr:nth-child(odd) {
    background-color: var(--gray-50);
}

tbody tr:hover {
    background-color: var(--gray-100);
    transition: background-color 0.15s ease;
}

tr:last-child td {
    border-bottom: 0 !important;
}

/*********Active and Inactive Badges***************/
.bg-success {
    background-color: var(--light-green) !important;
    color: #166534 !important;
    font-size: 12px;
}

.bg-inactive {
    background-color: var(--gray-100) !important;
    color: var(--gray-500);
    font-size: 12px;
}

.bg-warning-custom {
    background-color: var(--light-warning) !important;
    color: var(--warning-color);
    font-size: 12px;
}

.bg-info-custom {
    background-color: var(--light-info) !important;
    color: var(--info-color);
    font-size: 12px;
}

.badge {
    text-transform: capitalize;
    padding: 5px 12px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    letter-spacing: 0.02em;
}

/*********Row CSS*********/
.radius-10 {
    border-radius: 10px !important;
}

/*********Label & Input CSS*********/
label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px !important;
}

input.form-control, textarea.form-control, select.form-select, .amount-input-box {
    border: 1.5px solid var(--hr-line-color);
    border-radius: var(--radius-md);
    color: var(--font-primary-color);
    padding: 12px 14px;
    min-height: 44px;
    font-size: 16px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

input.password-field {
    padding-right: 34px;
}

.form-control:focus, select.form-select:focus, .amount-input-box:focus, .amount-input-box:hover {
    border-color: var(--primary-color);
    box-shadow: none;
}

.form-control::placeholder {
    color: #9CA3AF;
}

select.form-select-sm {
    min-height: auto;
    padding: 6px 12px;
    font-size: 14px;
}

.amount-input-box {
    padding: 0;
    background: var(--white-color);
}

    .amount-input-box input:focus {
        box-shadow: none;
    }

/*********Button CSS*********/
.primary-btn {
    display: flex;
    padding: 12px 18px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: var(--radius-md);
    background: var(--primary-color);
    color: var(--white-color);
    font-weight: 700;
    box-shadow: none;
    border: transparent;
    min-height: 44px;
    transition: all .2s ease;
}

    .primary-btn:focus-visible {
        outline: none;
        box-shadow: var(--focus-ring);
    }

a.primary-btn:hover {
    color: white;
}

.secondary-btn {
    background-color: var(--white-color);
    color: var(--font-primary-color);
    font-weight: 400;
}

    .secondary-btn:focus-visible {
        outline: none;
        box-shadow: var(--focus-ring);
        color: var(--font-primary-color);
    }

a.secondary-btn:hover {
    color: var(--font-primary-color);
}

.delete-btn {
    background: var(--red-color);
}

    .delete-btn:hover {
        color: var(--white-color);
    }

    .delete-btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(230, 0, 4, 0.25);
    }

/*********Color CSS*********/
.font-secondary-color {
    color: var(--font-secondary-color);
}

/*********Font Size*********/
.font-14 {
    font-size: 14px;
}

.font-16 {
    font-size: 16px;
}

.font-18 {
    font-size: 18px;
}

.font-20 {
    font-size: 20px;
}

.font-24 {
    font-size: 24px;
}

.font-28 {
    font-size: 28px;
}

/*********Font Weight*********/
.bold {
    font-weight: 700;
}

.semibold {
    font-weight: 600;
}

.mediumbold {
    font-weight: 500;
}

.light-font {
    font-weight: 300;
}

/*********Border CSS*********/
.light-border {
    border: 1px solid var(--hr-line-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

/*********Search Box CSS*********/
.search-box {
    width: 300px;
}

    .search-box .searchbox-icon {
        position: absolute;
        left: 10px;
    }

    .search-box input {
        padding: 10px 16px 10px 30px;
        font-size: 14px;
    }

.receipt-search-box {
    width: 180px;
}

.search-lead-btn {
    width: 100%;
    justify-content: flex-start;
}

/*********Flex Row CSS*********/
.flex-row-auto {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

/*********Hr CSS*********/
hr {
    border: 0;
    background: var(--grayish-blue);
    height: 1px;
    opacity: 1;
    margin: 0;
}

    hr.straight-line {
        width: 1px;
        height: auto;
    }


/*********Popoup CSS*********/
.modal-content {
    border: 1px solid var(--hr-line-color);
    border-radius: var(--radius-xl);
    background: var(--white-color);
    box-shadow: var(--shadow-xl);
}

    .modal-content .btn-close {
        position: absolute;
        right: 24px;
        top: 24px;
        border-radius: var(--radius-full);
        border: 1px solid var(--hr-line-color);
        box-shadow: var(--shadow-sm);
        padding: 10px;
        z-index: 1;
        transform: scale(.9);
    }

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 24px;
}

.modal-footer {
    padding: 24px;
    border-top: 1px solid var(--hr-line-color);
    flex-wrap: nowrap;
    gap: 24px;
}

    .modal-footer button {
        width: 100%;
        margin: 0;
    }

.modal-backdrop {
    width: 100%;
    height: 100%;
}

.modal-header {
    padding: 24px 70px 24px 24px;
    border-bottom: 1px solid var(--hr-line-color) !important;
}

div#receiptsFilterModal .modal-body, div#searchFamilyleadModal .modal-body {
    padding: 24px;
}

div#searchFamilyleadModal .modal-body {
    gap: 24px;
}

img.green-tick {
    width: 60px;
}

/*********Utility Classes (replacing inline styles)*********/
.text-red {
    color: var(--red-color);
}

.text-warning {
    color: var(--warning-color) !important;
}

.text-info-custom {
    color: var(--info-color);
}

.hidden {
    display: none;
}

.receipt-preview {
    max-height: 120px;
    max-width: 200px;
    object-fit: contain;
}

/*********Accessibility - Focus States*********/
a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.list-group-item:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
    z-index: 1;
}

.btn-close:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: none;
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: var(--focus-ring);
}

.badge:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/*********Font Size - Additional*********/
.font-12 {
    font-size: 12px;
}

/*********Accessibility - Toggle Password*********/
.toggle-password-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .toggle-password-btn:focus-visible {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
        border-radius: 4px;
    }

/* Pagination Styles */
.table-pagination {
    padding: 1rem 0;
}

    .table-pagination .page-link {
        padding: 0.25rem 0.5rem;
        min-width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .table-pagination .page-link svg {
            width: 16px;
            height: 16px;
        }

    .table-pagination .page-item.active .page-link {
        background-color: #0d6efd;
        border-color: #0d6efd;
        color: white;
    }

    .table-pagination .page-item.disabled .page-link {
        color: #6c757d;
        pointer-events: none;
        background-color: #fff;
        border-color: #dee2e6;
    }

    .table-pagination .page-item .page-link {
        cursor: pointer;
    }

    .table-pagination .page-item.disabled .page-link {
        cursor: not-allowed;
    }

.table-pagination-info {
    color: #6c757d;
    font-size: 14px;
}

.page-size-select {
    width: auto !important;
    min-width: 70px;
}
/* =========================================================
   Forms: page header, sections, labels, inputs, actions.
   Loaded last in site.min.css so it refines theme.css/style.css.
   ========================================================= */

/* ---------- Page header ---------- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-600);
    transition: color .15s ease;
}

    .back-link svg path {
        fill: currentColor;
    }

    .back-link:hover,
    .back-link:focus-visible {
        color: var(--primary-color);
    }

.page-header .page-title {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--gray-900);
}

.page-header .page-subtitle {
    margin-top: 4px;
    font-size: 14px;
    color: var(--gray-500);
}

/* ---------- Form sections (one card per group of fields) ---------- */
.form-section {
    background: var(--white-color);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: 24px;
}

.form-section-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--gray-100);
}

.form-section-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-lg);
    background: var(--icy-blue-color);
    color: var(--primary-color);
}

.form-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
}

.form-section-description {
    margin-top: 2px;
    font-size: 13px;
    color: var(--gray-500);
}

.form-section .row + .row {
    margin-top: 18px;
}

/* ---------- Labels ---------- */
.form-all-fields .form-label,
.modal .form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 6px !important;
}

    /* Required marker: existing forms use an inline red span */
    .form-label .required,
    .form-label span[style*="color: red"] {
        color: var(--red-color) !important;
        font-weight: 600;
        margin-left: 1px;
    }

.form-hint,
.form-all-fields small.font-secondary-color {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--gray-500);
}

/* ---------- Inputs ---------- */
input.form-control,
textarea.form-control,
select.form-select {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 15px;
    color: var(--gray-900);
    background-color: var(--white-color);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
}

select.form-select {
    padding-right: 36px;
}

textarea.form-control {
    resize: vertical;
    line-height: 1.45;
}

    input.form-control:hover,
    textarea.form-control:hover,
    select.form-select:hover {
        border-color: var(--gray-400);
    }

    input.form-control:focus,
    textarea.form-control:focus,
    select.form-select:focus {
        border-color: var(--primary-color);
        box-shadow: var(--focus-ring);
        outline: none;
    }

.form-control::placeholder {
    color: var(--gray-400);
}

.form-control:disabled,
.form-select:disabled {
    background-color: var(--gray-50);
    color: var(--gray-500);
    border-color: var(--gray-200);
}

/* Country code + number in one box */
.form-all-fields .contact-number,
.modal .contact-number {
    min-height: 44px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: var(--white-color);
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .form-all-fields .contact-number:hover {
        border-color: var(--gray-400);
    }

    .form-all-fields .contact-number:focus-within {
        border-color: var(--primary-color);
        box-shadow: var(--focus-ring);
    }

    .form-all-fields .contact-number select {
        width: 104px;
        min-height: 42px;
        font-size: 14px;
        font-weight: 500;
        background-color: var(--gray-50);
        border: 0;
        border-right: 1px solid var(--gray-200);
        box-shadow: none;
    }

    .form-all-fields .contact-number input {
        min-height: 42px;
        border: 0;
        box-shadow: none;
    }

        .form-all-fields .contact-number input:hover,
        .form-all-fields .contact-number select:hover,
        .form-all-fields .contact-number input:focus,
        .form-all-fields .contact-number select:focus {
            border-color: transparent;
            border-right-color: var(--gray-200);
            box-shadow: none;
        }

/* ---------- Donation: payment method pills and proof upload ---------- */
.form-section .payemnts-fileds .nav-link {
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-color: var(--gray-300);
    color: var(--gray-700);
}

    .form-section .payemnts-fileds .nav-link:hover:not(.active):not(:disabled) {
        background: var(--gray-50);
        border-color: var(--gray-400);
    }

    .form-section .payemnts-fileds .nav-link.active {
        color: var(--white-color);
        border-color: var(--primary-color);
        font-weight: 600;
    }

.form-section #dropArea {
    margin-top: 0 !important;
    padding: 32px 16px !important;
    border: 1.5px dashed var(--gray-300);
    border-radius: var(--radius-xl);
    background: var(--gray-50) !important;
    transition: border-color .2s ease, background-color .2s ease;
}

    .form-section #dropArea:hover,
    .form-section #dropArea.border-primary {
        border-color: var(--primary-color);
        background: var(--icy-blue-color) !important;
    }

/* ---------- Actions ---------- */
.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
}

/* Buttons: flat single colour (no inset shine). Hover darkens and lifts slightly,
   press darkens further, keyboard focus shows a ring. */
.primary-btn {
    font-size: 15px;
    font-weight: 600;
    padding: 10px 20px;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    box-shadow: none;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}

    .primary-btn:hover,
    a.primary-btn:hover {
        background: var(--primary-dark);
        border-color: var(--primary-dark);
        color: var(--white-color);
        box-shadow: 0 2px 6px rgba(3, 91, 140, 0.25);
    }

    .primary-btn:active {
        background: var(--primary-pressed);
        border-color: var(--primary-pressed);
        box-shadow: none;
    }

    .primary-btn:focus-visible {
        outline: none;
        box-shadow: var(--focus-ring);
    }

    .primary-btn:disabled,
    .primary-btn[disabled] {
        opacity: .55;
        cursor: not-allowed;
        box-shadow: none;
    }

        .primary-btn:disabled:hover {
            background: var(--primary-color);
            border-color: var(--primary-color);
        }

.secondary-btn {
    background: var(--white-color);
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    box-shadow: none;
    font-weight: 500;
}

    .secondary-btn:hover,
    a.secondary-btn:hover {
        background: var(--gray-50);
        color: var(--gray-900);
        border-color: var(--gray-400);
        box-shadow: none;
    }

    .secondary-btn:active {
        background: var(--gray-100);
        border-color: var(--gray-400);
    }

    .secondary-btn:disabled:hover {
        background: var(--white-color);
        border-color: var(--gray-300);
    }

.delete-btn {
    background: var(--red-color);
    border-color: var(--red-color);
}

    .delete-btn:hover {
        background: #B91C1C;
        border-color: #B91C1C;
        box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
    }

    .delete-btn:active {
        background: #991B1B;
        border-color: #991B1B;
        box-shadow: none;
    }

/* ---------- Two-column settings layout ----------
   A form with sections becomes one panel. Each section shows its title and
   description on the left and its fields on the right, separated by dividers.
   The Cancel / Save bar sticks to the bottom of the screen while scrolling. */
.form-all-fields:has(> .form-section) {
    gap: 0 !important;
    background: var(--white-color);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    padding: 0 28px;
}

.form-all-fields > .form-section {
    display: grid;
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    column-gap: 48px;
    row-gap: 0;
    padding: 28px 0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

    .form-all-fields > .form-section + .form-section {
        border-top: 1px solid var(--gray-200);
    }

    /* everything except the header goes in the right-hand column */
    .form-all-fields > .form-section > * {
        grid-column: 2;
    }

    .form-all-fields > .form-section > .form-section-header {
        grid-column: 1;
        grid-row: 1 / span 40;
        align-self: start;
        flex-direction: column;
        gap: 10px;
        padding: 0;
        margin: 0;
        border: 0;
    }

        .form-all-fields > .form-section > .form-section-header .form-section-icon {
            width: 34px;
            height: 34px;
        }

        .form-all-fields > .form-section > .form-section-header .form-section-description {
            margin-top: 4px;
            line-height: 1.5;
        }

.form-all-fields > .form-actions {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: 0 -28px;
    padding: 14px 28px;
    background: var(--white-color);
    border-top: 1px solid var(--gray-200);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* ---------- Password with show / hide eye (Views/Shared/_PasswordEye.cshtml) ---------- */
.password-input {
    position: relative;
}

    .password-input input.form-control {
        padding-right: 44px;
    }

.password-eye {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--gray-500);
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

    .password-eye:hover {
        background: var(--gray-100);
        color: var(--gray-800);
    }

    .password-eye:focus-visible {
        outline: none;
        box-shadow: var(--focus-ring);
    }

    .password-eye .eye-closed,
    .password-eye.is-visible .eye-open {
        display: none;
    }

    .password-eye.is-visible .eye-closed {
        display: block;
    }

/* ---------- Switch cards (Married / Passed away on the member forms) ----------
   Title and hint on the left, switch on the right; the related date opens inside the card. */
.toggle-tile {
    height: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white-color);
    transition: border-color .15s ease, background-color .15s ease;
}

    .toggle-tile:hover {
        border-color: var(--gray-300);
    }

    .toggle-tile:has(.form-check-input:checked) {
        border-color: var(--primary-light);
        background: var(--icy-blue-color);
    }

.toggle-tile-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.toggle-tile-title {
    display: block;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--gray-900);
    cursor: pointer;
}

.toggle-tile-hint {
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--gray-500);
}

.toggle-tile .form-switch {
    flex-shrink: 0;
    padding: 0;
    margin: 0;
}

    .toggle-tile .form-switch .form-check-input {
        width: 40px;
        height: 22px;
        margin: 0;
        cursor: pointer;
        border-color: var(--gray-300);
    }

        .toggle-tile .form-switch .form-check-input:checked {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
        }

        .toggle-tile .form-switch .form-check-input:focus {
            box-shadow: var(--focus-ring);
        }

.toggle-tile-field {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--primary-light);
}

/* ---------- Menus (⋯ on member cards, Manage on Admins, family header) ---------- */
.dropdown-menu {
    min-width: 200px;
    padding: 6px;
    margin-top: 4px !important;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
}

    .dropdown-menu .dropdown-item {
        padding: 8px 12px;
        border-radius: var(--radius-md);
        font-weight: 500;
        color: var(--gray-700);
        white-space: nowrap;
    }

        .dropdown-menu .dropdown-item:hover,
        .dropdown-menu .dropdown-item:focus {
            background: var(--gray-100);
            color: var(--gray-900);
        }

        .dropdown-menu .dropdown-item:active {
            background: var(--gray-200);
            color: var(--gray-900);
        }

        .dropdown-menu .dropdown-item.text-danger:hover,
        .dropdown-menu .dropdown-item.text-danger:focus {
            background: var(--light-red-color);
            color: var(--red-color) !important;
        }

    .dropdown-menu .dropdown-item-text {
        padding: 6px 12px;
        line-height: 1.4;
    }

    .dropdown-menu .dropdown-divider {
        margin: 6px 4px;
        border-color: var(--gray-100);
        opacity: 1;
    }

    .dropdown-menu .dropdown-header {
        padding: 6px 12px 4px;
        font-size: 11.5px;
        font-weight: 600;
        letter-spacing: .04em;
        text-transform: uppercase;
        color: var(--gray-400);
    }

    /* Items with a leading icon */
    .dropdown-menu .dropdown-item:has(.menu-icon),
    .dropdown-menu .menu-note {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .dropdown-menu .menu-icon {
        flex-shrink: 0;
        color: var(--gray-400);
    }

    .dropdown-menu .dropdown-item:hover .menu-icon,
    .dropdown-menu .dropdown-item:focus .menu-icon {
        color: var(--primary-color);
    }

    .dropdown-menu .dropdown-item.text-danger .menu-icon {
        color: currentColor;
    }

    .dropdown-menu .menu-note {
        align-items: flex-start;
        max-width: 240px;
        font-size: 12.5px;
        color: var(--gray-500);
        white-space: normal;
    }

.member-menu {
    min-width: 230px;
}

/* "Same as contact number" tick box under WhatsApp */
.same-as-contact {
    margin-top: 8px;
    font-size: 13px;
}

    /* WhatsApp field while it mirrors the contact number */
    .form-all-fields .contact-number:has(input[readonly]),
    .form-all-fields .contact-number:has(input[readonly]) input,
    .form-all-fields .contact-number:has(input[readonly]) select {
        background-color: var(--gray-50);
        color: var(--gray-500);
    }

    .same-as-contact .form-check-label {
        font-weight: 400;
        color: var(--gray-600);
        margin-bottom: 0 !important;
    }

/* Tablets: section header above its fields */
@media (max-width: 991.98px) {
    .form-all-fields > .form-section {
        grid-template-columns: minmax(0, 1fr);
    }

        .form-all-fields > .form-section > * {
            grid-column: 1;
        }

        .form-all-fields > .form-section > .form-section-header {
            grid-row: auto;
            flex-direction: row;
            align-items: center;
            gap: 12px;
            margin-bottom: 20px;
        }
}

/* The page column next to the sidebar may shrink: wide content (the family tree, wide tables)
   scrolls inside its own box instead of pushing the page wider than the window */
#page-content-wrapper {
    min-width: 0;
}

/* ---------- List pages (Families, Donations, Categories): compact card and filter row ---------- */
.list-card {
    padding: 16px 20px !important;
    gap: 16px !important;
}

    /* search box: icon inside on the left, text starts after it */
    .list-card .search-box {
        border: 1px solid var(--gray-300);
        border-radius: var(--radius-md);
        transition: border-color .15s ease, box-shadow .15s ease;
    }

        .list-card .search-box:focus-within {
            border-color: var(--primary-color);
            box-shadow: var(--focus-ring);
        }

        .list-card .search-box .searchbox-icon {
            left: 12px;
            z-index: 1;
            pointer-events: none;
        }

        .list-card .search-box input.form-control {
            min-height: 36px; /* + the box's 1px border = 38px, same as the buttons */
            padding: 7px 12px 7px 36px;
            font-size: 14px;
            border: 0;
            box-shadow: none;
        }

    /* filter row controls: one height, 38px */
    .list-card input.form-control:not(.search-box input) {
        min-height: 38px;
        padding: 7px 12px;
        font-size: 14px;
    }

    .list-card .flex-row-auto .primary-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 38px;
        padding: 7px 16px;
        font-size: 14px;
    }

    .list-card th,
    .list-card td {
        padding: 12px 16px !important;
    }

    /* Donations: wider search, lighter date labels */
    .list-card .receipt-search-box {
        width: 260px;
    }

    .list-card .dates-section label {
        margin-bottom: 0 !important;
        font-weight: 500;
        color: var(--gray-600);
    }

/* ---------- List rows: person with initials, "You" tag, row ⋯ menu ---------- */
.person-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.person-avatar {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--icy-blue-color);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
}

.person-avatar.is-female {
    background: #FCE7F3;
    color: #BE185D;
}

.cell-note {
    display: block;
    font-size: 12px;
    color: var(--gray-500);
}

.address-cell {
    min-width: 220px;
    max-width: 320px;
    white-space: normal !important;
    line-height: 1.4;
}

.tag-you {
    padding: 1px 8px;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--gray-600);
}

.table-link {
    font-weight: 500;
    color: var(--primary-color);
}

    .table-link:hover {
        text-decoration: underline;
    }

.row-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--gray-600);
    transition: background-color .15s ease, border-color .15s ease;
}

    .row-menu-btn:hover,
    .row-menu-btn[aria-expanded="true"] {
        background: var(--gray-100);
        border-color: var(--gray-200);
        color: var(--gray-900);
    }

/* Row action icons (edit, delete, preview...) */
.row-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

    .row-actions a,
    .row-actions button {
        display: inline-flex;
        padding: 6px;
        border: 0;
        border-radius: var(--radius-md);
        background: none;
        color: var(--gray-500);
        transition: background-color .15s ease, color .15s ease;
    }

        .row-actions a:hover,
        .row-actions button:hover,
        .row-actions a:focus-visible,
        .row-actions button:focus-visible {
            background: var(--gray-100);
            color: var(--primary-color);
        }

/* ---------- Kalri brand: sidebar emblem + name, sign-in logo ---------- */
.kutumb1-dashboard-logo {
    gap: 10px;
}

    .kutumb1-dashboard-logo .logo {
        height: 40px;
        width: auto;
    }

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #0F4C35;
}

.brand-product {
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .04em;
    color: var(--gray-500);
}

    /* Gujarati name under "Kalri": a little larger than the Latin label so the script stays legible */
    .brand-product[lang="gu"] {
        margin-top: 1px;
        font-size: 13.5px;
        font-weight: 600;
        letter-spacing: 0;
        color: #C4582A;
    }

#wrapper.toggled .brand-text {
    display: none;
}

.login-card .kalri-logo {
    width: 150px;
    height: auto;
}

.login-site-link {
    color: #0F4C35;
    font-weight: 500;
    text-decoration: none;
}

.login-site-link:hover {
    text-decoration: underline;
}

/* Sidebar: Families > Daughters sits indented under Families (not when the sidebar is collapsed) */
.dashboard-menu-list a.list-group-item.sub-menu-item {
    padding-left: 30px;
}

#wrapper.toggled .dashboard-menu-list a.list-group-item.sub-menu-item {
    padding-left: 12px;
}

/* Settings menu icon drawn with lines (not a filled icon) */
#financialYearsMenu svg path,
#committeePositionsMenu svg path {
    fill: none !important;
}

/* ---------- Committee: period picker, period actions, position tag ---------- */
.period-list-title {
    margin: 4px 4px 6px;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
}

.period-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.period-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-left: 3px solid transparent;
    border-radius: var(--radius-md);
    color: var(--gray-800);
    text-decoration: none;
    transition: background-color .15s ease;
}

    .period-item:hover {
        background: var(--gray-50);
        color: var(--gray-900);
    }

    .period-item.is-selected {
        background: var(--icy-blue-color);
        border-left-color: var(--primary-color);
        border-radius: 0 var(--radius-md) var(--radius-md) 0;
    }

        .period-item.is-selected .period-dates {
            color: var(--primary-color);
        }

.period-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.period-dates {
    font-size: 14.5px;
    font-weight: 600;
}

.period-count {
    font-size: 12.5px;
    color: var(--gray-500);
}

.period-actions .primary-btn {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 7px 14px;
    font-size: 14px;
}

.danger-outline-btn {
    background: var(--white-color);
    color: var(--red-color);
    border: 1px solid #FCA5A5;
}

    .danger-outline-btn:hover,
    .danger-outline-btn:focus-visible {
        background: var(--light-red-color);
        color: #B91C1C;
        border-color: var(--red-color);
        box-shadow: none;
    }

.position-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    background: var(--icy-blue-color);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--primary-color);
}

/* Dashboard: financial year picker (titles like "FY 2026-27" need room) */
.fy-dashboard-select {
    width: auto !important;
    min-width: 150px;
}

/* ---------- List grids: grey header row ---------- */
thead th {
    background: var(--gray-100) !important;
    border-bottom: 1px solid var(--gray-200) !important;
    color: var(--gray-600);
}

    /* Sortable columns (table-pagination.js): arrows show the current order */
    thead th.sortable {
        cursor: pointer;
        user-select: none;
        transition: color .15s ease;
    }

        thead th.sortable::after {
            content: "↕";
            margin-left: 6px;
            font-size: 11px;
            color: var(--gray-400);
        }

        thead th.sortable:hover {
            color: var(--gray-900);
        }

        thead th.sortable:focus-visible {
            outline: none;
            box-shadow: inset var(--focus-ring);
        }

        thead th.sortable[aria-sort="ascending"],
        thead th.sortable[aria-sort="descending"] {
            color: var(--primary-color);
        }

        thead th.sortable[aria-sort="ascending"]::after {
            content: "↑";
            color: var(--primary-color);
        }

        thead th.sortable[aria-sort="descending"]::after {
            content: "↓";
            color: var(--primary-color);
        }

/* ---------- List paging bar (built by table-pagination.js): compact, controls 32px high ---------- */
.table-pagination {
    padding: 0;
    font-size: 13.5px;
}

    .table-pagination label {
        margin-bottom: 0 !important;
        font-weight: 400;
        color: var(--gray-600);
    }

    .table-pagination .page-size-select {
        min-height: 32px;
        height: 32px;
        padding: 4px 30px 4px 10px;
        font-size: 13.5px;
        background-position: right 8px center;
    }

    .table-pagination .table-pagination-info {
        font-size: 13.5px;
        color: var(--gray-500);
    }

    .table-pagination .page-item.active .page-link {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

/* ---------- Pop-ups: compact header (title 18px, close button centred on it) ---------- */
.modal-header:not(.form-section-header) {
    padding: 16px 60px 14px 24px;
    border-bottom: 1px solid var(--gray-100) !important;
}

.modal .modal-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.01em;
    color: var(--gray-900);
}

.modal-content .btn-close {
    top: 14px;
    right: 16px;
    padding: 8px;
    transform: scale(.8);
    box-shadow: none;
}

    .modal-content .btn-close:hover {
        background-color: var(--gray-100);
    }

/* ---------- Pop-up forms (e.g. Committee period / member) ---------- */
.modal-header.form-section-header {
    justify-content: flex-start;
    text-align: left;
    padding: 24px 56px 16px 24px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--gray-100) !important;
}

.modal-footer.form-actions {
    padding: 16px 24px;
    border-top: 1px solid var(--gray-100);
}

/* ---------- Small screens ---------- */
@media (max-width: 767.98px) {
    .form-section {
        padding: 18px 16px;
    }

    /* reponsive.css stacks the columns with a 24px gap; match it between rows */
    .form-section .row + .row {
        margin-top: 24px;
    }

    /* 16px stops iOS from zooming into the field on focus */
    input.form-control,
    textarea.form-control,
    select.form-select {
        font-size: 16px;
    }

    .form-all-fields:has(> .form-section) {
        padding: 0 16px;
    }

    .form-all-fields > .form-section {
        padding: 22px 0;
    }

    /* buttons side by side so the sticky bar stays short */
    .form-actions {
        flex-direction: row;
        align-items: stretch;
    }

        .form-actions .primary-btn {
            flex: 1;
            white-space: nowrap;
            padding-left: 12px;
            padding-right: 12px;
        }

    .form-all-fields > .form-actions {
        margin: 0 -16px;
        padding: 12px 16px;
    }

    .page-header .page-title {
        font-size: 20px;
    }
}

/* Settings > Jain Panchang: month switcher and today's row */
.panchang-month-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.panchang-month-nav .primary-btn {
    min-width: 0;
    padding: 6px 14px;
    text-decoration: none;
}

.panchang-table tr.panchang-today td {
    background: #E8F2EC;
}

