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

body {
    font-family: Arial, sans-serif;
    background: #f3f6fa;
    color: #263445;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    min-width: 240px;
    background: #173b57;
    color: white;
    padding: 25px 15px;
}

.sidebar h2 {
    font-size: 19px;
    margin-bottom: 30px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-link {
    background: transparent;
    color: white;
    border: none;
    text-align: left;
    padding: 13px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 14px;
}

.nav-link:hover {
    background-color: #28658b;
    color: white;
}

.nav-link.active {
    background-color: #f0a43a !important;
    color: #173b57 !important;
    font-weight: bold;
}

.main-content {
    flex: 1;
    min-width: 0;
    padding: 30px;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.top-header h1 {
    margin-bottom: 8px;
    font-size: 26px;
}

.top-header p {
    color: #718096;
    font-size: 14px;
}

.admin-info {
    background: white;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 13px;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page h2 {
    margin-bottom: 20px;
    font-size: 20px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.stat-card,
.content-card {
    background: white;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.stat-card h3 {
    font-size: 14px;
    color: #718096;
    margin-bottom: 15px;
}

.stat-card p {
    font-size: 23px;
    font-weight: bold;
}

.content-card {
    margin-top: 25px;
    line-height: 1.8;
}

.content-card h3 {
    margin-bottom: 10px;
}

.content-card p {
    color: #64748b;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.primary-button {
    background: #21658d;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 13px;
}

.primary-button:hover {
    background: #174d70;
}

@media (max-width: 900px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}



@media (max-width: 768px) {

    .app-container {
        flex-direction: column;
        width: 100%;
    }

    .sidebar {
        width: 100%;
        min-width: 0;
        padding: 15px;
    }

    .sidebar h2 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .sidebar nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
        overflow: visible;
    }

    .nav-link {
        width: 100%;
        min-width: 0;
        text-align: center;
        white-space: normal;
        padding: 12px 5px;
        font-size: 13px;
    }

    .main-content {
        width: 100%;
        min-width: 0;
        padding: 16px;
    }

    .top-header {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .top-header h1 {
        font-size: 22px;
    }

    .admin-info {
        padding: 9px 12px;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .stat-card {
        padding: 14px;
        min-width: 0;
    }

    .stat-card h3 {
        font-size: 12px;
    }

    .stat-card p {
        font-size: 18px;
        overflow-wrap: anywhere;
    }

    .section-heading {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .content-card {
        padding: 16px;
        overflow-wrap: anywhere;
    }
}

/* ========================================
   FORM CUSTOMER
======================================== */

.customer-form-card {
    margin-bottom: 20px;
}

.customer-form-card h3 {
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #21658d;
}

.form-group textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.secondary-button,
.danger-button {
    border: none;
    padding: 10px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.secondary-button {
    background: #e2e8f0;
    color: #263445;
}

.danger-button {
    background: #dc4545;
    color: white;
}

.secondary-button:hover {
    background: #cbd5e1;
}

.danger-button:hover {
    background: #b83232;
}


/* ========================================
   TABEL CUSTOMER
======================================== */

.customer-list-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.customer-list-heading span {
    color: #64748b;
    font-size: 13px;
}

.table-container {
    width: 100%;
    overflow-x: auto;
}

.customer-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 600px;
}

.customer-table th,
.customer-table td {
    padding: 13px 10px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.customer-table th {
    background: #f1f5f9;
    color: #334155;
}

.customer-table td {
    color: #475569;
}

.customer-actions {
    display: flex;
    gap: 6px;
    white-space: nowrap;
}

.empty-table {
    text-align: center !important;
    padding: 25px !important;
    color: #94a3b8 !important;
}

[hidden] {
    display: none !important;
}

@media (max-width: 768px) {
    .customer-list-heading {
        flex-wrap: wrap;
    }

    .customer-table {
        font-size: 13px;
    }

    .customer-table th,
    .customer-table td {
        padding: 10px 8px;
    }
}

/* ========================================
   FORM TRANSAKSI
======================================== */

.transaction-form-card {
    margin-bottom: 20px;
}

.transaction-form-card h3 {
    margin-bottom: 20px;
}

.transaction-form-card select {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: white;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.transaction-form-card input[readonly] {
    background: #f1f5f9;
    font-weight: bold;
    color: #173b57;
}


/* ========================================
   DAFTAR TRANSAKSI
======================================== */

.transaction-list-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.transaction-list-heading span {
    color: #64748b;
    font-size: 13px;
}

.transaction-table {
    width: 100%;
    min-width: 950px;
    border-collapse: collapse;
    font-size: 13px;
}

.transaction-table th,
.transaction-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    white-space: nowrap;
}

.transaction-table th {
    background: #f1f5f9;
    color: #334155;
}

.transaction-table td {
    color: #475569;
}

.transaction-actions {
    display: flex;
    gap: 6px;
}

@media (max-width: 768px) {
    .transaction-list-heading {
        flex-wrap: wrap;
    }

    .transaction-table {
        font-size: 12px;
    }

    .transaction-table th,
    .transaction-table td {
        padding: 10px 8px;
    }
}


/* ========================================
   PEMBAYARAN
======================================== */

.payment-form-card,
.payment-summary-card {
    margin-bottom: 20px;
}

.payment-form-card h3,
.payment-summary-card h3 {
    margin-bottom: 18px;
}

.payment-form-card select {
    display: block;
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: white;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.payment-balance-info {
    background: #eff6ff;
    color: #174d70;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.7;
}

.payment-list-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.payment-list-heading span {
    color: #64748b;
    font-size: 13px;
}

.payment-table {
    width: 100%;
    min-width: 750px;
    border-collapse: collapse;
    font-size: 13px;
}

.payment-table th,
.payment-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    white-space: nowrap;
}

.payment-table th {
    background: #f1f5f9;
    color: #334155;
}

.payment-table td {
    color: #475569;
}

.payment-actions {
    display: flex;
    gap: 6px;
}

.payment-status-paid {
    color: #15803d !important;
    font-weight: bold;
}

.payment-status-partial {
    color: #b45309 !important;
    font-weight: bold;
}

@media (max-width: 768px) {
    .payment-list-heading {
        flex-wrap: wrap;
    }

    .payment-table {
        font-size: 12px;
    }

    .payment-table th,
    .payment-table td {
        padding: 10px 8px;
    }
}


/* =====================================
   RESPONSIVE HALAMAN PENGELUARAN
===================================== */

#expenses {
    width: 100%;
    min-width: 0;
}

#expenses .section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

#expenses .section-heading h2 {
    margin: 0;
}

#expenses .content-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin-bottom: 20px;
}

#expenses .form-group {
    width: 100%;
    min-width: 0;
    margin-bottom: 15px;
}

#expenses input,
#expenses select,
#expenses textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

#expenses .form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

#expenses .table-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#expenses table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
}

#expenses #expenseTotal {
    font-weight: bold;
    margin: 12px 0;
}

@media (max-width: 768px) {
    #expenses {
        overflow: hidden;
    }

    #expenses .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    #expenses .section-heading h2 {
        font-size: 20px;
    }

    #expenses .section-heading button {
        width: 100%;
    }

    #expenses .content-card {
        padding: 15px;
    }

    #expenses .form-actions {
        flex-direction: column;
    }

    #expenses .form-actions button {
        width: 100%;
    }

    #expenses .table-container {
        margin-top: 12px;
    }

    #expenses #expenseCount,
    #expenses #expenseTotal {
        font-size: 14px;
    }
}


