.kpi-main-value {
    color: #45C38E;
    font-size: 1.9em;
    margin:3%;
    margin-top:10%;
    margin-bottom:10%;
}

.kpi-percentage {
    color: #000000; 
    display: inline-block;
    padding: 1%;
    background-color: var(--filter-background-color-secondary);
    font-size: 12px; 
    border-radius: 15px;
    font-weight: bold;
}

.kpi-percentage-container {
    text-align: center;
    margin-top:2%;
}


.kpi-column-style {
    text-align: center;
    flex: 1;
    flex-direction: column;
    padding: 1%;
    border-radius: 5px;
    width:100%;
    height: 100%;
}

.kpi-column-style-first {
    background-color: #e7e7e7;
    border: 1px solid #b3b3b3;
    margin:10px;
}


.kpi-excel-icon-cickable {
    background-color: white; 
    border-radius: 5px; 
    padding: 2px;
}
.kpi-excel-icon-cickable:hover {
    background-color: #f1ffee; 
    cursor: pointer;
}
.kpi-excel-icon-cickable:active {
    background-color: #d4f0d4; 
}
.kpi-excel-icon-cickable:focus {
    outline: none; 
    box-shadow: 0 0 0 2px #45C38E; 
}


.kpi-column-style-other {
    background-color: transparent;
    border: none;
}

.kpi-card {
    height: 100%;
    padding: 0px;
    margin: 0px;
    border-radius: 5px;
}


.KPI-CaregiversOnBoard-input {
    border-radius: 4px;
    border: 1px solid var(--500, #C9CFD7);
    width: 50px;
}

.KPI-CaregiversOnBoard-input-container {
    position: absolute;
    top: 18px;
    right: 60px;
    align-items: center;
    z-index: 100;
}

/* New row-based layout styles */
.kpi-rows-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0px 0px;
    padding-top: 3px;
    width: 100%;
}

.kpi-row {
    display: flex;
    padding: 0px 0px;
    padding-top:4px;
    border-bottom: 1px solid #E5E7EB;
}

.kpi-row:last-child {
    border-bottom: none;
}

.kpi-row-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.kpi-row-title {
    font-size: 14px;
    color: #6B7280;
    font-weight: 400;
}

.kpi-row-subtitle {
    font-size: 11px;
    color: #9CA3AF;
    font-weight: 300;
}

.kpi-row-value-clickable {
    font-size: 24px;
    color: #41afff;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    padding: 4px 8px;
    border-radius: 6px;
}

.kpi-row-value-clickable:hover {
    background-color: #e8f4ff;
    color: #3399ff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(65, 175, 255, 0.2);
}

.kpi-row-value-clickable:active {
    background-color: #d4ebff;
    color: #2988ee;
    transform: translateY(0px);
    box-shadow: 0 1px 2px rgba(65, 175, 255, 0.3);
}

.kpi-row-trend {
    padding-top: 6px;
}

.kpi-trend-arrow {
    font-size: 24px;
    font-weight: 600;
}

.kpi-trend-value {
    font-size: 24px;
    font-weight: 400;
}




/* KPI Grid Layout (2 columns) */
.kpi-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 6px;
    padding: 1px 1px;
    padding-top: 3px;
    width: 100%;
}

.kpi-grid-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 2px solid #41afff;
    padding-bottom: 1px;
}

.kpi-grid-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0px;
}

.kpi-grid-title {
    font-size: 14px;
    color: #555;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.kpi-grid-value-large {
    font-size: 24px;
    color: #41afff; 
    font-weight: 400;
    line-height: 1.2;
    align-self: flex-end;
    border-radius: 5px;
}

.kpi-grid-value-large:hover {
    cursor: pointer;
    text-shadow: 0 0 1px #41afff;
    background-color: #e8f4ff;
}
.kpi-grid-value-large:active {
    background-color: #d4ebff;
    text-shadow: 0 0 2px #41afff;
}


.kpi-grid-subtitle {
    font-size: 9px;
    color: #999;
    align-self: flex-start;
    margin-top: -2px;
    white-space: nowrap;
}

.kpi-grid-item-trend {
    border-bottom: 2px solid #41afff; 
}

.kpi-grid-trend-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.kpi-place-indicator {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.kpi-place-arrow {
    color: #ff0000; /* Default red for down, will be overridden inline */
    font-size: 24px;
    font-weight: bold;
    margin-left: 5px;
}


/* ============================================================
   KPI Kachel Tankdaten — Ranking table styles
   ============================================================ */

.td-rank-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #E5E7EB;
    padding: 2px 0;
    min-height: 30px;
}

.td-rank-row:last-child {
    border-bottom: none;
}

.td-rank-header-row {
    border-bottom: 2px solid #41afff;
    min-height: 22px;
    padding: 1px 0;
}

.td-rank-num {
    flex: 0 0 18px;
    font-size: 10px;
    color: #9CA3AF;
    font-weight: 500;
    text-align: center;
}

.td-rank-rl {
    flex: 0 0 52px;
    font-size: 10px;
    color: #6B7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 3px;
}

.td-rank-name {
    flex: 1;
    min-width: 0;
    font-size: 10px;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 4px;
}

.td-rank-km {
    flex: 0 0 50px;
    font-size: 10px;
    color: #374151;
    text-align: right;
    white-space: nowrap;
}

.td-rank-km-prev {
    color: #9CA3AF;
}

.td-rank-km-link {
    color: #41afff;
    text-decoration: none;
    cursor: pointer;
    border-radius: 3px;
    padding: 1px 2px;
    transition: background-color 0.12s ease;
}

.td-rank-km-link:hover {
    background-color: #e8f4ff;
    color: #3399ff;
    text-decoration: none;
}

.td-rank-km-link:active {
    background-color: #d4ebff;
}

.td-rank-col-header {
    font-size: 10px;
    color: #9CA3AF;
    font-weight: 500;
}



