/* ============================================================
   JASSOLO Tailor & Boutique â€” Design System
   70% ivory/white Â· 20% brown Â· 10% gold + status
   ============================================================ */

:root {
  /* Brown */
  --brown-950: #24150F;
  --brown-900: #2B1A12;
  --brown-800: #3A2418;
  --brown-700: #4A2E20;
  --brown-600: #5A3826;
  --brown-500: #6B4630;
  --brown-400: #8A6448;

  /* Gold */
  --gold-700: #9B743C;
  --gold-600: #B58A4E;
  --gold-500: #C9A66B;
  --gold-400: #D9B87E;
  --gold-300: #E8D1A5;
  --gold-100: #F8EEDB;

  /* Neutral */
  --ivory: #FAF8F4;
  --cream: #F6F1E9;
  --white: #FFFFFF;
  --border: #E8E0D5;
  --border-light: #F0EBE4;
  --text: #241812;
  --text-secondary: #756B63;
  --muted: #9A928B;

  /* Status */
  --success: #168A4A;
  --success-bg: #EAF7EF;
  --warning: #D99A00;
  --warning-bg: #FFF5D9;
  --info: #2878C8;
  --info-bg: #EAF3FC;
  --purple: #7350C7;
  --purple-bg: #F1ECFB;
  --danger: #B94B45;
  --danger-bg: #FCEDEC;

  /* Layout */
  --sidebar-w: 272px;
  --topbar-h: 72px;
  --mnav-h: 72px;
  --content-pad-x: 28px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 4px 20px rgba(43, 26, 18, 0.04);
  --shadow-md: 0 8px 28px rgba(43, 26, 18, 0.08);

  --font-ui: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "Inter", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- Typography ---------- */
.js-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--brown-900);
}
.js-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.js-page-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--brown-950);
  line-height: 1.2;
  letter-spacing: 0.02em;
}
.js-page-sub {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ---------- Buttons ---------- */
.js-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 160ms, border-color 160ms, color 160ms, box-shadow 160ms, transform 120ms;
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1;
}
.js-btn:active { transform: translateY(1px); }
.js-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.js-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 166, 107, 0.28);
}
.js-btn-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}
.js-btn-ico svg {
  width: 15px;
  height: 15px;
  display: block;
}
.js-btn-sm .js-btn-ico svg {
  width: 14px;
  height: 14px;
}

.js-btn-primary {
  background: linear-gradient(145deg, #6B4630 0%, #3F281C 100%);
  color: #fff;
  box-shadow: 0 1px 2px rgba(40, 22, 12, 0.18);
}
.js-btn-primary:hover:not(:disabled) {
  background: linear-gradient(145deg, #7A5238 0%, #4A3022 100%);
  box-shadow: 0 2px 8px rgba(40, 22, 12, 0.16);
}

.js-btn-gold {
  background: linear-gradient(145deg, #E0B85A 0%, #C4923A 100%);
  color: #2A1A0E;
  box-shadow: 0 1px 2px rgba(120, 80, 20, 0.16);
}
.js-btn-gold:hover:not(:disabled) {
  background: linear-gradient(145deg, #E8C56A 0%, #B8842F 100%);
  color: #1A1008;
  box-shadow: 0 2px 8px rgba(120, 80, 20, 0.18);
}

.js-btn-secondary {
  background: #fff;
  border-color: #E0D4C6;
  color: var(--brown-800, #4A3428);
  box-shadow: 0 1px 1px rgba(60, 40, 20, 0.04);
}
.js-btn-secondary:hover:not(:disabled) {
  background: #FBF7F2;
  border-color: #CFC0AE;
  color: var(--brown-900);
}

.js-btn-ghost {
  background: transparent;
  color: #7A6A5C;
  border-color: #E5D9CB;
}
.js-btn-ghost:hover:not(:disabled) {
  background: #F7F2EC;
  color: var(--brown-800, #4A3428);
  border-color: #D5C6B4;
}

.js-btn-danger {
  background: linear-gradient(145deg, #C04538 0%, #9E2F24 100%);
  color: #fff;
  box-shadow: 0 1px 2px rgba(120, 30, 20, 0.16);
}
.js-btn-danger:hover:not(:disabled) { filter: brightness(1.05); }

.js-btn-icon {
  width: 40px; height: 40px; padding: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--brown-700);
}
.js-btn-icon:hover { background: var(--cream); }
.js-btn-block { width: 100%; }

/* ---------- Forms ---------- */
.js-label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: #3A2A22;
  margin-bottom: 6px;
}
.js-field { margin-bottom: 16px; }
.js-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.js-input-wrap .js-input-icon {
  position: absolute;
  left: 14px;
  color: var(--brown-500);
  pointer-events: none;
  display: flex;
}
.js-input-wrap .js-input-action {
  position: absolute;
  right: 12px;
  color: var(--muted);
  display: flex;
  padding: 4px;
}
.js-input {
  width: 100%;
  height: 46px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  color: var(--text);
  transition: border-color 150ms, box-shadow 150ms;
}
.js-input-wrap .js-input { padding-left: 42px; }
.js-input-wrap.has-action .js-input { padding-right: 42px; }
.js-input::placeholder { color: var(--muted); }
.js-input:focus {
  outline: none;
  border-color: var(--gold-600);
  box-shadow: 0 0 0 3px rgba(201, 166, 107, 0.18);
}
.js-input:disabled {
  background: #F2EEE8;
  color: #A7A09A;
  cursor: not-allowed;
}
.js-input.is-error {
  border-color: var(--danger);
}
.js-help { font-size: 12px; color: var(--muted); margin-top: 5px; }
.js-help-error { color: var(--danger); }
.js-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--brown-700);
  cursor: pointer;
  user-select: none;
}
.js-check input {
  width: 16px; height: 16px;
  accent-color: var(--brown-600);
}

/* ---------- Cards ---------- */
.js-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.js-card-pad { padding: 20px 22px; }
.js-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.js-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--brown-900);
}

/* ---------- Badges ---------- */
.js-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.js-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.js-badge-baru { color: var(--info); background: var(--info-bg); }
.js-badge-proses { color: #9B743C; background: var(--warning-bg); }
.js-badge-ukur { color: var(--purple); background: var(--purple-bg); }
.js-badge-selesai { color: var(--success); background: var(--success-bg); }
.js-badge-batal { color: var(--danger); background: var(--danger-bg); }
.js-online-badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.js-online-badge.is-online { color: var(--success); background: var(--success-bg); }
.js-online-badge.is-offline { color: var(--danger); background: var(--danger-bg); }

/* ---------- App shell ---------- */
.js-app {
  min-height: 100vh;
  display: flex;
  background: var(--ivory);
}
.js-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: linear-gradient(180deg, #24150F 0%, #3A2418 55%, #24150F 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  padding: 6px 10px 14px 12px;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(36, 21, 15, 0.12);
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 166, 107, 0.4) transparent;
}
.js-sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 10px 8px 12px;
  margin: 0 0 6px;
  gap: 8px;
  border-bottom: 1px solid rgba(201, 166, 107, 0.16);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.js-sidebar-brand::before,
.js-sidebar-brand::after {
  content: none;
}
.js-sidebar-brand img,
.js-sidebar-logo {
  position: relative;
  z-index: 1;
  height: 78px;
  width: auto;
  max-width: 176px;
  object-fit: contain;
  object-position: center center;
  margin: 0;
  display: block;
  filter: drop-shadow(0 0 6px rgba(232, 209, 165, 0.35));
}
.js-sidebar-branch-form,
.js-sidebar-branch-pill {
  position: relative;
  z-index: 1;
}
.js-sidebar-branch-form {
  width: 100%;
  margin: 0;
}
.js-sidebar-branch-select {
  width: 100%;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(201, 166, 107, 0.2);
  background-color: rgba(255,255,255,0.04);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c9a66b' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  color: rgba(255,255,255,0.88);
  font-size: 12px;
  font-weight: 500;
  padding: 0 28px 0 12px;
  appearance: none;
  cursor: pointer;
}
.js-sidebar-branch-select:focus {
  outline: none;
  border-color: rgba(201, 166, 107, 0.4);
  background-color: rgba(255,255,255,0.06);
}
.js-sidebar-branch-select option {
  color: #1a120c;
  background: #fff;
}
.js-sidebar-branch-pill {
  margin: 0;
  max-width: 100%;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201, 166, 107, 0.2);
  color: rgba(255,255,255,0.88);
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.js-sidebar-brand .js-mark {
  width: 36px; height: 42px;
  color: #fff;
  margin-bottom: 6px;
}
.js-sidebar-brand strong {
  font-size: 15px;
  letter-spacing: 0.12em;
  font-weight: 700;
}
.js-sidebar-brand span {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}
.js-mbar-logo {
  height: 44px !important;
  width: auto !important;
  max-width: 170px;
  object-fit: contain;
}
.js-login-logo-hero {
  height: 140px !important;
  width: auto !important;
  max-width: 300px;
  object-fit: contain;
  margin-bottom: 14px;
}
.js-login-logo-card {
  height: 140px !important;
  width: auto !important;
  max-width: 320px;
  object-fit: contain;
  background: #fff !important;
  border-radius: 8px;
  padding: 8px 14px;
  display: block;
}
.js-auth-card .logo-center {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
  background: transparent;
}
.js-auth-card .logo-center img {
  height: 140px !important;
  width: auto !important;
  max-width: 320px;
  object-fit: contain;
  background: #fff;
}
.js-nav {
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 6px 10px 10px 4px;
  min-height: 0;
}
.js-nav::-webkit-scrollbar {
  width: 5px;
}
.js-nav::-webkit-scrollbar-track {
  background: transparent;
  margin: 8px 0;
}
.js-nav::-webkit-scrollbar-thumb {
  background: rgba(201, 166, 107, 0.32);
  border-radius: 999px;
}
.js-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 166, 107, 0.55);
}
.js-nav::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}
.js-nav a,
.js-nav-group-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  margin-bottom: 2px;
  border-radius: 11px;
  color: rgba(255,255,255,0.78);
  font-size: 13.5px;
  font-weight: 500;
  transition: background 160ms, color 160ms, box-shadow 160ms, border-color 160ms;
  border-left: 3px solid transparent;
  width: 100%;
  max-width: 100%;
  background: transparent;
  border-top: none;
  border-right: none;
  border-bottom: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  box-sizing: border-box;
}
.js-nav a svg,
.js-nav-group-btn svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.9; }
.js-nav a:hover,
.js-nav-group-btn:hover { background: rgba(255,255,255,0.06); color: #fff; }
.js-nav a.is-active {
  background: linear-gradient(90deg, rgba(107,70,48,0.7), rgba(58,36,24,0.35));
  color: #fff;
  border-left-color: var(--gold-500);
  box-shadow: none;
}
.js-nav-group-btn span:first-of-type { flex: 1; }
.js-nav-chevron {
  display: inline-flex;
  margin-left: auto;
  transition: transform .18s ease;
}
.js-nav-chevron svg { width: 16px; height: 16px; }
.js-nav-group.is-open > .js-nav-group-btn .js-nav-chevron {
  transform: rotate(180deg);
}
.js-nav-group.is-open > .js-nav-group-btn {
  color: #fff;
  background: rgba(255,255,255,0.05);
}
.js-nav-sub {
  padding: 2px 4px 8px 8px;
  margin: 0 0 6px;
  border-left: 1px solid rgba(201, 166, 107, 0.2);
  margin-left: 18px;
}
.js-nav-sub a {
  padding: 8px 10px;
  font-size: 12.5px;
  margin-bottom: 1px;
}
.js-nav-section {
  padding: 10px 10px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(201, 166, 107, 0.75);
}
.js-sidebar-foot {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 10px 8px 8px;
  border-top: 1px solid rgba(201, 166, 107, 0.22);
  text-align: center;
}
.js-sidebar-foot .js-sidebar-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 8px;
  margin: 0;
  line-height: 1.2;
}
.js-sidebar-foot .js-sidebar-copy .brand {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.js-sidebar-foot .js-sidebar-copy .by {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.55);
}
.js-sidebar-foot .js-sidebar-copy .meta,
.js-sidebar-foot .meta {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
}
@media (max-width: 1024px) {
  .js-sidebar-foot {
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  }
  .js-sidebar-foot .js-sidebar-copy {
    gap: 4px 6px;
  }
  .js-sidebar-foot .js-sidebar-copy .brand,
  .js-sidebar-foot .js-sidebar-copy .by,
  .js-sidebar-foot .js-sidebar-copy .meta {
    font-size: 9px;
  }
}

