/* PIBOHUB: sistem terintegrasi dan terpadu. Hijau tua, oranye, krem. Mobile-first di bagian akhir berkas. */
:root {
  --pri: #f47b20;
  --pri-d: #d1620c;
  --grn: #1fa64a;
  --grn-d: #0f6b32;
  --yel: #ffc72c;
  --ok: #1b8a3a;
  --bad: #d1372f;
  --bg: #fbf6ec;
  --card: #ffffff;
  --ink: #1f2a1c;
  --mut: #6b7566;
  --line: #efe4d2;
  --field: #dcd2bd;
  --side: #0b4a24;
  --sidew: 264px;
  --r: 14px;
  --r-sm: 10px;
  --sh-1: 0 1px 2px rgba(80, 50, 10, .05), 0 4px 14px rgba(80, 50, 10, .05);
  --sh-2: 0 10px 30px rgba(80, 50, 10, .12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 14.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button, input, select, textarea { font: inherit; }
a { color: var(--pri-d); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
.ico { width: 18px; height: 18px; flex: none; }
.muted { color: var(--mut); }
.mono { font-family: Consolas, ui-monospace, Menlo, monospace; font-size: 13px; }
::selection { background: #ffdcb8; }

/* ---------- Kerangka ---------- */
.shell { display: grid; grid-template-columns: var(--sidew) minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  background: radial-gradient(120% 60% at 0% 0%, #136b34 0%, transparent 60%), linear-gradient(180deg, #0c5129 0%, #073a1b 100%);
  color: #d6f0dc; position: sticky; top: 0; height: 100vh; z-index: 30;
  display: flex; flex-direction: column; overflow: hidden;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 18px 16px 14px; color: #fff; text-decoration: none; flex: none; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 46px; height: 46px; border-radius: 14px; background: #fff; display: grid; place-items: center; padding: 5px; flex: none; box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand.no-logo .brand-logo img { display: none; }
.brand.no-logo .brand-logo::after { content: "P"; color: var(--grn-d); font-weight: 800; font-size: 22px; }
.brand-text b { display: block; font-size: 19px; font-weight: 800; letter-spacing: .14em; line-height: 1.1; }
.brand-text small { display: block; margin-top: 3px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--yel); opacity: .95; }

.nav { flex: 1; overflow-y: auto; padding: 4px 10px 14px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .22); border-radius: 6px; }
.nav a, .nav summary {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px; color: #d6f0dc;
  cursor: pointer; text-decoration: none; margin-bottom: 2px; list-style: none; font-weight: 500; position: relative;
}
.nav summary::-webkit-details-marker { display: none; }
.nav a:hover, .nav summary:hover { background: rgba(255, 255, 255, .09); text-decoration: none; color: #fff; }
.nav a.active { background: linear-gradient(135deg, #ff9a42, var(--pri) 60%, var(--pri-d)); color: #fff; font-weight: 700; box-shadow: 0 6px 16px rgba(244, 123, 32, .35); }
.nav-label { padding: 16px 12px 6px; text-transform: uppercase; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; color: var(--yel); opacity: .85; }
.nav summary .chev { margin-left: auto; transition: transform .2s; opacity: .6; width: 16px; height: 16px; }
.nav details[open] > summary .chev { transform: rotate(180deg); }
.nav details.dept > summary { font-weight: 700; color: #fff; letter-spacing: .01em; }
.nav details.dept > summary .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yel); flex: none; box-shadow: 0 0 0 3px rgba(255, 199, 44, .2); }
.nav details.dept[open] > summary { background: rgba(255, 255, 255, .07); }
.nav .dept-body { padding: 2px 0 6px 6px; }
.nav .sub { margin: 2px 0 4px 18px; padding-left: 8px; border-left: 1px solid rgba(255, 255, 255, .16); }
.nav .sub a { padding: 8px 10px; font-size: 13.5px; }

.sb-foot { flex: none; padding: 12px 14px 14px; border-top: 1px solid rgba(255, 255, 255, .1); display: none; align-items: center; gap: 10px; }
.sb-foot .av { background: rgba(255, 255, 255, .16); }
.sb-foot .who { min-width: 0; flex: 1; line-height: 1.25; }
.sb-foot .who b { display: block; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-foot .who small { color: #a8d6b3; font-size: 12px; }
.sb-foot form { margin: 0; }
.sb-foot .btn { background: rgba(255, 255, 255, .12); color: #fff; }
.sb-foot .btn:hover { background: rgba(255, 255, 255, .22); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 28px; height: 68px;
  position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--grn), var(--yel) 55%, var(--pri)); opacity: .9; }
.topbar .left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbar .ttl { min-width: 0; }
.topbar h1 { font-size: 19px; color: var(--grn-d); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .today { display: block; color: var(--mut); font-size: 12px; margin-top: 1px; }
.topbar .burger { display: none; background: #f4ead9; border: 0; cursor: pointer; color: var(--ink); width: 40px; height: 40px; border-radius: 12px; place-items: center; flex: none; }

/* Menu pengguna */
details.user { position: relative; }
details.user > summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 5px 8px 5px 5px; border-radius: 999px; border: 1px solid var(--line); background: #fff; transition: box-shadow .2s, border-color .2s; }
details.user > summary::-webkit-details-marker { display: none; }
details.user > summary:hover, details.user[open] > summary { border-color: #e4d3b6; box-shadow: var(--sh-1); }
details.user .who { line-height: 1.2; text-align: left; }
details.user .who b { display: block; font-size: 13.5px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.user .who small { color: var(--mut); font-size: 11.5px; }
details.user .chev { width: 15px; height: 15px; color: var(--mut); margin-right: 4px; transition: transform .2s; }
details.user[open] .chev { transform: rotate(180deg); }
.user-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 250px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-2); padding: 8px; animation: drop .2s ease both; z-index: 40; }
.user-menu .head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-menu .head b { display: block; }
.user-menu .head small { color: var(--mut); }
.user-menu a, .user-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; border: 0; background: none; color: var(--ink); font-weight: 600; cursor: pointer; text-align: left; text-decoration: none; }
.user-menu a:hover, .user-menu button:hover { background: #fff3e3; text-decoration: none; }
.user-menu button { color: #a3261f; }
.user-menu button:hover { background: #fde8e6; }
.user-menu form { margin: 0; }

.avatar, .av { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #2dc15c, var(--grn-d)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; text-decoration: none; }
a.av:hover { text-decoration: none; }

.content { padding: 26px 28px 56px; max-width: 1320px; width: 100%; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; color: var(--ink); }
.page-head p { margin: 5px 0 0; color: var(--mut); max-width: 62ch; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- Komponen ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-1); }
.card-pad { padding: 20px 22px; }
.card-head { padding: 15px 20px; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--grn-d); display: flex; align-items: center; gap: 10px; }
.card-head h2 { font-size: 16px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 10px;
  border: 0; background: #f4ead9; color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: #ead9bd; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, #ff9a42, var(--pri) 55%, var(--pri-d)); color: #fff; box-shadow: 0 4px 12px rgba(244, 123, 32, .28); }
.btn-primary:hover { background: linear-gradient(135deg, #ff8f2e, var(--pri-d)); }
.btn-ok { background: var(--grn); color: #fff; }
.btn-ok:hover { background: var(--grn-d); }
.btn-danger { background: #fde1df; color: #a3261f; }
.btn-danger:hover { background: #f9c9c5; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
.btn-icon { width: 32px; padding: 0; }
.btn:focus-visible, .input:focus-visible, .nav a:focus-visible, summary:focus-visible { outline: 2px solid var(--pri); outline-offset: 2px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 15px; border-radius: 12px; margin-bottom: 16px; border: 1px solid; }
.alert .ico { margin-top: 2px; }
.alert-ok { background: #e1f6e7; border-color: #b6e3c2; color: #13692c; }
.alert-err { background: #fde8e6; border-color: #f4bcb8; color: #a3261f; }
.note { background: #fff1dd; border: 1px solid #f8d8ab; border-radius: 12px; padding: 11px 15px; color: #7a4208; font-size: 13px; margin-bottom: 14px; }

.field { margin-bottom: 15px; }
.field label { display: block; font-weight: 600; font-size: 12.5px; margin-bottom: 5px; color: #5b4a2e; }
.req { color: var(--bad); }
.input { width: 100%; height: 40px; padding: 0 12px; border: 1.5px solid var(--field); border-radius: 10px; background: #fff; color: var(--ink); }
select.input { padding-right: 8px; }
textarea.input { height: auto; padding: 10px 12px; resize: vertical; }
.input:focus { outline: none; border-color: var(--pri); box-shadow: 0 0 0 4px rgba(244, 123, 32, .15); }
.input[readonly] { background: #f7f1e6; color: var(--mut); }
.input.is-invalid { border-color: var(--bad); }
input[type=file].input { height: auto; padding: 8px 10px; }
.help { margin: 5px 0 0; font-size: 12px; color: var(--mut); }
.err { margin: 5px 0 0; font-size: 12px; color: var(--bad); font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--pri); }
.form-actions { display: flex; gap: 8px; padding-top: 18px; margin-top: 8px; border-top: 1px solid var(--line); flex-wrap: wrap; }

.toolbar { display: flex; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; align-items: center; }
.search { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.search .ico { position: absolute; left: 12px; top: 11px; color: var(--mut); width: 17px; height: 17px; }
.search .input { padding-left: 36px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #7a4b12; padding: 11px 12px; background: #fff4e4; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: #fffaf2; }
.tbl .num { width: 1%; white-space: nowrap; }
.tbl .row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.tbl form { margin: 0; }
.empty { padding: 48px 20px; text-align: center; color: var(--mut); }
.cell-user { display: flex; align-items: center; gap: 10px; }
.cell-user .avatar { width: 36px; height: 36px; background: #fff1dd; color: var(--pri-d); overflow: hidden; }
.cell-user .avatar img { width: 100%; height: 100%; object-fit: cover; }
.cell-user b { display: block; }
.cell-user span { font-size: 12.5px; color: var(--mut); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 700; line-height: 1.4; }
.badge-green { background: #dcf4e2; color: #13692c; }
.badge-gray { background: #eceff0; color: #475569; }
.badge-orange { background: #ffe6cc; color: #a24a00; }
.badge-red { background: #fde1df; color: #a3261f; }
.badge-blue { background: #ffecc7; color: #9a5b00; }

.pager { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); color: var(--mut); font-size: 13px; gap: 10px; flex-wrap: wrap; }
.pager ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.pager li a { display: block; padding: 6px 11px; border-radius: 8px; color: var(--ink); }
.pager li.active a { background: var(--pri); color: #fff; }
.pager li a:hover { background: #f4ead9; text-decoration: none; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab-btn { padding: 12px 16px; border: 0; background: none; font-weight: 600; color: var(--mut); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab-btn.active { color: var(--pri-d); border-bottom-color: var(--pri); }
.tab-pane { display: none; padding: 20px; }
.tab-pane.active { display: block; }

.photo-box { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.photo-box .preview { width: 96px; height: 96px; border-radius: 18px; background: #fff1dd; color: var(--pri-d); font-size: 28px; font-weight: 700; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.photo-box .preview img { width: 100%; height: 100%; object-fit: cover; }

/* Sambutan, KPI, dan pintasan (beranda) */
.hello { position: relative; overflow: hidden; border-radius: 20px; padding: 26px 28px; margin-bottom: 20px; color: #fff; background: linear-gradient(120deg, #0b4a24, #0f6b32 45%, #1fa64a); box-shadow: 0 14px 34px rgba(15, 107, 50, .28); }
.hello::before { content: ""; position: absolute; width: 280px; height: 280px; right: -70px; top: -110px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #ffa04d, #f47b20 65%); opacity: .95; }
.hello::after { content: ""; position: absolute; width: 150px; height: 150px; right: 120px; bottom: -80px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.hello > * { position: relative; z-index: 1; }
.hello h1 { font-size: 26px; letter-spacing: -.02em; }
.hello p { margin: 6px 0 0; opacity: .9; max-width: 56ch; }
.hello .chips { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.hello .chip { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi { padding: 16px 20px; border-left: 5px solid var(--pri); }
.kpi.g { border-left-color: var(--grn); }
.kpi .l { color: var(--mut); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.kpi .v { font-size: 28px; font-weight: 800; margin: 6px 0 2px; letter-spacing: -.02em; }
.kpi .v.dn { color: var(--bad); }
.kpi .s { font-size: 12.5px; color: var(--mut); }
.section-title { margin: 26px 0 12px; font-size: 13px; color: var(--grn-d); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; display: flex; align-items: center; gap: 10px; }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.shortcuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.shortcut { display: flex; gap: 14px; align-items: center; padding: 15px 17px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; color: var(--ink); text-decoration: none; box-shadow: var(--sh-1); }
.shortcut:hover { border-color: var(--pri); box-shadow: 0 8px 22px rgba(244, 123, 32, .18); transform: translateY(-2px); text-decoration: none; }
.shortcut .badge-ico { width: 42px; height: 42px; border-radius: 12px; background: #fff1dd; color: var(--pri-d); display: flex; align-items: center; justify-content: center; flex: none; }
.shortcut b { display: block; }
.shortcut span { font-size: 12.5px; color: var(--mut); }

.detail { display: grid; grid-template-columns: 180px minmax(0, 1fr); margin: 0; }
.detail dt, .detail dd { padding: 11px 0; margin: 0; border-bottom: 1px solid var(--line); }
.detail dt { color: var(--mut); font-weight: 600; font-size: 13px; }
.detail dd { overflow-wrap: anywhere; }
.detail dt:last-of-type, .detail dd:last-of-type { border-bottom: 0; }
.status-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.status-form .input { height: 32px; width: auto; padding: 0 8px; font-size: 13px; }
.title-link { color: var(--ink); font-weight: 700; }
.title-link:hover { color: var(--pri-d); }
.num-chip { font-family: Consolas, ui-monospace, Menlo, monospace; font-size: 12.5px; color: var(--mut); }

.forbidden { text-align: center; padding: 70px 20px; }
.forbidden .big { width: 68px; height: 68px; border-radius: 20px; background: #fff1dd; color: var(--pri); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.forbidden .big .ico { width: 32px; height: 32px; }

.scrim { display: none; }

/* Bilah bawah (HP) */
.bottom-nav { display: none; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  :root { --sidew: 236px; }
  .topbar, .content { padding-left: 20px; padding-right: 20px; }
}

/* ---------- Layar kecil: sidebar jadi laci ---------- */
@media (max-width: 980px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(310px, 86vw); transform: translateX(-102%); transition: transform .3s cubic-bezier(.22, .8, .3, 1); height: 100dvh; }
  .sidebar.open { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .4); }
  .sb-foot { display: flex; }
  .scrim.show { display: block; position: fixed; inset: 0; background: rgba(15, 30, 12, .55); z-index: 25; backdrop-filter: blur(2px); }
  .topbar { height: 60px; padding: 0 14px; }
  .topbar .burger { display: grid; }
  .topbar .today { display: none; }
  details.user .who, details.user .chev { display: none; }
  details.user > summary { padding: 3px; border: 0; background: none; }
  .content { padding: 18px 14px 40px; }
  .grid, .grid-3 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .detail { grid-template-columns: 1fr; }
  .detail dt { border-bottom: 0; padding-bottom: 0; }
  .page-head h1 { font-size: 21px; }
  .hello { padding: 22px 20px; border-radius: 18px; }
  .hello h1 { font-size: 22px; }
}

/* ---------- HP ---------- */
@media (max-width: 700px) {
  body { font-size: 15px; padding-bottom: 68px; }
  .content { padding: 16px 12px 28px; }
  .input, select.input, textarea.input { font-size: 16px; height: 44px; }
  textarea.input { height: auto; }
  .btn { height: 42px; }
  .btn-sm { height: 36px; }
  .btn-icon { width: 36px; }
  .card-pad { padding: 16px; }
  .page-head { align-items: flex-start; gap: 12px; }
  .page-head .actions { margin-left: 0; width: 100%; }
  .page-head .actions .btn { flex: 1 1 auto; }
  .toolbar { padding: 12px; }
  .search { max-width: none; min-width: 0; flex: 1 1 160px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpi { padding: 13px 14px; }
  .kpi .v { font-size: 23px; }
  .shortcuts { grid-template-columns: 1fr; }
  .form-actions .btn { flex: 1 1 auto; }
  .user-menu { position: fixed; right: 12px; left: auto; top: 64px; }

  /* Tabel menjadi kartu per baris (label diisi otomatis dari header lewat skrip di layout). */
  .tbl.rows-card, .tbl.rows-card tbody { display: block; }
  .tbl.rows-card thead { display: none; }
  .tbl.rows-card tr { display: block; margin: 10px 12px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--sh-1); }
  .tbl.rows-card tbody tr:hover { background: #fff; box-shadow: var(--sh-1); }
  .tbl.rows-card td { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); text-align: right; }
  .tbl.rows-card td:last-child { border-bottom: 0; }
  .tbl.rows-card td[data-label]::before { content: attr(data-label); flex: none; max-width: 42%; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--mut); }
  .tbl.rows-card td .row-actions { width: 100%; justify-content: flex-end; }
  .tbl.rows-card td .cv { flex: 1; min-width: 0; text-align: right; overflow-wrap: anywhere; }
  .tbl.rows-card td .cv .badge { margin: 2px 0 2px 4px; }
  .tbl.rows-card td .cv .cell-user { justify-content: flex-end; text-align: left; }
  .pager { justify-content: center; }

  .bottom-nav { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 22; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border: 0; background: none; border-radius: 12px; color: var(--mut); font-size: 11px; font-weight: 700; text-decoration: none; cursor: pointer; }
  .bottom-nav .ico { width: 22px; height: 22px; }
  .bottom-nav a.on, .bottom-nav button.on { color: var(--pri-d); background: #fff1dd; }
}

@media (max-width: 340px) {
  .kpis { grid-template-columns: 1fr; }
  .topbar h1 { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
