/* SIMPAN DI: repository/public/assets/style.css
   Gaya dasar bersama (panel, login, komponen). Gaya halaman publik ada di public.css. */
/* =========================================================
   Repository UNIRU — tema hijau, bersih, responsif
   ========================================================= */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --g-950: #04301d;
  --g-900: #063f27;
  --g-800: #075232;
  --g-700: #0a6239;
  --g-600: #0e7c4a;
  --g-500: #16975c;
  --g-400: #3fb67d;
  --g-200: #b5e6cb;
  --g-100: #dcf3e6;
  --g-50: #eff9f3;
  --gold: #c99a2e;
  --gold-50: #fdf6e3;
  --ink: #0f1d17;
  --ink-2: #33433b;
  --muted: #66756e;
  --line: #e2e8e4;
  --line-2: #eef2ef;
  --bg: #f5f8f6;
  --card: #ffffff;
  --blue: #2563eb;
  --blue-50: #eaf1ff;
  --amber: #b45309;
  --amber-50: #fff6e5;
  --red: #c2281d;
  --red-50: #fdecea;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(6, 40, 25, .06);
  --shadow: 0 1px 3px rgba(6, 40, 25, .06), 0 6px 20px -8px rgba(6, 40, 25, .12);
  --shadow-lg: 0 20px 50px -12px rgba(6, 40, 25, .28);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sidebar: 264px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font: 15px/1.6 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--g-600);
  text-decoration: none;
}

a:hover {
  color: var(--g-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -.01em;
}

h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 .3em;
}

h2 {
  font-size: 1.15rem;
  font-weight: 650;
  margin: 1.6em 0 .7em;
}

h3 {
  font-size: 1rem;
  font-weight: 650;
  margin: 1.2em 0 .5em;
}

p {
  margin: 0 0 .9em;
}

img {
  max-width: 100%;
}

code {
  font: .86em ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--line-2);
  padding: 2px 6px;
  border-radius: 5px;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}

.muted {
  color: var(--muted);
}

.small,
small {
  font-size: .85rem;
}

.mt0 {
  margin-top: 0 !important;
}

.nowrap {
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.icon {
  display: inline-block;
  flex: none;
  font-size: 1.05em;
  line-height: 1;
  vertical-align: -0.125em;
}

.icon.sm {
  font-size: .9em;
}

.icon.lg {
  font-size: 1.3em;
}

.icon.xl {
  font-size: 2.6rem;
}

:focus-visible {
  outline: 3px solid var(--g-200);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--g-600);
  color: #fff;
  font: 600 .9rem/1.2 var(--font);
  cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .05s;
  text-decoration: none !important;
  white-space: nowrap;
}

.btn:hover {
  background: var(--g-700);
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(14, 124, 74, .5);
}

.btn:active {
  transform: translateY(1px);
}

.btn.outline {
  background: #fff;
  color: var(--g-700);
  border-color: var(--g-200);
}

.btn.outline:hover {
  background: var(--g-50);
  border-color: var(--g-400);
  box-shadow: none;
}

.btn.ghost {
  background: transparent;
  color: var(--ink-2);
}

.btn.ghost:hover {
  background: var(--line-2);
  box-shadow: none;
  color: var(--ink);
}

.btn.danger {
  background: var(--red);
}

.btn.danger:hover {
  background: #a11f16;
  box-shadow: 0 4px 12px -4px rgba(194, 40, 29, .5);
}

.btn.danger-outline {
  background: #fff;
  color: var(--red);
  border-color: #f3c3be;
}

.btn.danger-outline:hover {
  background: var(--red-50);
  box-shadow: none;
}

.btn.sm {
  padding: 6px 11px;
  font-size: .82rem;
}

.btn.lg {
  padding: 12px 22px;
  font-size: 1rem;
}

.btn.block {
  display: flex;
  width: 100%;
}

.btn.icon-only {
  padding: 8px;
}

.btn[disabled],
.btn.loading {
  opacity: .65;
  pointer-events: none;
}

.btn.loading::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

