/* AgentProcurement — tampilan. Token warna di :root; tema gelap bawaan, terang lewat [data-theme=light]. */
:root {
  --bg: #060e22; --bg2: #0a1936; --panel: rgba(255,255,255,.045); --panel-solid: #0e2048; --line: rgba(255,255,255,.09);
  --text: #e8ebff; --muted: #8f97c4; --faint: #5c6491;
  --brand: #2b86d6; --brand2: #00a8e0; --gold: #d8a868; --grad: linear-gradient(120deg, #1f6fc0 0%, #00a8e0 100%);
  --ok: #34d399; --warn: #fbbf24; --err: #f87171; --info: #60a5fa;
  --shadow: 0 10px 40px rgba(0,0,0,.35); --radius: 16px; --sidebar: 252px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
[data-theme=light] {
  --bg: #f2f6fc; --bg2: #e6eef9; --panel: rgba(255,255,255,.85); --panel-solid: #ffffff; --line: rgba(30,42,90,.10);
  --text: #141a3d; --muted: #5a6290; --faint: #8b92b8; --shadow: 0 8px 30px rgba(30,42,90,.10);
}
* { box-sizing: border-box; }
html { color-scheme: dark; } [data-theme=light] { color-scheme: light; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14.5px; line-height: 1.55; min-height: 100vh;
  background-image: radial-gradient(900px 500px at 85% -10%, rgba(43,134,214,.20), transparent 60%), radial-gradient(700px 480px at -5% 105%, rgba(216,168,104,.10), transparent 60%);
  background-attachment: fixed; }
a { color: var(--brand); text-decoration: none; } a:hover { text-decoration: underline; }
h1,h2,h3 { margin: 0; letter-spacing: -.01em; } h1 { font-size: 1.65rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .mono { font-family: var(--mono); font-size: .88em; }
.right { margin-left: auto; } .nowrap { white-space: nowrap; } .center { text-align: center; }
.stack > * + * { margin-top: 16px; } .row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; } .spread { justify-content: space-between; }
.grid { display: grid; gap: 16px; } .g2 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); } .g-main { grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); }

/* kerangka */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 20px 14px; border-right: 1px solid var(--line); background: rgba(6,14,34,.62);
  backdrop-filter: blur(18px); display: flex; flex-direction: column; gap: 6px; }
[data-theme=light] .sidebar { background: rgba(255,255,255,.7); }
.brand { display: flex; align-items: center; gap: 11px; padding: 6px 10px 18px; }
.logo { width: 38px; height: 38px; border-radius: 12px; overflow: hidden; background: var(--grad); display: grid; place-items: center; box-shadow: 0 6px 24px rgba(43,134,214,.45); flex: none; }
.logo svg { width: 22px; height: 22px; color: #fff; }
.brand b { display: block; font-size: 1.02rem; letter-spacing: -.01em; } .brand small { color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.nav-title { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 14px 12px 4px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 11px; color: var(--muted); font-weight: 500; position: relative; }
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.nav a:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.nav a.on { background: linear-gradient(90deg, rgba(43,134,214,.22), rgba(34,211,197,.08)); color: var(--text); box-shadow: inset 0 0 0 1px rgba(43,134,214,.28); }
.nav a .dot { margin-left: auto; background: var(--err); color: #fff; border-radius: 99px; font-size: .68rem; padding: 1px 7px; font-weight: 700; }
.side-foot { margin-top: auto; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .82rem; flex: none; }
.main { padding: 26px 34px 60px; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.topbar .sub { color: var(--muted); margin-top: 2px; }
.iconbtn { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel); color: var(--text); display: grid; place-items: center; cursor: pointer; }
.iconbtn:hover { border-color: var(--brand); } .iconbtn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }

/* kartu */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.card.tight { padding: 0; overflow: hidden; } .card h2 + .muted { margin-top: 2px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; } .card-head h2 { flex: 1; }
.kpi { position: relative; overflow: hidden; } .kpi::after { content: ""; position: absolute; inset: auto -20% -60% auto; width: 140px; height: 140px; border-radius: 50%; background: linear-gradient(120deg, var(--brand), var(--gold)); opacity: .14; filter: blur(8px); }
.kpi .lab { color: var(--muted); font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.kpi .lab svg { width: 16px; height: 16px; } .kpi .val { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; margin-top: 6px; }
.kpi .val.sm { font-size: 1.35rem; padding-top: 10px; } .kpi.bad .val { color: var(--err); }
.hero { background: linear-gradient(135deg, rgba(43,134,214,.2), rgba(34,211,197,.1)), var(--panel); border-color: rgba(43,134,214,.3); }
.callout { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); align-items: flex-start; }
.callout svg { width: 18px; height: 18px; flex: none; margin-top: 2px; } .callout.warn { border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.08); } .callout.warn svg { color: var(--warn); }
.callout.err { border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.08); } .callout.err svg { color: var(--err); }
.callout.info { border-color: rgba(96,165,250,.4); background: rgba(96,165,250,.08); } .callout.info svg { color: var(--info); }
.callout.ok { border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.08); } .callout.ok svg { color: var(--ok); }
.callout ul { margin: 4px 0 0; padding-left: 18px; }

