/* =========================================
   COMMON START
========================================= */

/* File Tracker */
/* .datatable-input {
    padding: 0.25rem 0.25rem;
} */

/* =========================================
   COMMON END
========================================= */

/* =========================================
   HOME START
========================================= */

/* =========================================
   HOME END
========================================= */

.form-step {
    display: none;
}

.form-control {
    background-color: #f7f7f7;
}

.form-select {
    background-color: #f7f7f7;
}

.form-step.active {
    display: block;
}

.form-container {
    margin-top: 50px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* max-width: 1600px !important; */
}

.invalid-feedback {
    display: none;
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

.right {
    float: right;
}

.mleft {
    margin-left: 20px;
}

.is-invalid + .invalid-feedback {
    display: block;
}

.form-container.create-form .tabs {
    display: flex;
    margin-bottom: 10px;
}

.btn-sec {
    text-align: right;
}

.form-container.create-form .tab {
    padding: 10px;
    cursor: pointer;
    border: 1px solid #ddd;
    flex: 1;
    text-align: center;
}

.form-check-input:checked {
    background-color: #002e4c;
}

button.prev-applicant {
    background-color: #002e4c !important;
}

button.prev-inner {
    background: #002e4c !important;
}

/* .prev-tab {
    background: #002e4c !important;
} */

.form-container .tab.active {
    background: #002e4c;
    color: #fff;
}

/* button.add-applicant {
    background: #2b5741 !important;
} */

.form-container.create-form .tab-content {
    display: none;
}

.create-form .tab-content.active {
    display: block;
}

.form-container.create-form .inner-step {
    display: none;
}

.form-container.create-form .inner-step.active {
    display: block;
}

.form-container.create-form .hidden {
    display: none;
}

.form-container.create-form .button {
    margin: 5px;
    padding: 5px 10px;
    color: white;
    border: none;
    cursor: pointer;
}

.add-immovable-property {
    border-radius: 50px;
}

.add-account-detail {
    border-radius: 50px;
}

.add-loan-detail {
    border-radius: 50px;
}

.add-salary-income {
    border-radius: 50px;
}

.add-movable-asset {
    border-radius: 50px;
}

.add-family-member {
    border-radius: 50px;
}

.remove-income-detail {
    border-radius: 50px;
    padding: 6px 12px;
}

.addBorrower {
    border-radius: 50px;
}

.add-business-income {
    border-radius: 50px;
}

.create-form button.btn.btn-danger.btn-sm.remove-button {
    border-radius: 50px;
    padding: 6px 12px;
}

.remove-two-row-button {
    border-radius: 50px;
    padding: 6px 12px;
}

.add-two-row-button {
    border-radius: 50px;
    padding: 6px 12px;
}

.remove-borrower {
    border-radius: 50px;
    padding: 6px 12px;
}

.create-form .step_form_btn {
    display: flex;
    justify-content: end;
}

.create-form .tab-content {
    display: none;
}

.create-form .tab-content.active {
    display: block;
}

.create-form .tab {
    cursor: pointer;
    display: inline-block;
    margin: 5px;
    padding: 10px;
    background: #ddd;
    border-radius: 5px;
}

.create-form .tab.active {
    background: #aaa;
}

.create-form .inner-step {
    display: none;
}

.create-form .inner-step.active {
    display: block;
}

.create-form .form-block {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
}

.create-form .tabs {
    display: flex;
    margin-bottom: 10px;
}

.create-form .tab {
    padding: 10px;
    cursor: pointer;
    border: 1px solid #ddd;
    flex: 1;
    text-align: center;
}

.create-form .tab.active {
    background: #0056b3;
    color: #fff;
}

.create-form .tab-content {
    display: none;
}

.create-form .tab-content.active {
    display: block;
}

.create-form .inner-step {
    display: none;
}

.create-form .inner-step.active {
    display: block;
}

.hidden {
    display: none;
}

button {
    padding: 5px 10px;
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

.create-form button.btn.btn-danger.btn-sm.remove-button {
    background-color: red;
}

@media only screen and (max-width: 700px) {
    div#addDisbursement {
        margin-bottom: 20px;
    }
    .create-form .tabs {
        display: unset !important;
    }
}

@media only screen and (max-width: 1440px) {
    .navbar .navbar-nav .nav-link {
        font-size: 12px;
    }
}

.card.card-link-pop.p-3.d-flex.flex-row.justify-content-between {
    position: relative;
    box-shadow:
        0 0.46875rem 2.1875rem rgba(4, 9, 20, 0.03),
        0 0.9375rem 1.40625rem rgba(4, 9, 20, 0.03),
        0 0.25rem 0.53125rem rgba(4, 9, 20, 0.05),
        0 0.125rem 0.1875rem rgba(4, 9, 20, 0.03);
    background: #f5f5f5;
}

.bg-yellow
    .card.card-link-pop.p-3.d-flex.flex-row.justify-content-between:after {
    background-size: cover;
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background-image: url(../../../images/a2.svg);
    background-repeat: no-repeat;
    right: 0;
    top: 0;
    z-index: -10;
    opacity: 0.4;
}

svg.icon.icon-tabler.icons-tabler-outline.icon-tabler-sum {
    width: 50px;
    height: 50px;
    z-index: 1000;
}

svg.icon.icon-tabler.icons-tabler-outline.icon-tabler-clock-hour-10 {
    width: 50px;
    height: 50px;
    z-index: 1000;
}

svg.icon.icon-tabler.icons-tabler-outline.icon-tabler-circle-dashed-check {
    width: 50px;
    height: 50px;
    z-index: 1000;
}

svg.icon.icon-tabler.icons-tabler-outline.icon-tabler-file-check {
    width: 50px;
    height: 50px;
    z-index: 1000;
}

svg.icon.icon-tabler.icons-tabler-outline.icon-tabler-tax-pound {
    width: 50px;
    height: 50px;
    z-index: 1000;
}

svg.icon.icon-tabler.icons-tabler-outline.icon-tabler-calendar-dollar {
    width: 50px;
    height: 50px;
    z-index: 1000;
}

.card.card-link-pop.p-3.d-flex.flex-row.justify-content-between::before {
    background-size: cover;
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background-image: url(../../../images/a1.svg);
    background-repeat: no-repeat;
    right: 0;
    top: 0;
}

.bg-green
    .card.card-link-pop.p-3.d-flex.flex-row.justify-content-between::before {
    background-size: cover;
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background-image: url(../../../images/a3.svg);
    background-repeat: no-repeat;
    right: 0;
    top: 0;
    opacity: 0.4;
    z-index: 100;
}

.bg-green h3.card-header {
    background-color: #e4f6f9;
}

.bg-green header.navbar.navbar-expand-md.d-print-none.header {
    background-color: #e4f6f9;
    color: #000;
}

.bg-green header.navbar.navbar-expand-md.d-print-none.header svg {
    color: #000;
}

.bg-green footer.footer.footer-transparent.d-print-none {
    background-color: #e4f6f9;
    color: #000;
}

header.navbar.navbar-expand-md.d-print-none.header {
    background-color: #687487;
    color: #fff;
}

header.navbar.navbar-expand-md.d-print-none.header svg {
    color: #fff;
}

footer.footer.footer-transparent.d-print-none {
    background-color: #687487;
    color: #fff;
}

.color-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid white;
}

