:root {
  --bg: #f3f6f4;
  --bg-soft: #e8efeb;
  --surface: #ffffff;
  --ink: #14241c;
  --text: #14241c;
  --muted: #5c7367;
  --line: #d5e0d9;
  --border: #d5e0d9;
  --brand: #1a6b45;
  --brand-deep: #0f4a2e;
  --brand-soft: #d9f0e4;
  --accent: #c4a035;
  --accent-soft: #f7efd6;
  --danger: #b42318;
  --warning: #b54708;
  --ok: #067647;
  --shadow: 0 10px 30px rgba(20, 36, 28, 0.08);
  --radius: 16px;
  --font: "Sora", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background:
    radial-gradient(circle at 0% 0%, rgba(26,107,69,.12), transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(196,160,53,.10), transparent 35%),
    linear-gradient(180deg, #f7faf8 0%, var(--bg) 100%);
  color: var(--ink);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }

.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: linear-gradient(180deg, var(--brand-deep), #0a3320 70%, #082819);
  color: #eef7f1;
  padding: 28px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand {
  padding: 8px 12px 24px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.sidebar-close {
  display: none;
  margin-left: auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.sidebar-backdrop {
  display: none;
}

.topbar-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--brand);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  color: var(--brand-deep);
}

.menu-toggle:active {
  background: var(--brand-soft);
}

.menu-toggle .menu-dots {
  font-size: 1.55rem;
  line-height: 1;
  color: var(--brand-deep);
  font-weight: 700;
  transform: translateY(-1px);
}
.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 10px;
  background: #000;
  flex-shrink: 0;
}
.brand-mark {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand-sub {
  margin-top: 4px;
  font-size: .72rem;
  opacity: .72;
}

.nav-group { margin: 18px 0 8px; padding: 0 12px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .55; }
.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  margin-bottom: 4px;
  color: rgba(255,255,255,.82);
  transition: .2s ease;
}
.nav a:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.nav a.active {
  background: rgba(196, 160, 53, .18);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--accent);
}
.nav a.active:hover {
  background: rgba(196, 160, 53, .24);
}
.nav .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--accent);
  opacity: .9;
}
.nav a:hover .nav-icon,
.nav a.active .nav-icon {
  opacity: 1;
  color: #fff;
}
.nav-icon svg {
  display: block;
}

.dash-salam {
  padding: 4px 2px 2px;
}
.dash-salam-text {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: var(--brand-deep);
  line-height: 1.25;
}
.dash-salam-sub {
  margin-top: 4px;
  font-size: .9rem;
  color: var(--muted);
}

.dash-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 22px 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(217,240,228,.55)),
    linear-gradient(90deg, #fff, #f4faf7);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.dash-hero::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}
.dash-hero-eyebrow {
  margin: 0 0 6px;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
}
.dash-hero-clock {
  font-variant-numeric: tabular-nums;
  letter-spacing: .06em;
  color: var(--brand-deep, #0f4a2e);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: none;
}

.topbar-live-clock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding: 6px 12px;
  border-radius: 12px;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #dce5df);
  box-shadow: var(--shadow);
  line-height: 1.15;
  min-width: 7.5rem;
}
.topbar-live-clock-date {
  font-size: .65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .02em;
  font-weight: 600;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 720px) {
  .topbar-live-clock-date { display: none; }
  .topbar-live-clock {
    min-width: 0;
    padding: 8px 10px;
  }
}
.dash-hero-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 700;
  color: var(--brand-deep);
  line-height: 1.2;
}
.dash-hero-meta {
  margin: 8px 0 0;
  font-size: .92rem;
  color: var(--muted);
}
.dash-hero-status {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  white-space: nowrap;
}
.dash-hero-status.is-on {
  background: var(--brand-soft);
  border-color: #b7e0cb;
  color: var(--brand-deep);
}
.dash-hero-status.is-done {
  background: #eaf7ef;
  border-color: #b7dfc6;
  color: var(--ok);
}
.dash-hero-status.is-off {
  background: #fff4f2;
  border-color: #f0c4bf;
  color: var(--danger);
}

.dash-absensi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.dash-absensi.is-off {
  border-color: #efc5c0;
  background: linear-gradient(180deg, #fff, #fff8f7);
}
.dash-absensi.is-on {
  border-color: #c6e5d4;
  background: linear-gradient(180deg, #fff, #f5fbf8);
}
.dash-absensi-label {
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.dash-absensi-times {
  display: flex;
  align-items: stretch;
  gap: 16px;
}
.dash-absensi-time span {
  display: block;
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.dash-absensi-time strong {
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--brand-deep);
  letter-spacing: .02em;
}
.dash-absensi-divider {
  width: 1px;
  background: var(--line);
  align-self: stretch;
}
.dash-absensi-warn {
  margin: 10px 0 0;
  font-size: .86rem;
  color: var(--danger);
  font-weight: 500;
}
.dash-absensi-ok {
  margin: 10px 0 0;
  font-size: .86rem;
  color: var(--ok);
  font-weight: 500;
}
.dash-absensi-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.dash-stats .stat {
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.dash-stats .stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(20, 36, 28, 0.1);
}
.dash-stats .stat::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -18px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,107,69,.10), transparent 70%);
  pointer-events: none;
}

@media (max-width: 720px) {
  .dash-hero,
  .dash-absensi {
    padding: 16px;
  }
  .dash-absensi-actions {
    width: 100%;
  }
  .dash-absensi-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* ===== Permission Menu (matrix profesional) ===== */
.perm-page {
  max-width: 920px;
  margin: 0 auto;
}
.perm-card {
  background: #fff;
  border: 1px solid var(--border, #dce5df);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(18, 42, 30, 0.06);
  padding: 22px 24px 20px;
}
.perm-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e8eee9;
}
.perm-card-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #14261c;
  letter-spacing: -0.02em;
}
.perm-card-req {
  margin: 4px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #c45c16;
}
.perm-link-roles {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--brand, #1a5c3a);
  text-decoration: none;
  white-space: nowrap;
}
.perm-link-roles:hover {
  text-decoration: underline;
}
.perm-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.perm-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.perm-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #3d5247;
}
.perm-star {
  color: #c62828;
}
.perm-select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfd9d3;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.95rem;
  background: #fff;
  color: #14261c;
}
.perm-select:focus {
  outline: 2px solid rgba(26, 92, 58, 0.25);
  border-color: var(--brand, #1a5c3a);
}
.perm-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted, #6b7c72);
  line-height: 1.45;
}
.perm-label-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.perm-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.perm-table-wrap {
  border: 1px solid #d5dfd8;
  border-radius: 12px;
  overflow: auto;
  background: #fff;
}
.perm-matrix {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  font-size: 0.92rem;
}
.perm-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 12px 14px;
  border: 0;
}
.perm-th-menu {
  width: 62%;
  text-align: left;
  background: #e8b923;
  color: #1a1a1a;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}
.perm-th-act {
  width: 38%;
  text-align: center;
  background: #163d2a;
  color: #fff;
}
.perm-th-act span {
  display: block;
  margin-bottom: 4px;
}
.perm-th-toggle {
  display: inline-block;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  cursor: pointer;
}
.perm-th-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}
.perm-cat-row td {
  background: #f7f9f7;
  padding: 8px 14px;
  border-top: 1px solid #e4ebe6;
  border-bottom: 1px solid #e4ebe6;
}
.perm-cat-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #b42318;
}
.perm-data-row td {
  padding: 11px 14px;
  border-bottom: 1px solid #eef2ef;
  vertical-align: middle;
  background: #fff;
  transition: background 0.15s ease;
}
.perm-data-row:hover td {
  background: #f4faf6;
}
.perm-data-row.is-on td {
  background: #f2faf5;
}
.perm-td-menu {
  text-align: left;
}
.perm-menu-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.perm-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 0;
  border-radius: 8px;
  background: #eef5f0;
  color: var(--brand, #1a5c3a);
  flex-shrink: 0;
}
.perm-menu-icon .nav-icon {
  width: 16px;
  height: 16px;
}
.perm-menu-name {
  font-weight: 600;
  color: #1c2e24;
}
.perm-td-act {
  text-align: center;
}
.perm-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  user-select: none;
}
.perm-switch-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.perm-switch-ui {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #c5cec8;
  transition: background 0.18s ease;
  flex-shrink: 0;
}
.perm-switch-ui::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s ease;
}
.perm-switch-input:checked + .perm-switch-ui {
  background: #1a7a45;
}
.perm-switch-input:checked + .perm-switch-ui::after {
  transform: translateX(20px);
}
.perm-switch-input:focus-visible + .perm-switch-ui {
  outline: 2px solid rgba(26, 122, 69, 0.45);
  outline-offset: 2px;
}
.perm-switch-text {
  min-width: 34px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #7a8a81;
}
.perm-switch-text .on {
  display: none;
  color: #1a7a45;
}
.perm-switch-input:checked ~ .perm-switch-text .on {
  display: inline;
}
.perm-switch-input:checked ~ .perm-switch-text .off {
  display: none;
}
.perm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid #e8eee9;
  margin-top: 4px;
}
.perm-btn-cancel {
  background: #d85a3a !important;
  border-color: #d85a3a !important;
  color: #fff !important;
  min-width: 100px;
}
.perm-btn-cancel:hover {
  filter: brightness(0.95);
}
.perm-btn-save {
  min-width: 120px;
  background: #0f2d4a !important;
  border-color: #0f2d4a !important;
}
.perm-btn-save:hover {
  filter: brightness(1.08);
}

@media (max-width: 640px) {
  .perm-card {
    padding: 16px 14px;
    border-radius: 12px;
  }
  .perm-matrix {
    min-width: 0;
  }
  .perm-switch-text {
    display: none;
  }
  .perm-actions {
    flex-direction: column-reverse;
  }
  .perm-btn-cancel,
  .perm-btn-save {
    width: 100%;
  }
}

