:root {
    --primary: #00127A;
    --primary-dark: #001672;
    --accent: #FFB800;
    --success: #18A957;
    --light-bg: #F4F7FC;
    --border: #D9E1F2;
    --text: #111827;
    --muted: #6B7280;
    --white: #fff;
    --soft-pillow: #FFF5E7;
    --cheddar: #F59E0B;
    --celadon-mist: #EAF8EF;
    --mustard-yellow: #d9b61d;
    --buttercup: #e24d5d;
    --persian-red: #DC2626;
    --artyClick-blue: #4967D8;
    --midnight-blue: #071437;
    --blue-gray: #5E6B85;
    --black: #000;
    --azureish-white: #DCE3F1;
    --light-grayish: #F5F7FC;
    --bright-gray: #E8EDF5;
    --shade-of-cool: #60708D;
    --slate-gray: #64748B;
    --ghost-white: #F8FAFC;
    --solitude: #E2E8F0;
    --royal-blue: #4B66E8;
    --mint-green: #EEF8F2;
    --orange-color: #F58313;
}

body {
    margin: 0;
    background: var(--light-bg);
    font-family: 'Archivo', sans-serif;
}

#financialDetail {
    padding-right: 0px !important;
}

.finance-overview-section {
    padding: 40px 20px;
}

.finance-company-card {
    max-width: 1400px;
}

.right-section-div {
    padding: 15px;
    flex: 1;
}

.common-title {
    color: var(--primary) !important;
}

/* HEADER */

.finance-company-header {
    background: var(--white);
    border-radius: 24px;
    padding: 13px 30px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.finance-company-left {
    display: flex;
    gap: 20px;
}

.finance-company-icon {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 20px;
    background: rgba(0, 26, 140, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.company-title {
    margin: 0;
    font-size: 25px;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.2;
}

.finance-company-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.finance-company-meta span {
    color: var(--blue-gray);
    font-size: 15px;
}

.finance-company-status {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.status-badge {
    background: rgba(24, 169, 87, 0.12);
    color: var(--success);
    padding: 10px 16px;
    border-radius: 40px;
    font-weight: 600;
}

.account-status-badge {
    background: rgba(24, 169, 87, 0.12);
    padding: 10px 16px;
    border-radius: 40px;
    font-weight: 600;
}

.report-date {
    color: var(--muted);
}

.business-info-finance-page {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    white-space: normal;
}

/* BUTTONS */

.btn-view-primary {
    display: flex;
    align-items: center;
    /* justify-content: center;
    text-decoration: none;
    padding: 12px 10px; */
    /* border-radius: 12px; */
    font-weight: 600;
    /* font-size: 15px; */
    gap: 10px;
    background: #fff;
    color: #1D0176;
    border: 2px solid #1D0176;
    margin: 0px;
}

.btn-view-primary:hover {
    background: #fff;
    /* color: #1D0176; */
    color: #fff !important;
}

.finance-company-actions {
    display: flex;
    gap: 14px;
}

.btn-share,
.btn-download {
    height: 52px;
    padding: 0 24px;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
}

.btn-share {
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--primary);
}

.btn-download {
    background: var(--primary);
    color: var(--white);
}

.btn-download:hover {
    background: var(--accent);
    color: var(--black);
}

/* GRID */

.finance-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 28px;
}

.finance-stat-card {
    background: var(--white);
    border: 1px solid var(--azureish-white);
    border-radius: 24px;
    padding: 15px 26px;
    position: relative;
    overflow: hidden;
    transition: 0.3s ease;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    max-height: 100%;
}

.finance-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 26, 140, 0.08);
}

.finance-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-label {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary);
}

.finance-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: var(--solitude);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.finance-card-icon.success {
    background: var(--celadon-mist);
    color: var(--success);
}

.finance-card-icon.warning {
    background: var(--soft-pillow);
    color: var(--cheddar);
}