.js-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.js-topbar {
  min-height: var(--topbar-h);
  height: auto;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px var(--content-pad-x);
  position: sticky;
  top: 0;
  z-index: 30;
}
.js-topbar-left, .js-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.js-topbar-left {
  flex: 1;
}
.js-topbar-heading {
  min-width: 0;
}
.js-topbar-eyebrow {
  margin: 0 0 2px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
  line-height: 1.2;
}
.js-topbar-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 700;
  color: var(--brown-800, #3A2418);
  line-height: 1.2;
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(640px, 52vw);
}
.js-topbar-sub {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(640px, 52vw);
}
.js-page-head {
  margin-bottom: 22px;
}
.js-page-head .js-page-title {
  margin-bottom: 4px;
}
.js-page-head .js-eyebrow {
  margin: 0 0 6px;
}
.js-page-head-text {
  min-width: 0;
}
.js-search {
  position: relative;
  width: min(460px, 42vw);
}
.js-search input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 0 14px 0 40px;
  background: var(--ivory);
}
.js-search input:focus {
  outline: none;
  border-color: var(--gold-600);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201, 166, 107, 0.15);
}
.js-search .ico {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); display: flex;
}
.js-search .hint {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-size: 11px; color: var(--muted);
  border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px;
  background: #fff;
}
.js-notif {
  position: relative;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  color: var(--brown-700);
  cursor: pointer;
  padding: 0;
  font: inherit;
}
.js-notif:hover { background: var(--cream, #F7F3ED); }
.js-notif-wrap { position: relative; }
.js-notif-dot {
  position: absolute; top: 8px; right: 9px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger); border: 2px solid #fff;
  display: none;
}
.js-notif-dot.is-on { display: block; }
.js-notif-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border: 2px solid #fff;
}
.js-notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, calc(100vw - 24px));
  max-height: min(70vh, 440px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(36, 21, 15, 0.16);
  z-index: 60;
  overflow: hidden;
}
.js-notif-panel[hidden] { display: none !important; }
.js-notif-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light, #EFE8DF);
}
.js-notif-panel-head strong {
  font-size: 14px;
  color: var(--brown-900);
}
.js-notif-panel-meta {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.js-notif-panel-list {
  overflow-y: auto;
  padding: 6px;
}
.js-notif-empty {
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.js-notif-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  border-left: 3px solid transparent;
}
.js-notif-item:hover { background: #F7F3ED; }
.js-notif-item.is-danger { border-left-color: var(--danger); }
.js-notif-item.is-warn { border-left-color: #B45309; }
.js-notif-item.is-info { border-left-color: var(--info, #3B82F6); }
.js-notif-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--brown-900);
  line-height: 1.3;
}
.js-notif-item-body {
  font-size: 12px;
  color: var(--text-secondary, #756B63);
  line-height: 1.35;
}
.js-notif-item-when {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 2px;
}
.js-profile {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 4px 4px 4px;
}
.js-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brown-500), var(--brown-800));
  color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.js-profile .meta { line-height: 1.25; }
.js-profile .meta strong { display: block; font-size: 13.5px; color: var(--brown-900); }
.js-profile .meta span { font-size: 11.5px; color: var(--muted); }

.js-content {
  padding: 24px var(--content-pad-x) 40px;
  flex: 1;
}

/* Mobile chrome — coklat glossy (selaras sidebar) */
.js-mbar {
  display: none;
  height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  position: sticky;
  top: 0;
  z-index: 35;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 42%),
    linear-gradient(180deg, #3A2418 0%, #2A1A12 55%, #24150F 100%);
  border-bottom: 1px solid rgba(201, 166, 107, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 8px 24px rgba(36, 21, 15, 0.22);
}
.js-mbar-btn {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(201, 166, 107, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset;
  -webkit-tap-highlight-color: transparent;
}
.js-mbar-btn:active {
  background: rgba(255, 255, 255, 0.14);
}
.js-mbar-btn svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}
.js-mbar-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
  justify-content: center;
  padding: 0 6px;
  color: #fff;
}
.js-mbar-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}
.js-mbar-branch {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(52vw, 220px);
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.js-mbar-spacer {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.js-mbar .js-notif-wrap,
.js-mdash .js-notif-wrap {
  flex-shrink: 0;
  z-index: 40;
}
.js-mbar .js-notif-dark,
.js-mdash .js-notif-dark {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(201, 166, 107, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset;
}
.js-mbar .js-notif-dark:hover,
.js-mbar .js-notif-dark:active,
.js-mdash .js-notif-dark:hover,
.js-mdash .js-notif-dark:active {
  background: rgba(255, 255, 255, 0.14);
}
.js-mbar .js-notif-dark svg,
.js-mdash .js-notif-dark svg {
  width: 18px;
  height: 18px;
}
.js-mbar .js-notif-count,
.js-mdash .js-notif-count {
  border-color: #2A1A12;
}
.js-mbar .js-notif-panel,
.js-mdash .js-notif-panel {
  z-index: 70;
  right: 0;
  width: min(340px, calc(100vw - 20px));
}

/* Mobile home dash header — dipakai semua halaman mobile */
.js-mdash {
  display: none;
  position: sticky;
  top: 0;
  z-index: 35;
  color: #fff;
  margin: 0;
  padding: 0;
  overflow: visible;
}
.js-mdash-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 90% at 0% 100%, rgba(201, 166, 107, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 80% 70% at 100% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    linear-gradient(160deg, #5A3826 0%, #3A2418 48%, #24150F 100%);
}
.js-mdash-bg::after {
  content: "";
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -28%;
  height: 70%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  transform: rotate(-6deg);
}
.js-mdash-inner {
  position: relative;
  z-index: 1;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 14px;
}
.js-body-home .js-mdash-inner {
  padding-bottom: 22px;
}
.js-mdash-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}
.js-mdash-menu {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.js-mdash-menu svg { width: 20px; height: 20px; }
.js-mdash-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  text-decoration: none;
  color: #fff;
}
.js-mdash-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  border: none;
  box-shadow: none;
  filter: none;
}
.js-mdash-brand-txt {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.js-mdash-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.js-mdash-branch {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: rgba(246, 241, 233, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.js-mdash-aside {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.js-mdash-user-wrap {
  position: relative;
  flex-shrink: 0;
}
.js-mdash-avatar {
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  background: rgba(90, 56, 38, 0.55);
  border: 1.5px solid rgba(232, 209, 165, 0.55);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.08);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.js-mdash-user-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 50;
  min-width: 168px;
  padding: 8px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(58, 36, 24, 0.1);
  box-shadow: 0 12px 28px rgba(36, 21, 15, 0.16);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.js-mdash-user-pop[hidden] { display: none !important; }
.js-mdash-user-pop-head {
  padding: 8px 10px 10px;
  border-bottom: 1px solid rgba(58, 36, 24, 0.08);
  margin-bottom: 4px;
}
.js-mdash-user-pop-head strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brown-900);
}
.js-mdash-user-pop-head span {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--text-secondary);
}
.js-mdash-user-pop a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--brown-800);
}
.js-mdash-user-pop a svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.js-mdash-user-pop a:active,
.js-mdash-user-pop a:hover {
  background: rgba(58, 36, 24, 0.05);
}
.js-mdash-user-pop a.is-danger { color: var(--danger); }
.js-mdash .js-notif-dark {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
}
.js-mdash .js-notif-dark:hover,
.js-mdash .js-notif-dark:active {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
.js-mdash .js-notif-dark svg { width: 20px; height: 20px; }

/* Home owner pulse — mobile + desktop */
.js-mhome {
  display: block;
  margin: 0 0 20px;
}
.js-home-kpi-desk {
  display: none !important;
}
.js-mhome-sheet {
  position: relative;
  display: flex;
  align-items: stretch;
  margin: 0 0 14px;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(58, 36, 24, 0.18);
  box-shadow: var(--shadow-md, 0 10px 28px rgba(36, 21, 15, 0.18));
  color: #fff;
  background:
    radial-gradient(ellipse 80% 120% at 0% 0%, rgba(201, 166, 107, 0.22) 0%, transparent 55%),
    linear-gradient(135deg, #4A2E20 0%, #3A2418 55%, #24150F 100%);
}
.js-mhome-sheet-pic {
  position: relative;
  flex: 0 0 38%;
  min-width: 0;
  align-self: stretch;
  background-size: cover;
  background-position: 58% center;
  pointer-events: none;
}
.js-mhome-sheet-pic::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #2A1A12 0%, rgba(36, 21, 15, 0.55) 38%, rgba(36, 21, 15, 0.12) 72%, transparent 100%);
}
.js-mhome-sheet-body {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  padding: 18px 16px 16px 18px;
}
@media (max-width: 1024px) {
  .js-mhome-sheet {
    background:
      radial-gradient(ellipse 70% 100% at 0% 0%, rgba(201, 166, 107, 0.18) 0%, transparent 50%),
      linear-gradient(135deg, #4A2E20 0%, #3A2418 55%, #24150F 100%);
  }
  .js-mhome-sheet-pic {
    position: absolute;
    inset: 0;
    flex: none;
    width: auto;
    z-index: 0;
    background-position: 62% center;
  }
  .js-mhome-sheet-pic::before {
    background: linear-gradient(
      90deg,
      rgba(42, 26, 18, 0.94) 0%,
      rgba(36, 21, 15, 0.78) 38%,
      rgba(36, 21, 15, 0.42) 62%,
      rgba(36, 21, 15, 0.12) 82%,
      transparent 100%
    );
  }
  .js-mhome-sheet-body {
    max-width: 72%;
    padding: 16px 12px 14px 16px;
  }
}
@media (max-width: 640px) {
  .js-mhome-sheet-body {
    max-width: 68%;
    padding: 14px 10px 12px 14px;
  }
  .js-mhome-sheet-pic {
    background-position: 70% center;
  }
  .js-mhome-sheet-pic::before {
    background: linear-gradient(
      90deg,
      rgba(42, 26, 18, 0.92) 0%,
      rgba(36, 21, 15, 0.72) 36%,
      rgba(36, 21, 15, 0.35) 58%,
      rgba(36, 21, 15, 0.1) 78%,
      transparent 100%
    );
  }
}
.js-mhome-greet {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  text-align: left;
}
.js-mhome-ops-date {
  font-size: 13px;
  font-weight: 650;
  color: #fff;
  text-align: left;
  width: 100%;
}
.js-mhome-ops-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
.js-mhome-sec {
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-300, #E8D1A5);
}
.js-mhome-sec + .js-mhome-urgent {
  margin-top: 0;
}
.js-mhome-pulse + .js-mhome-sec {
  margin-top: 4px;
}
.js-mhome-pulse {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}
.js-mhome-pulse-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 78px;
  padding: 12px 8px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(232, 209, 165, 0.18);
  border-radius: 14px;
}
.js-mhome-pulse-item:active {
  background: rgba(255, 255, 255, 0.1);
}
.js-mhome-pulse-item em {
  font-style: normal;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1.05;
}
.js-mhome-pulse-item span {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.68);
}
.js-mhome-pulse-item b {
  margin-top: 2px;
  font-size: 10px;
  font-weight: 600;
  color: #F0C674;
}
.js-mhome-pulse-item.is-warn em { color: #F0C674; }
.js-mhome-urgent {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.js-mhome-urgent-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(232, 209, 165, 0.18);
  border-radius: 14px;
}
.js-mhome-urgent-item:active {
  background: rgba(255, 255, 255, 0.1);
}
.js-mhome-urgent-item span {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.68);
}
.js-mhome-urgent-item strong {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1.1;
}
.js-mhome-urgent-item.is-warn {
  border-color: rgba(240, 198, 116, 0.45);
  background: rgba(240, 198, 116, 0.1);
}
.js-mhome-urgent-item.is-warn strong { color: #F0C674; }
.js-mhome-omzet {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  border-radius: 14px;
  background: linear-gradient(180deg, #E8D1A5 0%, #C9A66B 100%);
  color: #24150F;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}
.js-mhome-omzet:active { filter: brightness(1.04); }
.js-mhome-omzet span {
  font-size: 12px;
  font-weight: 600;
  color: rgba(36, 21, 15, 0.72);
}
.js-mhome-omzet strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #24150F;
}
.js-mhome-menu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.js-mhome-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 78px;
  padding: 10px 4px;
  text-decoration: none;
  color: var(--brown-800);
  background: #fff;
  border: 1px solid rgba(58, 36, 24, 0.06);
  border-radius: 16px;
}
.js-mhome-tile:active { background: #F6F1E9; }
.js-mhome-tile-ico {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(58, 36, 24, 0.06);
  color: var(--brown-800);
}
.js-mhome-tile-ico svg { width: 16px; height: 16px; }
.js-mhome-tile-lab {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.15;
}

/* PWA install banner — mobile/tablet only (pola notif install) */
.js-pwa-banner {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 55;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  padding-right: 36px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(58, 36, 24, 0.08);
  box-shadow:
    0 12px 32px rgba(36, 21, 15, 0.18),
    0 2px 0 rgba(255, 255, 255, 0.8) inset;
  color: var(--brown-900, #24150F);
}
.js-pwa-banner:not([hidden]) {
  display: none;
}
@media (max-width: 1024px) {
  .js-pwa-banner:not([hidden]) {
    display: flex;
    animation: js-pwa-slide-up 280ms ease-out;
  }
}
@keyframes js-pwa-slide-up {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.js-pwa-banner-ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(36, 21, 15, 0.12);
}
.js-pwa-banner-txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.js-pwa-banner-txt strong {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.js-pwa-banner-txt span {
  font-size: 11.5px;
  color: var(--text-secondary, #7a6a5c);
  line-height: 1.3;
}
.js-pwa-banner-cta {
  flex-shrink: 0;
  height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  color: #24150F;
  background: linear-gradient(180deg, #E8D1A5 0%, #C9A66B 100%);
  box-shadow: 0 2px 8px rgba(36, 21, 15, 0.16);
}
.js-pwa-banner-cta:active { filter: brightness(0.97); }
.js-pwa-banner-x {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(58, 36, 24, 0.06);
  color: var(--text-secondary, #7a6a5c);
  cursor: pointer;
}
.js-pwa-banner-x:active { background: rgba(58, 36, 24, 0.12); }
@media (min-width: 1025px) {
  .js-pwa-banner { display: none !important; }
}

@media (min-width: 1025px) {
  .js-mhome {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(360px, 1fr);
    gap: 14px;
    align-items: stretch;
    margin-bottom: 20px;
  }
  .js-mhome-sheet {
    margin: 0;
    height: 100%;
    min-height: 100%;
    flex-direction: row;
    border-radius: var(--radius, 20px);
  }
  .js-mhome-sheet-pic {
    position: relative;
    inset: auto;
    flex: 0 0 36%;
    width: auto;
    z-index: auto;
    background-position: 58% center;
  }
  .js-mhome-sheet-pic::before {
    background: linear-gradient(90deg, #2A1A12 0%, rgba(36, 21, 15, 0.55) 38%, rgba(36, 21, 15, 0.12) 72%, transparent 100%);
  }
  .js-mhome-sheet-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 16px 18px 14px 20px;
    max-width: none;
  }
  .js-mhome-greet {
    margin-bottom: 10px;
  }
  .js-mhome-ops-date { font-size: 13px; }
  .js-mhome-sec {
    font-size: 10px;
    letter-spacing: 0.12em;
    margin-bottom: 6px;
  }
  .js-mhome-pulse {
    gap: 8px;
    margin-bottom: 12px;
  }
  .js-mhome-pulse-item {
    min-height: 58px;
    padding: 8px 6px;
    border-radius: 12px;
  }
  .js-mhome-pulse-item:hover {
    background: rgba(255, 255, 255, 0.12);
  }
  .js-mhome-pulse-item em { font-size: 22px; }
  .js-mhome-pulse-item span { font-size: 12px; }
  .js-mhome-urgent {
    gap: 8px;
    margin-top: auto;
  }
  .js-mhome-urgent-item {
    padding: 8px 8px;
    border-radius: 12px;
    gap: 2px;
  }
  .js-mhome-urgent-item:hover {
    background: rgba(255, 255, 255, 0.12);
  }
  .js-mhome-urgent-item span { font-size: 11px; }
  .js-mhome-urgent-item strong { font-size: 18px; }
  .js-mhome-omzet {
    padding: 10px 14px;
    border-radius: 12px;
  }
  .js-mhome-omzet:hover { filter: brightness(1.04); }
  .js-mhome-omzet span { font-size: 12px; }
  .js-mhome-omzet strong { font-size: 16px; }
  .js-mhome-menu {
    margin: 0;
    align-self: stretch;
    height: 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 8px;
    align-content: stretch;
    background: #fff;
    border: 1px solid rgba(58, 36, 24, 0.06);
    border-radius: var(--radius, 20px);
    box-shadow: var(--shadow, 0 4px 14px rgba(36, 21, 15, 0.05));
  }
  .js-mhome-tile {
    min-height: 0;
    height: 100%;
    padding: 10px 6px;
    border-radius: 14px;
    gap: 6px;
    background: var(--ivory, #FAF8F4);
    border-color: transparent;
    box-shadow: none;
  }
  .js-mhome-tile:hover {
    background: var(--cream, #F6F1E9);
    border-color: rgba(201, 166, 107, 0.35);
    box-shadow: none;
  }
  .js-mhome-tile-ico {
    width: 32px;
    height: 32px;
  }
  .js-mhome-tile-ico svg { width: 15px; height: 15px; }
  .js-mhome-tile-lab {
    font-size: 11.5px;
    color: var(--brown-800);
  }
}

/* Bottom nav — pola Manape (cream fade + icon pill) */
.js-mnav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 36;
  justify-content: space-around;
  align-items: flex-end;
  min-height: var(--mnav-h);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent 0%, rgba(246, 241, 233, 0.88) 32%, rgba(246, 241, 233, 0.98) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none;
  box-shadow: none;
}
.js-mnav::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 166, 107, 0.45), transparent);
  opacity: 0.8;
  pointer-events: none;
}
.js-mnav-item {
  flex: 1;
  max-width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px;
  text-decoration: none;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  min-height: 44px;
  justify-content: flex-end;
  transition: color 0.15s ease;
}
.js-mnav-ico {
  width: 44px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.js-mnav-ico svg {
  width: 20px;
  height: 20px;
  opacity: 0.85;
}
.js-mnav-lab {
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.js-mnav-item.is-active {
  color: var(--brown-700);
}
.js-mnav-item.is-active .js-mnav-ico {
  background: rgba(201, 166, 107, 0.22);
  box-shadow: 0 0 12px rgba(201, 166, 107, 0.28);
}
.js-mnav-item.is-active .js-mnav-ico svg {
  opacity: 1;
  color: var(--brown-800);
}

.js-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(20, 10, 6, 0.4);
  z-index: 45;
}
.js-overlay.is-open { display: block; }
/* close button styles: see .js-drawer-close block below */

@media (min-width: 1025px) {
  /* Judul halaman hanya di topbar desktop — hindari double */
  .js-page-head-text {
    display: none !important;
  }
  .js-page-head:not(:has(.js-btn, a.js-btn, .js-barcode-row, .js-card)) {
    display: none;
  }
  .js-page-head:has(.js-btn, a.js-btn, .js-barcode-row, .js-card) {
    margin-bottom: 16px;
    justify-content: flex-end;
  }
  /* Chrome mobile jangan ikut ke desktop */
  .js-mnav,
  .js-mdash,
  .js-mbar {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .js-topbar {
    display: flex !important;
  }
}

@media (max-width: 1024px) {
  .js-sidebar {
    transform: translateX(-105%);
    transition: transform 220ms ease;
    width: min(88vw, 300px);
    visibility: hidden;
    pointer-events: none;
  }
  .js-sidebar.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  .js-main {
    margin-left: 0;
    overflow-x: hidden;
    max-width: 100vw;
  }
  .js-topbar { display: none; }
  .js-mbar { display: none !important; }
  .js-mdash { display: block; }
  .js-mnav { display: flex; }
  .js-body-home .js-content {
    padding-top: 8px;
    margin-top: 0;
    position: relative;
    z-index: 2;
  }
  .js-body-home .js-mhome {
    margin-top: 0;
  }
  .js-body-home .js-mhome-sheet {
    margin-top: 4px;
  }
  .js-content {
    padding: 14px 14px calc(var(--mnav-h) + 22px);
    overflow-x: hidden;
    max-width: 100%;
  }
  .js-search .hint { display: none; }

  /* Page head: judul + CTA penuh, tanpa subtitle */
  .js-page-head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 14px;
  }
  .js-page-head .js-page-sub { display: none; }
  .js-page-head .js-page-title {
    font-size: 22px;
    line-height: 1.2;
  }
  .js-page-head > .js-btn,
  .js-page-head > a.js-btn {
    width: 100%;
    justify-content: center;
  }

  /* Dashboard KPI lebih padat */
  .js-kpi-grid {
    gap: 8px;
    margin-bottom: 12px !important;
  }
  .js-kpi {
    padding: 12px 12px 10px;
    border-radius: 14px;
  }
  .js-kpi-ico {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    margin-bottom: 8px;
  }
  .js-kpi-ico svg { width: 15px; height: 15px; }
  .js-kpi-label {
    font-size: 11px;
    line-height: 1.25;
  }
  .js-kpi-value {
    font-size: 18px;
    margin: 2px 0 2px;
  }
  .js-kpi-delta {
    font-size: 10.5px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .js-grid-3,
  .js-grid-dash {
    gap: 12px;
    margin-bottom: 12px !important;
  }
  .js-card-pad { padding: 14px; }
  .js-card-head { margin-bottom: 10px; }

  .js-chart-box-bar { height: 190px; }
  .js-chart-box-donut { width: 132px; height: 132px; }
  .js-chart-donut-wrap {
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }
  .js-chart-legend { flex: 1; min-width: 0; }

  /* Deadline: tanpa foto hero di mobile */
  .js-deadline-hero-pic { display: none !important; }
  .js-deadline-hero {
    min-height: 0;
  }
  .js-deadline-hero-txt { padding: 16px 14px; }
  .js-deadline-title { font-size: 17px; }
  .js-deadline-sub { max-width: none; font-size: 12px; }
  .js-deadline-stats em { font-size: 18px; }

  .js-toolbar.js-card { margin-bottom: 12px !important; }
  .js-toolbar-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .js-toolbar-grid .js-grow {
    grid-column: 1 / -1;
  }
}

/* ---------- KPI ---------- */
.js-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.js-kpi {
  padding: 14px 14px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
a.js-kpi-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.18s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
a.js-kpi-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(36, 21, 15, 0.12);
  border-color: rgba(90, 56, 38, 0.28);
}
a.js-kpi-link:active {
  transform: translateY(0);
}
a.js-kpi-link.js-kpi-featured:hover {
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(36, 21, 15, 0.28);
}
a.js-kpi-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 166, 107, 0.35);
}
.js-kpi-featured {
  background: linear-gradient(135deg, #6B4630 0%, #3A2418 100%);
  border-color: transparent;
  color: #fff;
}
.js-kpi-featured .js-kpi-label,
.js-kpi-featured .js-kpi-delta,
.js-kpi-featured .js-page-sub,
.js-kpi-featured .js-muted,
.js-kpi-featured p,
.js-kpi-featured > span {
  color: rgba(255, 255, 255, 0.92) !important;
}
.js-kpi-featured .js-kpi-value {
  color: #fff !important;
}
.js-kpi-featured .js-fin-in,
.js-kpi-featured .js-kpi-value.js-fin-in {
  color: #C8E6D4 !important;
}
.js-kpi-featured .js-fin-out,
.js-kpi-featured .js-kpi-value.js-fin-out {
  color: #F5D0C8 !important;
}
.js-kpi-featured .js-kpi-delta.up,
.js-kpi-featured .js-kpi-delta.down {
  color: var(--gold-300, #E8D1A5) !important;
}
.js-kpi-featured a {
  color: #E8D1A5;
}
.js-kpi-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  background: transparent !important;
  flex-shrink: 0;
}
.js-kpi-ico svg {
  width: 18px;
  height: 18px;
}
.js-kpi-label {
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 500;
}
.js-kpi-value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brown-950);
  margin: 2px 0 4px;
  line-height: 1.15;
}
.js-kpi-delta {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}
.js-kpi-delta.up { color: var(--success); }
.js-kpi-delta.down { color: var(--danger); }
.js-kpi-featured .js-kpi-ico {
  color: #fff !important;
}

@media (max-width: 1280px) {
  .js-kpi-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .js-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .js-kpi-value { font-size: 20px; }
}

/* ---------- Tables ---------- */
.js-table-wrap { overflow-x: auto; }
.js-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.js-table th {
  text-align: left;
  background: #F7F3ED;
  color: var(--text-secondary);
  font-weight: 600;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.js-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.js-table tr:hover td { background: #FCFAF7; }
.js-nowrap { white-space: nowrap; }
table.dataTable.js-sewa-list {
  width: max-content !important;
  min-width: 100%;
}
table.dataTable.js-sewa-list thead th,
table.dataTable.js-sewa-list tbody td,
.js-sewa-list th,
.js-sewa-list td {
  padding: 10px 12px !important;
  white-space: nowrap;
  vertical-align: middle;
}
.js-sewa-code {
  font-weight: 700;
  color: var(--brown-900);
  text-decoration: none;
}
.js-sewa-code:hover { color: var(--brown-700); }
.js-sewa-clip {
  display: inline-block;
  max-width: 160px;
  white-space: normal;
  line-height: 1.35;
  vertical-align: middle;
}
.js-sewa-fine {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}
.js-sewa-fine-note {
  font-size: 11px;
  line-height: 1.3;
  color: var(--text-secondary);
  font-weight: 500;
}
.js-sewa-list .js-badge { white-space: nowrap; }
.js-sewa-list .js-dt-actions { white-space: nowrap; }
.js-sewa-list .js-btn-sm { height: 32px; }

.js-order-list { display: none; flex-direction: column; gap: 10px; }
.js-order-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; background: #fff;
  border: 1px solid var(--border); border-radius: 14px;
}
.js-order-item .av {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--cream); color: var(--brown-700);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.js-order-item .body { flex: 1; min-width: 0; }
.js-order-item .body strong { display: block; font-size: 13.5px; }
.js-order-item .body span { font-size: 12px; color: var(--muted); }

@media (max-width: 900px) {
  .js-table-desktop { display: none; }
  .js-order-list { display: flex; }
}

/* ---------- Timeline ---------- */
.js-timeline { display: flex; flex-direction: column; gap: 14px; }
.js-timeline-item {
  display: flex; gap: 12px;
  font-size: 13px;
}
.js-timeline-item .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold-500); margin-top: 5px; flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--gold-100);
}
.js-timeline-item .time { color: var(--muted); font-size: 11.5px; margin-top: 2px; }

/* ---------- Charts ---------- */
.js-chart-box {
  position: relative;
  width: 100%;
}
.js-chart-box canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: default;
  touch-action: manipulation;
}
.js-chart-box-bar {
  height: 240px;
}
.js-chart-period {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary, #8A7A6C);
  letter-spacing: 0.01em;
}
.js-chart-box-donut {
  width: 168px;
  height: 168px;
  flex-shrink: 0;
  margin: 0 auto;
}
.js-chart-tip {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  pointer-events: none;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: linear-gradient(160deg, #3A2418 0%, #24150F 100%);
  color: #F6F1E9;
  box-shadow:
    0 10px 28px rgba(36, 21, 15, 0.28),
    0 1px 0 rgba(201, 166, 107, 0.25) inset;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  --tx: 0px;
  --ty: 8px;
  transform: translate3d(var(--tx), calc(var(--ty) + 6px), 0) scale(0.96);
  transition: opacity 0.16s ease, transform 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}
.js-chart-tip.is-on {
  opacity: 1;
  transform: translate3d(var(--tx), var(--ty), 0) scale(1);
}
.js-chart-tip[hidden] {
  display: none !important;
}
.js-chart-tip-k {
  font-weight: 500;
  color: rgba(246, 241, 233, 0.72);
  letter-spacing: 0.02em;
}
.js-chart-tip strong {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}
.js-chart-tip-u {
  font-size: 11px;
  font-weight: 500;
  color: #C9A66B;
}
.js-chart-donut-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.js-chart-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.js-chart-legend li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--brown-900, #24150F);
  padding: 6px 8px;
  margin: 0 -8px;
  border-radius: 8px;
  transition: background 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}
.js-chart-legend li:hover,
.js-chart-legend li.is-active {
  background: rgba(90, 56, 38, 0.08);
}
.js-chart-legend li.is-active {
  transform: translateX(2px);
}
.js-chart-legend li.is-dim {
  opacity: 0.38;
}
.js-chart-legend-lab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.js-chart-legend-lab i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}
.js-chart-legend strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--brown-800, #3A2418);
}
.js-grid-dash {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 16px;
}
.js-grid-3 {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr;
  gap: 16px;
}
@media (min-width: 1101px) {
  .js-chart-donut-wrap {
    flex-direction: column;
  }
}
@media (max-width: 1100px) {
  .js-grid-dash, .js-grid-3 { grid-template-columns: 1fr; }
}

.js-promo {
  background: linear-gradient(160deg, #fff 0%, #F6F1E9 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.js-promo::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 140px; height: 140px;
  border: 2px solid rgba(201,166,107,0.35);
  border-radius: 50%;
}
.js-banner {
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #3A2418, #24150F);
  color: #fff;
  display: flex; align-items: stretch;
  min-height: 120px;
}
.js-banner .txt { padding: 20px; flex: 1; }
.js-banner .txt strong { display: block; font-family: var(--font-display); font-size: 18px; margin-bottom: 6px; }
.js-banner .txt span { font-size: 11px; letter-spacing: 0.12em; color: var(--gold-300); }
.js-banner .pic {
  width: 38%;
  background-size: cover;
  background-position: center;
  opacity: 0.9;
}

/* Deadline custom — elegant highlight card */
.js-deadline-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(58, 36, 24, 0.18);
  box-shadow: var(--shadow-md);
  background: #fff;
}
.js-deadline-hero {
  display: flex;
  align-items: stretch;
  min-height: 168px;
  color: #fff;
  background:
    radial-gradient(ellipse 80% 120% at 0% 0%, rgba(201, 166, 107, 0.28) 0%, transparent 55%),
    linear-gradient(135deg, #4A2E20 0%, #3A2418 48%, #24150F 100%);
  position: relative;
}
.js-deadline-hero-txt {
  flex: 1;
  padding: 20px 18px 18px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.js-deadline-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-300);
}
.js-deadline-title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
  margin: 0;
}
.js-deadline-sub {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
  max-width: 28ch;
}
.js-deadline-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.js-deadline-stats div {
  padding: 8px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(232, 209, 165, 0.18);
  text-align: center;
}
.js-deadline-stats em {
  display: block;
  font-style: normal;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
}
.js-deadline-stats em.is-warn { color: #F0C674; }
.js-deadline-stats span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
}
.js-deadline-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: #24150F;
  background: linear-gradient(180deg, #E8D1A5 0%, #C9A66B 100%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  width: fit-content;
}
.js-deadline-cta:hover { filter: brightness(1.04); }
.js-deadline-hero-pic {
  width: 38%;
  min-width: 110px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.js-deadline-hero-pic::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(36, 21, 15, 0.88) 0%, rgba(36, 21, 15, 0.25) 55%, transparent 100%);
}
.js-deadline-list {
  list-style: none;
  margin: 0;
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: linear-gradient(180deg, #FCFAF7 0%, #fff 100%);
}
.js-deadline-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.js-deadline-list li:last-child { border-bottom: 0; padding-bottom: 2px; }
.js-deadline-list a { color: var(--brown-900); }
.js-deadline-list span { color: var(--text-secondary); }
.js-deadline-list time {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--brown-700);
}
.js-deadline-list time.is-today { color: #b45309; }
.js-deadline-list time.is-overdue { color: var(--danger); }
@media (max-width: 640px) {
  .js-deadline-hero { flex-direction: column; }
  .js-deadline-hero-pic {
    width: 100%;
    min-height: 96px;
  }
  .js-deadline-hero-pic::before {
    background: linear-gradient(180deg, rgba(36, 21, 15, 0.75) 0%, transparent 70%);
  }
}
.js-dash-side-card {
  display: flex;
  flex-direction: column;
}
.js-dash-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 4px;
}
.js-dash-stat-row-2 {
  grid-template-columns: repeat(2, 1fr);
}
.js-dash-stat-row-3 {
  grid-template-columns: repeat(3, 1fr);
}
.js-dash-stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--brown-800, #3A2418);
}
.js-dash-stat-num.is-warn {
  color: #b45309;
}