/* tombol & form */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 11px; border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font: inherit; font-weight: 600; cursor: pointer; transition: transform .12s, box-shadow .2s, border-color .2s; text-decoration: none !important; }
.btn:hover { border-color: var(--brand); transform: translateY(-1px); } .btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--grad); color: #fff; border: 0; box-shadow: 0 8px 26px rgba(43,134,214,.35); } .btn.primary:hover { box-shadow: 0 10px 32px rgba(43,134,214,.5); }
.btn.danger { color: var(--err); border-color: rgba(248,113,113,.4); } .btn.sm { padding: 5px 11px; font-size: .84rem; border-radius: 9px; } .btn[disabled] { opacity: .5; pointer-events: none; }
label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 5px; font-weight: 600; letter-spacing: .02em; }
input, select, textarea { width: 100%; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); font: inherit; outline: none; }
[data-theme=light] input, [data-theme=light] select, [data-theme=light] textarea { background: #fff; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(43,134,214,.2); }
select option { background: var(--panel-solid); color: var(--text); } textarea { min-height: 84px; resize: vertical; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--brand); padding: 0; }
.check { display: flex; align-items: center; gap: 10px; } .check label { margin: 0; color: var(--text); font-weight: 500; }
.field-group { margin-top: 18px; } .field-group > h3 { color: var(--muted); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; } .form-grid .full { grid-column: 1/-1; }
.inline { display: inline; } form.inline-form { display: inline-flex; gap: 8px; align-items: center; }
.drop { border: 1.5px dashed rgba(43,134,214,.5); border-radius: 14px; padding: 24px; text-align: center; background: rgba(43,134,214,.06); transition: .2s; }
.drop.over { background: rgba(43,134,214,.16); border-color: var(--brand2); } .drop svg { width: 30px; height: 30px; color: var(--brand); }

/* tabel */
table { width: 100%; border-collapse: collapse; } th { text-align: left; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; } tr:last-child td { border-bottom: 0; } tbody tr:hover { background: rgba(43,134,214,.06); }
.table-wrap { overflow-x: auto; } td .sub { color: var(--muted); font-size: .82rem; }

/* lencana */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; border: 1px solid transparent; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-draft { color: var(--info); background: rgba(96,165,250,.12); border-color: rgba(96,165,250,.3); } .b-wait { color: var(--warn); background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.3); }
.b-final { color: var(--ok); background: rgba(52,211,153,.12); border-color: rgba(52,211,153,.3); } .b-old { color: var(--faint); background: rgba(255,255,255,.05); border-color: var(--line); }
.b-bad { color: var(--err); background: rgba(248,113,113,.12); border-color: rgba(248,113,113,.3); } .b-na { color: var(--faint); background: transparent; border-color: var(--line); }
.progress { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; } .progress i { display: block; height: 100%; border-radius: 99px; background: var(--grad); transition: width 1s cubic-bezier(.2,.8,.2,1); }

