/* --- GLOBAL STYLES --- */
body { 
    font-family: 'Inter', sans-serif; 
}

/* --- STYLES UNTUK INDEX.HTML (KALENDER) --- */
.day-cell { 
    min-height: 100px; 
}

/* Responsif Mobile untuk Kalender */
@media (max-width: 768px) {
    .day-cell { 
        min-height: 80px; 
        font-size: 0.8rem; 
    }
    .badge { 
        font-size: 0.65rem; 
        padding: 2px 4px; 
    }
}

/* Animasi Modal */
#detailModal { 
    transition: opacity 0.3s ease-in-out; 
}

/* --- STYLES UNTUK REKAP.HTML (PRINT & PDF) --- */

/* Print Styles Optimized for A4 Single Page Portrait */
@media print {
    @page {
        size: A4 portrait; 
        margin: 1.5cm;
    }
    
    body { 
        background: white !important; 
        -webkit-print-color-adjust: exact; 
        font-size: 14pt; 
        width: 100%;
        height: 100%;
    }

    .no-print { display: none !important; }
    
    /* Header Print - CENTER ALIGNMENT FORCED */
    .print-header { 
        display: block !important; 
        margin-bottom: 15px;
        border-bottom: 2px solid black;
        text-align: center !important; 
        width: 100%;
        padding-bottom: 5px;
    }
    .print-header h1 { font-size: 18pt; font-weight: bold; margin: 0; line-height: 1.2; text-align: center; }
    .print-header h2 { font-size: 16pt; font-weight: bold; margin: 0; text-align: center; }
    .print-header p { font-size: 14pt; margin: 5px 0 5px 0; text-align: center; }

    /* Container Reset */
    .max-w-7xl { 
        max-width: 100% !important; 
        padding: 0 !important; 
        margin: 0 !important; 
        box-shadow: none !important;
    }
    
    /* Table Optimizations */
    .shadow-xl { box-shadow: none !important; }
    .rounded-xl { border-radius: 0 !important; border: none !important; overflow: visible !important; }
    
    table { 
        width: 100%; 
        font-size: 13pt; 
        border-collapse: collapse; 
        margin-top: 10px;
        margin-bottom: 5px !important; 
        border-bottom: 2px solid #000 !important; 
    }
    
    /* HEADER TABEL KHUSUS */
    thead th {
        color: black !important;
        background-color: #e5e7eb !important; 
        border: 1px solid #000 !important;
        padding: 6px 4px !important;
        font-size: 12pt !important; 
        vertical-align: middle;
        line-height: 1.3;
    }
    
    thead th span {
        font-size: 12pt !important; 
        font-weight: normal;
        opacity: 1 !important; 
    }

    tbody td { 
        border: 1px solid #000 !important; 
        padding: 6px 4px !important;
        vertical-align: top;
    }

    /* Kolom Warna Print */
    .print-bg-orange { background-color: #ffedd5 !important; }
    .print-bg-blue { background-color: #dbeafe !important; }
    .print-bg-pink { background-color: #fce7f3 !important; }
    .print-bg-teal { background-color: #ccfbf1 !important; }

    /* Footer Notes */
    .footer-notes {
        font-size: 11pt !important;
        margin-top: 10px !important; 
        padding: 0 !important;
        border: none !important;
        page-break-inside: avoid;
    }
    
    .footer-notes ul li, .footer-notes ol li {
        margin-bottom: 2px;
    }
    
    /* Info Pengembang di Print */
    .dev-info-container {
        display: block !important;
        text-align: right;
        margin-top: 2px !important; 
        margin-bottom: 10px !important;
        border-bottom: 1px solid #000;
        padding-bottom: 5px;
    }
    
    .dev-info-text {
        font-size: 10pt !important; 
        color: black !important;
        font-style: italic;
    }

    /* Hide URL prints */
    a[href]:after { content: none !important; }
}