/* ===== Permission list (daftar role) ===== */
.perm-list-page {
  max-width: 1000px;
  margin: 0 auto;
}
.perm-list-card {
  background: #fff;
  border: 1px solid var(--border, #dce5df);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(18, 42, 30, 0.06);
  padding: 22px 24px 18px;
}
.perm-list-head {
  margin-bottom: 16px;
}
.perm-list-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #14261c;
}
.perm-list-sub {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: var(--muted, #6b7c72);
  line-height: 1.45;
}
.perm-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.perm-list-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.perm-per-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 0.85rem;
  color: #3d5247;
}
.perm-per-label select {
  min-width: 64px;
  min-height: 36px;
  border: 1px solid #cfd9d3;
  border-radius: 8px;
  padding: 4px 8px;
  background: #fff;
}
.perm-search-wrap {
  position: relative;
  margin: 0;
  display: inline-flex;
  align-items: center;
}
.perm-search-wrap input {
  min-width: 200px;
  min-height: 38px;
  border: 1px solid #cfd9d3;
  border-radius: 10px;
  padding: 8px 12px 8px 32px;
  font-size: 0.9rem;
  background: #fff;
}
.perm-search-ico {
  position: absolute;
  left: 10px;
  color: #8a9a91;
  font-size: 0.95rem;
  pointer-events: none;
}
.perm-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.perm-btn-add {
  background: #1f9d55 !important;
  border-color: #1f9d55 !important;
  color: #fff !important;
  font-weight: 600;
}
.perm-btn-add:hover {
  filter: brightness(1.05);
}
.perm-btn-refresh {
  background: #e8772a !important;
  border-color: #e8772a !important;
  color: #fff !important;
  font-weight: 600;
}
.perm-btn-refresh:hover {
  filter: brightness(1.05);
}
.perm-list-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.86rem;
  color: #51665b;
}
.perm-pager {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.perm-page-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 8px;
  background: #f4e6df;
  color: #9a4a2a;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid #efd5c8;
}
.perm-page-btn:hover {
  background: #f0d8cc;
}
.perm-page-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
.perm-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #e8772a;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}
.perm-list-table-wrap {
  border: 1px solid #e4ebe6;
  border-radius: 12px;
  overflow: auto;
}
.perm-list-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.perm-list-table thead th {
  text-align: left;
  padding: 12px 14px;
  background: #f7faf8;
  color: #3d5247;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid #e4ebe6;
}
.perm-list-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #eef2ef;
  color: #1c2e24;
  vertical-align: middle;
}
.perm-list-table tbody tr:last-child td {
  border-bottom: 0;
}
.perm-list-table tbody tr:hover td {
  background: #f9fbfa;
}
.perm-list-table .empty {
  text-align: center;
  color: var(--muted);
  padding: 28px 14px;
}
.perm-role-name {
  font-weight: 600;
  color: #14261c;
}
.perm-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8f5ee;
  color: #1a7a45;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}
.perm-row-actions {
  text-align: right;
  white-space: nowrap;
}
.perm-inline-form {
  display: inline;
  margin: 0;
}
.perm-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: 4px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
  line-height: 1;
  vertical-align: middle;
}
.perm-icon-btn.is-edit {
  background: #f0b429;
  color: #1a1a1a;
}
.perm-icon-btn.is-del {
  background: #d64545;
  color: #fff;
}
.perm-icon-btn:hover {
  filter: brightness(1.06);
}
.perm-action-muted {
  color: #9aaba1;
  font-weight: 600;
}
.perm-list-foot {
  margin: 14px 0 0;
  font-size: 0.84rem;
  color: var(--muted, #6b7c72);
  line-height: 1.5;
}

@media (max-width: 720px) {
  .perm-list-card {
    padding: 16px 14px;
  }
  .perm-list-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .perm-list-actions {
    width: 100%;
  }
  .perm-btn-add,
  .perm-btn-refresh {
    flex: 1;
    text-align: center;
  }
  .perm-search-wrap input {
    min-width: 0;
    width: 100%;
  }
}

.main {
  padding: 28px;
  padding-bottom: 52px;
}

.app-copyright {
  position: fixed;
  left: 260px;
  right: 0;
  bottom: 0;
  z-index: 40;
  margin: 0;
  padding: 10px 16px;
  text-align: center;
  font-size: .78rem;
  letter-spacing: .02em;
  color: var(--muted, #6b7c72);
  background: rgba(247, 250, 248, .94);
  border-top: 1px solid var(--line, #dce5df);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.topbar h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.topbar p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.user-chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow);
  white-space: nowrap;
}
.user-chip strong { display: block; font-size: .9rem; }
.user-chip span { font-size: .75rem; color: var(--muted); text-transform: uppercase; }

.btn-logout {
  background: #fff;
  color: var(--danger);
  border: 1px solid #f3b0ab;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  box-shadow: var(--shadow);
}
.btn-logout:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.barcode-scan {
  background: linear-gradient(135deg, #eef8f2, #fff8e8);
  border: 1px dashed var(--brand);
  border-radius: 14px;
  padding: 14px 16px;
}
.barcode-scan input[type="text"] {
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.scan-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: stretch;
}

.scan-input-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
}

.scan-input-wrap input {
  width: 100%;
  padding-right: 46px;
}

.scan-cam-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--brand-deep, #0f4530);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.scan-cam-btn:hover {
  background: rgba(26, 107, 69, 0.1);
  color: var(--brand, #1a6b45);
}

.scan-cam-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.cam-scan-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 20, 14, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.cam-scan-modal[hidden] { display: none !important; }

.cam-scan-card {
  width: min(480px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}

.cam-scan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.cam-scan-reader {
  width: 100%;
  min-height: 260px;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
  position: relative;
}

.cam-scan-reader video {
  width: 100% !important;
  max-height: 60vh;
  object-fit: cover;
  border-radius: 12px;
}

.cam-scan-reader img {
  max-width: 100%;
}

#cam-scan-reader > div {
  border: 0 !important;
}

.cam-fallback-box {
  background: #f4faf6;
  border: 1px solid #c5d4cb;
  border-radius: 12px;
  padding: 14px;
  font-size: .9rem;
  color: #334;
}

.cam-fallback-box code {
  font-size: .82rem;
  background: #fff;
  padding: 1px 6px;
  border-radius: 6px;
  border: 1px solid #d9e5dd;
}

.cam-scan-hint {
  margin: 10px 0 0;
  font-size: .88rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}

body.cam-open { overflow: hidden; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--brand), var(--accent));
}
.stat .label { color: var(--muted); font-size: .85rem; }
.stat .value {
  margin-top: 8px;
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 650;
}
.stat .hint { margin-top: 6px; font-size: .8rem; color: var(--brand); }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}
.panel-body { padding: 20px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
  transition: .15s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-accent { background: var(--accent); color: #1a1405; }
.btn-accent:hover { filter: brightness(1.05); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 7px 12px; font-size: .85rem; border-radius: 10px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.form-grid { display: grid; gap: 14px; }
.form-row { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
label { display: grid; gap: 6px; font-size: .88rem; color: var(--muted); }

/* Checkbox + teks sejajar (hindari input width:100% yang merentangkan centang) */
.form-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfa;
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
  font-size: .9rem;
  line-height: 1.4;
  user-select: none;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.form-check:hover {
  border-color: rgba(26, 95, 74, .35);
  background: #fff;
}
.form-check--primary:has(input:checked),
.form-check:has(input:checked) {
  border-color: rgba(26, 95, 74, .55);
  background: linear-gradient(160deg, #f3faf6, #e8f5ee);
  box-shadow: 0 0 0 3px rgba(26, 95, 74, .1);
}
.form-check input[type="checkbox"] {
  width: 1.15rem !important;
  height: 1.15rem !important;
  min-width: 1.15rem !important;
  max-width: 1.15rem !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  flex: 0 0 auto;
  accent-color: #1a5f4a;
  cursor: pointer;
}
.form-check span {
  flex: 1 1 auto;
  color: var(--ink);
}

/* Toggle VIP di form meja — hindari input width:100% yang merusak checkbox */
.meja-vip-option {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  color: inherit;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  user-select: none;
}
.meja-vip-option:hover {
  border-color: rgba(196, 160, 53, .55);
}
.meja-vip-option.is-on,
.meja-vip-option:has(input:checked) {
  border-color: #c4a035;
  background: linear-gradient(160deg, #fffdf6, #f7ebc8);
  box-shadow: 0 0 0 3px rgba(196, 160, 53, .18);
}
.meja-vip-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none;
}
.meja-vip-option__mark {
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin-top: 1px;
  border-radius: 6px;
  border: 2px solid #b8a46a;
  background: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: .15s ease;
}
.meja-vip-option.is-on .meja-vip-option__mark,
.meja-vip-option:has(input:checked) .meja-vip-option__mark {
  background: #c4a035;
  border-color: #c4a035;
}
.meja-vip-option.is-on .meja-vip-option__mark::after,
.meja-vip-option:has(input:checked) .meja-vip-option__mark::after {
  content: '';
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.meja-vip-option__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.meja-vip-option__title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink, #14241c);
  line-height: 1.3;
}
.meja-vip-option__desc {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.4;
  font-weight: 400;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 11px 12px;
  color: var(--ink);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26,107,69,.15);
}

/* Opsi Main Tanpa Batas di booking */
.booking-mode-option {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7faf8;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.booking-mode-option:hover {
  border-color: rgba(26,107,69,.35);
}
.booking-mode-option.is-on {
  border-color: var(--brand);
  background: rgba(26,107,69,.08);
  box-shadow: 0 0 0 3px rgba(26,107,69,.12);
}
.booking-mode-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin: 2px 0 0;
  padding: 0;
  flex-shrink: 0;
  accent-color: var(--brand);
  cursor: pointer;
  border-radius: 4px;
  box-shadow: none;
}
.booking-mode-option__body {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.booking-mode-option__title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.booking-mode-option__desc {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 400;
}
#durasi_wrap.is-disabled-mode {
  pointer-events: none;
}

/* Pilihan shift pegawai — chip toggle (bukan checkbox native yang ter-stretch) */
.shift-assign-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 240px;
  max-width: 340px;
}
.shift-chip-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.shift-chip {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  color: var(--ink);
  font-size: .9rem;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
  user-select: none;
}
.shift-chip:hover {
  border-color: rgba(26, 107, 69, .45);
  background: #f7fbf8;
}
.shift-chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px !important;
  height: 1px;
  margin: 0;
  padding: 0;
  pointer-events: none;
}
.shift-chip-mark {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 2px solid #c5d0c9;
  background: #fff;
  position: relative;
  transition: border-color .15s ease, background .15s ease;
}
.shift-chip-mark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .12s ease;
}
.shift-chip.is-on {
  border-color: var(--brand);
  background: #e8f8ef;
  box-shadow: 0 0 0 3px rgba(26, 107, 69, .12);
}
.shift-chip.is-on .shift-chip-mark {
  border-color: var(--brand);
  background: var(--brand);
}
.shift-chip.is-on .shift-chip-mark::after {
  transform: rotate(45deg) scale(1);
}
.shift-chip-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.shift-chip-name {
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.shift-chip-time {
  font-size: .78rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .01em;
}
.shift-assign-save {
  align-self: flex-start;
}

.money-input {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}

.money-prefix {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.money-input input {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  width: 100%;
  min-width: 0;
  box-shadow: none;
  outline: none;
}

.money-input input:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

.money-input.is-locked,
.money-input input.is-locked {
  opacity: 0.85;
  cursor: not-allowed;
}

.money-input input.is-locked {
  color: var(--brand, #1a6b45);
}

/* Diskon hanya admin — UI terkunci untuk kasir */
.money-input.diskon-locked {
  opacity: 0.62;
  pointer-events: none;
  cursor: not-allowed;
  filter: grayscale(0.25);
  background: #eef2ef;
  border-radius: 10px;
  padding: 6px 10px;
  user-select: none;
}
.money-input.diskon-locked input {
  cursor: not-allowed;
  color: #7a8a80;
}

.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
  vertical-align: middle;
}
th {
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #f8fbf9;
}
tr:hover td { background: #fafcfb; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-ok { background: #e8f8ef; color: var(--ok); }
.badge-warn { background: #fff4e5; color: var(--warning); }
.badge-danger { background: #fdecec; color: var(--danger); }
.badge-info { background: var(--brand-soft); color: var(--brand-deep); }

.dash-kasir-monitor .dash-kasir-table td { vertical-align: top; }
.dash-kasir-monitor tr.is-busy td { background: #fffaf3; }
.dash-kasir-monitor tr.is-on td { background: #f6fbf8; }
.dash-ops-monitor .dash-ops-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding: 0 2px;
  font-size: 0.95rem;
}
.dash-ops-monitor .dash-ops-table td { vertical-align: top; font-size: 0.9rem; }
.dash-ops-monitor .dash-ops-table th { font-size: 0.78rem; }
@media (max-width: 900px) {
  .dash-kasir-monitor .table-wrap { overflow-x: auto; }
  .dash-kasir-monitor .dash-kasir-table { min-width: 720px; }
  .dash-ops-monitor .grid.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
  }
  .dash-ops-monitor .table-wrap { overflow-x: auto; }
  .dash-ops-monitor .dash-ops-table { min-width: 480px; }
}

.alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: .92rem;
}
.alert-success { background: #e8f8ef; color: var(--ok); border: 1px solid #abefc6; }
.alert-error { background: #fdecec; color: var(--danger); border: 1px solid #fecdca; }

.meja-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.meja-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(160deg, #fff, #f4faf6);
  cursor: pointer;
  transition: .18s ease;
}
.meja-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.meja-card.selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26,107,69,.18);
}
.meja-card.digunakan {
  opacity: 1;
  background: linear-gradient(160deg, #fff5f5, #ffe8e8);
  border-color: #e8a0a0;
  box-shadow: 0 0 0 1px rgba(192, 57, 43, .12);
}
.meja-card.digunakan h3,
.meja-card.digunakan .price {
  color: #b42318;
}
.meja-card.maintenance { opacity: .55; background: #f5f5f5; }
.meja-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.meja-card .price { color: var(--brand); font-weight: 700; }
.meja-card .status { margin-top: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
form.meja-card {
  margin: 0;
  text-align: left;
}
form.meja-card button {
  cursor: pointer;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.menu-item.is-offpage {
  display: none !important;
}
.menu-pager {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.menu-pager-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafafa;
}
.menu-pager-meta {
  text-align: center;
  flex: 1;
  min-width: 120px;
}
.menu-pager-meta strong {
  display: block;
  font-size: .92rem;
}
.menu-pager-meta small {
  color: var(--muted);
  font-size: .78rem;
}
.menu-pager-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.menu-pager-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.menu-pager-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #c9c9c9;
  cursor: pointer;
}
.menu-pager-dot.is-active {
  background: var(--brand);
  transform: scale(1.15);
}
.menu-pager--single .menu-pager-bar {
  opacity: .85;
}
.menu-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  cursor: pointer;
  transition: .15s ease;
  display: flex;
  flex-direction: column;
}
.menu-item:hover { border-color: var(--brand); }
.menu-item--clickable:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.menu-item--clickable:active {
  transform: scale(.98);
}
.menu-item--clickable:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.menu-item h4 { margin: 0 0 4px; font-size: .95rem; }
.menu-item .price { color: var(--brand); font-weight: 700; font-size: .9rem; }
.menu-item .meta { color: var(--muted); font-size: .75rem; margin-top: 6px; }
.menu-item-hint {
  margin-top: auto;
  padding-top: 10px;
  font-size: .75rem;
  color: var(--brand);
  font-weight: 600;
}
.menu-item-hint--habis {
  color: var(--muted);
  font-weight: 500;
}
.menu-item.habis {
  opacity: .55;
  background: #f5f5f5;
  cursor: not-allowed;
  pointer-events: none;
}
.menu-item.habis:hover { border-color: var(--line); }
.menu-item.habis .price { color: var(--muted); }

.kasir-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
  align-items: start;
}

/* Keranjang: sticky + scroll sendiri agar bayar tidak tertutup / tidak ikut scroll menu */
.kasir-cart-panel {
  position: sticky;
  top: 16px;
  align-self: start;
  /* Sisakan ruang topbar area + copyright fixed di bawah */
  max-height: calc(100dvh - 16px - 52px);
  max-height: calc(100vh - 16px - 52px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 5;
}

.kasir-cart-panel > .panel-head {
  flex-shrink: 0;
}

.kasir-cart-panel > .panel-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.cart-line strong { display: block; }
.cart-line small { color: var(--muted); }

.cart-line-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.cart-line-right form {
  margin: 0;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7faf8;
}

.qty-stepper--cart {
  justify-self: center;
}

.qty-stepper form {
  margin: 0;
  display: inline-flex;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--brand-deep);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}

.qty-btn:hover {
  filter: brightness(1.08);
}

.qty-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.qty-val {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: .95rem;
  color: var(--brand-deep);
}

.cart-total {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.cart-total .amount {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand-deep);
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.tab {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
  font-size: .88rem;
}
.tabs-subkat {
  margin-top: -8px;
  margin-bottom: 16px;
}
.tabs-subkat .tab {
  font-size: .82rem;
  padding: 6px 12px;
}
.tabs-grup {
  margin-bottom: 10px;
}

.menu-list-search .sr-only,
.pesan-menu-search .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 24px;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(196,160,53,.22), transparent 42%),
    radial-gradient(ellipse at 90% 80%, rgba(26,107,69,.25), transparent 45%),
    linear-gradient(135deg, rgba(15,74,46,.92), rgba(10,40,28,.88)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.login-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
  border-top: 4px solid var(--accent);
  position: relative;
}
.login-card-wide {
  width: min(520px, 100%);
}
.outlet-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.outlet-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 12px;
  background: #fff;
  cursor: pointer;
  display: grid;
  gap: 4px;
  transition: .15s ease;
}
.outlet-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.outlet-card strong {
  color: var(--ink);
  font-size: .95rem;
}
.outlet-card span {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}
.outlet-card.active,
.outlet-card:has(input:checked) {
  border-color: var(--accent);
  background: linear-gradient(180deg, #fff, var(--accent-soft));
  box-shadow: 0 0 0 3px rgba(196,160,53,.18);
}
.outlet-card.active strong,
.outlet-card:has(input:checked) strong {
  color: var(--brand-deep);
}

.pay-method-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pay-method-pick--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .pay-method-pick--3 {
    grid-template-columns: 1fr;
  }
}

.pay-method-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 12px;
  background: #fff;
  cursor: pointer;
  display: grid;
  gap: 4px;
  transition: .15s ease;
  margin: 0;
}

.pay-method-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pay-method-card strong {
  color: var(--ink);
  font-size: .98rem;
}

.pay-method-card span {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}

.pay-method-card.active,
.pay-method-card:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(26,107,69,.12);
}

.transfer-rek {
  margin-top: 12px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid #e8d59a;
  background: var(--accent-soft, #fbf6e8);
  display: grid;
  gap: 8px;
}

.transfer-rek--modal {
  margin-top: 0;
}
.transfer-rek--modal + .transfer-rek--modal {
  margin-top: 10px;
}

.transfer-rek-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.transfer-rek-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  font-size: .92rem;
}

.transfer-rek-row span {
  color: var(--muted);
}

.transfer-rek-nomor {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .04em;
  font-size: 1.05rem;
}

.transfer-rek small {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.4;
}

/* Popup QRIS kasir */
.qris-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 28, 22, .58);
  backdrop-filter: blur(3px);
}

.qris-modal[hidden] {
  display: none !important;
}

.qris-modal-box {
  width: min(420px, 100%);
  max-height: min(92vh, 780px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: rjConfirmIn .22s ease;
}

.qris-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.qris-modal-head h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--brand-deep);
}

