/* ============================================
   DESIGN TOKENS
   Palet hangat, netral terang -> tetap terbaca
   di bawah lampu toko/resto yang terang.
   Warna aksen dipetakan per kategori modul,
   supaya kasir belajar navigasi lewat warna,
   mirip tombol-tombol kasir fisik.
   ============================================ */
:root {
    --bg: #F5F2EC;
    --surface: #FFFFFF;
    --ink: #1E2430;
    --ink-soft: #667085;
    --border: #E7E2D8;
    --navbar: #17233A;
    --navbar-ink: #F5F2EC;
    --radius-lg: 22px;
    --radius-md: 14px;
    --shadow: 0 6px 16px rgba(30, 36, 48, 0.08);

    --font-display: 'Manrope', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   TOP BAR
   ============================================ */
.topbar {
    background: var(--navbar);
    color: var(--navbar-ink);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar .brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar .brand .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #E8A33D;
}

.topbar .brand h1 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.2px;
}

.topbar .meta {
    text-align: right;
    font-size: 13px;
    color: #A9B4C6;
    line-height: 1.3;
}

.topbar .meta strong {
    display: block;
    color: var(--navbar-ink);
    font-size: 15px;
    font-family: var(--font-display);
    font-weight: 700;
}

/* ============================================
   LAYOUT
   ============================================ */
.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 22px 18px 60px;
}

.category-block {
    margin-bottom: 34px;
}

.category-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px 4px;
}

.category-label .swatch {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.category-label span {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* ============================================
   MODULE GRID  — target sentuh besar
   ============================================ */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

@media (min-width: 640px) {
    .module-grid {
        grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
        gap: 18px;
    }
}

.module-tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 22px 14px;
    min-height: 138px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    -webkit-user-select: none;
    user-select: none;
}

@media (min-width: 640px) {
    .module-tile {
        min-height: 160px;
        padding: 26px 16px;
    }
}

.module-tile:active {
    transform: scale(0.96);
    box-shadow: 0 3px 8px rgba(30, 36, 48, 0.10);
}

.module-tile .icon-badge {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .module-tile .icon-badge {
        width: 68px;
        height: 68px;
    }
}

.module-tile .icon-badge svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (min-width: 640px) {
    .module-tile .icon-badge svg {
        width: 36px;
        height: 36px;
    }
}

.module-tile .label {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14.5px;
    text-align: center;
    line-height: 1.25;
    color: var(--ink);
}

@media (min-width: 640px) {
    .module-tile .label {
        font-size: 15.5px;
    }
}

/* ============================================
   MODULE PLACEHOLDER PAGE
   ============================================ */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    color: var(--navbar-ink);
    text-decoration: none;
    background: rgba(255,255,255,0.08);
    padding: 8px 14px;
    border-radius: 10px;
}

.placeholder-box {
    margin-top: 28px;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    text-align: center;
    color: var(--ink-soft);
}

.placeholder-box .icon-badge {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.placeholder-box .icon-badge svg {
    width: 38px;
    height: 38px;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.placeholder-box h2 {
    font-family: var(--font-display);
    color: var(--ink);
    margin: 0 0 8px;
    font-size: 20px;
}

.placeholder-box p {
    margin: 0;
    font-size: 14.5px;
}

/* ============================================
   BANNER NOTIFIKASI (hasil simpan / reset)
   ============================================ */
.banner {
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 14px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.banner.success {
    background: #E7F6EC;
    color: #1E7A3C;
    border: 1px solid #BEE6C9;
}

.banner.danger {
    background: #FCEAEA;
    color: #B23A3A;
    border: 1px solid #F3C6C6;
}

.setup-hint {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #EEF0FA;
    border: 1px solid #D7DBF2;
    border-radius: 16px;
    padding: 14px 16px;
    text-decoration: none;
    color: #3D3F6B;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 4px;
}

.setup-hint strong {
    color: #5C6AC4;
    font-family: var(--font-display);
}

/* ============================================
   MODUL KASIR — layout utama
   ============================================ */
.kasir-layout {
    display: flex;
    flex-direction: column;
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 14px 90px;
    gap: 14px;
    min-height: calc(100vh - 66px);
}

@media (min-width: 900px) {
    .kasir-layout {
        flex-direction: row;
        align-items: flex-start;
        padding-bottom: 24px;
    }
}

.produk-panel {
    flex: 1;
    min-width: 0;
}

.search-bar {
    margin-bottom: 12px;
}

.search-bar input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: 14px;
    font-size: 15px;
    font-family: var(--font-body);
    background: var(--surface);
    min-height: 50px;
}

.search-bar input:focus {
    outline: none;
    border-color: #E8A33D;
}

.chip-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 14px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
    display: none;
}

.chip {
    flex-shrink: 0;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--ink-soft);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13.5px;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
}