/* Monitor sewa — premium dashboard panel */
.js-sewa-dash {
  border-radius: var(--radius, 16px);
  overflow: hidden;
  border: 1px solid rgba(58, 36, 24, 0.14);
  background: #fff;
  box-shadow: var(--shadow-md, 0 8px 28px rgba(36, 21, 15, 0.08));
}
.js-sewa-dash-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 14px;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 120% at 100% 0%, rgba(201, 166, 107, 0.28) 0%, transparent 55%),
    linear-gradient(135deg, #5A3826 0%, #3A2418 52%, #24150F 100%);
}
.js-sewa-dash-eyebrow {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-300, #E8D1A5);
}
.js-sewa-dash-title {
  margin: 0;
  font-family: var(--font-display, Georgia, serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  line-height: 1.2;
}
.js-sewa-dash-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-top: 2px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(201, 166, 107, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #F6F1E9;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.js-sewa-dash-link svg {
  width: 14px;
  height: 14px;
}
.js-sewa-dash-link:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(201, 166, 107, 0.55);
  transform: translateY(-1px);
}
.js-sewa-dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px 14px 4px;
}
.js-sewa-dash-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 12px 12px 11px;
  border-radius: 14px;
  background: linear-gradient(180deg, #FCFAF7 0%, #F5EFE7 100%);
  border: 1px solid rgba(58, 36, 24, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.js-sewa-dash-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(36, 21, 15, 0.08);
}
.js-sewa-dash-stat-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  border-radius: 9px;
  background: rgba(90, 56, 38, 0.1);
  color: var(--brown-700, #5C3A2A);
}
.js-sewa-dash-stat-ico svg {
  width: 15px;
  height: 15px;
}
.js-sewa-dash-stat em {
  font-style: normal;
  font-family: var(--font-display, Georgia, serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--brown-900, #24150F);
}
.js-sewa-dash-stat span {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary, #8A7A6C);
  letter-spacing: 0.01em;
}
.js-sewa-dash-stat.is-due {
  background: linear-gradient(180deg, #FFF8F0 0%, #F8EBD8 100%);
  border-color: rgba(180, 83, 9, 0.2);
}
.js-sewa-dash-stat.is-due .js-sewa-dash-stat-ico {
  background: rgba(180, 83, 9, 0.14);
  color: #B45309;
}
.js-sewa-dash-stat.is-due em { color: #9A3412; }
.js-sewa-dash-stat.is-late {
  background: linear-gradient(180deg, #FFF5F3 0%, #F8E4E0 100%);
  border-color: rgba(163, 59, 43, 0.22);
}
.js-sewa-dash-stat.is-late .js-sewa-dash-stat-ico {
  background: rgba(163, 59, 43, 0.12);
  color: #A33B2B;
}
.js-sewa-dash-stat.is-late em { color: #A33B2B; }
.js-sewa-dash-empty {
  margin: 4px 16px 16px;
  padding: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  background: #FCFAF7;
  border-radius: 12px;
  border: 1px dashed var(--border, #E8DFD4);
}
.js-sewa-dash-list {
  list-style: none;
  margin: 8px 14px 14px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #FCFAF7;
  border-radius: 14px;
  border: 1px solid rgba(58, 36, 24, 0.06);
}
.js-sewa-dash-list li {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  background: transparent;
  transition: background 0.15s ease;
}
.js-sewa-dash-list li:hover {
  background: #fff;
}
.js-sewa-dash-list li.is-due,
.js-sewa-dash-list li.is-late {
  background: #fff;
  box-shadow: 0 1px 0 rgba(58, 36, 24, 0.04);
}
.js-sewa-dash-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8A6448;
  box-shadow: 0 0 0 3px rgba(138, 100, 72, 0.16);
}
.js-sewa-dash-dot.is-due {
  background: #B45309;
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.18);
}
.js-sewa-dash-dot.is-late {
  background: #A33B2B;
  box-shadow: 0 0 0 3px rgba(163, 59, 43, 0.18);
}
.js-sewa-dash-list-txt {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.js-sewa-dash-list-txt strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--brown-900, #24150F);
  line-height: 1.25;
}
.js-sewa-dash-list-txt span {
  font-size: 11.5px;
  color: var(--text-secondary, #8A7A6C);
  line-height: 1.3;
}
.js-sewa-dash-list li.is-late .js-sewa-dash-list-txt strong {
  color: #A33B2B;
}
.js-sewa-dash-list li.is-due .js-sewa-dash-list-txt strong {
  color: #9A3412;
}
.js-sewa-dash-list b {
  font-size: 15px;
  font-weight: 700;
  color: var(--brown-800, #3A2418);
  font-variant-numeric: tabular-nums;
  min-width: 1.2em;
  text-align: right;
}
@media (max-width: 640px) {
  .js-sewa-dash-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .js-sewa-dash-link {
    align-self: flex-start;
  }
  .js-sewa-dash-stats {
    gap: 6px;
    padding: 12px 12px 2px;
  }
  .js-sewa-dash-stat {
    padding: 10px 8px 9px;
  }
  .js-sewa-dash-stat em { font-size: 22px; }
  .js-sewa-dash-stat span { font-size: 10px; }
  .js-sewa-dash-list { margin: 8px 12px 12px; }
}

.js-dash-mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.js-dash-mini-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 13px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.js-dash-mini-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.js-deadline {
  font-weight: 600;
  white-space: nowrap;
  color: var(--brown-800, #3A2418);
}
.js-deadline.is-today {
  color: #b45309;
}
.js-deadline.is-overdue {
  color: var(--danger, #B94B45);
}
.js-custom-hero-meta .js-deadline {
  font-size: inherit;
}

/* ---------- Auth ---------- */
.js-auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
}
.js-auth-hero {
  position: relative;
  background: #24150F center/cover no-repeat;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 40px 32px;
  overflow: hidden;
}
.js-auth-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(20, 10, 6, 0.78) 0%, rgba(36, 21, 15, 0.55) 48%, rgba(36, 21, 15, 0.35) 100%),
    linear-gradient(180deg, rgba(20, 10, 6, 0.25) 0%, rgba(20, 10, 6, 0.55) 100%);
}
.js-auth-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(20, 10, 6, 0.72));
  pointer-events: none;
}
.js-auth-hero > * { position: relative; z-index: 1; }
.js-auth-hero .brand-lockup { text-align: left; }
.js-auth-hero .brand-lockup img { height: 64px; width: auto; margin-bottom: 10px; }
.js-auth-hero .tag-sm {
  font-size: 11px; letter-spacing: 0.2em; margin: 18px 0 10px;
  color: rgba(255,255,255,0.8);
}
.js-auth-hero .gold-line {
  width: 42px; height: 2px; background: var(--gold-500); margin-bottom: 18px;
}
.js-auth-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 0 0 14px;
}
.js-auth-hero h1 em {
  font-style: normal;
  color: var(--gold-400);
}
.js-auth-hero p.lead {
  max-width: 380px;
  color: rgba(255,255,255,0.82);
  font-size: 14.5px;
  margin: 0 0 28px;
}
.js-auth-feats {
  display: flex; gap: 22px; flex-wrap: wrap;
  margin-top: auto; padding-top: 24px;
}
.js-auth-feats div {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12px; color: rgba(255,255,255,0.85);
}
.js-auth-feats svg { width: 22px; height: 22px; color: var(--gold-400); }
.js-auth-hero-foot {
  margin-top: 28px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
}

.js-auth-panel {
  background: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  position: relative;
}
.js-auth-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  padding: 32px 28px 28px;
}
.js-auth-card .logo-center {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.js-auth-card .logo-center img {
  height: 140px !important;
  width: auto !important;
  max-width: 320px;
  object-fit: contain;
  background: #fff;
}
.js-auth-card h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 6px;
  text-align: center;
  color: var(--brown-950);
}
.js-auth-card .sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 13.5px;
  margin: 0 0 22px;
}
.js-auth-row {
  display: flex; align-items: center; justify-content: space-between;
  margin: 4px 0 18px; gap: 10px; flex-wrap: wrap;
}
.js-login-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #FCEDEC;
  color: #8B3A36;
  font-size: 13px;
  line-height: 1.4;
}
.js-login-error[hidden] { display: none !important; }
.js-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  position: relative;
}
.js-login-spin {
  width: 0;
  height: 0;
  border-radius: 50%;
  border: 0 solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  flex-shrink: 0;
  opacity: 0;
  box-sizing: border-box;
}
.js-login-btn.is-loading {
  cursor: progress;
  opacity: 0.92;
}
.js-login-btn.is-loading .js-login-spin {
  opacity: 1;
  width: 15px;
  height: 15px;
  border-width: 2px;
  animation: js-spin 0.7s linear infinite;
}
.js-login-btn:disabled {
  cursor: progress;
}
.js-auth-row a { color: var(--brown-600); font-size: 13px; font-weight: 500; }
.js-auth-row a:hover { color: var(--gold-700); }
.js-auth-foot {
  text-align: center;
  margin-top: 18px;
  font-size: 11.5px;
  color: var(--muted);
}
.js-auth-deco {
  position: absolute;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.js-auth-deco.tr { top: 24px; right: 20px; writing-mode: vertical-rl; }
.js-auth-deco.br {
  bottom: 24px; right: 28px;
  display: flex; align-items: center; gap: 10px;
  writing-mode: horizontal-tb;
}
.js-auth-deco.br::before {
  content: ""; width: 36px; height: 1px; background: var(--gold-500);
}

/* Mobile auth */
.js-auth-mobile { display: none; min-height: 100vh; flex-direction: column; }
.js-auth-mobile-hero {
  position: relative;
  min-height: 42vh;
  background: #24150F center/cover no-repeat;
  color: #fff;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 48px 24px 36px;
}
.js-auth-mobile-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,10,6,0.45) 0%, rgba(36,21,15,0.72) 55%, rgba(36,21,15,0.88) 100%);
}
.js-auth-mobile-hero > * { position: relative; z-index: 1; }
.js-auth-mobile-hero img.logo { height: 70px; width: auto; margin: 0 auto 14px; }
.js-auth-mobile-hero .welcome {
  font-size: 13px; letter-spacing: 0.2em; font-weight: 600; margin-top: 8px;
}
.js-auth-mobile-hero .welcome-sub {
  font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 6px;
}
.js-auth-mobile-sheet {
  flex: 1;
  background: var(--ivory);
  border-radius: 24px 24px 0 0;
  margin-top: -20px;
  position: relative; z-index: 2;
  padding: 24px 20px 28px;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.12);
}
.js-auth-mobile-sheet h2 {
  font-family: var(--font-display);
  font-size: 22px; margin: 0 0 4px; text-align: center;
}
.js-auth-mobile-sheet .sub {
  text-align: center; color: var(--text-secondary); font-size: 13px; margin: 0 0 20px;
}
.js-auth-mobile-foot {
  text-align: center; margin-top: 20px;
  font-size: 11px; color: var(--muted);
}
.js-auth-mobile-foot .tagline {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  letter-spacing: 0.12em; color: var(--brown-600); font-size: 10px;
  margin-bottom: 8px; font-weight: 600;
}
.js-auth-mobile-foot .tagline::before,
.js-auth-mobile-foot .tagline::after {
  content: ""; width: 28px; height: 1px; background: var(--gold-500);
}

@media (max-width: 900px) {
  .js-auth { display: none; }
  .js-auth-mobile { display: flex; }
}
@media (min-width: 901px) {
  .js-auth-mobile { display: none; }
}

/* Utilities */
.js-flash {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 13.5px;
}
.js-flash-ok { background: var(--success-bg); color: var(--success); }
.js-flash-err { background: var(--danger-bg); color: var(--danger); }
.js-stack { display: flex; flex-direction: column; gap: 16px; }
.js-row { display: flex; gap: 16px; align-items: flex-start; }
.js-row > * { min-width: 0; }
.js-grow { flex: 1; }
.js-mt-1 { margin-top: 8px; }
.js-mt-2 { margin-top: 16px; }
.js-mt-3 { margin-top: 24px; }
.js-mb-2 { margin-bottom: 16px; }
.js-mb-3 { margin-bottom: 24px; }
.js-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ---------- Modal / Toast / Pagination ---------- */
.js-modal-root {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.js-modal-root[hidden] { display: none !important; }
.js-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 10, 6, 0.45);
}
.js-modal {
  position: relative; z-index: 1;
  width: min(480px, 100%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  max-height: min(90vh, 640px);
  overflow: auto;
}
.js-modal.js-modal-wide {
  width: min(720px, 100%);
  max-height: min(92vh, 860px);
}
.js-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.js-modal-head h3 {
  margin: 0; font-size: 16px; color: var(--brown-900);
}
.js-modal-body { padding: 18px; }

/* ---------- Custom detail · step Baru (layout ala kasir + scroll) ---------- */
.js-baru-kasir {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
  gap: 16px;
  align-items: start;
  min-height: calc(100vh - var(--topbar-h) - 140px);
}
/* Desktop: CTA di kolom kanan (bawah pelanggan & bayar) */
.js-baru-go-edit {
  display: none;
  margin: 0;
}
.js-baru-go-edit-side {
  margin: 0;
}
.js-baru-pane-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  position: sticky;
  top: calc(var(--topbar-h) + 10px);
  max-height: calc(100vh - var(--topbar-h) - 28px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-gutter: stable;
}
.js-baru-pane-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  position: sticky;
  top: calc(var(--topbar-h) + 10px);
  max-height: calc(100vh - var(--topbar-h) - 28px);
}
.js-baru-pane-side-scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
  scrollbar-gutter: stable;
}
.js-baru-pane-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 8px 4px 10px;
  background: linear-gradient(180deg, var(--ivory) 70%, transparent);
}
.js-baru-card { margin: 0; }
.js-baru-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}
.js-baru-grid-side { gap: 8px 10px; }
.js-baru-span2 { grid-column: 1 / -1; }
.js-baru-pay-summary {
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--cream);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13.5px;
}
.js-baru-actions { margin-top: 12px; }
.js-baru-add-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 0.55fr;
  gap: 10px;
  margin-top: 10px;
  align-items: end;
}
.js-baru-add-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}
.js-baru-item { scroll-margin-top: 12px; }
.js-baru-item-acc {
  margin: 0;
  overflow: visible;
  padding: 0;
  border: 1px solid var(--border-light, #E8DFD4);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(61, 43, 31, 0.03);
}
.js-baru-item-acc[open] {
  border-color: #ddd0c2;
  box-shadow: 0 2px 10px rgba(61, 43, 31, 0.05);
}
.js-baru-item-acc:not([open]) > *:not(summary) {
  display: none !important;
}
.js-baru-item-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  margin: 0;
  user-select: none;
  border-radius: 14px;
}
.js-baru-item-acc[open] > .js-baru-item-summary {
  border-radius: 14px 14px 0 0;
  background: #FCFAF7;
}
.js-baru-item-summary::-webkit-details-marker { display: none; }
.js-baru-item-summary::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid #8A7462;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  margin-right: 2px;
  flex-shrink: 0;
  transition: transform .15s ease;
}
.js-baru-item-acc[open] > .js-baru-item-summary::before {
  transform: rotate(90deg);
}
.js-baru-item-sum-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.js-baru-item-sum-main strong {
  font-size: 14.5px;
  color: var(--brown-900, #3d2b1f);
}
.js-baru-item-sum-price {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--brown-800, #4a3428);
  white-space: nowrap;
}
.js-baru-item-panel {
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
  padding-bottom: 12px;
}
.js-baru-item-head {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}
.js-baru-item-name {
  flex: 1;
  min-width: 160px;
}
.js-baru-item-meta {
  margin-top: 10px;
}
.js-baru-item-price {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.js-baru-item-qty {
  width: 72px;
  flex-shrink: 0;
}
.js-baru-item-form .js-input {
  padding-left: 12px;
}
.js-baru-item-body {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) minmax(0, 1.3fr);
  gap: 12px;
  align-items: start;
}
.js-baru-item-media {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.js-baru-item-media-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.js-baru-item-media .js-baru-photos {
  max-height: none;
  overflow: visible;
}
.js-baru-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 8px;
}
.js-baru-photos img,
.js-baru-photo-tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f5f5f5;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  display: block;
}
.js-baru-photo-tile {
  position: relative;
}
.js-baru-photo-actions {
  display: flex;
  gap: 2px;
  justify-content: flex-end;
  margin-top: 4px;
}
.js-baru-photo-actions .js-btn {
  min-width: 0;
  padding: 2px 6px;
  font-size: 11px;
  height: auto;
  line-height: 1.2;
}
.js-baru-photo-empty {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 12.5px;
  background: #FCFAF7;
  grid-column: 1 / -1;
  padding: 10px;
  text-align: center;
}
.js-baru-item-ukur {
  min-width: 0;
}
.js-baru-item-ukur-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.js-baru-measure-panel {
  border: 1px solid var(--border-light);
  border-radius: 12px;
  background: #FCFAF7;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.js-baru-measure-panel.is-preview:hover {
  border-color: #d4c4b4;
  box-shadow: 0 2px 10px rgba(61, 43, 31, 0.06);
}
.js-baru-ukur-val {
  font-variant-numeric: tabular-nums;
  color: var(--brown-900, #3d2b1f);
  font-weight: 600;
  font-size: 12.5px;
}
.js-baru-measure-scroll {
  /* header sticky + ~5 baris */
  max-height: 218px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  background: #fff;
}
.js-baru-measure {
  font-size: 12px;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}
.js-table.js-baru-measure th,
.js-table.js-baru-measure td {
  vertical-align: middle;
  padding: 2px 6px !important;
  border-bottom: 1px solid var(--border-light);
}
.js-table.js-baru-measure tr:last-child td {
  border-bottom: 0;
}
.js-table.js-baru-measure tr:hover td {
  background: transparent;
}
.js-baru-measure thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #F7F1E8 !important;
  box-shadow: 0 1px 0 var(--border-light, #EFE8DF);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--brown-800, #4a3428);
  padding: 5px 6px !important;
}
.js-baru-m-input {
  height: 26px !important;
  padding: 0 6px !important;
  font-size: 12px !important;
  min-width: 56px;
}

/* Modal edit ukuran — satu scroll di body */
#modalBaruUkuranEdit .js-baru-ukur-modal {
  max-width: 520px;
  width: calc(100vw - 20px);
  max-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
#modalBaruUkuranEdit .js-modal-head,
#modalBaruFotoSlide .js-modal-head {
  flex: 0 0 auto;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--border-light);
}
.js-baru-ukur-modal-head-text {
  min-width: 0;
  flex: 1;
}
#modalBaruUkuranEdit .js-baru-ukur-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  scrollbar-width: thin;
}
#modalBaruUkuranEdit .js-baru-ukur-modal-foot,
#modalBaruFotoSlide .js-baru-ukur-modal-foot {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border-light);
  background: #fff;
}
#modalBaruUkuranEdit .js-baru-measure { width: 100%; }
#modalBaruUkuranEdit .js-baru-m-input {
  height: 38px !important;
  font-size: 15px !important;
  min-width: 80px;
  padding: 0 10px !important;
}
#modalBaruUkuranEdit .js-table.js-baru-measure th,
#modalBaruUkuranEdit .js-table.js-baru-measure td {
  padding: 8px 12px !important;
}
#modalBaruUkuranEdit .js-baru-measure thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #F3EBE1 !important;
  padding: 10px 12px !important;
  font-size: 11px;
}

