/* ==========================================
   NAILIE.ID
   MATCHA + PINK
========================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "SF Pro Text",
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    -webkit-text-size-adjust: 100%;
}

body {
    font-family: inherit;

    background: #f8f6f1;
    color: #3d4038;
    min-height: 100vh;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea {
    font-family: inherit;
}


/* ==========================================
   HEADER
   ========================================== */

.header {
    background: linear-gradient(
        135deg,
        #dfe8c8,
        #f8d9e2
    );

    padding: 24px 18px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 15px;
}

.brand h1 {
    color: #667c48;
    font-size: 30px;
    letter-spacing: -1px;
}

.brand p {
    color: #d77d99;
    font-size: 13px;
    margin-top: 4px;
}

.datetime {
    text-align: right;
    font-size: 11px;
    color: #68705e;
}


/* ==========================================
   CONTAINER
   ========================================== */

.container {
    width: 100%;
    max-width: 700px;
    margin: auto;
    padding: 15px;
}


/* ==========================================
   CARD
   ========================================== */

.card {
    background: #ffffff;

    border: 1px solid #ece9e3;
    border-radius: 18px;

    padding: 18px;
    margin-bottom: 15px;

    box-shadow:
        0 4px 15px rgba(
            100,
            100,
            70,
            0.06
        );
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 15px;
}

.section-title h2 {
    font-size: 18px;
    color: #687c4d;
}


/* ==========================================
   FORM
   ========================================== */

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;

    font-size: 13px;
    font-weight: bold;

    color: #666b5f;

    margin-bottom: 7px;
}

input,
select {
    width: 100%;

    border: 1px solid #dddcd6;
    border-radius: 12px;

    padding: 13px;

    font-size: 15px;

    outline: none;

    background: #ffffff;

    font-family: Arial, Helvetica, sans-serif;
}

input:focus,
select:focus {
    border-color: #d989a2;

    box-shadow:
        0 0 0 3px
        rgba(
            217,
            137,
            162,
            0.12
        );
}

.input-big {
    font-size: 16px;
}


/* ==========================================
   FINGER BUTTON
   ========================================== */

.finger-buttons {
    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    gap: 7px;
}

.finger-buttons button {
    border: 1px solid #d7dfc5;

    background: #f4f7ed;

    color: #65784c;

    border-radius: 10px;

    padding: 10px 5px;

    font-size: 14px;

    cursor: pointer;

    transition: 0.15s;
}

.finger-buttons button:hover {
    background: #e9efdc;
}

.finger-buttons button.active {
    background: #758a54;

    color: #ffffff;

    border-color: #758a54;
}


/* ==========================================
   BUTTON PRIMARY
   ========================================== */

.btn-primary {
    width: 100%;

    border: none;

    border-radius: 12px;

    padding: 14px;

    background: #758a54;

    color: #ffffff;

    font-weight: bold;

    font-size: 15px;

    cursor: pointer;

    transition: 0.2s;
}

.btn-primary:hover {
    background: #687d4d;
}

.btn-primary:active {
    transform: scale(0.98);
}


/* ==========================================
   ORDER
   ========================================== */

.empty {
    text-align: center;

    color: #aaa;

    padding: 25px 10px;
}

.order-item {
    border: 1px solid #eee;

    border-radius: 12px;

    padding: 13px;

    margin-bottom: 10px;
}

.order-top {
    display: flex;

    justify-content: space-between;

    gap: 10px;
}

.order-name {
    font-weight: bold;

    color: #687c4d;
}

.order-price {
    font-weight: bold;

    color: #d27894;

    white-space: nowrap;
}

.order-note {
    font-size: 12px;

    color: #888;

    margin-top: 5px;
}

.btn-delete {
    margin-top: 8px;

    border: none;

    background: #fae3e9;

    color: #c35e7c;

    padding: 6px 10px;

    border-radius: 8px;

    font-size: 11px;

    cursor: pointer;
}


/* ==========================================
   PAYMENT
   ========================================== */

.payment-row {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 12px;
}

.payment-row input {
    width: 130px;

    text-align: right;
}

.total {
    background: #edf2df;

    border-radius: 14px;

    padding: 16px;

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin: 15px 0;
}

.total span {
    font-weight: bold;

    color: #667b4a;
}

.total strong {
    color: #d27391;

    font-size: 21px;
}

.change {
    background: #fdf0f4;

    border-radius: 12px;

    padding: 13px;

    display: flex;

    justify-content: space-between;
}

.change strong {
    color: #d27391;
}


/* ==========================================
   ACTION
   ========================================== */

.actions {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 12px;

    margin: 20px 0 35px;
}

.btn-matcha,
.btn-secondary,
.btn-new {
    border: none;

    border-radius: 14px;

    padding: 14px;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}

