
.halaman-admin-laporan {
    padding: 26px;
    min-width: 0;
    color: #183326;
}

.header-laporan {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.label-laporan {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 20px;
    background: #e1f5e7;
    color: #187341;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .8px;
}

.header-laporan h1 {
    margin: 12px 0 7px;
    font-size: 29px;
}

.header-laporan p {
    margin: 0;
    color: #77857b;
    font-size: 14px;
}

.btn-cetak-laporan,
.btn-filter-laporan,
.btn-reset-laporan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.btn-cetak-laporan,
.btn-filter-laporan {
    border: 0;
    background: #21874a;
    color: #fff;
}

.btn-cetak-laporan:hover,
.btn-filter-laporan:hover {
    background: #176b38;
}

.filter-laporan {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 14px;
    margin-bottom: 22px;
    padding: 18px;
    border: 1px solid #e4ece5;
    border-radius: 15px;
    background: #fff;
}

.field-laporan {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field-laporan label {
    color: #526359;
    font-size: 12px;
    font-weight: 700;
}

.field-laporan input {
    min-width: 180px;
    padding: 10px 12px;
    border: 1px solid #dce5dd;
    border-radius: 9px;
    background: #fff;
    color: #183326;
    font: inherit;
    font-size: 13px;
}

.btn-reset-laporan {
    border: 1px solid #dce5dd;
    background: #f6f9f6;
    color: #405748;
}

.grid-ringkasan-laporan {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 24px;
}

.kartu-laporan {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 18px;
    border: 1px solid #e6ede7;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(20, 55, 35, .04);
}

.ikon-laporan {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    font-size: 19px;
    font-weight: 800;
}

.ikon-pendapatan,
.ikon-selesai {
    color: #187341;
    background: #e1f5e7;
}

.ikon-transaksi {
    color: #275fba;
    background: #e7efff;
}

.ikon-proses {
    color: #a96708;
    background: #fff1d8;
}

.kartu-laporan > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.kartu-laporan span {
    color: #718076;
    font-size: 12px;
}

.kartu-laporan strong {
    overflow-wrap: anywhere;
    font-size: 19px;
}

.kartu-laporan small {
    color: #929b94;
    font-size: 10px;
    line-height: 1.5;
}

.panel-laporan {
    overflow: hidden;
    border: 1px solid #e5ece6;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 22px rgba(20, 55, 35, .04);
}

.judul-panel-laporan {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid #edf1ed;
}

.judul-panel-laporan h2 {
    margin: 0 0 6px;
    font-size: 17px;
}

.judul-panel-laporan p {
    margin: 0;
    color: #7b877e;
    font-size: 12px;
}

.jumlah-data-laporan {
    padding: 7px 11px;
    border-radius: 20px;
    background: #eff8f0;
    color: #247344;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.tabel-laporan-responsive {
    overflow-x: auto;
    width: 100%;
}

.tabel-laporan {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.tabel-laporan th {
    padding: 14px;
    background: #f5f9f5;
    color: #536359;
    text-align: left;
    white-space: nowrap;
    font-size: 11px;
}

.tabel-laporan td {
    padding: 14px;
    border-bottom: 1px solid #edf1ed;
    vertical-align: middle;
}

.tabel-laporan tbody tr:hover {
    background: #fbfdfb;
}

.nilai-rupiah {
    font-weight: 700;
    white-space: nowrap;
}

.status-laporan {
    display: inline-block;
    padding: 6px 9px;
    border-radius: 20px;
    background: #eef2f0;
    color: #526359;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.status-laporan.status-selesai {
    background: #e1f5e7;
    color: #187341;
}

.status-laporan.status-dibatalkan {
    background: #ffebeb;
    color: #b42318;
}

.status-laporan.status-dikirim {
    background: #e5efff;
    color: #245bb2;
}

.data-kosong-laporan {
    padding: 35px !important;
    color: #87928a;
    text-align: center;
}

.tabel-laporan tfoot td {
    padding: 17px 14px;
    background: #f5f9f5;
    font-weight: 800;
}

.catatan-laporan {
    margin-top: 14px;
    color: #77857b;
    font-size: 11px;
    line-height: 1.6;
}

@media (max-width: 1200px) {
    .grid-ringkasan-laporan {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .halaman-admin-laporan {
        padding: 16px;
    }

    .header-laporan {
        align-items: flex-start;
        flex-direction: column;
    }

    .filter-laporan {
        align-items: stretch;
        flex-direction: column;
    }

    .field-laporan input {
        width: 100%;
        box-sizing: border-box;
    }

    .grid-ringkasan-laporan {
        grid-template-columns: 1fr;
    }
}

@media print {
    .sidebar,
    .sidebar-admin,
    .filter-laporan,
    .btn-cetak-laporan {
        display: none !important;
    }

    .halaman-admin-laporan {
        padding: 0;
    }

    .panel-laporan,
    .kartu-laporan {
        box-shadow: none;
    }
}

@media print {
    .sidebar,
    .sidebar-admin,
    .main-sidebar,
    .btn-cetak-laporan,
    form,
    .panel-header {
        display: none !important;
    }

    .main-content,
    .content,
    .container {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
        font-size: 12px;
    }

    table {
        width: 100% !important;
        border-collapse: collapse !important;
    }

    th, td {
        border: 1px solid #000 !important;
        padding: 6px !important;
    }

    @page {
        size: A4 landscape;
        margin: 12mm;
    }
}


/* =========================================================
   Filter laporan: samakan tanggal, kategori, dan nama barang
   ========================================================= */

.filter-laporan {
    align-items: end;
}

.field-laporan {
    min-width: 0;
}

.field-laporan input[type="date"],
.field-laporan select {
    width: 202px !important;
    min-width: 202px !important;
    height: 42px !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
    padding: 0 12px !important;
    border: 1px solid #dce5dd !important;
    border-radius: 9px !important;
    background-color: #fff !important;
    color: #183326 !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: normal !important;
    box-shadow: none;
}

.field-laporan select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    padding-right: 36px !important;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23526359' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 14px !important;
}

.field-laporan input[type="date"]:focus,
.field-laporan select:focus {
    border-color: #21874a !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(33, 135, 74, .12) !important;
}

.field-laporan input[type="date"]:hover,
.field-laporan select:hover {
    border-color: #a9c8b2 !important;
}

.filter-laporan .btn-filter-laporan,
.filter-laporan .btn-reset-laporan {
    height: 42px;
    min-height: 42px;
    box-sizing: border-box;
    white-space: nowrap;
}

@media (max-width: 650px) {
    .field-laporan input[type="date"],
    .field-laporan select {
        width: 100% !important;
        min-width: 0 !important;
    }

    .filter-laporan .btn-filter-laporan,
    .filter-laporan .btn-reset-laporan {
        width: 100%;
    }
}
