/* ============================================================
   Londry Starter Kit — EXTRAS
   Tombol & badge varian + modul tambahan (KPI, progress, ring,
   avatar stack, segmented, skeleton, kanban, rating, dll).
   Muat SETELAH dashboard.css.
   ============================================================ */

/* ---------- Buttons ---------- */
.btn--gradient {
    background: linear-gradient(135deg, #0284c7, #0ea5e9 55%, #14b8a6);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 16px 30px -16px rgba(2, 132, 199, .95);
}
.btn--gradient:hover { filter: brightness(1.06); }

.btn--success { background: #10b981; color: #fff; }
.btn--success:hover { background: #059669; }
.btn--warning { background: #f59e0b; color: #fff; }
.btn--warning:hover { background: #d97706; }
.btn--dark { background: #0f2a43; color: #fff; }
.btn--dark:hover { background: #0b2036; }
.btn--soft { background: #eef2f7; color: #0f2a43; border-color: transparent; }
.btn--soft:hover { background: #e2e8f0; }
.btn--outline { background: transparent; color: var(--primary-dark); border-color: var(--primary); }
.btn--outline:hover { background: #e0f2fe; }

.btn--sm { padding: 7px 14px; font-size: 13px; border-radius: 9px; }
.btn--lg { padding: 14px 26px; font-size: 15px; border-radius: 12px; }
.btn--icon { width: 42px; height: 42px; padding: 0; border-radius: 12px; }
.btn--round { border-radius: 999px; }

.btn--shine { position: relative; overflow: hidden; }
.btn--shine::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
    transform: skewX(-20deg);
    animation: btnShine 3.2s infinite;
}
@keyframes btnShine { 0% { left: -60%; } 60% { left: 130%; } 100% { left: 130%; } }

/* ---------- Badges ---------- */
.badge--gradient { background: linear-gradient(135deg, #0284c7, #14b8a6); color: #fff; }
.badge--outline { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.badge--soft-primary { background: #e0f2fe; color: #0369a1; }
.badge--soft-success { background: #d1fae5; color: #047857; }
.badge--soft-warning { background: #fef3c7; color: #b45309; }
.badge--soft-danger { background: #fee2e2; color: #b91c1c; }
.badge--lg { padding: 7px 14px; font-size: 13px; }

.badge--dot { display: inline-flex; align-items: center; gap: 7px; }
.badge--dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--pulse::before { animation: badgePulse 1.6s infinite; }
@keyframes badgePulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .55); }
    100% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
}

/* ---------- KPI (kartu gradasi) ---------- */
.kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.kpi__card {
    position: relative;
    overflow: hidden;
    padding: 20px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #0284c7, #0ea5e9 55%, #14b8a6);
    box-shadow: 0 24px 44px -26px rgba(2, 132, 199, .95);
}
.kpi__card--dark { background: linear-gradient(135deg, #0f2a43, #075985); }
.kpi__card--purple { background: linear-gradient(135deg, #6d28d9, #8b5cf6); }
.kpi__card--orange { background: linear-gradient(135deg, #c2410c, #f59e0b); }
.kpi__card::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
}
.kpi__label { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; opacity: .9; font-weight: 600; }
.kpi__value { font-size: 26px; font-weight: 800; margin-top: 6px; letter-spacing: -.02em; }
.kpi__icon { position: absolute; right: 18px; bottom: 14px; font-size: 30px; opacity: .35; }

/* ---------- Progress ---------- */
.progress { height: 10px; background: #eef2f7; border-radius: 999px; overflow: hidden; }
.progress__bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #0ea5e9, #14b8a6); }
.progress--sm { height: 7px; }

/* ---------- Ring (progress lingkaran) ---------- */
.ring {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: conic-gradient(var(--primary) calc(var(--val, 70) * 1%), #eef2f7 0);
}
.ring::before { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: #fff; }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 18px; }

/* ---------- Avatar stack ---------- */
.avatars { display: flex; align-items: center; }
.avatars .avatar { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; margin-left: -10px; font-size: 12px; }
.avatars .avatar:first-child { margin-left: 0; }
.avatars .avatars__more { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; margin-left: -10px; display: grid; place-items: center; background: #e2e8f0; color: #475569; font-size: 11px; font-weight: 700; }

/* ---------- Segmented control ---------- */
.segmented { display: inline-flex; padding: 4px; gap: 4px; background: #eef2f7; border-radius: 12px; }
.segmented button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.segmented button.is-active { background: #fff; color: var(--ink); box-shadow: 0 4px 12px -6px rgba(2, 6, 23, .4); }

/* ---------- Switch ---------- */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #cbd5e1; border-radius: 999px; transition: .2s; }
.switch span::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + span { background: linear-gradient(135deg, #0ea5e9, #14b8a6); }
.switch input:checked + span::before { transform: translateX(20px); }

/* ---------- Rating ---------- */
.stars { color: #f59e0b; letter-spacing: 2px; font-size: 15px; }

/* ---------- Skeleton ---------- */
.skeleton {
    background: linear-gradient(90deg, #eef2f7 25%, #e2e8f0 37%, #eef2f7 63%);
    background-size: 400% 100%;
    animation: skeleton 1.4s ease infinite;
    border-radius: 8px;
    height: 14px;
}
@keyframes skeleton { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- Kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: 16px; }
.kanban__col { background: #f1f5f9; border-radius: 16px; padding: 12px; }
.kanban__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-weight: 700; font-size: 14px; }
.kanban__count { background: #fff; border-radius: 999px; padding: 1px 10px; font-size: 12px; color: var(--muted); }
.kanban__card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; box-shadow: 0 8px 18px -16px rgba(2, 6, 23, .5); }
.kanban__card strong { display: block; font-size: 14px; }
.kanban__card small { color: var(--muted); font-size: 12px; }
@media (max-width: 900px) { .kanban { grid-template-columns: 1fr; } }

/* ---------- Kalender ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal__dow { text-align: center; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); padding: 6px 0; }
.cal__day { min-height: 78px; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: #fff; font-size: 12px; }
.cal__day--muted { background: #f8fafc; color: #cbd5e1; }
.cal__day--today { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(14, 165, 233, .12); }
.cal__date { font-weight: 700; font-size: 12px; }
.cal__evt { display: block; margin-top: 6px; padding: 3px 7px; border-radius: 7px; font-size: 10.5px; font-weight: 600; background: #e0f2fe; color: #0369a1; }
.cal__evt--green { background: #d1fae5; color: #047857; }
.cal__evt--orange { background: #ffedd5; color: #c2410c; }

/* ---------- Chat ---------- */
.chat { display: grid; grid-template-columns: 300px 1fr; height: 560px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.chat__list { border-right: 1px solid var(--line); overflow-y: auto; }
.chat__item { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #f1f5f9; cursor: pointer; }
.chat__item:hover, .chat__item.is-active { background: #f8fafc; }
.chat__item .avatar { width: 38px; height: 38px; border-radius: 50%; }
.chat__item strong { display: block; font-size: 14px; }
.chat__item small { color: var(--muted); font-size: 12px; }
.chat__thread { display: flex; flex-direction: column; }
.chat__head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat__body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #f8fafc; }
.chat__bubble { max-width: 70%; padding: 10px 14px; border-radius: 14px; font-size: 14px; }
.chat__bubble--in { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat__bubble--out { background: linear-gradient(135deg, #0ea5e9, #14b8a6); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat__foot { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); }
@media (max-width: 800px) { .chat { grid-template-columns: 1fr; height: auto; } .chat__list { max-height: 220px; } }

/* ---------- Voucher ---------- */
.voucher { display: flex; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.voucher__left { width: 130px; flex: 0 0 auto; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #0284c7, #14b8a6); font-weight: 800; font-size: 20px; padding: 18px; text-align: center; }
.voucher__right { flex: 1; padding: 16px 18px; }
.voucher__right h4 { font-size: 15px; font-weight: 800; }
.voucher__right p { color: var(--muted); font-size: 13px; margin: 4px 0 10px; }
.voucher__code { display: inline-block; padding: 6px 12px; border: 1px dashed var(--primary); border-radius: 9px; font-family: ui-monospace, monospace; font-weight: 700; color: var(--primary-dark); font-size: 13px; }

/* ---------- Bottom nav mobile: bisa digeser bila menu banyak ---------- */
@media (max-width: 900px) {
    .sidebar__nav {
        justify-content: flex-start;
        gap: 2px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .sidebar__nav::-webkit-scrollbar { display: none; }
    .sidebar__nav a {
        flex: 0 0 auto;
        min-width: 58px;
        padding-left: 6px;
        padding-right: 6px;
    }
}

/* ---------- Aksi tabel (ikon) ---------- */
.row-actions { display: inline-flex; gap: 6px; }
.row-actions .act {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: #64748b;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.row-actions .act:hover { transform: translateY(-1px); }
.row-actions .act--primary:hover { background: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.row-actions .act--success:hover { background: #d1fae5; color: #047857; border-color: #a7f3d0; }
.row-actions .act--warning:hover { background: #fef3c7; color: #b45309; border-color: #fde68a; }
.row-actions .act--danger:hover  { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }

/* ---------- Pagination ---------- */
.pagination { display: inline-flex; gap: 6px; padding: 0; margin: 0; list-style: none; }
.page-item { list-style: none; }
.page-link {
    min-width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-size: 13.5px; font-weight: 600;
    cursor: pointer; text-decoration: none;
    transition: background .15s ease;
}
.page-link:hover { background: #f1f5f9; }
.page-item.active .page-link { background: linear-gradient(135deg, #0ea5e9, #14b8a6); color: #fff; border-color: transparent; }
.page-item.disabled .page-link { opacity: .45; cursor: not-allowed; }

/* ---------- Select: seragam & cantik (chevron custom) ---------- */
select,
.form select {
    width: 100%;
    padding: 11px 40px 11px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    color: var(--ink);
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 15px 15px;
    cursor: pointer;
}
.select-sm { padding-right: 32px; background-size: 12px 12px; background-position: right 10px center; }
select:hover,
.form select:hover { border-color: #cbd5e1; }
select:focus,
.form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .15);
}
select::-ms-expand { display: none; }

/* ---------- Bar chart ---------- */
.chart { display: flex; align-items: flex-end; gap: 10px; height: 190px; padding: 8px 2px 0; }
.chart__col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; height: 100%; }
.chart__bar { width: 100%; max-width: 34px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--primary), var(--accent)); min-height: 6px; }
.chart__bar--muted { background: #e2e8f0; }
.chart__label { font-size: 11px; color: var(--muted); }

/* ---------- Varian alert tambahan ---------- */
.alert--warning { background: #fef3c7; color: #b45309; }
.alert--info { background: #e0f2fe; color: #0369a1; }

/* ============================================================
   POS / Kasir
   ============================================================ */
.pos { display: grid; grid-template-columns: 1fr 384px; gap: 16px; align-items: start; }

.pos__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.pos__title { display: flex; align-items: center; gap: 12px; }
.pos__title .ic { width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(135deg, #075985, #0ea5e9); color: #fff; display: grid; place-items: center; font-size: 21px; box-shadow: 0 12px 26px -14px rgba(2, 132, 199, .9); }
.pos__title h2 { font-size: 18px; }
.pos__title small { color: var(--muted); font-size: 12.5px; }
.pos__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.pos-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.pos-toolbar .search { flex: 1; min-width: 200px; }

.pos-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pos-service { display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; font: inherit; transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease; }
.pos-service:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--primary); }
.pos-service:active { transform: translateY(0); }
.pos-service__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; }
.pos-service strong { font-size: 14px; }
.pos-service small { color: var(--muted); font-size: 12px; }
.pos-service__price { margin-top: auto; font-weight: 800; color: var(--primary-dark); font-size: 14px; }

/* Keranjang POS */
.pos__cart { position: sticky; top: 84px; display: flex; flex-direction: column; }
.pos-cart__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.pos-cart__head h2 { font-size: 15px; }
.pos-customer { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 18px; background: var(--bg); border: 0; border-bottom: 1px solid var(--line-2); cursor: pointer; text-align: left; font: inherit; }
.pos-customer:hover { background: #e7eff6; }
.pos-customer strong { font-size: 13.5px; display: block; }
.pos-customer small { color: var(--muted); font-size: 12px; }
.pos-customer .bi-chevron-right { color: var(--muted); }

.pos-customer-list { margin: 0 -26px; max-height: 320px; overflow-y: auto; border-top: 1px solid var(--line-2); }
.pos-customer-list .pos-customer:last-child { border-bottom: 0; }

.pos-cart__items { max-height: 246px; overflow-y: auto; padding: 6px 18px; }
.pos-item { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.pos-item:last-child { border-bottom: 0; }
.pos-item__name { font-weight: 600; font-size: 13.5px; }
.pos-item__meta { font-size: 12px; color: var(--muted); }
.pos-item__price { text-align: right; font-weight: 700; font-size: 13.5px; }
.pos-item__row { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.qty button { width: 30px; height: 30px; border: 0; background: #fff; color: var(--muted); font-size: 16px; line-height: 1; cursor: pointer; }
.qty button:hover { background: var(--bg); color: var(--ink); }
.qty input { width: 46px; height: 30px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font: inherit; font-weight: 700; }

.pos-remove { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; font-size: 15px; }
.pos-remove:hover { color: var(--danger); }

.pos-empty { text-align: center; padding: 32px 10px; color: var(--muted); }
.pos-empty i { font-size: 34px; color: #cbd5e1; display: block; margin-bottom: 8px; }

.pos-cart__foot { padding: 16px 18px; border-top: 1px solid var(--line-2); display: grid; gap: 14px; }

.pos-total { border-radius: 14px; padding: 16px 18px; color: #fff; background: linear-gradient(135deg, #075985 0%, #0284c7 55%, #0ea5e9 100%); }
.pos-total__row { display: flex; justify-content: space-between; font-size: 13px; opacity: .9; padding: 3px 0; }
.pos-total__grand { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 12px; border-top: 1px dashed rgba(255, 255, 255, .35); }
.pos-total__grand strong { font-size: 26px; font-weight: 800; }

.pos-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

.pos-pay { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pos-pay button { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 11px 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; color: var(--muted); }
.pos-pay button i { font-size: 19px; }
.pos-pay button:hover { border-color: var(--primary); }
.pos-pay button.is-active { border-color: var(--primary); background: rgba(14, 165, 233, .1); color: var(--primary-dark); }

.pos-field { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: #fff; }
.pos-field span { color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; }
.pos-field input { flex: 1; border: 0; outline: none; font: inherit; font-weight: 700; text-align: right; padding: 12px 0; background: none; min-width: 0; }

.pos-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.pos-quick button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.pos-quick button:hover { border-color: var(--primary); color: var(--primary-dark); }

@media (max-width: 1000px) {
    .pos { grid-template-columns: 1fr; }
    .pos__cart { position: static; }
    .pos-cart__items { max-height: none; }
}

/* POS: pilih pelanggan */
.pos-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.pos-tabs button { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 9px; font: inherit; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; }
.pos-tabs button.is-active { border-color: var(--primary); background: rgba(14, 165, 233, .1); color: var(--primary-dark); }
.pos-cust-list { max-height: 320px; overflow-y: auto; display: grid; gap: 6px; }
.pos-cust { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; border: 1px solid transparent; background: #fff; border-radius: 12px; cursor: pointer; text-align: left; font: inherit; }
.pos-cust:hover { background: var(--bg); }
.pos-cust.is-active { background: rgba(14, 165, 233, .1); border-color: var(--primary); }
.pos-cust strong { font-size: 13.5px; display: block; }
.pos-cust small { color: var(--muted); font-size: 12px; }
.pos-cust__side { margin-left: auto; font-size: 11.5px; color: var(--muted); white-space: nowrap; }

/* ============================================================
   Pembayaran pesanan (desain ala POS) — modal :target + kalkulator
   ------------------------------------------------------------
   MODAL PAKAI CSS :target (tanpa JS):
   - Tombol buka  : <a href="#pay-{id}">     -> URL jadi ".../#pay-{id}"
   - Elemen modal : <div class="modal pay-modal" id="pay-{id}">
   - CSS :target otomatis mencocokkan elemen yang id-nya == fragment URL.
   - Reload tetap tampil karena fragment ikut tersimpan di URL
     (beda dgn modal berbasis JS/state yang ter-reset saat reload).
   Syarat: dibuka lewat anchor "#id" (bukan wire:navigate) dan elemen
   modal harus SELALU ada di DOM (id stabil, jangan di dalam @if).
   Catatan urutan: extras.css dimuat SETELAH dashboard.css, sehingga
   .pay-modal (display:none) menang atas .modal (display:grid).
   ============================================================ */

/* Default: modal tersembunyi. Tampil hanya saat elemen ini jadi target URL. */
.pay-modal { display: none; }
.pay-modal:target { display: grid; }

/* Metode bayar: <input type=radio> disembunyikan, <label> yang tampil
   sebagai tombol. Label yang terpilih menyala lewat :checked + label. */
.pos-pay input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.pos-pay label { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 11px 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--muted); }
.pos-pay label i { font-size: 19px; }
.pos-pay input:checked + label { border-color: var(--primary); background: rgba(14, 165, 233, .1); color: var(--primary-dark); }

/* Kalkulator pembayaran: baris "Uang diterima" + blok "Kembalian" */
.pay-calc { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.pay-calc__row { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); } /* baris input */
.pay-calc__label { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }                       /* teks "Uang diterima" */
.pay-calc__prefix { font-size: 13px; font-weight: 700; color: var(--muted); }                                             /* prefix "Rp" */
.pay-calc__input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: inherit; font-size: 16px; font-weight: 700; text-align: right; padding: 15px 0; color: var(--ink); } /* input nominal */
.pay-calc__change { display: flex; align-items: center; gap: 14px; padding: 15px 16px; background: linear-gradient(135deg, rgba(20, 184, 166, .14), rgba(14, 165, 233, .12)); } /* blok kembalian */
.pay-calc__change .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: linear-gradient(135deg, #0d9488, #14b8a6); color: #fff; font-size: 19px; box-shadow: 0 10px 22px -12px rgba(13, 148, 136, .9); flex: none; } /* kotak ikon */
.pay-calc__change .label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); } /* label "KEMBALIAN" */
.pay-calc__change strong { display: block; font-size: 24px; font-weight: 800; line-height: 1.1; color: #0f766e; }          /* nominal kembalian */
.pay-calc__change strong.is-negative { color: #dc2626; }                                                                    /* uang kurang */
