/* Nura Computer v3.1 */
:root {
  --bg: #eef1f3; --card: #fff; --ink: #1d2b36; --soft: #5b6b78; --muted: #8a98a3; --line: #dde3e7;
  --accent: #1f6f8b; --accent-bg: #e3f0f5; --ok: #2e7d4f; --ok-bg: #e6f4ec; --err: #b3261e; --err-bg: #fbe9e8;
  --warn: #8a5a00; --warn-bg: #fdf1d8; --pro: #5b3fa6; --pro-bg: #efeafb; --wa: #1f9d55;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
h1 { font-size: 20px; margin: 0; }
h2 { font-size: 15px; margin: 22px 0 10px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* Kerangka */
.topbar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 16px; background: var(--ink); color: #fff; }
.topbar .brand { color: #fff; font-weight: 600; text-decoration: none; margin-right: auto; }
.topbar .brand small { color: #9fb2bf; font-weight: 400; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; }
.nav a { color: #cfdbe3; text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 14px; }
.nav a.on, .nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.wrap { max-width: 980px; margin: 0 auto; padding: 16px; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px 32px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; }
.card.narrow { max-width: 380px; margin: 40px auto; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.page-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

/* Form */
label, .field { display: block; font-size: 13px; color: var(--soft); margin-bottom: 10px; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; color: var(--ink); background: #fff; }
input:focus, select:focus, textarea:focus, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { font-family: Consolas, "Courier New", monospace; font-size: 13px; line-height: 1.5; resize: vertical; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 12px; }
@media (min-width: 560px) { .span2 { grid-column: span 2; } }
.pair { display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.pair input, .pair select { margin-top: 0; min-width: 0; }
.pair .unit { color: var(--soft); font-size: 13px; }
.check { display: flex; align-items: center; gap: 8px; margin: 0; }
.check input { width: auto; margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn.danger { color: var(--err); border-color: #f0c4c1; }
.btn.full { width: 100%; }
.btn.small { padding: 6px 10px; font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.flash { padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; font-size: 14px; }
.flash.ok { background: var(--ok-bg); color: var(--ok); }
.flash.err { background: var(--err-bg); color: var(--err); }
.err-text { color: var(--err); font-size: 13px; min-height: 1em; margin: 6px 0; }
.seg { border: 0; padding: 0; margin: 14px 0 6px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.seg legend { font-size: 13px; color: var(--soft); margin-bottom: 6px; padding: 0; }
.seg label, .chip { display: inline-flex; margin: 0; cursor: pointer; position: relative; }
.seg input, .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.seg span, .chip span { padding: 7px 14px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; color: var(--ink); background: #fff; }
.chip span { font-size: 13px; padding: 5px 10px; }
.seg input:checked + span, .chip input:checked + span { background: var(--accent-bg); border-color: var(--accent); color: var(--accent); }
.seg input:focus-visible + span, .chip input:focus-visible + span { outline: 2px solid var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tag-btn { font: inherit; font-size: 13px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; }
.tag-btn:hover { border-color: var(--err); color: var(--err); }
.inline-forms { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.danger-zone .card-head { gap: 12px; }

/* Daftar stok admin */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.metric { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.metric span { display: block; font-size: 12px; color: var(--soft); }
.metric b { font-size: 20px; font-weight: 600; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); text-decoration: none; font-size: 14px; }
.tabs a.on { background: var(--accent-bg); border-color: var(--accent); color: var(--accent); }
.tabs small { color: var(--muted); }
.search { display: flex; gap: 6px; }
.search input { margin: 0; min-width: 0; }
.list { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; }
.row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row .quick { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.quick input, .quick select { margin: 0; }
.quick input { max-width: 140px; }
.quick .price-in { margin-top: 0; }
.quick .price-in input { width: 130px; }
@media (min-width: 720px) {
  .row { grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; }
  .row .quick { max-width: 440px; justify-content: flex-end; }
  .row .quick { grid-column: auto; }
}
.thumb { width: 64px; height: 48px; border-radius: 6px; background: var(--bg); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 10px; color: var(--muted); text-align: center; text-decoration: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.name { font-weight: 600; color: var(--ink); text-decoration: none; }
.spec { font-size: 13px; color: var(--soft); }
.tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--bg); color: var(--soft); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.pro { background: var(--pro-bg); color: var(--pro); }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.err { background: var(--err-bg); color: var(--err); }
.empty { padding: 20px 0; text-align: center; color: var(--soft); }

/* Foto */
.drop { border: 1px dashed var(--muted); border-radius: 12px; padding: 16px; text-align: center; background: var(--bg); }
.drop.over { background: var(--accent-bg); border-color: var(--accent); }
.drop p { margin: 0 0 10px; }
.drop .btn { margin: 2px; display: inline-flex; color: var(--ink); font-size: 14px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 6px; }
.photo { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg); }
.photo.cover { border: 2px solid var(--accent); }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo.loading { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--soft); }
.photo-bar { display: flex; justify-content: space-between; padding: 4px; }
.photo-bar button { border: 0; background: none; cursor: pointer; padding: 4px 7px; font-size: 14px; color: var(--soft); border-radius: 6px; }
.photo-bar button:hover { background: #fff; color: var(--ink); }
.photo.cover [data-act="cover"] { color: var(--accent); }

/* Tabel kunci-nilai */
table.kv { width: 100%; border-collapse: collapse; font-size: 14px; }
.kv td { padding: 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
.kv td:first-child { color: var(--soft); padding-right: 12px; }
.kv td + td { color: var(--ink); }

/* Katalog publik */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 8px; }
.filters input, .filters select { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); } }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; }
.pcard:hover { border-color: var(--muted); }
.pcard .img { aspect-ratio: 4 / 3; background: var(--bg); position: relative; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
.pcard .img img { width: 100%; height: 100%; object-fit: cover; }
.pcard .badge { position: absolute; top: 8px; left: 8px; }
.pcard .body { padding: 10px 12px 12px; }
.pcard .t { font-weight: 600; font-size: 14px; line-height: 1.35; }
.pcard .s { font-size: 12px; color: var(--soft); margin-top: 2px; }
.pcard .p { font-weight: 700; margin-top: 6px; }
.detail { display: grid; gap: 18px; }
@media (min-width: 760px) { .detail { grid-template-columns: 1.1fr 1fr; align-items: start; } }
.gallery .main { aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.gallery .thumbs { display: flex; gap: 6px; overflow-x: auto; margin-top: 8px; }
.gallery .thumbs button { flex: 0 0 64px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: var(--bg); }
.gallery .thumbs button.on { border-color: var(--accent); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.price { font-size: 24px; font-weight: 700; margin: 4px 0 12px; }
.po-box { background: var(--pro-bg); color: var(--pro); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 12px; }
.note { font-size: 13px; color: var(--soft); white-space: pre-line; }

/* v0.1.2: notifikasi, pilihan WA, dialog bagikan */
.toasts { position: fixed; top: 64px; left: 50%; transform: translateX(-50%); z-index: 40; width: min(92vw, 480px); display: grid; gap: 8px; }
.toasts .flash { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; box-shadow: 0 6px 20px rgba(29, 43, 54, .15); }
.toasts .flash.ok { background: #f2faf5; border: 1px solid #b9dfc8; }
.toasts .flash.err { background: #fdf3f2; border: 1px solid #f0c4c1; }
.toasts .x { border: 0; background: none; color: inherit; cursor: pointer; font-size: 14px; padding: 2px 6px; }
.photos-note { margin-top: 6px; }
.unit-actions { display: grid; gap: 8px; margin-top: 14px; }
.wa-pick { position: relative; display: inline-block; }
.wa-pick.full { display: block; }
.wa-pick summary { list-style: none; cursor: pointer; }
.wa-pick summary::-webkit-details-marker { display: none; }
.wa-pick.full summary { width: 100%; }
.wa-pick .menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; box-shadow: 0 8px 24px rgba(29, 43, 54, .15); z-index: 30; display: grid; gap: 2px; }
.wa-pick.full .menu { left: 0; right: 0; }
.wa-pick .menu a { padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14px; }
.wa-pick .menu a:hover { background: var(--bg); }
dialog.dlg { border: 0; border-radius: 14px; padding: 18px; width: min(92vw, 380px); color: var(--ink); }
dialog.dlg::backdrop { background: rgba(29, 43, 54, .45); }
.dlg h2 { margin: 0 0 6px; font-size: 17px; }
.dlg-actions { display: grid; gap: 8px; margin: 14px 0 6px; }
.share-status { color: var(--soft); min-height: 1em; margin: 6px 0 0; }
.upper { text-transform: uppercase; }
.share-unit-name { font-weight: 600; margin: 0; }
.share-unit-kode { margin: 2px 0 8px; }
.share-unit-kode:empty { display: none; }
.share-unit-name:empty { display: none; }

/* =========================================================
   Nura Computer UI V2 - public storefront only
   Business logic, forms and admin UI remain untouched.
   ========================================================= */
body.public {
  --v2-red:#e83218; --v2-orange:#ff7418; --v2-gold:#ffbd24; --v2-navy:#172b3a;
  --v2-text:#172b3a; --v2-soft:#627485; --v2-bg:#f7f9fb; --v2-card:#fff; --v2-line:#e6ebef;
  background:var(--v2-bg); color:var(--v2-text); font-size:16px;
}
.public a { color:inherit; }
.public-nav { position:sticky; top:0; z-index:20; background:rgba(255,255,255,.94); backdrop-filter:blur(16px); border-bottom:1px solid rgba(23,43,58,.08); }
.public-nav-inner { width:min(1180px, calc(100% - 32px)); min-height:78px; margin:auto; display:flex; align-items:center; gap:28px; }
.public-brand { display:block; width:235px; flex:0 0 auto; }
.public-brand img { width:100%; height:auto; object-fit:contain; }
.public-links { display:flex; align-items:center; gap:6px; margin:auto; }
.public-links a { padding:11px 15px; border-radius:12px; text-decoration:none; color:var(--v2-text); font-weight:600; font-size:15px; }
.public-links a:hover,.public-links a.active { background:#fff0eb; color:var(--v2-red); }
.public-nav-actions { display:flex; align-items:center; gap:8px; }
.public-nav .nav-wa { border-radius:12px; padding:11px 17px; font-weight:700; }
.mobile-menu-btn { display:none; border:1px solid var(--v2-line); background:#fff; border-radius:12px; width:44px; height:44px; font-size:20px; cursor:pointer; }
.public-main { width:min(1180px, calc(100% - 32px)); margin:0 auto; padding:26px 0 54px; }
.hero-v2 { min-height:320px; border-radius:28px; overflow:hidden; position:relative; isolation:isolate; background:linear-gradient(120deg,#fff 0%,#fff7f1 53%,#ffe9dd 100%); display:grid; grid-template-columns:1.1fr .9fr; margin-bottom:30px; box-shadow:0 16px 50px rgba(23,43,58,.08); }
.hero-v2:after { content:""; position:absolute; inset:auto -10% -42% 38%; height:250px; border-radius:50%; background:linear-gradient(90deg,rgba(255,116,24,.12),rgba(232,50,24,.35)); transform:rotate(-7deg); z-index:-1; }
.hero-copy { padding:48px 42px; max-width:690px; }
.eyebrow,.section-kicker { display:inline-block; color:var(--v2-red); font-size:12px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.hero-copy h1 { font-size:clamp(34px,4vw,54px); line-height:1.05; letter-spacing:-.035em; margin:12px 0 16px; max-width:650px; }
.hero-copy h1 span { color:var(--v2-red); }
.hero-copy p { font-size:18px; line-height:1.6; color:var(--v2-soft); max-width:580px; margin:0; }
.hero-points { display:flex; flex-wrap:wrap; gap:9px; margin-top:25px; }
.hero-points span { padding:9px 13px; border:1px solid #f3d8cc; border-radius:999px; background:rgba(255,255,255,.76); font-size:13px; font-weight:700; color:#4d6170; }
.hero-art { position:relative; min-height:320px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.hero-art:before,.hero-art:after { content:""; position:absolute; border-radius:50%; filter:blur(1px); }
.hero-art:before { width:330px; height:330px; background:radial-gradient(circle at 35% 30%,#ffd45e,#ff7c21 48%,#e83218 76%); right:8%; top:10%; opacity:.9; }
.hero-art:after { width:260px; height:260px; border:2px solid rgba(255,255,255,.65); right:15%; top:19%; }
.hero-orb { position:absolute; border-radius:50%; background:#fff; opacity:.35; }
.orb-a { width:95px; height:95px; right:8%; bottom:16%; }
.orb-b { width:40px; height:40px; left:15%; top:17%; }
.hero-device { position:relative; z-index:2; width:260px; height:155px; border-radius:16px 16px 8px 8px; background:linear-gradient(145deg,#243746,#101a22); box-shadow:0 24px 35px rgba(28,36,42,.28); transform:rotate(-7deg); color:#fff; font-weight:900; font-size:38px; line-height:1; display:flex; align-items:center; justify-content:center; flex-direction:column; letter-spacing:.03em; }
.hero-device:after { content:""; position:absolute; left:-25px; right:-25px; bottom:-22px; height:20px; border-radius:0 0 16px 16px; background:linear-gradient(90deg,#dfe5e9,#fff,#d6dde1); box-shadow:0 8px 10px rgba(23,43,58,.18); }
.hero-device small { font-size:17px; letter-spacing:.15em; color:#ff7a24; margin-top:7px; }
.catalog-v2 { scroll-margin-top:95px; }
.section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin:6px 0 18px; }
.section-heading h2 { margin:4px 0 3px; font-size:30px; letter-spacing:-.02em; }
.section-heading p { margin:0; color:var(--v2-soft); font-size:14px; }
.text-link { color:var(--v2-red) !important; font-weight:700; text-decoration:none; }
.search-bar-v2 { min-height:62px; background:#fff; border:1px solid var(--v2-line); border-radius:18px; padding:7px 8px 7px 18px; display:flex; align-items:center; gap:10px; box-shadow:0 8px 30px rgba(23,43,58,.06); }
.search-bar-v2 input { border:0; outline:0; box-shadow:none; margin:0; padding:11px 4px; font-size:16px; min-width:0; flex:1; }
.search-bar-v2 input:focus { outline:0; }
.search-icon { font-size:28px; line-height:1; color:#738594; transform:rotate(-20deg); }
.search-submit { border:0; background:linear-gradient(135deg,var(--v2-orange),var(--v2-red)); color:#fff; border-radius:13px; min-width:92px; min-height:46px; padding:0 18px; font:inherit; font-weight:800; cursor:pointer; }
.filter-drawer { margin:10px 0 20px; background:#fff; border:1px solid var(--v2-line); border-radius:16px; overflow:hidden; }
.filter-drawer summary { cursor:pointer; list-style:none; display:flex; justify-content:space-between; gap:15px; align-items:center; padding:14px 16px; font-weight:800; }
.filter-drawer summary::-webkit-details-marker { display:none; }
.filter-drawer summary:after { content:"＋"; color:var(--v2-red); font-size:20px; }
.filter-drawer[open] summary:after { content:"−"; }
.filter-summary { color:var(--v2-soft); font-size:13px; font-weight:500; margin-left:auto; }
.filter-grid-v2 { padding:0 16px 15px; display:grid; grid-template-columns:repeat(4,1fr); gap:12px; border-top:1px solid var(--v2-line); }
.filter-grid-v2 label { margin:15px 0 0; color:var(--v2-soft); font-weight:700; font-size:12px; }
.filter-grid-v2 select { border-radius:11px; border-color:#dfe6eb; padding:10px 11px; color:var(--v2-text); background:#fff; }
.filter-actions-v2 { padding:0 16px 15px; display:flex; gap:8px; }
.filter-actions-v2 .btn { border-radius:11px; }
.active-filters { display:flex; flex-wrap:wrap; align-items:center; gap:7px; margin:-8px 0 15px; color:var(--v2-soft); font-size:13px; }
.active-filters b { background:#fff0eb; color:var(--v2-red); border-radius:999px; padding:6px 10px; }
.cards { grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.pcard { border:1px solid #e6eaed; border-radius:20px; box-shadow:0 8px 25px rgba(23,43,58,.06); transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.pcard:hover { border-color:#f0b4a7; transform:translateY(-3px); box-shadow:0 14px 35px rgba(23,43,58,.11); }
.pcard .img { aspect-ratio:4/3; background:#eef2f4; }
.pcard .img img { transition:transform .3s ease; }
.pcard:hover .img img { transform:scale(1.025); }
.pcard .badge { top:12px; left:12px; border-radius:999px; padding:5px 9px; font-size:11px; font-weight:800; }
.pcard .body { padding:14px 15px 15px; }
.card-topline { display:flex; justify-content:space-between; color:#7b8b97; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; }
.card-topline span:last-child { color:var(--v2-red); font-size:20px; line-height:.7; }
.pcard .t { font-size:19px; line-height:1.25; margin-top:6px; font-weight:800; letter-spacing:-.015em; }
.spec-list { display:flex; flex-wrap:wrap; gap:6px 9px; margin-top:10px; color:var(--v2-soft); font-size:13px; }
.spec-list span { position:relative; }
.spec-list span+span:before { content:"•"; margin-right:8px; color:#c4ccd1; }
.card-bottom { display:flex; align-items:end; justify-content:space-between; gap:8px; margin-top:16px; }
.pcard .p { color:var(--v2-red); font-size:21px; font-weight:900; margin:0; }
.detail-pill { border:1px solid #dce4e9; border-radius:999px; padding:7px 10px; font-size:12px; font-weight:800; color:#435967; background:#fff; }
.empty-v2 { text-align:center; background:#fff; border:1px dashed #d5dee4; border-radius:20px; padding:42px 20px; margin-bottom:18px; }
.empty-icon { width:52px; height:52px; margin:0 auto 10px; display:grid; place-items:center; border-radius:50%; background:#fff0eb; color:var(--v2-red); font-size:28px; }
.empty-v2 h3 { margin:0 0 6px; font-size:21px; }
.empty-v2 p { max-width:520px; margin:0 auto 16px; color:var(--v2-soft); }
.public-footer { background:#172b3a; color:#dbe5eb; margin-top:10px; }
.public-footer-inner { width:min(1180px,calc(100% - 32px)); margin:auto; padding:36px 0 28px; display:grid; grid-template-columns:2fr 1fr 1.3fr 1.4fr; gap:30px; }
.footer-brand img { width:240px; filter:brightness(0) invert(1); opacity:.96; }
.footer-brand p { max-width:360px; color:#aebdc7; margin:10px 0 0; font-size:14px; }
.footer-col { display:flex; flex-direction:column; gap:8px; font-size:14px; color:#aebdc7; }
.footer-col b { color:#fff; margin-bottom:4px; }
.footer-col a { color:#dbe5eb; text-decoration:none; }
.footer-col a:hover { color:#ffb18f; }
.footer-wa { color:#fff; text-decoration:none; font-weight:700; }
.footer-bottom { width:min(1180px,calc(100% - 32px)); margin:auto; border-top:1px solid rgba(255,255,255,.1); padding:16px 0 20px; color:#91a5b2; font-size:12px; }
.detail-topbar { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:3px 0 18px; color:var(--v2-soft); font-size:13px; }
.back-link { text-decoration:none; font-weight:800; color:var(--v2-text) !important; }
.detail-topbar>span { background:#fff; border:1px solid var(--v2-line); border-radius:999px; padding:7px 10px; }
.detail-v2 { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr); gap:26px; align-items:start; }
.gallery-card,.spec-card { background:#fff; border:1px solid var(--v2-line); border-radius:22px; box-shadow:0 10px 35px rgba(23,43,58,.06); }
.gallery-card { padding:12px; position:relative; }
.gallery-badges { position:absolute; z-index:2; top:22px; left:22px; }
.gallery .main { aspect-ratio:4/3; border:0; border-radius:15px; background:#f0f3f5; }
.gallery .main img { object-fit:contain; }
.gallery .thumbs { margin:10px 2px 2px; gap:8px; }
.gallery .thumbs button { flex-basis:78px; height:58px; border-radius:10px; background:#f1f4f5; }
.gallery .thumbs button.on { border-color:var(--v2-red); }
.detail-info h1 { font-size:clamp(30px,4vw,44px); line-height:1.08; margin:7px 0 4px; letter-spacing:-.03em; }
.detail-price { color:var(--v2-red); font-size:32px; font-weight:900; margin:8px 0 15px; }
.status-note { margin-bottom:12px; }
.spec-card { padding:18px 20px; }
.spec-card-title { font-size:18px; font-weight:900; margin-bottom:6px; }
.spec-card .kv { font-size:15px; }
.spec-card .kv td { padding:10px 0; border-top:1px solid #edf0f2; }
.spec-card .kv td:first-child { width:34%; color:#718391; font-weight:600; }
.trust-row { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:12px 0; }
.trust-row span { background:#fff; border:1px solid var(--v2-line); border-radius:12px; padding:10px 8px; text-align:center; color:#536775; font-size:12px; font-weight:700; }
.unit-actions { margin-top:12px; }
.unit-actions .btn { border-radius:13px; min-height:50px; font-weight:800; }
.unit-actions .share-btn { background:#fff; border-color:#cfdbe2; }
.public .wa-pick.full .menu { border-radius:14px; padding:7px; box-shadow:0 16px 40px rgba(23,43,58,.18); }
.public .wa-pick.full .menu a { padding:12px; font-weight:700; }
.public .note { color:#6d7e8a; line-height:1.7; }
@media (max-width: 980px) {
  .public-nav-inner { gap:14px; }
  .public-brand { width:205px; }
  .public-links { gap:0; }
  .public-links a { padding:9px 10px; font-size:14px; }
  .hero-copy { padding:38px 30px; }
  .hero-copy h1 { font-size:40px; }
  .cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .public-footer-inner { grid-template-columns:1.5fr 1fr 1fr; }
  .footer-brand { grid-row:span 2; }
}
@media (max-width: 720px) {
  body.public { font-size:15px; }
  .public-nav-inner,.public-main,.public-footer-inner,.footer-bottom { width:min(100% - 24px,1180px); }
  .public-nav-inner { min-height:68px; }
  .public-brand { width:175px; }
  .public-links { display:none; position:absolute; top:68px; left:12px; right:12px; padding:8px; background:#fff; border:1px solid var(--v2-line); border-radius:15px; box-shadow:0 14px 35px rgba(23,43,58,.13); flex-direction:column; align-items:stretch; }
  .public-links.open { display:flex; }
  .public-links a { padding:12px; }
  .public-nav .nav-wa { display:none; }
  .mobile-menu-btn { display:block; }
  .public-main { padding-top:14px; }
  .hero-v2 { grid-template-columns:1fr; min-height:0; border-radius:22px; }
  .hero-copy { padding:28px 22px 24px; }
  .hero-copy h1 { font-size:34px; }
  .hero-copy p { font-size:16px; }
  .hero-art { min-height:145px; }
  .hero-art:before { width:230px; height:230px; top:-45px; right:10%; }
  .hero-art:after { width:180px; height:180px; top:-20px; right:16%; }
  .hero-device { width:190px; height:110px; font-size:27px; }
  .hero-device small { font-size:12px; }
  .hero-points { gap:6px; }
  .hero-points span { font-size:11px; padding:7px 9px; }
  .section-heading { margin-top:22px; }
  .section-heading h2 { font-size:25px; }
  .desktop-reset { display:none; }
  .search-bar-v2 { min-height:58px; padding-left:13px; border-radius:15px; }
  .search-submit { min-width:68px; min-height:44px; padding:0 12px; }
  .filter-summary { display:none; }
  .filter-grid-v2 { grid-template-columns:1fr 1fr; }
  .filter-actions-v2 { padding-bottom:14px; }
  .cards { grid-template-columns:1fr; gap:13px; }
  .pcard { display:grid; grid-template-columns:120px minmax(0,1fr); border-radius:16px; }
  .pcard .img { aspect-ratio:1/1; min-height:120px; }
  .pcard .body { padding:11px 12px; min-width:0; }
  .pcard .t { font-size:16px; }
  .spec-list { font-size:11px; gap:3px 6px; margin-top:7px; }
  .spec-list span+span:before { margin-right:5px; }
  .pcard .p { font-size:18px; }
  .detail-v2 { grid-template-columns:1fr; gap:14px; }
  .gallery-card { border-radius:18px; }
  .detail-info h1 { font-size:29px; }
  .detail-price { font-size:28px; }
  .spec-card { padding:15px; border-radius:18px; }
  .spec-card .kv { font-size:14px; }
  .trust-row { grid-template-columns:1fr 1fr 1fr; }
  .trust-row span { font-size:10px; padding:9px 4px; }
  .public-footer-inner { grid-template-columns:1fr 1fr; gap:22px 18px; }
  .footer-brand { grid-column:1/-1; grid-row:auto; }
  .footer-brand img { width:210px; }
  .footer-bottom { line-height:1.6; }
}
@media (max-width: 430px) {
  .public-brand { width:160px; }
  .hero-copy h1 { font-size:31px; }
  .filter-grid-v2 { grid-template-columns:1fr; }
  .pcard { grid-template-columns:105px minmax(0,1fr); }
  .pcard .img { min-height:105px; }
  .card-bottom { margin-top:10px; }
  .detail-pill { display:none; }
  .trust-row span { font-size:9px; }
}

/* ===== v2.6: navigasi, halaman baru, footer ===== */
.mobile-menu-btn svg { display:block; margin:auto; }
.section-heading h1 { margin:4px 0 3px; font-size:30px; letter-spacing:-.02em; }
.page-intro { color:var(--v2-soft); max-width:700px; line-height:1.65; margin:0 0 20px; }
.home-section { margin-top:44px; }
.list-gap { margin-top:34px; }
.hero-cta { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.hero-cta .btn { min-height:50px; border-radius:14px; padding:0 22px; font-weight:800; font-size:16px; display:inline-flex; align-items:center; justify-content:center; }
.hero-cta .btn.primary { background:var(--v2-red); border-color:var(--v2-red); color:#fff; }
.hero-cta .wa-pick { display:inline-block; }
.value-strip { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin:20px 0 0; }
.value-item { background:#fff; border:1px solid var(--v2-line); border-radius:18px; padding:16px; }
.value-ico { width:34px; height:34px; border-radius:11px; background:#fff0eb; color:var(--v2-red); display:grid; place-items:center; font-weight:900; margin-bottom:10px; }
.value-item b { display:block; font-size:15px; margin-bottom:4px; }
.value-item span { color:var(--v2-soft); font-size:13.5px; line-height:1.5; }
.steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.step { background:#fff; border:1px solid var(--v2-line); border-radius:18px; padding:18px; }
.step-no { width:34px; height:34px; border-radius:50%; background:var(--v2-red); color:#fff; display:grid; place-items:center; font-weight:900; margin-bottom:10px; }
.step b { display:block; font-size:16px; margin-bottom:4px; }
.step p { margin:0; color:var(--v2-soft); font-size:14px; line-height:1.55; }
.step-note { margin:14px 2px 0; color:var(--v2-soft); }
.ann-list { display:grid; gap:14px; }
.ann-list.two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.ann-card { background:#fff; border:1px solid var(--v2-line); border-radius:18px; padding:18px 20px; box-shadow:0 8px 25px rgba(23,43,58,.05); }
.ann-card.pinned { border-color:#f0b4a7; background:#fffaf8; }
.ann-meta { display:flex; flex-wrap:wrap; align-items:center; gap:8px; color:var(--v2-soft); font-size:13px; }
.pin-tag { background:#fff0eb; color:var(--v2-red); border-radius:999px; padding:3px 9px; font-weight:800; font-size:12px; }
.ann-card h2,.ann-card h3 { margin:6px 0 8px; font-size:20px; letter-spacing:-.01em; }
.ann-body { white-space:pre-line; line-height:1.65; color:#33485a; word-break:break-word; }
.contact-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.info-card { background:#fff; border:1px solid var(--v2-line); border-radius:20px; padding:20px; box-shadow:0 8px 25px rgba(23,43,58,.05); }
.info-card h2 { margin:0 0 12px; font-size:18px; }
.info-card p { margin:0 0 12px; white-space:pre-line; line-height:1.65; color:#33485a; }
.info-card .btn { border-radius:13px; min-height:46px; font-weight:800; }
.po-terms { margin-top:14px; }
.contact-actions { display:grid; gap:9px; }
.contact-actions .btn { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:50px; }
.contact-actions .btn small { font-weight:600; opacity:.92; font-size:13px; }
.link-list a { display:flex; align-items:center; justify-content:space-between; padding:13px 0; border-top:1px solid #edf0f2; text-decoration:none; font-weight:700; }
.link-list a:first-child { border-top:0; }
.link-list a:after { content:"›"; color:var(--v2-red); font-size:20px; }
.cta-band { margin-top:44px; border-radius:24px; padding:30px 32px; background:linear-gradient(135deg,#fff3ec,#ffe6d6); border:1px solid #f6d2c3; display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.cta-band h2 { margin:0 0 4px; font-size:24px; letter-spacing:-.02em; }
.cta-band p { margin:0; color:var(--v2-soft); }
.cta-actions { display:flex; gap:10px; flex-wrap:wrap; }
.cta-actions .btn { min-height:48px; border-radius:13px; font-weight:800; padding:0 20px; display:inline-flex; align-items:center; justify-content:center; }
.po-line { margin-top:9px; display:inline-block; font-size:12.5px; font-weight:700; color:#5b3fa6; background:#efeafb; border-radius:9px; padding:6px 9px; }
.footer-col .pre-line { white-space:pre-line; }
.empty-v2 h1 { margin:0 0 6px; font-size:24px; }
.empty-v2 .btn { border-radius:13px; min-height:46px; font-weight:800; display:inline-flex; align-items:center; margin:2px; }
@media (max-width: 860px) {
  .public-nav-inner { gap:14px; }
  .public-links { display:none; position:absolute; top:78px; left:12px; right:12px; padding:8px; background:#fff; border:1px solid var(--v2-line); border-radius:15px; box-shadow:0 14px 35px rgba(23,43,58,.13); flex-direction:column; align-items:stretch; }
  .public-links.open { display:flex; }
  .public-links a { padding:12px; }
  .public-nav .nav-wa { display:none; }
  .mobile-menu-btn { display:block; }
}
@media (max-width: 720px) {
  .section-heading h1 { font-size:25px; }
  .home-section { margin-top:32px; }
  .value-strip { grid-template-columns:1fr 1fr; gap:10px; }
  .value-item { padding:14px; }
  .steps { grid-template-columns:1fr; }
  .ann-list.two { grid-template-columns:1fr; }
  .contact-grid { grid-template-columns:1fr; }
  .cta-band { padding:22px 20px; border-radius:20px; }
  .cta-band h2 { font-size:21px; }
  .cta-actions { width:100%; }
  .cta-actions .btn,.cta-actions .wa-pick { flex:1 1 100%; width:100%; }
  .hero-cta .btn,.hero-cta .wa-pick { flex:1 1 100%; width:100%; }
  .hero-cta .wa-pick summary { width:100%; }
}

/* ===== v2.6.1: tautan masuk admin ===== */
.public-links .nav-admin { display:none; }
.footer-bottom a.footer-admin { color:#aebdc7; text-decoration:underline; text-underline-offset:3px; white-space:nowrap; }
.footer-bottom a.footer-admin:hover { color:#ffb18f; }
@media (max-width: 860px) {
  .public-links .nav-admin { display:block; margin-top:6px; padding-top:14px; border-top:1px solid var(--v2-line); border-radius:0 0 12px 12px; color:var(--v2-soft); font-size:14px; font-weight:600; }
}

/* ===== v2.7: login admin ===== */
.pass-wrap { position:relative; display:block; }
.pass-wrap input { padding-right:110px; }
.pass-toggle { position:absolute; right:6px; top:50%; transform:translateY(-50%); margin-top:2px; border:0; background:none; color:var(--accent); font:inherit; font-size:13px; font-weight:600; cursor:pointer; padding:6px 8px; }

/* ===== v2.8: video unit ===== */
.pcard .img { position:relative; }
.pcard .video-badge { position:absolute; left:10px; bottom:10px; background:rgba(15,23,32,.78); color:#fff; font-size:12px; font-weight:800; border-radius:999px; padding:4px 10px; }
.video-card { margin-top:14px; background:#fff; border:1px solid var(--v2-line); border-radius:20px; padding:14px; }
.video-card b { display:block; margin:0 2px 10px; }
.video-wrap { position:relative; aspect-ratio:16/9; border-radius:14px; overflow:hidden; background:#000; }
.video-wrap iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }

/* ===== v2.8.1: perbaikan responsif HP ===== */
/* Isi grid boleh menyusut selebar layar (sebelumnya deretan thumbnail foto memaksa halaman melebar) */
.detail-v2 > *, .hero-v2 > *, .contact-grid > *, .steps > *, .value-strip > *, .ann-list > *, .cards > * { min-width:0; }
.public-main img { max-width:100%; }
.spec-card .kv td { overflow-wrap:anywhere; }
@media (max-width: 860px) {
  .public-nav-actions { margin-left:auto; }   /* tombol menu di pojok kanan */
}
@media (max-width: 720px) {
  .detail-v2 { grid-template-columns:minmax(0,1fr); }
}
.section-heading .text-link { white-space:nowrap; }

/* ===== v2.9: tombol Bagikan menonjol di bawah foto ===== */
.share-hero { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; min-height:54px; margin:12px 0 4px; border:0; border-radius:999px; background:linear-gradient(90deg,#d61f14 0%,#f26a1b 55%,#f5a623 100%); color:#fff; font:inherit; font-size:17px; font-weight:800; letter-spacing:.01em; cursor:pointer; box-shadow:0 10px 24px rgba(214,31,20,.28); transition:transform .15s ease, box-shadow .15s ease; }
.share-hero:hover { transform:translateY(-1px); box-shadow:0 14px 30px rgba(214,31,20,.34); }
.share-hero:active { transform:translateY(0); box-shadow:0 6px 16px rgba(214,31,20,.3); }
.share-hero:focus-visible { outline:3px solid #ffd2b8; outline-offset:3px; }
.share-hero svg { flex:0 0 auto; }
@media (max-width: 720px) {
  .share-hero { min-height:52px; font-size:16px; }
}

/* ===== v3.0: dashboard dan servis (panel admin) ===== */
.dash-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:14px; align-items:start; }
.dash-grid > * { min-width:0; }
.dash-card h2 { display:flex; justify-content:space-between; align-items:center; gap:8px; margin:0 0 10px; font-size:18px; }
.dash-card h2 a { font-size:13px; font-weight:600; }
.dash-sub { margin:10px 0 6px; color:var(--soft); font-size:13px; }
.dash-tiles { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:10px; }
.dash-tile { display:block; border:1px solid var(--line); border-radius:10px; padding:10px 12px; text-decoration:none; color:var(--ink); background:#fff; }
.dash-tile b { display:block; font-size:22px; line-height:1.2; }
.dash-tile span { font-size:12.5px; color:var(--soft); }
a.dash-tile:hover { border-color:var(--accent); }
.dash-tile.soon { opacity:.55; background:var(--bg); }
.servis-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:11px 2px; border-top:1px solid var(--line); text-decoration:none; color:var(--ink); }
.servis-row:first-child { border-top:0; }
.servis-row:hover b { color:var(--accent); }
.servis-main { display:flex; flex-direction:column; gap:2px; min-width:0; }
.servis-main b { overflow-wrap:anywhere; }
.servis-fotos { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:10px; }
.servis-foto { display:flex; flex-direction:column; gap:6px; align-items:flex-start; }
.servis-foto img { width:120px; height:90px; object-fit:cover; border-radius:10px; border:1px solid var(--line); display:block; }

/* ===== v3.1: spare part dan aksesoris ===== */
.part-thumb { width:56px; height:56px; flex:0 0 56px; object-fit:cover; border-radius:10px; border:1px solid var(--line); }
.part-thumb-empty { display:flex; align-items:center; justify-content:center; background:var(--bg); color:var(--soft); font-size:10px; text-align:center; }

/* Cetak laporan: sembunyikan menu dan tombol, tampilan putih polos */
@media print {
  .topbar, .foot, .noprint, .flash { display:none !important; }
  body.admin { background:#fff; }
  .wrap { max-width:none; padding:0; }
  .card { box-shadow:none; border:1px solid #ccc; break-inside:avoid; }
}

/* ===== Panel admin v3.7: sidebar gelap, bilah atas, dashboard kartu ===== */
body.app { background:#eef2f6; }
.shell { display:flex; min-height:100vh; }
.side { flex:0 0 238px; width:238px; background:#0d2440; color:#c9d6e6; display:flex; flex-direction:column; position:sticky; top:0; height:100vh; overflow-y:auto; z-index:40; }
.side-brand { display:flex; align-items:center; gap:10px; padding:20px 18px 14px; text-decoration:none; color:#fff; }
.logo-n { width:40px; height:40px; border-radius:10px; background:linear-gradient(135deg,#f6a21a,#e8481c); color:#fff; font-weight:800; font-size:24px; display:flex; align-items:center; justify-content:center; flex:0 0 40px; }
.logo-t { display:flex; flex-direction:column; line-height:1.1; }
.logo-t b { font-size:19px; font-weight:700; color:#fff; }
.logo-t b.o { color:#f5a524; }
.logo-t small { font-size:11px; color:#8ea3bb; margin-top:3px; }
.side-nav { padding:6px 10px 10px; flex:1; }
.side-nav a { display:flex; align-items:center; gap:11px; padding:10px 12px; margin:2px 0; border-radius:10px; color:#d5e0ee; text-decoration:none; font-size:14.5px; }
.side-nav a:hover { background:rgba(255,255,255,.08); color:#fff; }
.side-nav a.on { background:linear-gradient(90deg,#e8801f,#d9631a); color:#fff; font-weight:600; }
.side-nav .ico { flex:0 0 18px; opacity:.95; }
.side-grup { margin:14px 12px 4px; font-size:11.5px; letter-spacing:.07em; text-transform:uppercase; color:#7f95ae; }
.side-foot { padding:10px 14px 16px; border-top:1px solid rgba(255,255,255,.1); }
.side-out { display:flex; align-items:center; gap:11px; padding:10px 12px; border-radius:10px; color:#d5e0ee; text-decoration:none; font-size:14.5px; }
.side-out:hover { background:rgba(255,255,255,.08); color:#fff; }
.side-foot p { margin:10px 12px 0; font-size:12px; line-height:1.5; color:#7f95ae; }
.side-scrim { display:none; }
.main-col { flex:1; min-width:0; display:flex; flex-direction:column; }
.top { position:sticky; top:0; z-index:30; display:flex; align-items:center; gap:14px; padding:12px 24px; background:#fff; border-bottom:1px solid #e3e9ef; }
.icon-btn { border:0; background:transparent; color:#1d2b36; padding:6px; border-radius:8px; cursor:pointer; display:inline-flex; }
.icon-btn:hover { background:#eef2f6; }
.top-search { flex:1; max-width:640px; position:relative; margin:0; }
.top-search input { width:100%; margin:0; height:42px; border:1px solid #dde4ea; border-radius:12px; padding:0 44px 0 14px; background:#f8fafc; font:inherit; font-size:14px; }
.top-search button { position:absolute; right:6px; top:5px; height:32px; width:34px; border:0; background:transparent; color:#5b6b78; cursor:pointer; border-radius:8px; }
.top-bell { position:relative; margin-left:auto; }
.top-bell summary { list-style:none; cursor:pointer; padding:8px; border-radius:10px; display:inline-flex; position:relative; color:#1d2b36; }
.top-bell summary::-webkit-details-marker { display:none; }
.top-bell summary:hover { background:#eef2f6; }
.badge { position:absolute; top:1px; right:0; min-width:18px; height:18px; padding:0 5px; border-radius:9px; background:#e0352b; color:#fff; font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; }
.pop { position:absolute; right:0; top:46px; width:min(340px, 88vw); background:#fff; border:1px solid #dde4ea; border-radius:12px; box-shadow:0 14px 34px rgba(13,36,64,.16); z-index:50; padding:6px 0; }
.pop-h { margin:0; padding:8px 14px 6px; font-size:12px; font-weight:700; color:#7b8b97; text-transform:uppercase; letter-spacing:.05em; }
.pop-i { display:block; padding:9px 14px; color:#1d2b36; text-decoration:none; font-size:14px; border-top:1px solid #f0f3f6; }
.pop-i:hover { background:#f6f8fa; }
.pop-i.err { color:#b3261e; } .pop-i.warn { color:#8a5a00; } .pop-i.ok { color:#1f7a45; }
.top-user { display:flex; align-items:center; gap:10px; text-decoration:none; color:#1d2b36; padding:4px 6px; border-radius:10px; }
.top-user:hover { background:#eef2f6; }
.avatar { width:38px; height:38px; border-radius:50%; background:#0d2440; color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; }
.who { display:flex; flex-direction:column; line-height:1.2; }
.who b { font-size:14px; } .who small { font-size:12px; color:#7b8b97; }
.app .wrap { max-width:1320px; padding:20px 24px 12px; margin:0 auto; width:100%; }
.app .foot { padding:8px 16px 20px; }
.app .card { box-shadow:0 1px 2px rgba(13,36,64,.04); }
body.nav-hide .side { display:none; }

/* Dashboard */
.hello { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
.hello h1 { font-size:22px; margin:0; }
.hello p { margin:2px 0 0; color:#5b6b78; }
.hello-r { display:flex; align-items:center; gap:14px; color:#5b6b78; font-size:13.5px; }
.tambah-menu { position:relative; }
.tambah-menu summary { list-style:none; cursor:pointer; background:linear-gradient(90deg,#f08a24,#e8641c); color:#fff; font-weight:600; padding:10px 16px; border-radius:10px; display:inline-flex; align-items:center; gap:8px; }
.tambah-menu summary::-webkit-details-marker { display:none; }
.tambah-menu .pop { top:46px; width:240px; }
.kpis { display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); gap:12px; margin-bottom:14px; }
.kpi { display:flex; gap:12px; align-items:center; padding:14px; border-radius:14px; text-decoration:none; color:#1d2b36; border:1px solid transparent; }
.kpi .kic { width:46px; height:46px; border-radius:12px; display:flex; align-items:center; justify-content:center; flex:0 0 46px; background:#fff; }
.kpi b { display:block; font-size:24px; line-height:1.1; }
.kpi span { display:block; font-size:13.5px; }
.kpi small { display:block; font-size:12px; margin-top:2px; color:#5b6b78; }
.k-blue { background:#e6eefc; } .k-blue .kic { color:#2f6fed; }
.k-amber { background:#fdf0dc; } .k-amber .kic { color:#e08a14; }
.k-green { background:#e3f4e8; } .k-green .kic { color:#1f9d55; }
.k-red { background:#fde8e6; } .k-red .kic { color:#d6392e; }
.k-violet { background:#efeafb; } .k-violet .kic { color:#6b4fc8; }
.row3 { display:grid; grid-template-columns:1.5fr 1fr 1fr; gap:12px; margin-bottom:12px; }
.row3b { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:12px; margin-bottom:12px; }
.row3c { display:grid; grid-template-columns:1.15fr 1fr .9fr; gap:12px; margin-bottom:12px; }
.panel { background:#fff; border:1px solid #e3e9ef; border-radius:14px; padding:16px; min-width:0; box-shadow:0 1px 2px rgba(13,36,64,.04); }
.panel-h { display:flex; align-items:center; justify-content:space-between; gap:8px; margin:0 0 12px; }
.panel-h h2 { margin:0; font-size:16px; display:flex; align-items:center; gap:8px; }
.panel-h a { font-size:13px; font-weight:600; text-decoration:none; }
.panel-sub { margin:-8px 0 10px; font-size:12.5px; color:#7b8b97; }
.bars { display:flex; align-items:flex-end; gap:10px; height:150px; padding:6px 4px 0; border-bottom:1px solid #e3e9ef; }
.bars .col { flex:1; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; height:100%; min-width:0; }
.bars .bar { width:100%; max-width:46px; background:#f5a45a; border-radius:5px 5px 0 0; min-height:2px; }
.bars .bar.now { background:#e8801f; }
.bars .val { font-size:11px; color:#5b6b78; margin-bottom:3px; white-space:nowrap; }
.bar-lbl { display:flex; gap:10px; padding:4px 4px 0; }
.bar-lbl span { flex:1; text-align:center; font-size:12px; color:#7b8b97; }
.mini3 { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:8px; margin-top:12px; }
.mini { border:1px solid #e3e9ef; border-radius:10px; padding:9px 11px; }
.mini b { display:block; font-size:17px; } .mini span { font-size:12px; color:#7b8b97; } .mini em { display:block; font-style:normal; font-size:11.5px; margin-top:2px; }
.up { color:#1f7a45; } .down { color:#b3261e; }
.donut-w { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.donut { position:relative; width:150px; height:150px; flex:0 0 150px; }
.donut svg { transform:rotate(-90deg); }
.donut .mid { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; line-height:1.1; }
.donut .mid b { font-size:26px; } .donut .mid span { font-size:12px; color:#7b8b97; }
.legend { flex:1; min-width:130px; }
.legend div { display:flex; align-items:center; gap:8px; padding:4px 0; font-size:14px; }
.legend i { width:10px; height:10px; border-radius:50%; flex:0 0 10px; }
.legend b { margin-left:auto; }
.tiles2 { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:8px; }
.tl { display:flex; gap:10px; align-items:center; padding:10px 12px; border-radius:11px; text-decoration:none; color:#1d2b36; border:1px solid transparent; }
.tl b { font-size:20px; line-height:1.1; display:block; } .tl span { font-size:12.5px; }
.tl-red { background:#fde8e6; } .tl-amber { background:#fdf0dc; } .tl-blue { background:#e6eefc; } .tl-green { background:#e3f4e8; } .tl-gray { background:#f1f4f7; }
.btn-dark { display:inline-flex; align-items:center; gap:8px; margin-top:12px; padding:10px 14px; border-radius:10px; background:#0d2440; color:#fff; text-decoration:none; font-size:14px; border:0; cursor:pointer; }
.btn-dark:hover { background:#173660; }
.tbl { width:100%; border-collapse:collapse; font-size:13.5px; }
.tbl th { text-align:left; font-weight:600; color:#5b6b78; font-size:12.5px; padding:7px 8px; border-bottom:1px solid #e3e9ef; background:#f8fafc; }
.tbl td { padding:8px; border-bottom:1px solid #eef2f6; vertical-align:middle; }
.tbl a { color:inherit; text-decoration:none; font-weight:500; }
.tbl .th-img { width:44px; height:34px; object-fit:cover; border-radius:6px; background:#eef2f6; }
.chip { display:inline-block; font-size:12px; padding:2px 9px; border-radius:999px; background:#eef2f6; color:#5b6b78; white-space:nowrap; }
.chip.green { background:#e3f4e8; color:#1f7a45; } .chip.amber { background:#fdf0dc; color:#8a5a00; } .chip.red { background:#fde8e6; color:#b3261e; } .chip.blue { background:#e6eefc; color:#1f55b8; } .chip.violet { background:#efeafb; color:#5b3fa6; }
.feed { list-style:none; margin:0; padding:0; }
.feed li { display:flex; gap:10px; align-items:flex-start; padding:7px 0; font-size:13.5px; }
.feed .dot { width:22px; height:22px; border-radius:50%; flex:0 0 22px; display:flex; align-items:center; justify-content:center; background:#e6eefc; color:#2f6fed; }
.feed .dot .ico { width:13px; height:13px; }
.feed time { font-size:12px; color:#7b8b97; flex:0 0 50px; padding-top:2px; }
.cari-h { font-size:15px; margin:18px 0 8px; }

@media (max-width: 1180px) {
  .kpis { grid-template-columns:repeat(3, minmax(0,1fr)); }
  .row3, .row3c { grid-template-columns:1fr 1fr; }
  .row3b { grid-template-columns:1fr 1fr; }
}
@media (max-width: 960px) {
  .side { position:fixed; left:-260px; top:0; bottom:0; width:240px; transition:left .2s; }
  body.nav-open .side { left:0; }
  body.nav-open .side-scrim { display:block; position:fixed; inset:0; background:rgba(13,36,64,.45); z-index:35; }
  body.nav-hide .side { display:flex; }
  .top { padding:10px 14px; gap:8px; }
  .who { display:none; }
  .app .wrap { padding:14px 12px 8px; }
}
@media (max-width: 700px) {
  .kpis { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .row3, .row3b, .row3c { grid-template-columns:1fr; }
  .kpi b { font-size:21px; }
  .hello-r .tgl { display:none; }
}
@media print {
  .side, .top, .side-scrim { display:none !important; }
  .shell { display:block; }
}

/* Upah pekerja */
.hari-row { display:flex; gap:8px; flex-wrap:wrap; margin:12px 0 10px; }
.hari-f { margin:0; }
.hari { display:flex; flex-direction:column; align-items:center; gap:3px; min-width:42px; background:none; border:0; padding:0; font:inherit; cursor:default; color:inherit; }
button.hari { cursor:pointer; }
.hari i { display:block; width:30px; height:30px; border-radius:50%; border:1.5px solid #c9d3dc; background:#fff; }
.hari.on i { background:#1f6f8b; border-color:#1f6f8b; }
.hari.nanti i { background:#eef2f6; border-style:dashed; }
.hari.off { opacity:.35; }
.hari small { font-size:11.5px; color:#5b6b78; }
.row-s { display:flex; justify-content:space-between; align-items:center; gap:10px; font-size:14px; }

/* Sub judul kelompok isian di dalam form */
.sub-judul { margin:14px 0 2px; font-size:12.5px; font-weight:700; letter-spacing:.08em; color:#5b6b78; }

/* Surat jalan: tombol cetak dan pop-up pilihan */
.sj-act { padding:0 0 10px; border-bottom:1px solid #eef2f6; margin-bottom:2px; }
.sj-dialog { border:1px solid #c9d3dc; border-radius:12px; padding:18px 20px; max-width:360px; width:90vw; }
.sj-dialog::backdrop { background:rgba(13,36,64,.45); }
.sj-pilih { display:flex; gap:10px; flex-wrap:wrap; }
.sj-pilih .btn { flex:1; justify-content:center; }