/* =====================================
   LAPORAN KEUANGAN
===================================== */

#reports {
    width: 100%;
    min-width: 0;
}

#reports .content-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin-bottom: 20px;
}

#reports .report-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

#reports .report-summary .content-card {
    margin-bottom: 0;
}

#reports .report-summary h3 {
    font-size: 15px;
}

#reports .report-summary p {
    font-size: 20px;
    font-weight: bold;
    overflow-wrap: anywhere;
}

#reports .table-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#reports table {
    min-width: 650px;
    width: 100%;
}

@media (max-width: 768px) {
    #reports .report-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    #reports .report-summary .content-card {
        padding: 12px;
    }

    #reports .report-summary h3 {
        font-size: 13px;
    }

    #reports .report-summary p {
        font-size: 17px;
    }

    #reports .form-actions {
        flex-direction: column;
    }

    #reports .form-actions button {
        width: 100%;
    }
}

@media (max-width: 380px) {
    #reports .report-summary {
        grid-template-columns: 1fr;
    }
}




/* =====================================
   LAPORAN KEUANGAN RINCI
===================================== */

#reports .table-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

#reports table {
    width: 100%;
    min-width: 950px;
}

#reports .content-card {
    min-width: 0;
    box-sizing: border-box;
}

#reports th,
#reports td {
    white-space: nowrap;
    padding: 10px;
}