.btn-matcha {
    background: #758a54;

    color: #ffffff;
}

.btn-secondary {
    background: #f7e4ea;

    color: #b05b78;
}

.btn-new {
    background: #4f5f38;

    color: #ffffff;
}

.btn-matcha:hover,
.btn-secondary:hover,
.btn-new:hover {
    transform: translateY(-1px);
}

.btn-matcha:active,
.btn-secondary:active,
.btn-new:active {
    transform: scale(0.98);
}


/* ==========================================
   NOTA DIGITAL
   FONT DEFAULT
   ========================================== */

.nota-wrapper {
    width: 100%;

    display: flex;

    justify-content: center;

    align-items: flex-start;

    padding: 30px 16px 50px;

    box-sizing: border-box;
}


/* ==========================================
   KERTAS NOTA
   ========================================== */

.nota {
    width: 100%;

    max-width: 390px;

    background: #ffffff;

    box-sizing: border-box;

    padding: 30px 24px 28px;

    border-radius: 24px;

    color: #303030;

    /* FONT DEFAULT */
    font-family: inherit;

    box-shadow:
        0 12px 35px rgba(
            0,
            0,
            0,
            0.08
        );

    overflow: hidden;
}


/* ==========================================
   HEADER NOTA
   ========================================== */

.nota-header {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    margin-bottom: 26px;
}

.nota-brand h2 {
    margin: 0;

    font-size: 25px;

    line-height: 1.2;

    font-weight: 700;

    letter-spacing: -0.6px;
}

.nota-brand p {
    margin: 6px 0 0;

    font-size: 11px;

    line-height: 1.4;

    color: #999999;
}

.nota-heart {
    font-size: 28px;

    line-height: 1;

    color: #777777;

    margin-top: -3px;
}


/* ==========================================
   INFORMASI NOTA
   ========================================== */

.nota-info {
    display: flex;

    flex-direction: column;

    gap: 13px;
}

.nota-info-row {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 20px;
}

.nota-info-row span {
    flex-shrink: 0;

    font-size: 11px;

    color: #999999;
}

.nota-info-row strong {
    font-size: 12px;

    font-weight: 600;

    text-align: right;

    color: #333333;

    word-break: break-word;
}


/* ==========================================
   GARIS NOTA
   ========================================== */

.nota-line {
    width: 100%;

    height: 1px;

    background: #eeeeee;

    margin: 22px 0;
}


/* ==========================================
   ITEM LAYANAN
   ========================================== */

.nota-item {
    padding: 7px 0 10px;
}

.nota-item-top {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 15px;
}

.nota-item-name {
    font-size: 13px;

    font-weight: 600;

    line-height: 1.4;

    color: #333333;
}

.nota-item-price {
    flex-shrink: 0;

    font-size: 13px;

    font-weight: 600;

    color: #333333;

    white-space: nowrap;
}

.nota-item-detail {
    margin-top: 4px;

    font-size: 10px;

    line-height: 1.4;

    color: #999999;
}

.nota-item-note {
    margin-top: 4px;

    font-size: 10px;

    line-height: 1.4;

    color: #999999;

    font-style: italic;
}

.nota-empty {
    text-align: center;

    padding: 18px 0;

    font-size: 11px;

    color: #aaaaaa;
}


/* ==========================================
   TOTAL ROW
   ========================================== */

.nota-row {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 15px;

    padding: 6px 0;
}

.nota-row span {
    font-size: 12px;

    color: #777777;
}

.nota-row strong {
    font-size: 12px;

    font-weight: 600;

    color: #333333;

    white-space: nowrap;
}


/* ==========================================
   TOTAL BESAR
   ========================================== */

.nota-total {
    display: flex;

    justify-content: space-between;

    align-items: center;

    margin: 13px 0;

    padding: 15px 0;

    border-top:
        1px dashed #dddddd;

    border-bottom:
        1px dashed #dddddd;
}

.nota-total span {
    font-size: 13px;

    font-weight: 700;

    letter-spacing: 0.5px;
}

.nota-total strong {
    font-size: 18px;

    font-weight: 700;

    color: #222222;

    white-space: nowrap;
}


/* ==========================================
   FOOTER NOTA
   ========================================== */

.nota-footer {
    text-align: center;

    margin-top: 27px;

    padding-top: 5px;
}

.nota-footer p {
    margin: 4px 0;

    font-size: 9px;

    line-height: 1.5;

    color: #aaaaaa;
}

.nota-footer strong {
    display: block;

    margin-top: 12px;

    font-size: 12px;

    font-weight: 600;

    color: #555555;
}


/* ==========================================
   MODE SCREENSHOT / GAMBAR
   ========================================== */

.nota.capture-mode {
    width: 390px;

    max-width: 390px;

    border-radius: 0;

    box-shadow: none;

    padding: 32px 26px 30px;

    background: #ffffff;

    font-family: inherit;
}