.btn1 {
    background-color: #76dbe9;
}

.btn2 {
    background-color: #8493f1;
}

.btn3 {
    background-color: #687487;
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

h3.card-header {
    background: #e9f1f6;
}

.bg-yellow1 h3.card-header {
    background: #f1f3ff;
}

.bg-yellow1 header.navbar.navbar-expand-md.d-print-none.header {
    background-color: #f1f3ff;
    color: #000;
}

.bg-yellow1 header.navbar.navbar-expand-md.d-print-none.header svg {
    color: #000;
}

.bg-yellow1 footer.footer.footer-transparent.d-print-none {
    background-color: #f1f3ff;
    color: #000;
}

a.link-secondary {
    color: #1a1820 !important;
}

.bg-blue {
    background-color: #007bff !important;
}

.bg-yellow1 .page-wrapper {
    background-color: #f9faff !important;
}

.bg-yellow1
    .card.card-link-pop.p-3.d-flex.flex-row.justify-content-between:after {
    background-size: cover;
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background-image: url(../../../images/a2.svg);
    background-repeat: no-repeat;
    right: 0;
    top: 0;
    z-index: 100;
    opacity: 0.4;
}

.card.card-link-pop.p-3.d-flex.flex-row.justify-content-between:after {
    background-size: cover;
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background-image: url(../../../images/a1.svg);
    background-repeat: no-repeat;
    right: 0;
    top: 0;
    z-index: 100;
    opacity: 0.8;
}

svg.icon.icon-tabler.icons-tabler-outline.icon-tabler-sum {
    width: 40px;
    height: 40px;
    z-index: 1000;
}

svg.icon.icon-tabler.icons-tabler-outline.icon-tabler-clock-hour-10 {
    width: 40px;
    height: 40px;
    z-index: 1000;
}

svg.icon.icon-tabler.icons-tabler-outline.icon-tabler-circle-dashed-check {
    width: 40px;
    height: 40px;
    z-index: 1000;
}

svg.icon.icon-tabler.icons-tabler-outline.icon-tabler-file-check {
    width: 40px;
    height: 40px;
    z-index: 1000;
}

svg.icon.icon-tabler.icons-tabler-outline.icon-tabler-tax-pound {
    width: 40px;
    height: 40px;
    z-index: 1000;
}

svg.icon.icon-tabler.icons-tabler-outline.icon-tabler-calendar-dollar {
    width: 40px;
    height: 40px;
    z-index: 1000;
}

svg.icon.icon-tabler.icons-tabler-outline.icon-tabler-report {
    width: 40px;
    height: 40px;
    z-index: 1000;
}

.card.card-link-pop.p-3.d-flex.flex-row.justify-content-between:after {
    background-size: cover;
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background-image: url(../../../images/a1.svg);
    background-repeat: no-repeat;
    right: 0;
    top: 0;
}

.bg-green
    .card.card-link-pop.p-3.d-flex.flex-row.justify-content-between:after {
    background-size: cover;
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background-image: url(../../../images/a3.svg);
    background-repeat: no-repeat;
    right: 0;
    top: 0;
    opacity: 0.4;
}

.bg-green h3.card-header {
    background-color: #e4f3f5;
}

.bg-green header.navbar {
    background-color: #d7f9ff;
    color: #000;
}

.bg-green header.navbar svg {
    color: #000;
}

.bg-green {
    background-color: #fff !important;
}

.bg-green footer.footer.footer-transparent.d-print-none {
    background-color: #d7f9ff;
    color: #000;
}

header.navbar {
    background-color: #687487;
    color: #fff;
}

header.navbar svg {
    color: #fff;
}

footer.footer.footer-transparent.d-print-none {
    background-color: #687487;
    color: #fff;
}

.bg-yellow1 header.navbar {
    background-color: #d8deff;
}

.bg-yellow1 header.navbar svg {
    color: #000;
}

.bg-yellow1 footer.footer.footer-transparent.d-print-none {
    background-color: #d8deff;
    color: #000;
}

a.link-secondary {
    color: #1a1820 !important;
}

@media (min-width: 1440px) {
    /* Styles for screens 1440px and up */
    .card-body h3 {
        font-size: 14px;
    }
    .card-body h4 {
        font-size: 13px;
    }
    svg.icon.icon-tabler.icons-tabler-outline.icon-tabler-sum,
    svg.icon.icon-tabler.icons-tabler-outline.icon-tabler-clock-hour-10,
    svg.icon.icon-tabler.icons-tabler-outline.icon-tabler-circle-dashed-check,
    svg.icon.icon-tabler.icons-tabler-outline.icon-tabler-file-check,
    svg.icon.icon-tabler.icons-tabler-outline.icon-tabler-tax-pound {
        width: 25px;
        height: 25px;
        z-index: 1000;
    }
}

.d-flex.flex-column.ind {
    z-index: 1000;
    position: relative;
}

.nav-item svg.icon {
    color: #fff;
}

.navbar-brand-image {
    height: 60px;
}

.no-left-right-radius {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.loan_edit {
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.bg-yellow1 .no-left-right-radius {
    background-color: #d8deff;
}

.bg-yellow1 .create-form .tab.active {
    background-color: #d8deff;
    color: #000;
}

.tab {
    border-radius: 10px;
}

table .dropdown-menu.show {
    inset: unset !important;
    transform: unset !important;
}

.table td select {
    pointer-events: auto;
}

.dropdown-menu.dropdown-menu-end.drop_css.show {
    z-index: 300000000;
}

.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.custom-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    position: relative;
}

.custom-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.custom-modal-close img {
    width: 100%;
    max-height: 80vh;
}

.modal-download {
    margin-top: 10px;
    display: inline-block;
}

.file-block {
    display: flex;
    position: relative;
}

.file-actions {
    display: flex !important;
    position: absolute;
    right: 5px;
    border-left: 1px solid #cdcdcd;
}

.file-actions button {
    background-color: transparent;
    padding: 5px 5px !important;
    margin: 5px;
    border: none;
    cursor: pointer;
}

.file-actions i {
    color: #000;
}

iframe {
    max-width: 800px;
    width: 100%;
    min-width: 800px;
}

.file-actions i {
    font-size: 13px;
}

#customModal button {
    background-color: transparent;
}

#customModal i {
    color: #000;
}