.chip.active {
    background: #E8A33D;
    border-color: #E8A33D;
    color: #fff;
}

.produk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

@media (min-width: 640px) {
    .produk-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 14px;
    }
}

.produk-card {
    position: relative;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 16px 10px;
    min-height: 128px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.produk-card.has-qty {
    border-color: #E8A33D;
    background: #FFFBF3;
    padding-bottom: 10px;
}

.produk-card:active {
    transform: scale(0.97);
}

.produk-icon {
    font-size: 34px;
    line-height: 1;
}

.produk-nama {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13.5px;
    text-align: center;
    color: var(--ink);
    line-height: 1.25;
}

.produk-harga {
    font-size: 12.5px;
    color: var(--ink-soft);
    font-weight: 600;
}

/* Stepper mini langsung di kartu produk — supaya bisa kurangi
   pesanan tanpa perlu buka drawer keranjang, penting untuk layar HP */
.mini-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    margin-top: 4px;
    background: #E8A33D;
    border-radius: 10px;
    padding: 4px;
}

.mini-btn {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    border: none;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.mini-btn:active {
    background: rgba(255, 255, 255, 0.45);
}

.mini-btn.mini-minus {
    font-size: 19px;
}

.mini-qty {
    flex: 1;
    text-align: center;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 14px;
}

/* ============================================
   PANEL KERANJANG — sidebar (desktop) / bottom sheet (mobile)
   ============================================ */
.cart-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    z-index: 30;
}

@media (min-width: 900px) {
    .cart-panel {
        width: 340px;
        flex-shrink: 0;
        position: sticky;
        top: 86px;
        max-height: calc(100vh - 110px);
        padding: 18px;
    }

    .cart-close {
        display: none;
    }
}

@media (max-width: 899px) {
    .cart-panel {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: 22px 22px 0 0;
        padding: 18px 16px 22px;
        max-height: 78vh;
        transform: translateY(100%);
        transition: transform 0.25s ease;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
    }

    .cart-panel.open {
        transform: translateY(0);
    }
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.cart-header h3 {
    font-family: var(--font-display);
    font-size: 16px;
    margin: 0;
    color: var(--ink);
}

.cart-close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: var(--ink-soft);
    cursor: pointer;
    padding: 4px 8px;
}

.cart-items {
    overflow-y: auto;
    flex: 1;
    min-height: 60px;
}

.cart-empty {
    color: var(--ink-soft);
    font-size: 13.5px;
    text-align: center;
    padding: 26px 10px;
    line-height: 1.5;
}

.cart-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.cart-row-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cart-row-nama {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13.5px;
    color: var(--ink);
}

.cart-row-harga {
    font-size: 12px;
    color: var(--ink-soft);
}

.qty-stepper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: 1.5px solid var(--border);
    background: #FBFAF7;
    font-size: 17px;
    font-weight: 800;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-value {
    min-width: 18px;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 14px;
}

.cart-summary {
    border-top: 1.5px solid var(--border);
    padding-top: 12px;
    margin-top: 8px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    color: var(--ink-soft);
    padding: 4px 0;
}