button.link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--g-600);
  cursor: pointer;
  font: inherit;
}

button.link:hover {
  text-decoration: underline;
}

button.link.danger {
  color: var(--red);
}

.btn-group {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* ---------- Badge, tag ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 600;
  white-space: nowrap;
  background: var(--line-2);
  color: var(--ink-2);
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .8;
}

.badge.plain::before {
  display: none;
}

.st-published {
  background: var(--g-100);
  color: var(--g-800);
}

.st-submitted {
  background: var(--blue-50);
  color: var(--blue);
}

.st-revision {
  background: var(--red-50);
  color: var(--red);
}

.st-draft {
  background: var(--line-2);
  color: var(--muted);
}

.st-withdrawn {
  background: #e9e9e9;
  color: #444;
}

.st-none {
  background: var(--amber-50);
  color: var(--amber);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: .74rem;
  font-weight: 600;
  background: var(--amber-50);
  color: var(--amber);
  margin-left: 4px;
}

.tag.green {
  background: var(--g-50);
  color: var(--g-700);
}

/* ---------- Alert & toast ---------- */
.alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin: 0 0 16px;
  background: var(--g-50);
  color: var(--g-900);
  border: 1px solid var(--g-100);
}

.alert .icon {
  margin-top: 2px;
}

.alert.err {
  background: var(--red-50);
  color: #7f1d16;
  border-color: #f6cfcb;
}

.alert.warn {
  background: var(--amber-50);
  color: #7a3e06;
  border-color: #f6e0b8;
}

.alert.info {
  background: var(--blue-50);
  color: #1e3a8a;
  border-color: #d4e1fd;
}

.toast-stack {
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(400px, calc(100vw - 32px));
}

.toast {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--g-500);
  font-size: .9rem;
  animation: toast-in .25s ease-out;
}

.toast.err {
  border-left-color: var(--red);
}

.toast.warn {
  border-left-color: var(--gold);
}

.toast .t-body {
  flex: 1;
  word-break: break-word;
}

.toast .t-close {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.toast.hide {
  opacity: 0;
  transform: translateX(20px);
  transition: .3s;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* ---------- Kartu ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  margin-bottom: 20px;
}

.card>h2:first-child,
.card>h3:first-child,
.card-title {
  margin-top: 0;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: -4px 0 14px;
  flex-wrap: wrap;
}

.card-head h2,
.card-head h3 {
  margin: 0;
}

.card.flush {
  padding: 0;
  overflow: hidden;
}

.card.flush .card-head {
  padding: 16px 20px 0;
  margin: 0 0 12px;
}

.card.soft {
  background: var(--g-50);
  border-color: var(--g-100);
  box-shadow: none;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.layout-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  text-decoration: none !important;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

a.stat:hover {
  border-color: var(--g-200);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  color: var(--ink);
}

.stat .s-ico {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--g-50);
  color: var(--g-600);
  flex: none;
}

.stat .s-val {
  font-size: 1.5rem;
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.stat .s-lbl {
  color: var(--muted);
  font-size: .84rem;
}

.stat.blue .s-ico {
  background: var(--blue-50);
  color: var(--blue);
}

.stat.red .s-ico {
  background: var(--red-50);
  color: var(--red);
}

.stat.amber .s-ico {
  background: var(--amber-50);
  color: var(--amber);
}

.stat.hl {
  border-color: var(--g-400);
  box-shadow: 0 0 0 3px var(--g-50);
}

.progress {
  height: 8px;
  background: var(--line-2);
  border-radius: 99px;
  overflow: hidden;
}

.progress>span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--g-500), var(--g-400));
  border-radius: 99px;
  transition: width .2s;
}