.qris-modal-body {
  padding: 16px;
  overflow: auto;
  display: grid;
  gap: 14px;
}

.qris-amount-box {
  text-align: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eaf6f0;
  border: 1px solid #b7dcc8;
}

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

.qris-amount-value {
  margin-top: 4px;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--brand-deep);
  font-family: var(--display);
}

.qris-amount-hint {
  margin-top: 6px;
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.4;
}

.qris-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--brand-deep);
  background: #d4eddf;
  border: 1px solid #9fd4b3;
}

.qris-wait {
  display: block;
  margin-top: 10px;
  font-size: .82rem;
  font-weight: 600;
  color: #0b6b3a;
  animation: qris-pulse 1.4s ease-in-out infinite;
}

.qris-wait[hidden] {
  display: none !important;
}

@keyframes qris-pulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}

.qris-code-wrap {
  display: grid;
  place-items: center;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.qris-code-img {
  width: min(280px, 100%);
  height: auto;
  display: block;
  border-radius: 8px;
  transition: opacity .2s ease;
}

.qris-loading,
.qris-error {
  margin-top: 8px;
  font-size: .85rem;
  text-align: center;
}

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

.qris-error {
  color: #b42318;
}

.qris-modal-note {
  margin: 0;
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.45;
  text-align: center;
}

body.qris-modal-open {
  overflow: hidden;
}

.meja-cafe-pick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}

.meja-cafe-card {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 8px;
  background: #fff;
  cursor: pointer;
  display: grid;
  gap: 2px;
  text-align: center;
  transition: .15s ease;
  min-height: 72px;
  align-content: center;
}

.meja-cafe-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.meja-cafe-card strong {
  font-size: .92rem;
  color: var(--ink);
  line-height: 1.2;
}

.meja-cafe-card span {
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.3;
}

.meja-cafe-card:hover {
  border-color: var(--brand);
}

.meja-cafe-card:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 3px rgba(26,107,69,.12);
}

