/* ==========================================================================
   SISTEM INFORMASI JADWAL TUGAS PRODIAKON - MODERN STYLING
   ========================================================================== */

:root {
    --primary: #0284c7;
    --primary-hover: #0369a1;
    --primary-light: #e0f2fe;
    --primary-dark: #0c4a6e;
    
    --navy-900: #0f172a;
    --navy-800: #1e293b;
    --navy-700: #334155;
    --navy-600: #475569;
    --navy-500: #64748b;
    
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-sidebar: #0f172a;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    
    --success: #10b981;
    --success-bg: #ecfdf5;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --danger: #ef4444;
    --danger-bg: #fef2f2;
    --info: #3b82f6;
    --info-bg: #eff6ff;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
    font-size: 0.925rem;
    min-height: 100vh;
    display: flex;
}

/* ==========================================================================
   LAYOUT STRUCTURE (SIDEBAR + MAIN CONTENT)
   ========================================================================== */

.app-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.sidebar {
    width: 270px;
    background: var(--bg-sidebar);
    color: #f8fafc;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 100;
    overflow-y: auto;
    border-right: 1px solid #1e293b;
}

.sidebar-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35);
}

.sidebar-title h1 {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1.2;
}

.sidebar-title p {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
}

.sidebar-nav {
    padding: 16px 12px;
    flex: 1;
}

.nav-category {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    padding: 12px 14px 6px;
    margin-top: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    margin-bottom: 3px;
}

.nav-link i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(3px);
}

.nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* MAIN CONTENT AREA */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #f8fafc;
}

.topbar {
    height: 70px;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 90;
}

.topbar-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f1f5f9;
    padding: 8px 16px;
    border-radius: 9999px;
    width: 320px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.topbar-search:focus-within {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.topbar-search input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 0.85rem;
    color: var(--text-main);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-container {
    padding: 30px;
    flex: 1;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

/* ==========================================================================
   PAGE HEADINGS & BREADCRUMB
   ========================================================================== */

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.page-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy-900);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 0.875rem;
    color: var(--navy-500);
    margin-top: 4px;
}

.page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ==========================================================================
   CARDS & CONTAINERS
   ========================================================================== */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 24px;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy-900);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 24px;
}

/* STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-info .stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--navy-900);
    line-height: 1.1;
}

.stat-info .stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.stat-icon.primary { background: #e0f2fe; color: #0284c7; }
.stat-icon.success { background: #ecfdf5; color: #059669; }
.stat-icon.warning { background: #fffbeb; color: #d97706; }
.stat-icon.purple  { background: #f3e8ff; color: #7c3aed; }

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}
.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--navy-700);
    border-color: #cbd5e1;
}
.btn-secondary:hover {
    background: #e2e8f0;
    color: var(--navy-900);
}

.btn-success {
    background: #059669;
    color: #ffffff;
}
.btn-success:hover {
    background: #047857;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.btn-danger {
    background: #dc2626;
    color: #ffffff;
}
.btn-danger:hover {
    background: #b91c1c;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary-light);
}

.btn-outline-secondary {
    background: transparent;
    color: var(--navy-600);
    border-color: #cbd5e1;
}
.btn-outline-secondary:hover {
    background: #f8fafc;
    color: var(--navy-900);
}

.btn-wa {
    background: #25d366;
    color: #ffffff;
}
.btn-wa:hover {
    background: #1eb956;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* ==========================================================================
   TABLES
   ========================================================================== */

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.875rem;
}

.custom-table th {
    background: #f8fafc;
    color: var(--navy-600);
    font-weight: 700;
    font-size: 0.775rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-color);
}

.custom-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    color: var(--navy-800);
    vertical-align: middle;
}

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

.custom-table tbody tr:hover {
    background: #f8fafc;
}

/* ==========================================================================
   BADGES & LITURGICAL ACCENTS
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-primary { background: #e0f2fe; color: #0369a1; }
.badge-success { background: #ecfdf5; color: #047857; }
.badge-warning { background: #fffbeb; color: #b45309; }
.badge-danger  { background: #fef2f2; color: #b91c1c; }
.badge-secondary { background: #f1f5f9; color: #475569; }

.badge-liturgi {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.775rem;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dot-color {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.badge-pic {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy-800);
    margin-bottom: 6px;
}

.form-control, .form-select {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--navy-900);
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.form-text {
    font-size: 0.75rem;
    color: var(--navy-500);
    margin-top: 4px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

/* ==========================================================================
   ALERTS / FLASH MESSAGES
   ========================================================================== */

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ==========================================================================
   MISA SCHEDULE CARDS & MATRIX
   ========================================================================== */

.misa-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    transition: var(--transition);
    border-left: 6px solid var(--primary);
}

.misa-card:hover {
    box-shadow: var(--shadow-md);
}

.misa-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

