/* Tambahan di atas clay.css (salinan gaya Loce Pay) khusus LOMAES Assistant. */
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.warn { color: var(--rose-d); font-weight: 900; }
.neg { color: var(--rose-d); }
.dim td { opacity: .55; }
.clip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { display: inline-block; font-size: 11px; font-weight: 900; padding: 1px 7px; border-radius: 999px; background: var(--surface2); color: var(--muted); }
.tag-lg { font-size: 13px; padding: 5px 11px; margin: 0 6px 6px 0; }
.tag-warn { color: var(--amber-d); }
.warn-amber { color: var(--amber-d); font-weight: 800; }
.tag-wrap { display: flex; flex-wrap: wrap; }
.bar-sm { height: 6px; margin-top: 4px; }
.quick-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
h1 .pill { vertical-align: middle; font-size: 12px; }

/* daftar peringatan */
.alert-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.alert-list a { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; font-size: 14px; }
.alert-list a:hover { background: var(--surface2); }
.alert-list .pill { padding: 4px 6px; }
.alert-list .pill::before { margin: 0; }

/* grafik batang 14 hari */
.chart { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; height: 200px; align-items: end; }
.chart-col { display: flex; flex-direction: column; height: 100%; gap: 6px; }
.chart-bars { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.chart-bars span { width: 42%; max-width: 14px; border-radius: 6px 6px 3px 3px; min-height: 2px; }
.b-a { background: linear-gradient(180deg, #9b7bff, #7355e8); }
.b-b { background: linear-gradient(180deg, #f6c77a, #d9962f); }
.chart-x { text-align: center; font-size: 11px; color: var(--muted); }
.legend { font-size: 12px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.sw-a { background: #7355e8; } .sw-b { background: #d9962f; margin-left: 8px; }

/* kartu pilihan (sumber AI) */
.choice-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: 18px; border: 2px solid var(--line); background: var(--surface2); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.choice:has(input:checked) { border-color: var(--primary); background: var(--surface); box-shadow: var(--clay); }
.choice input { margin-top: 4px; accent-color: var(--primary); }
.choice-body { display: flex; flex-direction: column; gap: 4px; }
.choice-body b { display: inline-flex; gap: 6px; align-items: center; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 14px; }
.check-grid label, .check { font-weight: 800; }
.check input, .check-grid input { accent-color: var(--primary); width: 16px; height: 16px; }
[data-show-mode][hidden], [data-jenis][hidden], [data-jenis-m][hidden] { display: none; }

/* saklar on/off */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--ink) !important; font-size: 14px !important; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { width: 44px; height: 26px; border-radius: 999px; background: var(--surface2); box-shadow: var(--clay-in); position: relative; flex: none; transition: background .15s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: 0 2px 5px rgba(var(--sh), .35); transition: transform .15s; }
.switch input:checked + .switch-ui { background: linear-gradient(180deg, #9b7bff, #7355e8); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-ui { outline: 3px solid rgba(115, 85, 232, .35); }

.sticky-save { position: sticky; bottom: 12px; z-index: 5; }
.secret-inline { background: var(--surface2); box-shadow: var(--clay-in); padding: 6px 10px; border-radius: 10px; display: inline-block; }
.calc-card { position: sticky; top: 18px; }
.calc-card dd b { font-size: 16px; }

/* tampilan sisi klien */
.mock-browser { max-width: 760px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--clay-lift); background: var(--surface); }
.mock-bar { display: flex; gap: 6px; align-items: center; padding: 10px 14px; background: var(--surface2); border-bottom: 1px solid var(--line); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mock-bar code { margin-left: 10px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-body { padding: 22px; }

details.card > summary { list-style: none; }
details.card[open] > summary { margin-bottom: 16px; }

@media (max-width: 640px) {
  .choice-cards { grid-template-columns: 1fr; }
  .chart { gap: 3px; height: 160px; }
  .calc-card { position: static; }
}
.col-model { min-width: 210px; }
.note { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; font-size: 11px; font-weight: 900; background: var(--pill-pending); color: var(--pill-pending-ink); cursor: help; }
.nav .count-soft { background: var(--pill-pending); color: var(--pill-pending-ink); }
.paket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.paket { margin: 0; }
.paket button { width: 100%; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; padding: 14px 16px; border-radius: 18px; text-align: left; height: auto; white-space: normal; }
.paket .k { font-size: 22px; font-weight: 900; line-height: 1.1; }
.paket .h { font-size: 13px; color: var(--muted); }
.paket button:hover { border-color: var(--primary); }
.lp-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: #eef2f7; }
.lp-card { width: 100%; max-width: 440px; background: #fff; color: #1d2433; border-radius: 20px; box-shadow: 0 20px 40px rgba(20, 30, 60, .12); overflow: hidden; }
.lp-head { padding: 16px 20px; background: linear-gradient(180deg, #4f7df7, #3a63e0); color: #fff; display: flex; justify-content: space-between; align-items: center; }
.lp-body { padding: 20px; }
.lp-amount { font-size: 30px; font-weight: 900; margin: 6px 0 2px; }
.lp-method { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid #dfe5ef; border-radius: 14px; margin-top: 10px; font-weight: 800; }
.lp-method input { accent-color: #3a63e0; }
.lp-note { font-size: 12px; color: #6b7487; margin-top: 14px; }
.lp-tiruan { font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.22); padding: 3px 8px; border-radius: 999px; }
.tbl tr.grp td { background: var(--surface2); font-size: 14px; padding: 9px 12px; position: sticky; top: 0; }
.tbl tr.dim td:last-child { opacity: 1; }