/* ---------- Tabel ---------- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: .9rem;
}

.table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fafcfb;
  color: var(--muted);
  font-weight: 600;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
}

.table tbody tr {
  transition: background .1s;
}

.table tbody tr:hover td {
  background: #fafdfb;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table tr.inactive td {
  opacity: .5;
}

.table .t-title {
  font-weight: 600;
  color: var(--ink);
}

.table .t-sub {
  color: var(--muted);
  font-size: .82rem;
}

.table .actions {
  white-space: nowrap;
  text-align: right;
}

.table .actions form {
  display: inline;
}

.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.empty {
  text-align: center;
  padding: 44px 20px;
  color: var(--muted);
}

.empty .icon {
  color: var(--g-400);
  margin-bottom: 8px;
}

.empty strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 4px;
}

/* ---------- Filter & paginasi ---------- */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfc;
}

.filters .f {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 150px;
  flex: 1 1 150px;
}

.filters .f.grow {
  flex: 3 1 240px;
}

.filters label {
  font-size: .74rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.filters .f-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.input,
.filters input,
.filters select,
.form input[type=text],
.form input[type=email],
.form input[type=password],
.form input[type=number],
.form input[type=date],
.form input[type=search],
.form select,
.form textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #d3dcd7;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: .92rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}

.input:focus,
.filters input:focus,
.filters select:focus,
.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--g-500);
  box-shadow: 0 0 0 3px var(--g-100);
}

.search-input {
  position: relative;
}

.search-input .icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-input input {
  padding-left: 36px !important;
}

.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 14px 20px 0;
}

.tabs a {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: .86rem;
  font-weight: 550;
  text-decoration: none;
}

.tabs a:hover {
  background: var(--line-2);
}

.tabs a.on {
  background: var(--g-600);
  color: #fff;
}

.tabs a .cnt {
  background: rgba(0, 0, 0, .07);
  padding: 0 7px;
  border-radius: 99px;
  font-size: .76rem;
}

.tabs a.on .cnt {
  background: rgba(255, 255, 255, .22);
}

.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  font-size: .86rem;
  color: var(--muted);
}

.pager nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.pager nav a,
.pager nav span {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 550;
}

.pager nav a:hover {
  background: var(--g-50);
  color: var(--g-700);
}

.pager nav .on {
  background: var(--g-600);
  color: #fff;
}

.pager nav .gap {
  min-width: 20px;
}

.pager select {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.pager.plain {
  border-top: 0;
  padding: 18px 0;
}

/* ---------- Form ---------- */
.form {
  max-width: 720px;
}

.form.wide {
  max-width: 980px;
}

.form .field {
  margin-bottom: 16px;
}

.form label,
.form .lbl {
  display: block;
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: 6px;
  color: var(--ink-2);
}

.form .hint,
.hint {
  font-weight: 400;
  color: var(--muted);
  font-size: .82rem;
}

.form label.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 450;
  cursor: pointer;
  margin: 10px 0;
}

.form label.check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--g-600);
  flex: none;
}

.form .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0 16px;
}

.form textarea {
  min-height: 96px;
  resize: vertical;
}

.form fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 0 20px;
  padding: 18px 20px 6px;
  background: #fff;
}

.form legend {
  font-weight: 700;
  padding: 0 6px;
  font-size: .95rem;
  color: var(--g-800);
}

.req {
  color: var(--red);
}

.actions-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 0;
  background: linear-gradient(transparent, var(--bg) 30%);
  z-index: 5;
}

.dropzone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1.5px dashed #c8d5ce;
  border-radius: var(--radius-sm);
  background: #fbfdfc;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  min-height: 54px;
}

.dropzone:hover,
.dropzone.drag {
  border-color: var(--g-500);
  background: var(--g-50);
}

.dropzone input[type=file] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}

.dropzone .dz-ico {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--g-100);
  color: var(--g-700);
  display: grid;
  place-items: center;
  flex: none;
}

.dropzone .dz-text {
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.35;
  min-width: 0;
}

.dropzone .dz-text strong {
  color: var(--ink);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropzone.has-file {
  border-style: solid;
  border-color: var(--g-400);
  background: var(--g-50);
}

.dropzone.error {
  border-color: var(--red);
  background: var(--red-50);
}

.sec-list {
  display: grid;
  gap: 12px;
}

.sec-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 12px 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.sec-item .sec-name {
  font-weight: 650;
}

.sec-item .sec-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 4px;
  font-size: .82rem;
  color: var(--muted);
}