.summary-line.total {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 17px;
    color: var(--ink);
    padding-top: 8px;
}

/* Bottom bar ringkas (mobile) */
.cart-bar {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    background: #E8A33D;
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 15px;
    box-shadow: 0 8px 20px rgba(232, 163, 61, 0.4);
    cursor: pointer;
    z-index: 20;
}

@media (min-width: 900px) {
    .cart-bar {
        display: none !important;
    }
}

/* ============================================
   OVERLAY PEMBAYARAN
   ============================================ */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(23, 35, 58, 0.45);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 50;
}

@media (min-width: 640px) {
    .overlay {
        align-items: center;
    }
}

.overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.overlay-box {
    background: var(--surface);
    border-radius: 22px 22px 0 0;
    padding: 22px 20px 26px;
    width: 100%;
    max-width: 420px;
    max-height: 88vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.2s ease;
}

@media (min-width: 640px) {
    .overlay-box {
        border-radius: 22px;
    }
}

.overlay.open .overlay-box {
    transform: translateY(0);
}

.overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.overlay-header h3 {
    font-family: var(--font-display);
    font-size: 17px;
    margin: 0;
}

.bayar-total-display {
    background: #FFF8EC;
    border: 1px solid #F3DCAE;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 16px;
}

.bayar-total-display span {
    font-size: 12.5px;
    color: var(--ink-soft);
}

.bayar-total-display strong {
    font-family: var(--font-display);
    font-size: 24px;
    color: #B9761F;
}

.metode-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.metode-chip {
    flex: 1;
    text-align: center;
}

.quick-cash-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.quick-cash-btn {
    border: 1.5px solid var(--border);
    background: #FBFAF7;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--ink);
    cursor: pointer;
}

.kembalian-display {
    margin-top: 14px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 15px;
    color: #1E7A3C;
}

.kembalian-display.kurang {
    color: #C0392B;
}

/* ============================================
   STRUK SUKSES
   ============================================ */
.receipt-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 30px 24px;
    text-align: center;
}

.receipt-check {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #E7F6EC;
    color: #1E7A3C;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.receipt-box h2 {
    font-family: var(--font-display);
    margin: 0 0 4px;
    font-size: 20px;
}

.receipt-nomor {
    color: var(--ink-soft);
    font-size: 13px;
    margin: 0 0 20px;
}

.receipt-lines {
    text-align: left;
    border-top: 1px dashed var(--border);
    border-bottom: 1px dashed var(--border);
    padding: 14px 0;
    margin-bottom: 14px;
}

.receipt-line {
    display: flex;
    justify-content: space-between;
    font-size: 13.5px;
    padding: 5px 0;
    color: var(--ink);
}

.receipt-totals {
    text-align: left;
}

.receipt-line.total {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 16px;
    border-top: 1px solid var(--border);
    margin-top: 6px;
    padding-top: 10px;
}

/* ============================================
   FORM SETTING TOKO
   ============================================ */
.settings-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 22px;
    margin-bottom: 18px;
}

.settings-card h3 {
    font-family: var(--font-display);
    font-size: 15px;
    margin: 0 0 18px;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-card h3 .num {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #5C6AC41A;
    color: #5C6AC4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.logo-preview {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.logo-circle {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #5C6AC4;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 21px;
    flex-shrink: 0;
    transition: background 0.15s;
}

.logo-preview .txt {
    font-size: 13px;
    color: var(--ink-soft);
}

.logo-preview .txt strong {
    display: block;
    color: var(--ink);
    font-size: 15.5px;
    font-family: var(--font-display);
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-soft);
    margin-bottom: 6px;
}

.field .hint {
    font-size: 12px;
    color: #97A1B0;
    margin-top: 5px;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field input[type="number"],
.field input[type="time"],
.field select,
.field textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
    background: #FBFAF7;
    min-height: 48px;
}