svg.icon.icon-tabler.icons-tabler-outline.icon-tabler-calendar-dollar {
    width: 25px;
    height: 25px;
    z-index: 1000;
}

svg.icon.icon-tabler.icons-tabler-outline.icon-tabler-report {
    width: 25px;
    height: 25px;
    z-index: 1000;
}

span.badge.bg-primary.text-white {
    position: absolute;
    top: 0;
    width: 35px;
    height: 35px;
    display: flex;
    border-bottom-right-radius: 30px;
    left: 0;
}

.calcualte_info h4 {
    font-size: 22px;
    line-height: 26px;
    text-align: center;
}

.calcualte_info h1 {
    text-align: center;
}

.plusButton {
    /* Config start */
    --plus_sideLength: 1.5rem;
    --plus_topRightTriangleSideLength: 0.9rem;
    /* Config end */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid white;
    width: var(--plus_sideLength);
    height: var(--plus_sideLength);
    overflow: hidden;
}

.plusButton > .plusIcon {
    fill: white;
    width: calc(var(--plus_sideLength) * 0.7);
    height: calc(var(--plus_sideLength) * 0.7);
    z-index: 1;
    transition-timing-function: ease-in-out;
    transition-duration: 0.2s;
}

.calcualte_info {
    position: sticky;
    top: 0;
    right: 0;
    height: 100%;
}

.benefit-box {
    background: #ffffff;
    border: 2px solid #f3f4f6;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    animation: fadeIn 0.8s ease-out both;
}

.benefit-box-odd::after {
    background: #f5a623;
}

.benefit-box-odd h4 {
    color: #f5a623;
}

.benefit-box-even::after {
    background: #052e4c;
}

.benefit-box-even h4 {
    color: #052e4c;
}

.benefit-box ul li {
    font-size: 16px;
}

.benefit-box-odd:hover {
    border-color: #052e4c;
    box-shadow: 0 8px 24px rgba(5, 46, 76, 0.25);
    transform: translateY(-2px);
}

.benefit-box-even:hover {
    border-color: #f5a623;
    box-shadow: 0 8px 24px rgba(245, 166, 35, 0.15);
    transform: translateY(-2px);
}

.benefit-box hr.box-hr {
    width: 60%;
    margin: 0.5rem auto;
    border: 0;
    border-top: 2px solid #ffa500;
    opacity: 1;
}

.benefit-box-even hr.box-hr {
    border-top-color: #ffa500;
}

.benefit-box-odd hr.box-hr {
    border-top-color: #1e3a5f;
}