/* ==========================================
   IPHONE KECIL
   ========================================== */

@media (max-width: 430px) {

    .nota-wrapper {
        padding-left: 12px;

        padding-right: 12px;
    }

    .nota {
        max-width: 390px;

        padding:
            28px 22px 26px;

        border-radius: 22px;
    }
}


/* ==========================================
   DESKTOP
   ========================================== */

@media (min-width: 700px) {

    .container {
        padding: 25px;
    }

    .header {
        padding:
            28px
            calc(
                (100% - 650px) / 2
            );
    }
}


/* ==========================================
   PRINT
   ========================================== */

@media print {

    body * {
        visibility: hidden;
    }

    #nota,
    #nota * {
        visibility: visible;
    }

    #nota {
        position: absolute;

        left: 0;

        top: 0;

        width: 390px;

        max-width: 390px;

        box-shadow: none;

        border-radius: 0;

        font-family: inherit;
    }
}
/* ==========================================
   LOGOUT
   ========================================== */

.logout-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.logout-button {
    width: 100%;
    max-width: 180px;

    padding: 10px 20px;

    border: 1px solid #e5e7eb;
    border-radius: 10px;

    background: #ffffff;
    color: #dc2626;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

.logout-button:hover {
    background: #fef2f2;
}

.logout-button:active {
    transform: scale(0.98);
}
/* ==========================================
   NAILIE.ID
   MOBILE / IPHONE OPTIMIZATION
   ========================================== */

/* ------------------------------------------
   IOS / SAFARI
   ------------------------------------------ */

html {
    width: 100%;
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    overflow-x: hidden;

    /* Aman untuk notch / Dynamic Island */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}


/* ------------------------------------------
   HEADER MOBILE
   ------------------------------------------ */

.header {
    width: 100%;

    padding-top:
        max(18px, env(safe-area-inset-top));

    padding-left: 18px;
    padding-right: 18px;
}


/* ------------------------------------------
   CONTAINER MOBILE
   ------------------------------------------ */

.container {
    width: 100%;
    max-width: 700px;

    margin: 0 auto;

    padding:
        14px
        14px
        calc(25px + env(safe-area-inset-bottom));
}


/* ------------------------------------------
   INPUT IOS
   MENCEGAH AUTO ZOOM
   ------------------------------------------ */

input,
select,
textarea,
button {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    -webkit-appearance: none;
    appearance: none;
}

input,
select,
textarea {
    font-size: 16px;
}


/* ------------------------------------------
   TOUCH AREA
   ------------------------------------------ */

button,
select,
input {
    min-height: 44px;
}

button {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}


/* ------------------------------------------
   CARD MOBILE
   ------------------------------------------ */

.card {
    width: 100%;

    padding: 16px;

    border-radius: 16px;

    margin-bottom: 14px;
}


/* ------------------------------------------
   HEADER BRAND
   ------------------------------------------ */

.brand h1 {
    font-size: clamp(
        24px,
        7vw,
        30px
    );
}

.brand p {
    font-size: 12px;
}


/* ------------------------------------------
   DATE & TIME
   ------------------------------------------ */

.datetime {
    font-size: 10px;

    white-space: nowrap;
}


/* ------------------------------------------
   SECTION TITLE
   ------------------------------------------ */

.section-title {
    gap: 10px;
}

.section-title h2 {
    font-size: 17px;
}


/* ------------------------------------------
   FORM
   ------------------------------------------ */

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    font-size: 13px;
}


/* ------------------------------------------
   INPUT
   ------------------------------------------ */

input,
select {
    width: 100%;

    min-width: 0;

    padding:
        13px
        12px;

    border-radius: 11px;

    font-size: 16px;
}


/* ------------------------------------------
   JUMLAH JARI
   ------------------------------------------ */

.finger-buttons {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 7px;
}

.finger-buttons button {
    width: 100%;

    min-width: 0;
    min-height: 44px;

    padding:
        10px
        4px;

    font-size: 14px;

    border-radius: 10px;
}


/* ------------------------------------------
   PRIMARY BUTTON
   ------------------------------------------ */

.btn-primary {
    min-height: 48px;

    padding:
        13px
        14px;

    font-size: 15px;
}


/* ------------------------------------------
   ORDER ITEM
   ------------------------------------------ */

.order-item {
    width: 100%;

    padding: 12px;

    overflow: hidden;
}

.order-top {
    width: 100%;

    gap: 8px;
}

.order-name {
    max-width: 100%;

    word-break: break-word;
}

.order-price {
    flex-shrink: 0;

    font-size: 14px;
}


/* ------------------------------------------
   PAYMENT
   ------------------------------------------ */

.payment-row {
    gap: 12px;
}