/* Modal galeri foto — slide Next/Back (tampil besar) */
#modalBaruFotoSlide .js-baru-foto-modal {
  max-width: min(920px, 96vw);
  width: calc(100vw - 16px);
  max-height: min(94vh, 900px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
#modalBaruFotoSlide .js-baru-foto-modal-body {
  flex: 1 1 auto;
  min-height: min(62vh, 560px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: #1a120e;
  overflow: hidden;
}
#modalBaruFotoSlide #baruFotoSlideImg {
  width: 100%;
  height: min(68vh, 640px);
  max-width: 100%;
  max-height: min(68vh, 640px);
  object-fit: contain;
  border-radius: 6px;
  background: #1a120e;
}
#modalBaruFotoSlide #baruFotoSlideImg.is-anim {
  animation: jsBaruFotoIn .18s ease;
}
@keyframes jsBaruFotoIn {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}
.js-baru-foto-slide-nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px 4px;
  background: #fff;
}
.js-baru-foto-slide-nav .js-btn {
  min-width: 96px;
}
.js-baru-foto-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  max-width: 160px;
}
.js-baru-foto-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ddd2c6;
}
.js-baru-foto-dot.is-on {
  background: var(--brown-700, #5c4030);
  transform: scale(1.2);
}
.js-baru-photo-tile img {
  cursor: zoom-in;
}
.js-baru-item-actions {
  position: sticky;
  bottom: 0;
  z-index: 4;
  margin: 14px -4px 0;
  padding: 10px 4px 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 28%);
  border-top: 1px solid var(--border-light, #EFE8DF);
}
.js-baru-item-actions .js-btn-primary {
  min-width: 132px;
}
.js-baru-delete[hidden] {
  display: none !important;
}
.js-baru-body-grid {
  max-height: 220px;
  overflow: auto;
}
#baruBodyPhotoPanel .js-cust-photo-grid {
  max-height: none;
}
.js-baru-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.js-baru-form-head-text { min-width: 0; flex: 1; }
.js-baru-cust-readonly .js-baru-cust-name {
  display: block;
  font-size: 1.05rem;
  color: #1C1917;
  line-height: 1.3;
}
.js-baru-cust-readonly .js-cust-contact {
  margin-top: 8px;
}
.js-baru-cust-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin: 12px 0 0;
}
.js-baru-cust-meta > div {
  min-width: 0;
}
.js-baru-cust-meta dt {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted, #8a7462);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.js-baru-cust-meta dd {
  margin: 2px 0 0;
  font-size: 13px;
  color: #292524;
  word-break: break-word;
}
.js-baru-cust-meta-full {
  grid-column: 1 / -1;
}
.js-baru-section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}
.js-baru-section:first-of-type {
  margin-top: 10px;
}
.js-baru-section-title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #8a7462);
  margin: 0 0 10px;
}
.js-baru-section-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.js-baru-pair {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  min-width: 0;
}
.js-baru-discount-row {
  display: flex;
  gap: 6px;
  min-width: 0;
}
.js-baru-discount-row select {
  padding-left: 10px;
  max-width: 72px;
  flex: 0 0 72px;
}
.js-baru-discount-row input {
  padding-left: 12px;
  flex: 1;
  min-width: 0;
}
.js-baru-pay-summary .js-baru-sisa {
  color: var(--brown-900, #3d2b1f);
}
.js-baru-order-form #baruCustomerSelect {
  position: relative;
  z-index: 5;
}
.js-baru-sticky {
  flex-shrink: 0;
  margin: 0;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  background: #fff;
}
@media (max-width: 1100px) {
  .js-baru-kasir {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 14px;
  }
  .js-baru-pane-items,
  .js-baru-pane-side {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .js-baru-pane-side-scroll {
    overflow: visible;
    gap: 12px;
  }
  .js-baru-pane-head {
    position: sticky;
    top: calc(var(--topbar-h) - 2px);
    background: var(--ivory, #F7F1E8);
    padding: 10px 2px;
    margin: 0 -2px;
    border-bottom: 1px solid var(--border-light);
  }
  /* Mobile: Pelanggan & bayar → Item → Lanjut ke Edit paling bawah */
  .js-baru-pane-side { order: -1; }
  .js-baru-pane-items { order: 0; }
  .js-baru-go-edit-side { display: none; }
  .js-baru-go-edit {
    display: block;
    order: 10;
    grid-column: auto;
    width: 100%;
    position: sticky;
    bottom: calc(var(--mnav-h, 64px) + 8px);
    z-index: 8;
  }
  /* Item order: pane full-bleed; kartu tertutup full width */
  .js-content:has(.js-custom-detail) {
    --js-content-pad-x: 14px;
  }
  .js-custom-detail .js-baru-pane-items {
    --js-pad: var(--js-content-pad-x, 14px);
    width: calc(100% + 2 * var(--js-pad));
    max-width: none;
    margin-left: calc(-1 * var(--js-pad));
    margin-right: calc(-1 * var(--js-pad));
    padding-right: 0;
    gap: 0;
    overflow: visible;
  }
  .js-custom-detail .js-baru-pane-items .js-baru-pane-head {
    padding-left: var(--js-pad);
    padding-right: var(--js-pad);
    margin-left: 0;
    margin-right: 0;
  }
  /* Tertutup: full width edge-to-edge */
  .js-custom-detail .js-baru-item-acc:not([open]) {
    width: 100%;
    margin: 0;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    box-shadow: none !important;
  }
  .js-custom-detail .js-baru-item-acc:not([open]) > .js-baru-item-summary {
    border-radius: 0 !important;
  }
  /* Terbuka: sedikit inset biar form enak dibaca */
  .js-custom-detail .js-baru-item-acc[open] {
    width: auto;
    margin: 8px var(--js-pad, 14px);
    border-radius: 14px;
    border: 1px solid #ddd0c2;
    box-shadow: 0 2px 10px rgba(61, 43, 31, 0.05);
  }
  .js-custom-detail .js-baru-item-acc[open] > .js-baru-item-summary {
    border-radius: 14px 14px 0 0;
  }
  .js-baru-add-grid,
  .js-baru-grid { grid-template-columns: 1fr 1fr; }
  .js-baru-item-body { grid-template-columns: 1fr; }
  .js-baru-order-form.js-card-pad {
    padding: 14px;
  }
  .js-baru-item-summary {
    padding: 11px 12px;
    min-height: 0;
    gap: 8px;
  }
  .js-baru-item-sum-main strong {
    font-size: 14px;
  }
  .js-baru-item-sum-price {
    font-size: 13px;
  }
  .js-baru-item-panel.js-card-pad,
  .js-baru-item-panel {
    padding: 10px 12px 12px;
  }
  .js-baru-item-meta {
    margin-top: 8px;
    gap: 8px;
  }
  .js-baru-item-body {
    margin-top: 10px;
    gap: 10px;
  }
  .js-baru-item-form .js-label {
    font-size: 11px;
    margin-bottom: 3px;
  }
  .js-baru-item-form .js-input {
    min-height: 40px;
    font-size: 15px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  #baruBodyPhotoPanel .js-cust-photo-grid-4,
  #baruBodyPhotoPanel .js-cust-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  #baruBodyPhotoPanel .js-cust-photo-tile .js-cust-photo-label {
    font-size: 9.5px;
    letter-spacing: 0.02em;
  }
  .js-baru-sticky {
    position: sticky;
    bottom: 8px;
    z-index: 6;
  }
}
@media (max-width: 560px) {
  .js-baru-kasir { gap: 12px; }
  .js-baru-add-grid,
  .js-baru-grid-side { grid-template-columns: 1fr; gap: 10px; }
  /* Item card: tetap 2 kolom biar tidak terlalu tinggi */
  .js-baru-item-meta.js-baru-grid,
  .js-baru-pane-items .js-baru-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .js-baru-pair { gap: 10px; }
  .js-baru-item-head {
    flex-direction: column;
    gap: 8px;
  }
  .js-baru-item-name {
    width: 100%;
    min-width: 0;
  }
  .js-baru-item-price {
    width: 100%;
    display: grid;
    grid-template-columns: 1.4fr 0.7fr;
    gap: 8px;
  }
  .js-baru-item-price .js-field,
  .js-baru-item-qty { width: auto; flex: unset; }
  .js-baru-item-actions {
    margin-top: 10px;
    gap: 8px;
  }
  .js-baru-item-actions .js-btn {
    min-height: 40px;
  }
  .js-baru-form-sub { display: none; }
  .js-baru-photo-hint { display: none; }
  .js-baru-form-head {
    align-items: center;
    margin-bottom: 2px;
  }
  .js-baru-section {
    margin-top: 12px;
    padding-top: 12px;
  }
  .js-baru-section-title {
    margin-bottom: 8px;
  }
  .js-baru-pay-summary {
    margin-top: 0;
    font-size: 13px;
    gap: 6px;
    padding: 12px;
  }
  .js-baru-pay-summary .js-between strong {
    font-variant-numeric: tabular-nums;
  }
  .js-baru-actions {
    margin-top: 10px;
  }
  .js-baru-actions .js-btn {
    min-height: 46px;
    font-size: 15px;
  }
  .js-baru-order-form .js-input,
  .js-baru-order-form select.js-input {
    min-height: 44px;
    font-size: 16px; /* cegah zoom iOS */
  }
  .js-baru-order-form .js-label {
    margin-bottom: 4px;
  }
  .js-baru-discount-row select {
    max-width: 64px;
    flex-basis: 64px;
    padding-left: 8px;
  }
  #baruBodyPhotoPanel .js-cust-photo-grid-4,
  #baruBodyPhotoPanel .js-cust-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .js-baru-pane-head {
    align-items: center;
    gap: 8px;
  }
  .js-baru-pane-head .js-btn {
    flex-shrink: 0;
  }
  .js-baru-measure-scroll {
    max-height: 180px;
  }
  .js-baru-item-ukur-head {
    margin-bottom: 4px;
  }
  .js-baru-item-media-head .js-btn {
    padding: 4px 8px;
    min-height: 32px;
    font-size: 12px;
  }
  .js-search-select-list {
    max-height: 220px;
  }
  /* Modal tambah item nyaman di HP */
  #modalTambahItem .js-modal {
    width: calc(100vw - 20px);
    max-width: 560px;
    margin: 10px auto;
  }
  #modalTambahItem .js-modal-body {
    padding: 14px;
  }
  #modalTambahItem .js-baru-grid {
    grid-template-columns: 1fr 1fr;
  }
  #modalTambahItem .js-baru-grid > .js-field:first-child {
    grid-column: 1 / -1;
  }
}
#tambahItemProductWrap {
  position: relative;
  z-index: 6;
}
#tambahItemProductList:not([hidden]) {
  position: static;
  margin-top: 6px;
  max-height: 200px;
  box-shadow: none;
}

/* ---------- POS cashier pay box (Ready / Sewa / Custom) ---------- */
.js-pos-cashier {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.js-pos-cashier-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-secondary);
}
.js-pos-cashier-lines strong {
  color: var(--brown-900);
  font-weight: 700;
}
.js-pos-cashier-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(145deg, #2B1A12 0%, #4A2E20 100%);
  color: #fff;
}
.js-pos-cashier-total span {
  font-size: 12.5px;
  font-weight: 600;
  opacity: 0.88;
}
.js-pos-cashier-total strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.js-pos-cashier-pay .js-label {
  margin-bottom: 5px;
}
.js-pos-cashier-input,
input.js-pos-cashier-input {
  height: 44px !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  text-align: right;
  padding: 0 12px !important;
  border-radius: 11px;
  border-color: #D4C4B2;
  background: #FFFEFC;
}
.js-pos-cashier-input:focus {
  border-color: var(--gold-600);
  box-shadow: 0 0 0 3px rgba(201, 166, 107, 0.22);
}
.js-pos-cashier-result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--cream);
  transition: background 160ms, border-color 160ms, color 160ms;
}
.js-pos-cashier-result-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.8;
}
.js-pos-cashier-result-val {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--brown-900);
}
.js-pos-cashier-result.is-short {
  background: var(--warning-bg);
  border-color: #F0D48A;
}
.js-pos-cashier-result.is-short .js-pos-cashier-result-val {
  color: #9A6A00;
}
.js-pos-cashier-result.is-change {
  background: var(--success-bg);
  border-color: #A8D9B8;
}
.js-pos-cashier-result.is-change .js-pos-cashier-result-label {
  color: var(--success);
}
.js-pos-cashier-result.is-change .js-pos-cashier-result-val {
  font-size: 22px;
  color: var(--success);
}
.js-pos-cashier-result.is-lunas {
  background: var(--success-bg);
  border-color: #A8D9B8;
}
.js-pos-cashier-result.is-lunas .js-pos-cashier-result-val {
  color: var(--success);
}
.js-pos-cashier-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- Save loader + after-save modal ---------- */
.js-save-loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(36, 21, 15, 0.42);
  backdrop-filter: blur(2px);
}
.js-save-loader[hidden] { display: none !important; }
.js-save-loader-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 180px;
  padding: 26px 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}
.js-save-loader-spin {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid #E8DFD4;
  border-top-color: var(--brown-700);
  animation: js-spin 0.75s linear infinite;
}
.js-save-loader-text {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--brown-900);
}
@keyframes js-spin {
  to { transform: rotate(360deg); }
}

.js-modal.js-after-save-modal {
  width: min(420px, 100%);
  max-height: min(92vh, 720px);
  overflow: hidden;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
}
.js-modal.js-after-save-modal .js-after-save-body {
  overflow-y: auto;
  max-height: min(92vh, 720px);
  -webkit-overflow-scrolling: touch;
}
.js-after-save-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px !important;
  height: 36px !important;
  color: var(--muted);
}
.js-after-save-body {
  padding: 28px 22px 20px;
}
.js-after-save-hero {
  text-align: center;
  margin-bottom: 20px;
}
.js-after-save-check {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  box-shadow: 0 0 0 6px rgba(22, 138, 74, 0.08);
}
.js-after-save-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--brown-900);
  letter-spacing: -0.01em;
}
.js-after-save-code {
  display: inline-block;
  margin: 0 0 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--brown-800);
  letter-spacing: 0.02em;
}
.js-after-save-msg {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}
.js-after-save-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.js-after-save-main {
  height: 46px;
  font-size: 14px;
}
.js-after-save-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.js-after-save-row:has(#afterSaveWa:not([hidden])) {
  grid-template-columns: 1fr 1fr;
}
.js-after-save-copy {
  height: 38px;
  font-size: 13px;
  font-weight: 500;
}
.js-after-save-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.js-after-save-detail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brown-600);
}
.js-after-save-detail:hover {
  color: var(--brown-900);
}
.js-after-save-detail .js-btn-ico svg {
  width: 14px;
  height: 14px;
}
@supports not selector(:has(*)) {
  .js-after-save-row.js-has-wa {
    grid-template-columns: 1fr 1fr;
  }
}