/* CSS for file upload input */
.custom-file-box {
    display: flex;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    overflow: hidden;
    width: 100%;
    padding: 3px;
}

.custom-file-btn {
    flex-shrink: 0;
    white-space: nowrap;
    background: #e9ecef;
    padding: 6px 12px;
    border-right: 1px solid #ced4da;
    white-space: nowrap;
}

.custom-file-name {
    padding: 6px 75px 6px 12px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-file-hidden {
    display: none;
}

/* =========================================
   TRANSACTION MODULE
========================================= */

/* =========================================
   TRANSACTION DASHBOARD START
========================================= */

.tx-dashboard-toolbar {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
    padding: 24px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 24px;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.96),
        rgba(248, 250, 252, 0.94)
    );
    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.06),
        0 2px 8px rgba(15, 23, 42, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(14px);
    overflow: hidden;
}

.tx-dashboard-toolbar::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at top left,
            rgba(99, 102, 241, 0.08),
            transparent 30%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(16, 185, 129, 0.06),
            transparent 28%
        );
    pointer-events: none;
}

.tx-dashboard-toolbar__left,
.tx-dashboard-toolbar__filters {
    position: relative;
    z-index: 2;
}

.tx-dashboard-toolbar__left {
    min-width: 240px;
}

.tx-dashboard-toolbar__heading {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.6px;
    color: #0f172a;
}

.tx-dashboard-toolbar__subheading {
    margin-top: 4px;
    font-size: 13px;
    color: #64748b;
}

.tx-dashboard-toolbar__filters {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.tx-dashboard-toolbar__group {
    min-width: 200px;
}

.tx-dashboard-toolbar__label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.tx-dashboard-toolbar__label i {
    font-size: 12px;
}

.tx-dashboard-toolbar__control {
    height: 46px;
    border-radius: 14px;
    border: 1px solid #dbe3ee;
    background: #ffffff;
    font-size: 14px;
    font-weight: 500;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.tx-dashboard-toolbar__control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}

@media (max-width: 992px) {
    .tx-dashboard-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .tx-dashboard-toolbar__filters {
        width: 100%;
    }
    .tx-dashboard-toolbar__group {
        flex: 1 1 100%;
        min-width: unset;
    }
}

.tx-dashboard-section {
    margin-bottom: 42px;
}

.tx-dashboard-section__header {
    margin-bottom: 22px;
}

.tx-dashboard-section__title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.6px;
}

.tx-dashboard-section__subtitle {
    margin-top: 4px;
    font-size: 13px;
    color: #64748b;
}

.tx-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

@media (max-width: 1600px) {
    .tx-dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .tx-dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .tx-dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .tx-dashboard-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.tx-dashboard-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 108px;
    padding: 14px 16px;
    overflow: clip;
    border-radius: 16px;
    transform: translateZ(0);
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.98),
        rgba(248, 250, 252, 0.98)
    );
    box-shadow:
        0 3px 12px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.tx-dashboard-card:hover {
    text-decoration: none;
    transform: translate3d(0, -3px, 0);
    box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.tx-dashboard-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at top right,
        rgba(255, 255, 255, 0.45),
        transparent 40%
    );
    pointer-events: none;
}

.tx-dashboard-card__content {
    position: relative;
    z-index: 2;
}

.tx-dashboard-card__label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.tx-dashboard-card__value {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.6px;
    color: #0f172a;
    overflow-wrap: anywhere;
}

.tx-dashboard-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    position: relative;
    z-index: 2;
}

.tx-dashboard-card--income .tx-dashboard-card__label {
    color: #059669;
}

.tx-dashboard-card--income .tx-dashboard-card__value {
    color: #065f46;
}