.sec-item.done {
  border-color: var(--g-200);
}

/* ---------- Modal ---------- */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(4, 30, 18, .45);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 16px;
  animation: fade .15s;
}

.modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  width: min(440px, 100%);
  padding: 22px;
  animation: pop .18s ease-out;
}

.modal h3 {
  margin: 0 0 8px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.modal p {
  color: var(--ink-2);
}

.modal .m-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(.96) translateY(6px);
  }
}

/* =========================================================
   PANEL (dashboard)
   ========================================================= */
body.panel {
  background: var(--bg);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: var(--g-900);
  color: #d7efe2;
  display: flex;
  flex-direction: column;
  z-index: 60;
  transition: transform .2s ease;
}

.sidebar .sb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  color: #fff;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.sidebar .sb-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--g-700);
  flex: none;
}

.sidebar .sb-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.sidebar .sb-name {
  font-weight: 700;
  line-height: 1.2;
}

.sidebar .sb-name small {
  display: block;
  font-weight: 400;
  color: #9fd1b6;
  font-size: .74rem;
}

.sidebar nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px;
}

.sidebar .nav-label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #79b597;
  padding: 14px 10px 6px;
  font-weight: 700;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 9px;
  color: #d7efe2;
  font-weight: 500;
  font-size: .92rem;
  text-decoration: none;
  margin-bottom: 2px;
}

.sidebar nav a:hover {
  background: rgba(255, 255, 255, .07);
  color: #fff;
}

.sidebar nav a.on {
  background: var(--g-600);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.sidebar nav a .cnt {
  margin-left: auto;
  background: var(--gold);
  color: #3b2a00;
  font-size: .72rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 99px;
}

.sidebar .sb-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--g-500);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .85rem;
  flex: none;
}

.sidebar .sb-user .u-name {
  color: #fff;
  font-weight: 600;
  font-size: .88rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar .sb-user .u-role {
  color: #9fd1b6;
  font-size: .76rem;
}

.sidebar .sb-user a {
  color: #9fd1b6;
  margin-left: auto;
}

.sidebar .sb-user a:hover {
  color: #fff;
}

.p-main {
  margin-left: var(--sidebar);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px;
  background: rgba(245, 248, 246, .85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar .tb-title {
  font-weight: 650;
  color: var(--ink-2);
}

.topbar .tb-right {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.menu-btn {
  display: none;
}

.content {
  padding: 26px 28px 60px;
  width: 100%;
  max-width: 1280px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.page-head h1 {
  margin: 0;
}

.page-head .sub {
  color: var(--muted);
  margin: 4px 0 0;
}

.crumbs {
  font-size: .84rem;
  color: var(--muted);
  margin-bottom: 6px;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.crumbs a {
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--g-700);
}

.sb-backdrop {
  display: none;
}

.p-footer {
  margin-top: auto;
  padding: 16px 28px;
  color: var(--muted);
  font-size: .8rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  position: relative;
  padding: 0 0 16px 22px;
  font-size: .88rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--g-400);
  box-shadow: 0 0 0 3px var(--g-50);
}

.timeline li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 18px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.timeline li:last-child::after {
  display: none;
}

.timeline .note {
  display: block;
  margin-top: 4px;
  padding: 8px 10px;
  background: var(--line-2);
  border-radius: 8px;
  color: var(--ink-2);
}

.kv {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 0;
  font-size: .9rem;
}

.kv>div {
  padding: 9px 0;
  border-bottom: 1px solid var(--line-2);
}

.kv>div:nth-child(odd) {
  color: var(--muted);
  font-weight: 550;
  padding-right: 12px;
}

.kv>div:nth-last-child(-n+2) {
  border-bottom: 0;
}

.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.file-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}

.file-list .f-ico {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--g-50);
  color: var(--g-600);
  flex: none;
}

.file-list li.locked .f-ico {
  background: var(--line-2);
  color: var(--muted);
}

.file-list .f-name {
  flex: 1;
  min-width: 0;
  font-weight: 550;
}

.file-list .f-name small {
  display: block;
  font-weight: 400;
  color: var(--muted);
}

.bars {
  display: grid;
  gap: 8px;
}

.bars .bar-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 70px;
  gap: 12px;
  align-items: center;
  font-size: .86rem;
}

.bars .bar-row .num {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Login */
body.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #fff;
}

.auth-side {
  background: radial-gradient(circle at 20% 20%, var(--g-600), var(--g-900) 70%);
  color: #e4f6ec;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-side::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 60px solid rgba(255, 255, 255, .05);
}

.auth-side h2 {
  color: #fff;
  font-size: 1.9rem;
  margin: 0 0 12px;
}

.auth-side ul {
  padding: 0;
  list-style: none;
}

.auth-side li {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

.auth-main {
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.auth-box {
  width: min(400px, 100%);
}

.auth-box h1 {
  font-size: 1.5rem;
}

/* Brand (dipakai halaman login & publik) */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none !important;
}

.brand .b-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--g-600);
  color: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: none;
  font-size: 1.15rem;
}