.meja-cafe-card--disabled {
  opacity: 1;
  background: linear-gradient(160deg, #fff5f5, #ffe8e8);
  border-color: #e8a0a0;
  border-style: solid;
  cursor: not-allowed;
  pointer-events: none;
  filter: none;
}

.meja-cafe-card--disabled strong {
  color: #b42318;
}

.meja-cafe-card--disabled span {
  color: #c0392b;
  font-weight: 600;
}

.nomor-meja-block {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7faf8;
}

.meja-cafe-card--busy {
  padding: 0;
  border-style: solid;
  border-color: #d4a017;
  background: #fff6e5;
  cursor: pointer;
}

.meja-cafe-card--busy button {
  width: 100%;
  height: 100%;
  min-height: 72px;
  margin: 0;
  padding: 12px 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  gap: 2px;
  align-content: center;
  text-align: center;
  font: inherit;
  color: inherit;
}

.meja-cafe-card--busy strong { color: #8a5a00; }
.meja-cafe-card--busy span { color: #a67c1a; }
.meja-cafe-card--busy:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 2px rgba(26,107,69,.1);
}

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

@media (max-width: 640px) {
  .outlet-pick { grid-template-columns: 1fr; }
}
.login-card .login-brand {
  text-align: center;
  margin-bottom: 8px;
}
.login-card .login-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  border-radius: 18px;
  background: #000;
  margin: 0 auto 14px;
  display: block;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.login-card .logo {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-deep);
  margin: 0 0 4px;
  text-align: center;
}
.login-card .tag {
  color: var(--muted);
  margin: 0 0 28px;
  text-align: center;
}
.login-card .btn { width: 100%; margin-top: 8px; }
.login-hint {
  margin-top: 18px;
  padding: 12px;
  background: var(--bg-soft);
  border-radius: 12px;
  font-size: .82rem;
  color: var(--muted);
  border-left: 3px solid var(--accent);
}
.password-field {
  position: relative;
  display: block;
}
.password-field input {
  width: 100%;
  padding-right: 46px;
}
.password-toggle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.password-toggle:hover {
  background: var(--bg-soft);
  color: var(--brand-deep);
}
.password-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

.diskon-persen-hint {
  display: block;
  margin-top: 6px;
  font-size: .82rem;
  color: var(--brand-deep);
  font-weight: 600;
}
.diskon-persen-hint[hidden] {
  display: none !important;
}

.admin-outlet-tabs {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.topbar-outlet-switch {
  margin: 0;
}
.admin-kasir-switch .admin-outlet-tabs .btn {
  min-width: 110px;
}

.pay-success-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 40, 28, 0.55);
  backdrop-filter: blur(3px);
}
.pay-success-modal.is-hidden {
  display: none !important;
}
.pay-success-card {
  width: min(380px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 28px 24px 22px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  animation: loginPop .22s ease;
}
.pay-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #e8f8ef;
  color: var(--ok);
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 0 0 8px rgba(26, 107, 69, .08);
}
.pay-success-card h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  color: var(--brand-deep);
  font-size: 1.4rem;
}
.pay-success-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.45;
}
.pay-success-amount-label {
  margin-top: 4px;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  font-weight: 600;
}
.pay-success-amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--brand-deep);
  font-family: var(--display);
}
.pay-success-meta {
  margin-top: 6px;
  font-size: .82rem;
  color: var(--muted);
}

.qris-check-modal {
  position: fixed;
  inset: 0;
  z-index: 360;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 28, 22, .58);
  backdrop-filter: blur(3px);
}
.qris-check-modal[hidden] {
  display: none !important;
}
.qris-check-card {
  width: min(400px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 26px 22px 20px;
  text-align: center;
  box-shadow: 0 22px 60px rgba(0,0,0,.3);
  animation: loginPop .2s ease;
}
.qris-check-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 800;
}
.qris-check-icon--ask {
  background: #eef6ff;
  color: #1d4f91;
}
.qris-check-icon--warn {
  background: #fdecec;
  color: var(--danger);
}
.qris-check-card h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  color: var(--brand-deep);
  font-size: 1.25rem;
}
.qris-check-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
}
.qris-check-amount {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--brand-deep);
  font-family: var(--display);
  margin-bottom: 4px;
}
.qris-check-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.qris-check-actions .btn {
  flex: 1;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 40, 28, 0.55);
}
.login-modal.is-hidden {
  display: none;
}
.login-modal-card {
  width: min(380px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 28px 24px 22px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
  animation: loginPop .2s ease;
}
.login-modal-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #fdecec;
  color: var(--danger);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 700;
}
.login-modal-icon-ok {
  background: #e8f8ef;
  color: var(--ok);
}
.login-modal-card-ok .btn-primary {
  background: var(--brand);
}
.login-modal-card h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  color: var(--ink);
  font-size: 1.35rem;
}
.login-modal-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.5;
}
.login-modal-card .btn {
  width: 100%;
}
@keyframes loginPop {
  from { transform: scale(.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.struk-brand {
  margin-bottom: 18px;
}
.struk-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  border-radius: 14px;
  background: #000;
  margin: 0 auto 10px;
  display: block;
}

/* ===== Branding usaha — opsi logo ===== */
.brand-logo-block {
  border: 1px solid var(--border, #dce5df);
  border-radius: 14px;
  padding: 16px;
  background: #f7faf8;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.brand-logo-block-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-logo-block-head strong {
  font-size: 0.95rem;
  color: #14261c;
}
.brand-logo-block-head span {
  font-size: 0.82rem;
  color: var(--muted, #6b7c72);
}
.brand-logo-preview-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 16px;
  background: #fff;
  border: 1px dashed #c5d4cb;
  border-radius: 12px;
}
.brand-logo-preview-box img {
  max-width: 120px;
  max-height: 100px;
  object-fit: contain;
}
.brand-logo-preview-box.is-empty {
  border-style: solid;
  background: #f0f4f1;
}
.brand-logo-empty {
  text-align: center;
  color: #5a6f63;
}
.brand-logo-empty span {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
}
.brand-logo-empty small {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--muted);
}
.brand-logo-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.brand-logo-opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #d5dfd8;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.brand-logo-opt:hover {
  border-color: #1a5c3a;
}
.brand-logo-opt.is-active {
  border-color: #1a5c3a;
  background: #f2faf5;
  box-shadow: 0 0 0 2px rgba(26, 92, 58, 0.12);
}
.brand-logo-opt input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: #1a5c3a;
}
.brand-logo-opt-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.brand-logo-opt-body strong {
  font-size: 0.9rem;
  color: #14261c;
  font-weight: 700;
}
.brand-logo-opt-body small {
  font-size: 0.8rem;
  color: var(--muted, #6b7c72);
  line-height: 1.4;
}
.brand-logo-file {
  margin-top: 8px;
  width: 100%;
  font-size: 0.85rem;
}
.struk-title {
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--brand-deep);
}
.struk-sub {
  color: var(--ink);
  margin: 4px 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--sans, 'Sora', system-ui, sans-serif);
}
.struk-alamat {
  color: var(--ink);
  margin: 6px auto 0;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.45;
  max-width: 320px;
  font-family: var(--sans, 'Sora', system-ui, sans-serif);
}

.struk-panel {
  font-family: var(--sans, 'Sora', system-ui, sans-serif);
  font-weight: 700;
  font-size: 1.05rem;
}

.struk-panel,
.struk-panel *:not(.btn):not(.btn *) {
  font-weight: 700 !important;
}

.struk-meta,
.struk-totals {
  text-align: left;
  font-size: 1.05rem;
  line-height: 1.75;
}

.struk-meta {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.struk-totals {
  margin-top: 18px;
}

.struk-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.struk-row > span {
  color: var(--ink);
  flex-shrink: 0;
}

.struk-row > strong {
  text-align: right;
  font-weight: 700;
  word-break: break-word;
  color: var(--ink);
}

.struk-row--total {
  font-size: 1.3rem;
  border-top: 2px solid var(--ink);
  padding-top: 8px;
  margin-top: 6px;
  margin-bottom: 4px;
}

.struk-row--total > span,
.struk-row--total > strong {
  color: var(--ink);
  font-weight: 800;
}

/* Daftar item struk — Qty & Subtotal terpisah jelas */
.struk-items {
  text-align: left;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  margin: 4px 0 0;
}

.struk-items-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 4px 0 8px;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px dashed var(--line);
  margin-bottom: 6px;
}

.struk-items-head-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.struk-col-qty {
  display: inline-block;
  min-width: 2.2rem;
  text-align: center;
}

.struk-col-sub {
  display: inline-block;
  min-width: 5.5rem;
  text-align: right;
  white-space: nowrap;
}

.struk-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dotted #e2e8e4;
}

.struk-item:last-child {
  border-bottom: 0;
}

.struk-item-name {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--ink);
}

.struk-item-name small,
.struk-item-hint {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .01em;
  color: var(--ink);
  background: #f0f6f2;
  border-radius: 999px;
  line-height: 1.3;
}

.struk-item-nums {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  padding-top: 1px;
}

.struk-item-nums .struk-col-qty {
  font-weight: 700;
  color: var(--ink);
}

.struk-item-nums .struk-col-sub {
  font-weight: 800;
  color: var(--ink);
}

@media print {
  /* Gulungan thermal 58mm: tinggi sangat panjang agar 1 pesanan = 1 struk (tanpa page 2) */
  @page {
    size: 58mm 5000mm;
    margin: 0;
  }

  html, body {
    width: 58mm !important;
    max-width: 58mm !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    overflow: visible !important;
  }

  .sidebar,
  .topbar,
  .no-print,
  .alert,
  .sidebar-backdrop,
  .pay-success-modal,
  .app-copyright,
  .alarm-toggle,
  #btn-alarm-meja {
    display: none !important;
  }
  .app-shell {
    display: block !important;
    width: 58mm !important;
    max-width: 58mm !important;
    height: auto !important;
    overflow: visible !important;
  }
  .main {
    display: block !important;
    width: 58mm !important;
    max-width: 58mm !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }
  .struk-panel {
    box-shadow: none !important;
    border: none !important;
    width: 58mm !important;
    max-width: 58mm !important;
    margin: 0 !important;
    padding: 2mm 2mm 4mm !important;
    font-family: 'Sora', 'Segoe UI', system-ui, sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    page-break-inside: auto !important;
    break-inside: auto !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
    page-break-before: avoid !important;
    break-before: avoid !important;
  }
  .struk-panel .panel-body {
    padding: 0 !important;
    height: auto !important;
    overflow: visible !important;
  }
  .struk-panel *:not(.btn):not(.btn *) {
    font-weight: 700 !important;
    color: #000 !important;
  }
  .struk-brand,
  .struk-item,
  .struk-row {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .struk-items,
  .struk-meta,
  .struk-totals {
    page-break-inside: auto !important;
    break-inside: auto !important;
  }
  .struk-logo {
    width: 48px !important;
    height: 48px !important;
    border-radius: 8px !important;
  }
  .struk-title {
    font-family: var(--display), Georgia, serif !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    letter-spacing: -.01em;
  }
  .struk-sub {
    font-size: 11px !important;
  }
  .struk-alamat {
    font-size: 10px !important;
    line-height: 1.35 !important;
    max-width: 100% !important;
  }
  .struk-meta,
  .struk-totals {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }
  .struk-row {
    gap: 8px !important;
  }
  .struk-row > strong {
    white-space: nowrap;
  }
  .struk-items-head {
    font-size: 10px !important;
    gap: 8px !important;
    padding-bottom: 4px !important;
  }
  .struk-items-head-right {
    gap: 10px !important;
  }
  .struk-col-qty {
    min-width: 1.8rem !important;
  }
  .struk-col-sub {
    min-width: 4.5rem !important;
  }
  .struk-item {
    gap: 8px !important;
    padding: 6px 0 !important;
  }
  .struk-item-name {
    font-size: 12.5px !important;
    font-weight: 700 !important;
  }
  .struk-item-name small,
  .struk-item-hint {
    margin-top: 2px !important;
    padding: 1px 5px !important;
    font-size: 9.5px !important;
    font-weight: 700 !important;
    background: transparent !important;
    color: #000 !important;
    border-radius: 0 !important;
  }
  .struk-item-nums {
    gap: 10px !important;
  }
  .struk-item-nums .struk-col-qty {
    font-size: 12px !important;
  }
  .struk-item-nums .struk-col-sub {
    font-size: 12px !important;
    font-weight: 800 !important;
  }
  .struk-row--total {
    font-size: 14px !important;
  }
  .struk-row--total > span,
  .struk-row--total > strong {
    font-weight: 800 !important;
  }
}

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