.finance-score {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.grade {
    font-size: 45px;
    font-weight: 300;
    line-height: 1;
}

.value {
    font-size: 20px;
    color: var(--blue-gray);
}

.finance-main-value,
.finance-strength-main-value,
.finance-negative-main-value {
    margin: 0;
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
    color: var(--midnight-blue);
}

.finance-subtitle,
.finance-strength-subtitle,
.finance-negative-subtitle {
    margin-bottom: 0;
    color: var(--slate-gray);
    line-height: 1.5;
}

.finance-bottom-info {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 40px;
}

.finance-bottom-info span {
    font-size: 15px;
    color: var(--slate-gray);
}

.finance-payment-info {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 24px;
}

.progress-circle {
    width: 76px;
    height: 76px;
    min-width: 76px;
    border-radius: 50%;
    background:
        conic-gradient(var(--success) 0% 100%,
            var(--solitude) 100% 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.progress-circle::before {
    content: "";
    position: absolute;
    width: 56px;
    height: 56px;
    background: var(--white);
    border-radius: 50%;
}

.progress-circle span {
    position: relative;
    z-index: 2;
    font-size: 13px;
    font-weight: 700;
    color: var(--success);
}

.payment-text p {
    margin: 0 0 6px;
    font-size: 15px;
    color: var(--blue-gray);
    line-height: 1.5;
}

.finance-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.finance-tag {
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
}

.finance-tag.green {
    background: var(--celadon-mist);
    color: var(--success);
}

.finance-tag.orange {
    background: var(--soft-pillow);
    color: var(--cheddar);
}

.finance-chart-line {
    position: relative;
    height: 70px;
    margin-top: 20px;
}

.finance-chart-line::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 3px;
    background:
        linear-gradient(90deg,
            var(--primary),
            var(--royal-blue));
    border-radius: 30px;
    transform: skewY(-6deg);
}

.growth {
    color: var(--success) !important;
    font-weight: 700;
}

.chart-growth {
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 16px;
    font-weight: 700;
}

.success-chart {
    color: var(--success);
}

.error-chart {
    color: var(--buttercup);
}

.orange-chart {
    color: var(--accent);
}

/* ALERT */

.finance-alert-box {
    margin-top: 24px;
    background: var(--solitude);
    border: 1px solid var(--mint-green);
    border-radius: 22px;
    padding: 22px 24px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.alert-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: var(--success);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.alert-text p {
    margin: 0;
    line-height: 1.7;
    color: var(--black);
}


/*=====Credit and Risk Section=======*/
.finance-dashboard-wrapper {
    display: flex;
    gap: 40px;
    background: var(--light-grayish);
    padding: 40px;
    align-items: flex-start;
}

/* =========================================
   SIDEBAR
========================================= */

.finance-sidebar {
    width: 260px;
    min-width: 260px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-title {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--shade-of-cool);
}

.finance-sidebar-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.finance-sidebar-menu li {
    margin-bottom: 10px;
}

.finance-sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 0px 16px;
    border-radius: 14px;
    text-decoration: none;
    color: var(--shade-of-cool);
    font-size: 16px;
    font-weight: 500;
    transition: 0.3s ease;
    background: transparent;
}

.finance-sidebar-menu li a:hover {
    background: var(--azureish-white);
    color: var(--primary);
}

.finance-sidebar-menu li.active a {
    background: var(--soft-pillow);
    color: var(--primary);
    font-weight: 700;
}

/* =========================================
   CONTENT
========================================= */

.finance-dashboard-content {
    flex: 1;
    min-width: 0;
    background-color: var(--light-grayish);
}

/* =========================================
   PAGE HEADER
========================================= */

.finance-page-header {
    margin-bottom: 26px;
}

.finance-page-title {
    margin: 0 0 0px;
    font-size: 30px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.finance-page-desc {
    margin: 0;
    font-size: 18px;
    color: var(--blue-gray);
    line-height: 1.7;
}

/* =========================================
   CARD GRID
========================================= */

.finance-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* =========================================
   CARD
========================================= */

.finance-info-card {
    background: var(--white);
    border-radius: 24px;
    padding: 28px;
    border: 1px solid var(--azureish-white);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    transition: 0.3s ease;
    width: 100%;
}

.finance-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(0, 26, 140, 0.08);
}

/* =========================================
   CARD TITLE
========================================= */

.finance-card-title {
    margin: 0 0 28px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary);
}

/* =========================================
   RATING
========================================= */

.finance-rating-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.finance-risk-text {
    margin: 16px 0 0px;
    font-size: 18px;
    font-weight: 600;
    color: var(--midnight-blue);
}

.finance-provider-text {
    margin: 0 0 0px;
    font-size: 15px;
    color: var(--blue-gray);
}

/* =========================================
   PREVIOUS RATING
========================================= */

.finance-previous-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.finance-previous-grade {
    font-size: 25px;
    font-weight: 700;
    color: var(--shade-of-cool);
}

.finance-status-badge {
    background: var(--solitude);
    color: var(--artyClick-blue);
    padding: 0px 14px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
}

/* =========================================
   DATA LIST
========================================= */

.finance-data-list {
    margin-top: 12px;
}

.finance-data-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--bright-gray);
}

.finance-data-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.finance-data-row span {
    color: var(--shade-of-cool);
    font-size: 16px;
    line-height: 1.5;
}

.finance-data-row strong {
    color: var(--primary);
    font-size: 16px;
    font-weight: 700;
    text-align: right;
}

/* =========================================
   STATUS DOT
========================================= */

.finance-dot-status {
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 14px !important;
    font-weight: 700;
}

/*========Company Info========*/
/* =========================================
   CONTENT AREA
========================================= */

/* =========================================
   PAGE HEADER
========================================= */

.finance-page-header {
    margin-bottom: 28px;
}


.finance-page-desc {
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
    color: var(--blue-gray);
}

/* =========================================
   GRID
========================================= */

.finance-company-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: start;
}

/* =========================================
   CARD
========================================= */

.finance-company-card {
    background: var(--white);
    border: 1px solid var(--azureish-white);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    overflow: hidden;
}

.finance-company-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(0, 26, 140, 0.08);
}

/* =========================================
   CARD HEADINGS
========================================= */

.finance-card-heading {
    margin: 0 0 0px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--primary);
}

.finance-sub-heading {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 700;
    color: var(--midnight-blue);
}

/* =========================================
   INFO LIST
========================================= */

.finance-info-list {
    width: 100%;
}

.finance-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--bright-gray);
}

.finance-info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.finance-info-row span {
    font-size: 16px;
    line-height: 1.6;
    color: var(--shade-of-cool);
}

.finance-info-row strong {
    font-size: 16px;
    line-height: 1.6;
    font-weight: 700;
    color: var(--primary);
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

.status-active {
    color: var(--success) !important;
}

.status-inactive {
    color: var(--persian-red) !important;
}

/* =========================================
   CONTACT SECTION
========================================= */

.finance-contact-list {
    margin-bottom: 38px;
}

.finance-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.finance-contact-item:last-child {
    margin-bottom: 0;
}

.finance-contact-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
    background: var(--solitude);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.finance-contact-item p {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--primary);
    word-break: break-word;
}

/* =========================================
   PREVIOUS SECTION
========================================= */

.finance-previous-section {
    margin-top: 10px;
    padding-top: 26px;
    border-top: 1px solid var(--bright-gray);
}

.finance-previous-rows {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.finance-previous-rows span {
    font-size: 16px;
    line-height: 1.7;
    color: var(--primary);
}

.finance-previous-rows strong {
    min-width: 120px;
    text-align: right;
    font-size: 16px;
    font-weight: 600;
    color: var(--shade-of-cool);
}

/*========= Dirctor Section=========*/
/* =========================================
   SECTION
========================================= */

.director-section {
    padding: 40px;
    background: var(--light-grayish);
}

/* =========================================
   HEADER
========================================= */

.director-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.director-title {
    margin: 0 0 0px;
    font-size: 30px;
    font-weight: 800;
    color: var(--midnight-blue);
    line-height: 1.2;
}

.director-desc {
    margin: 0;
    font-size: 18px;
    color: var(--blue-gray);
    line-height: 1.7;
}

/* =========================================
   TABS
========================================= */

.director-tabs {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--azureish-white);
    padding: 6px;
    border-radius: 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 20px;
    z-index: 10;
}