#reports .report-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

@media (max-width: 768px) {
    #reports .report-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    #reports .report-summary .content-card {
        padding: 12px;
    }

    #reports .form-actions {
        flex-direction: column;
    }

    #reports .form-actions button {
        width: 100%;
    }
}

@media (max-width: 380px) {
    #reports .report-summary {
        grid-template-columns: 1fr;
    }
}



/* =====================================
   IDENTITAS CETAK 3D LAUNDRY
===================================== */

.report-print-header,
.report-print-footer {
    display: none;
}

.report-signature {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-top: 35px;
    text-align: center;
}

.report-signature > div {
    width: 45%;
}



/* =====================================
   HALAMAN LOGIN
===================================== */

.login-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #f3f4f6;
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    background: white;
    border-radius: 14px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.login-card h1 {
    text-align: center;
    margin-bottom: 8px;
}

.login-card > p {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
}

.login-session-note {
    margin-top: -14px;
    margin-bottom: 20px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.login-card input {
    width: 100%;
    box-sizing: border-box;
}

.login-card button {
    width: 100%;
}

.login-message {
    color: #dc2626;
    font-size: 14px;
    margin-top: 12px;
    text-align: center;
}

/* =====================================
   INFORMASI AKUN DAN LOGOUT
===================================== */

.sidebar-account {
    margin-top: 25px;
    padding: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.account-label {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 5px;
}

#userInfo {
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
    margin-bottom: 12px;
}

.logout-button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 7px;
    background: #dc2626;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.logout-button:hover {
    background: #b91c1c;
}


/* =====================================
   PENYEMPURNAAN DESAIN 3D LAUNDRY
===================================== */

/* Tampilan dasar */
body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f5f7fb;
    color: #263445;
}

/* Sidebar */
.sidebar {
    background: linear-gradient(180deg, #142f46, #1d4963);
    box-shadow: 3px 0 15px rgba(15, 35, 55, 0.08);
}

.sidebar h2 {
    font-size: 20px;
    letter-spacing: 0.3px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.nav-link {
    padding: 13px 15px;
    border-radius: 9px;
    transition: 0.2s ease;
}

.nav-link:hover {
    transform: translateX(3px);
    background: rgba(255,255,255,0.12);
}

.nav-link.active {
    background: #20b6a5 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(32,182,165,0.2);
}

/* Header */
.top-header {
    background: white;
    padding: 20px 24px;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(30,50,80,0.04);
}

.top-header h1 {
    color: #173b57;
    font-size: 25px;
    font-weight: 700;
}

.admin-info {
    background: #e8f7f5;
    color: #087f73;
    border-radius: 30px;
    font-weight: 600;
}

/* Judul halaman */
.page h2 {
    color: #173b57;
}

/* Kartu Dashboard */
.stats {
    gap: 18px;
}

.stat-card {
    border: 1px solid #edf0f5;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(30,50,80,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30,50,80,0.09);
}

.stat-card h3 {
    color: #718096;
    font-weight: 600;
}

.stat-card p {
    color: #173b57;
    font-size: 25px;
}

/* Kartu konten */
.content-card {
    border: 1px solid #edf0f5;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(30,50,80,0.04);
    padding: 24px;
}

.content-card h3 {
    color: #173b57;
}

/* Tombol */
.primary-button {
    background: #168f91;
    border-radius: 9px;
    padding: 12px 18px;
    font-weight: 600;
    transition: 0.2s ease;
}

.primary-button:hover {
    background: #107578;
    transform: translateY(-1px);
}

.secondary-button {
    border-radius: 9px;
    font-weight: 600;
}

.danger-button,
.logout-button {
    border-radius: 9px;
}

/* Form */
.form-group input,
.form-group textarea,
.form-group select,
.transaction-form-card select,
.payment-form-card select {
    border: 1px solid #dce3ec;
    border-radius: 9px;
    padding: 12px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.transaction-form-card select:focus,
.payment-form-card select:focus {
    outline: none;
    border-color: #168f91;
    box-shadow: 0 0 0 3px rgba(22,143,145,0.12);
}

/* Tabel */
.table-container {
    border-radius: 10px;
}

.customer-table th,
.transaction-table th,
.payment-table th,
#expenses table th,
#reports table th {
    background: #edf4f7;
    color: #173b57;
    font-weight: 700;
}

.customer-table td,
.transaction-table td,
.payment-table td,
#expenses table td,
#reports table td {
    border-bottom: 1px solid #edf0f5;
}

.customer-table tbody tr:hover,
.transaction-table tbody tr:hover,
.payment-table tbody tr:hover,
#expenses table tbody tr:hover,
#reports table tbody tr:hover {
    background: #f7fbfc;
}

