/* BONDOUT DIMSUM POS - application components */
:root{--maroon:#7A0C1E;--maroon-dark:#580614;--gold:#D4AF37;--slate:#0f172a}
*{box-sizing:border-box}body{font-family:'Plus Jakarta Sans',system-ui,sans-serif}.brand-avatar{width:42px;height:42px;border:2px solid var(--gold);border-radius:15px;background:linear-gradient(145deg,var(--maroon),var(--maroon-dark));display:grid;place-items:center;color:white;font-weight:900;font-size:24px;box-shadow:0 6px 16px #7a0c1e33}.brand-avatar-large{width:60px;height:60px;border-radius:20px;font-size:32px}.user-avatar{width:35px;height:35px;flex:none;border-radius:12px;background:#7a0c1e;color:white;display:grid;place-items:center;font-size:13px;font-weight:900}.user-avatar-light{width:35px;height:35px;border-radius:12px;background:#fbe8ec;color:#7a0c1e;display:grid;place-items:center;font-weight:900}.sidebar-caption{font-size:9px;letter-spacing:.16em;color:#94a3b8;font-weight:800;margin:0 0 8px 10px}.sidebar-link{display:flex;align-items:center;gap:12px;padding:11px 13px;border-radius:12px;color:#cbd5e1;font-size:12px;font-weight:650;transition:.18s}.sidebar-link>span{width:20px;text-align:center;font-size:15px}.sidebar-link:hover{background:#1e293b;color:white}.icon-button{width:38px;height:38px;border:1px solid #e2e8f0;border-radius:12px;background:white;color:#475569}.panel,.kpi-card{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:16px;box-shadow:0 1px 2px #0f172a08}.kpi-card{padding:14px;min-width:0}.kpi-top{display:flex;justify-content:space-between;align-items:center;gap:6px;color:#64748b;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.kpi-icon{width:32px;height:32px;border-radius:11px;display:grid;place-items:center;font-weight:900;flex:none}.kpi-value{font-size:clamp(15px,2vw,22px);font-weight:900;color:#0f172a;letter-spacing:-.04em;margin-top:12px;overflow-wrap:anywhere}.kpi-hint{font-size:9px;color:#94a3b8;margin-top:4px}.panel-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:13px}.panel-heading h3,.section-title{font-size:14px;font-weight:900;color:#0f172a}.panel-heading p,.section-subtitle{font-size:10px;color:#94a3b8;margin-top:3px}.panel-tag{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;color:#64748b;font-size:9px;font-weight:800;letter-spacing:.1em;padding:5px 8px}.chart-wrap{height:270px;position:relative}.chart-wrap-donut{height:190px}.payment-mini{border:1px solid #f1f5f9;border-radius:11px;padding:9px;display:grid;grid-template-columns:8px 1fr;gap:2px 6px;align-items:center}.payment-mini small{font-size:9px;color:#64748b}.payment-mini b{font-size:10px;grid-column:2}.legend-dot{width:7px;height:7px;border-radius:50%;grid-row:span 2}.list-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #f1f5f9}.list-row:last-child{border-bottom:0}.rank-chip{width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:#fdf2f4;color:#7a0c1e;font-size:10px;font-weight:900}.empty-state{padding:28px 12px;text-align:center;color:#94a3b8;font-size:12px}.low-stock-item{display:flex;justify-content:space-between;gap:8px;background:#fffbeb;border:1px solid #fde68a;border-radius:10px;padding:10px;font-size:10px;color:#92400e}.status-pill{display:inline-flex;align-items:center;white-space:nowrap;border-radius:999px;padding:4px 8px;font-size:9px;font-weight:800}.status-green{background:#dcfce7;color:#166534}.status-amber{background:#fef3c7;color:#92400e}.status-red{background:#fee2e2;color:#991b1b}.status-gray{background:#f1f5f9;color:#64748b}.primary-button,.secondary-button,.danger-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border-radius:11px;padding:10px 14px;font-size:11px;font-weight:850;transition:.15s;cursor:pointer}.primary-button{background:var(--maroon);color:#fff;box-shadow:0 4px 10px #7a0c1e22}.primary-button:hover{background:var(--maroon-dark);transform:translateY(-1px)}.primary-button:disabled,.mobile-cart-summary button:disabled{opacity:.45;cursor:not-allowed;transform:none}.secondary-button{background:white;border:1px solid #cbd5e1;color:#475569}.secondary-button:hover{background:#f8fafc}.danger-button{background:#b91c1c;color:white}.form-label{display:block;font-size:10px;font-weight:800;color:#475569;margin-bottom:6px}.form-control{display:block;width:100%;border:1px solid #cbd5e1;border-radius:10px;padding:10px 11px;background:white;font-size:12px;color:#0f172a;outline:none;min-width:0}.form-control:focus{border-color:#9b152b;box-shadow:0 0 0 3px #7a0c1e14}.form-control::placeholder{color:#a1a1aa}.data-table{width:100%;text-align:left;border-collapse:collapse;font-size:11px}.data-table thead{background:#f8fafc;color:#64748b;text-transform:uppercase;font-size:9px;letter-spacing:.08em}.data-table th{padding:13px 12px;font-weight:900;white-space:nowrap}.data-table td{padding:12px;border-top:1px solid #f1f5f9;color:#475569;vertical-align:middle}.data-table td b{color:#0f172a}.product-thumb{width:45px;height:45px;object-fit:cover;border-radius:11px;background:#f1f5f9;flex:none}.table-action{font-size:10px;font-weight:800;color:#7a0c1e;padding:6px 8px;border-radius:8px;background:#fdf2f4}.table-action:hover{background:#fbe8ec}.table-action-danger{color:#b91c1c;background:#fef2f2}.table-action:disabled{opacity:.35;cursor:not-allowed}.mobile-product-card{border:1px solid #e2e8f0;border-radius:13px;padding:12px}.category-icon{width:42px;height:42px;border-radius:13px;background:#fdf2f4;display:grid;place-items:center;font-size:20px}.app-dialog{border:0;padding:0;background:transparent;max-width:none;max-height:none}.app-dialog::backdrop{background:#0f172acc;backdrop-filter:blur(4px)}.dialog-card{background:white;width:min(94vw,600px);max-height:92vh;display:flex;flex-direction:column;border-radius:20px;overflow:hidden;box-shadow:0 25px 60px #02061755}.dialog-header{background:linear-gradient(120deg,#7a0c1e,#580614);padding:16px 18px;color:white;display:flex;justify-content:space-between;align-items:flex-start}.dialog-header h3{font-size:14px;font-weight:900}.dialog-header p{font-size:10px;color:#fbcbd3;margin-top:3px}.dialog-close{color:white;font-size:17px;padding:0 4px}.dialog-body{padding:18px;overflow:auto}.dialog-footer{padding:13px 18px;background:#f8fafc;border-top:1px solid #e2e8f0;display:flex;justify-content:flex-end;gap:8px}.checkbox-label{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:750;color:#475569}.checkbox-label input{accent-color:#7a0c1e}.toast-success,.toast-error{padding:12px 15px;border-radius:12px;box-shadow:0 8px 24px #0f172a18;font-size:11px;font-weight:750;animation:toast-in .2s ease-out}.toast-success{background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46}.toast-error{background:#fff1f2;border:1px solid #fecdd3;color:#9f1239}@keyframes toast-in{from{opacity:0;transform:translateY(-7px)}to{opacity:1;transform:translateY(0)}}.login-card{width:min(100%,420px);background:#fff;border:1px solid #e2e8f0;border-radius:25px;padding:28px;box-shadow:0 25px 60px #0f172a14}.bottom-nav-link{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#64748b;padding:5px 2px}.bottom-nav-link span{font-size:17px}.bottom-nav-link small{font-size:9px;font-weight:800}.category-chip{white-space:nowrap;border:1px solid #e2e8f0;background:#fff;border-radius:999px;padding:8px 12px;font-size:10px;font-weight:800;color:#64748b}.category-chip.active{background:#7a0c1e;border-color:#7a0c1e;color:#fff}.catalog-card,.pos-product-card{background:#fff;border:1px solid #e2e8f0;border-radius:15px;overflow:hidden;transition:.18s}.catalog-card:hover,.pos-product-card:hover{transform:translateY(-2px);box-shadow:0 10px 25px #7a0c1e12}.catalog-image-wrap{height:125px;background:#f8fafc;position:relative}.catalog-image-wrap img,.pos-product-card img{width:100%;height:100%;object-fit:cover}.catalog-badge{position:absolute;top:8px;left:8px;border-radius:7px;background:#d4af37;color:#422006;font-size:9px;font-weight:900;padding:4px 7px}.pos-image-wrap{height:110px;background:#f8fafc}.pos-product-card button{width:100%;padding:10px;border-top:1px solid #f1f5f9;color:#7a0c1e;font-size:10px;font-weight:900}.pos-product-card button:disabled{color:#94a3b8;background:#f8fafc}.summary-line,.summary-total{display:flex;align-items:center;justify-content:space-between;gap:10px}.summary-line{color:#64748b}.summary-line b{color:#334155;font-family:'JetBrains Mono',monospace;font-size:11px}.summary-total{border-top:1px solid #e2e8f0;padding-top:10px;font-weight:900;color:#0f172a;font-size:13px}.summary-total b{font-family:'JetBrains Mono',monospace;color:#7a0c1e;font-size:15px}.cart-row{display:flex;align-items:center;gap:9px;border:1px solid #f1f5f9;border-radius:11px;padding:9px}.qty-control{display:flex;align-items:center;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden}.qty-control button{width:25px;height:25px;background:#f8fafc;font-weight:900;color:#7a0c1e}.qty-control span{min-width:24px;text-align:center;font-size:10px;font-weight:900}.payment-method,.radio-card{border:1px solid #e2e8f0;border-radius:11px;padding:11px;text-align:center;font-size:11px;font-weight:850;color:#64748b}.payment-method.active{border-color:#7a0c1e;background:#fdf2f4;color:#7a0c1e}.radio-card{display:flex;align-items:center;gap:6px;justify-content:center}/* POS checkout dock styles are defined in the responsive section below. */@media(max-width:639px){.panel{padding:13px;border-radius:15px}.chart-wrap{height:235px}.chart-wrap-donut{height:185px}.catalog-image-wrap{height:105px}.kpi-card{padding:11px}.kpi-top{font-size:8px}.kpi-icon{width:27px;height:27px}.kpi-hint{font-size:8px}}

/* Patch tampilan foto produk: tampilkan seluruh gambar tanpa memotong bagian produk. */
.product-thumb,.product-photo-fit{object-fit:contain!important;padding:2px;background:#f8fafc}
.catalog-image-wrap{height:170px!important;display:flex;align-items:center;justify-content:center;padding:8px;background:#f8fafc}
.catalog-image-wrap img,.pos-image-wrap img{width:100%;height:100%;object-fit:contain!important;object-position:center;padding:4px;background:#f8fafc}
.pos-image-wrap{height:150px!important;display:flex;align-items:center;justify-content:center;padding:8px;background:#f8fafc}
.product-image-placeholder,.pos-product-placeholder{width:100%;height:100%;min-height:110px;display:flex;align-items:center;justify-content:center;border:1px dashed #cbd5e1;border-radius:10px;background:linear-gradient(135deg,#f8fafc,#eef2f7);color:#94a3b8;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}


/* POS checkout dock: menggantikan bar gelap dengan ringkasan pesanan yang jelas.
   Komponen ini dipakai bersama oleh akun Admin dan Kasir. */
.mobile-cart-summary {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    z-index: 45;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 78px;
    padding: 12px 14px 12px 16px;
    color: #172033;
    background: rgba(255, 255, 255, .97);
    border: 1px solid #f0d9de;
    border-left: 4px solid #7a0c1e;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .16), 0 3px 8px rgba(122, 12, 30, .08);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.mobile-cart-summary.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.mobile-cart-summary__content {
    flex: 1;
    min-width: 0;
}
.mobile-cart-summary__eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 5px;
    color: #64748b;
    font-size: 9px;
    line-height: 1.2;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.mobile-cart-summary__status-dot {
    width: 7px;
    height: 7px;
    flex: none;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 3px #dcfce7;
}
.mobile-cart-summary__details {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 12px;
    color: #64748b;
    font-size: 11px;
    font-weight: 650;
}
.mobile-cart-summary__details > span b {
    color: #172033;
    font-weight: 900;
}
.mobile-cart-summary__details strong {
    color: #7a0c1e;
    margin-left: 0;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: clamp(15px, 2vw, 19px);
    font-weight: 950;
    letter-spacing: -.035em;
    white-space: nowrap;
}
.mobile-cart-summary button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: none;
    min-height: 46px;
    padding: 0 17px;
    color: #fff;
    background: linear-gradient(135deg, #7a0c1e 0%, #99152d 100%);
    border: 1px solid #7a0c1e;
    border-radius: 13px;
    box-shadow: 0 6px 14px rgba(122, 12, 30, .2);
    font-size: 11px;
    font-weight: 900;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.mobile-cart-summary button:hover:not(:disabled) {
    background: linear-gradient(135deg, #650817 0%, #7a0c1e 100%);
    box-shadow: 0 8px 18px rgba(122, 12, 30, .25);
    transform: translateY(-1px);
}
.mobile-cart-summary button:focus-visible {
    outline: 3px solid rgba(212, 175, 55, .55);
    outline-offset: 3px;
}
.mobile-cart-summary button:disabled {
    color: #94a3b8;
    background: #e2e8f0;
    border-color: #e2e8f0;
    box-shadow: none;
    opacity: 1;
    cursor: not-allowed;
}
.mobile-cart-summary__arrow {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 7px;
    background: rgba(255, 255, 255, .16);
    font-size: 15px;
    line-height: 1;
}
@media (min-width: 640px) and (max-width: 1023.98px) {
    .mobile-cart-summary { left: 18px; right: 18px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); max-width: 720px; margin-inline: auto; }
    .pos-layout { padding-bottom: 105px; }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
    .mobile-cart-summary { bottom: 18px; }
    .pos-layout { padding-bottom: 110px; }
}
@media (min-width: 1280px) {
    .mobile-cart-summary { display: none !important; }
    .pos-layout { padding-bottom: 0; }
}
@media (max-width: 639.98px) {
    .pos-layout { padding-bottom: 170px; }
}
@media (max-width: 420px) {
    .mobile-cart-summary { gap: 8px; padding: 10px 11px 10px 13px; min-height: 70px; }
    .mobile-cart-summary button { min-height: 42px; gap: 7px; padding: 0 11px; font-size: 10px; }
    .mobile-cart-summary__details { gap: 3px 8px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .mobile-cart-summary, .mobile-cart-summary button { transition: none; }
}
