/* IMS Order: gaya bersama untuk layar staf (dan nanti layar pelanggan). */
:root { --brand: #f97316; --brand-d: #ea580c; --brand-l: #fff3e8; --ink: #1f2937; --muted: #6b7280; --line: #e9ecf1; --bg: #f5f6f8; --ok: #16a34a; --ok-l: #e9f8ef; --info: #2563eb; --info-l: #eaf1ff; --red: #e11d48; --red-l: #fff0f3; --shadow: 0 6px 20px -10px rgba(17, 24, 39, .18); }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand-d); }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.center { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.card { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 22px; }
.login { width: 100%; max-width: 380px; }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.brand .lg { width: 42px; height: 42px; border-radius: 13px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .82rem; }
.brand b { display: block; font-size: 1.1rem; }
.brand small { color: var(--muted); font-size: .8rem; }
h1 { font-size: 1.3rem; margin: 0 0 4px; }
h2 { font-size: 1.05rem; margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
label.f { display: block; font-weight: 700; font-size: .8rem; margin: 14px 0 6px; }
input[type=text], input[type=password], input[type=number], select, textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 12px; font-size: 16px; background: #fff; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-l); }
.btn { border: 0; border-radius: 12px; padding: 11px 16px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-p { background: var(--brand); color: #fff; } .btn-p:hover { background: var(--brand-d); }
.btn-g { background: #fff; border: 1.5px solid var(--line); color: var(--ink); }
.btn-d { background: var(--ink); color: #fff; }
.sm { padding: 7px 11px; font-size: .8rem; border-radius: 10px; }
.w100 { width: 100%; }
.err { background: var(--red-l); color: var(--red); border-radius: 12px; padding: 10px 12px; font-weight: 600; font-size: .84rem; margin-top: 12px; display: none; }
.err.on { display: block; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #111827; color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: .86rem; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 50; max-width: calc(100% - 32px); text-align: center; }
.toast.on { opacity: 1; }
/* Kerangka setelah masuk */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-in { max-width: 1100px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top .brand { margin: 0; }
.who { display: flex; align-items: center; gap: 10px; font-size: .84rem; }
.who b { display: block; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: var(--brand-l); color: var(--brand-d); }
.chip.ok { background: var(--ok-l); color: var(--ok); } .chip.off { background: #f1f2f4; color: #6b7280; } .chip.warn { background: var(--red-l); color: var(--red); }
.tabs { max-width: 1100px; margin: 0 auto; padding: 0 16px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: none; padding: 12px 12px 10px; font-weight: 700; font-size: .86rem; color: var(--muted); border-bottom: 2.5px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button.on { color: var(--brand-d); border-bottom-color: var(--brand); }
.tabs button .soon { font-size: .62rem; background: #f1f2f4; color: var(--muted); padding: 1px 6px; border-radius: 999px; margin-left: 4px; }
main { max-width: 1100px; margin: 0 auto; padding: 18px 16px 60px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: 0; }
.row .ava { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-l); color: var(--brand-d); display: grid; place-items: center; font-weight: 800; flex: none; }
.row .tx { flex: 1; min-width: 0; }
.row .tx b { display: block; }
.row .tx small { color: var(--muted); font-size: .76rem; }
.row .acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; font-size: .84rem; }
.seg label:has(input:checked) { border-color: var(--brand); background: var(--brand-l); }
.seg input { accent-color: var(--brand); margin-right: 6px; }
.seg small { display: block; color: var(--muted); font-size: .74rem; margin-top: 2px; }
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pwbox { background: var(--ok-l); border: 1.5px dashed var(--ok); border-radius: 14px; padding: 14px; margin-top: 12px; }
.pwbox code { display: block; font-size: 1.4rem; font-weight: 800; letter-spacing: .08em; margin: 6px 0; color: var(--ink); }
.modal { position: fixed; inset: 0; background: rgba(17, 24, 39, .5); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 40; }
.modal.on { display: flex; }
.modal .card { width: 100%; max-width: 440px; max-height: 92vh; overflow-y: auto; }
.placeholder { text-align: center; padding: 40px 20px; color: var(--muted); }
.placeholder b { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }
@media (max-width: 760px) {
  .grid2, .cols3 { grid-template-columns: 1fr; }
  .who .nm { display: none; }
  .row { flex-wrap: wrap; }
  .row .tx { flex: 1 1 calc(100% - 48px); }
  .row .acts { width: 100%; padding-left: 48px; }
}