.misa-datetime {
    display: flex;
    align-items: center;
    gap: 12px;
}

.misa-date-box {
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    text-align: center;
    min-width: 60px;
}

.misa-date-box .day-num {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--navy-900);
    line-height: 1;
}

.misa-date-box .month-name {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--navy-500);
    text-transform: uppercase;
}

.petugas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.petugas-badge {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.petugas-badge.is-pic {
    background: #fffbeb;
    border-color: #fcd34d;
    font-weight: 600;
}

.petugas-slot-empty {
    border: 2px dashed #cbd5e1;
    background: #ffffff;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    color: #94a3b8;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ==========================================================================
   MODAL DIALOG
   ========================================================================== */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-backdrop.active {
    display: flex;
}

.modal-dialog {
    background: #ffffff;
    width: 100%;
    max-width: 600px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: modalSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlide {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy-900);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    background: #f8fafc;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 11pt !important;
        display: block !important;
    }

    .sidebar, .topbar, .page-actions, .btn, .no-print, .modal-backdrop {
        display: none !important;
    }

    .main-wrapper {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        background: #ffffff !important;
    }

    .content-container {
        padding: 0 !important;
        max-width: 100% !important;
    }

    .card {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .print-header {
        display: block !important;
        text-align: center;
        margin-bottom: 25px;
        border-bottom: 2px solid #000000;
        padding-bottom: 12px;
    }

    .print-header h2 {
        font-size: 16pt;
        font-weight: bold;
        text-transform: uppercase;
        margin-bottom: 4px;
    }

    .print-header p {
        font-size: 10pt;
        color: #333333;
    }

    .custom-table {
        border: 1px solid #000000 !important;
        width: 100% !important;
    }

    .custom-table th, .custom-table td {
        border: 1px solid #000000 !important;
        padding: 6px 10px !important;
        font-size: 9.5pt !important;
        color: #000000 !important;
    }

    .custom-table th {
        background: #f0f0f0 !important;
        font-weight: bold !important;
    }

    .badge-liturgi {
        border: 1px solid #000 !important;
        color: #000 !important;
        background: transparent !important;
    }

    .print-signature {
        display: flex !important;
        justify-content: space-between;
        margin-top: 40px;
        page-break-inside: avoid;
    }

    .signature-box {
        text-align: center;
        width: 200px;
    }

    .signature-line {
        margin-top: 60px;
        border-bottom: 1px solid #000000;
    }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 992px) {
    .sidebar {
        position: fixed;
        left: -270px;
    }

    .sidebar.open {
        left: 0;
    }

    .topbar {
        padding: 0 16px;
    }

    .content-container {
        padding: 20px 16px;
    }

    .menu-toggle-btn {
        display: inline-flex !important;
    }
}

/* ==========================================================================
   UNIVERSAL MONTH PICKER POPOVER & STEPPER COMPONENT
   ========================================================================== */

.cmp-popover {
    position: absolute;
    z-index: 999999;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.05);
    width: 290px;
    padding: 16px;
    font-family: inherit;
    animation: cmpFadeIn 0.16s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
}

@keyframes cmpFadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cmp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.cmp-btn-nav {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cmp-btn-nav:hover {
    background: #e2e8f0;
    color: #0f172a;
    border-color: #cbd5e1;
}

.cmp-year-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
    min-width: 65px;
    text-align: center;
}

.cmp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.cmp-month-btn {
    padding: 9px 4px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    font-size: 0.825rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
    position: relative;
    white-space: nowrap;
}

.cmp-month-btn:hover {
    background: #e0f2fe;
    color: #0284c7;
    border-color: #bae6fd;
    transform: translateY(-1px);
}

.cmp-month-btn.active {
    background: linear-gradient(135deg, #0284c7, #0369a1) !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35) !important;
}

.cmp-month-btn.current:not(.active)::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #0284c7;
}

.cmp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

.cmp-btn-today {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #334155;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.775rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.cmp-btn-today:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.cmp-btn-close {
    background: transparent;
    border: none;
    color: #64748b;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.775rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cmp-btn-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* Stepper Group for Month Navigation */
.month-stepper-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.month-stepper-group .btn {
    padding: 8px 11px;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Enhanced cursor & styling for date & month inputs */
input[type="month"], input[type="date"] {
    cursor: pointer;
    background-color: #ffffff;
}

input[type="month"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: invert(35%) sepia(85%) saturate(1400%) hue-rotate(175deg) brightness(95%) contrast(98%);
    opacity: 0.85;
    padding: 2px;
    border-radius: 4px;
}

input[type="month"]::-webkit-calendar-picker-indicator:hover,
input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    background: #f1f5f9;
}

@media (max-width: 576px) {
    .cmp-popover {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 90% !important;
        max-width: 320px !important;
        box-shadow: 0 20px 40px rgba(0,0,0,0.35) !important;
    }
}

