/* cards/pm_card/style.css */
/* Premium styles for Preventive Maintenance (PM) Card */
#pmCard .mini-chart {
    height: 120px;
    margin: 15px 0;
}

/* Card Specific Pill Buttons & Footer styles */
.card-footer-custom .tda-pill-btn,
.card-footer-custom .kpi-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 .tda-pill-btn i,
.card-footer-custom .kpi-pill-btn i {
    font-size: 0.75rem !important;
    margin: 0 !important;
}

/* Modal and Table styles for PM Card */
.stat-card-modern {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-left: 5px solid #CBD5E1;
}
.stat-card-modern.pm-total { border-left-color: #64748B; }
.stat-card-modern.pm-good { border-left-color: #10B981; }
.stat-card-modern.pm-warning { border-left-color: #F59E0B; }
.stat-card-modern.pm-danger { border-left-color: #EF4444; }
.stat-label { font-size: 0.8rem; color: #64748B; display: block; margin-bottom: 4px; }
.stat-value { font-size: 1.6rem; font-weight: 800; margin: 0; color: #1E293B; }

.status-btn-sm {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    border: none;
}
.status-btn-overdue { background: #fee2e2; color: #ef4444; }
.status-btn-scheduled { background: #fef3c7; color: #d97706; }

.readiness-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
    min-width: 80px;
    text-align: center;
}
.status-badge-success { background: #dcfce7; color: #166534; }
.status-badge-danger { background: #fee2e2; color: #991b1b; }
.status-badge-warning { background: #fef3c7; color: #92400e; }
.status-badge-gray { background: #f1f5f9; color: #475569; }

.modal-tab {
    padding: 12px 24px;
    border: none;
    background: none;
    font-weight: 600;
    color: #64748b;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}
.modal-tab:hover { color: #3b82f6; background: #f8fafc; }
.modal-tab.active { color: #3b82f6; border-bottom-color: #3b82f6; }
.modal-tab i { margin-right: 8px; }