.director-tab {
    border: none;
    background: transparent;
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    color: var(--shade-of-cool);
    cursor: pointer;
    transition: 0.3s ease;
}

.director-tab.active {
    background: var(--primary);
    color: var(--white);
}

/* =========================================
   GRID
========================================= */

.director-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* =========================================
   CARD
========================================= */

.director-card {
    background: var(--white);
    border: 1px solid var(--azureish-white);
    border-radius: 26px;
    padding: 26px;
    display: flex;
    gap: 20px;
    transition: 0.3s ease;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.director-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(0, 26, 140, 0.08);
}

/* =========================================
   AVATAR
========================================= */

.director-avatar {
    width: 68px;
    height: 68px;
    min-width: 68px;
    border-radius: 50%;
    background: var(--solitude);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
}

/* =========================================
   CONTENT
========================================= */

.director-content {
    flex: 1;
}

.director-name {
    margin: 0 0 0px;
    font-size: 20px;
    font-weight: 700;
    color: var(--midnight-blue);
    line-height: 1.3;
}

.director-role {
    margin: 0 0 22px;
    font-size: 18px;
    color: var(--shade-of-cool);
}

/* =========================================
   INFO ROWS
========================================= */

.director-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.director-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.director-row span {
    font-size: 15px;
    color: var(--shade-of-cool);
}

.director-row strong {
    font-size: 15px;
    color: var(--primary);
    font-weight: 700;
    text-align: right;
}

/*===== Finance Section ============*/
.finance-section {
    padding: 40px 0px;
    background: var(--light-grayish);
}

.finance-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 28px;
}

.finance-title {
    margin: 0 0 0px;
    font-size: 30px;
    font-weight: 800;
    color: var(--midnight-blue);
    line-height: 1.2;
}

.finance-desc {
    margin: 0;
    font-size: 18px;
    color: var(--blue-gray);
    line-height: 1.7;
}

.finance-tabs {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--azureish-white);
    padding: 6px;
    border-radius: 18px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 20px;
    z-index: 10;
    flex-wrap: wrap;
}

.finance-tab {
    border: none;
    background: transparent;
    padding: 14px 24px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    color: var(--shade-of-cool);
    cursor: pointer;
    transition: 0.3s ease;
}

.finance-tab.active {
    background: var(--primary);
    color: var(--white);
}

.finance-data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* =========================================
   CARD
========================================= */

.finance-data-card {
    background: var(--white);
    border: 1px solid var(--azureish-white);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    transition: 0.3s ease;
}

.finance-data-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(0, 26, 140, 0.08);
}

/* =========================================
   CARD TITLE
========================================= */

.finance-year-card-title {
    margin: 0 0 0px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}

/* =========================================
   ROWS
========================================= */

.finance-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--bright-gray);
}

.finance-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.finance-row span {
    font-size: 16px;
    color: var(--shade-of-cool);
    line-height: 1.6;
}

.finance-row strong {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    text-align: right;
}

/*=======FinanceChart Card=========*/
.finance-chart-card {
    width: 100%;
    max-width: 100%;
    background: var(--white);
    border: 1px solid var(--soft-pillow);
    border-radius: 22px;
    padding: 28px;
    margin-top: 24px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.finance-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 12px;
}

.finance-chart-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.finance-chart-currency {
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-gray);
    background: var(--ghost-white);
    padding: 6px 12px;
    border-radius: 8px;
}

.finance-chart-wrapper {
    width: 100%;
    height: 420px;
    position: relative;
}


/* enquiries section */
.enquiry-dashboard {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 30px;
}

.enquiry-chart-card,
.enquiry-total-card {
    background: var(--white);
    border: 1px solid var(--celadon-mist);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.enquiry-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.enquiry-title {
    font-size: 30px;
    font-weight: 700;
    margin: 0;
    color: var(--primary);
}

.latest-enquiry-date {
    font-size: 15px;
    color: var(--muted);
    margin: 0;
}

.chart-main-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    height: 320px;
}

.y-axis {
    width: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 34px;
}

.y-axis span {
    font-size: 14px;
    color: var(--muted);
}

.graph-wrapper {
    position: relative;
    flex: 1;
    height: 100%;
    border-bottom: 1px dashed var(--solitude);
}

.graph-grid {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.graph-grid div {
    border-top: 1px dashed var(--bright-gray);
    width: 100%;
}

.bars-wrapper {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 10px 34px;
    gap: 5px;
    overflow: hidden;
}

.bar-item {
    width: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.bar {
    width: 100%;
    background: var(--primary);
    border-radius: 12px 12px 0 0;
    min-height: 2px;
    position: relative;
    transition: 0.3s;
}

.bar:hover {
    opacity: 0.9;
}

.bar-tooltip {
    position: absolute;
    bottom: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    border: 1px solid var(--bright-gray);
    border-radius: 14px;
    padding: 12px 14px;
    min-width: 100px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s;
    z-index: 10;
}

.bar:hover .bar-tooltip {
    opacity: 1;
    visibility: visible;
}

.bar-tooltip p {
    margin: 0;
    font-size: 14px;
    color: var(--midnight-blue);
    line-height: 1.5;
}

.month-label {
    margin-top: 12px;
    font-size: 15px;
    color: var(--slate-gray);
}

.total-heading {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 26px;
}

.total-list {
    display: flex;
    flex-direction: column;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--azureish-white);
}

.total-row:last-child {
    border-bottom: none;
}

.payment-behavior {
    margin-top: 32px;
}

.payment-behavior-intro {
    margin-bottom: 24px;
}

.payment-behavior-section-title {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    color: var(--midnight-blue);
}

.payment-behavior-section-desc {
    margin: 12px 0 0;
    color: var(--slate-gray);
    font-size: 16px;
    line-height: 1.6;
}

.payment-behavior-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.pb-card {
    background: var(--white);
    border: 1px solid var(--azureish-white);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.pb-card-header {
    margin-bottom: 20px;
}

.pb-card-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.pb-chart-wrapper {
    min-height: 260px;
}

.pb-chart-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
}

.pb-outstanding-placeholder {
    background: var(--ghost-white);
    border: 1px dashed var(--celadon-mist);
    border-radius: 18px;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-gray);
    font-size: 15px;
    text-align: center;
    padding: 22px;
}

