/* =========================================================
   GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;

    padding: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f4f6f8;

    color: #222;

    line-height: 1.5;
}


/* =========================================================
   GENERAL CONTAINER
========================================================= */

.container {
    width: 100%;

    max-width: 1100px;

    margin: 40px auto;

    padding: 0 20px;
}


/* =========================================================
   CARD
========================================================= */

.card {
    background: #ffffff;

    border-radius: 10px;

    padding: 25px;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   TITLE
========================================================= */

h1 {
    margin-top: 0;

    margin-bottom: 25px;

    font-size: 24px;

    color: #1f2937;
}


/* =========================================================
   FORM
========================================================= */

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 7px;

    font-weight: bold;

    color: #374151;
}

.form-group input,
.form-group select {
    width: 100%;

    padding: 10px 12px;

    border: 1px solid #d1d5db;

    border-radius: 6px;

    background: #ffffff;

    font-size: 14px;

    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 2px rgba(37, 99, 235, 0.10);
}


/* =========================================================
   FORM ROW
========================================================= */

.form-row {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 15px;
}


/* =========================================================
   BUTTON
========================================================= */

button,
.btn {
    display: inline-block;

    padding: 10px 18px;

    border: none;

    border-radius: 6px;

    background: #2563eb;

    color: #ffffff;

    font-size: 14px;

    text-decoration: none;

    cursor: pointer;
}

button:hover,
.btn:hover {
    background: #1d4ed8;
}


/* =========================================================
   SEARCH BUTTON
========================================================= */

.btn-search {
    width: 100%;

    margin-top: 5px;

    padding: 11px 18px;

    background: #2563eb;
}

.btn-search:hover {
    background: #1d4ed8;
}


/* =========================================================
   INFO PENCARIAN
========================================================= */

.info-pencarian {
    background: #f8fafc;

    border: 1px solid #e5e7eb;

    border-radius: 8px;

    padding: 15px;

    margin-bottom: 25px;
}

.info-pencarian p {
    margin: 6px 0;
}


/* =========================================================
   TABLE
========================================================= */

.table-wrapper {
    width: 100%;

    overflow-x: auto;
}

table {
    width: 100%;

    border-collapse: collapse;

    font-size: 14px;

    background: #ffffff;
}

thead {
    background: #f1f5f9;
}

th,
td {
    padding: 12px;

    border-bottom: 1px solid #e5e7eb;

    text-align: left;

    white-space: nowrap;
}

th {
    font-weight: bold;

    color: #374151;
}

tbody tr:hover {
    background: #f8fafc;
}


/* =========================================================
   NOMINAL TABLE
========================================================= */

.nominal {
    text-align: right;

    font-weight: bold;
}


/* =========================================================
   DETAIL BUTTON
========================================================= */

.btn-detail {
    display: inline-block;

    padding: 7px 12px;

    background: #2563eb;

    color: #ffffff;

    text-decoration: none;

    border-radius: 5px;

    font-size: 13px;
}

.btn-detail:hover {
    background: #1d4ed8;
}


/* =========================================================
   EMPTY DATA
========================================================= */

.empty {
    padding: 30px;

    text-align: center;

    background: #f8fafc;

    border: 1px solid #e5e7eb;

    border-radius: 8px;

    color: #666;
}


/* =========================================================
   BACK LINK
========================================================= */

.back {
    margin-top: 20px;

    text-align: center;
}

.back a {
    color: #2563eb;

    text-decoration: none;
}

.back a:hover {
    text-decoration: underline;
}


/* =========================================================
   RECEIPT CONTAINER
========================================================= */

.receipt-container {
    width: 100%;

    max-width: 500px;

    margin: 30px auto;

    padding: 15px;
}


/* =========================================================
   RECEIPT
========================================================= */

.receipt {
    background: #ffffff;

    padding: 25px;

    border-radius: 8px;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.10);
}


/* =========================================================
   RECEIPT HEADER
========================================================= */

.receipt-header {
    text-align: center;
}

.receipt-header h2 {
    margin: 0 0 5px;

    font-size: 21px;

    color: #111827;
}

.receipt-header p {
    margin: 4px 0;

    font-size: 13px;

    color: #4b5563;
}

.receipt-header strong {
    display: block;

    margin-top: 10px;

    font-size: 14px;

    color: #111827;
}


/* =========================================================
   RECEIPT INFORMATION
========================================================= */

.receipt-info {
    margin-top: 15px;
}

.receipt-info div {
    display: flex;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 7px;

    font-size: 13px;
}

.receipt-info span {
    color: #555;
}

.receipt-info strong {
    text-align: right;

    color: #222;
}


/* =========================================================
   SEPARATOR
========================================================= */

.separator {
    border-top: 1px dashed #999;

    margin: 18px 0;
}


/* =========================================================
   ITEM
========================================================= */

.item {
    margin-bottom: 16px;
}

.item-name {
    font-weight: bold;

    font-size: 15px;

    color: #111827;
}

.item-code {
    font-size: 11px;

    color: #777;

    margin-top: 3px;

    margin-bottom: 5px;
}


/* =========================================================
   ITEM PRICE
========================================================= */

.item-detail {
    display: flex;

    justify-content: space-between;

    gap: 10px;

    font-size: 13px;
}

.item-detail strong {
    text-align: right;
}


/* =========================================================
   ITEM DISCOUNT
========================================================= */

.item-discount {
    display: flex;

    justify-content: space-between;

    margin-top: 5px;

    color: #555;

    font-size: 13px;
}


/* =========================================================
   ITEM NET
========================================================= */

.item-net {
    display: flex;

    justify-content: space-between;

    margin-top: 5px;

    font-size: 13px;
}

.item-net strong {
    text-align: right;
}


/* =========================================================
   TOTAL
========================================================= */

.total-section {
    margin-top: 10px;
}

.total-section > div {
    display: flex;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 8px;

    font-size: 14px;
}

.total-section strong {
    text-align: right;
}


/* =========================================================
   GRAND TOTAL
========================================================= */

.grand-total {
    border-top: 1px solid #333;

    margin-top: 12px;

    padding-top: 12px;

    font-size: 18px !important;

    font-weight: bold;
}

.grand-total span {
    font-weight: bold;
}

.grand-total strong {
    font-size: 18px;
}


/* =========================================================
   RECEIPT FOOTER
========================================================= */

.receipt-footer {
    text-align: center;

    margin-top: 20px;
}

.receipt-footer p {
    margin-bottom: 18px;

    font-weight: bold;

    color: #333;
}


/* =========================================================
   PRINT BUTTON
========================================================= */

.btn-print {
    padding: 10px 20px;

    border: none;

    border-radius: 5px;

    background: #2563eb;

    color: #ffffff;

    cursor: pointer;

    font-size: 14px;
}

.btn-print:hover {
    background: #1d4ed8;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .container {
        margin: 20px auto;

        padding: 0 12px;
    }

    .card {
        padding: 18px;
    }

    h1 {
        font-size: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .receipt-container {
        margin: 10px auto;

        padding: 8px;
    }

    .receipt {
        padding: 18px;
    }

}


/* =========================================================
   PRINT
========================================================= */

@media print {

    body {
        background: #ffffff;
    }

    .receipt-container {
        margin: 0;

        padding: 0;

        max-width: none;
    }

    .receipt {
        box-shadow: none;

        border-radius: 0;

        padding: 10px;
    }

    .back,
    .btn-print {
        display: none;
    }

}