.tx-dashboard-card--income {
    background: linear-gradient(145deg, #ffffff, #f0fdf4);
}

.tx-dashboard-card--income .tx-dashboard-card__icon {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.tx-dashboard-card--commission .tx-dashboard-card__label {
    color: #d97706;
}

.tx-dashboard-card--commission .tx-dashboard-card__value {
    color: #92400e;
}

.tx-dashboard-card--commission {
    background: linear-gradient(145deg, #ffffff, #fffbeb);
}

.tx-dashboard-card--commission .tx-dashboard-card__icon {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.tx-dashboard-card--gross .tx-dashboard-card__label {
    color: #2563eb;
}

.tx-dashboard-card--gross .tx-dashboard-card__value {
    color: #1e3a8a;
}

.tx-dashboard-card--gross {
    background: linear-gradient(145deg, #ffffff, #eff6ff);
}

.tx-dashboard-card--gross .tx-dashboard-card__icon {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.tx-dashboard-card--expense .tx-dashboard-card__label {
    color: #dc2626;
}

.tx-dashboard-card--expense .tx-dashboard-card__value {
    color: #991b1b;
}

.tx-dashboard-card--expense {
    background: linear-gradient(145deg, #ffffff, #fef2f2);
}

.tx-dashboard-card--expense .tx-dashboard-card__icon {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.tx-dashboard-card--net .tx-dashboard-card__label {
    color: #7c3aed;
}

.tx-dashboard-card--net .tx-dashboard-card__value {
    color: #4c1d95;
}

.tx-dashboard-card--net {
    background: linear-gradient(145deg, #ffffff, #f5f3ff);
    border-color: rgba(196, 181, 253, 0.35);
}

.tx-dashboard-card--net .tx-dashboard-card__icon {
    background: rgba(139, 92, 246, 0.12);
    color: #7c3aed;
}

.tx-dashboard-card--net:hover {
    box-shadow:
        0 16px 32px rgba(139, 92, 246, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .tx-dashboard-grid {
        gap: 12px;
    }
    .tx-dashboard-card {
        min-height: 96px;
        padding: 12px;
    }
    .tx-dashboard-card__value {
        font-size: 18px;
    }
    .tx-dashboard-card__icon {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* =========================================
   TRANSACTION DASHBOARD END
========================================= */

/* =========================================
   TRANSACTION MODULE END
========================================= */

/* =========================================
   HRMS MODULE START
========================================= */

/* =========================================
   LEAVE DASHBOARD START
========================================= */

/* Leave Balance Section */
.hrm-leave-card {
    background: #ffffff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    transition: all 0.2s ease;
    height: 100%;
}

.hrm-leave-card:hover {
    transform: translateY(-2px);
}

.hrm-leave-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.hrm-leave-card__title {
    margin: 0 0 4px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.hrm-leave-card__value {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    color: #111827;
}

.hrm-leave-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
}

.hrm-leave-card__icon--primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.hrm-leave-card__icon--warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.hrm-leave-card__icon--success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.hrm-leave-card__icon--info {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.hrm-leave-card__stats {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e5e7eb;
}

.hrm-leave-card__stat {
    font-size: 13px;
    font-weight: 600;
}

.hrm-leave-card__stat strong {
    font-size: 14px;
}

.hrm-leave-card__stat--cl {
    color: #2563eb;
}

.hrm-leave-card__stat--sl {
    color: #d97706;
}

.hrm-leave-card__stat--pl {
    color: #7c3aed;
}

/* Calendar Section */
.calendar-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    max-width: 100%;
    overflow: hidden;
}

.calendar-nav {
    background: #052e4b;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.calendar-nav:hover {
    background: #074166;
    transform: scale(1.05);
}

.current-month {
    font-weight: 600;
    color: #052e4b;
    font-size: 16px;
    min-width: 140px;
    text-align: center;
}

.calendar-header {
    background-color: #f6b221;
    border-radius: 8px;
    padding: 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    width: 100%;
    margin-top: 15px;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    color: #052e4b;
    padding: 8px 2px;
    font-size: 11px;
    background: transparent;
}

.calendar-day {
    aspect-ratio: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8f9fa;
    padding: 4px;
    position: relative;
    border: 2px solid transparent;
    min-height: 45px;
    max-height: 80px;
}

.calendar-day:hover {
    background: #e9ecef;
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-day.other-month {
    color: #ccc;
    background: #fafafa;
}

.calendar-day.other-month:hover {
    background: #f5f5f5;
    transform: none;
}

/* Today */
.calendar-day.today {
    background: #0d2137;
    border: 2px solid #1a3a5c;
    color: #ffffff;
}

.calendar-day.today:hover {
    background: #1a3a5c;
}

/* Present */
.calendar-day.present {
    background: #d1fae5;
    border: 2px solid #10b981;
    color: #065f46;
}

.calendar-day.present:hover {
    background: #a7f3d0;
}

.calendar-day.wop {
    background: #d1fae5;
    border: 2px solid #10b981;
    color: #065f46;
}

.calendar-day.wop:hover {
    background: #a7f3d0;
}

/* Casual Leave */
.calendar-day.cl {
    background: #dbeafe;
    border: 2px solid #3b82f6;
    color: #1e3a8a;
}

.calendar-day.cl:hover {
    background: #bfdbfe;
}

.calendar-day.leave {
    background: #dbeafe;
    border: 2px solid #3b82f6;
    color: #1e3a8a;
}

.calendar-day.leave:hover {
    background: #bfdbfe;
}

/* Sick Leave */
.calendar-day.sl {
    background: #fce7f3;
    border: 2px solid #ec4899;
    color: #9d174d;
}

.calendar-day.sl:hover {
    background: #fbcfe8;
}

/* Payed Leave */
.calendar-day.pl {
    background: #ede9fe;
    border: 2px solid #8b5cf6;
    color: #5b21b6;
}

.calendar-day.pl:hover {
    background: #ddd6fe;
}

/* Half Casual Leave */
.calendar-day.hcl {
    background: #e0f2fe;
    border: 2px dashed #0284c7;
    color: #0c4a6e;
}

.calendar-day.hcl:hover {
    background: #bae6fd;
}

/* Half Sick Leave */
.calendar-day.hsl {
    background: #fbcfe8;
    border: 2px dashed #db2777;
    color: #831843;
}

.calendar-day.hsl:hover {
    background: #f9a8d4;
}

/* Absent */
/* .calendar-day.absent {
    background: #d8b4fe;
    border: 2px dashed #7c3aed;
    color: #4c1d95;
}

.calendar-day.absent:hover {
    background: #c084fc;
} */

.calendar-day.absent {
    background: #f8caca;
    border: 2px dashed #dc2626;
    color: #7f1d1d;
}

.calendar-day.absent:hover {
    background: #efb4b4;
}

/* Holiday Present */
.calendar-day.hp {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    color: #92400e;
}

.calendar-day.hp:hover {
    background: #fde68a;
}

.calendar-day.holiday {
    background: #fde68a;
    border: 2px solid #d97706;
    color: #78350f;
}

.calendar-day.holiday:hover {
    background: #fcd34d;
}

/* .calendar-day.hd {
    background: #fef9c3;
    border: 2px solid #eab308;
    color: #713f12;
}

.calendar-day.hd:hover {
    background: #fef08a;
} */

.calendar-day.hd {
    background: #c4b5fd;
    border: 2px dashed #7c3aed;
    color: #4c1d95;
}

.calendar-day.hd:hover {
    background: #a78bfa;
}

.calendar-day.wo {
    background: #fef9c3;
    border: 2px solid #eab308;
    color: #713f12;
}

.calendar-day.wo:hover {
    background: #fef08a;
}

.calendar-day.pending-leave {
    background: #fef3c7;
    border: 2px solid #f59e0b;
    color: #92400e;
}

.calendar-day.pending-leave:hover {
    background: #fde68a;
}

.calendar-day.approved-leave {
    background: #bbf7d0;
    border: 2px solid #16a34a;
    color: #14532d;
}

.calendar-day.approved-leave:hover {
    background: #86efac;
}

.calendar-day.lt {
    background: #fecaca;
    border: 2px solid #dc2626;
    color: #7f1d1d;
}

.calendar-day.lt:hover {
    background: #fca5a5;
}

.day-number {
    font-size: 11px;
    font-weight: 500;
}

.legend-item {
    display: flex;
    align-items: center;
    /* gap: 6px; */
    font-size: 12px;
    color: #666;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Existing ones - keep as is */
.legend-color.today {
    background: #0d2137;
    border: 2px solid #1a3a5c;
}

.legend-color.present {
    background: #d1fae5;
    border: 2px solid #10b981;
}

.legend-color.leave {
    background: #dbeafe;
    border: 2px solid #3b82f6;
}

.legend-color.sl {
    background: #fce7f3;
    border: 2px solid #ec4899;
}

.legend-color.pl {
    background: #ede9fe;
    border: 2px solid #8b5cf6;
}

.legend-color.hcl {
    background: #e0f2fe;
    border: 2px solid #0284c7;
}

.legend-color.hsl {
    background: #fbcfe8;
    border: 2px solid #db2777;
}

.legend-color.absent {
    background: #f8caca;
    border: 2px dashed #dc2626;
}

.legend-color.hp {
    background: #fef3c7;
    border: 2px solid #f59e0b;
}

.legend-color.holiday {
    background: #fde68a;
    border: 2px solid #d97706;
}

.legend-color.hd {
    background: #c4b5fd;
    border: 2px dashed #7c3aed;
}

.legend-color.lt {
    background: #ffedd5;
    border: 2px solid #f97316;
}

.legend-color.wo {
    background: #fef9c3;
    border: 2px solid #eab308;
}

.legend-color.pending {
    background: #fef3c7;
    border: 2px solid #f59e0b;
}

.legend-color.approved {
    background: #bbf7d0;
    border: 2px solid #16a34a;
}

.legend-color.rejected {
    background: #fecaca;
    border: 2px solid #dc2626;
}

/* Mobile First - Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .calendar-section {
        padding: 12px;
        border-radius: 8px;
    }

    .calendar-nav {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .current-month {
        font-size: 13px;
        min-width: 110px;
    }

    .calendar-grid {
        gap: 3px;
        margin-top: 10px;
    }

    .calendar-day-header {
        font-size: 9px;
        padding: 6px 1px;
    }

    .calendar-day {
        min-height: 38px;
        max-height: 55px;
        padding: 2px;
        border-radius: 4px;
    }

    .day-number {
        font-size: 10px;
    }

    .legend-item {
        font-size: 11px;
        gap: 5px;
    }

    .legend-color {
        width: 14px;
        height: 14px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .calendar-section {
        padding: 15px;
    }

    .calendar-nav {
        width: 34px;
        height: 34px;
        font-size: 17px;
    }

    .current-month {
        font-size: 14px;
        min-width: 130px;
    }

    .calendar-grid {
        gap: 4px;
    }

    .calendar-day-header {
        font-size: 10px;
        padding: 7px 2px;
    }

    .calendar-day {
        min-height: 42px;
        max-height: 65px;
        padding: 3px;
    }

    .day-number {
        font-size: 10px;
    }

    .legend-item {
        font-size: 12px;
    }

    .legend-color {
        width: 15px;
        height: 15px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .calendar-section {
        padding: 18px;
    }

    .calendar-nav {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .current-month {
        font-size: 16px;
        min-width: 150px;
    }

    .calendar-grid {
        gap: 5px;
    }

    .calendar-day-header {
        font-size: 11px;
        padding: 8px 3px;
    }

    .calendar-day {
        min-height: 50px;
        max-height: 75px;
        padding: 4px;
    }

    .day-number {
        font-size: 11px;
    }

    .legend-item {
        font-size: 13px;
    }

    .legend-color {
        width: 16px;
        height: 16px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .calendar-section {
        padding: 20px;
    }

    .calendar-nav {
        width: 38px;
        height: 38px;
        font-size: 19px;
    }

    .current-month {
        font-size: 17px;
        min-width: 160px;
    }

    .calendar-grid {
        gap: 6px;
    }

    .calendar-day-header {
        font-size: 12px;
        padding: 9px 4px;
    }

    .calendar-day {
        min-height: 60px;
        max-height: 90px;
        padding: 6px;
    }

    .day-number {
        font-size: 12px;
    }

    .legend-item {
        font-size: 13px;
    }

    .legend-color {
        width: 18px;
        height: 18px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .calendar-section {
        padding: 22px;
    }

    .calendar-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .current-month {
        font-size: 18px;
        min-width: 170px;
    }

    .calendar-grid {
        gap: 7px;
    }

    .calendar-day-header {
        font-size: 13px;
        padding: 10px 5px;
    }

    .calendar-day {
        min-height: 70px;
        max-height: 100px;
        padding: 7px;
    }

    .day-number {
        font-size: 13px;
    }

    .legend-item {
        font-size: 14px;
    }

    .legend-color {
        width: 20px;
        height: 20px;
    }
}

/* Extra extra large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .calendar-section {
        padding: 25px;
    }

    .calendar-nav {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .current-month {
        font-size: 19px;
        min-width: 180px;
    }

    .calendar-grid {
        gap: 8px;
    }

    .calendar-day-header {
        font-size: 14px;
        padding: 10px 6px;
    }

    .calendar-day {
        min-height: 80px;
        max-height: 110px;
        padding: 8px;
    }

    .day-number {
        font-size: 14px;
    }

    .legend-item {
        font-size: 14px;
    }

    .legend-color {
        width: 20px;
        height: 20px;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .calendar-day {
        min-height: 35px;
        max-height: 50px;
    }

    .calendar-section {
        padding: 10px;
    }

    .calendar-grid {
        gap: 2px;
    }
}

/* =========================================
   DASHBOARD
========================================= */

.hrms-dashboard-card {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-left: 5px solid transparent;
    border-radius: 16px;
    padding: 24px;
    height: 100%;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.hrms-dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.hrms-dashboard-card__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.hrms-dashboard-card__label {
    margin: 0 0 10px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.hrms-dashboard-card__value {
    margin: 0;
    color: #0f172a;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
}

.hrms-dashboard-card__icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}

/* =========================================
   PENDING LEAVE
========================================= */

.hrms-dashboard-card--pending {
    border-left-color: #f59e0b;
}

.hrms-dashboard-card--pending .hrms-dashboard-card__icon {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

/* =========================================
   APPROVED LEAVE
========================================= */

.hrms-dashboard-card--approved {
    border-left-color: #10b981;
}

.hrms-dashboard-card--approved .hrms-dashboard-card__icon {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

/* =========================================
   REJECTED LEAVE
========================================= */

.hrms-dashboard-card--rejected {
    border-left-color: #ef4444;
}

.hrms-dashboard-card--rejected .hrms-dashboard-card__icon {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

/* =========================================
   PRESENT EMPLOYEE
========================================= */

.hrms-dashboard-card--present {
    border-left-color: #06b6d4;
}

.hrms-dashboard-card--present .hrms-dashboard-card__icon {
    background: rgba(6, 182, 212, 0.12);
    color: #06b6d4;
}

/* =========================================
   ABSENT EMPLOYEE
========================================= */

.hrms-dashboard-card--absent {
    border-left-color: #8b5cf6;
}

.hrms-dashboard-card--absent .hrms-dashboard-card__icon {
    background: rgba(139, 92, 246, 0.12);
    color: #8b5cf6;
}

/* =========================================
   ON LEAVE EMPLOYEE
========================================= */

.hrms-dashboard-card--leave {
    border-left-color: #ec4899;
}

.hrms-dashboard-card--leave .hrms-dashboard-card__icon {
    background: rgba(236, 72, 153, 0.12);
    color: #ec4899;
}

/* =========================================
   INCENTIVE TARGET MODAL
========================================= */

#incentiveTargetModal .modal-content {
    --brand-navy: #0b3556;
    --brand-navy-dark: #072742;
    --brand-gold: #f6b21f;
    --brand-gold-dark: #d99400;
}

#incentiveTargetModal .incentive-header {
    background: linear-gradient(
        135deg,
        var(--brand-navy) 0%,
        var(--brand-navy-dark) 100%
    );
    position: relative;
    padding: 2rem 1.5rem 1.75rem;
}

#incentiveTargetModal .incentive-badge {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background: var(--brand-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 0 0 6px rgba(246, 178, 31, 0.18);
}

#incentiveTargetModal .incentive-header h2 {
    color: #fff;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

#incentiveTargetModal .incentive-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

#incentiveTargetModal .incentive-count {
    color: var(--brand-navy);
    font-size: 1.9rem;
    line-height: 1;
}

#incentiveTargetModal .incentive-count small {
    color: #8a94a3;
    font-size: 0.8rem;
    font-weight: 500;
}

#incentiveTargetModal .progress {
    background-color: #eef1f5;
    border-radius: 999px;
    overflow: hidden;
}

#incentiveTargetModal .progress-bar {
    background: linear-gradient(
        90deg,
        var(--brand-gold-dark),
        var(--brand-gold)
    );
}

#incentiveTargetModal .incentive-summary {
    background: #f7f9fb;
    border: 1px solid #edf0f4;
    border-radius: 0.75rem;
    color: #45526a;
    font-size: 0.9rem;
}

#incentiveTargetModal .incentive-summary strong {
    color: var(--brand-navy);
}

#incentiveTargetModal .incentive-amount {
    color: var(--brand-gold-dark);
}

#incentiveTargetModal .incentive-metric-label {
    color: #8a94a3;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

#incentiveTargetModal .btn-incentive {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    color: var(--brand-navy-dark);
    font-weight: 600;
}

#incentiveTargetModal .btn-incentive:hover,
#incentiveTargetModal .btn-incentive:focus {
    background: var(--brand-gold-dark);
    border-color: var(--brand-gold-dark);
    color: #fff;
}

/* =========================================
   MULTI-FILE DOCUMENT UPLOAD: ADD (+) / REMOVE (-) BUTTONS
   Logo colours (navy and gold). Kept here, in the <head>, so the buttons
   are drawn in these colours from the first paint.
========================================= */

.multi-file-group .add-multi-file-btn,
.multi-file-extra .remove-multi-file-box-btn {
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

/* add: navy, turns gold on hover */
.multi-file-group .add-multi-file-btn {
    background-color: #062f4b;
    border-color: #062f4b;
    color: #fff;
}

.multi-file-group .add-multi-file-btn:hover,
.multi-file-group .add-multi-file-btn:focus,
.multi-file-group .add-multi-file-btn:active {
    background-color: #f5b321;
    border-color: #f5b321;
    color: #062f4b;
}

/* remove: soft gold with navy icon, turns navy on hover */
.multi-file-extra .remove-multi-file-box-btn {
    background-color: rgba(245, 179, 33, 0.18);
    border-color: #f5b321;
    color: #062f4b;
}

.multi-file-extra .remove-multi-file-box-btn:hover,
.multi-file-extra .remove-multi-file-box-btn:focus,
.multi-file-extra .remove-multi-file-box-btn:active {
    background-color: #062f4b;
    border-color: #062f4b;
    color: #fff;
}

/* =========================================
   DOCUMENT CARDS: ICON AND DOWNLOAD ICON
   Logo colours (navy and gold). Used on the loan download documents and
   uploaded documents pages.
========================================= */

/* document icon: navy icon on a soft gold circle, solid gold on hover.
   "i.doc-icon" (not ".doc-icon") so it wins over Font Awesome's own display/width rules,
   which load after this file. */
i.doc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    line-height: 1;
    border-radius: 50%;
    color: #062f4b;
    background-color: rgba(245, 179, 33, 0.18);
    transition: background-color 0.2s ease;
}

.card-link:hover .doc-icon {
    background-color: #f5b321;
}

/* download icon: navy, gold on hover */
.doc-download {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: #062f4b;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.card-link:hover .doc-download {
    color: #f5b321;
    transform: translateY(2px);
}

/* ===================== TABLE ACTION ICONS (CIBIL) ===================== */
.cibil-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 50%;
    background: rgba(245, 179, 33, 0.18);
    color: #062f4b;
    cursor: pointer;
    transition:
        background 0.2s,
        color 0.2s;
}

.cibil-action:hover {
    background: #062f4b;
    color: #f5b321;
}

.cibil-action.delete-cibil:hover {
    background: #d63939;
    color: #fff;
}

.cibil-action.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.cibil-action.disabled:hover {
    background: rgba(245, 179, 33, 0.18);
    color: #062f4b;
}

/* ================= SAVE AS DRAFT (create-form toolbar) =================
   Top-right toolbar above the tabs; a secondary (outline) action so it doesn't compete
   with the step navigation, filling navy on hover. */
.form-container.create-form .form-toolbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.form-container.create-form .save-draft-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    border: 1px solid rgba(6, 47, 75, 0.25);
    border-radius: 10px;
    background: #fff;
    color: #062f4b;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}

.form-container.create-form .save-draft-btn i {
    font-size: 15px;
}

.form-container.create-form .save-draft-btn:hover {
    background: #062f4b;
    border-color: #062f4b;
    color: #fff;
}

.form-container.create-form .save-draft-btn:focus-visible {
    outline: 2px solid #f5b321;
    outline-offset: 2px;
}

.form-container.create-form .save-draft-btn:disabled {
    background: #f5f7fa;
    border-color: #e4e8ee;
    color: #64748b;
    opacity: 1;
    cursor: progress;
}

.form-container.create-form .save-draft-btn .spinner-border {
    margin-right: 0 !important;
}

@media (max-width: 767.98px) {
    .form-container.create-form .save-draft-btn {
        width: 100%;
    }
}

/* ================= PAN + VERIFY BUTTON (input-group) =================
   The PAN / Aadhaar verify button is attached to the right end of the PAN input,
   same height as the input, so PAN needs only one column (col-md-4). */
.pan-input-group {
    flex-wrap: nowrap;
}

.pan-input-group > .form-control {
    min-width: 0;
}

.pan-input-group > .pan-verify-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 46px;
    margin: 0;
    padding: 0;
    border-top-right-radius: var(--tblr-border-radius, 6px) !important;
    border-bottom-right-radius: var(--tblr-border-radius, 6px) !important;
    box-shadow: none;
}

.pan-input-group > .pan-verify-btn:disabled {
    opacity: 1;
}

/* Verified (PAN - Aadhaar linked): a status badge, not an action. Keep pointer events so
   the "PAN - Aadhaar linked" tooltip shows, and use the "not allowed" cursor so it's clear
   it can't be clicked. */
.pan-input-group > .pan-verify-btn.btn-success:disabled {
    pointer-events: auto;
    cursor: not-allowed;
}

.pan-input-group > .pan-verify-btn.btn-success:disabled:hover {
    background-color: var(--tblr-success, #2fb344);
    border-color: var(--tblr-success, #2fb344);
}

.pan-input-group + .invalid-feedback,
.pan-input-group + label.error {
    display: block;
}