.hidden {
    display: none !important;
}

.pb-snapshot-list {
    display: grid;
    gap: 12px;
}

.pb-snapshot-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--azureish-white);
}

.pb-snapshot-row:last-child {
    border-bottom: none;
}

.pb-snapshot-row span {
    color: var(--slate-gray);
    font-size: 14px;
}

.pb-snapshot-row strong {
    color: var(--primary);
    font-size: 15px;
    font-weight: 700;
}

.payment-behavior {
    margin-top: 32px;
}

.payment-behavior-card {
    background: var(--white);
    border: 1px solid var(--azureish-white);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.payment-behavior-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.payment-behavior-title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: var(--midnight-blue);
}

.payment-behavior-desc {
    margin: 8px 0 0;
    color: var(--slate-gray);
    max-width: 620px;
    line-height: 1.6;
}

.payment-behavior-status {
    text-align: right;
}

.payment-trend-label {
    display: block;
    margin-bottom: 6px;
    color: var(--slate-gray);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.payment-trend-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--midnight-blue);
}

.payment-behavior-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.payment-behavior-summary-card {
    background: var(--ghost-white);
    border: 1px solid var(--solitude);
    border-radius: 18px;
    padding: 18px;
}

.payment-behavior-summary-card span {
    display: block;
    color: var(--slate-gray);
    font-size: 13px;
    margin-bottom: 8px;
}

.payment-behavior-summary-card strong {
    color: var(--midnight-blue);
    font-size: 20px;
}

.payment-behavior-chart-block {
    background: var(--ghost-white);
    border: 1px solid var(--solitude);
    border-radius: 24px;
    padding: 22px;
}

.payment-behavior-chart-top {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 18px;
}

.small-label {
    margin: 0;
    color: var(--slate-gray);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chart-main-value {
    margin: 8px 0 0;
    font-size: 34px;
    font-weight: 800;
    color: var(--midnight-blue);
}

.payment-behavior-rate {
    text-align: right;
}

.payment-behavior-rate span {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--success);
}

.payment-behavior-rate p {
    margin: 6px 0 0;
    color: var(--slate-gray);
    font-size: 14px;
}

.payment-behavior-chart-canvas {
    min-height: 240px;
}

.payment-behavior-chart-canvas canvas {
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 900px) {
    .payment-behavior-summary-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }
}

@media (max-width: 640px) {

    .payment-behavior-header,
    .payment-behavior-chart-top {
        flex-direction: column;
        align-items: stretch;
    }

    .payment-behavior-status {
        text-align: left;
    }
}

.total-row span {
    font-size: 16px;
    color: var(--muted);
}

.total-row strong {
    font-size: 18px;
    color: var(--midnight-blue);
    font-weight: 700;
}

/* =====================================================
   CREDIT HISTORY
===================================================== */

.credit-history-card {
    background: var(--white);
    border: 1px solid var(--light-grayish);
    border-radius: 28px;
    padding: 10px 40px;
    margin-top: 28px;
    overflow: hidden;
}

/* =====================================================
   HEADER
===================================================== */

.credit-history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 34px;
}

.credit-history-title {
    margin: 0;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

.credit-history-subtitle {
    margin: 14px 0 0;
    font-size: 18px;
    color: var(--muted);
}

.credit-history-currency {
    font-size: 20px;
    font-weight: 600;
    color: var(--muted);
}

/* =====================================================
   CHART
===================================================== */

.credit-history-chart-wrapper {
    position: relative;
    width: 100%;
    height: 520px;
}

.legal-charges-section {
    padding: 40px;
    background: var(--light-grayish);
}

/* =====================================================
   LEGAL & CHARGES SECTION
===================================================== */
/* =========================================
   HEADER
========================================= */

.legal-charges-header {
    margin-bottom: 28px;
}

.legal-charges-title {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 800;
    color: var(--midnight-blue);
    line-height: 1.2;
}

.legal-charges-subtitle {
    margin: 0;
    font-size: 16px;
    color: var(--muted);
    line-height: 1.6;
    font-weight: 400;
}

/* =========================================
   GRID LAYOUT - FIRST ROW (2 COLUMNS)
========================================= */

.legal-charges-grid {
    /* display: grid;
    grid-template-columns: 1fr 1fr; */
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 24px;
}

/* =========================================
   CCJ CARD - LEFT COLUMN
========================================= */

.ccj-card {
    background: var(--white);
    border: 1px solid var(--azureish-white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: 0.3s ease;
    height: fit-content;
}

.ccj-card:hover {
    box-shadow: 0 6px 20px rgba(0, 26, 140, 0.06);
}

.ccj-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.ccj-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}

.ccj-status-badge {
    padding: 8px 14px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    transition: 0.3s ease;
    white-space: nowrap;
}

.ccj-status-badge.clean {
    background: var(--celadon-mist);
    color: var(--success);
}

.ccj-status-badge.warning {
    background: var(--soft-pillow);
    color: var(--cheddar);
}

.ccj-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ccj-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--bright-gray);
}

.ccj-item:last-child {
    border-bottom: none;
}

.ccj-label {
    font-size: 15px;
    color: var(--shade-of-cool);
    font-weight: 400;
}

.ccj-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--midnight-blue);
}

/* =========================================
   MORTGAGES CARD - RIGHT COLUMN
========================================= */