.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* HP / iPad / tablet: sidebar drawer, konten full + tombol ⋮ selalu ada */
@media (max-width: 1400px), ((hover: none) and (pointer: coarse)) {
  .app-shell { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-flex; }
  .sidebar-close { display: inline-flex; align-items: center; justify-content: center; }

  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(8, 20, 14, .45);
    z-index: 90;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(300px, 86vw);
    height: 100vh;
    height: 100dvh;
    z-index: 100;
    transform: translateX(-105%);
    transition: transform .25s ease;
    border-radius: 0;
    box-shadow: 8px 0 30px rgba(0,0,0,.25);
    will-change: transform;
  }

  body.nav-open .sidebar {
    transform: translateX(0);
  }

  body.nav-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.nav-open {
    overflow: hidden;
  }

  .main {
    padding: 16px;
    padding-bottom: 52px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .app-copyright {
    left: 0;
  }

  .topbar {
    align-items: flex-start;
    gap: 12px;
  }

  .topbar-actions {
    flex-shrink: 0;
  }

  .grid-2, .grid-3, .grid-4, .form-row {
    grid-template-columns: 1fr;
  }

  /* iPad / tablet landscape: kasir tetap 2 kolom seperti layar full */
  .kasir-layout {
    grid-template-columns: 1.35fr 1fr;
  }
}

/* HP portrait: susun vertikal */
@media (max-width: 900px) {
  .kasir-layout {
    grid-template-columns: 1fr;
  }

  .kasir-cart-panel {
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
  }

  .kasir-cart-panel > .panel-body {
    overflow: visible;
    max-height: none;
  }

  .menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .topbar-actions {
    width: auto;
  }
}

@media (max-width: 640px) {
  .user-chip span { display: none; }
  .user-chip {
    padding: 8px 12px;
  }
  .topbar h1 { font-size: 1.35rem; }
  .topbar p { display: none; }
  .topbar {
    flex-wrap: wrap;
  }
  .topbar-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }
  .topbar-live-clock {
    order: 1;
    margin-left: auto;
  }
  .btn-logout {
    padding: 8px 14px;
  }
  .admin-outlet-tabs .btn {
    min-width: 0;
    padding: 8px 12px;
  }
  .menu-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
}

.wait-pay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.wait-pay-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  display: grid;
  gap: 8px;
}
.wait-pay-card--due {
  border-color: #e8c48a;
  background: #fff8f0;
}
.wait-pay-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.wait-pay-meta {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.45;
}
.wait-pay-items {
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7faf8;
}
.wait-pay-items-title {
  margin-bottom: 2px;
  color: var(--brand-deep);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.wait-pay-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: .8rem;
}
.wait-pay-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.wait-pay-item strong {
  flex-shrink: 0;
  color: var(--brand-deep);
  font-size: .76rem;
}
.wait-pay-additions {
  display: grid;
  gap: 6px;
}
.wait-pay-addition {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 7px;
  padding: 8px 10px;
  border: 1px solid #e8d59a;
  border-radius: 10px;
  background: var(--accent-soft);
  color: #76500b;
  font-size: .78rem;
}
.wait-pay-addition strong {
  overflow-wrap: anywhere;
}
.wait-pay-addition small {
  grid-column: 2;
  color: var(--muted);
  font-size: .7rem;
}
.wait-pay-order-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.wait-pay-order-actions .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}
.wait-pay-order-actions .wait-pay-tambah-jam {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 8px 10px;
  border: 1px dashed #cfe5d7;
  border-radius: 10px;
  background: #f7faf8;
}
.wait-pay-order-actions .wait-pay-tambah-jam select {
  flex: 1 1 100px;
  min-width: 90px;
  width: auto;
}
.wait-pay-order-actions .wait-pay-tambah-jam .btn {
  width: auto;
  flex: 0 0 auto;
}
.wait-pay-detail-btn {
  justify-content: center;
  border-color: #b7dfc6;
  background: #f1faf5;
  color: var(--brand-deep);
  font-weight: 700;
}
.wait-pay-detail-btn:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
}
.kasir-add-mode {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #e8d59a;
  border-radius: 12px;
  background: var(--accent-soft);
}
.kasir-add-mode > div {
  display: grid;
  gap: 3px;
}
.kasir-add-mode strong {
  color: var(--brand-deep);
  font-size: .9rem;
}
.kasir-add-mode small {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
}
.wait-pay-total {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-deep);
}

.order-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 420;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 30, 20, .62);
  backdrop-filter: blur(4px);
}
.order-detail-modal[hidden] {
  display: none !important;
}
body.order-detail-open {
  overflow: hidden;
}
.order-detail-dialog {
  width: min(560px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
}
.order-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
}
.order-detail-eyebrow {
  display: block;
  margin-bottom: 3px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .78;
}
.order-detail-head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
}
.order-detail-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 10px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1.45rem;
  cursor: pointer;
}
.order-detail-body {
  overflow-y: auto;
  padding: 18px 20px;
}
.order-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.order-detail-meta > div {
  display: grid;
  gap: 2px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7faf8;
}
.order-detail-meta span {
  color: var(--muted);
  font-size: .7rem;
}
.order-detail-meta strong {
  overflow-wrap: anywhere;
  font-size: .82rem;
}
.order-detail-section {
  margin-top: 16px;
}
.order-detail-section h4 {
  margin: 0 0 8px;
  color: var(--brand-deep);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.order-detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 2px;
  border-bottom: 1px dashed var(--line);
}
.order-detail-item > div {
  display: grid;
  gap: 2px;
}
.order-detail-item small {
  color: var(--muted);
}
.order-detail-addition {
  display: grid;
  gap: 5px;
  margin-bottom: 8px;
  padding: 11px 12px;
  border: 1px solid #e8d59a;
  border-radius: 12px;
  background: var(--accent-soft);
}
.order-detail-addition-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.order-detail-source {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
}
.order-detail-addition small,
.order-detail-empty {
  color: var(--muted);
  font-size: .75rem;
}
.order-detail-empty {
  padding: 12px;
  border-radius: 10px;
  background: var(--bg-soft);
  text-align: center;
}
.order-detail-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: 12px;
  background: var(--brand-deep);
  color: #fff;
}
.order-detail-total strong {
  font-family: var(--display);
  font-size: 1.35rem;
}
.order-detail-footer {
  display: flex;
  justify-content: flex-end;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: #f7faf8;
}

@media (max-width: 520px) {
  .order-detail-modal {
    padding: 10px;
  }
  .order-detail-dialog {
    max-height: calc(100dvh - 20px);
    border-radius: 16px;
  }
  .order-detail-meta {
    grid-template-columns: 1fr;
  }
}

.pay-now-box {
  display: grid;
  gap: 12px;
}

.booking-meja-pick {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.booking-meja-card span {
  font-size: .7rem;
}

/* Modal konfirmasi profesional */
body.rj-confirm-open {
  overflow: hidden;
}

.rj-confirm {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 28, 22, .58);
  backdrop-filter: blur(3px);
}

.rj-confirm[hidden] {
  display: none !important;
}

.rj-confirm-box {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 28px 24px 22px;
  text-align: center;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .3);
  animation: rjConfirmIn .22s ease;
}

@keyframes rjConfirmIn {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to { opacity: 1; transform: none; }
}

.rj-confirm-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  font-weight: 800;
  font-family: var(--display);
  line-height: 1;
}

.rj-confirm--warn .rj-confirm-icon {
  background: #fff4df;
  color: #b7791f;
  border: 2px solid #f0d39a;
}

.rj-confirm--danger .rj-confirm-icon {
  background: #fdecea;
  color: #c0392b;
  border: 2px solid #f0b4ad;
}

.rj-confirm--info .rj-confirm-icon {
  background: #eaf6f0;
  color: var(--brand-deep);
  border: 2px solid #b7dcc8;
}

.rj-confirm-box h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--brand-deep);
}

.rj-confirm-box p {
  margin: 0 0 18px;
  font-size: .92rem;
  color: var(--muted);
  line-height: 1.5;
}

.rj-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.rj-confirm-actions .btn {
  min-width: 120px;
}

/* Modal konfirmasi WhatsApp */
.wa-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(12, 32, 24, .55);
  backdrop-filter: blur(2px);
}

/* display:flex menimpa atribut hidden — wajib none !important */
.wa-modal[hidden] {
  display: none !important;
}

.wa-modal-box {
  width: min(400px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 26px 24px;
  text-align: center;
  display: grid;
  gap: 10px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
}

.wa-modal-icon {
  font-size: 2.4rem;
  line-height: 1;
}

.wa-modal-box h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--brand-deep);
}

.wa-modal-box p {
  margin: 0 0 6px;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.5;
}

.btn-wa {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
  font-weight: 700;
}

.btn-wa:hover {
  background: #1eb457;
  border-color: #1eb457;
}

/* Alarm sisa waktu meja */
.alarm-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: .78rem;
  font-weight: 600;
  background: var(--brand-deep);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.alarm-toggle-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.alarm-toggle-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.alarm-toggle.is-off {
  background: #fff;
  color: var(--muted);
}

.alarm-toggle.needs-prime {
  background: #c0392b;
  border-color: #c0392b;
  animation: alarmPulse 1.2s ease infinite;
}