/* Informasi saldo pembayaran */
.payment-balance-info {
    background: #eaf7f6;
    border: 1px solid #c7e9e5;
    color: #176b68;
    border-radius: 10px;
}

/* Login */
.login-screen {
    background: linear-gradient(135deg, #142f46, #168f91);
}

.login-card {
    border-radius: 18px;
    padding: 35px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.15);
}

.login-card h1 {
    color: #173b57;
    font-size: 27px;
}

/* Akun sidebar */
.sidebar-account {
    border-top-color: rgba(255,255,255,0.15);
}

/* Tampilan HP */
@media (max-width: 768px) {
    .main-content {
        padding: 14px;
    }

    .top-header {
        padding: 17px;
        border-radius: 12px;
    }

    .top-header h1 {
        font-size: 21px;
    }

    .sidebar {
        box-shadow: 0 3px 12px rgba(15,35,55,0.1);
    }

    .sidebar-account {
        margin-top: 15px;
    }

    .stat-card {
        border-radius: 11px;
    }

    .content-card {
        padding: 16px;
        border-radius: 12px;
    }

    .primary-button,
    .secondary-button {
        min-height: 42px;
    }
}


/* =====================================
   PENGATURAN CETAK LAPORAN A4 PORTRAIT
===================================== */

.simple-report-print {
    display: none;
}

@page {
    size: A4 portrait;
    margin: 8mm;
}

