
body {
    background: #f4f7fb;
    font-family: 'Segoe UI', sans-serif;
}
/* HEADER */
.header {
    background: linear-gradient(90deg, #0d2b4d, #163f6b);
    color: white;
    padding: 20px;
    border-radius: 10px;
}

.kpi-card {
    border-radius: 15px;
    padding: 20px;
    background: white;
    display: flex;
    align-items: center;
    gap: 10px; /* 👈 space between icon and text */
}

.kpi-text {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.kpi-title {
    font-size: 20px;
    font-weight: bold;
    /* text-align: center; */
}

.kpi-value {
    font-size: 50px;
    font-weight: bold;
    text-align: center; /* 👈 centers value under title */
}

.kpi-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:40px;
    flex-shrink: 0;
}

/* TABLE */
.table thead th {
    background: #0d2b4d;
    color: white;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
    border: 1px solid rgba(201, 197, 197, 0.7);
}
.table tbody td {
    vertical-align: middle;
    border: 1px solid rgba(201,197,197,0.7);
}

.td-value{
    font-size: 25px;
    font-weight: bold;
    text-align: center;
}


/* CARD STYLE */
.card {
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: 100%;
    padding: 10px; 
}

.kpi-table-item {
    display: flex;
    align-items: flex-start; /* text aligns to top of icon */
    gap: 12px;
}

.kpi-table-icon {
    background-color: #0d6efd; /* Bootstrap primary blue */
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    font-size: 20px; /* dynamic icon size */
    font-weight: bold;
    flex-shrink: 0;
}

.kpi-table-text {
    line-height: 2;
    font-size: 16px;
}

/* PROGRESS BAR */
/* Wrapper to position text over the bar */
.progress-wrapper {
    position: relative;
    width: 100%;
}

/* Increase height of progress bar */
.custom-progress {
    height: 20px; /* 🔥 adjust this (e.g. 25px, 30px) */
    border-radius: 6px;
}

/* Optional: smoother bar look */
.progress-bar {
    border-radius: 6px;
}


/* Position percentage text on top-left */
.progress-label {
    top: 50%;
    transform: translateY(-50%);
    color: black;
}

/* ================Universal Table Styles ========================*/
.table-scroll-container {
    width: 100%;
    max-height: 500px;        /* vertical scroll limit */
    overflow-x: auto;         /* horizontal scroll */
    overflow-y: auto;         /* vertical scroll */
}
.table-scroll-container td,
.table-scroll-container th {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/************************Universal download icon Styles****************************/
.download-icon{
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    color: #044ab4;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 2px 3px;
    border-radius: 5px;
    transform: translateY(-5px);  /* 👈 moves up 5px */

}

.download-icon:hover {
    background: rgba(5, 201, 54, 0.7);
}
.download-text {
    font-size: 16px;
}