/* Panel volume alarm / notif */
.alarm-volume-panel {
  position: fixed;
  right: 16px;
  bottom: 64px;
  z-index: 130;
  width: min(280px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}
.alarm-volume-panel--cafe {
  right: 16px;
  bottom: auto;
  top: 72px;
}
.alarm-volume-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.alarm-volume-head strong {
  font-size: .92rem;
  color: var(--brand-deep);
}
.alarm-volume-close {
  border: 0;
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 0 4px;
}
.alarm-volume-hint {
  margin: 0 0 10px;
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.4;
}
.alarm-volume-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.alarm-volume-row input[type="range"] {
  flex: 1;
  width: auto;
  padding: 0;
  border: 0;
  box-shadow: none;
  accent-color: var(--brand);
}
.alarm-volume-row span {
  min-width: 42px;
  text-align: right;
  font-weight: 700;
  font-size: .85rem;
  color: var(--brand-deep);
}

@media print {
  .alarm-volume-panel {
    display: none !important;
  }
}

/* Overlay hitung mundur 10..1 */
.alarm-countdown {
  position: fixed;
  left: 50%;
  top: 18%;
  transform: translate(-50%, -12px) scale(0.92);
  z-index: 130;
  min-width: 160px;
  padding: 18px 28px 16px;
  border-radius: 20px;
  background: rgba(20, 61, 42, 0.94);
  color: #fff;
  text-align: center;
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.alarm-countdown.is-on {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
.alarm-countdown.is-critical {
  background: rgba(176, 36, 24, 0.95);
}
.alarm-countdown-meja {
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: 4px;
}
.alarm-countdown-num {
  font-family: Fraunces, Georgia, serif;
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
}
.alarm-countdown-label {
  font-size: .85rem;
  opacity: .8;
  margin-top: 2px;
}

.alarm-toast-wrap {
  position: fixed;
  right: 16px;
  bottom: 64px;
  z-index: 120;
  display: grid;
  gap: 10px;
  max-width: min(340px, calc(100vw - 32px));
}

.alarm-toast {
  border: 1px solid #e8c48a;
  border-left: 5px solid #d4a017;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff8f0;
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.4;
  color: #6b4a00;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .14);
  transition: opacity .35s ease, transform .35s ease;
}

.alarm-toast--urgent {
  border-color: #e5a3a3;
  border-left-color: #c0392b;
  background: #fff1f0;
  color: #8c2b20;
}

.alarm-toast.is-out {
  opacity: 0;
  transform: translateX(12px);
}

/* Absensi wajah */
.absensi-layout {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 18px;
  margin-bottom: 18px;
}

@media (max-width: 980px) {
  .absensi-layout {
    grid-template-columns: 1fr;
  }
}

.absensi-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.absensi-meta > div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #f7faf8;
  display: grid;
  gap: 2px;
}

.absensi-meta span {
  font-size: .75rem;
  color: var(--muted);
}

.camera-pick {
  max-width: 560px;
  margin: 0 auto 12px;
  display: grid;
  gap: 6px;
}

.camera-pick label {
  display: grid;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--brand-deep);
}

.camera-pick select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: var(--text);
}

.camera-pick small {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.4;
}

@media (max-width: 899px) {
  .camera-pick {
    display: none !important;
  }
}

.absensi-cam-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  background: #0b1a14;
  aspect-ratio: 4 / 3;
}

.absensi-cam-wrap video,
.absensi-cam-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.absensi-upload-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b1a14;
  z-index: 1;
}

.absensi-cam-wrap canvas {
  z-index: 2;
  pointer-events: none;
}

.wajah-upload-box {
  margin-top: 12px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #f7faf8;
}

.absensi-status {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f3f6f4;
  font-size: .9rem;
  color: var(--muted);
}

.absensi-status--ok {
  background: #eaf6f0;
  color: var(--brand-deep);
}

.absensi-status--err {
  background: #fdecea;
  color: #8c2b20;
}

.absensi-status--info {
  background: #fff8f0;
  color: #6b4a00;
}

.absensi-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.absensi-hint {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.absensi-steps ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  line-height: 1.45;
}

.btn-clock {
  min-width: 160px;
  min-height: 48px;
  font-size: 1rem;
  font-weight: 700;
}

.clock-actions {
  justify-content: center;
  margin-top: 16px;
}

.absensi-notice-time {
  margin: 4px 0 14px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #f3f6f4;
  font-size: .85rem;
  font-weight: 600;
  color: var(--brand-deep);
}

/* Grafik dashboard */
.chart-panel .panel-body {
  padding-top: 14px;
}

.chart-filter {
  display: grid;
  gap: 12px;
  margin-bottom: 8px;
}

.chart-filter-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chart-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 600;
}

.chart-mode input {
  display: none;
}

.chart-mode.active {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: #fff;
}

.chart-filter-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.chart-filter-fields label {
  display: grid;
  gap: 4px;
  font-size: .82rem;
  color: var(--muted);
}

.chart-filter-fields .chart-field[hidden] {
  display: none !important;
}

.chart-filter-fields input,
.chart-filter-fields select {
  min-width: 150px;
}

.chart-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
}

.chart-grid--2 {
  grid-template-columns: 1.2fr 1fr;
}

@media (max-width: 1100px) {
  .chart-grid,
  .chart-grid--2 {
    grid-template-columns: 1fr;
  }
}

.chart-panel--billiard {
  border-color: rgba(31, 77, 58, .28);
}
.chart-panel--billiard .panel-head h2 {
  color: #1f4d3a;
}
.chart-panel--cafe {
  border-color: rgba(201, 162, 39, .4);
}
.chart-panel--cafe .panel-head h2 {
  color: #7a6210;
}

.chart-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  min-height: 280px;
}

.chart-card h3 {
  margin: 0 0 10px;
  font-size: .95rem;
  color: var(--brand-deep);
}

/* Nota pembelian bahan baku */
.nota-upload-box {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #f7faf8;
}

.nota-preview-wrap {
  margin-top: 12px;
}

.nota-preview-wrap img,
.nota-thumb {
  display: block;
  width: 100%;
  max-width: 280px;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.nota-thumb {
  width: 64px;
  height: 64px;
  max-width: 64px;
  max-height: 64px;
}

/* Itemisasi pembelian bahan baku */
.pb-page {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
}

.pb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, .85fr);
  gap: 18px;
  align-items: start;
}

.pb-items-block {
  display: grid;
  gap: 10px;
}

.pb-items-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.pb-items-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pb-items-head strong {
  color: var(--brand-deep);
}

.pb-items-hint {
  color: var(--muted);
  line-height: 1.4;
}

.pb-items-list {
  display: grid;
  gap: 10px;
}

.pb-item-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7faf8;
  padding: 10px 12px;
  display: grid;
  grid-template-columns:
    minmax(140px, 1.6fr)
    minmax(100px, 1fr)
    minmax(78px, .7fr)
    minmax(70px, .7fr)
    minmax(100px, 1fr)
    auto;
  gap: 10px;
  align-items: end;
}

.pb-item-row label,
.pb-col-aksi {
  display: grid;
  gap: 5px;
  font-size: .78rem;
  color: var(--muted);
  font-weight: 600;
  min-width: 0;
}

.pb-aksi-label {
  line-height: 1.2;
}

.pb-item-row input,
.pb-item-row select {
  width: 100%;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
  color: var(--text);
  font-weight: 500;
}

.pb-item-row .pb-subtotal {
  background: #fff;
  font-weight: 700;
  color: var(--brand-deep);
}

.pb-col-aksi .pb-remove {
  white-space: nowrap;
}

.pb-filter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
}

.pb-filter-form-period {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.pb-filter-form-period label {
  display: grid;
  gap: 5px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
}

.pb-filter-field[hidden] {
  display: none !important;
}

.pb-filter-form-period select,
.pb-filter-form-period input {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

.pb-filter-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pb-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.pb-row-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.pb-row-actions form {
  margin: 0;
  display: inline;
}

.pb-icon-detail {
  color: var(--brand-deep);
}

.pb-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 290;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 28, 22, .58);
  backdrop-filter: blur(3px);
}

.pb-detail-modal[hidden] {
  display: none !important;
}

.pb-detail-modal-box {
  width: min(560px, 100%);
  max-height: min(88vh, 760px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: rjConfirmIn .22s ease;
}

.pb-detail-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.pb-detail-modal-head h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--brand-deep);
}

.pb-detail-modal-body {
  padding: 16px 18px 18px;
  overflow: auto;
  display: grid;
  gap: 14px;
}

.pb-detail-grid {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pb-detail-grid dt {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--muted);
  margin-bottom: 4px;
}

.pb-detail-grid dd {
  margin: 0;
  font-weight: 600;
  color: var(--brand-deep);
  white-space: pre-wrap;
  line-height: 1.45;
}

.pb-detail-full {
  grid-column: 1 / -1;
}

.pb-detail-nota .label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--muted);
  margin-bottom: 8px;
}

.pb-detail-nota img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f7faf8;
}

body.pb-detail-open {
  overflow: hidden;
}

.pb-stat {
  box-shadow: none;
  margin-bottom: 16px;
}

.pb-label-text .pb-req,
.pb-req {
  color: #c0392b;
  margin-left: 2px;
  font-weight: 700;
}

#total_pembelian[readonly] {
  background: #eaf6f0;
  font-weight: 700;
  color: var(--brand-deep);
  font-size: 1.05rem;
}

.pb-satuan-form {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.pb-satuan-form > label {
  display: grid;
  gap: 5px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
}

.pb-satuan-form input[type="text"],
.pb-satuan-form input:not([type]) {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.pb-satuan-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.pb-satuan-form-actions .btn:disabled,
.pb-satuan-footer .btn:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.pb-satuan-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.pb-satuan-footer .pb-satuan-modal-hint {
  margin: 0;
  flex: 1;
  min-width: 180px;
}

.pb-satuan-actions {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.pb-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand-deep);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.pb-icon-btn:hover {
  background: #eaf6f0;
}

.pb-icon-del {
  color: #c0392b;
}

.pb-icon-del:hover {
  background: #fdecea;
}

.pb-icon-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.pb-satuan-name {
  font-weight: 600;
  color: var(--brand-deep);
}

.pb-satuan-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  background: #fff4df;
  color: #8a5a00;
  vertical-align: middle;
}

#pb-satuan-list tr.is-pending {
  background: #fffaf0;
}

#pb-satuan-list tr.is-editing {
  background: #eaf6f0;
}

#pb-satuan-list tr.is-editing .pb-satuan-name {
  text-decoration: underline;
}

.pb-satuan-modal {
  position: fixed;
  inset: 0;
  z-index: 280;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10, 28, 22, .58);
  backdrop-filter: blur(3px);
}

.pb-satuan-modal[hidden] {
  display: none !important;
}

.pb-satuan-modal-box {
  width: min(520px, 100%);
  max-height: min(86vh, 720px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: rjConfirmIn .22s ease;
}

.pb-satuan-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.pb-satuan-modal-head h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--brand-deep);
}

.pb-satuan-modal-body {
  padding: 16px 18px 18px;
  overflow: auto;
}

.pb-satuan-modal-hint {
  display: block;
  color: var(--muted);
  line-height: 1.4;
  font-size: .8rem;
}

body.pb-satuan-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .pb-layout {
    grid-template-columns: 1fr;
  }

  .pb-item-row {
    grid-template-columns:
      minmax(120px, 1.4fr)
      minmax(90px, 1fr)
      minmax(70px, .7fr)
      minmax(70px, .7fr)
      minmax(90px, 1fr)
      auto;
  }
}

