/* Gaya dasar untuk halaman Login, Beranda, dan Raja Ongkir (senada dengan halaman Lalamove) */
:root {
  --bg:#f4f4f5; --shell:#e9e9eb; --panel:#fff; --text:#1f2329; --muted:#80868f; --line:#e7e8ea;
  --accent:#1e3a8a; --accent-soft:#eaf0fb; --err:#d64545; --ok:#1f9d55; --radius:14px;
}
* { box-sizing:border-box; }
html, body { margin:0; min-height:100%; font-family:"Inter", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color:var(--text); background:var(--shell); }
button, input, select { font-family:inherit; }
[hidden] { display:none !important; }

/* Brand */
.brand { display:flex; align-items:center; gap:10px; }
.brand-logo { width:38px; height:38px; flex:none; display:flex; align-items:center; justify-content:center; }
.brand-logo img { width:100%; height:100%; object-fit:contain; display:block; }
.brand-name { font-weight:700; font-size:15px; }
.brand-sub { font-size:12px; color:var(--muted); }

/* Form */
label { display:block; font-size:13px; margin:12px 0 5px; font-weight:500; }
input.f, select.f { font-size:14px; width:100%; padding:9px 11px; border:1px solid #dcdee2; border-radius:8px; background:#fff; color:var(--text); }
input.f:focus, select.f:focus { outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(30,58,138,.12); }
.btn { font-size:14.5px; font-weight:600; padding:10px 16px; border:none; border-radius:8px; background:var(--accent); color:#fff; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:8px; transition:filter .15s; }
.btn:hover:not(:disabled) { filter:brightness(.95); }
.btn:disabled { opacity:.5; cursor:not-allowed; }
.btn.block { width:100%; }
.btn.sm { padding:7px 12px; font-size:13px; }
.btn.secondary { background:#eef0f4; color:var(--text); }
.btn.ghost { background:#fff; color:#3b4048; border:1px solid var(--line); }
.btn.ghost:hover { color:var(--accent); border-color:#93a9dc; filter:none; }
.hint { font-size:12px; color:var(--muted); margin-top:6px; }
.error { color:var(--err); font-size:13px; margin-top:10px; }
.result { font-size:13px; background:var(--accent-soft); border:1px solid #c9d6f2; border-radius:8px; padding:10px 12px; margin-top:12px; }
.result.err { background:#fdf1f1; border-color:#f1c0c0; color:#8a2a2a; }

.card { background:var(--panel); border-radius:12px; padding:18px; box-shadow:0 1px 2px rgba(0,0,0,.04); }
.sec-title { font-size:13px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.03em; }

/* Header atas + dropdown user */
.top { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 24px; background:#fff; border-bottom:1px solid var(--line); }
.top a.brand { text-decoration:none; color:inherit; }
.umenu { position:relative; }
.umenu-btn { display:flex; align-items:center; gap:10px; border:1px solid var(--line); background:#fff; border-radius:999px; padding:4px 12px 4px 4px; cursor:pointer; font-size:13.5px; color:var(--text); }
.umenu-btn:hover, .umenu.open .umenu-btn { border-color:#93a9dc; }
.avatar { width:30px; height:30px; border-radius:50%; background:var(--accent-soft); color:var(--accent); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; text-transform:uppercase; }
.umenu-btn .chev { font-size:11px; color:var(--muted); transition:transform .15s; }
.umenu.open .umenu-btn .chev { transform:rotate(180deg); }
.umenu-list { position:absolute; right:0; top:calc(100% + 6px); min-width:220px; background:#fff; border:1px solid var(--line); border-radius:12px; box-shadow:0 10px 30px rgba(0,0,0,.12); padding:6px; z-index:60; display:none; }
.umenu.open .umenu-list { display:block; }
.umenu-head { padding:8px 10px 10px; border-bottom:1px solid var(--line); margin-bottom:6px; font-size:12px; color:var(--muted); }
.umenu-head b { display:block; font-size:13.5px; color:var(--text); word-break:break-all; }
.umenu-list a, .umenu-list button { display:flex; align-items:center; gap:10px; width:100%; padding:9px 10px; border:none; background:none; border-radius:8px; font-size:14px; color:#3b4048; text-decoration:none; cursor:pointer; text-align:left; }
.umenu-list a:hover, .umenu-list button:hover { background:var(--accent-soft); color:var(--text); }
.umenu-list i { width:18px; text-align:center; color:#6b7280; }
.umenu-list .danger, .umenu-list .danger i { color:var(--err); }
.umenu-sep { height:1px; background:var(--line); margin:6px 0; }
@media (max-width:600px) { .top { padding:12px 16px; } .umenu-btn .em { display:none; } }

/* Menu di navbar (Beranda, Tracking) */
.top { gap:24px; }
.topnav { display:flex; align-items:center; gap:4px; margin-left:auto; }
.topnav a { display:inline-flex; align-items:center; gap:8px; padding:8px 14px; border-radius:10px; font-size:14px; font-weight:500; color:#4b5260; text-decoration:none; }
.topnav a i { font-size:13px; color:#8a909a; }
.topnav a:hover { background:#f2f4f7; color:var(--text); }
.topnav a.on { background:var(--accent-soft); color:var(--accent); font-weight:600; }
.topnav a.on i { color:var(--accent); }
@media (max-width:700px) { .topnav { margin-left:auto; } .topnav a { padding:8px 10px; } .topnav a span.t { display:none; } .top .brand-sub { display:none; } }

/* Pengaturan kurir aktif (Raja Ongkir, Biteship): pill horizontal, klik untuk aktif/nonaktif */
.cs-head { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.cs-head small { font-weight:500; text-transform:none; letter-spacing:0; margin-left:6px; color:var(--ok); }
.cs-count { font-size:12.5px; font-weight:600; color:var(--accent); }
.cs-tools { display:flex; gap:8px; margin:12px 0 14px; flex-wrap:wrap; }
.cs-list { display:flex; flex-wrap:wrap; gap:8px; }
.cs-pill { display:inline-flex; align-items:center; gap:8px; margin:0; padding:7px 14px 7px 10px; border:1.5px solid var(--line); border-radius:999px; background:#fff; color:#6b7280; font-size:13.5px; font-weight:500; cursor:pointer; user-select:none; transition:background .15s, border-color .15s, color .15s; }
.cs-pill input { position:absolute; opacity:0; width:0; height:0; }
.cs-pill .cs-dot { width:18px; height:18px; border-radius:50%; border:1.5px solid #c9ccd1; display:inline-flex; align-items:center; justify-content:center; font-size:10px; color:transparent; flex:none; }
.cs-pill .cs-code { font-size:11px; color:#a5a9b0; font-family:ui-monospace, Consolas, monospace; }
.cs-pill:hover { border-color:#93a9dc; }
.cs-pill.on { background:var(--accent-soft); border-color:var(--accent); color:var(--accent); font-weight:600; }
.cs-pill.on .cs-dot { background:var(--accent); border-color:var(--accent); color:#fff; }
.cs-pill.on .cs-code { color:#5b74b8; }
.cs-pill:has(input:focus-visible) { outline:2px solid var(--accent); outline-offset:2px; }
.cs-empty { font-size:13px; color:var(--muted); }
.cs-empty a { color:var(--accent); font-weight:600; cursor:pointer; }
