.card {
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}
.card:hover {
    transform: none;
    box-shadow: none;
}
/* CARD TITLES */
.card-title {
    font-size: 20px;
    margin-bottom:0;
    font-weight: 700;
    color: #204028;
    line-height:1.1;
}
/* CARD SUBTITLE */
.card-subtitle {
    font-size:12px;
    margin-bottom:4px !important;
    line-height:1.2;
    font-weight: 500;
    color: #6c757d;
}
/* LIST GROUP ITEMS */
.list-group-item {
    border: none;
    padding: 10px 15px;
}
.list-group-item:hover {
    background: #f0f9f4;
    color: #204028;
    cursor: pointer;
}
/* HEADINGS */
h2 {
    color: #204028;
    font-weight: 700;
}
/* TEXT MUTED */
.text-muted {
    color: #6c757d !important;
}
/* OPTIONAL BUTTON STYLING */
.btn-primary {
    background-color: #204028;
    border-color: #204028;
}
.btn-primary:hover {
    background-color: #2e5736;
    border-color: #2e5736;
    color: #FFD700;
}
/* DASHBOARD COLOR INDICATORS */
.metric-card {
    border-left: 6px solid transparent;
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}
.metric-card .card-body{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    width:100%;
    padding:12px;
}
/* Metric colors */
.active-leads { border-left-color: #ff9800; }
.opportunities { border-left-color: #fbc02d; }
.accounts { border-left-color: #64b5f6; }
.contacts { border-left-color: #5c6bc0; }
.pending-tasks { border-left-color: #ef5350; }
.pipeline-value { border-left-color: #66bb6a; }
.revenue-month {border-left-color:#ab47bc;}
.sales-target {border-left-color:#26c6da;}
.conversion-rate {border-left-color:#ec407a;}
.recent-leads { border-top-color: #ffb74d; }
.recent-opps { border-top-color: #fff176; }
.upcoming-tasks { border-top-color: #4db6ac; }
/* METRIC CARDS (FLAT COLORS) */
.metric-card {
    color: #fff;
}
/* Active Leads */
.metric-card.active-leads {
    background: #ff9800;
}
/* Opportunities */
.metric-card.opportunities {
    background: #fbc02d;
    color: #fff;
}
/* Accounts */
.metric-card.accounts {
    background: #64b5f6;
}
/* Contacts */
.metric-card.contacts {
    background: #5c6bc0;
}
/* Pending Tasks */
.metric-card.pending-tasks {
    background: #ef5350;
}
/* Pipeline */
.metric-card.pipeline-value {
    background: #66bb6a;
}
/* Revenue */
.metric-card.revenue-month {
    background: #ab47bc;
}
/* Target */
.metric-card.sales-target {
    background: #26c6da;
}
/* Conversion */
.metric-card.conversion-rate {
    background: #ec407a;
}
/* Expected Revenue */
.metric-card.expected-revenue {
    background: #8d6e63;
}
/* Weighted Forecast */
.metric-card.weighted-forecast {
    background: #42a5f5;
}
/* Stuck Deals */
.metric-card.stuck-deals {
    background: #ff7043;
}
/* Next Quarter Forecast */
.metric-card.next-quarter {
    background: #7e57c2;
}
/* Total Employees */
.metric-card.total-employees {
    background: #26a69a;
}
/* Total Managers */
.metric-card.total-managers {
    background: #5c6bc0;
}
/* Zone Achievement */
.metric-card.zone-achievement {
    background: #d4af37;
}
/* TEXT INSIDE METRIC CARDS */
.metric-card h3,
.metric-card h6 {
    color:inherit;
}
/* REMOVE COLOR FROM RECENT SECTIONS */
.section-card,
.section-card .card-header,
.section-card .card-body {
    color:#2c2c2c;
}
.section-card .card-header {
    font-weight:600;
}
/* RECENT LEADS */
.section-card.recent-leads {
    border-top: 4px solid #ffb74d;
}
.section-card.recent-leads .card-header{
    background:transparent;
    color:#e65100;
    font-weight:600;
}
/* RECENT OPPORTUNITIES */
.section-card.recent-opps {
    border-top: 4px solid #fbc02d;
}
.section-card.recent-opps .card-header{
    background:transparent;
    color:#f57f17;
    font-weight:600;
}
/* UPCOMING TASKS */
.section-card.upcoming-tasks{
    border-top:4px solid #4db6ac;
}
.section-card.upcoming-tasks .card-header{
    background:transparent;
    color:#00695c;
    font-weight:600;
}
/* RECENT ACTIVITY */
.section-card.recent-activity {
    border-top: 4px solid #64b5f6;
}
/* SALES LEADERBOARD */
.section-card.sales-leaderboard {
    border-top:4px solid #ce93d8;
}
.section-card.sales-leaderboard .card-header{
    background:transparent;
    color:#7b1fa2;
    font-weight:600;
}
/* REVENUE BY MONTH */
.revenue-chart {
    border-top-color: #a5d6a7;
}
.section-card.revenue-chart .card-header{
    background:transparent;
    color:#2e7d32;
    font-weight:600;
}
/* DEALS WON VS LOST */
.deals-chart {
    border-top-color: #90caf9;
}
.section-card.deals-chart .card-header{
    background:transparent;
    color:#1565c0;
    font-weight:600;
}
/* TOP PERFORMERS */
.top-performers {
    border-top-color: #80cbc4;
}
.section-card.top-performers .card-header{
    background:transparent;
    color:#00695c;
    font-weight:600;
}
/* BRANCH PERFORMANCE */
.section-card.branch-performance {
    border-top:4px solid #ff8a65;
}
.section-card.branch-performance .card-header{
    background:transparent;
    color:#d84315;
    font-weight:600;
}
/* OPPORTUNITY PIPELINE */
.section-card.opportunity-pipeline {
    border-top:4px solid #7986cb;
}
.section-card.opportunity-pipeline .card-header{
    background:transparent;
    color:#283593;
    font-weight:600;
}
/* Keep text readable */
.section-card .card-body,
.section-card p{
    color:#2c2c2c;
}
/* FINAL BORDER FIX (ADDED WITHOUT REMOVING ANY CODE)
   These override the transparent border rule above */
.section-card.recent-activity {
    border-top:4px solid #64b5f6;
}
.section-card.sales-leaderboard {
    border-top:4px solid #ce93d8;
}
.section-card.revenue-chart {
    border-top:4px solid #a5d6a7;
}
.section-card.deals-chart {
    border-top:4px solid #90caf9;
}
.section-card.top-performers {
    border-top:4px solid #80cbc4;
}
/* NAVBAR (ZOHO STYLE)*/
.dashboard-navbar {
    position: fixed;
    top: 0;
    left: 260px; /* starts after sidebar */
    right: 0;
    width: calc(100% - 260px);
    height: 60px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    z-index: 9999;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    backdrop-filter: blur(6px);
}
/* NAVBAR ICONS — ZOHO STYLE*/
.nav-icon,
.dashboard-navbar .dropdown-toggle,
.dashboard-navbar .fw-bold {
    position: relative;
    color: #6b7280; /* elegant grey */
    font-size: 18px;
    text-decoration: none;
    transition: all 0.25s ease;
}
/* HOVER EFFECT */
.nav-icon:hover,
.dashboard-navbar .dropdown-toggle:hover,
.dashboard-navbar .fw-bold:hover {
    color: #111827; /* rich dark grey */
    transform: translateY(-1px);
}
/* ACTIVE CLICK FEEL */
.nav-icon:active {
    transform: scale(0.96);
}
/* ICON SPACING */
.dashboard-navbar i {
    font-size: 17px;
}
/* HOVER TEXT */
.nav-icon span {
    position: absolute;
    bottom: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    background: #000;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0;
    transition: 0.2s;
    z-index: 2000;
    white-space: nowrap;
}
.nav-icon:hover span {
    opacity: 1;
}
/* DASHBOARD NOTIFICATION */
.notification-wrapper{
    position:relative;
    text-decoration:none;
}
.dashboard-bell{
    position:relative;
    width:42px;
    height:42px;
    border-radius:12px;
    background:rgba(255,255,255,0.08);
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.25s ease;
    color:#facc15;
    font-size:18px;
}
.dashboard-bell:hover{
    transform:translateY(-2px);
    background:rgba(250,204,21,0.12);
}
.dashboard-badge{
    position:absolute;
    top:-6px;
    right:-6px;
    min-width:20px;
    height:20px;
    padding:0 6px;
    border-radius:999px;
    background:#ef4444;
    color:white;
    font-size:11px;
    font-weight:700;
    display:flex;
    align-items:center;
    justify-content:center;
    border:2px solid white;
}
/* FOOTER (ZOHO STYLE) */
.footer-bar {
    position: fixed;
    bottom: 0;
    left: 0; /* 🔥 FULL WIDTH (including under sidebar) */
    width: 100%;
    height: 55px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    z-index: 1100;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -1px 3px rgba(0,0,0,0.04);
}
/* ICON GROUP */
.footer-icons {
    display: flex;
    justify-content: space-around;
    width: 100%;
    max-width: 700px;
}
/* FOOTER ICONS — ZOHO STYLE */
.footer-icons a {
    position: relative;
    color: #6b7280; /* soft modern grey */
    font-size: 18px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}
/* HOVER */
.footer-icons a:hover {
    color: #111827;
    transform: translateY(-2px);
}
/* ICON SIZE */
.footer-icons a i {
    font-size: 18px;
}
/* ACTIVE CLICK */
.footer-icons a:active {
    transform: scale(0.95);
}
/* TEXT ON HOVER */
.footer-icons a span {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    background: #000;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0;
    transition: 0.2s;
}
.footer-icons a:hover span {
    opacity: 1;
}
/* REMOVE bootstrap muted inside cards */
.metric-card .text-muted {
    color: rgba(255,255,255,0.8) !important;
}
/* FIX DROPDOWN VISIBILITY */
.dropdown-menu {
    z-index: 9999;
}
/* FIX DROPDOWN RIGHT OVERFLOW */
.dropdown-menu-end {
    right: 0;
    left: auto;
    transform: translateX(-10px); /* pull slightly inside */
}
/* GRID LINES LIKE EXCEL */
.card,
.table {
    border: 1px solid #e5e7eb;
}
.table th,
.table td {
    border: 1px solid #e5e7eb !important;
}
/* TABLE GRID LIKE EXCEL (FINAL FIX) */
.table {
    border-collapse: collapse;
}
.table th,
.table td {
    border: 1px solid #e5e7eb !important;
}
/* CHAT PANEL (ZOHO STYLE) */
.chat-panel.active {
    display: flex;
}
.chat-search input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 8px;
}
.chat-header {
    background: #204028;
    color: #fff;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}
.chat-menu {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}
.chat-body {
    flex: 1;
    height: 250px;
    padding: 10px;
    overflow-y: auto;
}
.chat-input {
    border-top: 1px solid #eee;
}
.chat-input input {
    width: 100%;
    border: none;
    padding: 10px;
}
/* CONTACT PANEL */
.contact-panel.active {
    display: flex;
}
.contact-search input {
    width: 100%;
    padding: 8px;
    border: none;
    border-bottom: 1px solid #ddd;
}
.contact-results {
    overflow-y: auto;
    padding: 10px;
}
.contact-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}
.contact-item:hover {
    background: #f5f5f5;
}
.chat-user {
    display: flex;
    align-items: center;
    gap: 6px;
}
.chat-actions {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.chat-dropdown {
    position: absolute;
    right: 10px;
    top: 40px;
    background: #ffffff; /* clean white */
    color: #333; /* readable text */
    border: 1px solid #e5e7eb; /* soft border */
    border-radius: 8px;
    display: none;
    flex-direction: column;
    min-width: 160px;
    z-index: 9999;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.chat-dropdown div {
    padding: 8px 10px;
    font-size: 13px;
    cursor: pointer;
}
.chat-dropdown div:hover {
    background: #f0f9f4; /* matches your green theme */
    color: #204028;
}
.chat-dropdown.active {
    display: flex;
}
.contact-panel {
    border-radius: 10px;
    overflow: visible;
}
.contact-item {
    transition: 0.2s;
}
.contact-item:hover {
    background: #e8f5e9;
}
.chat-actions i {
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}
.chat-dropdown {
    z-index: 10000;
}
.footer-item {
    position: relative;
}
/* CHAT PANEL */
.chat-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 300px;
    height: 400px;
    display: none;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ddd;
    z-index: 2000;
    overflow: visible;
}
/* CONTACT PANEL */
.contact-panel {
    position: absolute;
    bottom: 60px;
    right: 50px;
    width: 300px;
    height: 400px;
    display: none;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ddd;
    z-index: 9999;
    border-radius: 10px;
    overflow: visible;
}
/* ACTIVE STATE */
.chat-panel.active,
.contact-panel.active {
    display: flex;
}
/* CLEAN SHADOW */
.chat-panel,
.contact-panel {
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}
.chat-panel,
.contact-panel {
    z-index: 2000;
}
.chat-dropdown {
    z-index: 2500;
}
/* ONLINE STATUS DOT (WHATSAPP STYLE) */
.status-dot {
    width: 10px;
    height: 10px;
    background: #28a745;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 5px #28a745;
}
/* ALIGNMENT FIX */
.chat-user {
    display: flex;
    align-items: center;
    gap: 6px;
}
/* ALL SECTION CARDS SAME HEIGHT */
.section-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
}
/* CARD HEADER FIX */
.section-card .card-header {
    flex-shrink: 0;
}
/* CARD BODY TAKES REMAINING SPACE */
.section-card .card-body {
    flex: 1;
    position: relative;
    padding: 8px;
}
/* CHART SIZE FIX */
.section-card canvas {
    width: 100% !important;
    height: 100% !important;
}
/* REMOVE RANDOM EXTRA SPACE */
.row.g-3 {
    margin-bottom: 0;
    --bs-gutter-x:.8rem;
    --bs-gutter-y:.8rem;
}
/* FIX LIST CARDS */
.section-card ul.list-group {
    margin-bottom: 0;
}
/* FIX TABLE OVERFLOW */
.table-responsive {
    overflow-x: auto;
}
/* Prevent weird horizontal cut */
html,
body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    overflow-y: auto;
}
/* MAIN LAYOUT */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: #f5f7fb;
}
/* MAIN CONTENT AREA */
.dashboard-content {
    flex: 1;
    margin-left: 260px; /* sidebar width */
    /* navbar spacing */
    padding-top: 72px;
    /* IMPORTANT: footer spacing */
    padding-bottom: 70px;
    /* side spacing */
    padding-left: 14px;
    padding-right: 14px;
    min-height: 100vh;
    /* smooth scrolling */
    overflow-y: auto;
    scroll-behavior: smooth;
}
/* BETTER SCROLLBAR */
.dashboard-content::-webkit-scrollbar {
    width: 10px;
}
.dashboard-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 20px;
}
.dashboard-content::-webkit-scrollbar-thumb {
    background: #c7ccd4;
    border-radius: 20px;
}
.dashboard-content::-webkit-scrollbar-thumb:hover {
    background: #9aa3af;
}
/* FIX LAST ROW CUTTING */
.container-fluid {
    padding-bottom: 30px;
}
/* MOBILE FIX */
@media (max-width: 991px) {

    .dashboard-navbar {
        left: 0;
        width: 100%;
    }
    .dashboard-content {
        margin-left: 0;
        padding-left: 15px;
        padding-right: 15px;
    }
}
/*MODERN CRM CHART DESIGN */
.chart-card-body{
    position: relative;
    min-height: 320px;
    padding: 12px;
}
/* CHART CANVAS */
.chart-card-body canvas{
    width:100% !important;
    height:100% !important;
}
/* GLASS EFFECT FOR CHARTS */
.section-card{
    background:#ffffff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:
        0 4px 20px rgba(0,0,0,0.05);
    transition:.25s ease;
}
.section-card:hover{
    transform:translateY(-3px);
    box-shadow:
        0 10px 30px rgba(0,0,0,0.08);
}
/* CHART HEADERS */
.section-card .card-header{
    padding:10px 16px;
    font-size:15px;
    letter-spacing:.2px;
}
/* DOUGHNUT CENTER STYLE */
.chart-center-text{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    text-align:center;
    pointer-events:none;
}
.chart-center-text h3{
    margin:0;
    font-size:28px;
    font-weight:700;
    color:#111827;
}
.chart-center-text span{
    font-size:13px;
    color:#6b7280;
}
/* MOBILE */
@media(max-width:768px){
    .chart-card-body{
        height:300px;
    }}
/* CRM METRIC CARD COLOR SYSTEM Dark Border + Light Background */
.crm-orange{
    border:2px solid #f57c00 !important;
    background:#fff3e0 !important;
    color:#000 !important;
}
.crm-red{
    border:2px solid #d32f2f !important;
    background:#ffebee !important;
    color:#000 !important;
}
.crm-green{
    border:2px solid #2e7d32 !important;
    background:#e8f5e9 !important;
    color:#000 !important;
}
.crm-blue{
    border:2px solid #1565c0 !important;
    background:#e3f2fd !important;
    color:#000 !important;
}
.crm-purple{
    border:2px solid #6a1b9a !important;
    background:#f3e5f5 !important;
    color:#000 !important;
}
.crm-yellow{
    border:2px solid #f9a825 !important;
    background:#fffde7 !important;
    color:#000 !important;
}
.crm-teal{
    border:2px solid #00897b !important;
    background:#e0f2f1 !important;
    color:#000 !important;
}
.crm-pink{
    border:2px solid #c2185b !important;
    background:#fce4ec !important;
    color:#000 !important;
}
.crm-brown{
    border:2px solid #6d4c41 !important;
    background:#efebe9 !important;
    color:#000 !important;
}
/* REUSABLE SECTION HEADER BORDER SYSTEM */
.section-orange{
    border-top:4px solid #f57c00 !important;
}
.section-orange .card-header{
    color:#000 !important;
    background:transparent !important;
}
.section-blue{
    border-top:4px solid #1565c0 !important;
}
.section-blue .card-header{
    color:#000 !important;
    background:transparent !important;
}
.section-green{
    border-top:4px solid #2e7d32 !important;
}
.section-green .card-header{
    color:#000 !important;
    background:transparent !important;
}
.section-red{
    border-top:4px solid #d32f2f !important;
}
.section-red .card-header{
    color:#000 !important;
    background:transparent !important;
}
.section-purple{
    border-top:4px solid #6a1b9a !important;
}
.section-purple .card-header{
    color:#000 !important;
    background:transparent !important;
}
.section-yellow{
    border-top:4px solid #f9a825 !important;
}
.section-yellow .card-header{
    color:#000 !important;
    background:transparent !important;
}
.section-teal{
    border-top:4px solid #00897b !important;
}
.section-teal .card-header{
    color:#000 !important;
    background:transparent !important;
}

.section-pink{
    border-top:4px solid #c2185b !important;
}
.section-pink .card-header{
    color:#000 !important;
    background:transparent !important;
}

.section-brown{
    border-top:4px solid #6d4c41 !important;
}
.section-brown .card-header{
    color:#000 !important;
    background:transparent !important;
}
/* CLICKABLE KPI CARDS */
.metric-link{
    display:block;
    height:100%;
    text-decoration:none;
    color:inherit;
}
.metric-link:hover{
    color:inherit;
    text-decoration:none;
}
.metric-link .card{
    position:relative;
    overflow:hidden;
    cursor:pointer;
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}
.metric-link:hover .card{
    transform:translateY(-6px);
    box-shadow:0 14px 30px rgba(0,0,0,.12);
}
.metric-link:active .card{
    transform:scale(.98);
}
.metric-link .card::after{
    content:"↗";
    position:absolute;
    top:14px;
    right:18px;
    font-size:16px;
    opacity:0;
    transition:.25s ease;
}
.metric-link:hover .card::after{
    opacity:.8;
    right:14px;
}
/* CLICKABLE SECTION CARDS */
.section-link{
    text-decoration:none;
    color:inherit;
    display:block;
    height:100%;
}
.section-link,
.section-link:hover,
.section-link:focus,
.section-link:visited{
    color:inherit;
    text-decoration:none;
}
.section-link{
    width:100%;
}
.section-link .section-card{
    height:100%;
    cursor:pointer;
}
.section-link:hover{
    color:inherit;
    text-decoration:none;
}
.section-link .section-card{
    cursor:pointer;
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}
.section-link:hover .section-card{
    transform:translateY(-4px);
    box-shadow:
        0 12px 28px rgba(0,0,0,.10);
}
.section-card{
    position:relative;
}
.section-card::after{
    content:"Open";
    position:absolute;
    top:15px;
    right:20px;
    font-size:12px;
    font-weight:600;
    opacity:0;
    color:#6b7280;
    transition:.25s;
}
.section-link:hover .section-card::after{
    opacity:1;
}
.section-link canvas{
    pointer-events:none;
}
.section-link .chart-card-body{
    pointer-events:none;
}
.country-dropdown{
    position:relative;
    display:inline-block;
}
.country-menu{
    position:absolute;
    top:48px;
    left:0;
    width:340px;
    max-height:420px;
    overflow-y:auto;
    background:#ffffff;
    border:1px solid #d9dee7;
    border-radius:12px;
    display:none;
    padding:16px;
    z-index:999;
    box-shadow:
        0 12px 30px rgba(0,0,0,.10);
}
.country-menu::-webkit-scrollbar{
    width:8px;
}
.country-menu::-webkit-scrollbar-thumb{
    background:#204028;
    border-radius:20px;
}
.country-menu::-webkit-scrollbar-track{
    background:#eef2f7;
}
.country-filter-bar{
    display:flex;
    align-items:flex-end;
    gap:12px;
    flex-wrap:wrap;
}
.country-filter-bar label{
    margin-bottom:8px;
    font-weight:600;
    color:#204028;
}
.country-dropdown button{
    min-width:230px;
    text-align:left;
}
.country-filter-bar .btn-primary{
    height:42px;
    min-width:90px;
}
.country-menu.show{
    display:block;
}
.continent-title{
    font-weight:700;
    font-size:15px;
    color:#204028;
    margin-top:15px;
    margin-bottom:10px;
    padding-bottom:6px;
    border-bottom:1px solid #e7e7e7;
}
.country-item{
    display:flex;
    align-items:center;
    gap:10px;
    padding:8px 6px;
    border-radius:8px;
    cursor:pointer;
    transition:.2s;
}
.country-item:hover{
    background:#f4f9f5;
}
/* KPI GRID (5 CARDS PER ROW) */
@media (min-width:1200px){
    .kpi-col{
        width:20%;
        flex:0 0 20%;
        max-width:20%;
    }
}
/* BILLING TABLE SIZE OPTIMIZATION
   (Latest Payments, Latest Orders, Expiring Subscriptions) */

/* Only these three cards */
.section-green,
.section-blue,
.section-red.expiring-card{
    min-height:auto;
}

/* Smaller card headers */
.section-green .card-header,
.section-blue .card-header,
.section-red.expiring-card .card-header{
    padding:10px 16px;
    font-size:15px;
}

/* Reduce body padding */
.section-green .card-body,
.section-blue .card-body,
.section-red.expiring-card .card-body{
    padding:8px;
}

/* Compact tables */
.section-green table,
.section-blue table,
.section-red.expiring-card table{
    margin-bottom:0;
    font-size:13px;
}

/* Compact cells */
.section-green th,
.section-green td,
.section-blue th,
.section-blue td,
.section-red.expiring-card th,
.section-red.expiring-card td{
    padding:6px 10px !important;
    white-space:nowrap;
    vertical-align:middle;
}

/* Smaller table headers */
.section-green thead th,
.section-blue thead th,
.section-red.expiring-card thead th{
    font-size:12px;
    font-weight:600;
}

/* Limit body height with scroll */
.section-green .table-responsive,
.section-blue .table-responsive{
    max-height:260px;
    overflow-y:auto;
}

/* Expiring subscription table slightly shorter */
.section-red.expiring-card .table-responsive{
    max-height:220px;
    overflow-y:auto;
}
.chart-body-small{
    height:280px !important;
    min-height:280px !important;
    max-height:280px !important;
    padding:10px;
}
/* =========================================================
   COUNTRY DASHBOARD - KPI CARDS
   Equal height for all KPI cards
   ========================================================= */

.country-dashboard .row.gy-3 > .col-sm-6.col-md-3 {
    display: flex;
}

.country-dashboard .metric-link {
    width: 100%;
    height: 100%;
}

.country-dashboard .metric-link .card {
    width: 100%;
    height: 100%;
    min-height: 110px;
}

.country-dashboard .metric-link .card-body {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px 12px;
}

.country-dashboard .metric-link .card-subtitle {
    margin-bottom: 8px !important;
    line-height: 1.2;
}

.country-dashboard .metric-link .card h3 {
    margin-bottom: 0;
}
/* =========================================================
   MANAGER DASHBOARD - KPI CARDS
   Equal height and consistent sizing
   Scoped ONLY to Manager Dashboard
   ========================================================= */

.manager-dashboard .row.g-3.mb-4 > .col-md-3 {
    display: flex;
}

.manager-dashboard .row.g-3.mb-4 > .col-md-3 .metric-link {
    width: 100%;
    height: 100%;
}

.manager-dashboard .row.g-3.mb-4 > .col-md-3 .card {
    width: 100%;
    height: 100%;
    min-height: 110px;
}

.manager-dashboard .row.g-3.mb-4 > .col-md-3 .card-body {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px 12px;
}

.manager-dashboard .row.g-3.mb-4 > .col-md-3 .card-body small {
    line-height: 1.2;
    margin-bottom: 8px;
}

.manager-dashboard .row.g-3.mb-4 > .col-md-3 .card-body h3 {
    margin-bottom: 0;
    line-height: 1.2;
    white-space: nowrap;
}