/* tab & jadwal */
.tabs { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); overflow-x: auto; margin-bottom: 18px; }
.tabs a { padding: 8px 16px; border-radius: 10px; color: var(--muted); font-weight: 600; white-space: nowrap; } .tabs a:hover { text-decoration: none; color: var(--text); }
.tabs a.on { background: var(--grad); color: #fff; }
.timeline { position: relative; margin: 0; padding: 0; list-style: none; } .timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 8px 0 8px 46px; }
.tl-dot { position: absolute; left: 6px; top: 14px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--faint); background: var(--bg); display: grid; place-items: center; font-size: .66rem; font-weight: 800; color: var(--muted); }
.tl-done .tl-dot { background: var(--ok); border-color: var(--ok); color: #04130d; } .tl-now .tl-dot { border-color: var(--brand2); color: var(--brand2); box-shadow: 0 0 0 0 rgba(34,211,197,.5); animation: pulse 2s infinite; }
.tl-late .tl-dot { border-color: var(--err); color: var(--err); } .tl-na { opacity: .45; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(34,211,197,0); } 100% { box-shadow: 0 0 0 0 rgba(34,211,197,0); } }
.tl-box { padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.tl-now .tl-box { border-color: rgba(34,211,197,.45); } .tl-late .tl-box { border-color: rgba(248,113,113,.5); }
details > summary { cursor: pointer; color: var(--brand); font-weight: 600; list-style: none; } details > summary::-webkit-details-marker { display: none; }
details[open] > summary { margin-bottom: 10px; }

.flash-wrap { position: fixed; top: 18px; right: 18px; z-index: 50; display: grid; gap: 10px; max-width: 420px; }
.flash { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-solid); box-shadow: var(--shadow); animation: slide .4s ease; }
.flash.ok { border-left: 4px solid var(--ok); } .flash.err { border-left: 4px solid var(--err); } @keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.chart-box { position: relative; height: 240px; }
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; counter-reset: s; } .step { position: relative; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -10px; left: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: .75rem; display: grid; place-items: center; }
.kbd { font-family: var(--mono); font-size: .8rem; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel); }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); } .empty svg { width: 38px; height: 38px; opacity: .6; margin-bottom: 8px; }
.license { font-size: .72rem; color: var(--faint); padding: 0 12px; }

/* login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.15fr 1fr; }
.login-art { position: relative; overflow: hidden; padding: 56px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(800px 600px at 20% 10%, rgba(43,134,214,.5), transparent 60%), radial-gradient(700px 500px at 90% 90%, rgba(216,168,104,.28), transparent 60%), #06122b; color: #e8ebff; }
.login-art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 75%); }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: float 14s ease-in-out infinite; }
.orb.a { width: 340px; height: 340px; background: #2b86d6; top: -80px; right: -60px; } .orb.b { width: 280px; height: 280px; background: #d8a868; bottom: -60px; left: 20%; animation-delay: -6s; }
@keyframes float { 50% { transform: translate(40px, 30px) scale(1.1); } }
.login-art > :not(.orb) { position: relative; } .login-art h1 { font-size: 2.7rem; line-height: 1.1; letter-spacing: -.035em; max-width: 520px; }
.login-art h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.feat { display: grid; gap: 12px; max-width: 480px; margin-top: 28px; } .feat div { display: flex; gap: 12px; align-items: flex-start; color: #b9c0ee; } .feat svg { width: 20px; height: 20px; color: var(--brand2); flex: none; margin-top: 2px; }
.login-form { display: grid; place-items: center; padding: 40px; } .login-form .box { width: 100%; max-width: 380px; }
.login-form h2 { font-size: 1.5rem; margin-bottom: 4px; }

@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2,1fr); } .g-main, .g3 { grid-template-columns: 1fr; } .steps { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; } .sidebar { position: fixed; z-index: 40; width: 270px; transform: translateX(-100%); transition: .25s; background: var(--panel-solid); } .sidebar.open { transform: none; }
  .menu-btn { display: grid; } .main { padding: 18px 16px 50px; } .g2, .form-grid { grid-template-columns: 1fr; } .login { grid-template-columns: 1fr; } .login-art { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print { .sidebar, .topbar .iconbtn, .btn { display: none !important; } body { background: #fff; color: #000; } }

.logo-img { background: #fff; padding: 4px; box-shadow: 0 6px 22px rgba(0,168,224,.35); } .logo-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.grid > *, .shell > *, .row > * { min-width: 0; }
.kpi .val.sm { overflow-wrap: anywhere; }
td.nowrap-col { white-space: nowrap; }
@media (max-width: 860px) { .kpi .val.sm { font-size: 1.05rem; } .topbar h1 { font-size: 1.25rem; } .card { padding: 16px; } }
