/* cards/kpi_card/style.css */
/* Custom styles for HR / KPI card and Modals */

.card-footer-custom .tda-pill-btn,
.card-footer-custom .kpi-pill-btn,
.card-footer-custom .case-pill-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
    height: auto !important;
    margin: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}
.card-footer-custom .tda-pill-btn {
    background: rgba(124, 58, 237, 0.05) !important;
    color: #7c3aed !important;
    border: 1px solid rgba(124, 58, 237, 0.2) !important;
}
.card-footer-custom .tda-pill-btn:hover {
    background: #7c3aed !important;
    color: #ffffff !important;
    border-color: #7c3aed !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px rgba(124, 58, 237, 0.2) !important;
}
.card-footer-custom .kpi-pill-btn {
    background: rgba(16, 185, 129, 0.05) !important;
    color: #10b981 !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
}
.card-footer-custom .kpi-pill-btn:hover {
    background: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2) !important;
}
.card-footer-custom .case-pill-btn {
    background: rgba(59, 130, 246, 0.05) !important;
    color: #3b82f6 !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
}
.card-footer-custom .case-pill-btn:hover {
    background: #3b82f6 !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2) !important;
}
.card-footer-custom .tda-pill-btn i,
.card-footer-custom .kpi-pill-btn i,
.card-footer-custom .case-pill-btn i {
    font-size: 0.75rem !important;
    margin: 0 !important;
}

/* --- Truly Minimalist Sales KPI Modal Styles --- */
.kpi-premium-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 2000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    opacity: 0;
}
.kpi-premium-modal.active {
    display: flex;
    opacity: 1;
}
.kpi-header-minimal {
    padding: 12px 20px;
    background: #ffffff;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.kpi-grid-minimal {
    display: flex;
    flex: 1;
    overflow-x: auto;
    background: #ffffff;
}
.kpi-col-minimal {
    flex: 1;
    min-width: 300px;
    border-right: 1px solid #eee;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.kpi-col-minimal:last-child {
    border-right: none;
}
.col-header-minimal {
    font-size: 0.85rem;
    font-weight: 700;
    color: #333;
    padding-bottom: 8px;
    border-bottom: 2px solid #333;
    margin-bottom: 10px;
}
.data-section-minimal {
    margin-bottom: 10px;
}
.section-title-minimal {
    font-size: 0.75rem;
    font-weight: 800;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 8px;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}
.mini-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
}
.mini-table td {
    padding: 4px 0;
    font-size: 0.8rem;
    color: #444;
    border-bottom: 1px dashed #f0f0f0;
}
.mini-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: #000;
}
.issue-text-minimal {
    font-size: 0.75rem;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
    border-left: 3px solid #ddd;
}
.kpi-blur-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1999;
    display: none;
    transition: all 0.3s ease;
}
.kpi-blur-backdrop.active {
    display: block;
}

#hr-dept-kpi-grid div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.02);
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.03);
}