@media (max-width: 820px) {
  .pb-item-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pb-col-nama {
    grid-column: 1 / -1;
  }

  .pb-col-aksi {
    grid-column: 1 / -1;
  }

  .pb-col-aksi .pb-remove {
    width: 100%;
  }

  .pb-filter-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .pb-item-row {
    grid-template-columns: 1fr;
  }
}

/* —— Pesan mandiri RJ Cafe (scan QR meja) —— */
.pesan-page {
  min-height: 100vh;
  background:
    linear-gradient(160deg, rgba(15, 74, 46, .92), rgba(10, 40, 26, .88)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color: var(--ink);
}

/* Kartu status (meja dipakai / QR invalid): turun ke tengah layar */
.pesan-page--center {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: max(48px, 14vh) 16px max(40px, 12vh);
}

.pesan-page--center .pesan-shell {
  width: 100%;
  margin: 0;
  padding: 0;
  flex: 0 1 auto;
}

.pesan-page--center .pesan-card--error {
  text-align: center;
}

.pesan-page--center .pesan-card--error .pesan-checkout {
  text-align: left;
}

.pesan-hero {
  padding: 28px 20px 20px;
  color: #f4faf6;
  text-align: center;
}

.pesan-hero-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pesan-brand {
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -.02em;
  text-align: center;
  width: 100%;
}

.pesan-logo {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 10px;
  border-radius: 12px;
}

.pesan-logo--hero {
  width: 88px;
  height: 88px;
  margin: 0 auto 12px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

.pesan-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 600;
  margin: 0 0 8px;
  text-align: center;
  width: 100%;
}

.pesan-hero-sub {
  margin: 0;
  opacity: .85;
  font-size: .92rem;
  text-align: center;
  width: 100%;
}

.pesan-shell {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px 100px;
}

.pesan-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.pesan-card--error h1 {
  font-family: var(--display);
  font-size: 1.4rem;
  margin: 8px 0 10px;
}

.pesan-section {
  background: var(--surface);
  border-radius: 18px;
  padding: 18px 16px 8px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

.pesan-section-title {
  font-family: var(--display);
  font-size: 1.25rem;
  margin: 0 0 12px;
}

.pesan-menu-search {
  display: block;
  margin: 0 0 12px;
}

.pesan-menu-search input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface, #fff);
  font: inherit;
  font-size: 1rem;
  color: inherit;
}

.pesan-menu-search input:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}

.pesan-tabs {
  margin: 0 0 12px;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.pesan-tabs.is-searching {
  opacity: .55;
}

.pesan-tabs .tab {
  flex: 0 0 auto;
  white-space: nowrap;
}

.pesan-kat {
  margin-bottom: 18px;
}

.pesan-kat h3 {
  margin: 0 0 8px;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}

.pesan-menu-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.pesan-menu-pager {
  margin-top: 4px;
}

.pesan-menu-pager .menu-pager-bar {
  margin-bottom: 8px;
}

.pesan-menu-row.is-offpage {
  display: none !important;
}

.pesan-menu-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* display:flex menimpa atribut hidden — wajib none !important */
.pesan-menu-row[hidden],
.pesan-menu-row.is-kat-hide {
  display: none !important;
}

.pesan-menu-row button {
  width: 100%;
}

.pesan-menu-info {
  display: grid;
  gap: 2px;
  width: 100%;
}

.pesan-menu-info span {
  color: var(--muted);
  font-size: .9rem;
}

.pesan-cart-panel {
  background: var(--surface);
  border-radius: 18px;
  padding: 18px 16px 20px;
  box-shadow: var(--shadow);
}

.pesan-cart-list {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.pesan-cart-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.pesan-cart-list .pesan-cart-row:last-child {
  border-bottom: 0;
}

.pesan-cart-left {
  flex: 1 1 0;
  min-width: 0;
}

.pesan-cart-title {
  display: block;
  font-size: .98rem;
  line-height: 1.25;
}

.pesan-cart-price {
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.2;
  margin-top: 2px;
}

.pesan-qty-form {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7faf8;
}

.pesan-qty-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--brand-deep);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.pesan-qty-btn:active {
  opacity: .85;
}

.pesan-qty-val {
  min-width: 1.25rem;
  text-align: center;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
}

.pesan-cart-right {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.pesan-cart-subtotal {
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  font-size: .95rem;
  line-height: 1;
}

.pesan-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
  font-size: 1.05rem;
}

.pesan-checkout {
  display: grid;
  gap: 12px;
}

.pesan-checkout label {
  display: grid;
  gap: 6px;
  font-size: .88rem;
  font-weight: 600;
}

.pesan-checkout input,
.pesan-checkout textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.pesan-checkout input[readonly] {
  background: var(--bg-soft);
  color: var(--muted);
}

.pesan-empty {
  color: var(--muted);
  margin: 0 0 8px;
}

.pesan-flash {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: .92rem;
}

.pesan-flash--ok {
  background: #e8f7ee;
  color: #0b6b3a;
}

.pesan-flash--err {
  background: #fdecec;
  color: #9b1c1c;
}

.pesan-success h2 {
  font-family: var(--display);
  margin: 0 0 8px;
}

.pesan-success-meta {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 14px;
  background: var(--bg-soft);
  border-radius: 12px;
}

.pesan-struk {
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: #fbfcfb;
  text-align: left;
}

.pesan-struk-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
}

.pesan-struk-head span {
  font-family: var(--font);
  font-size: .8rem;
  color: var(--muted);
}

.pesan-struk-meta {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  font-size: .88rem;
}

.pesan-struk-meta span {
  display: inline-block;
  min-width: 88px;
  color: var(--muted);
}

.pesan-struk-items {
  display: grid;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pesan-struk-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.pesan-struk-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #e8f6ee;
  color: var(--brand-deep, #0f4a2e);
  font-size: .72rem;
  font-weight: 700;
  vertical-align: middle;
}

.pesan-page .btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff !important;
}

.pesan-success-meta span {
  display: block;
  font-size: .75rem;
  color: var(--muted);
}

.pesan-hint {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}

.pesan-fab {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: var(--brand-deep);
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(15, 74, 46, .35);
  z-index: 20;
  white-space: nowrap;
}

/* Notifikasi pesanan customer di kasir cafe */
.cafe-notif-toast {
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 200;
  display: grid;
  gap: 10px;
  width: min(320px, calc(100vw - 24px));
  pointer-events: none;
}

.cafe-notif-item {
  pointer-events: auto;
  background: #fff;
  border: 1px solid #9fd4b3;
  border-left: 4px solid var(--brand);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(20, 36, 28, .16);
  padding: 14px;
  animation: cafe-notif-in .35s ease;
}

.cafe-notif-item.is-out {
  opacity: 0;
  transform: translateX(16px);
  transition: .35s ease;
}

.cafe-notif-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brand-deep);
}

.cafe-notif-meta {
  color: var(--muted);
  font-size: .82rem;
  margin: 4px 0 10px;
}

@keyframes cafe-notif-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.cafe-notif-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #c5d0c9;
  background: #f3f5f4;
  color: #5b6b63;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.cafe-notif-toggle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8a9690;
  flex-shrink: 0;
}

.cafe-notif-toggle.is-on {
  background: #e8f6ee;
  border-color: #9fd4b3;
  color: var(--brand-deep, #0f4a2e);
}

.cafe-notif-toggle.is-on .cafe-notif-toggle-dot {
  background: #067647;
  box-shadow: 0 0 0 0 rgba(6, 118, 71, .45);
  animation: cafe-notif-pulse 1.4s infinite;
}

.cafe-notif-toggle.is-off:hover {
  border-color: #9aa89f;
  color: #3d4a43;
}

@keyframes cafe-notif-pulse {
  0% { box-shadow: 0 0 0 0 rgba(6, 118, 71, .45); }
  70% { box-shadow: 0 0 0 10px rgba(6, 118, 71, 0); }
  100% { box-shadow: 0 0 0 0 rgba(6, 118, 71, 0); }
}

@media (max-width: 720px) {
  .cafe-notif-toggle-label {
    font-size: .72rem;
  }
}

/* QRIS Merchant upload */
.qris-upload-box {
  position: relative;
  border: 1.5px dashed var(--line);
  border-radius: 14px;
  padding: 18px;
  background: #f7faf8;
  cursor: pointer;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s ease, background .15s ease;
}

.qris-upload-box.is-drag,
.qris-upload-box:hover {
  border-color: var(--brand, #0a7a4b);
  background: #eef7f1;
}

.qris-upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.qris-upload-ui {
  text-align: center;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: .9rem;
}

.qris-upload-ui strong {
  color: var(--brand-deep, #1a3d2e);
  font-size: 1rem;
}

.qris-upload-icon {
  font-size: 1.6rem;
  line-height: 1;
  opacity: .55;
}

.qris-upload-preview {
  display: block;
  max-width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: 10px;
  pointer-events: none;
}

.qris-decode-status {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: .9rem;
  line-height: 1.45;
  background: #f0f3f1;
  color: var(--muted);
}

.qris-decode-status.is-ok {
  background: #e8f8ef;
  color: var(--ok);
  border: 1px solid #abefc6;
}

.qris-decode-status.is-err {
  background: #fdecec;
  color: var(--danger);
  border: 1px solid #fecdca;
}

.qris-manual-details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}

.qris-manual-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--brand-deep, #1a3d2e);
}

.qris-saved-thumb,
.qris-dynamic-preview {
  display: block;
  max-width: 200px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  margin-top: 6px;
}

.qris-dynamic-preview {
  max-width: 180px;
  padding: 8px;
}

/* —— Utility & polish (UI audit) —— */
.mb-0 { margin-bottom: 0 !important; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-14 { margin-bottom: 14px; }
.mb-16 { margin-bottom: 16px; }
.mb-18 { margin-bottom: 18px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.w-full { width: 100%; }
.text-muted {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}
.text-danger-link { color: #c0392b; }
.map-preview {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  background: #f3f4f6;
}
.map-preview iframe {
  border: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
}

.absensi-gps {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
}
.absensi-gps-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}
.absensi-gps.is-ok {
  background: #e8f8ef;
  border-color: #abefc6;
  color: var(--ok);
}
.absensi-gps.is-ok .absensi-gps-dot { background: var(--ok); }
.absensi-gps.is-warn {
  background: var(--accent-soft);
  border-color: #e8d59a;
  color: var(--warning);
}
.absensi-gps.is-warn .absensi-gps-dot { background: var(--accent); }
.absensi-gps.is-err {
  background: #fdecec;
  border-color: #fecdca;
  color: var(--danger);
}
.absensi-gps.is-err .absensi-gps-dot { background: var(--danger); }
.absensi-gps.is-off {
  background: var(--bg-soft);
  color: var(--muted);
}

.pesan-card--error .pesan-cta {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.pesan-card--error .pesan-cta .btn {
  width: 100%;
}
.pesan-unlock-form {
  margin-top: 12px;
  text-align: left;
}
.pesan-unlock-form input {
  text-transform: uppercase;
}
.pesan-hint-gap {
  margin-top: 12px;
}

.login-card .logo::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: var(--accent);
}

/* —— Kartu QR pesan meja cafe —— */
.qr-meja-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.qr-meja-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}

.qr-meja-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(20, 36, 28, .12);
}

.qr-meja-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
}