@media print {

    body {
        background: white !important;
        color: black !important;
    }

    body * {
        visibility: hidden !important;
    }

    #reports,
    #reports * {
        visibility: visible !important;
    }

    #reports {
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        color: black !important;
    }

    /* Sembunyikan filter dan navigasi */
    #reports .form-actions,
    #reports .form-group,
    #reports .section-heading {
        display: none !important;
    }

    /* Ringkasan laporan lengkap */
    #reports .report-summary {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    #reports .content-card {
        margin: 0 0 6px !important;
        padding: 7px !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
        background: white !important;
        color: black !important;
        break-inside: auto;
    }

    /* Tabel laporan lengkap */
    #reports table {
        width: 100% !important;
        min-width: 0 !important;
        table-layout: auto;
        border-collapse: collapse !important;
        font-size: 7px !important;
    }

    #reports th,
    #reports td {
        padding: 3px 2px !important;
        border: 1px solid #999 !important;
        color: black !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
    }

    #reports thead {
        display: table-header-group;
    }

    #reports tr {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    #reports .table-container {
        overflow: visible !important;
    }

    /* Header laporan lengkap */
    .report-print-header {
        display: block !important;
        text-align: center !important;
        margin-bottom: 8px !important;
    }

    .report-print-header h1 {
        font-size: 19px !important;
        margin-bottom: 4px !important;
    }

    .report-print-header h2 {
        font-size: 13px !important;
        margin-top: 0 !important;
    }

    .report-print-header p {
        font-size: 9px !important;
    }

    .report-print-header hr {
        border: 1px solid black !important;
    }

    /* Footer laporan lengkap */
    .report-print-footer {
        display: block !important;
        margin-top: 10px !important;
        break-inside: avoid;
    }

    .report-signature {
        margin-top: 20px !important;
        break-inside: avoid;
    }

    .report-signature p {
        font-size: 9px !important;
    }

    /* =================================
       MODE CETAK LAPORAN SEDERHANA
    ================================= */

    body.printing-simple-report #reports > * {
        display: none !important;
        visibility: hidden !important;
    }

    body.printing-simple-report #reports > #simpleReportPrint {
        display: block !important;
        visibility: visible !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        color: black !important;
    }

    body.printing-simple-report #simpleReportPrint,
    body.printing-simple-report #simpleReportPrint * {
        visibility: visible !important;
    }

    /* Header laporan sederhana */
    .simple-report-header {
        text-align: center !important;
        margin-bottom: 10px !important;
    }

    .simple-report-header h1 {
        font-size: 19px !important;
        margin-bottom: 4px !important;
    }

    .simple-report-header h2 {
        font-size: 13px !important;
        margin-top: 0 !important;
    }

    .simple-report-header p {
        font-size: 9px !important;
        margin: 3px 0 !important;
    }

    .simple-report-header hr {
        border: 1px solid black !important;
    }

    /* Tabel laporan sederhana */
    .simple-report-table-container {
        width: 100% !important;
        overflow: visible !important;
    }

    .simple-report-table {
        width: 100% !important;
        table-layout: fixed !important;
        border-collapse: collapse !important;
        font-size: 6.5px !important;
    }

    .simple-report-table th,
    .simple-report-table td {
        padding: 3px 2px !important;
        border: 1px solid #777 !important;
        color: black !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
    }

    .simple-report-table thead {
        display: table-header-group;
    }

    .simple-report-table tr {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .simple-report-balance {
        width: 65% !important;
        margin: 12px auto 0 !important;
        break-inside: avoid;
    }

    .simple-report-balance h3 {
        text-align: center !important;
        font-size: 10px !important;
    }

    .simple-report-balance table {
        width: 100% !important;
        border-collapse: collapse !important;
        font-size: 8px !important;
    }

    .simple-report-balance td,
    .simple-report-balance th {
        padding: 4px !important;
        border: 1px solid #999 !important;
    }

}

/* =====================================
   RUANG TAMBAHAN BAGIAN BAWAH HP
===================================== */

@media (max-width: 768px) {
    .main-content {
        padding-bottom: calc(110px + env(safe-area-inset-bottom)) !important;
    }
}

/* =====================================
   PENGATURAN USAHA
===================================== */

#settings {
    width: 100%;
    min-width: 0;
}

.settings-card {
    width: 100%;
    max-width: 700px;
    margin-bottom: 20px;
}

.settings-card h3 {
    margin-bottom: 10px;
    color: #173b57;
}