.brand .b-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  padding: 3px;
}

.brand .b-name {
  font-weight: 750;
  line-height: 1.15;
  color: var(--g-800);
}

.brand .b-name small {
  display: block;
  font-weight: 450;
  color: var(--muted);
  font-size: .76rem;
}

/* =========================================================
   RESPONSIF
   ========================================================= */
@media (max-width: 1080px) {
  .layout-side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .sidebar {
    transform: translateX(-100%);
  }

  body.sb-open .sidebar {
    transform: none;
    box-shadow: var(--shadow-lg);
  }

  body.sb-open .sb-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(4, 30, 18, .4);
    z-index: 55;
  }

  .p-main {
    margin-left: 0;
  }

  .menu-btn {
    display: inline-flex;
  }

  .topbar {
    padding: 10px 16px;
  }

  .content {
    padding: 20px 16px 60px;
  }

  body.auth {
    grid-template-columns: 1fr;
  }

  .auth-side {
    display: none;
  }
}

@media (max-width: 760px) {
  .sec-item {
    grid-template-columns: 1fr;
  }

  .kv {
    grid-template-columns: 1fr;
  }

  .kv>div:nth-child(odd) {
    padding-bottom: 0;
    border-bottom: 0;
    font-size: .8rem;
  }

  .bars .bar-row {
    grid-template-columns: 1fr 60px;
  }

  .bars .bar-row .progress {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .filters .f,
  .filters .f.grow {
    flex: 1 1 100%;
  }

  .page-head .btn-group {
    width: 100%;
  }

  /* tabel jadi kartu di HP */
  .table.stack thead {
    display: none;
  }

  .table.stack,
  .table.stack tbody,
  .table.stack tr,
  .table.stack td {
    display: block;
    width: 100%;
  }

  .table.stack tr {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
  }

  .table.stack td {
    padding: 3px 0;
    border: 0;
  }

  .table.stack td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--muted);
    font-size: .78rem;
    font-weight: 600;
  }

  .table.stack .actions {
    text-align: left;
    padding-top: 8px;
  }

  .table.stack tbody tr:hover td {
    background: transparent;
  }
}

@media print {

  .sidebar,
  .topbar,
  .site-header,
  .site-footer,
  .filters,
  .pager,
  .btn,
  .tabs,
  .toast-stack,
  .actions-bar,
  form {
    display: none !important;
  }

  .p-main {
    margin: 0;
  }

  body,
  .card {
    background: #fff;
    box-shadow: none;
  }
}

@media (max-width: 600px) {
  .hide-sm {
    display: none;
  }
}

.per-form label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-weight: 500;
}

.inline-form {
  display: inline;
}

.letter-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 14px;
  flex-wrap: wrap;
}

.stat .s-val,
.stat .s-lbl {
  display: block;
}

.sidebar .sb-user .u-name,
.sidebar .sb-user .u-role {
  display: block;
}

.abstract {
  text-align: justify;
  color: var(--ink-2);
  line-height: 1.75;
}