.mortgages-card {
    background: var(--white);
    border: 1px solid var(--azureish-white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: 0.3s ease;
}

.mortgages-card:hover {
    box-shadow: 0 6px 20px rgba(0, 26, 140, 0.06);
}

/* =========================================
   SECTION CARDS STYLING
========================================= */

.legal-section-card {
    background: var(--white);
    border: 1px solid var(--azureish-white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    margin-bottom: 24px;
    transition: 0.3s ease;
}

.legal-section-card:hover {
    box-shadow: 0 6px 20px rgba(0, 26, 140, 0.06);
}

.legal-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.legal-section-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}

.legal-summary-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.badge-outstanding,
.badge-satisfied {
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.badge-outstanding {
    background: var(--soft-pillow);
    color: var(--cheddar);
}

.badge-satisfied {
    background: var(--celadon-mist);
    color: var(--success);
}

/* =========================================
   MORTGAGES LIST
========================================= */

.mortgages-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* =========================================
   COMMENTARY CARD - FULL WIDTH
========================================= */

.commentary-card {
    background: var(--white);
    border: 1px solid var(--azureish-white);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    transition: 0.3s ease;
}

.commentary-card:hover {
    box-shadow: 0 6px 20px rgba(0, 26, 140, 0.06);
}

/* =========================================
   MORTGAGE ITEMS
========================================= */

.mortgage-item {
    background: var(--light-bg);
    border: 1px solid var(--bright-gray);
    border-radius: 14px;
    padding: 16px 20px;
    cursor: pointer;
    transition: 0.3s ease;
}

.mortgage-item:hover {
    background: var(--light-grayish);
    border-color: var(--azureish-white);
}

.mortgage-item.expanded {
    background: var(--white);
    border-color: var(--azureish-white);
}

.mortgage-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.mortgage-title-section {
    flex: 1;
}

.mortgage-type {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
}

.mortgage-subtitle {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--muted);
    font-weight: 400;
    line-height: 1.4;
}

.mortgage-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mortgage-status-badge {
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.mortgage-status-badge.outstanding {
    background: var(--soft-pillow);
    color: var(--cheddar);
}

.mortgage-status-badge.satisfied {
    background: var(--celadon-mist);
    color: var(--success);
}

.mortgage-toggle-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
    transition: 0.3s ease;
    cursor: pointer;
}

.mortgage-item.expanded .mortgage-toggle-icon {
    transform: rotate(180deg);
}

.mortgage-details {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--bright-gray);
}

.mortgage-item.expanded .mortgage-details {
    display: block;
}

.mortgage-detail-row {
    margin-bottom: 14px;
}

.mortgage-detail-row:last-child {
    margin-bottom: 0;
}

.mortgage-detail-row strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--shade-of-cool);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mortgage-detail-row span {
    display: block;
    font-size: 14px;
    color: var(--midnight-blue);
    line-height: 1.6;
    word-break: break-word;
}

/* =========================================
   ANALYST COMMENTARY
========================================= */

.analyst-card {
    margin-bottom: 0;
}

.analyst-card .legal-section-title {
    margin-bottom: 18px;
}

.analyst-commentary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.commentary-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    align-items: flex-start;
}

.commentary-badge {
    width: 100px;
    height: 24px;
    min-width: 100px;
    display: flex;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    margin-top: 2px;
    align-items: center;
}

.commentary-badge.neutral {
    background: var(--artyClick-blue);
    border-radius: 50px;
    color: var(--white);
}

.commentary-badge.positive {
    background: var(--success);
    border-radius: 50px;
    color: var(--white);
}

.commentary-badge.negative {
    background: var(--persian-red);
    border-radius: 50px;
    color: var(--white);
}

.commentary-content {
    flex: 1;
}

.commentary-text {
    margin: 0;
    font-size: 15px;
    color: var(--primary);
    line-height: 1.6;
    font-weight: 400;
    position: relative;
    top: 7px;
}

.commentary-status {
    margin-top: 0px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-block;
}

.commentary-status.neutral {
    color: var(--artyClick-blue);
}

.commentary-status.positive {
    color: var(--success);
}

.commentary-status.negative {
    color: var(--persian-red);
}

.legal-sidebar-title {
    font-size: 12px;
}

.ccj-item {
    padding: 12px 0;
}

.ccj-label {
    font-size: 14px;
}

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

.mortgage-type {
    font-size: 15px;
}

.mortgage-meta {
    gap: 12px;
}

.mortgage-detail-label {
    font-size: 13px;
}

.mortgage-detail-value {
    font-size: 14px;
}

/* .commentary-item {
    gap: 10px;
} */

.commentary-badge {
    width: 36px;
    height: 36px;
    font-size: 14px;
}

.credit-history-chart-wrapper canvas {
    max-width: 100% !important;
}

.finance-chart-wrapper canvas {
    max-width: 100% !important;
}


.green-color {
    color: var(--success);
}

.light-red-color {
    color: var(--buttercup);
}

.light-orange-color {
    color: var(--orange-color);
}

.light-yellow-color {
    color: var(--mustard-yellow);
}

/* TABLET */