.settings-description {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.settings-card .form-group {
    width: 100%;
    margin-bottom: 18px;
}

.settings-card input,
.settings-card textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.settings-card textarea {
    resize: vertical;
    min-height: 85px;
}

.settings-message {
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {

    #settings .section-heading h2 {
        font-size: 20px;
    }

    .settings-card {
        padding: 16px;
    }

    .settings-card .form-actions {
        flex-direction: column;
    }

    .settings-card .form-actions button {
        width: 100%;
    }

}

/* FORM MULTI LAYANAN */
.service-items-section{border:1px solid #e2e8f0;border-radius:12px;padding:14px;margin:14px 0;background:#fafafa}
.service-items-section h4{margin:0 0 12px;font-size:14px;letter-spacing:.4px}
.service-item-row{display:grid;grid-template-columns:minmax(130px,1.5fr) repeat(3,minmax(90px,1fr)) auto;gap:8px;align-items:end;margin-bottom:10px;padding-bottom:10px;border-bottom:1px dashed #d1d5db}
.service-item-row.satuan-row{grid-template-columns:minmax(130px,1.5fr) repeat(2,minmax(90px,1fr)) auto}
.service-item-row label{display:block;font-size:12px;margin-bottom:5px}
.service-item-row input,.service-item-row select{width:100%;min-width:0}
.service-item-row .remove-service-item{min-height:38px}
.payment-transaction-list{display:grid;gap:8px;max-height:260px;overflow:auto;padding:10px;border:1px solid #e2e8f0;border-radius:8px}
.payment-transaction-option{display:flex;gap:8px;align-items:flex-start;padding:8px;border-bottom:1px solid #eee}
.payment-transaction-option small{display:block;color:#64748b}
@media(max-width:650px){.service-item-row,.service-item-row.satuan-row{grid-template-columns:1fr 1fr}.service-item-row .service-name-field{grid-column:1/-1}.service-item-row .remove-service-item{grid-column:1/-1}}


/* INPUT CEPAT TRANSAKSI */
.quick-entry-card textarea { width:100%; min-height:180px; padding:14px; border:1px solid #dce3ec; border-radius:9px; font:14px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; }
.quick-entry-card textarea:focus { outline:none; border-color:#168f91; box-shadow:0 0 0 3px rgba(22,143,145,.12); }
#quickEntryPreview { overflow-x:auto; }
.quick-preview-table { width:100%; border-collapse:collapse; margin:12px 0; font-size:14px; }
.quick-preview-table th,.quick-preview-table td { padding:9px; border-bottom:1px solid #e2e8f0; text-align:left; }
.quick-preview-table th { background:#edf4f7; }
.quick-preview-total { font-weight:700; color:#173b57; margin:12px 0; }
#quickEntry .form-actions { flex-wrap:wrap; }
#settings .quick-alias-card { max-width:900px; }
#quickAliasTableBody button { white-space:nowrap; }
@media(max-width:768px){ #quickEntry .form-actions { flex-direction:column; } #quickEntry .form-actions button { width:100%; } .quick-preview-table { font-size:12px; } }


/* =====================================
   PASSKEY / BIOMETRIC LOGIN
===================================== */
.passkey-login-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 12px;
    color: #94a3b8;
    font-size: 12px;
}
.passkey-login-divider::before,
.passkey-login-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}
.passkey-button,
.secondary-button {
    width: 100%;
    min-height: 44px;
    padding: 11px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #173b57;
    font-weight: 600;
    cursor: pointer;
}
.passkey-button:hover,
.secondary-button:hover {
    background: #eef4f8;
}
.passkey-button:disabled,
.secondary-button:disabled {
    opacity: .6;
    cursor: not-allowed;
}
.passkey-message {
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    margin-top: 10px;
}
.passkey-settings-card .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.passkey-settings-card .form-actions button {
    flex: 1 1 220px;
}
.passkey-list-container {
    margin-top: 14px;
    padding: 12px;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
}
.passkey-list-container ul {
    margin: 8px 0 0;
    padding-left: 20px;
}
.passkey-list-container li {
    margin: 5px 0;
}


/* BRANDING 3D LAUNDRY */
.sidebar .sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    line-height: 1.2;
}

.sidebar .sidebar-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 10px;
    flex: 0 0 42px;
}


/* =====================================
   DASHBOARD 3D LAUNDRY - RINGKASAN LENGKAP
===================================== */
.dashboard-stats .stat-card { min-width: 0; }
.dashboard-stats .stat-card p { overflow-wrap: anywhere; }
.dashboard-activity-card { margin-top: 18px; }
.dashboard-activity-card .section-heading { align-items: center; }
.dashboard-activity-caption { color: #7b8794; font-size: 12px; }
.dashboard-activity-list { display: flex; flex-direction: column; }
.dashboard-activity-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid #e8edf2; }
.dashboard-activity-item:last-child { border-bottom: 0; }
.dashboard-activity-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dashboard-activity-info strong { color: #243447; font-size: 14px; }
.dashboard-activity-info span { color: #536273; font-size: 13px; overflow-wrap: anywhere; }
.dashboard-activity-info small { color: #8995a3; font-size: 11px; }
.dashboard-activity-amount { color: #243447; font-size: 13px; white-space: nowrap; }
.dashboard-empty { color: #8995a3; padding: 14px 0; margin: 0; }
@media (max-width: 700px) {
  .dashboard-activity-item { align-items: flex-start; }
  .dashboard-activity-amount { font-size: 12px; }
}

/* Perataan tombol aksi pengeluaran */
#expenses .expense-action-cell { vertical-align: middle; }
#expenses .expense-action-group { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: nowrap; }
#expenses .expense-action-button { min-width: 68px; min-height: 36px; padding: 8px 12px; margin: 0; line-height: 1.2; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; white-space: nowrap; }
@media (max-width: 768px) {
  #expenses .expense-action-group { gap: 6px; }
  #expenses .expense-action-button { min-width: 62px; padding: 8px 10px; }
}


/* Pratinjau beberapa kelompok Input Cepat */
.quick-entry-group-preview {
    border: 1px solid var(--border-color, #d1d5db);
    border-radius: 10px;
    padding: 14px;
    margin: 14px 0;
    background: var(--card-background, #fff);
}
.quick-entry-group-preview h4 { margin: 0 0 10px; }


/* DASHBOARD KATALOG HARGA */
.dashboard-catalog-card { margin-top: 18px; }
.catalog-table { width:100%; border-collapse:collapse; min-width:620px; }
.catalog-table th,.catalog-table td { padding:9px; border-bottom:1px solid #e2e8f0; text-align:left; }
.catalog-table input { width:100%; min-width:90px; box-sizing:border-box; padding:9px; border:1px solid #cbd5e1; border-radius:7px; }
.catalog-order-button { min-width:36px; margin-right:5px; padding:7px 10px; }
.transaction-main-row { cursor:pointer; }
.transaction-main-row:hover,.transaction-main-row.transaction-selected { background:#eff6ff; }
.transaction-service-cell { white-space:normal !important; min-width:150px; max-width:230px; overflow-wrap:anywhere; line-height:1.45; }
.transaction-action-row td { background:#f8fafc; padding:10px 12px !important; }
.transaction-action-row[hidden] { display:none !important; }
.transaction-actions { display:flex; flex-wrap:wrap; gap:7px; }
.transaction-table td { vertical-align:top; }

/* KATALOG HARGA: ringkas dan muat di layar ponsel */
.catalog-table { width:100%; min-width:0; table-layout:fixed; }
.catalog-table th { font-size:11px; line-height:1.2; padding:6px 5px; white-space:normal; }
.catalog-table th:nth-child(1) { width:48%; }
.catalog-table th:nth-child(2) { width:34%; }
.catalog-table th:nth-child(3) { width:18%; }
.catalog-table td { padding:5px 4px; }
.catalog-table input { min-width:0; width:100%; padding:7px 5px; font-size:12px; line-height:1.2; }
.catalog-service-cell input { white-space:normal; }
.catalog-order-cell { white-space:nowrap; }
.catalog-order-button { min-width:26px; width:26px; height:30px; padding:2px 0; margin:0 2px 0 0; line-height:1; }

/* Tombol aksi transaksi selalu satu baris; pada layar sempit dapat digeser di area tabel */
.transaction-action-row td { padding:7px 8px !important; }
.transaction-actions { display:flex; flex-wrap:nowrap; align-items:center; gap:5px; width:max-content; min-width:0; max-width:none; }
.transaction-actions button { flex:0 0 auto !important; width:auto !important; min-width:max-content !important; max-width:none !important; display:inline-flex !important; align-items:center; justify-content:center; min-height:28px; padding:5px 9px; margin:0; font-size:10px; line-height:1.1; white-space:nowrap; border-radius:6px; box-sizing:border-box; }
.transaction-table .transaction-action-row td { white-space:nowrap; }
@media (max-width: 768px) {
  .catalog-table th,.catalog-table td { padding:4px 3px; }
  .catalog-table input { padding:6px 4px; font-size:11px; }
  .catalog-order-button { min-width:24px; width:24px; height:28px; }
  .transaction-actions { gap:4px; }
  .transaction-actions button { width:auto !important; min-width:max-content !important; min-height:26px; padding:4px 7px; font-size:9px; }
}