.payment-row input {
    width: 135px;

    max-width: 45%;

    min-width: 0;
}


/* ------------------------------------------
   TOTAL
   ------------------------------------------ */

.total {
    padding: 14px;

    gap: 10px;
}

.total strong {
    font-size: 19px;

    white-space: nowrap;
}


/* ------------------------------------------
   ACTION BUTTON
   ------------------------------------------ */

.actions {
    grid-template-columns:
        1fr 1fr;

    gap: 9px;

    margin:
        18px 0
        28px;
}

.btn-matcha,
.btn-secondary,
.btn-new {
    min-height: 48px;

    padding:
        12px 8px;

    font-size: 13px;
}


/* ------------------------------------------
   LOGOUT
   ------------------------------------------ */

.logout-container {
    width: 100%;

    margin-top: 18px;

    padding-bottom:
        env(safe-area-inset-bottom);
}

.logout-button {
    width: 100%;

    max-width: 200px;

    min-height: 44px;

    padding:
        10px
        18px;
}


/* ------------------------------------------
   NOTA MOBILE
   ------------------------------------------ */

.nota-wrapper {
    width: 100%;

    padding:
        20px
        10px
        calc(
            40px +
            env(safe-area-inset-bottom)
        );
}

.nota {
    width: 100%;

    max-width: 390px;

    padding:
        26px
        20px
        26px;

    border-radius: 20px;
}


/* ------------------------------------------
   NOTA HEADER
   ------------------------------------------ */

.nota-header {
    gap: 12px;

    margin-bottom: 22px;
}

.nota-brand h2 {
    font-size: 23px;
}

.nota-heart {
    font-size: 25px;
}


/* ------------------------------------------
   NOTA INFO
   ------------------------------------------ */

.nota-info-row {
    gap: 12px;
}

.nota-info-row span {
    font-size: 10px;
}

.nota-info-row strong {
    max-width: 65%;

    font-size: 11px;
}


/* ------------------------------------------
   NOTA ITEM
   ------------------------------------------ */

.nota-item-top {
    gap: 10px;
}

.nota-item-name {
    min-width: 0;

    word-break: break-word;

    font-size: 12px;
}

.nota-item-price {
    font-size: 12px;
}


/* ------------------------------------------
   NOTA TOTAL
   ------------------------------------------ */

.nota-total {
    gap: 10px;
}

.nota-total span {
    font-size: 12px;
}

.nota-total strong {
    font-size: 17px;
}


/* ------------------------------------------
   SMALL IPHONE
   iPhone SE / layar kecil
   ------------------------------------------ */

@media (max-width: 375px) {

    .header {
        padding-left: 14px;
        padding-right: 14px;
    }

    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .card {
        padding: 14px;

        border-radius: 15px;
    }

    .brand h1 {
        font-size: 24px;
    }

    .brand p {
        font-size: 10px;
    }

    .datetime {
        font-size: 9px;
    }

    .finger-buttons {
        gap: 5px;
    }

    .finger-buttons button {
        min-height: 42px;

        font-size: 13px;
    }

    .actions {
        gap: 7px;
    }

    .btn-matcha,
    .btn-secondary,
    .btn-new {
        font-size: 12px;
    }

    .nota {
        padding-left: 18px;
        padding-right: 18px;
    }
}


/* ------------------------------------------
   IPHONE / MOBILE PORTRAIT
   ------------------------------------------ */

@media (max-width: 430px) {

    body {
        font-size: 15px;
    }

    .header {
        align-items: flex-start;
    }

    .datetime {
        margin-top: 4px;
    }

    .payment-row input {
        width: 125px;
    }

    .change {
        gap: 10px;
    }

    .nota-wrapper {
        padding-left: 8px;
        padding-right: 8px;
    }

}


/* ------------------------------------------
   MOBILE LANDSCAPE
   ------------------------------------------ */

@media (
    max-width: 900px
) and (
    orientation: landscape
) {

    .header {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .container {
        max-width: 700px;
    }

    .card {
        padding: 15px;
    }

}


/* ------------------------------------------
   PREVENT HORIZONTAL SCROLL
   ------------------------------------------ */

img,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
}


/* ------------------------------------------
   IOS BUTTON FEEDBACK
   ------------------------------------------ */

@media (hover: none) {

    .finger-buttons button:active,
    .btn-primary:active,
    .btn-matcha:active,
    .btn-secondary:active,
    .btn-new:active,
    .logout-button:active,
    .btn-delete:active {
        transform: scale(0.97);
    }

}


/* ------------------------------------------
   SAFE AREA BOTTOM
   ------------------------------------------ */

@supports (
    padding-bottom:
    env(safe-area-inset-bottom)
) {

    .logout-container {
        padding-bottom:
            env(safe-area-inset-bottom);
    }

}