@media(max-width:1440px) {
    .payment-behavior-grid {
        grid-template-columns: 1fr 1fr;
    }

    .finance-data-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media(max-width:1200px) {

    .finance-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .company-title {
        font-size: 30px;
    }

    /*=====Credit and Risk Section=======*/
    .finance-dashboard-wrapper {
        gap: 24px;
        padding: 24px;
    }

    .finance-card-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    /*=======Company Info==========*/
    .finance-company-grid {
        grid-template-columns: 1fr;
    }

    .director-grid {
        grid-template-columns: 1fr;
    }

    .legal-charges-grid {
        gap: 20px;
        grid-template-columns: 1fr;
    }

    .enquiry-dashboard {
        grid-template-columns: 1fr;
    }

    .enquiry-chart-card,
    .enquiry-total-card {
        padding: 24px;
    }

    .chart-main-wrapper {
        height: 280px;
    }

    .bar-item {
        width: 26px;
    }
}

@media (max-width: 1100px) {
    .payment-behavior-grid {
        grid-template-columns: 1fr;
    }

    .finance-data-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}


@media(max-width:992px) {

    .enquiry-chart-card,
    .enquiry-total-card {
        padding: 22px;
    }

    .chart-main-wrapper {
        height: 260px;
        gap: 14px;
    }

    .y-axis {
        width: 36px;
    }

    .y-axis span {
        font-size: 13px;
    }

    .bar-item {
        width: 24px;
    }

    .month-label {
        font-size: 13px;
    }

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

    .total-row {
        padding: 14px 0;
    }

    .legal-charges-grid {
        grid-template-columns: 1fr;
    }

    .legal-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .legal-summary-badges {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width:991px) {

    .finance-chart-card {
        padding: 22px;
    }

    .finance-chart-header h3 {
        font-size: 21px;
    }

    .director-header {
        margin-top: 15px;
        flex-direction: column;
        justify-content: start;
        align-items: start;
    }

    .enquiry-header,
    .legal-charges-header {
        margin-top: 15px;
    }

    .finance-chart-wrapper {
        height: 360px;
    }

    .credit-history-card {
        padding: 28px;
    }

    .credit-history-title {
        font-size: 28px;
    }

    .credit-history-chart-wrapper {
        height: 460px;
    }


    .director-section {
        padding: 0px;
    }

    .legal-charges-section {
        padding: 0px;
    }

    .finance-company-header {
        flex-direction: column;
    }
}

/* MOBILE */

@media(max-width:768px) {

    .finance-company-header {
        flex-direction: column;
    }

    .finance-company-left {
        flex-direction: column;
    }

    .finance-company-actions {
        width: 100%;
        flex-direction: column;
    }

    .btn-share,
    .btn-download {
        width: 100%;
    }

    .finance-stats-grid {
        grid-template-columns: 1fr;
    }

    .company-title {
        font-size: 26px;
    }

    .finance-main-value,
    .finance-strength-main-value,
    .finance-negative-main-value {
        font-size: 42px;
    }

    .grade {
        font-size: 42px;
    }

    .value {
        font-size: 28px;
    }

    .finance-alert-box {
        flex-direction: column;
    }


    /*=====Credit and Risk Section=======*/
    .finance-dashboard-wrapper {
        flex-direction: column;
        padding: 0px;
        gap: 0px;
    }

    .enquiry-dashboard {
        gap: 12px;
    }

    .enquiry-chart-card,
    .enquiry-total-card {
        padding: 16px;
    }

    .enquiry-chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 18px;
    }

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

    .latest-enquiry-date {
        font-size: 14px;
    }

    .chart-main-wrapper {
        height: 240px;
        gap: 10px;
    }

    .y-axis {
        width: 32px;
        padding-bottom: 30px;
    }

    .y-axis span {
        font-size: 12px;
    }

    .bar-item {
        width: 22px;
    }

    .month-label {
        font-size: 12px;
    }

    .total-heading {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .total-row {
        padding: 12px 0;
        font-size: 13px;
    }

    /* MOBILE SIDEBAR */

    .finance-sidebar {
        width: 100%;
        min-width: 100%;
        position: relative;
        top: unset;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .finance-sidebar {
        padding: 15px;
    }

    .finance-sidebar-menu {
        display: flex;
        gap: 10px;
        width: 100%;
        padding: 15px;
        flex-direction: column;
        width: 100%
    }

    .finance-sidebar-menu li {
        margin-bottom: 0;
    }

    .finance-sidebar-menu li a {
        white-space: nowrap;
        padding: 12px 16px;
        font-size: 14px;
        border-radius: 12px;
    }

    /* CONTENT */

    .finance-page-title {
        font-size: 30px;
    }

    .finance-page-desc {
        font-size: 15px;
        line-height: 1.7;
    }

    /* CARDS */

    .finance-info-card {
        padding: 22px;
        border-radius: 20px;
        width: 100%;
    }

    .finance-card-title {
        margin-bottom: 20px;
        font-size: 13px;
    }

    .finance-risk-text {
        font-size: 16px;
        margin-top: 10px;
    }

    .finance-provider-text {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .finance-previous-grade {
        font-size: 38px;
    }

    .finance-status-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .finance-data-row {
        padding: 14px 0;
        gap: 12px;
    }

    .finance-data-row span,
    .finance-data-row strong {
        font-size: 14px;
    }

    .finance-dot-status {
        font-size: 12px !important;
        padding: 6px 12px;
    }

    /*=========Company Info=======*/
    .finance-dashboard-content {
        width: 100%;
    }

    /* HEADER */

    .finance-page-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 15px;
    }

    .finance-page-title {
        font-size: 30px;
        line-height: 1.3;
    }

    .finance-page-desc {
        font-size: 15px;
        line-height: 1.7;
    }

    /* GRID */

    .finance-company-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* CARD */

    .finance-company-card {
        padding: 0px;
        border-radius: 20px;
    }

    /* HEADINGS */

    .finance-card-heading {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .finance-sub-heading {
        font-size: 18px;
        margin-bottom: 14px;
    }

    /* INFO ROWS */

    .finance-info-row {
        flex-wrap: wrap;
        gap: 8px;
        padding: 14px 0;
    }

    .finance-info-row span {
        font-size: 14px;
    }

    .finance-info-row strong {
        max-width: 100%;
        text-align: left;
        font-size: 14px;
        line-height: 1.6;
    }

    /* CONTACT */

    .finance-contact-list {
        margin-bottom: 28px;
    }

    .finance-contact-item {
        gap: 12px;
        margin-bottom: 18px;
    }

    .finance-contact-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        border-radius: 12px;
        font-size: 16px;
    }

    .finance-contact-item p {
        font-size: 14px;
        line-height: 1.7;
    }

    /* PREVIOUS */

    .finance-previous-section {
        padding-top: 20px;
    }

    .finance-previous-rows {
        flex-direction: column;
        gap: 10px;
    }

    .finance-previous-rows span {
        font-size: 14px;
    }

    .finance-previous-rows strong {
        min-width: 100%;
        text-align: left;
        font-size: 14px;
    }

    /*========director section====*/
    .director-section {
        padding: 18px;
    }

    .director-header {
        text-align: center;
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }

    .director-title {
        font-size: 30px;
    }

    .director-desc {
        font-size: 15px;
    }

    .director-tabs {
        width: 100%;
        overflow: auto;
    }

    .director-tab {
        white-space: nowrap;
        flex: 1;
        font-size: 14px;
        padding: 12px 18px;
    }

    .director-card {
        padding: 20px;
        border-radius: 20px;
        gap: 16px;
        width: 100%;
    }

    .director-avatar {
        width: 56px;
        height: 56px;
        min-width: 56px;
        font-size: 20px;
    }

    .director-name {
        font-size: 22px;
    }

    .director-role {
        font-size: 15px;
        margin-bottom: 18px;
    }

    .director-row {
        gap: 10px;
    }

    .director-row span,
    .director-row strong {
        font-size: 13px;
    }

    /*======Finance Grid=====*/
    .finance-section {
        padding: 0px;
    }

    .payment-behavior-intro {
        text-align: center;
    }

    .finance-header {
        align-items: center;
        justify-content: center;
        gap: 18px;
    }

    .finance-title {
        font-size: 30px;
    }

    .finance-title {
        font-size: 15px;
    }

    .finance-tabs {
        width: 100%;
        overflow: auto;
        white-space: nowrap;
        flex-wrap: wrap;
    }

    .finance-tab {
        flex: 1;
        white-space: nowrap;
        font-size: 14px;
        padding: 10px 16px;
    }

    .finance-data-card {
        padding: 22px;
        border-radius: 22px;
    }

    .finance-card-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .finance-row {
        gap: 12px;
        padding: 14px 0;
    }

    .finance-row span,
    .finance-row strong {
        font-size: 14px;
    }

    .director-grid {
        display: flex;
        flex-wrap: wrap;
    }

    .legal-charges-header {
        margin-bottom: 20px;
    }

    .legal-charges-title {
        font-size: 24px;
    }

    .legal-charges-subtitle {
        font-size: 15px;
    }

    .ccj-card {
        padding: 20px;
    }

    .ccj-card-title {
        font-size: 16px;
    }

    .ccj-card-header {
        margin-bottom: 16px;
    }

    .ccj-item {
        padding: 12px 0;
    }

    .ccj-label {
        font-size: 14px;
    }

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

    .mortgages-card {
        padding: 20px;
    }

    .legal-section-card {
        padding: 20px;
        margin-bottom: 20px;
    }

    .legal-section-title {
        font-size: 17px;
    }

    .mortgage-type {
        font-size: 15px;
    }

    .mortgage-subtitle {
        font-size: 13px;
    }

    .mortgage-detail-row strong {
        font-size: 12px;
    }

    .mortgage-detail-row span {
        font-size: 13px;
    }

    .commentary-card {
        padding: 20px;
    }

    .commentary-item {
        gap: 12px;
        padding: 12px 0;
    }

    .commentary-badge {
        width: 24px;
        height: 28px;
        font-size: 16px;
    }

    .commentary-text {
        font-size: 14px;
    }

    .enquiry-header {
        text-align: center;
    }

    .finance-company-card {
        padding: 10px;
    }

    .header-margin {
        margin-top: 20px;
    }

    .legal-charges-header {
        text-align: center;
    }

    .business-info-finance-page {
        justify-content: flex-end;
        text-align: right;
        flex-wrap: wrap;
    }
}

/* =========================================
   MOBILE MODAL UI
========================================= */

@media only screen and (max-width: 767px) {

    /* MODAL */

    #financialDetail .modal-dialog {
        max-width: 100%;
        width: 100%;
        margin: 0;
        min-height: 100vh;
    }

    #financialDetail .modal-content {
        border-radius: 0;
        min-height: 100vh;
        border: none;
        overflow: hidden;
    }

    #financialDetail .modal-header {
        padding: 0;
        border: none;
        position: relative;
        display: block;
    }

    #financialDetail .modal-body {
        padding: 0px;
    }

    /* CLOSE BUTTON */

    #financialDetail .close {
        position: absolute;
        top: 14px;
        right: 14px;
        z-index: 20;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        background: var(--white);
        opacity: 1;
        font-size: 28px;
        font-weight: 400;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    }

    /* MAIN SECTION */

    .finance-overview-section {
        padding: 16px;
    }

    .finance-company-card {
        width: 100%;
    }

    /* HEADER */

    .finance-company-header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        border-radius: 20px;
    }

    .finance-company-left {
        flex-direction: column;
        gap: 16px;
    }

    .finance-company-icon {
        width: 64px;
        height: 64px;
        min-width: 64px;
        border-radius: 16px;
    }

    .company-logo {
        width: 42px;
        height: 42px;
        object-fit: contain;
    }

    /* COMPANY DETAILS */

    .company-title {
        font-size: 22px;
        line-height: 1.4;
        margin-bottom: 12px;
        word-break: break-word;
    }

    .finance-company-meta {
        flex-direction: column;
        gap: 8px;
    }

    .finance-company-meta span {
        font-size: 13px;
        line-height: 1.6;
        word-break: break-word;
    }

    .finance-company-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-top: 14px;
    }

    .status-badge {
        font-size: 13px;
        padding: 8px 14px;
    }

    .report-date {
        font-size: 13px;
        line-height: 1.5;
    }

    /* BUTTONS */

    .finance-company-actions {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .btn-share,
    .btn-download {
        width: 100%;
        height: 48px;
        font-size: 15px;
        border-radius: 12px;
    }

    /* GRID */

    .finance-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 18px;
    }

    /* CARD */

    .finance-stat-card {
        padding: 20px;
        border-radius: 20px;
    }

    .finance-card-top {
        margin-bottom: 20px;
    }

    .card-label {
        font-size: 12px;
        letter-spacing: 0.7px;
    }

    .finance-card-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
    }

    .finance-card-icon svg {
        width: 18px;
        height: 18px;
    }

    /* VALUES */

    .finance-main-value,
    .finance-strength-main-value,
    .finance-negative-main-value {
        font-size: 38px;
    }

    .grade {
        font-size: 42px;
    }

    .value {
        font-size: 24px;
        margin-bottom: 4px;
    }

    .finance-subtitle,
    .finance-strength-subtitle,
    .finance-negative-subtitle {
        font-size: 16px;
        margin-top: 6px;
    }

    /* BOTTOM INFO */

    .finance-bottom-info {
        margin-top: 24px;
        flex-wrap: wrap;
    }

    .finance-bottom-info span {
        font-size: 13px;
        line-height: 1.5;
    }

    /* PAYMENT */

    .finance-payment-info {
        gap: 14px;
        margin-top: 18px;
    }

    .progress-circle {
        width: 62px;
        height: 62px;
        min-width: 62px;
    }

    .progress-circle::before {
        width: 46px;
        height: 46px;
    }

    .progress-circle span {
        font-size: 11px;
    }

    .payment-text p {
        font-size: 13px;
    }

    /* TAGS */

    .finance-tags {
        gap: 10px;
        margin-top: 18px;
    }

    .finance-tag {
        font-size: 12px;
        padding: 7px 12px;
    }

    /* GRAPH */

    .finance-chart-line {
        height: 50px;
        margin-top: 14px;
    }

    /* ALERT */

    .finance-alert-box {
        flex-direction: column;
        gap: 14px;
        padding: 18px;
        border-radius: 18px;
        margin-top: 18px;
    }

    .alert-icon {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 15px;
    }

    .alert-text p {
        font-size: 14px;
        line-height: 1.7;
    }

    .chart-growth {
        font-size: 13px;
    }

    .finance-chart-card {
        padding: 0px;
        border-radius: 18px;
    }

    .finance-chart-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 18px;
        padding: 10px;
    }

    .finance-chart-header h3 {
        font-size: 18px;
    }

    .finance-chart-wrapper {
        height: 300px;
    }

    .credit-history-card {
        padding: 20px;
        border-radius: 22px;
    }

    .credit-history-header {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 24px;
    }

    .credit-history-title {
        font-size: 24px;
    }

    .credit-history-subtitle {
        font-size: 15px;
    }

    .credit-history-currency {
        font-size: 16px;
    }

    .credit-history-chart-wrapper {
        height: 360px;
    }
}

