/* منصة منشأتي - v2.1.0 - Premium Fixed */
:root {
    --navy-900: #0f172a;
    --navy-800: #1e293b;
    --navy-700: #334155;
    --navy-600: #475569;
    
    --brand-600: #2563eb;
    --brand-500: #3b82f6;
    --brand-400: #60a5fa;
    --brand-50: #eff6ff;
    
    --success-600: #059669;
    --success-500: #10b981;
    --success-50: #ecfdf5;
    
    --warning-600: #d97706;
    --warning-500: #f59e0b;
    --warning-50: #fffbeb;
    
    --danger-600: #dc2626;
    --danger-500: #ef4444;
    --danger-50: #fef2f2;
    
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    --primary: var(--navy-900);
    --secondary: var(--brand-600);
    --success: var(--success-600);
    --warning: var(--warning-500);
    --danger: var(--danger-500);
}

* { font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif; }

body {
    background: #f5f7fa;
    color: var(--gray-800);
    min-height: 100vh;
    font-size: 0.95rem;
}

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

.navbar-brand { font-size: 1.4rem; }
.nav-link.active { background: rgba(255,255,255,0.18); border-radius: 6px; }

/* ========================================== */
/* ✨ Hero Section - Full Navy Background v2.1  */
/* ========================================== */

.company-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e3a8a 100%);
    border-radius: 16px;
    border: none;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.15);
    overflow: hidden;
    position: relative;
}