.field textarea {
    min-height: 84px;
    resize: vertical;
    line-height: 1.4;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: #5C6AC4;
    background: #fff;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 520px) {
    .field-row {
        grid-template-columns: 1fr;
    }
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0 16px;
}

.toggle-row .toggle-text strong {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ink);
}

.toggle-row .toggle-text span {
    font-size: 12.5px;
    color: var(--ink-soft);
}

.switch {
    position: relative;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #D8D3C6;
    border-radius: 999px;
    transition: 0.2s;
}

.slider:before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.switch input:checked + .slider {
    background: #5C6AC4;
}

.switch input:checked + .slider:before {
    transform: translateX(20px);
}

#pajakPersenField {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.2s ease, opacity 0.2s ease;
}

#pajakPersenField.show {
    max-height: 120px;
    opacity: 1;
}

/* ============================================
   ACTION BAR (Simpan / Reset)
   ============================================ */
.action-bar {
    position: sticky;
    bottom: 0;
    background: linear-gradient(to top, var(--bg) 65%, transparent);
    padding: 18px 0 8px;
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.btn {
    flex: 1;
    border: none;
    border-radius: 14px;
    padding: 16px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    min-height: 54px;
}

.btn-primary {
    background: #5C6AC4;
    color: #fff;
    box-shadow: 0 6px 14px rgba(92, 106, 196, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-outline-danger {
    background: #fff;
    color: #C0392B;
    border: 1.5px solid #F0C4BE;
    flex: 0 0 130px;
}

.btn-outline-danger:active {
    transform: scale(0.98);
}

@media (max-width: 420px) {
    .btn-outline-danger {
        flex: 0 0 100px;
        font-size: 13.5px;
        padding: 16px 6px;
    }
}

/* ============================================
   MODUL PRODUK — toolbar, list & form
   ============================================ */
.produk-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.produk-toolbar .search-bar {
    flex: 1;
    margin-bottom: 0;
}

.btn-add {
    flex-shrink: 0;
    background: #1E8A82;
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 0 20px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 50px;
    box-shadow: 0 6px 14px rgba(30, 138, 130, 0.28);
}

.btn-add:active {
    transform: scale(0.97);
}

.produk-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 30px;
}

.produk-row {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: opacity 0.15s ease;
}

.produk-row.nonaktif {
    opacity: 0.55;
}

.produk-row .row-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #1E8A821A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.produk-row .row-info {
    flex: 1;
    min-width: 0;
}

.produk-row .row-nama {
    display: block;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14.5px;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.produk-row .row-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 12.5px;
    color: var(--ink-soft);
}

.badge-kategori {
    background: #F0EEE6;
    border-radius: 999px;
    padding: 2px 9px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-status {
    border-radius: 999px;
    padding: 2px 9px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.badge-status.aktif {
    background: #E7F6EC;
    color: #1E7A3C;
}

.badge-status.nonaktif {
    background: #F0EEE6;
    color: #8B93A1;
}

.produk-row .row-harga {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 14.5px;
    color: var(--ink);
    flex-shrink: 0;
    white-space: nowrap;
}

.row-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.row-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: #FBFAF7;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ink-soft);
    padding: 0;
}

.row-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.row-btn.edit:active {
    background: #EEF0FA;
    color: #5C6AC4;
    border-color: #D7DBF2;
}

.row-btn.delete:active {
    background: #FCEAEA;
    color: #C0392B;
    border-color: #F3C6C6;
}

.list-empty {
    text-align: center;
    padding: 50px 20px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.6;
}

.icon-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-input-row .icon-preview {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: #1E8A821A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.icon-input-row .field {
    flex: 1;
    margin-bottom: 0;
}

/* Field kolaps generik (dipakai untuk "Kategori Baru" & sejenisnya) */
.collapse-field {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.2s ease, opacity 0.2s ease;
}

.collapse-field.show {
    max-height: 120px;
    opacity: 1;
}