.js-toast-host {
  position: fixed;
  top: 18px; right: 18px;
  z-index: 90;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.js-toast {
  min-width: 240px; max-width: min(360px, 92vw);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13.5px; font-weight: 500;
  box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(-8px);
  transition: opacity 180ms, transform 180ms;
  pointer-events: auto;
}
.js-toast.is-in { opacity: 1; transform: translateY(0); }
.js-toast-ok { background: var(--success-bg); color: var(--success); }
.js-toast-err { background: var(--danger-bg); color: var(--danger); }

/* Custom confirm (ganti window.confirm) */
.js-confirm-root { z-index: 95; }
.js-confirm-dialog {
  width: min(400px, 100%);
  padding: 22px 20px 18px;
  text-align: center;
  max-height: none;
  overflow: visible;
}
.js-confirm-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F8EFE4;
  color: var(--brown-700, #5C3A2A);
}
.js-confirm-root.is-danger .js-confirm-icon {
  background: #FCE8E6;
  color: var(--danger, #B42318);
}
.js-confirm-root.is-gold .js-confirm-icon {
  background: #F7EED8;
  color: #8A6A1F;
}
.js-confirm-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 650;
  color: var(--brown-950, #2A1A12);
  line-height: 1.3;
}
.js-confirm-msg {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary, #6B635C);
}
.js-confirm-actions {
  display: flex;
  gap: 8px;
  justify-content: stretch;
}
.js-confirm-actions .js-btn {
  flex: 1;
  justify-content: center;
  min-height: 40px;
}

.js-pagination {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 10px; margin-top: 14px;
}

.js-drawer-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}
.js-drawer-close:active {
  background: rgba(255, 255, 255, 0.16);
}
.js-drawer-close svg { width: 20px; height: 20px; pointer-events: none; }
@media (max-width: 1024px) {
  .js-drawer-close { display: flex; }
}

/* ---------- CRUD toolbar / DT / tabs ---------- */
.js-toolbar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  align-items: end;
}
.js-dt-actions {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.js-row-menu {
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
}
.js-row-menu-btn {
  height: 32px;
  padding: 0 10px 0 12px;
  border-radius: 9px;
  border: 1px solid #E8E0D6;
  background: #fff;
  color: #3A2418;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  font-family: inherit;
}
.js-row-menu-btn:hover,
.js-row-menu.is-open .js-row-menu-btn {
  background: #F6F1E9;
  border-color: #D9CBBC;
}
.js-row-menu-btn svg {
  width: 14px;
  height: 14px;
}
.js-row-menu-pop {
  position: fixed;
  z-index: 80;
  min-width: 188px;
  background: #fff;
  border: 1px solid #E8E0D6;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(36, 24, 18, 0.14);
  padding: 6px;
}
.js-row-menu-pop[hidden] { display: none !important; }
.js-row-menu-pop form,
.js-row-menu-pop .js-inline-form {
  display: block;
  margin: 0;
}
.js-row-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 500;
  color: #292524;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.js-row-menu-item:hover { background: #F6F1E9; }
.js-row-menu-item.is-danger { color: #B94B45; }
.js-row-menu-item.is-danger:hover { background: #FCEDEC; }
.js-row-menu-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.js-btn-sm {
  height: 34px;
  padding: 0 12px;
  font-size: 12.5px;
  border-radius: 9px;
  gap: 6px;
}
.js-modal-lg { width: min(720px, 100%); }
body.modal-open { overflow: hidden; }

.js-tabs {
  display: flex;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  width: 100%;
}
.js-tab {
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  justify-content: center;
}
.js-tab.is-active {
  background: linear-gradient(135deg, #6B4630, #3A2418);
  color: #fff;
}
.js-master-tabs {
  flex-wrap: wrap;
}
@media (max-width: 1024px) {
  .js-master-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
  }
  .js-master-tabs .js-tab {
    flex: none;
    width: 100%;
    min-height: 42px;
    padding: 10px 8px;
    font-size: 12.5px;
    line-height: 1.25;
    white-space: normal;
  }
}
@media (max-width: 380px) {
  .js-master-tabs {
    grid-template-columns: 1fr 1fr;
  }
  .js-master-tabs .js-tab {
    font-size: 12px;
    padding: 9px 6px;
  }
}

/* DataTables theme */
table.dataTable {
  border-collapse: collapse !important;
  width: 100% !important;
}
table.dataTable thead th {
  background: #F7F3ED !important;
  border-bottom: 1px solid var(--border) !important;
  color: var(--text-secondary);
  font-weight: 600;
  padding: 12px 14px !important;
}
table.dataTable tbody td {
  padding: 12px 14px !important;
  border-bottom: 1px solid var(--border-light) !important;
  vertical-align: middle;
}
table.dataTable.no-footer { border-bottom: 0 !important; }
.dataTables_wrapper .dataTables_length {
  display: none !important;
}
.dataTables_wrapper .js-dt-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.dataTables_wrapper .js-dt-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 12px;
}
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 0;
  float: none !important;
}
.dataTables_wrapper .dataTables_paginate {
  display: flex;
  align-items: center;
  gap: 4px;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 9px !important;
  border: 1px solid var(--border) !important;
  background: #fff !important;
  color: var(--brown-700) !important;
  padding: 6px 12px !important;
  margin: 0 2px !important;
  box-shadow: none !important;
  min-width: 36px;
  text-align: center;
  font-weight: 600;
  line-height: 1.2;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:active,
.dataTables_wrapper .dataTables_paginate span .paginate_button.current {
  background: linear-gradient(135deg, #6B4630, #3A2418) !important;
  background-color: #3A2418 !important;
  color: #ffffff !important;
  border-color: #3A2418 !important;
  box-shadow: 0 2px 8px rgba(58, 36, 24, 0.18) !important;
  text-shadow: none !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.current):not(.disabled) {
  background: var(--gold-100) !important;
  color: var(--brown-800) !important;
  border-color: var(--gold-500) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
  background: #F7F3ED !important;
  color: #9A8B7C !important;
  border-color: transparent !important;
  cursor: default !important;
  box-shadow: none !important;
}
.dataTables_wrapper .dt-buttons {
  display: flex;
  gap: 8px;
  float: none !important;
}
.dataTables_wrapper .dt-button,
.dataTables_wrapper button.dt-button,
.dataTables_wrapper a.dt-button {
  border-radius: 10px !important;
  border: 1px solid var(--border) !important;
  background: #fff !important;
  color: var(--brown-800) !important;
  font-family: inherit !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  padding: 8px 14px !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  line-height: 1.2;
}
.dataTables_wrapper .dt-button:hover,
.dataTables_wrapper button.dt-button:hover {
  background: var(--gold-100) !important;
  border-color: var(--gold-500) !important;
  color: var(--brown-900) !important;
}
.dataTables_wrapper .js-dt-export-excel {
  border-color: rgba(46, 125, 50, 0.28) !important;
  color: #2E7D32 !important;
}
.dataTables_wrapper .js-dt-export-excel:hover {
  background: #E8F5E9 !important;
  border-color: #2E7D32 !important;
}
.dataTables_wrapper .js-dt-export-pdf {
  border-color: rgba(185, 75, 69, 0.28) !important;
  color: var(--danger) !important;
}
.dataTables_wrapper .js-dt-export-pdf:hover {
  background: var(--danger-bg) !important;
  border-color: var(--danger) !important;
}
.js-dt-btn-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(0,0,0,0.06);
  line-height: 1;
}
.dataTables_processing {
  background: rgba(255,255,255,0.92) !important;
  border: 1px solid var(--border) !important;
  border-radius: 12px !important;
  color: var(--brown-700) !important;
  box-shadow: var(--shadow) !important;
}
@media (max-width: 640px) {
  .dataTables_wrapper .js-dt-foot {
    flex-direction: column;
    align-items: stretch;
  }
  .dataTables_wrapper .dataTables_paginate {
    justify-content: center;
  }
  .js-kpi-grid[style] { grid-template-columns: 1fr !important; }
}

/* Order kasir POS */
.js-tab-panel[hidden] { display: none !important; }
.js-pos {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 16px;
  align-items: start;
}
.js-pos-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 14px;
}
.js-type-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.js-type-btn.is-active {
  background: linear-gradient(135deg, #6B4630, #3A2418);
  border-color: transparent;
  color: #fff;
}
.js-pos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  max-height: min(62vh, 560px);
  overflow: auto;
  padding-right: 4px;
}
.js-pos-item {
  text-align: left;
  border: 1px solid var(--border);
  background: #FCFAF7;
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  transition: border-color .15s, transform .12s, box-shadow .15s;
}
.js-pos-item:hover {
  border-color: #C4A484;
  box-shadow: 0 6px 18px rgba(58, 36, 24, 0.08);
  transform: translateY(-1px);
}
.js-pos-item.is-oos,
.js-pos-item:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #F3EEE8;
  filter: grayscale(0.25);
}
.js-pos-item.is-oos:hover,
.js-pos-item:disabled:hover {
  border-color: var(--border);
  box-shadow: none;
  transform: none;
}
.js-pos-item-name {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--text);
  line-height: 1.3;
}
.js-pos-item-meta {
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--text-secondary);
}
.js-pos-item-price {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brown-700);
}
.js-pos-cart {
  position: sticky;
  top: 12px;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.js-pos-cart-list {
  flex: 1;
  overflow: auto;
  max-height: min(42vh, 360px);
  padding: 8px 16px;
}
.js-pos-empty {
  padding: 28px 8px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 13.5px;
}
.js-pos-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.js-pos-line-name { font-size: 13.5px; font-weight: 650; }
.js-pos-line-meta { font-size: 11.5px; color: var(--text-secondary); }
.js-pos-line.is-editing {
  background: rgba(184, 134, 11, 0.08);
  border-radius: 10px;
  margin: 0 -6px;
  padding: 12px 6px;
  border-bottom-color: transparent;
  outline: 1px solid rgba(184, 134, 11, 0.35);
}
.js-pos-line-editing {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: #7a5a00;
  background: rgba(184, 134, 11, 0.18);
  vertical-align: middle;
}
.js-pos-line-ctrl {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  grid-column: 1 / -1;
}
.js-pos-line-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  margin-top: 2px;
}
.js-pos-qty {
  width: 56px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
}
.js-pos-summary {
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
}
.js-pos-summary .js-muted { color: var(--text-secondary); font-size: 12.5px; }
.js-order-date-auto {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}
.js-search-select {
  position: relative;
}
.js-search-select-list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 220px;
  overflow: auto;
  overscroll-behavior: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 6px;
}
.js-search-select-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  cursor: pointer;
  color: var(--text);
}
.js-search-select-item:hover {
  background: #F7F3ED;
}
.js-search-select-empty {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-secondary);
}
.js-search-select-add {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-top: 1px dashed var(--border);
  background: #FBF7F2;
  padding: 11px 12px;
  border-radius: 0 0 8px 8px;
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--brown-700);
}
.js-search-select-add:hover {
  background: #F3EBE1;
}
.js-cust-thumbs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.js-cust-thumb {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  background: #F0E8DF;
}
.js-cust-photo-form[hidden] { display: none !important; }
.js-cust-photo-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.js-cust-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  background: #FCFAF7;
}
.js-cust-photo-grid-4,
.js-cust-body-photos .js-cust-photo-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
/* Tablet: tetap 4 kolom, tanpa pemisah section */
@media (max-width: 1100px) and (min-width: 641px) {
  .js-cust-photo-grid-4,
  .js-cust-body-photos .js-cust-photo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .js-cust-body-photos .js-cust-photo-tile .js-cust-photo-label {
    font-size: 9px;
    letter-spacing: .02em;
  }
}
/* HP: 3 kolom */
@media (max-width: 640px) {
  .js-cust-photo-grid-4,
  .js-cust-body-photos .js-cust-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
  }
  .js-cust-body-photos .js-cust-photo-tile .js-cust-photo-label {
    font-size: 8.5px;
  }
}
.js-cust-photo-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.js-cust-photo-tile .js-cust-photo-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--brown-800);
  text-align: center;
  line-height: 1.2;
}
.js-cust-photo-cam {
  aspect-ratio: 1;
  height: auto;
  min-height: 64px;
  border: 1px solid #C9B8A6;
  border-radius: 10px;
  background: #F3EDE6;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.js-cust-photo-cam:hover {
  border-color: var(--brown-700);
  background: #EBE3DA;
}
.js-cust-photo-cam .js-cust-photo-preview {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.js-cust-photo-cam .js-cust-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.js-cust-photo-cam .js-cust-photo-ph {
  color: #6B5B4F;
}
.js-cust-photo-cam .js-cust-photo-ph svg {
  width: 22px;
  height: 22px;
}
.js-cust-photo-tile .js-cust-photo-clear {
  position: absolute;
  top: 22px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 7px;
  background: rgba(58, 36, 24, 0.82);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  z-index: 1;
}
.js-cust-photo-tile .js-cust-photo-clear:hover {
  background: rgba(58, 36, 24, 0.95);
}
.js-item-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #F7F1EA;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--brown-800);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}
.js-item-divider::before,
.js-item-divider::after {
  content: '';
  flex: 1;
  border-top: 1px dashed #C4A484;
}
.js-item-divider span {
  white-space: nowrap;
}
@media (max-width: 420px) {
  .js-cust-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
  }
  .js-cust-photo-tile .js-cust-photo-label {
    font-size: 9px;
  }
}
.js-cust-photo-extra-host {
  display: contents;
}
.js-cust-photo-add-tile {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-align: center;
}
.js-cust-photo-add-tile .js-cust-photo-cam {
  border-style: dashed;
}
.js-cust-photo-add-tile .js-cust-photo-ph {
  font-size: 22px;
  font-weight: 500;
  color: #A08A74;
}
.js-sign-pad {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.js-sign-frame {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 12px;
  background: #fff;
}
.js-sign-pad canvas {
  display: block;
  width: 440px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 440 / 180;
  touch-action: none;
  cursor: crosshair;
  background: #fff;
  border: 2px dashed #C8C8C8;
  border-radius: 8px;
}
.js-sign-guide {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  font-size: 12px;
  color: #888;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.js-sign-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.js-photo-lightbox,
.js-photo-source {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.js-photo-lightbox[hidden],
.js-photo-source[hidden] { display: none !important; }
.js-photo-lightbox-backdrop,
.js-photo-source-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 21, 15, 0.72);
}
.js-photo-lightbox-panel {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  background: #1a100c;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.js-photo-lightbox-panel img {
  display: block;
  width: 100%;
  max-height: min(72vh, 720px);
  object-fit: contain;
  background: #000;
}
.js-photo-lightbox-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 12px;
  background: #24150F;
}
.js-photo-source-panel {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.js-custom-steps {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 2px;
}
.js-custom-steps::-webkit-scrollbar {
  height: 4px;
}
.js-custom-steps::-webkit-scrollbar-thumb {
  background: #d8cdc2;
  border-radius: 999px;
}
.js-custom-step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  padding: 6px 8px;
  margin: 0;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: background .15s ease;
}
.js-custom-step:hover {
  background: rgba(92, 58, 42, 0.06);
}
.js-custom-step.is-active {
  background: rgba(92, 58, 42, 0.1);
  outline: 1px solid rgba(92, 58, 42, 0.22);
}
.js-custom-step.is-locked .js-custom-step-dot {
  background: #EFE6DC;
  color: #8A7462;
}
.js-custom-step-hint {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: #8A7462;
  background: #F3EBE3;
  border-radius: 999px;
  padding: 1px 6px;
}
.js-step-panel { margin-top: 4px; }
.js-step-info {
  background: #FBF7F2;
  border: 1px dashed #e5ddd4;
}
.js-autosave-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #F3EBE3;
  color: #756B63;
  white-space: nowrap;
}
.js-autosave-status[data-state="pending"] { background: #FEF3C7; color: #92400e; }
.js-autosave-status[data-state="saving"] { background: #DBEAFE; color: #1e40af; }
.js-autosave-status[data-state="ok"] { background: #D1FAE5; color: #065f46; }
.js-autosave-status[data-state="err"] { background: #FEE2E2; color: #991b1b; }
.js-measure-edit-table tr.is-edit-empty td:last-child {
  background: rgba(234, 88, 12, 0.06);
}
.js-proses-warn {
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  color: #92400e;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.45;
}
.js-proses-warn.is-ok {
  background: #D1FAE5;
  border-color: #34D399;
  color: #065f46;
}
.js-proses-preview-item {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border, #e5ddd4);
}
.js-proses-preview-item:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}
.js-proses-preview-item tr.is-edit-empty td {
  background: rgba(234, 88, 12, 0.06);
}
.js-edit-context {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.4fr);
  gap: 12px;
  margin-bottom: 4px;
}
.js-edit-photo-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.js-edit-photo-chip {
  margin: 0;
  flex: 0 0 auto;
  width: 92px;
}
.js-edit-photo-chip img {
  width: 92px;
  height: 110px;
  object-fit: contain;
  background: #f5f5f5;
  border: 1px solid var(--border, #e5ddd4);
  border-radius: 10px;
  cursor: zoom-in;
  display: block;
}
.js-edit-photo-chip figcaption {
  margin-top: 4px;
  font-size: 10.5px;
  color: #756B63;
  text-align: center;
}
.js-edit-item-thumbs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.js-edit-item-thumbs img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #f5f5f5;
  border: 1px solid var(--border, #e5ddd4);
  border-radius: 8px;
  cursor: zoom-in;
}
.js-edit-print-thumb {
  position: relative;
  display: inline-block;
  line-height: 0;
  text-decoration: none;
}
.js-edit-print-thumb img {
  cursor: pointer;
  display: block;
}
.js-edit-print-thumb-badge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .02em;
  text-align: center;
  color: #fff;
  background: rgba(58, 36, 24, 0.78);
  border-radius: 0 0 8px 8px;
  padding: 2px 0;
  line-height: 1.2;
}
.js-pesanan-card {
  overflow: visible;
  padding: 0;
}
/* Agar sticky header Edit tidak putus oleh overflow ancestor */
.js-content:has(.js-custom-detail) {
  overflow-x: clip;
}
.js-main:has(.js-custom-detail) {
  overflow-x: clip;
}
:root {
  --edit-sticky-top: 0px;
  --edit-summary-h: 56px;
}
@media (min-width: 1025px) {
  :root {
    --edit-sticky-top: var(--topbar-h);
  }
}
.js-edit-item-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.js-edit-item-acc {
  margin: 0 !important;
  border: 1px solid var(--border-light, #E8DFD4);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(61, 43, 31, 0.03);
}
.js-edit-item-acc[open] {
  border-color: #ddd0c2;
  box-shadow: 0 2px 10px rgba(61, 43, 31, 0.05);
}
.js-edit-item-acc:not([open]) > *:not(summary) {
  display: none !important;
}
.js-edit-item-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  margin: 0;
  user-select: none;
  border-radius: 14px;
}
.js-edit-item-acc[open] > .js-edit-item-summary {
  border-radius: 14px 14px 0 0;
  background: #FCFAF7;
  border-bottom: 1px solid var(--border-light, #E8DFD4);
  position: sticky;
  top: var(--edit-sticky-top, 0px);
  z-index: 8;
  box-shadow: 0 1px 0 rgba(61, 43, 31, 0.04);
}
/* Sticky: bahan / slip / foto + header kolom Ukuran */
.js-edit-item-acc[open] .js-edit-sticky-head {
  position: sticky;
  top: calc(var(--edit-sticky-top, 0px) + var(--edit-summary-h, 56px));
  z-index: 7;
  background: #FCFAF7;
  box-shadow: 0 2px 10px rgba(61, 43, 31, 0.07);
}
.js-edit-item-acc,
.js-edit-item-panel,
.js-pesanan-card {
  overflow: visible;
}
.js-edit-item-summary::-webkit-details-marker { display: none; }
.js-edit-item-summary::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid #8A7462;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  margin-right: 2px;
  flex-shrink: 0;
  transition: transform .15s ease;
}
.js-edit-item-acc[open] > .js-edit-item-summary::before {
  transform: rotate(90deg);
}
.js-edit-item-sum-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.js-edit-item-sum-main .js-card-title,
.js-edit-item-sum-main strong {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--brown-900, #3d2b1f);
  margin: 0;
  display: block;
}
.js-edit-item-summary .js-badge {
  flex-shrink: 0;
  font-size: 11px;
}
.js-edit-item-panel {
  min-width: 0;
}
.js-pesanan-head {
  position: static;
  top: auto;
  z-index: auto;
  padding: 0;
  background: #FCFAF7;
  border-bottom: 1px solid var(--border, #e5ddd4);
  border-radius: 0;
  box-shadow: none;
}
.js-pesanan-head-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 16px 10px;
}
.js-pesanan-head-main {
  min-width: 0;
  flex: 1 1 200px;
}
.js-pesanan-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 72px 72px 72px;
  gap: 0;
  width: 100%;
  background: #F7F3ED;
  border-top: 1px solid var(--border, #e5ddd4);
  font-size: 12px;
  font-weight: 650;
  color: var(--text-secondary, #756B63);
}
.js-pesanan-cols span {
  padding: 10px 12px;
  border-right: 1px solid rgba(0,0,0,.04);
}
.js-pesanan-cols span:last-child { border-right: 0; }
.js-pesanan-cols span:nth-child(2),
.js-pesanan-cols span:nth-child(3),
.js-pesanan-cols span:nth-child(4),
.js-pesanan-cols span:nth-child(5) {
  text-align: center;
}
.js-pesanan-cols-5 {
  grid-template-columns: minmax(0, 1.4fr) 64px 64px 64px 72px;
}
.js-pesanan-body {
  padding: 0 0 8px;
}
.js-pesanan-body .js-table-wrap {
  margin-top: 0;
  overflow-x: auto;
}
.js-pesanan-body .js-table,
.js-measure-fixed {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
}
.js-pesanan-body .js-table thead {
  display: none; /* header kolom sudah di .js-pesanan-cols (satu fixed) */
}
.js-pesanan-body .js-table th,
.js-pesanan-body .js-table td,
.js-measure-fixed th,
.js-measure-fixed td {
  padding: 10px 12px;
  vertical-align: middle;
}
.js-pesanan-body .js-table td:nth-child(1),
.js-measure-fixed td:nth-child(1) {
  width: auto;
}
.js-pesanan-body .js-table td:nth-child(2),
.js-pesanan-body .js-table td:nth-child(3),
.js-pesanan-body .js-table td:nth-child(4),
.js-measure-fixed td:nth-child(2),
.js-measure-fixed td:nth-child(3),
.js-measure-fixed td:nth-child(4) {
  width: 72px;
  text-align: center;
}
.js-measure-revisi-table td:nth-child(2),
.js-measure-revisi-table td:nth-child(3),
.js-measure-revisi-table td:nth-child(4),
.js-measure-revisi-table td:nth-child(5) {
  width: 64px;
  text-align: center;
}
.js-measure-revisi-table td:nth-child(5) {
  width: 72px;
}
.js-revisi-note-wrap {
  padding: 12px 16px 8px;
  border-top: 1px solid #EDE4DA;
}
.js-revisi-history {
  margin: 0 16px 14px;
  padding: 10px 12px;
  border: 1px solid #EDE4DA;
  border-radius: 12px;
  background: #fff;
}
.js-revisi-history summary {
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--brown-700, #5C3A2A);
}
.js-revisi-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.js-revisi-round {
  padding: 10px 12px;
  border-radius: 10px;
  background: #FCFAF7;
  border: 1px solid #EFE6DC;
}
.js-revisi-round-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 8px;
  font-size: 12.5px;
}
.js-revisi-hist-card {
  padding: 0;
  overflow: visible;
}
.js-revisi-hist-card.js-revisi-item-acc {
  overflow: visible;
}
.js-revisi-hist-top {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #EDE4DA;
}
.js-revisi-hist-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}
.js-revisi-hist-actions .js-btn {
  box-shadow: none;
}
.js-revisi-toolbar-actions .js-btn-gold {
  min-width: 112px;
}
.js-settle-pay-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 640px) {
  .js-settle-pay-grid {
    grid-template-columns: 1fr;
  }
}
.js-pay-split-fields {
  margin-top: 10px;
}
.js-pay-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.js-pay-split-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--cream);
  min-width: 0;
}
.js-pay-split-col .js-label {
  margin-bottom: 2px;
}
.js-pay-split-amt2 {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #D4C4B2;
  background: #FFFEFC;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--brown-900);
}
@media (max-width: 560px) {
  .js-pay-split-grid {
    grid-template-columns: 1fr;
  }
}
.js-revisi-cols-wrap {
  padding: 12px 0 0;
}
.js-revisi-col-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 16px 10px;
}
.js-revisi-col-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #F7F3ED;
  border: 1px solid #E8D5B5;
  font-size: 11.5px;
  max-width: 160px;
}
.js-revisi-col-chip strong {
  font-size: 12.5px;
  color: var(--brown-700, #5C3A2A);
}
.js-revisi-col-chip span { color: #756B63; }
.js-revisi-col-chip em {
  font-style: normal;
  color: #8A7462;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.js-revisi-col-table {
  margin: 0;
}
.js-revisi-col-table th.js-revisi-rcol {
  text-align: center;
  min-width: 56px;
  background: #FBF6EF;
  color: var(--brown-700, #5C3A2A);
}
.js-revisi-col-table td {
  text-align: center;
  vertical-align: middle;
}
.js-revisi-col-table td.js-revisi-sticky-col,
.js-revisi-col-table th.js-revisi-sticky-col {
  text-align: left;
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 1;
  min-width: 140px;
}
.js-revisi-col-table thead th.js-revisi-sticky-col {
  background: #F7F3ED;
  z-index: 2;
}
.js-revisi-col-table td.is-changed {
  font-weight: 700;
  color: var(--brown-700, #5C3A2A);
  background: #FFF8EE;
}
.js-prod-next-banner {
  border: 1px solid #C4A574;
  background: linear-gradient(180deg, #FFF9F0 0%, #FFF 100%);
}
.js-revisi-item-head {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 16px 12px;
}
.js-revisi-choice {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.js-revisi-pick.is-active-ok {
  background: #047857;
  border-color: #047857;
  color: #fff;
}
.js-revisi-pick.is-active-need {
  background: #9B743C;
  border-color: #9B743C;
  color: #fff;
}
.js-revisi-ok-hint {
  padding: 0 16px 14px;
}
.js-revisi-item.is-ok {
  border-color: #D1E7DD;
  background: #F8FCF9;
}
.js-revisi-item.is-need-revisi {
  border-color: #E8D5B5;
  background: #FFFCF7;
}
.js-edit-context-sticky {
  position: static;
  top: auto;
  z-index: auto;
  padding-bottom: 0;
  background: transparent;
}
@media (max-width: 860px) {
  .js-edit-context,
  .js-edit-context-sticky {
    grid-template-columns: 1fr;
  }
  .js-pesanan-cols {
    grid-template-columns: minmax(0, 1.2fr) 64px 64px 64px;
  }
  .js-pesanan-cols-5 {
    grid-template-columns: minmax(0, 1.1fr) 56px 56px 56px 64px;
  }
  .js-pesanan-body .js-table td:nth-child(2),
  .js-pesanan-body .js-table td:nth-child(3),
  .js-pesanan-body .js-table td:nth-child(4),
  .js-measure-fixed td:nth-child(2),
  .js-measure-fixed td:nth-child(3),
  .js-measure-fixed td:nth-child(4) {
    width: 64px;
  }
}
.js-prod-stages {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
  overflow-x: auto;
}
.js-prod-stage {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 0 0 auto;
  max-width: 160px;
}
.js-prod-stage-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: #EFE6DC;
  color: #8A7462;
  flex-shrink: 0;
}
.js-prod-stage.is-entered .js-prod-stage-dot,
.js-prod-stage.is-current .js-prod-stage-dot {
  background: var(--brown-700, #5C3A2A);
  color: #fff;
}
.js-prod-stage.is-done .js-prod-stage-dot {
  background: #047857;
  color: #fff;
}
.js-prod-stage.is-current strong { color: var(--brown-700, #5C3A2A); }
.js-prod-stage-line {
  width: 22px;
  height: 2px;
  background: #E4D6C8;
  margin: 12px 4px 0;
  flex-shrink: 0;
}
.js-prod-stage-line.is-on { background: var(--brown-600, #7A4E36); }

.js-prod-head {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}
.js-prod-head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.js-prod-item-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.js-prod-item-acc,
.js-revisi-item-acc {
  margin: 0 !important;
  border: 1px solid var(--border-light, #E8DFD4);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(61, 43, 31, 0.03);
  overflow: visible;
  padding: 0;
}
.js-prod-item-acc[open],
.js-revisi-item-acc[open] {
  border-color: #ddd0c2;
  box-shadow: 0 2px 10px rgba(61, 43, 31, 0.05);
}
.js-prod-item-acc:not([open]) > *:not(summary),
.js-revisi-item-acc:not([open]) > *:not(summary) {
  display: none !important;
}
.js-prod-item-summary,
.js-revisi-item-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  margin: 0;
  user-select: none;
  border-radius: 14px;
}
.js-prod-item-summary::-webkit-details-marker,
.js-revisi-item-summary::-webkit-details-marker {
  display: none;
}
.js-prod-item-summary::before,
.js-revisi-item-summary::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid #8A7462;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  flex-shrink: 0;
  transition: transform .15s ease;
}
.js-prod-item-acc[open] > .js-prod-item-summary::before,
.js-revisi-item-acc[open] > .js-revisi-item-summary::before {
  transform: rotate(90deg);
}
.js-prod-item-acc[open] > .js-prod-item-summary,
.js-revisi-item-acc[open] > .js-revisi-item-summary {
  border-radius: 14px 14px 0 0;
  background: #FCFAF7;
  border-bottom: 1px solid var(--border-light, #E8DFD4);
}
.js-prod-item-sum-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.js-prod-item-sum-main strong {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--brown-900, #3d2b1f);
}
.js-prod-item-summary .js-badge,
.js-revisi-item-summary .js-badge {
  flex-shrink: 0;
  font-size: 11px;
  max-width: 42%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.js-prod-item-panel,
.js-revisi-item-panel {
  padding: 12px 14px 14px;
  min-width: 0;
}
.js-prod-item-panel .js-prod-item-tools,
.js-revisi-item-panel .js-revisi-hist-actions {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #EDE4DA;
}
.js-revisi-dist {
  margin: 0 0 12px;
}
.js-revisi-dist .js-prod-dist-readonly {
  margin: 0;
}
.js-prod-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #FCFAF7;
  padding: 14px 16px;
}
.js-prod-item.js-prod-item-acc {
  background: #fff;
  padding: 0;
}
.js-prod-item-top {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #EDE4DA;
}
.js-prod-item-info {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
}
.js-prod-item-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #EFE6DC;
  color: #5C3A2A;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.js-prod-item-tools {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.js-prod-item-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.js-prod-item-field .js-label,
.js-prod-dist-cell .js-label,
.js-prod-cost-head .js-label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.02em;
}
/* Distribusi bahan — layout rapi */
.js-prod-dist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.js-prod-assign {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}
.js-prod-assign-grid {
  display: grid;
  /* Workshop | Deadline customer | Estimasi jadi | Simpan */
  grid-template-columns: minmax(0, 1.3fr) minmax(130px, 0.85fr) minmax(130px, 0.85fr) auto;
  gap: 10px 12px;
  align-items: end;
}
/* Modal Terima + Checking — timeline lebar, 1 scroll horizontal */
.js-terima-checking-modal.js-modal {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: min(92vh, 860px);
  width: min(960px, 100%);
}
.js-terima-checking-modal .js-modal-head,
.js-terima-checking-modal .js-modal-foot {
  flex-shrink: 0;
}
.js-terima-checking-modal .js-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  max-height: none;
  padding: 14px 16px 18px;
  -webkit-overflow-scrolling: touch;
}
.js-terima-checking-modal .js-modal-foot {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.js-terima-lead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin: 0 0 12px;
  font-size: 13.5px;
  color: #57534E;
}
.js-terima-lead strong {
  color: #1C1917;
  font-size: 14.5px;
}
.js-terima-lead em {
  font-style: normal;
  font-weight: 700;
  color: #5C4033;
  background: #E8D8C8;
  padding: 1px 7px;
  border-radius: 4px;
}
.js-terima-scroll {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border, #E7E5E4);
  border-radius: 10px;
  background: #fff;
}
.js-terima-checking-modal .js-table-wrap.js-terima-scroll {
  overflow-x: auto;
}

/* Kalender produksi — popup full layar */
#modalProdCal.js-modal-root {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
}
.js-prod-cal-modal.js-modal {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  border-radius: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: none;
}
.js-prod-cal-modal .js-modal-head,
.js-prod-cal-modal .js-modal-foot {
  flex-shrink: 0;
}
.js-prod-cal-modal .js-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding: 12px 18px 18px;
}
.js-prod-cal-modal .js-prod-cal-wrap {
  min-height: 100%;
}
.js-prod-cal-modal .js-prod-cal {
  min-height: min(520px, calc(100vh - 220px));
}
.js-prod-cal-tabs .js-prod-cal-tab {
  border: 0;
  cursor: pointer;
  font: inherit;
}
.js-prod-dist-readonly {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(140px, 0.9fr);
  gap: 10px 12px;
  align-items: end;
}
.js-prod-dist-cell {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.js-prod-dist-cell .js-input,
.js-prod-assign .js-input {
  width: 100%;
  min-width: 0;
  padding-left: 12px;
  font-size: 13.5px;
  min-height: 40px;
  height: 40px;
}
.js-prod-dist-action .js-btn {
  min-height: 40px;
  min-width: 88px;
  justify-content: center;
}
.js-prod-dist-status {
  padding-top: 10px;
  border-top: 1px solid #EDE4DA;
}
.js-prod-dist .js-prod-cost {
  margin-top: 0;
  padding-top: 10px;
  border-top: 1px solid #EDE4DA;
}
.js-prod-dist .js-prod-cost + .js-prod-dist-status {
  border-top-style: dashed;
}
.js-prod-status-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  min-height: 36px;
}
.js-prod-cost {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.js-prod-cost-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.js-prod-cost-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.js-prod-cost-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin: 0;
}
.js-prod-cost-form .js-input {
  min-height: 40px;
  height: 40px;
  padding-left: 12px;
  font-size: 13.5px;
}
.js-prod-cost-form .js-btn {
  min-height: 40px;
  white-space: nowrap;
}
@media (max-width: 900px) {
  .js-prod-assign-grid {
    grid-template-columns: 1fr 1fr;
  }
  /* Workshop penuh · Deadline kiri · Estimasi kanan */
  .js-prod-assign-grid > .js-prod-dist-cell:first-child {
    grid-column: 1 / -1;
  }
  .js-prod-dist-action {
    grid-column: 1 / -1;
  }
  .js-prod-dist-action .js-btn {
    width: 100%;
  }
}
@media (max-width: 720px) {
  .js-prod-dist-readonly {
    grid-template-columns: 1fr 1fr;
  }
  .js-prod-cost-form {
    grid-template-columns: 1fr;
  }
  .js-prod-cost-form .js-btn {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 420px) {
  .js-prod-assign-grid,
  .js-prod-dist-readonly {
    grid-template-columns: 1fr;
  }
}
.js-custom-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: #EFE6DC;
  color: #8A7462;
}
.js-custom-step.is-done .js-custom-step-dot,
.js-custom-step.is-current .js-custom-step-dot {
  background: var(--brown-700, #5C3A2A);
  color: #fff;
}
.js-custom-step.is-current .js-custom-step-label { font-weight: 700; color: var(--brown-700, #5C3A2A); }
.js-custom-step-label { font-size: 12.5px; color: #756B63; }
.js-custom-step-line {
  width: 28px;
  height: 2px;
  background: #E4D6C8;
  margin: 0 6px;
  flex-shrink: 0;
}
.js-custom-step-line.is-done { background: var(--brown-600, #7A4E36); }

/* Mobile/tablet: track kontinu + angka di atas label */
@media (max-width: 900px) {
  #customStepNav.js-card-pad {
    padding: 14px 10px 12px;
  }
  .js-custom-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
    column-gap: 0;
    width: 100%;
    position: relative;
    overflow: visible;
    padding: 0;
  }
  /* Sembunyikan dash lama */
  .js-custom-step-line {
    display: none !important;
  }
  /* Track dasar — sejajar pusat lingkaran */
  .js-custom-steps::before,
  .js-custom-steps::after {
    content: '';
    position: absolute;
    top: 13px; /* pusat dot 28px */
    left: 10%;
    right: 10%;
    height: 3px;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
  }
  .js-custom-steps::before {
    background: #E8DDD2;
  }
  /* Track progress (step yang sudah dilalui) */
  .js-custom-steps::after {
    right: auto;
    width: calc(var(--step-progress, 0) * 0.8%);
    max-width: 80%;
    background: var(--brown-600, #7A4E36);
  }
  .js-custom-step {
    position: relative;
    z-index: 1;
    width: 100%;
    min-width: 0;
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 0 2px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
  }
  .js-custom-step:hover,
  .js-custom-step.is-active {
    background: transparent;
    box-shadow: none;
    outline: none;
  }
  .js-custom-step-dot {
    width: 28px;
    height: 28px;
    font-size: 12px;
    box-shadow: 0 0 0 4px var(--white, #fff);
    position: relative;
    z-index: 1;
  }
  .js-custom-step.is-active .js-custom-step-dot,
  .js-custom-step.is-current .js-custom-step-dot {
    box-shadow:
      0 0 0 3px var(--white, #fff),
      0 0 0 5px rgba(92, 58, 42, 0.35);
  }
  .js-custom-step-label {
    font-size: 10px;
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
    color: #756B63;
  }
  .js-custom-step.is-active .js-custom-step-label,
  .js-custom-step.is-current .js-custom-step-label {
    font-weight: 700;
    color: var(--brown-700, #5C3A2A);
  }
  .js-custom-step-hint {
    display: none;
  }
}
@media (max-width: 640px) {
  #customStepNav.js-card-pad {
    padding: 12px 8px 10px;
  }
  .js-custom-steps::before,
  .js-custom-steps::after {
    top: 12px; /* pusat dot 26px */
  }
  .js-custom-step-dot {
    width: 26px;
    height: 26px;
    font-size: 11px;
    box-shadow: 0 0 0 3px var(--white, #fff);
  }
  .js-custom-step.is-active .js-custom-step-dot,
  .js-custom-step.is-current .js-custom-step-dot {
    box-shadow:
      0 0 0 2px var(--white, #fff),
      0 0 0 4px rgba(92, 58, 42, 0.35);
  }
  .js-custom-step-label {
    font-size: 9.5px;
  }
}
@media (max-width: 400px) {
  .js-custom-steps::before,
  .js-custom-steps::after {
    top: 11px; /* pusat dot 24px */
  }
  .js-custom-step-dot {
    width: 24px;
    height: 24px;
    font-size: 10.5px;
  }
  .js-custom-step-label {
    font-size: 9px;
  }
}
.js-photo-thumb img,
.js-cust-photo-preview img { cursor: zoom-in; }
.js-agree {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text);
}
.js-agree input {
  margin-top: 3px;
  flex-shrink: 0;
}
.js-agree-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #FBF7F2;
  overflow: hidden;
}
.js-agree-box-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8B6914;
  background: #F3E8D8;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.js-agree-box-body {
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text);
  max-height: 180px;
  overflow-y: auto;
  white-space: normal;
}
.js-order-lines { display: flex; flex-direction: column; gap: 2px; max-width: 240px; }
.js-order-line {
  font-size: 12.5px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}
.js-type-chip {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 3px 8px;
  border-radius: 999px;
  background: #F0E8DF;
  color: var(--brown-700);
  white-space: nowrap;
}
.js-type-chip.js-type-ready { background: #E8F0EA; color: #2F5D3A; }
.js-type-chip.js-type-sewa { background: #EDE8F5; color: #4A3A6B; }
.js-type-chip.js-type-custom { background: #F5EDE4; color: #6B4630; }
.js-order-actions {
  max-width: none;
  min-width: 0;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.js-order-actions .js-inline-form {
  display: inline-flex;
  margin: 0;
}
.js-history-table td {
  vertical-align: middle;
  padding-top: 12px;
  padding-bottom: 12px;
}
.js-history-table th.js-th-actions,
.js-history-table td:last-child {
  width: 88px;
  white-space: nowrap;
  text-align: right;
}
.js-history-table td:nth-child(1) {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.js-history-table td:nth-child(2),
.js-history-table td:nth-child(5) {
  white-space: nowrap;
}
.js-history-table td:nth-child(6) {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.js-history-table td:nth-child(7) {
  white-space: nowrap;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 980px) {
  .js-pos { grid-template-columns: 1fr; }
  .js-pos-cart { position: static; }
}

.js-mt-3 { margin-top: 16px; }
.js-order-hint {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 14px;
  line-height: 1.45;
}
.js-custom-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(380px, 1fr);
  grid-template-areas:
    "item customer"
    "item summary";
  gap: 16px;
  align-items: start;
}
.js-custom-block-item { grid-area: item; }
.js-custom-block-customer { grid-area: customer; }
.js-custom-block-summary { grid-area: summary; }
/* Sticky sidebar: kolom kiri ikut tertahan saat scroll (kanan lebih panjang) */
.js-custom-layout > .js-custom-block-item {
  position: sticky;
  top: calc(var(--topbar-h) + 12px);
  align-self: start;
  max-height: calc(100vh - var(--topbar-h) - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.js-custom-layout > .js-custom-block-customer,
.js-custom-layout > .js-custom-block-summary {
  position: static;
}
.js-custom-mobile-only { display: none; }
.js-custom-acc {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #FBF8F4;
  overflow: hidden;
}
.js-custom-acc-group {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #FBF8F4;
  overflow: hidden;
}
.js-custom-acc-group > .js-custom-acc {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid var(--border);
}
.js-custom-acc-group > .js-custom-acc:last-child {
  border-bottom: 0;
}
.js-custom-acc:not([open]) > *:not(summary) {
  display: none;
}
.js-custom-acc-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 650;
  color: var(--brown-700);
  user-select: none;
}
.js-custom-acc-summary::-webkit-details-marker { display: none; }
.js-custom-acc-summary::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 7px;
  border-color: transparent transparent transparent var(--brown-700);
  flex-shrink: 0;
  transition: transform .15s ease;
}
.js-custom-acc[open] > .js-custom-acc-summary::before {
  transform: rotate(90deg);
}
.js-custom-acc[open] > .js-custom-acc-summary {
  border-bottom: 1px solid var(--border);
  background: #F3EBE2;
}
.js-custom-acc-hint {
  margin: 0;
  font-weight: 500;
  margin-left: auto;
}
.js-custom-acc-body {
  padding: 12px 14px 14px;
  background: #fff;
}
.js-model-photos {
  border-top: 1px dashed var(--border);
  margin-top: 4px;
  padding-top: 12px;
}
.js-model-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.js-model-photo-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.js-model-photo-preview {
  width: 100%;
  aspect-ratio: 1;
  border: 1px dashed #C4A484;
  border-radius: 10px;
  background: #F0E8DF;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, background .15s;
}
.js-model-photo-preview:hover {
  border-color: var(--brown-700);
  background: #EBE0D4;
}
.js-model-photo-tile.is-filled .js-model-photo-preview {
  border-style: solid;
  border-color: #C4A484;
}
.js-model-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.js-model-photo-ph {
  font-size: 18px;
  font-weight: 600;
  color: #A08A74;
  line-height: 1;
}
.js-model-photo-cap {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--brown-700);
  text-align: center;
}
.js-model-photo-rm {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 7px;
  background: rgba(58, 36, 24, 0.82);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
  padding: 0;
}
.js-model-photo-add {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.js-model-photo-add .js-model-photo-preview {
  pointer-events: none;
}
.js-custom-top {
  display: none;
}
.js-custom-grid {
  display: none;
}
.js-photo-box {
  border: 1px dashed #C4A484;
  border-radius: 14px;
  padding: 16px 12px;
  background: #FCFAF7;
}
.js-photo-box-elegant {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 160px;
  justify-content: center;
}
.js-photo-box-elegant .js-photo-warn {
  margin-bottom: 10px;
  width: 100%;
}
.js-photo-box-elegant .js-photo-grid {
  width: 100%;
  min-height: 0;
  margin-bottom: 12px;
}
.js-photo-box-elegant .js-photo-grid[hidden] {
  display: none !important;
  margin: 0;
}
.js-photo-add-center {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 1px dashed #C4A484;
  background: #F0E8DF;
  color: var(--brown-700);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background .15s, border-color .15s, transform .15s;
}
.js-photo-add-center:hover {
  background: #E8DFD4;
  border-color: var(--brown-700);
  transform: scale(1.04);
}
.js-photo-warn {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #8B2E2E;
  text-align: center;
  margin-bottom: 4px;
}
.js-photo-hint {
  margin: 0 0 10px;
  text-align: center;
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.35;
}
.js-photo-preview {
  min-height: 160px;
  border-radius: 12px;
  background: #F0E8DF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 13px;
  overflow: hidden;
}
.js-photo-preview img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.js-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-height: 100px;
}
.js-photo-empty {
  grid-column: 1 / -1;
  min-height: 120px;
  border-radius: 12px;
  background: #F0E8DF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 13px;
}
.js-photo-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: #F0E8DF;
}
.js-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.js-photo-thumb-rm {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 8px;
  background: rgba(58, 36, 24, 0.85);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.js-garment-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 10px;
}
.js-garment-tab {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text-secondary);
  cursor: pointer;
}
.js-garment-tab.is-active {
  background: linear-gradient(135deg, #6B4630, #3A2418);
  color: #fff;
  border-color: transparent;
}
.js-measure-wrap {
  overflow: auto;
  max-height: 360px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.js-measure-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.js-measure-table th {
  position: sticky;
  top: 0;
  background: #F7F3ED;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  font-weight: 650;
  color: var(--text-secondary);
}
.js-measure-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #F0E8DF;
}
.js-measure-table input {
  width: 100%;
  min-width: 56px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 8px;
  font-size: 12.5px;
  background: #fff;
}
.js-cart-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: #F0E8DF;
}
@media (max-width: 1100px) {
  .js-custom-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "customer"
      "item"
      "summary";
    gap: 12px;
  }
  .js-custom-layout > .js-custom-block-item,
  .js-custom-layout > .js-custom-block-customer,
  .js-custom-layout > .js-custom-block-summary {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .js-custom-mobile-only { display: inline; }
  .js-custom-block-customer {
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .js-garment-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .js-garment-tab {
    text-align: center;
    justify-content: center;
  }
  .js-measure-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .js-measure-table {
    min-width: 280px;
  }
  .js-custom-block-summary .js-pos-cart-list {
    max-height: none;
    overflow: visible;
    padding-bottom: 12px;
  }
  .js-custom-block-summary {
    min-height: 0;
  }
  .js-custom-block-summary .js-pos-line-ctrl {
    gap: 8px;
  }
  .js-custom-block-summary .js-pos-line-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }
  .js-custom-block-summary .js-pos-line-actions .js-btn {
    width: 100%;
    justify-content: center;
    min-height: 36px;
  }
  .js-custom-block-summary .js-pos-summary {
    position: static;
    background: #fff;
    border-top: 1px solid var(--border);
    z-index: 5;
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
}
@media (max-width: 640px) {
  .js-cust-photo-grid-4,
  .js-cust-body-photos .js-cust-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .js-photo-add-center {
    width: 56px;
    height: 56px;
  }
  #panelCustom .js-card-pad {
    padding: 14px;
  }
}




/* Hubungi pelanggan (WA / Telegram / Telp) */
.js-cust-contact {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0;
}
.js-cust-contact::-webkit-scrollbar {
  display: none;
}
.js-cust-contact-label {
  margin: 0;
  font-size: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}
.js-cust-contact-num {
  margin: 0;
  font-size: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}
.js-cust-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  flex-shrink: 0;
  white-space: nowrap;
}
.js-cust-contact-btn svg {
  flex-shrink: 0;
}
.js-cust-contact-btn.is-wa {
  color: #075e54;
  background: #e7f8f0;
  border-color: #b7e4d0;
}
.js-cust-contact-btn.is-wa:hover {
  background: #d4f1e3;
  color: #054c44;
}
.js-cust-contact-btn.is-tg {
  color: #0b6e99;
  background: #e8f5fb;
  border-color: #b7dceb;
}
.js-cust-contact-btn.is-tg:hover {
  background: #d6eef8;
  color: #085878;
}
.js-cust-contact-btn.is-tel {
  color: #3d4a5c;
  background: #eef1f5;
  border-color: #d0d7e0;
}
.js-cust-contact-btn.is-tel:hover {
  background: #e2e7ee;
  color: #2a3444;
}
@media (max-width: 640px) {
  .js-cust-contact {
    gap: 5px;
  }
  .js-cust-contact-btn {
    padding: 5px 8px;
    font-size: 11px;
  }
}

/* Step history (icon i) — di kartu Pelanggan */
.js-pelanggan-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
}
.js-step-hist-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border, #ddd);
  background: #fff;
  color: #6b635c;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.js-step-hist-btn:hover {
  border-color: var(--brown-500, #8B5E3C);
  color: var(--brown-700, #5C3A2A);
  background: #faf6f2;
}
.js-hist-i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  font-size: 10px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  font-family: var(--font-ui);
}
.js-hist-count {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--brown-600, #7A4E36);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
}
.js-step-hist-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.js-step-hist-item {
  padding: 10px 12px;
  border: 1px solid var(--border, #e5e0da);
  border-radius: 10px;
  background: #fbfaf8;
}
.js-step-hist-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 4px;
}
.js-step-hist-action {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--brown-700, #5C3A2A);
}
.js-step-hist-meta time {
  font-size: 11px;
  color: #8a827a;
  white-space: nowrap;
}
.js-step-hist-msg {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: #2f2a26;
}
.js-step-hist-who {
  margin: 6px 0 0;
  font-size: 12px;
  color: #6b635c;
}

/* —— Custom detail hero (pelanggan di atas) —— */
.js-custom-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 20px;
  flex-wrap: wrap;
}
.js-custom-hero-info {
  flex: 1 1 260px;
  min-width: 0;
}
.js-custom-hero-eyebrow {
  margin: 0 0 4px;
}
.js-custom-hero-name {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--brown-950);
  line-height: 1.15;
}
.js-custom-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}
.js-custom-hero-code {
  font-weight: 700;
  color: var(--brown-800, #4a3428);
  letter-spacing: 0.01em;
}
.js-custom-hero-sep {
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 7px;
  border-radius: 50%;
  background: #C4B8AE;
  flex-shrink: 0;
}
.js-custom-hero-addr {
  margin: 4px 0 0;
  font-size: 12.5px;
}
.js-nota-pdf-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.js-custom-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #EDE4DA;
}
.js-custom-hero-actions .js-nota-pdf-actions {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
  width: auto;
}
/* Desktop: semua tombol selebar konten, tidak stretch */
.js-custom-hero-actions .js-nota-pdf-actions .js-btn,
.js-custom-hero-actions .js-custom-hero-back {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  max-width: none;
  justify-content: center;
  min-height: 34px;
  height: 34px;
  padding: 0 12px;
  white-space: nowrap;
  font-size: 12.5px;
}
.js-custom-hero-actions .js-nota-pdf-actions .js-btn-secondary {
  font-weight: 650;
}
.js-custom-hero-actions .js-custom-hero-back {
  gap: 4px;
  padding: 0 10px;
  font-size: 12px;
}
.js-custom-hero-actions .js-custom-hero-back .js-btn-ico {
  width: 14px;
  height: 14px;
}
.js-custom-hero-actions .js-custom-hero-back .js-btn-ico svg {
  width: 14px;
  height: 14px;
}
@media (max-width: 719px) {
  /* Mobile: isi lebar merata 2 kolom */
  .js-custom-hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    align-items: stretch;
  }
  .js-custom-hero-actions .js-nota-pdf-actions {
    display: contents;
  }
  .js-custom-hero-actions .js-btn {
    width: 100%;
    min-width: 0;
    flex: unset;
    min-height: 38px;
    height: 38px;
    justify-content: center;
    font-size: 12.5px;
    padding: 0 8px;
  }
}

.js-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding: 10px 0 0;
  border-top: 1px solid #EDE4DA;
}
.js-hero-stat {
  min-width: 0;
  padding: 6px 8px;
  border-radius: 10px;
  background: #FBF7F2;
}
.js-hero-stat-label {
  display: block;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8A7462;
  margin-bottom: 2px;
}
.js-hero-stat-value {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--brown-900, #3d2a20);
  line-height: 1.25;
  word-break: break-word;
}

.js-hero-pay {
  margin: 8px 0 0;
  padding: 0;
  border-top: none;
}
/* Cegah sisa tinggi konten accordion saat tertutup (Safari/Chrome quirk) */
.js-hero-pay:not([open]) > *:not(summary) {
  display: none !important;
}
.js-hero-pay-summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  list-style: none;
  cursor: pointer;
  padding: 6px 0;
  margin: 0;
  border-top: 1px solid #EDE4DA;
  font-size: 13px;
  font-weight: 650;
  color: var(--brown-800, #4a3428);
}
.js-hero-pay-summary::-webkit-details-marker { display: none; }
.js-hero-pay-summary::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 5px solid #8A7462;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  margin: 0 4px 0 0;
  flex-shrink: 0;
  transition: transform .15s ease;
}
.js-hero-pay[open] .js-hero-pay-summary::before {
  transform: rotate(90deg);
}
/* Tutup: mepet ke kiri. Buka: lebarkan (badge + sisa ke kanan) */
.js-hero-pay-summary-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  margin-left: 0;
  min-width: 0;
}
.js-hero-pay[open] .js-hero-pay-summary {
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
}
.js-hero-pay[open] .js-hero-pay-summary-right {
  margin-left: auto;
  gap: 8px;
  flex-shrink: 0;
}
.js-hero-pay-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.js-hero-pay-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #FCFAF7;
  border: 1px solid #EFE6DC;
}
.js-hero-pay-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.js-hero-pay-main strong {
  font-size: 12.5px;
  color: var(--brown-900);
}
.js-hero-pay-main .js-page-sub {
  font-size: 11px;
}
.js-hero-pay-amt {
  font-size: 12.5px;
  white-space: nowrap;
}
.js-hero-pay-amt.is-in { color: #166534; }
.js-hero-pay-amt.is-out { color: #991b1b; }

.js-revisi-toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.js-revisi-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.js-revisi-foot-hint {
  margin: 8px 12px 12px;
  font-size: 12px;
}

@media (max-width: 900px) {
  .js-custom-detail .js-mb-3 {
    margin-bottom: 10px;
  }
  .js-custom-hero.js-card-pad,
  .js-custom-detail #customStepNav.js-card-pad,
  .js-custom-detail .js-card-pad {
    padding: 12px;
  }
  .js-custom-hero-top {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .js-custom-hero .js-cust-contact {
    margin-top: 6px;
    margin-bottom: 0;
    padding-bottom: 0;
  }
  .js-custom-hero .js-hero-pay {
    margin: 0;
  }
  .js-custom-hero .js-hero-pay-summary {
    padding: 5px 0;
    gap: 5px;
  }
  .js-custom-hero .js-hero-pay[open] .js-hero-pay-summary {
    padding: 7px 0;
  }
  .js-custom-hero .js-hero-pay-summary-right {
    gap: 5px;
  }
  .js-custom-hero .js-hero-pay-summary-right .js-page-sub {
    font-size: 11.5px;
  }
  .js-custom-hero-actions {
    width: 100%;
    margin-top: 2px;
    padding-top: 8px;
    gap: 7px;
  }
  .js-custom-hero-actions > .js-btn {
    min-height: 40px;
    font-size: 12.5px;
    padding-top: 0;
    padding-bottom: 0;
  }
  .js-custom-hero-name {
    font-size: 1.25rem;
  }
  .js-custom-hero-meta {
    font-size: 12px;
  }
  .js-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
  }
  .js-hero-stat {
    padding: 5px 7px;
  }
  .js-hero-stat-label { font-size: 9.5px; }
  .js-hero-stat-value { font-size: 12.5px; }
  .js-custom-detail #customStepNav.js-card-pad {
    padding: 10px 8px;
  }
  .js-revisi-toolbar.js-card-pad {
    padding: 10px 12px;
  }
}

@media (max-width: 640px) {
  .js-content:has(.js-custom-detail) {
    --js-content-pad-x: 12px;
    padding: 10px var(--js-content-pad-x) calc(var(--mnav-h) + 14px);
  }
  /* Edit accordion: tertutup full width */
  .js-custom-detail .js-edit-item-list {
    --js-pad: var(--js-content-pad-x, 12px);
    width: calc(100% + 2 * var(--js-pad));
    margin-left: calc(-1 * var(--js-pad));
    margin-right: calc(-1 * var(--js-pad));
    gap: 0;
  }
  .js-custom-detail .js-edit-item-acc:not([open]) {
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    box-shadow: none !important;
  }
  .js-custom-detail .js-edit-item-acc:not([open]) > .js-edit-item-summary {
    border-radius: 0 !important;
  }
  .js-custom-detail .js-edit-item-acc[open] {
    margin: 8px var(--js-pad, 12px);
    border-radius: 14px;
  }
}

/* —— Custom detail mobile polish —— */
.js-pelanggan-name { font-size: 15px; display: inline-block; }
.js-pelanggan-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.js-pelanggan-hint { margin: 0; max-width: 220px; text-align: right; }
.js-cust-contact-btns { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.js-cust-contact-tg-short { display: none; }

@media (max-width: 900px) {
  .js-pelanggan-card .js-prod-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .js-pelanggan-main { min-width: 0; width: 100%; }
  .js-pelanggan-side {
    align-items: stretch;
    width: 100%;
  }
  .js-pelanggan-side .js-btn { width: 100%; }
  .js-pelanggan-hint {
    max-width: none;
    text-align: left;
    padding: 8px 10px;
    background: #F7F3ED;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.4;
  }
  .js-pelanggan-help { font-size: 12px; line-height: 1.4; }

  .js-cust-contact {
    flex-wrap: wrap;
    gap: 6px 8px;
    margin-top: 8px;
    margin-bottom: 0;
    padding-bottom: 0;
    overflow: visible;
  }
  .js-cust-contact-btns { gap: 5px; }
  .js-cust-contact-num {
    width: 100%;
    font-size: 12px;
  }
  .js-cust-contact-tg-full { display: none; }
  .js-cust-contact-tg-short { display: inline; }
  .js-cust-contact-btn {
    padding: 6px 9px;
    font-size: 11px;
  }

  .js-revisi-hist-top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 12px;
  }
  .js-revisi-hist-actions {
    justify-content: flex-start;
    width: 100%;
  }
  .js-revisi-hist-actions .js-btn {
    flex: 1 1 auto;
    min-width: calc(50% - 4px);
    justify-content: center;
  }
  .js-revisi-col-meta {
    padding: 0 12px 8px;
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .js-revisi-col-chip {
    flex-shrink: 0;
    max-width: 140px;
  }
  .js-revisi-cols-wrap .js-table-wrap {
    margin: 0;
    border-radius: 0;
  }
  .js-revisi-col-table th.js-revisi-sticky-col,
  .js-revisi-col-table td.js-revisi-sticky-col {
    min-width: 110px;
  }

  .js-prod-item-top {
    flex-direction: column;
    align-items: stretch;
  }
  .js-prod-item-tools {
    justify-content: flex-start;
    width: 100%;
  }
  .js-prod-item-tools .js-btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .js-pelanggan-card.js-card-pad,
  .js-revisi-hist-card {
    border-radius: 12px;
  }
}

/* Produk barcode + foto */
.js-barcode-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.js-barcode-row .js-input {
  flex: 1 1 auto;
  min-width: 0;
}
.js-barcode-row .js-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}
.js-prod-photo-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.js-prod-photo-preview {
  width: 104px;
  height: 104px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  background: #FCFAF7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.js-prod-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.js-prod-photo-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.js-prod-dt-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}
.js-prod-dt-ph {
  color: var(--text-secondary);
  font-size: 12px;
}

/* POS item foto */
.js-pos-item-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #F3EEE7;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.js-pos-item-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.js-pos-item-photo.is-empty {
  color: #B8A693;
}
.js-cart-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 auto;
}

/* Kalender sewa */
.js-sewa-cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}
.js-sewa-cal-head {
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brown-600, #6B4630);
  padding: 2px 0 6px;
}
.js-sewa-cal-cell {
  position: relative;
  min-height: 48px;
  border: 1px solid rgba(58, 36, 24, 0.08);
  background: linear-gradient(180deg, #FFFCFA 0%, #F8F3EC 100%);
  border-radius: 12px;
  padding: 7px 8px;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, background .15s, box-shadow .15s, transform .12s;
}
.js-sewa-cal-cell.is-pad {
  border: none;
  background: transparent;
  cursor: default;
  min-height: 0;
  padding: 0;
}
.js-sewa-cal-cell.is-today {
  border-color: #C4A484;
  box-shadow: inset 0 0 0 1px rgba(196, 164, 132, 0.45);
}
.js-sewa-cal-cell.is-busy {
  background: linear-gradient(160deg, rgba(201, 166, 107, 0.18) 0%, rgba(184, 134, 11, 0.1) 100%);
  border-color: rgba(184, 134, 11, 0.42);
}
.js-sewa-cal-cell.is-late {
  background: linear-gradient(160deg, rgba(163, 59, 43, 0.14) 0%, rgba(163, 59, 43, 0.06) 100%);
  border-color: rgba(163, 59, 43, 0.42);
}
.js-sewa-cal-badge.is-late {
  background: #A33B2B;
}
.js-sewa-cal-cell:not(.is-pad):not(:disabled):hover {
  border-color: #C4A484;
  box-shadow: 0 6px 16px rgba(58, 36, 24, 0.08);
  transform: translateY(-1px);
}
.js-sewa-cal-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--brown-900, #24150F);
  letter-spacing: -0.02em;
}
.js-sewa-cal-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brown-800, #3A2418);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(36, 21, 15, 0.18);
}
.js-sewa-cal-detail {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.js-sewa-cal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.js-sewa-cal-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #FCFAF7;
  border: 1px solid var(--border);
  font-size: 13px;
}
.js-sewa-cal-list li span {
  color: var(--text-secondary);
  font-size: 12px;
}
.js-sewa-cal-ranges {
  margin-top: 4px;
}
.js-sewa-view-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #F3EBE3;
  border: 1px solid rgba(58, 36, 24, 0.1);
}
.js-sewa-view-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brown-700, #5C3A2A);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.js-sewa-view-tab svg { width: 15px; height: 15px; }
.js-sewa-view-tab:hover { background: rgba(255, 255, 255, 0.7); }
.js-sewa-view-tab.is-on {
  background: linear-gradient(135deg, #5A3826, #3A2418);
  color: #fff;
  box-shadow: 0 4px 12px rgba(36, 21, 15, 0.18);
}
.js-sewa-view-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(201, 166, 107, 0.28);
  color: #6B4630;
}
.js-sewa-view-tab.is-on .js-sewa-view-tag {
  background: rgba(255, 255, 255, 0.16);
  color: #E8D1A5;
}
.js-sewa-mon-cal-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.js-sewa-mon-cal-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 3px;
  border-radius: 12px;
  background: #F3EBE3;
  border: 1px solid rgba(58, 36, 24, 0.08);
}
.js-sewa-mon-cal-nav strong {
  min-width: 132px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--brown-900, #24150F);
  padding: 0 6px;
}
.js-sewa-mon-cal-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  font-size: 11px;
  color: var(--text-secondary);
}
.js-sewa-mon-cal-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.js-sewa-mon-cal-legend i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  border: 1px solid var(--border);
  display: inline-block;
}
.js-sewa-mon-cal-legend i.is-busy {
  background: rgba(184, 134, 11, 0.15);
  border-color: rgba(184, 134, 11, 0.45);
}
.js-sewa-mon-cal-legend i.is-late {
  background: rgba(163, 59, 43, 0.12);
  border-color: rgba(163, 59, 43, 0.45);
}
.js-sewa-mon-cal-legend i.is-today {
  background: #fff;
  border-color: #C4A484;
}
.js-sewa-mon-cal-hint {
  margin-left: auto;
  font-weight: 500;
  color: var(--brown-600, #6B4630);
}
.js-sewa-cal-list li.is-late strong { color: #A33B2B; }
.js-sewa-cal-list li.is-ok strong { color: #2F6B4F; }
.js-sewa-cal-list li em {
  font-style: normal;
  font-weight: 700;
  font-size: 11px;
}
.js-sewa-cal-cell:disabled {
  cursor: default;
  opacity: 1;
}
.js-sewa-cal-cell:disabled .js-sewa-cal-num {
  color: var(--brown-600, #6B4630);
  font-weight: 600;
  opacity: 0.55;
}
.js-sewa-cal-summary {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(201, 166, 107, 0.22);
  background:
    radial-gradient(ellipse 70% 140% at 0% 0%, rgba(201, 166, 107, 0.16) 0%, transparent 52%),
    linear-gradient(135deg, #3A2418 0%, #24150F 100%);
  color: #F6F1E9;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  box-shadow: 0 8px 20px rgba(36, 21, 15, 0.12);
}
.js-sewa-cal-summary-top {
  min-width: 0;
}
.js-sewa-cal-summary-eyebrow {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 209, 165, 0.85);
  margin-bottom: 1px;
}
.js-sewa-cal-summary-top strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.js-sewa-cal-summary-lead {
  margin: 4px 0 0;
  font-size: 11.5px;
  line-height: 1.35;
  color: rgba(246, 241, 233, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.js-sewa-cal-summary-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin: 0;
}
.js-sewa-cal-summary-kpis div {
  padding: 5px 6px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(201, 166, 107, 0.18);
  text-align: center;
}
.js-sewa-cal-summary-kpis em {
  display: block;
  font-style: normal;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.js-sewa-cal-summary-kpis span {
  display: block;
  margin-top: 1px;
  font-size: 9px;
  font-weight: 600;
  color: rgba(246, 241, 233, 0.68);
  letter-spacing: 0.01em;
}
.js-sewa-cal-summary-kpis .is-late em { color: #F0C4BC; }
.js-sewa-cal-summary-kpis .is-late {
  border-color: rgba(240, 196, 188, 0.35);
  background: rgba(163, 59, 43, 0.22);
}

/* Halaman Kalender Sewa — premium shell */
.js-sewa-cal-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.js-sewa-cal-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 20px 18px;
  border-radius: 18px;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 120% at 100% 0%, rgba(201, 166, 107, 0.28) 0%, transparent 55%),
    linear-gradient(135deg, #5A3826 0%, #3A2418 52%, #24150F 100%);
  border: 1px solid rgba(201, 166, 107, 0.22);
  box-shadow: 0 10px 28px rgba(36, 21, 15, 0.16);
}
.js-sewa-cal-hero-eyebrow {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-300, #E8D1A5);
}
.js-sewa-cal-hero-title {
  margin: 0;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
.js-sewa-cal-hero-sub {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(246, 241, 233, 0.78);
  max-width: 42ch;
}
.js-sewa-cal-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.js-sewa-cal-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(201, 166, 107, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: #F6F1E9;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.js-sewa-cal-hero-btn svg { width: 14px; height: 14px; }
.js-sewa-cal-hero-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(201, 166, 107, 0.55);
  transform: translateY(-1px);
}
.js-sewa-cal-hero-btn.is-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.18);
}
.js-sewa-cal-shell {
  padding: 16px 16px 18px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, #FFFCFA 0%, #F7F1E9 100%);
  border: 1px solid rgba(58, 36, 24, 0.1);
  box-shadow: var(--shadow-md, 0 8px 28px rgba(36, 21, 15, 0.08));
}
.js-sewa-cal-shell .js-sewa-mon-cal-toolbar {
  margin-bottom: 10px;
}
.js-sewa-cal-shell .js-sewa-cal-cell {
  min-height: 54px;
  border-radius: 12px;
}
.js-sewa-cal-shell .js-sewa-mon-cal-legend {
  margin-bottom: 8px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(58, 36, 24, 0.06);
}
.js-sewa-cal-pop-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.js-sewa-cal-pop-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.js-sewa-cal-pop-meta {
  font-size: 12.5px;
  color: var(--text-secondary);
}
.js-sewa-cal-pop-act { flex-shrink: 0; }
.js-sewa-cal-modal .js-modal-body {
  max-height: min(60vh, 420px);
  overflow: auto;
}
@media (max-width: 900px) {
  .js-sewa-cal-summary {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .js-sewa-cal-summary-lead {
    white-space: normal;
  }
}
@media (max-width: 720px) {
  .js-sewa-mon-cal-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .js-sewa-mon-cal-nav { justify-content: center; }
  .js-sewa-mon-cal-hint { width: 100%; margin-left: 0; }
  .js-sewa-cal-summary-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .js-sewa-cal-hero {
    align-items: stretch;
  }
  .js-sewa-cal-pop-item {
    flex-direction: column !important;
    align-items: stretch;
  }
  .js-sewa-cal-pop-act .js-btn { width: 100%; }
}


.js-master-hub {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.js-master-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, transform .12s, box-shadow .15s;
}
.js-master-card:hover {
  border-color: #C4A484;
  box-shadow: 0 6px 18px rgba(58, 36, 24, 0.08);
  transform: translateY(-1px);
}
.js-master-card strong {
  font-size: 14.5px;
  color: var(--text);
}
.js-master-card > span {
  font-size: 12px;
  font-weight: 650;
  color: var(--brown-700, #5C3D2E);
}
.js-master-card .js-page-sub {
  margin: 4px 0 0;
}

.js-fin-in { color: #2F6B4F; font-weight: 700; }
.js-fin-out { color: #A33B2B; font-weight: 700; }
.js-fin-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.js-fin-account-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #FCFAF7;
  font-size: 12.5px;
}
.js-fin-account-item strong {
  font-size: 13.5px;
  margin-bottom: 4px;
}

.js-pl-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.7fr);
  gap: 16px;
  align-items: start;
}
.js-pl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.js-pl-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  padding: 8px 4px;
}
.js-pl-table td {
  padding: 8px 4px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.js-pl-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.js-pl-indent { padding-left: 16px !important; color: var(--text-secondary); }
.js-pl-section td {
  font-weight: 700;
  color: var(--brown-800);
  background: #F7F3ED;
  border-bottom-color: var(--border);
  padding-top: 12px;
}
.js-pl-subtotal td {
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
.js-pl-net td {
  font-weight: 800;
  font-size: 15px;
  color: #2F6B4F;
  background: rgba(47, 107, 79, 0.08);
  border-bottom: none;
  padding-top: 14px;
  padding-bottom: 14px;
}
.js-pl-net.is-loss td {
  color: #A33B2B;
  background: rgba(163, 59, 43, 0.08);
}
@media (max-width: 960px) {
  .js-pl-grid { grid-template-columns: 1fr; }
}
@media print {
  .js-sidebar, .js-topbar, .js-mbar, .js-mnav, .js-toolbar, .js-page-head .js-barcode-row,
  .js-pl-side, #btnPlPrint, #btnLedgerPrint, #btnBalancePrint { display: none !important; }
  .js-pl-grid { grid-template-columns: 1fr; }
  .js-main { margin-left: 0 !important; }
  .js-content { padding: 0 !important; }
}

/* Tombol kamera barcode: hanya HP / layar kecil */
.js-bc-cam {
  display: none !important;
}
@media (max-width: 768px) {
  .js-bc-cam {
    display: inline-flex !important;
  }
}

@media (max-width: 640px) {
  .js-sewa-cal-cell {
    min-height: 38px;
    padding: 4px;
  }
  .js-pos-item-photo {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- Monitor Sewa ---------- */
.js-sewa-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
.js-sewa-detail-grid .js-label {
  display: block;
  margin-bottom: 4px;
}
.js-sewa-monitor-kpi {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.js-sewa-kpi {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color 160ms, box-shadow 160ms, transform 120ms;
  text-align: left;
  font-family: inherit;
}
.js-sewa-kpi:hover {
  border-color: rgba(201, 166, 107, 0.55);
  box-shadow: var(--shadow-md);
}
.js-sewa-kpi.is-selected {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 166, 107, 0.18);
}
.js-sewa-kpi.is-warn .js-sewa-kpi-val { color: var(--danger); }
.js-sewa-kpi.is-ok .js-sewa-kpi-val { color: var(--success); }
.js-sewa-kpi-val {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brown-900);
  line-height: 1.1;
}
.js-sewa-kpi-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}
.js-sewa-monitor-table .js-dt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
@media (max-width: 1100px) {
  .js-sewa-monitor-kpi {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 700px) {
  .js-sewa-monitor-kpi {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .js-sewa-kpi {
    padding: 12px 10px;
    align-items: center;
    text-align: center;
  }
  .js-sewa-kpi-val { font-size: 22px; }
  .js-sewa-kpi-label {
    font-size: 10.5px;
    line-height: 1.25;
  }
}

/* ---------- Mobile DataTable → card list (pola LMS) ---------- */
.js-m-list { display: none; }

@media (max-width: 1024px) {
  .js-m-hide-dt > .js-table-wrap,
  .js-m-hide-dt table.dataTable,
  .js-m-hide-dt .dataTables_scroll {
    display: none !important;
  }
  .js-m-hide-dt .dataTables_wrapper .js-dt-foot,
  .dataTables_wrapper.is-m-dt .js-dt-foot,
  .dataTables_wrapper.is-m-dt .dataTables_info,
  .dataTables_wrapper.is-m-dt .dataTables_paginate {
    display: none !important;
  }
  .js-m-hide-dt {
    padding: 12px !important;
  }
  .js-m-hide-dt .dataTables_wrapper {
    padding: 0 !important;
  }
  .js-m-hide-dt .js-dt-toolbar {
    margin-bottom: 10px;
  }

  .js-m-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 4px;
  }

  .js-m-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border, #E8E0D6);
    box-shadow: 0 1px 3px rgba(58, 36, 24, 0.06);
    min-height: 72px;
  }

  .js-m-card__body {
    flex: 1;
    min-width: 0;
  }

  .js-m-card__title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--brown-800, #24150F);
    line-height: 1.3;
    letter-spacing: -0.01em;
  }

  .js-m-card__sub {
    margin: 3px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--brown-600, #6B4630);
    line-height: 1.3;
  }

  .js-m-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
  }

  .js-m-card__meta {
    margin: 5px 0 0;
    font-size: 12px;
    color: var(--muted, #8A7A6C);
    line-height: 1.35;
  }

  .js-m-card__more,
  .js-m-card__go {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    margin: 0;
    border: 0;
    background: #F7F3ED;
    border-radius: 999px;
    color: var(--brown-600, #6B4630);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .js-m-card__more:active,
  .js-m-card__go:active {
    background: #EDE4D8;
  }

  .js-m-card__go svg {
    width: 16px;
    height: 16px;
  }

  .js-m-empty {
    text-align: center;
    padding: 36px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border, #E8E0D6);
  }

  .js-m-empty h3 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--brown-800, #24150F);
  }

  .js-m-empty p {
    margin: 0;
    font-size: 13px;
    color: var(--muted, #8A7A6C);
  }

  .js-m-more {
    text-align: center;
    padding: 14px 8px 6px;
    color: var(--muted, #8A7A6C);
    font-size: 12px;
  }

  .js-m-more.is-loading {
    color: var(--brown-600, #6B4630);
  }
}

.js-m-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(36, 21, 15, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.js-m-sheet[hidden] { display: none !important; }
.js-m-sheet__panel {
  width: 100%;
  max-height: min(70dvh, 520px);
  overflow: auto;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 14px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -10px 40px rgba(36, 21, 15, 0.18);
}
.js-m-sheet__handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: #E8E0D6;
  margin: 0 auto 12px;
}
.js-m-sheet__title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--brown-800, #24150F);
}
.js-m-sheet__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.js-m-act {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  color: var(--brown-800, #24150F);
  cursor: pointer;
  font-family: inherit;
}
.js-m-act:active { background: #F7F3ED; }
.js-m-act.is-danger { color: #B42318; }
.js-m-sheet__cancel {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: #F7F3ED;
  font-size: 15px;
  font-weight: 600;
  color: var(--brown-600, #6B4630);
  cursor: pointer;
  font-family: inherit;
}
body.js-m-sheet-open { overflow: hidden; }

/* ---------- Insight (analitik boutique) ---------- */
.js-insight-lead {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary, #756B63);
}
.js-insight-lead strong { color: var(--brown-800, #3A2418); }
.js-insight-banner {
  padding: 16px 18px;
  border-radius: var(--radius, 16px);
  border: 1px solid var(--border, #E8E0D6);
  background: #fff;
  box-shadow: var(--shadow);
}
.js-insight-banner-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.js-insight-banner-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6B4630, #3A2418);
  color: #E8D1A5;
  flex-shrink: 0;
}
.js-insight-banner-ico svg { width: 18px; height: 18px; }
.js-insight-banner-head strong {
  display: block;
  font-size: 15px;
  color: var(--brown-900, #24150F);
}
.js-insight-banner-sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted, #8A7A6C);
}
.js-insight-banner-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--brown-800, #3A2418);
}
.js-insight-banner-list li + li { margin-top: 6px; }
.js-insight-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.js-insight-kpi {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border-light, #EFE8DF);
  background: #FCFAF7;
}
.js-insight-kpi.is-accent {
  background: linear-gradient(135deg, rgba(107,70,48,0.08), rgba(201,166,107,0.12));
  border-color: rgba(201,166,107,0.35);
}
.js-insight-kpi-lbl {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}
.js-insight-kpi-val {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--brown-900);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.js-insight-kpi-sub {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-secondary);
}
.js-insight-tips {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}
.js-insight-tips strong {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--brown-800);
}
.js-insight-tips ul {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.js-insight-tips li + li { margin-top: 4px; }
.js-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.js-insight-bars { display: flex; flex-direction: column; gap: 10px; }
.js-insight-bars-scroll {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}
.js-insight-bar-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  margin-bottom: 4px;
}
.js-insight-bar-meta strong { color: var(--brown-900); }
.js-insight-bar-meta span { color: var(--muted); white-space: nowrap; }
.js-insight-bar-track {
  height: 8px;
  border-radius: 999px;
  background: #EFE8DF;
  overflow: hidden;
}
.js-insight-bar-track i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #8A6448, #3A2418);
  min-width: 0;
}
.js-insight-bar-row.is-top .js-insight-bar-track i {
  background: linear-gradient(90deg, #C9A66B, #5A3826);
}
.js-insight-rank {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #8A6448;
  background: rgba(201, 166, 107, 0.22);
  border-radius: 6px;
  padding: 1px 6px;
  margin-right: 4px;
  vertical-align: middle;
}
.js-insight-row-top td {
  background: rgba(201, 166, 107, 0.12);
}
.js-insight-row-top td:first-child {
  font-weight: 700;
  color: var(--brown-700, #5C3A2A);
}
.js-insight-stat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.js-insight-stat-row-3 { grid-template-columns: repeat(3, 1fr); }
.js-insight-stat-row div {
  text-align: center;
  padding: 10px 6px;
  border-radius: 10px;
  background: #F7F3ED;
}
.js-insight-stat-row em {
  display: block;
  font-style: normal;
  font-size: 22px;
  font-weight: 700;
  color: var(--brown-900);
  line-height: 1.1;
}
.js-insight-stat-row em.is-warn { color: var(--danger); }
.js-insight-stat-row span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}
.js-insight-pipe {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.js-insight-pipe li {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
}
.js-insight-pipe li:last-child { border-bottom: 0; }
.js-insight-kv {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.js-insight-kv li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}
.js-insight-kv span { color: var(--muted); }
.js-insight-kv strong { color: var(--brown-900); text-align: right; }

@media (max-width: 1100px) {
  .js-insight-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .js-insight-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .js-insight-kpi-grid { grid-template-columns: 1fr; }
  .js-insight-stat-row-3 { grid-template-columns: 1fr; }
}

/* ===== Shift gate (ala apotek) ===== */
.js-shift-gate {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 12px 36px;
  background: #F5F1EB;
  border-radius: 18px;
  margin: -4px 0 0;
}
.js-shift-gate-panel {
  width: min(860px, 100%);
  background: #fff;
  border: 1px solid #E8E0D6;
  border-radius: 18px;
  box-shadow: 0 10px 36px rgba(36, 24, 18, 0.06);
  padding: 28px 28px 26px;
}
.js-shift-gate-head {
  margin-bottom: 22px;
}
.js-shift-gate-head .js-eyebrow {
  margin: 0 0 8px;
  color: #A67C52;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.js-shift-gate-head .js-shift-gate-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold-100);
  color: var(--brown-800);
  font-size: 13.5px;
}
.js-shift-gate-date svg { width: 16px; height: 16px; color: var(--gold-700); }
.js-shift-gate-date strong { color: var(--brown-900); }
.js-shift-gate-head h1 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 700;
  color: #1C1917;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.js-shift-gate-head > p {
  margin: 0;
  max-width: 560px;
  font-size: 14px;
  color: #78716C;
  line-height: 1.45;
}
.js-shift-gate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.js-shift-gate-card {
  border: 1px solid #E8E0D6;
  border-radius: 14px;
  padding: 20px 18px 18px;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.js-shift-gate-card h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1C1917;
}
.js-shift-gate-card > p {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: #78716C;
  line-height: 1.45;
}
.js-shift-gate-idle {
  margin: 0 !important;
  color: #A8A29E !important;
}
.js-shift-gate-form {
  margin-top: auto;
}
.js-shift-gate-btn {
  width: 100%;
  min-height: 44px;
  font-size: 15px;
  background: #5C4033 !important;
  border-color: #5C4033 !important;
}
.js-shift-gate-btn:hover:not(:disabled) {
  background: #4A3429 !important;
  border-color: #4A3429 !important;
}
.js-shift-gate-joins {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.js-shift-gate-join {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #FAF7F2;
  border: 1px solid #E8E0D6;
}
.js-shift-gate-join-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.js-shift-gate-join-info strong {
  font-size: 14px;
  color: #1C1917;
}
.js-shift-gate-join-info span {
  font-size: 12px;
  color: #78716C;
}
@media (max-width: 760px) {
  .js-shift-gate {
    min-height: auto;
    padding: 0 0 20px;
    background: transparent;
  }
  .js-shift-gate-panel {
    padding: 18px 16px;
    border-radius: 16px;
  }
  .js-shift-gate-grid {
    grid-template-columns: 1fr;
  }
  .js-shift-gate-card {
    min-height: 0;
  }
}

/* ===== Produksi hub (board + kalender) ===== */
.js-prod-hub {
  margin: -4px 0 0;
}
.js-prod-hub-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 14px;
}
.js-prod-hub-title {
  min-width: 140px;
}
.js-prod-hub-toggle {
  display: inline-flex;
  background: #EFE8DF;
  border: 1px solid #E4D5C4;
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.js-prod-hub-tab {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #6B4F3A;
  text-decoration: none;
}
.js-prod-hub-tab.is-active {
  background: #fff;
  color: #3A2418;
  box-shadow: 0 1px 3px rgba(36, 24, 18, 0.08);
}
.js-prod-hub-search {
  flex: 1;
  min-width: 180px;
  max-width: 320px;
  margin-left: auto;
}
.js-prod-reminder {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: #FFF8E1;
  border: 1px solid #F3E2B0;
  color: #8A6A16;
  font-size: 13.5px;
  font-weight: 500;
}
.js-prod-reminder-ico {
  display: inline-flex;
  flex-shrink: 0;
  color: #D99A00;
}
.js-prod-reminder-ico svg { width: 18px; height: 18px; }
.js-prod-reminder-text { flex: 1; min-width: 0; }
.js-prod-reminder-text strong { font-weight: 700; color: #7A5A0A; }
.js-prod-reminder-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8A6A16;
  cursor: pointer;
  padding: 0;
}
.js-prod-reminder-x:hover { background: rgba(217, 154, 0, 0.12); }
.js-prod-reminder-x svg { width: 18px; height: 18px; }
.js-prod-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(190px, 1fr));
  gap: 12px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 4px;
}
.js-prod-col {
  background: #fff;
  border: 1px solid #E8E0D6;
  border-radius: 12px;
  border-top: 4px solid #A8A29E;
  min-height: 280px;
  min-width: 200px;
  display: flex;
  flex-direction: column;
}
.js-prod-col.is-new { border-top-color: #E74C3C; }
.js-prod-col.is-assigned { border-top-color: #F39C12; }
.js-prod-col.is-check { border-top-color: #8B6F47; }
.js-prod-col.is-progress { border-top-color: #4A90D9; }
.js-prod-col.is-ready { border-top-color: #16A085; }
.js-prod-col.is-done { border-top-color: #27AE60; }
.js-prod-col.is-done .js-prod-card { opacity: 0.92; }
.js-prod-phase.is-selesai { background: #DCFCE7; color: #166534; }
.js-prod-col-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 12px 8px;
}
.js-prod-col-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.js-prod-col-head strong {
  font-size: 13px;
  color: #3A2418;
  line-height: 1.25;
}
.js-prod-col-hint {
  font-size: 11px;
  color: #A8A29E;
  font-weight: 500;
  line-height: 1.3;
}
.js-prod-col-count {
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #F3E9DF;
  color: #6B4F3A;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.js-prod-col-body {
  padding: 0 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - 260px);
  overflow: auto;
}
.js-prod-col-empty {
  margin: 24px 0;
  text-align: center;
  font-size: 13px;
  color: #A8A29E;
}
.js-prod-card {
  border: 1px solid #E8E0D6;
  border-left: 4px solid var(--accent, #A67C52);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(36, 24, 18, 0.04);
  transition: box-shadow .15s ease, transform .15s ease;
}
.js-prod-card:hover {
  box-shadow: 0 4px 12px rgba(36, 24, 18, 0.08);
  transform: translateY(-1px);
}
.js-prod-card-link {
  display: block;
  padding: 10px 10px 8px;
  text-decoration: none;
  color: inherit;
}
.js-prod-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.js-prod-card-top strong {
  font-size: 13.5px;
  color: #1C1917;
  line-height: 1.3;
}
.js-prod-deadline {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: #DCFCE7;
  color: #166534;
}
.js-prod-deadline.is-soon {
  background: #FEF3C7;
  color: #92400E;
}
.js-prod-deadline.is-over {
  background: #FEE2E2;
  color: #991B1B;
}
.js-prod-card-job {
  font-size: 12.5px;
  color: #78716C;
  margin-bottom: 8px;
}
.js-prod-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #A8A29E;
}
.js-prod-house-pill {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.js-prod-phase {
  display: inline-flex;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #F3E9DF;
  color: #6B4F3A;
}
.js-prod-phase.is-revisi {
  background: #DBEAFE;
  color: #1E40AF;
}
.js-prod-card-hint {
  margin-top: 7px;
  font-size: 11px;
  color: #78716C;
  line-height: 1.3;
}
/* ---------- Sewa: ubah tanggal / tukar barang ---------- */
.js-sewa-edit-sum {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}
.js-sewa-edit-sum > div { display: flex; justify-content: space-between; gap: 10px; }
.js-sewa-edit-sum span { color: var(--text-secondary); }
.js-sewa-edit-sum strong { color: var(--brown-900); text-align: right; }
.js-sewa-edit-sum .is-short strong { color: var(--danger); }
.js-sewa-edit-sum .is-refund strong { color: #9a6700; }
.js-sewa-edit-sum .is-ok strong { color: var(--success); }

/* ---------- Order gabungan (1 pelanggan · Ready + Custom + Sewa) ---------- */
body.js-pos-combo .js-combo-hide { display: none !important; }
.js-combo-customer .js-search-select { max-width: 520px; }
.js-combo-bar {
  position: sticky;
  bottom: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(43, 26, 18, 0.12);
}
.js-combo-bar.has-items { border-color: var(--gold-500); }
.js-combo-bar-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.js-combo-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  background: var(--cream);
  color: var(--brown-800);
  white-space: nowrap;
}
.js-combo-chip.is-ready { background: #E8F0EA; color: #2F5D3A; }
.js-combo-chip.is-sewa { background: #EDE8F5; color: #4A3A6B; }
.js-combo-chip.is-custom { background: #F5EDE4; color: #6B4630; }
.js-combo-bar-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}
.js-combo-bar-total span { font-size: 11.5px; color: var(--text-secondary); }
.js-combo-bar-total strong { font-size: 1.2rem; color: var(--brown-950); }
.js-combo-pay-table { font-size: 13px; }
.js-combo-pay-table .js-num { text-align: right; white-space: nowrap; }
.js-combo-pay-table tfoot th { background: var(--ivory); }
.js-combo-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
#comboPayHint.is-warn { color: var(--danger); font-weight: 600; }
.js-after-save-group {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.js-after-save-group[hidden] { display: none !important; }
.js-after-save-group li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--ivory);
  font-size: 13px;
}
.js-after-save-group li span { color: var(--text-secondary); margin-left: 4px; }
.js-after-save-group li em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
}
.js-after-save-group li em.is-lunas { background: var(--success-bg); color: var(--success); }
.js-after-save-group li em.is-dp { background: var(--warning-bg); color: #8A6A16; }
.js-after-save-group-act { display: flex; gap: 6px; }
@media (max-width: 1024px) {
  .js-combo-bar { bottom: calc(var(--mnav-h, 72px) + 8px); }
}
.js-ws-kpi { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.js-kpi-link.is-active { border-color: var(--gold-600); box-shadow: 0 0 0 2px var(--gold-100); }
.js-ws-houses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.js-ws-house {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 150px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.js-ws-house:hover { border-color: #D5C6B4; background: var(--ivory); }
.js-ws-house.is-active { border-color: var(--gold-600); background: var(--gold-100); }
.js-ws-house-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}
.js-ws-house-name i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.js-ws-house strong { font-size: 15px; color: var(--brown-900); }
.js-ws-house-count { font-size: 11px; color: var(--muted); }
.js-ws-table .js-num { text-align: right; }
.js-ws-table tr.is-ws-priority td { background: #FFF8E1; }
.js-ws-table tr.is-ws-priority td:first-child { box-shadow: inset 3px 0 0 #D99A00; }
@media (max-width: 900px) {
  .js-ws-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.js-prod-peek-modal { width: min(460px, 100%); }
.js-prod-peek-list { margin: 0; }
.js-prod-peek-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed #F0E8DF;
  font-size: 13.5px;
}
.js-prod-peek-row:last-child { border-bottom: 0; }
.js-prod-peek-row dt { color: var(--text-secondary); margin: 0; }
.js-prod-peek-row dd { margin: 0; color: var(--brown-900); word-break: break-word; }
.js-prod-peek-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold-100);
  color: var(--gold-700);
  font-weight: 600;
  font-size: 12px;
}
.js-prod-peek-form {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--ivory);
}
.js-prod-peek-form[hidden] { display: none !important; }
.js-prod-peek-form-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.js-prod-peek-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--border);
}
.js-prod-peek-foot .js-btn svg { width: 15px; height: 15px; }
.js-prod-peek-foot [hidden] { display: none !important; }
.js-prod-quick-assign {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 10px 10px;
  border-top: 1px dashed #E8E0D6;
  padding-top: 8px;
  margin-top: 0;
}
.js-prod-cal-wrap {
  position: relative;
  background: #fff;
  border: 1px solid #E8E0D6;
  border-radius: 14px;
  padding: 16px;
}
.js-prod-cal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.js-prod-cal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.js-prod-cal-nav strong {
  min-width: 140px;
  text-align: center;
  font-size: 15px;
}
.js-prod-cal-filters {
  display: flex;
  gap: 8px;
}
.js-prod-cal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.js-prod-cal-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid #E8E0D6;
  background: #FAF7F2;
  color: #3A2418;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}
.js-prod-cal-tab i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.js-prod-cal-tab span {
  background: #fff;
  border-radius: 999px;
  padding: 0 6px;
  font-size: 11px;
  color: #78716C;
}
.js-prod-cal-tab.is-active {
  background: #5C4033;
  border-color: #5C4033;
  color: #fff;
}
.js-prod-cal-tab.is-active span {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.js-prod-cal {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.js-prod-cal-dow {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #78716C;
  padding: 4px 0;
}
.js-prod-cal-day {
  min-height: 110px;
  border: 1px solid #E8E0D6;
  border-radius: 8px;
  padding: 6px;
  background: #fff;
}
.js-prod-cal-day.is-pad {
  background: #F7F3EE;
  border-color: transparent;
}
.js-prod-cal-day.is-empty {
  background: #FCFAF7;
}
.js-prod-cal-day.is-today {
  border-color: #A67C52;
  box-shadow: inset 0 0 0 1px rgba(166, 124, 82, 0.25);
}
.js-prod-cal-daynum {
  font-size: 11px;
  font-weight: 700;
  color: #78716C;
  margin-bottom: 4px;
  text-align: right;
}
.js-prod-cal-daynum.is-today {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #5C4033;
  color: #fff;
  float: right;
}
.js-prod-cal-item {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  font-size: 10px;
  line-height: 1.3;
  padding: 5px 6px;
  margin: 0 0 4px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}
.js-prod-cal-peek {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.js-prod-cal-peek[hidden] {
  display: none !important;
}
.js-prod-cal-peek-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 6, 0.4);
}
.js-prod-cal-peek-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  max-height: min(70vh, 520px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #E8E0D6;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(40, 24, 16, 0.28);
  overflow: hidden;
}
.js-prod-cal-peek-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #EDE4DA;
}
.js-prod-cal-peek-body {
  padding: 12px 16px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.js-prod-cal-peek-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px dashed #F0E8DF;
}
.js-prod-cal-peek-row span {
  color: #78716C;
  flex: 0 0 auto;
}
.js-prod-cal-peek-row strong {
  text-align: right;
  color: #3A2418;
  word-break: break-word;
}
.js-prod-cal-peek-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-top: 1px solid #EDE4DA;
}
.is-cal-focus {
  outline: 2px solid var(--gold-600);
  outline-offset: 3px;
  border-radius: 12px;
}
.js-prod-cal-item:active {
  cursor: grabbing;
}
.js-prod-cal-item strong {
  display: block;
  font-weight: 700;
}
.js-prod-cal-item span {
  opacity: 0.92;
}
.js-prod-cal-day.is-this-order {
  box-shadow: inset 0 0 0 1.5px rgba(92, 64, 51, 0.35);
}
.js-prod-cal-item.is-mine {
  outline: 2px solid #fff;
  outline-offset: -2px;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.js-prod-cal-item.is-drag-source {
  opacity: 0.35;
}
.js-prod-cal-item.is-saving {
  opacity: 0.55;
  pointer-events: none;
}
.js-prod-cal-day.is-drop-hover {
  border-color: #5C4033 !important;
  background: #F3EBE3 !important;
  box-shadow: inset 0 0 0 2px rgba(92, 64, 51, 0.35);
}
.js-prod-cal-ghost {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  margin: 0 !important;
  pointer-events: none;
  box-shadow: 0 12px 28px rgba(40, 24, 16, 0.35);
  border-radius: 8px;
  will-change: transform;
  opacity: 0.96;
}
body.is-prod-cal-dragging {
  cursor: grabbing !important;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
body.is-prod-cal-dragging * {
  cursor: grabbing !important;
}
.js-prod-cal-hint {
  margin: 12px 0 0;
  font-size: 12.5px;
}
.js-detail-prod-cal .js-prod-cal-wrap {
  margin: 0;
}
.js-col-checking {
  background: #F3EBE3 !important;
  color: #5C4033;
}
.js-table th.js-col-checking {
  font-weight: 700;
}
.js-checking-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: #78716C;
}
.js-checking-hint strong {
  color: #5C4033;
}
.js-size-timeline {
  min-width: 640px;
}
.js-size-timeline th.js-col-checking,
.js-size-timeline td.js-col-checking {
  min-width: 72px;
}
.js-size-timeline th.js-revisi-rcol,
.js-size-timeline td.js-revisi-rcol {
  min-width: 64px;
}
.js-terima-check-table {
  width: max-content;
  min-width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12.5px;
}
.js-terima-check-table th,
.js-terima-check-table td {
  padding: 8px 10px;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid #F0EDEA;
  vertical-align: middle;
}
.js-terima-check-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #FAFAF9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #78716C;
  border-bottom: 1px solid #E7E5E4;
}
.js-terima-check-table .js-terima-sticky {
  position: sticky;
  left: 0;
  z-index: 3;
  text-align: left;
  min-width: 132px;
  max-width: 168px;
  background: #fff;
  box-shadow: 2px 0 0 #F0EDEA;
  white-space: normal;
}
.js-terima-check-table thead .js-terima-sticky {
  z-index: 4;
  background: #FAFAF9;
}
.js-terima-check-table tbody tr:last-child td {
  border-bottom: 0;
}
.js-terima-check-table th.is-terima-active,
.js-terima-check-table td.is-terima-active {
  background: #E8D8C8 !important;
  color: #3F2A1D;
  min-width: 88px;
}
.js-terima-check-table th.is-terima-active {
  color: #5C4033;
  box-shadow: inset 0 -2px 0 #A67C52;
}
.js-terima-check-table .js-checking-input {
  display: block;
  width: 72px;
  margin: 0 auto;
  padding: 5px 6px;
  text-align: center;
  background: #fff;
  border: 1.5px solid #A67C52;
  border-radius: 6px;
  font-size: 13px;
  box-sizing: border-box;
}
.js-terima-check-table .js-checking-input:focus {
  outline: none;
  border-color: #7A5230;
  box-shadow: 0 0 0 3px rgba(166, 124, 82, 0.22);
}
@media (max-width: 1200px) {
  .js-prod-board {
    grid-template-columns: repeat(6, minmax(180px, 1fr));
  }
}
@media (max-width: 900px) {
  .js-prod-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Mobile: tetap grid kalender 7 kolom (bukan daftar) */
@media (max-width: 720px) {
  .js-prod-hub-search {
    max-width: none;
    margin-left: 0;
    width: 100%;
  }
  .js-prod-board {
    grid-template-columns: 1fr;
  }
  .js-prod-col-body {
    max-height: none;
  }
  #modalProdCal .js-modal-head {
    padding: 12px 14px;
  }
  #modalProdCal .js-modal-head h3 {
    font-size: 17px;
  }
  #modalProdCal .js-modal-head .js-page-sub {
    font-size: 12px;
  }
  #modalProdCal .js-modal-body {
    padding: 8px 10px 14px;
  }
  #modalProdCal .js-modal-foot {
    padding: 10px 12px;
  }
  .js-prod-cal-modal .js-prod-cal-wrap {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
  }
  .js-prod-cal-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff;
    padding-bottom: 8px;
  }
  .js-prod-cal-nav {
    justify-content: space-between;
  }
  .js-prod-cal-nav strong {
    min-width: 0;
    flex: 1;
    font-size: 15px;
  }
  .js-prod-cal-toolbar .js-input {
    max-width: none !important;
    width: 100%;
  }
  .js-prod-cal-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding-bottom: 4px;
    margin-bottom: 8px;
    scrollbar-width: none;
  }
  .js-prod-cal-tabs::-webkit-scrollbar {
    display: none;
  }
  .js-prod-cal-tab {
    flex: 0 0 auto;
    padding: 7px 11px;
    font-size: 12.5px;
  }
  .js-prod-cal {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
  }
  .js-prod-cal-dow {
    font-size: 10px;
    padding: 2px 0 4px;
  }
  .js-prod-cal-day {
    min-height: 72px;
    padding: 3px;
    border-radius: 6px;
  }
  .js-prod-cal-daynum {
    float: none;
    display: block;
    text-align: center;
    font-size: 11px;
    margin: 0 0 3px;
  }
  .js-prod-cal-daynum.is-today {
    float: none;
    margin: 0 auto 3px;
    width: 20px;
    height: 20px;
    font-size: 11px;
  }
  .js-prod-cal-item {
    font-size: 9px;
    line-height: 1.2;
    padding: 3px 4px;
    margin: 0 0 2px;
    border-radius: 4px;
  }
  .js-prod-cal-item span {
    display: none;
  }
  .js-prod-cal-item strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .js-prod-cal-hint {
    font-size: 11.5px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #F7F1E8;
    border: 1px solid #EDE4DA;
  }
  .js-prod-cal-modal .js-prod-cal {
    min-height: 0;
  }
}

/* ---------- Kasir: shift per tanggal + modal tutup ---------- */
.js-kasir-board { margin-bottom: 16px; }
.js-kasir-board-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.js-kasir-day-title {
  margin: 2px 0 0;
  font-size: 1.25rem;
  color: var(--brown-900);
}
.js-kasir-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.js-kasir-filters .js-field { min-width: 150px; }
.js-kasir-shift {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--ivory);
  padding: 12px 14px;
}
.js-kasir-shift + .js-kasir-shift { margin-top: 10px; }
.js-kasir-shift.is-open {
  border-color: #b7d7c4;
  background: var(--success-bg);
}
.js-kasir-shift-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.js-kasir-shift-top > div:first-child strong {
  display: block;
  color: var(--brown-900);
}
.js-kasir-shift-top > div:first-child span {
  color: var(--text-secondary);
  font-size: 13px;
}
.js-kasir-shift-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.js-kasir-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.js-kasir-pill.is-open { background: #fff; color: var(--success); }
.js-kasir-pill.is-closed { background: #fff; color: var(--text-secondary); }
.js-kasir-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.js-kasir-metric {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 0;
}
.js-kasir-metric span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.js-kasir-metric strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--brown-900);
}
.js-kasir-metric.is-ok strong { color: var(--success); }
.js-kasir-metric.is-short strong { color: var(--danger); }
.js-kasir-metric.is-over strong { color: #9a6700; }
.js-kasir-note {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--text-secondary);
}
.js-kasir-empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  color: var(--text-secondary);
  background: var(--cream);
}
.js-kasir-close-expect {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--cream);
}
.js-kasir-close-expect span { color: var(--text-secondary); font-size: 13px; }
.js-kasir-close-expect strong { color: var(--brown-900); font-size: 1.05rem; }
.js-kasir-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px 16px;
  border-top: 1px solid var(--border);
}
.js-kasir-block + .js-kasir-block { margin-top: 12px; }
.js-kasir-block-label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.js-kasir-metrics-other {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.js-kasir-metrics-other .js-kasir-metric {
  flex: 0 1 180px;
  min-width: 140px;
}
.js-btn-danger .js-btn-ico { color: #fff; }
@media (max-width: 800px) {
  .js-kasir-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