/* خلفية كاملة - النقش الزخرفي */
.hero-bg-pattern {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(ellipse 600px 400px at top right, rgba(59, 130, 246, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 500px 300px at bottom left, rgba(99, 102, 241, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 30% 50%, rgba(255,255,255,0.04) 0%, transparent 25%);
    z-index: 0;
    pointer-events: none;
}

.hero-content { 
    position: relative; 
    z-index: 1; 
    padding: 30px;
}

.hero-top {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    margin-bottom: 28px; 
    gap: 20px; 
    flex-wrap: wrap;
}

.hero-identity { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    flex: 1; 
    min-width: 280px; 
}

/* الأيقونة - فاخرة */
.hero-icon {
    width: 76px; 
    height: 76px; 
    background: white;
    border-radius: 18px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    box-shadow: 
        0 0 0 4px rgba(255, 255, 255, 0.15),
        0 12px 28px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}
.hero-icon i { 
    font-size: 2rem; 
    background: linear-gradient(135deg, var(--brand-600), var(--navy-900));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text { padding-top: 4px; flex: 1; min-width: 0; }

/* العنوان - أبيض ناصع مع ظل قوي للقراءة */
.hero-title {
    color: #ffffff !important;
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0 0 12px 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-subtitle i { color: rgba(255, 255, 255, 0.7); }

.hero-subtitle .hero-cr {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white !important;
    font-weight: 600;
}
.hero-subtitle .hero-cr strong { color: white; }

/* Compliance Score */
.compliance-score {
    display: flex; 
    flex-direction: column; 
    align-items: center;
    padding: 14px 20px; 
    border-radius: 16px;
    min-width: 140px; 
    background: white;
    box-shadow: 
        0 0 0 3px rgba(255, 255, 255, 0.2),
        0 8px 24px rgba(0, 0, 0, 0.25);
}

.score-circle { 
    position: relative; 
    width: 90px; 
    height: 90px; 
    margin-bottom: 8px; 
}
.score-svg { 
    width: 100%; 
    height: 100%; 
    transform: scaleX(-1);
}
.score-text { 
    position: absolute; 
    top: 50%; left: 50%; 
    transform: translate(-50%, -50%); 
    text-align: center; 
}
.score-value { 
    font-size: 1.55rem; 
    font-weight: 900; 
    line-height: 1; 
}
.score-value span { 
    font-size: 0.85rem; 
    font-weight: 700; 
    opacity: 0.85;
}
.score-label { 
    font-size: 0.92rem; 
    font-weight: 800; 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    margin-top: 4px;
}
.score-hint { 
    color: var(--gray-500); 
    font-size: 0.72rem; 
    margin-top: 4px; 
    font-weight: 600;
}

/* ========== Info Cards ========== */
.hero-cards { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 14px; 
    margin-bottom: 22px; 
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
    transition: all 0.25s;
}
.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.info-body { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    gap: 4px; 
    min-width: 0;
}
.info-label { 
    color: var(--gray-500); 
    font-size: 0.78rem; 
    font-weight: 700;
}
.info-value { 
    color: var(--navy-900) !important;
    font-size: 1.05rem; 
    font-weight: 800;
    line-height: 1.3;
}

.date-row { 
    display: flex; 
    gap: 6px; 
    flex-wrap: wrap; 
    margin-top: 4px;
}
.date-badge { 
    padding: 4px 10px; 
    border-radius: 8px; 
    font-size: 0.8rem; 
    font-weight: 700; 
    border: 1px solid; 
}
.date-badge.date-greg { 
    background: var(--brand-50); 
    color: var(--brand-600); 
    border-color: #bfdbfe; 
}
.date-badge.date-hijri { 
    background: var(--success-50); 
    color: var(--success-600); 
    border-color: #a7f3d0; 
}

.status-pill {
    display: inline-flex; 
    align-items: center;
    padding: 3px 10px; 
    border-radius: 12px;
    font-size: 0.75rem; 
    font-weight: 700; 
    border: 1px solid;
    margin-top: 6px; 
    width: fit-content;
}

.whatsapp-link { 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    color: #25d366 !important; 
    text-decoration: none; 
    font-size: 0.88rem; 
    font-weight: 700; 
    margin-top: 4px;
}
.whatsapp-link:hover { color: #128c7e !important; }
.whatsapp-link i { font-size: 1.1rem; }

/* ========== Hero Actions Bar ========== */
.hero-actions { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    gap: 15px; 
    flex-wrap: wrap; 
    padding-top: 22px; 
    border-top: 1px solid rgba(255, 255, 255, 0.15); 
}

.alert-banner { 
    flex: 1; 
    min-width: 280px; 
    padding: 12px 18px; 
    border-radius: 10px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 0.9rem; 
    font-weight: 700;
    backdrop-filter: blur(10px);
}
.alert-banner i { font-size: 1.15rem; }

.alert-banner-warning { 
    background: rgba(254, 243, 199, 0.95); 
    color: #78350f !important; 
    border: 1px solid rgba(253, 224, 71, 0.5); 
}
.alert-banner-success { 
    background: rgba(220, 252, 231, 0.95); 
    color: #14532d !important; 
    border: 1px solid rgba(134, 239, 172, 0.5); 
}

.action-buttons { display: flex; gap: 10px; }

.btn-hero { 
    padding: 10px 20px; 
    border-radius: 9px; 
    font-size: 0.88rem; 
    font-weight: 700; 
    text-decoration: none; 
    transition: all 0.2s; 
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-hero-primary { 
    background: white;
    color: var(--navy-900) !important; 
}
.btn-hero-primary:hover { 
    background: var(--gray-100); 
    transform: translateY(-1px); 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.btn-hero-light { 
    background: rgba(255, 255, 255, 0.12); 
    color: white !important; 
    border-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}
.btn-hero-light:hover { 
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4); 
}

/* ========================================== */
/* ✨ KPI Cards                                 */
/* ========================================== */
.kpi-card {
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: all 0.25s;
    overflow: hidden;
    position: relative;
    background: white;
}
.kpi-card:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 4px 8px rgba(0,0,0,0.06), 0 12px 24px rgba(15, 23, 42, 0.1);
    border-color: var(--gray-300);
}
.kpi-card .kpi-icon { 
    position: absolute; 
    left: 18px; 
    top: 18px; 
    font-size: 2.5rem; 
    opacity: 0.08;
}
.kpi-card .kpi-value { 
    font-size: 2.1rem; 
    font-weight: 900; 
    margin: 0;
    color: var(--navy-900);
    letter-spacing: -0.5px;
}
.kpi-card .kpi-label { 
    font-size: 0.85rem; 
    color: var(--gray-500); 
    margin: 0;
    font-weight: 600;
}
.kpi-card .card-body small {
    color: var(--gray-500);
    font-weight: 500;
}
.kpi-card.kpi-money { border-top: 3px solid var(--brand-500); }
.kpi-card.kpi-expired { border-top: 3px solid var(--danger-500); }
.kpi-card.kpi-pending { border-top: 3px solid var(--warning-500); }
.kpi-card.kpi-employees { border-top: 3px solid var(--success-500); }

.kpi-card .kpi-value.text-primary { color: var(--brand-600) !important; }
.kpi-card .kpi-value.text-danger { color: var(--danger-500) !important; }
.kpi-card .kpi-value.text-warning { color: var(--warning-500) !important; }
.kpi-card .kpi-value.text-info { color: var(--success-500) !important; }

/* ============================================== */
/* ✨ Smart Table - مع Zebra Stripes واضحة v2.1    */
/* ============================================== */
.smart-table { 
    border-radius: 12px; 
    overflow: hidden; 
    background: white;
}
.smart-table table { 
    margin: 0;
    border-collapse: collapse;
}

/* رأس الجدول */
.smart-table thead { 
    background: var(--gray-100);
}
.smart-table thead th { 
    border: none; 
    padding: 14px 14px; 
    font-weight: 800; 
    font-size: 0.82rem;
    color: var(--gray-700);
    border-bottom: 2px solid var(--gray-300);
}

/* الصفوف - Zebra Stripes واضحة */
.smart-table tbody td { 
    padding: 14px 14px; 
    vertical-align: middle; 
    font-size: 0.93rem;
    color: var(--navy-800);
    border-bottom: 1px solid var(--gray-200);
    border-top: none;
    font-weight: 500;
}

.smart-table tbody tr { 
    border-right: 3px solid transparent; 
    transition: all 0.15s;
    background: white;
}

/* الصفوف الزوجية - رمادي فاتح للتمييز */
.smart-table tbody tr:nth-child(even) {
    background: #fbfcfd;
}

/* Hover - أوضح */
.smart-table tbody tr:hover { 
    background: #f1f5f9 !important;
    box-shadow: inset 0 0 0 1px var(--gray-200);
}

.smart-table tbody tr:last-child td { 
    border-bottom: none; 
}

/* ========== Row Status Colors - تطغى على Zebra ========== */
.row-red {
    background: #fef2f2 !important;
    border-right-color: var(--danger-500) !important;
}
.row-red:hover { background: #fee2e2 !important; }

.row-yellow { 
    background: var(--warning-50) !important; 
    border-right-color: var(--warning-500) !important; 
}
.row-yellow:hover { background: #fef3c7 !important; }

.row-green { 
    background: var(--success-50) !important;
    border-right-color: var(--success-500) !important; 
}
.row-green:hover { background: #d1fae5 !important; }

.row-expired {
    background: #fef2f2 !important;
    border-right: 3px solid #b91c1c !important;
    color: #7f1d1d !important;
    position: relative;
}
.row-expired:hover { background: #fee2e2 !important; }
.row-expired td { 
    color: #7f1d1d !important; 
    font-weight: 600; 
}
.row-expired strong { color: #991b1b !important; }
.row-expired a:not(.btn) { color: #991b1b !important; }
.row-expired small { color: #b91c1c !important; }

.row-expired::after {
    content: ''; 
    position: absolute; 
    right: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--danger-500), #991b1b);
    animation: pulse-red 2s ease-in-out infinite;
    pointer-events: none;
}
@keyframes pulse-red {
    0%, 100% { opacity: 1; } 
    50% { opacity: 0.5; }
}

/* ========== Days Badge ========== */
.days-badge {
    display: inline-block; 
    padding: 5px 12px; 
    border-radius: 20px;
    font-weight: 800; 
    font-size: 0.82rem; 
    min-width: 70px; 
    text-align: center;
}
.days-badge.d-red { 
    background: var(--danger-500); 
    color: white;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.25);
}
.days-badge.d-yellow { 
    background: var(--warning-500); 
    color: #78350f;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.25);
}
.days-badge.d-green { 
    background: var(--success-500); 
    color: white;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.25);
}
.days-badge.d-expired { 
    background: #991b1b; 
    color: #fff;
    box-shadow: 0 0 0 2px #fee2e2, 0 2px 4px rgba(153, 27, 27, 0.3);
}

/* ========== Status Column ========== */
.emp-table tbody td:nth-child(6),
.emp-table tbody td:nth-child(9) {
    text-align: center;
    vertical-align: middle;
    padding: 10px 6px;
    white-space: nowrap;
}

.emp-table tbody td:nth-child(6) > .badge,
.emp-table tbody td:nth-child(9) > .badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    min-width: 75px;
    padding: 6px 10px;
    margin: 0 4px 0 0 !important;
    font-size: 0.78rem;
}

.emp-table tbody td:nth-child(6) .btn-renew,
.emp-table tbody td:nth-child(9) .btn-renew {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    font-size: 0.75rem !important;
    margin: 0 !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
    transition: all 0.2s;
    line-height: 1;
}

.emp-table tbody td .btn-renew i {
    margin: 0 !important;
    line-height: 1;
    font-size: 0.75rem;
}

.emp-table tbody td .btn-renew:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.5);
}

.emp-table tbody td:nth-child(6) br,
.emp-table tbody td:nth-child(9) br {
    display: none !important;
}

.emp-table tbody td .btn-sm-circle,
.emp-table tbody td .mt-1 {
    margin-top: 0 !important;
}

.row-expired .btn-renew {
    background: linear-gradient(135deg, var(--danger-500), #991b1b) !important;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4);
    animation: pulse-renew 1.8s ease-in-out infinite;
}
.row-expired .btn-renew:hover {
    background: linear-gradient(135deg, #f87171, #b91c1c) !important;
}

@keyframes pulse-renew {
    0%, 100% { box-shadow: 0 2px 6px rgba(220, 38, 38, 0.4); }
    50% { box-shadow: 0 2px 12px rgba(220, 38, 38, 0.7); }
}

.smart-table tbody td:last-child {
    white-space: nowrap;
    text-align: center;
}
.smart-table tbody td:last-child .btn { margin: 0 2px; }

.smart-table tbody td:last-child .btn-renew {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    font-size: 0.78rem;
    margin: 0 3px !important;
}

.smart-table tbody td:last-child .btn-renew i { margin: 0 !important; }

/* رأس الإقامة/رخصة العمل */
.emp-table thead tr:first-child th[colspan] {
    background: var(--gray-200) !important;
    color: var(--gray-700) !important;
    border-bottom: 2px solid var(--gray-300);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 12px;
}

/* ========== Buttons ========== */
.btn-primary { 
    background: var(--navy-900); 
    border-color: var(--navy-900); 
}
.btn-primary:hover { 
    background: var(--navy-800); 
    border-color: var(--navy-800); 
}

.btn-renew {
    background: linear-gradient(135deg, var(--success-500), var(--success-600));
    color: white; 
    border: none; 
    padding: 6px 14px; 
    border-radius: 6px;
    font-size: 0.85rem; 
    font-weight: 700;
}
.btn-renew:hover { color: white; opacity: 0.9; }

/* ========== Login ========== */
.login-wrapper {
    min-height: 100vh; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--brand-600) 100%);
}
.login-card {
    background: white; 
    border-radius: 16px; 
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%; 
    max-width: 420px;
}
.login-card h1 { 
    color: var(--navy-900); 
    font-weight: 900; 
    margin-bottom: 10px; 
}

/* ========== Forms ========== */
.form-label { font-weight: 700; color: var(--gray-700); }
.form-control, .form-select { 
    border-radius: 8px; 
    padding: 10px 14px; 
    border: 1px solid var(--gray-300);
}
.form-control:focus, .form-select:focus { 
    border-color: var(--brand-500); 
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15); 
}

/* ========== Section Headers ========== */
.section-header {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    margin-bottom: 22px; 
    padding-bottom: 14px; 
    border-bottom: 2px solid var(--gray-200);
}
.section-header h2 { 
    color: var(--navy-900); 
    font-weight: 800; 
    margin: 0; 
    font-size: 1.45rem;
    letter-spacing: -0.3px;
}
.section-header h2 i { color: var(--brand-600); }

/* ========== Status Badges ========== */
.badge { 
    padding: 6px 12px; 
    font-weight: 700; 
    font-size: 0.78rem; 
    border-radius: 6px;
}
.badge.bg-primary { background-color: var(--brand-600) !important; }
.badge.bg-danger { background-color: #b91c1c !important; }
.badge.bg-warning { 
    background-color: var(--warning-500) !important; 
    color: #78350f !important;
}
.badge.bg-success { background-color: var(--success-600) !important; }
.badge.bg-info { background-color: #0891b2 !important; }
.badge.bg-secondary { background-color: var(--gray-500) !important; }

/* ========================================== */
/* ✨ Dashboard Sections                       */
/* ========================================== */

.dashboard-section {
    background: white;
    border-radius: 14px;
    padding: 0;
    border: 1px solid var(--gray-200);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(15, 23, 42, 0.05);
    margin-bottom: 22px !important;
    overflow: hidden;
}

.section-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    flex-wrap: wrap;
    gap: 10px;
}

.section-title-bar h4 {
    color: var(--navy-900);
    font-weight: 800;
    font-size: 1.05rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title-bar h4 i {
    background: var(--brand-50);
    color: var(--brand-600);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.section-employees .section-title-bar h4 i {
    background: var(--success-50);
    color: var(--success-600);
}

.section-title-bar h4 .badge {
    background: white !important;
    color: var(--gray-600) !important;
    border: 1px solid var(--gray-300);
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
}

.section-employees .section-title-bar h4 .badge {
    color: var(--success-600) !important;
    border-color: #a7f3d0;
}

.dashboard-section .smart-table {
    box-shadow: none;
    border-radius: 0;
    margin: 0;
}

.dashboard-section .smart-table thead {
    background: var(--gray-100) !important;
}

.dashboard-section .smart-table thead th {
    background: transparent !important;
    color: var(--gray-700) !important;
    font-weight: 800;
}

/* View All Footer */
.view-all-footer {
    text-align: center;
    padding: 14px 0;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 22px;
    border-radius: 20px;
    background: white;
    border: 1px solid var(--gray-300);
    transition: all 0.2s;
}

.view-all-link:hover {
    background: var(--navy-900);
    color: white;
    border-color: var(--navy-900);
    transform: translateX(-3px);
}

.view-all-link.view-all-success {
    color: var(--success-600);
    border-color: #a7f3d0;
}

.view-all-link.view-all-success:hover {
    background: var(--success-600);
    color: white;
    border-color: var(--success-600);
}

.btn-sm-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px !important;
    height: 28px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    font-size: 0.75rem !important;
    margin: 0 0 0 4px !important;
    line-height: 1;
}

/* Action Buttons */
.section-title-bar .btn-sm {
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 7px;
}

.section-title-bar .btn-success {
    background: var(--success-600);
    border-color: var(--success-600);
}
.section-title-bar .btn-success:hover {
    background: var(--success-500);
    border-color: var(--success-500);
}

.section-title-bar .btn-outline-primary {
    color: var(--gray-700);
    border-color: var(--gray-300);
    background: white;
}
.section-title-bar .btn-outline-primary:hover {
    background: var(--navy-900);
    color: white;
    border-color: var(--navy-900);
}

.section-title-bar .btn-outline-success {
    color: var(--success-600);
    border-color: #a7f3d0;
    background: white;
}
.section-title-bar .btn-outline-success:hover {
    background: var(--success-600);
    color: white;
    border-color: var(--success-600);
}

/* ========== Responsive ========== */
@media (max-width: 992px) {
    .hero-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .kpi-card .kpi-value { font-size: 1.6rem; }
    .smart-table { font-size: 0.85rem; }
    .smart-table thead th, .smart-table tbody td { padding: 10px 6px; }
    
    .emp-table tbody td:nth-child(6) .btn-renew,
    .emp-table tbody td:nth-child(9) .btn-renew {
        width: 24px !important; height: 24px !important; font-size: 0.65rem !important;
    }
    
    .section-title-bar { 
        flex-direction: column; 
        align-items: stretch;
        padding: 14px 16px;
    }
    .section-title-bar h4 { font-size: 0.95rem; }
    .section-title-bar h4 i { width: 32px; height: 32px; font-size: 0.9rem; }
}
@media (max-width: 600px) {
    .hero-content { padding: 22px 18px; }
    .hero-cards { grid-template-columns: 1fr; }
    .hero-title { font-size: 1.4rem; }
    .action-buttons { width: 100%; flex-direction: column; }
    .btn-hero { width: 100%; text-align: center; justify-content: center; }
}

/* ========== Hero Title Fix - Final ========== */
.hero-title { color: #fff !important; opacity: 1 !important; }
.hero-subtitle { color: rgba(255,255,255,.95) !important; opacity: 1 !important; }
.hero-subtitle i { color: rgba(255,255,255,.8) !important; }
.hero-subtitle .hero-cr,
.hero-subtitle .hero-cr * { color: #fff !important; }
