/* Modern Clean Stylesheet - No Inline CSS in View */
body {
    background-color: #f4f6f9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333333;
    margin: 0;
    padding: 0;
}

.login-body {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    border-radius: 12px;
    padding: 35px 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.brand-badge {
    font-weight: 700;
    letter-spacing: 1.5px;
}

.main-container {
    padding-top: 30px;
    padding-bottom: 60px;
}

.card-stat {
    border-radius: 8px;
    padding: 20px;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-top: 10px;
}

.table-card {
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.sub-text {
    font-size: 0.85rem;
    color: #666666;
}

.badge-lunas {
    background-color: #2e7d32 !important;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-belum {
    background-color: #e65100 !important;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.action-btn {
    margin: 0 2px;
}

/* Print A4 Specific Styling */
@page {
    size: A4 portrait;
    margin: 12mm 15mm;
}

.print-container {
    background: #ffffff;
    max-width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    padding: 20mm;
    box-sizing: border-box;
}

.invoice-header-table {
    width: 100%;
    margin-bottom: 25px;
    border-collapse: collapse;
}

.invoice-header-table td {
    vertical-align: top;
}

.invoice-title {
    font-size: 1.6rem;
    font-weight: bold;
    color: #1565c0;
    margin: 0 0 8px 0;
}

.invoice-company-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: #222;
    margin: 0 0 6px 0;
}

.invoice-meta-box {
    margin: 15px 0 25px 0;
    padding: 10px 14px;
    background-color: #f8f9fa;
    border-left: 4px solid #1565c0;
    font-size: 0.95rem;
}

.invoice-items-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.invoice-items-table th {
    background-color: #f1f4f8;
    border-bottom: 2px solid #cbd5e1;
    padding: 12px 10px;
    font-weight: 700;
    color: #1e293b;
}

.invoice-items-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e2e8f0;
}

.invoice-summary-table {
    width: 100%;
    border-collapse: collapse;
}

.invoice-summary-table td {
    vertical-align: top;
}

.bank-info-box {
    background-color: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    padding: 12px 15px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.summary-totals-table {
    width: 100%;
    border-collapse: collapse;
}

.summary-totals-table td {
    padding: 6px 8px;
}

.total-row {
    font-weight: bold;
    font-size: 1.1rem;
    border-top: 2px solid #334155;
}

.company-footer {
    margin-top: 40px;
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
    font-size: 0.85rem;
    color: #64748b;
}

@media print {
    body {
        background-color: #ffffff;
    }
    .no-print {
        display: none !important;
    }
    .print-container {
        padding: 0;
        margin: 0;
        box-shadow: none;
    }
}
