/* Kolom angka tetap dapat diketik, tanpa spinner yang mudah tersentuh. */
input[type="number"]{-moz-appearance:textfield;appearance:textfield}
input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}

/* Tema ringan NEZADUA POS, mengambil warna utama dari logo Kios Makaita. */
:root {
    --km-navy: #0b2d5c;
    --km-teal: #08b7b9;
    --km-orange: #ff7a00;
    --km-yellow: #ffc928;
    --km-surface: #ffffff;
    --km-page: #f4f7fb;
    --km-soft: #eef8fb;
}

:root[data-theme="ocean"] {
    --km-navy: #075985;
    --km-teal: #0891b2;
    --km-orange: #38bdf8;
    --km-yellow: #fbbf24;
    --km-page: #f0f9ff;
    --km-soft: #e5f6fc;
}

:root[data-theme="fresh"] {
    --km-navy: #14532d;
    --km-teal: #16a34a;
    --km-orange: #65a30d;
    --km-yellow: #facc15;
    --km-page: #f3faf5;
    --km-soft: #eaf7ed;
}

:root[data-theme="modern"] {
    --km-navy: #4c1d95;
    --km-teal: #7c3aed;
    --km-orange: #db2777;
    --km-yellow: #f59e0b;
    --km-page: #faf5ff;
    --km-soft: #f3eefd;
}

body {
    background-color: var(--km-page);
}

.header {
    position: relative;
    border-bottom-color: #dce5ef !important;
    box-shadow: 0 2px 12px rgba(11,45,92,.045);
}

.header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--km-teal) 0 38%,
        var(--km-yellow) 38% 61%,
        var(--km-orange) 61% 78%,
        var(--km-navy) 78% 100%);
}

.back, .logout {
    transition: color .15s ease;
}

.back:hover, .back:focus-visible,
.logout:hover, .logout:focus-visible {
    color: var(--km-orange) !important;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--km-teal) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(8,183,185,.12);
}

/* Identitas usaha dan copyright bersama di seluruh halaman NEZADUA POS. */
.business-header-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    flex: 1 1 auto;
}

.business-cashier-shortcut {
    flex: 0 0 auto;
    padding: 0;
    color: #4c1d95;
    font-size: inherit;
    font-weight: 600;
    text-decoration: underline;
}

.business-header-actions {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 5px;
    flex: 0 0 auto;
}

.business-header-actions > a {
    white-space: nowrap;
}

.business-cashier-shortcut:hover,
.business-cashier-shortcut:focus-visible {
    color: var(--km-orange);
}

.business-header-logo {
    width: 72px;
    height: 52px;
    object-fit: contain;
    flex: 0 0 auto;
}

.business-header-copy {
    min-width: 0;
    line-height: 1.2;
}

.business-header-name {
    color: var(--km-navy);
    font-size: 20px;
    font-weight: 800;
}

.business-header-meta {
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
    font-weight: normal;
}

.business-header-page {
    margin-top: 3px;
    color: #c65f00;
    font-size: 12px;
    font-weight: 700;
}

body::after {
    content: "© NEZADUA POS · Hak cipta dilindungi";
    display: block;
    clear: both;
    padding: 18px 12px;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
    letter-spacing: .2px;
}

@media print {
    body::after {
        display: none !important;
    }
}

/* Tampilan ringkas bersama untuk halaman NEZADUA POS di HP. */
@media screen and (max-width: 800px) {
    body { font-size: 10px !important; }
    .header { padding: 6px 8px !important; min-height: 38px; }
    .header h1 { font-size: 14px !important; }
    .back, .logout { font-size: 10px !important; }
    .container { padding: 5px !important; }
    .welcome { margin-bottom: 8px !important; font-size: 10px !important; }

    .menu-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 5px !important; }
    .menu { padding: 11px 4px !important; font-size: 11px !important; border-radius: 5px !important; }

    .toolbar { margin-bottom: 6px !important; gap: 4px !important; }
    .btn, button, input[type="submit"] {
        padding: 7px 9px !important;
        font-size: 10px !important;
        border-radius: 4px !important;
    }

    .card, .filter, .form-card, .summary-card {
        padding: 7px !important;
        border-radius: 5px !important;
        margin-bottom: 6px !important;
    }
    .cards { grid-template-columns: repeat(2, 1fr) !important; gap: 4px !important; margin-bottom: 6px !important; }
    .card-label { font-size: 9px !important; }
    .card-value { margin-top: 3px !important; font-size: 16px !important; }
    .card-small { margin-top: 3px !important; font-size: 9px !important; }

    .filter form { gap: 4px !important; align-items: end !important; }
    .filter-group { gap: 2px !important; }
    label { font-size: 9px !important; margin-bottom: 3px !important; }
    input, select, textarea {
        padding: 6px !important;
        font-size: 11px !important;
        border-radius: 4px !important;
    }
    .filter input[type="date"] { width: 116px !important; }
    .form-group { margin-bottom: 7px !important; }

    .table-box, .warning-box, .critical-box {
        border-radius: 5px !important;
        margin-bottom: 6px !important;
        overflow-x: auto !important;
    }
    table { font-size: 9px !important; }
    th, td { padding: 6px 5px !important; }
    .warning-head, .critical-head { padding: 7px !important; }
    .warning-badge, .stock-empty, .stock-one {
        padding: 3px 5px !important;
        font-size: 8px !important;
        border-radius: 3px !important;
    }
    .safe-box { padding: 7px !important; margin-bottom: 6px !important; font-size: 9px !important; }
    .empty { padding: 14px 5px !important; font-size: 9px !important; }

    .meta { gap: 5px !important; margin-bottom: 8px !important; }
    .meta-box { padding: 7px !important; border-radius: 4px !important; }
    .result { padding: 8px !important; margin-bottom: 7px !important; }
    .code { font-size: 26px !important; letter-spacing: 2px !important; }
    h2, h3 { font-size: 13px !important; }

    .business-header-brand { gap: 7px; }
    .business-header-actions { gap: 3px; }
    .business-cashier-shortcut { font-size: 10px; }
    .business-header-logo { width: 56px; height: 40px; }
    .business-header-name { font-size: 13px; }
    .business-header-meta {
        max-width: 230px;
        margin-top: 1px;
        overflow: hidden;
        font-size: 8px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .business-header-page { margin-top: 1px; font-size: 9px; }
    body::after { padding: 10px 6px; font-size: 8px; }
}