@media (max-width: 640px) {
    .pb-card {
        padding: 22px;
    }
}

@media(max-width:576px) {

    .enquiry-chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

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

    .latest-enquiry-date {
        font-size: 14px;
    }

    .bar-item {
        width: 38px;
    }

    .enquiry-chart-card,
    .enquiry-total-card {
        padding: 14px;
    }

    .enquiry-chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 14px;
    }

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

    .latest-enquiry-date {
        font-size: 12px;
    }

    .chart-main-wrapper {
        height: 200px;
        gap: 8px;
    }

    .y-axis {
        width: 28px;
        padding-bottom: 28px;
    }

    .y-axis span {
        font-size: 11px;
    }

    .bar-item {
        width: 20px;
    }

    .month-label {
        font-size: 11px;
    }

    .total-heading {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .total-row {
        padding: 10px 0;
        font-size: 12px;
    }

    .total-row strong {
        font-size: 16px;
    }

    .finance-header {
        text-align: center;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }

    .common-title {
        font-size: 25px;
    }

    .director-grid {
        grid-template-columns: 1fr;
    }

    .payment-behavior-intro {
        text-align: center;
    }

    .finance-page-header {
        text-align: center;
        margin-bottom: 16px;
    }

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

    .legal-charges-header {
        text-align: center;
        margin-bottom: 16px;
    }

    .legal-charges-title {
        font-size: 22px;
    }

    .legal-charges-subtitle {
        font-size: 14px;
    }

    .legal-charges-grid {
        gap: 16px;
        margin-bottom: 16px;
    }

    .ccj-card {
        padding: 16px;
    }

    .ccj-card-header {
        gap: 12px;
    }

    .ccj-card-title {
        font-size: 15px;
    }

    .ccj-status-badge {
        padding: 6px 10px;
        font-size: 12px;
    }

    .ccj-item {
        padding: 12px 0;
    }

    .ccj-label {
        font-size: 13px;
    }

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

    .mortgages-card {
        padding: 16px;
    }

    .legal-section-card {
        padding: 16px;
        margin-bottom: 16px;
    }

    .legal-section-title {
        font-size: 16px;
    }

    .legal-section-header {
        gap: 12px;
        margin-bottom: 16px;
    }

    .legal-summary-badges {
        gap: 8px;
    }

    .badge-outstanding,
    .badge-satisfied {
        padding: 5px 10px;
        font-size: 12px;
        flex: 1;
        text-align: center;
    }

    .mortgage-type {
        font-size: 14px;
        margin: 0;
    }

    .mortgage-subtitle {
        font-size: 12px;
        margin: 4px 0 0;
    }

    .mortgage-actions {
        gap: 10px;
    }

    .mortgage-status-badge {
        padding: 5px 10px;
        font-size: 11px;
    }

    .mortgage-details {
        margin-top: 12px;
        padding-top: 12px;
    }

    .mortgage-detail-row {
        margin-bottom: 10px;
    }

    .mortgage-detail-row strong {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .mortgage-detail-row span {
        font-size: 13px;
    }

    .commentary-card {
        padding: 16px;
    }

    .commentary-item {
        gap: 10px;
        padding: 10px 0;
        flex-direction: column;
    }

    .commentary-badge {
        width: 20px;
        height: 20px;
        font-size: 14px;
    }

    .commentary-text {
        font-size: 13px;
    }

    .commentary-status {
        font-size: 11px;
    }

    .credit-history-chart-wrapper {
        height: 280px;
    }

    .director-section {
        padding: 18px 0px;
    }

    .director-card {
        width: 100%;
        flex-direction: column;
    }

    .finance-info-card {
        width: 100%;
    }

    .mortgage-header {
        flex-direction: column;
    }

    .pb-snapshot-row {
        padding: 8px 0;
    }


    .finance-sidebar-menu li a {
        padding: 8px 16px;
    }

    .finance-info-row strong {
        max-width: 50%;
        text-align: right;
    }

    .company-title {
        line-height: 1.4 !important;
    }

    .finance-main-value,
    .finance-strength-main-value,
    .finance-negative-main-value {
        line-height: 1 !important;
    }

    .bars-wrapper {
        overflow: auto;
    }
}

@media only screen and (max-width:480px) {
    #financialDetail .close {
        top: 0px;
        right: 20px;
        box-shadow: none;
        border-radius: 0;
    }
}