.qr-meja-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 9px;
  background: #000;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
}

.qr-meja-card-titles {
  flex: 1;
  min-width: 0;
}

.qr-meja-card-titles h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #fff;
}

.qr-meja-kode {
  display: inline-block;
  margin-top: 4px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  opacity: .88;
}

.qr-meja-badge {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #fff;
  color: var(--brand-deep);
  border: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.qr-meja-card--tersedia .qr-meja-card-head {
  background: linear-gradient(135deg, #0f4a2e, #1a6b45 55%, #2a8a58);
}
.qr-meja-card--tersedia {
  border-color: #b7dfc6;
}
.qr-meja-card--tersedia .qr-meja-badge {
  color: var(--ok);
}
.qr-meja-card--tersedia .qr-meja-qr-wrap {
  background:
    radial-gradient(circle at 100% 0%, rgba(196, 160, 53, .14), transparent 45%),
    linear-gradient(180deg, #f3faf6, #e8f5ee);
}

.qr-meja-card--digunakan .qr-meja-card-head {
  background: linear-gradient(135deg, #8a5a00, #c4a035 60%, #d4b84a);
}
.qr-meja-card--digunakan {
  border-color: #e8d59a;
}
.qr-meja-card--digunakan .qr-meja-qr-wrap {
  background:
    radial-gradient(circle at 0% 100%, rgba(196, 160, 53, .18), transparent 50%),
    linear-gradient(180deg, #fffaf0, #f7efd6);
}
.qr-meja-card--digunakan .qr-meja-badge {
  color: #8a5a00;
  background: #fff8e8;
}

.qr-meja-card--maintenance .qr-meja-card-head {
  background: linear-gradient(135deg, #5c636a, #7a828a);
}
.qr-meja-card--maintenance {
  border-color: #cfd4d8;
  opacity: .92;
}
.qr-meja-card--maintenance .qr-meja-qr-wrap {
  background: linear-gradient(180deg, #f4f5f6, #e8eaec);
}
.qr-meja-card--maintenance .qr-meja-badge {
  color: #5c636a;
  background: #f0f1f2;
}

.qr-meja-qr-wrap {
  margin: 0 14px;
  padding: 14px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(213, 224, 217, .8);
}

.qr-meja-qr-wrap img {
  width: 156px;
  height: 156px;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 4px 14px rgba(20, 36, 28, .08);
}

.qr-meja-qr-fail {
  width: 156px;
  min-height: 120px;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--danger);
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.4;
}

.qr-meja-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 14px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.qr-meja-url {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .68rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qr-meja-copy {
  flex-shrink: 0;
  padding: 4px 10px !important;
  font-size: .72rem !important;
}
.qr-meja-copy.is-copied {
  background: var(--brand-soft) !important;
  color: var(--brand-deep) !important;
  border-color: #b7dfc6 !important;
}

.qr-meja-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
  padding: 0 12px 14px;
}
.qr-meja-actions form {
  margin: 0;
  display: contents;
}
.qr-meja-actions .btn {
  min-width: 0;
  flex: 1 1 auto;
  justify-content: center;
  text-align: center;
}

@media (max-width: 520px) {
  .qr-meja-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Absensi kiosk (1 HP RJ Group) —— */
.absensi-kiosk-page {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(201, 162, 39, 0.18), transparent 55%),
    linear-gradient(160deg, #f7faf7 0%, #eef5ef 40%, #f4f0e6 100%);
  font-family: 'Sora', system-ui, sans-serif;
  color: var(--text, #1a2e1c);
}
.absensi-kiosk-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}
.absensi-kiosk-head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}
.absensi-kiosk-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(26, 46, 28, 0.08);
}
.absensi-kiosk-brand {
  margin: 0;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-deep, #1a4d2e);
  font-weight: 700;
}
.absensi-kiosk-head h1 {
  margin: 2px 0 4px;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.15;
  color: var(--brand-deep, #1a4d2e);
}
.absensi-kiosk-sub {
  margin: 0;
  color: var(--muted, #5a6b5c);
  font-size: .92rem;
}
.absensi-kiosk-grid {
  display: grid;
  grid-template-columns: 1.35fr .9fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 900px) {
  .absensi-kiosk-grid { grid-template-columns: 1fr; }
  .absensi-kiosk-head { flex-direction: column; text-align: center; }
}
.absensi-kiosk-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 520px) {
  .absensi-kiosk-actions { grid-template-columns: 1fr; }
}
.absensi-kiosk-actions .btn-lg {
  min-height: 52px;
  font-size: 1.05rem;
  font-weight: 700;
}
.absensi-kiosk-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: 320px;
  overflow: auto;
}
.absensi-kiosk-shifts {
  display: grid;
  gap: 8px;
}
.absensi-kiosk-shift {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line, #e2e8e2);
  border-radius: 12px;
  background: var(--bg-soft, #f3f6f3);
}
.absensi-kiosk-shift.is-current {
  border-color: var(--brand, #267346);
  background: rgba(38, 115, 70, .09);
  box-shadow: inset 3px 0 var(--brand, #267346);
}
.absensi-kiosk-shift strong,
.absensi-kiosk-shift small {
  display: block;
}
.absensi-kiosk-shift small {
  margin-top: 2px;
  color: var(--muted);
  font-size: .72rem;
}
.absensi-kiosk-shift > span {
  color: var(--brand-deep);
  font-weight: 700;
  white-space: nowrap;
}
.absensi-kiosk-tolerance {
  margin: 10px 0 0;
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: .78rem;
  line-height: 1.45;
}
.absensi-kiosk-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-soft, #f3f6f3);
  border: 1px solid var(--line, #e2e8e2);
}
.absensi-kiosk-row strong { display: block; }
.absensi-kiosk-row small { color: var(--muted); }
.absensi-kiosk-row-time {
  text-align: right;
  font-size: .85rem;
  color: var(--brand-deep);
  font-weight: 600;
  white-space: nowrap;
}
.login-kiosk-link {
  margin-top: 14px;
  font-size: .88rem;
  color: var(--muted);
  text-align: center;
}
.login-kiosk-link a {
  color: var(--brand-deep);
  font-weight: 700;
}

/* ——— Loading tombol transaksi ——— */
.btn.is-loading {
  position: relative;
  pointer-events: none;
  color: transparent !important;
  text-shadow: none !important;
}
.btn.is-loading > * {
  visibility: hidden;
}
.btn.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.1em;
  height: 1.1em;
  margin: -0.55em 0 0 -0.55em;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rj-btn-spin 0.7s linear infinite;
}
.btn.btn-ghost.is-loading::after,
.btn.btn-danger.is-loading::after {
  border-color: rgba(0, 0, 0, 0.15);
  border-top-color: var(--brand-deep, #1a5c3a);
}
.btn.is-loading.btn-loading-label {
  color: inherit !important;
  padding-left: 2.2em;
}
.btn.is-loading.btn-loading-label::after {
  left: 0.85em;
  margin-left: 0;
}
.btn.is-loading.btn-loading-label > * {
  visibility: visible;
}

.rj-page-loading {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 28, 20, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.rj-page-loading[hidden] {
  display: none !important;
}
.rj-page-loading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 28px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  min-width: 160px;
}
.rj-page-loading-spin {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(26, 92, 58, 0.2);
  border-top-color: var(--brand-deep, #1a5c3a);
  border-radius: 50%;
  animation: rj-btn-spin 0.7s linear infinite;
}
.rj-page-loading-text {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--brand-deep, #1a5c3a);
}

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

.menu-item--clickable.is-adding {
  opacity: 0.7;
  pointer-events: none;
  transform: scale(0.98);
}
.panel.cart-flash {
  animation: cart-flash-pulse 0.45s ease;
}
@keyframes cart-flash-pulse {
  0% { box-shadow: 0 0 0 0 rgba(26, 92, 58, 0.35); }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ——— Cek Pesanan Siap ——— */
.order-siap-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}
.order-siap-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.order-siap-hint {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}
.order-siap-list {
  display: grid;
  gap: 14px;
}
.order-siap-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}
.order-siap-card-head h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}
.order-siap-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: .82rem;
}
.order-siap-head-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.order-siap-progress {
  font-size: .85rem;
  font-weight: 600;
  color: var(--brand-deep);
}
.order-siap-note {
  margin-bottom: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(26, 92, 58, 0.06);
  font-size: .88rem;
}
.order-siap-stasiun {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.order-siap-stasiun:last-of-type {
  border-bottom: 0;
}
.order-siap-stasiun-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.order-siap-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.order-siap-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7faf8;
  border: 1px solid rgba(26, 92, 58, 0.1);
}
.order-siap-item.is-siap {
  background: rgba(26, 92, 58, 0.08);
  border-color: rgba(26, 92, 58, 0.22);
}
.order-siap-check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  cursor: pointer;
  min-width: 0;
}
.order-siap-check-label input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.order-siap-check {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid rgba(26, 92, 58, 0.35);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
}
.order-siap-check-label input:checked + .order-siap-check,
.order-siap-check.is-done {
  background: var(--brand-deep, #1a5c3a);
  border-color: var(--brand-deep, #1a5c3a);
}
.order-siap-check-label input:focus-visible + .order-siap-check {
  outline: 2px solid var(--brand, #2f8f5b);
  outline-offset: 2px;
}
.order-siap-item-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.order-siap-item-body strong {
  font-size: .95rem;
}
.order-siap-item-body small {
  color: var(--muted);
  font-size: .78rem;
}
.order-siap-item.is-siap .order-siap-item-body strong {
  text-decoration: line-through;
  opacity: .85;
}
.order-siap-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}
.order-siap-total {
  font-weight: 700;
  color: var(--brand-deep);
}

/* —— PWA install prompt —— */
.rj-pwa-install {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  background: var(--brand-deep);
  color: #eef7f1;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  font-family: var(--font);
}
.rj-pwa-install[hidden] { display: none !important; }
.rj-pwa-install:hover { background: var(--brand); }
.rj-pwa-install-ico {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background:
    linear-gradient(135deg, var(--accent), #e8d48a 55%, transparent 56%),
    #eef7f1;
  flex-shrink: 0;
}
@media (display-mode: standalone), (display-mode: fullscreen) {
  .rj-pwa-install { display: none !important; }
}
body.login-page .rj-pwa-install,
body.absensi-kiosk-page .rj-pwa-install {
  bottom: 20px;
}

@media (max-width: 640px) {
  .order-siap-item {
    flex-wrap: wrap;
  }
  .order-siap-item .btn {
    margin-left: auto;
  }
}

