﻿:root {
  --blue: #16a34a;
  --blue-dark: #15803d;
  --blue-soft: #dcfce7;
  --blue-border: #86efac;
  --teal: #14b8a6;
  --teal-dark: #0d9488;
  --accent: #8b5cf6;
  --green: #22c55e;
  --green-soft: #dcfce7;
  --green-text: #14532d;
  --active-green: #16a34a;
  --active-green-dark: #15803d;
  --active-green-soft: #bbf7d0;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --red-border: #fecaca;
  --bg: #f0fdf4;
  --bg-gradient-mid: #f7fef9;
  --surface: #ffffff;
  --line: #dbe7de;
  --text: #1f2937;
  --muted: #6b7280;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 10px 22px rgba(20, 83, 45, 0.06);
  --shadow: 0 18px 40px rgba(20, 83, 45, 0.14);
  --shadow-card: 0 14px 36px rgba(20, 83, 45, 0.08);
  --sidebar-w: 280px;
  --pharmacy-accent: #22c55e;
}

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

html,
body {
  min-height: 100%;
  scroll-behavior: smooth;
}

body.zf-app {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.09), rgba(34, 197, 94, 0) 28%),
    linear-gradient(180deg, #f8fff9 0%, var(--bg) 44%, #eefbf3 100%);
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(22, 163, 74, 0.18);
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

/*  Sidebar  */
.sidebar {
  width: var(--sidebar-w);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    #14532d;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 14px;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  z-index: 100;
  box-shadow: 10px 0 30px rgba(20, 83, 45, 0.2);
}

.sidebar-user-card {
  margin: 0;
  padding: 12px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.su-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--pharmacy-accent);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 10px 18px rgba(22, 197, 94, 0.2);
  overflow: hidden;
  position: relative;
}

.su-text {
  flex: 1;
  min-width: 0;
}

.su-eyebrow {
  display: block;
  margin-bottom: 2px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(220, 252, 231, 0.86);
}

.su-name {
  display: block;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.su-sub {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(240, 253, 244, 0.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.su-meta {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.35;
  color: rgba(220, 252, 231, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-badge-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-badge-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 16px;
}

.side-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 2px 12px;
}

.side-nav::-webkit-scrollbar {
  width: 4px;
}
.side-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

.nav-single {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: rgba(240, 253, 244, 0.82);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  text-align: left;
  margin-bottom: 0;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.nav-single i {
  width: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
}

.nav-single:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  transform: translateX(3px);
}

.nav-single.active {
  background: #22c55e;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 14px 26px rgba(34, 197, 94, 0.28);
}

.nav-single.active i {
  color: #ffffff;
}

.nav-single + .nav-group,
.nav-group + .nav-group {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-group {
  margin-top: 0;
}

.nav-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 14px;
  background: transparent;
  color: rgba(240, 253, 244, 0.82);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.nav-parent-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.nav-parent-left i {
  width: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
}

.nav-parent-left span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.nav-parent:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  transform: translateX(3px);
}

.nav-group.is-open > .nav-parent {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-weight: 700;
}

.nav-group.is-open > .nav-parent .nav-parent-left i,
.nav-group.is-open > .nav-parent .nav-chevron {
  color: #dcfce7;
}

.nav-chevron {
  font-size: 11px;
  opacity: 0.65;
  transition: transform 0.2s ease;
}

.nav-group.is-open .nav-chevron {
  transform: rotate(180deg);
}

.nav-children {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0 2px 14px;
  margin: 8px 0 0 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-group.is-open .nav-children {
  display: flex;
}

.nav-sub {
  padding: 10px 14px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: rgba(240, 253, 244, 0.72);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.nav-sub:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  transform: translateX(3px);
}

.nav-sub.active {
  background: rgba(34, 197, 94, 0.95);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 12px 22px rgba(34, 197, 94, 0.24);
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px 2px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-logout {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(254, 202, 202, 0.28);
  border-radius: 14px;
  background: rgba(127, 29, 29, 0.22);
  color: #fee2e2;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-logout:hover {
  background: rgba(220, 38, 38, 0.9);
  color: #ffffff;
}

/*  Main  */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0) 24%),
    linear-gradient(180deg, #f8fff9 0%, var(--bg) 48%, #eefbf3 100%);
}

.top-header {
  position: sticky;
  top: 0;
  z-index: 90;
  min-height: 72px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(20, 83, 45, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  box-shadow: 0 10px 28px rgba(20, 83, 45, 0.08);
}

.top-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.header-export-btn {
  height: 40px;
  border: 1px solid var(--blue-border);
  border-radius: 12px;
  background: #f7fff9;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-export-btn:hover {
  background: #ecfdf5;
  border-color: var(--blue);
}

.header-export-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.header-fullscreen-btn {
  height: 40px;
  border: 1px solid #86efac;
  border-radius: 12px;
  background: #f0fdf4;
  color: #15803d;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-fullscreen-btn:hover {
  background: #dcfce7;
  border-color: #22c55e;
}

.notif-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(20, 83, 45, 0.08);
  border-radius: 14px;
  background: #ffffff;
  color: #4b5563;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.2s, color 0.2s;
}

.notif-btn:hover {
  border-color: var(--blue-border);
  color: var(--blue);
  background: #f7fff9;
}

.notif-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--surface);
}

.notif-wrap {
  position: relative;
}

.notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(380px, 86vw);
  max-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(20, 83, 45, 0.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 50px rgba(20, 83, 45, 0.16);
  z-index: 120;
}

.notif-panel-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
}

.notif-clear-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.notif-clear-btn:hover {
  border-color: var(--blue-border);
  color: var(--blue);
  background: #ecfdf5;
}

.notif-panel-list {
  max-height: 360px;
  overflow: auto;
}

.notif-item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
}

.notif-item:hover {
  background: #f7fff9;
}

.notif-item.unread {
  background: #f0fdf4;
}

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

.notif-item-message {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
}

.notif-item-time {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.notif-empty {
  padding: 20px 14px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.header-status-pill,
.header-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(20, 83, 45, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.header-pharmacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  min-width: 0;
  padding: 5px 14px 5px 7px;
  border-radius: 999px;
  border: 1px solid rgba(20, 83, 45, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.header-pharmacy-avatar {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(22, 163, 74, 0.12);
  color: var(--pharmacy-accent);
  flex-shrink: 0;
}

.header-pharmacy-avatar .profile-badge-fallback {
  font-size: 14px;
}

.header-pharmacy-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.header-pharmacy-text span {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.2;
}

.header-pharmacy-text strong {
  font-size: 13px;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.14);
}

.header-user-pill span {
  color: #6b7280;
}

.header-user-pill strong,
.header-status-pill strong {
  color: var(--text);
  font-weight: 700;
}

.header-clock {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  min-width: 94px;
  text-align: center;
  padding: 0 14px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(20, 83, 45, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.content-body {
  padding: 32px 34px 56px;
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  overflow-x: hidden;
}

.page-title-section {
  margin-bottom: 28px;
}

.page-title-section h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.today-date {
  margin-top: 10px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(20, 83, 45, 0.08);
}

.fk-page-intro {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 720px;
}

.fk-page-intro a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.fk-page-intro a:hover {
  text-decoration: underline;
}

.fk-bullets {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
}

.fk-bullets li {
  margin-bottom: 8px;
}

.panel a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.panel a:hover {
  text-decoration: underline;
}

/*  Panels & tables  */
.panel {
  background: var(--surface);
  border: 1px solid rgba(20, 83, 45, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 26px;
  margin-bottom: 26px;
}

.panel-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.panel-hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.7;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.18s, box-shadow 0.18s;
}

.btn-blue-outline {
  background: rgba(240, 253, 244, 0.85);
  border-color: var(--blue-border);
  color: var(--blue);
}

.btn-blue-outline:hover {
  background: #ecfdf5;
  transform: translateY(-1px);
}

.btn-blue {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.18);
}

.btn-blue:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.btn-green {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.2);
}

.btn-green:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-1px);
}

.btn-soft {
  background: #f8faf9;
  color: #374151;
  border-color: #d7e5da;
}

.btn-soft:hover {
  background: #eef8f0;
  border-color: #bbf7d0;
  transform: translateY(-1px);
}

.btn-red-outline {
  background: var(--red-soft);
  border-color: var(--red-border);
  color: var(--red);
}

.btn-red-outline:hover {
  background: #fee2e2;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.data-table-wrap {
  overflow-x: auto;
  margin-top: 10px;
  border: 1px solid rgba(20, 83, 45, 0.08);
  border-radius: 16px;
  background: #ffffff;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 2px solid var(--line);
  color: #4b5563;
  font-weight: 700;
  white-space: nowrap;
  background: #f8faf9;
}

.data-table td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background: #f0fdf4;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge-aman {
  background: var(--green-soft);
  color: var(--green-text);
}

.badge-rendah {
  background: #fff7ed;
  color: #c2410c;
}

.badge-habis {
  background: var(--red-soft);
  color: #b91c1c;
}

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

/*  Form grid  */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 20px;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: #fcfffd;
  color: var(--text);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

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

.form-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-settings-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.profile-preview-card {
  border: 1px solid rgba(20, 83, 45, 0.1);
  border-radius: 20px;
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.14), rgba(34, 197, 94, 0) 42%),
    linear-gradient(180deg, #ffffff 0%, #f8fffa 100%);
  box-shadow: var(--shadow-sm);
}

.profile-preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(20, 83, 45, 0.08);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-text);
  margin-bottom: 14px;
}

.profile-preview-badge {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(22, 163, 74, 0.1);
  color: var(--pharmacy-accent);
  margin-bottom: 16px;
}

.profile-preview-badge .profile-badge-fallback {
  font-size: 34px;
}

.profile-preview-card h3 {
  font-size: 22px;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 10px;
}

.profile-preview-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 10px;
}

.profile-preview-contact {
  font-size: 14px;
  font-weight: 700;
  color: var(--green-text);
}

.profile-settings-form {
  border: 1px solid rgba(20, 83, 45, 0.08);
  border-radius: 20px;
  padding: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.profile-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.profile-upload-row input[type='file'] {
  padding: 8px 0;
  background: transparent;
  border: none;
}

.profile-upload-help {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.profile-save-note {
  min-height: 20px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

.checkbox-cell {
  width: 44px;
}

.zf-lite-modal {
  position: fixed;
  inset: 0;
  z-index: 240;
  background: rgba(15, 23, 42, 0.48);
  display: grid;
  place-items: center;
  padding: 18px;
}

.zf-lite-dialog {
  width: min(760px, calc(100vw - 20px));
  max-height: calc(100vh - 20px);
  background: #fff;
  border: 1px solid rgba(20, 83, 45, 0.12);
  border-radius: 16px;
  box-shadow: 0 28px 60px rgba(20, 83, 45, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.zf-lite-dialog.is-wide {
  width: min(980px, calc(100vw - 20px));
}

.zf-lite-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(20, 83, 45, 0.08);
  background: #f7fff9;
}

.zf-lite-head h3 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.zf-lite-head p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.zf-lite-close {
  border: 1px solid #d7e5da;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.zf-lite-body {
  padding: 18px;
  overflow: auto;
}

.wa-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wa-info-card {
  border: 1px solid rgba(22, 163, 74, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fff9 100%);
}

.wa-info-card span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wa-info-card strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  color: #0f172a;
}

.wa-info-card small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.55;
  color: #64748b;
}

.wa-preview-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(22, 163, 74, 0.12);
  background: #f7fff9;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  color: #0f172a;
}

.wa-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wa-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-size: 12px;
  font-weight: 700;
}

.wa-empty-copy {
  font-size: 13px;
  color: #64748b;
}

.wa-links-wrap {
  margin-top: 16px;
}

.wa-table-preview {
  max-width: 360px;
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.55;
  color: #475569;
}

.wa-sale-meta {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.wa-sale-meta div {
  border: 1px solid rgba(20, 83, 45, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}

.wa-sale-meta span {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
}

.wa-sale-meta strong {
  font-size: 15px;
  color: #0f172a;
}

@media (max-width: 768px) {
  .wa-info-grid,
  .wa-sale-meta {
    grid-template-columns: 1fr;
  }

  .zf-lite-modal {
    padding: 12px;
  }

  .zf-lite-head,
  .zf-lite-body {
    padding: 14px;
  }
}

/*  Dashboard stats / charts  */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background: linear-gradient(145deg, #ffffff 0%, #f7fff9 100%);
  border: 1px solid rgba(22, 163, 74, 0.12);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 4px solid var(--blue);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(22, 163, 74, 0.14);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.stat-icon.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.stat-icon.green {
  background: var(--green-soft);
  color: var(--green-text);
}

.stat-icon.red {
  background: var(--red-soft);
  color: var(--red);
}

.stat-icon.gray {
  background: #f1f5f9;
  color: var(--muted);
}

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-top: 4px;
}

.charts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.chart-card {
  background: linear-gradient(180deg, #ffffff, #f7fff9);
  border: 1px solid rgba(22, 163, 74, 0.12);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.chart-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.chart-card canvas {
  display: block;
  width: 100% !important;
  height: 260px !important;
}

.placeholder-block {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  background: #f7fff9;
}

.scroll-top-btn {
  position: fixed;
  bottom: max(28px, env(safe-area-inset-bottom, 0px));
  right: max(28px, env(safe-area-inset-right, 0px));
  width: 48px;
  height: 48px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  display: none;
  place-items: center;
  box-shadow: var(--shadow);
  z-index: 200;
  transition: background 0.2s, transform 0.15s;
}

.scroll-top-btn:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

@media (max-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .charts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-w);
  }
  .main-content {
    margin-left: 0;
  }
  .profile-settings-layout {
    grid-template-columns: 1fr;
  }
}



/* Restored global/mobile utility + login + procurement tabs */
@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .content-body {
    padding: 20px 16px 40px;
  }
  .top-header {
    min-height: 64px;
    padding: 12px 16px;
  }
  .header-user-pill {
    display: none;
  }
  .header-pharmacy-pill {
    max-width: 180px;
    padding-right: 10px;
  }
  .header-pharmacy-text span {
    display: none;
  }
  .header-export-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    font-size: 0;
    gap: 0;
  }
  .header-export-btn i {
    font-size: 14px;
  }
  .header-fullscreen-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    font-size: 0;
    gap: 0;
  }
  .header-fullscreen-btn i {
    font-size: 14px;
  }
}

.zf-hidden {
  display: none !important;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 480px);
  background: var(--surface);
}

@media (max-width: 900px) {
  .login-screen {
    grid-template-columns: 1fr;
  }
}

.login-firebase-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}

.login-firebase-pill.is-ok {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: var(--green-text);
}

.login-firebase-pill.is-warn {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}

.login-firebase-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  flex-shrink: 0;
  animation: fk-pulse 1.4s ease-in-out infinite;
}

.login-firebase-dot.is-ok {
  background: var(--green);
  animation: none;
}

.login-firebase-dot.is-warn {
  background: #f97316;
  animation: none;
}

@keyframes fk-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.login-brand {
  background: linear-gradient(155deg, #06b6d4 0%, var(--teal-dark) 38%, #059669 72%, #047857 100%);
  color: #ecfdf5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.login-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.22) 0, rgba(255, 255, 255, 0) 50%),
    radial-gradient(circle at 80% 82%, rgba(255, 255, 255, 0.12) 0, rgba(255, 255, 255, 0) 42%);
}

.login-brand-inner {
  position: relative;
  z-index: 1;
  max-width: 420px;
}

.login-logo-mark {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: grid;
  place-items: center;
  font-size: 28px;
  margin-bottom: 18px;
}

.login-logo-text {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}

.login-logo-plus {
  color: #d9f99d;
}

.login-brand-tagline {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(236, 253, 245, 0.95);
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  background: linear-gradient(180deg, #f8fff9, #eefbf3);
}

.login-panel-inner {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid rgba(22, 163, 74, 0.16);
  border-radius: 16px;
  box-shadow: 0 22px 46px rgba(20, 83, 45, 0.14);
  padding: 22px;
}

.login-role-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.login-tab {
  border: 1px solid #d7e5da;
  background: #f8fffa;
  color: #475569;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.login-tab:hover {
  border-color: #86efac;
  color: #166534;
}

.login-tab.active {
  background: #dcfce7;
  border-color: #4ade80;
  color: #166534;
}

.login-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #0f172a;
}

.login-sub {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 16px;
}

.login-section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.login-field input {
  width: 100%;
  height: 44px;
  border: 1px solid #d7e5da;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  font-family: inherit;
}

.login-field input:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.16);
}

.login-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.login-link-muted {
  color: #16a34a;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.login-link-muted:hover {
  text-decoration: underline;
}

.login-error {
  font-size: 13px;
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 8px 10px;
}

.login-submit {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.2s, transform 0.1s;
}

.login-submit:hover {
  filter: brightness(1.06);
}

.login-submit:active {
  transform: translateY(1px);
}

.login-footer {
  margin-top: 14px;
  font-size: 13px;
  text-align: center;
  color: #64748b;
}

.login-footer a {
  color: #16a34a;
  font-weight: 700;
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

.login-demo {
  margin-top: 20px;
  padding: 12px 14px;
  background: var(--blue-soft);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--blue-dark);
  text-align: center;
  line-height: 1.5;
}

.login-screen {
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 440px);
  align-items: start;
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.12), transparent 32%),
    linear-gradient(180deg, #f5fffb 0%, #eef7ff 42%, #f8fafc 100%);
}

.login-screen [data-reveal] {
  opacity: 0;
  transform: translateY(34px) scale(0.98);
  transition: opacity 0.78s cubic-bezier(0.22, 1, 0.36, 1), transform 0.78s cubic-bezier(0.22, 1, 0.36, 1);
}

.login-screen [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.login-brand {
  min-height: 100vh;
  padding: 56px 52px 44px;
  align-items: stretch;
  justify-content: stretch;
}

.login-brand::after {
  content: '';
  position: absolute;
  inset: 22px;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.login-brand-inner {
  width: min(100%, 1040px);
  max-width: none;
  display: grid;
  grid-template-columns: minmax(320px, 1.05fr) minmax(280px, 0.95fr);
  gap: 28px;
  align-items: center;
}

.login-brand-copy {
  position: relative;
  z-index: 1;
  max-width: 580px;
}

.login-brand-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ecfdf5;
}

.login-logo-mark {
  margin-bottom: 20px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
}

.login-logo-text {
  font-size: clamp(42px, 4vw, 64px);
  letter-spacing: -0.03em;
}

.login-logo-plus {
  display: inline-flex;
  margin-left: 8px;
  font-size: 0.42em;
  padding: 9px 12px;
  border-radius: 999px;
  color: #052e16;
  background: linear-gradient(135deg, #d9f99d, #bbf7d0);
  transform: translateY(-10px);
}

.login-brand-heading {
  margin: 18px 0 16px;
  font-size: clamp(36px, 4.4vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.login-brand-tagline {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.85;
  color: rgba(236, 253, 245, 0.94);
}

.login-brand-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.login-cta-primary,
.login-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.login-cta-primary {
  color: #052e16;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  box-shadow: 0 14px 28px rgba(21, 128, 61, 0.24);
}

.login-cta-secondary {
  color: #ecfeff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(10px);
}

.login-cta-primary:hover,
.login-cta-secondary:hover {
  transform: translateY(-1px);
}

.login-brand-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.login-brand-points span {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 700;
  color: #ecfdf5;
}

.login-brand-visual {
  position: relative;
  min-height: 620px;
  z-index: 1;
}

.login-brand-visual [data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

.login-floating-card,
.login-showcase-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 28px 54px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(14px);
  overflow: hidden;
  animation: login-card-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards, login-card-float 6.2s ease-in-out calc(var(--card-delay, 0s) + 1.15s) infinite;
}

.login-floating-card::after,
.login-showcase-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.92) 47%, transparent 73%);
  transform: translateX(-140%);
  animation: login-card-shimmer 1.25s ease-out calc(var(--card-delay, 0s) + 0.08s) forwards;
  pointer-events: none;
}

.login-floating-card {
  width: 220px;
  padding: 22px 20px 18px;
}

.login-floating-card strong,
.login-showcase-card strong {
  display: block;
  margin: 14px 0 8px;
  font-size: 23px;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.login-floating-card p,
.login-showcase-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: #64748b;
}

.login-floating-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

.login-floating-icon.is-blue {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.login-floating-icon.is-green {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.login-floating-icon.is-violet {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
}

.login-floating-icon.is-teal {
  background: linear-gradient(135deg, #16a34a, #14532d);
}

.login-card-sales {
  top: 22px;
  left: 0;
}

.login-card-invoice {
  top: 0;
  right: 8px;
}

.login-card-report {
  left: 28px;
  bottom: 56px;
}

.login-card-stock {
  right: 0;
  bottom: 18px;
}

.login-showcase-card {
  top: 168px;
  left: 52px;
  right: 46px;
  padding: 30px 28px;
}

.login-showcase-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.login-showcase-logo strong {
  margin: 0 0 4px;
  font-size: 30px;
}

.login-showcase-logo span {
  display: block;
  color: #64748b;
  font-size: 14px;
}

.login-showcase-mark {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 18px 36px rgba(22, 163, 74, 0.22);
}

.login-showcase-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.login-showcase-stats div {
  border-radius: 18px;
  padding: 14px 12px;
  background: linear-gradient(180deg, #f8fffa, #eefbf3);
  border: 1px solid rgba(22, 163, 74, 0.12);
}

.login-showcase-stats strong {
  margin: 0 0 4px;
  font-size: 18px;
}

.login-showcase-stats span {
  display: block;
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
}

.login-panel {
  padding: 32px 28px 24px;
  background: linear-gradient(180deg, rgba(248, 255, 249, 0.94), rgba(240, 253, 244, 0.84));
}

.login-panel-inner {
  border-radius: 24px;
  border: 1px solid rgba(22, 163, 74, 0.14);
  box-shadow: 0 26px 62px rgba(20, 83, 45, 0.12);
}

.login-promo-strip {
  grid-column: 1 / -1;
  padding: 18px 40px 56px;
}

.login-promo-shell {
  max-width: 1360px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.login-promo-head {
  max-width: 780px;
}

.login-promo-head h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 3.5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.login-promo-head p {
  margin: 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.8;
}

.login-promo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.login-promo-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(22, 163, 74, 0.12);
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 18px 36px rgba(20, 83, 45, 0.08);
}

.login-promo-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-size: 24px;
  margin-bottom: 18px;
}

.login-promo-card h3 {
  margin: 0 0 8px;
  font-size: 22px;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.login-promo-card p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.8;
}

.login-promo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px;
  border-radius: 30px;
  color: #ecfdf5;
  background: linear-gradient(135deg, #14532d 0%, #16a34a 55%, #22c55e 100%);
  box-shadow: 0 28px 56px rgba(20, 83, 45, 0.2);
}

.login-promo-banner strong {
  display: block;
  font-size: 28px;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.login-promo-banner p {
  margin: 8px 0 0;
  max-width: 720px;
  color: rgba(236, 253, 245, 0.9);
  line-height: 1.75;
}

@keyframes login-card-in {
  from {
    opacity: 0;
    transform: translateY(38px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes login-card-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes login-card-shimmer {
  0% {
    transform: translateX(-140%);
    opacity: 0.95;
  }
  70% {
    transform: translateX(130%);
    opacity: 0.85;
  }
  100% {
    transform: translateX(160%);
    opacity: 0;
  }
}

@media (min-width: 901px) {
  .login-panel {
    position: sticky;
    top: 0;
    min-height: 100vh;
    align-self: start;
  }

  .login-panel-inner {
    margin-top: 8vh;
  }
}

@media (max-width: 1180px) {
  .login-brand {
    padding: 42px 30px 34px;
  }

  .login-brand-inner {
    grid-template-columns: 1fr;
  }

  .login-brand-visual {
    max-width: 720px;
    width: 100%;
    margin: 8px auto 0;
  }
}

@media (max-width: 900px) {
  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-brand {
    min-height: auto;
    padding: 34px 18px 26px;
  }

  .login-brand::after {
    inset: 14px;
    border-radius: 26px;
  }

  .login-brand-heading {
    font-size: clamp(30px, 8vw, 44px);
  }

  .login-brand-tagline {
    font-size: 15px;
    line-height: 1.75;
  }

  .login-panel {
    min-height: auto;
    padding: 16px 16px 10px;
  }

  .login-promo-strip {
    padding: 12px 16px 38px;
  }

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

  .login-promo-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .login-brand-visual {
    min-height: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .login-floating-card,
  .login-showcase-card {
    position: relative;
    width: auto;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
  }

  .login-showcase-card {
    grid-column: 1 / -1;
    padding: 24px 20px;
  }

  .login-showcase-stats {
    grid-template-columns: 1fr;
  }

  .login-brand-actions,
  .login-cta-primary,
  .login-cta-secondary {
    width: 100%;
  }

  .login-logo-plus {
    transform: translateY(-4px);
  }

  .login-promo-head h2 {
    font-size: 30px;
  }

  .login-promo-banner strong {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-screen [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .login-floating-card,
  .login-showcase-card,
  .login-firebase-dot {
    animation: none;
  }

  .login-floating-card::after,
  .login-showcase-card::after {
    display: none;
  }
}
.landing-topbar {
  grid-column: 1 / -1;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 34px;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(203, 213, 225, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.landing-topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #0f172a;
  text-decoration: none;
}

.landing-topbar-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.16);
}

.landing-topbar-brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.landing-topbar-brand small {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.landing-topbar-nav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.landing-topbar-nav a {
  color: #475569;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.landing-topbar-nav a:hover {
  color: #0f766e;
}

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

.landing-topbar-btn {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.landing-topbar-btn:hover {
  transform: translateY(-1px);
}

.landing-topbar-btn.is-ghost {
  color: #0f766e;
  background: #ffffff;
  border-color: rgba(34, 197, 94, 0.35);
}

.landing-topbar-btn.is-solid {
  color: #ffffff;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 12px 26px rgba(22, 163, 74, 0.22);
}

.apotek-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  margin-bottom: 16px;
  border: 1px solid #dceef5;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f5fbff);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.apotek-topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.apotek-topbar-logo {
  width: 46px;
  height: 46px;
  border-radius: 16px;
}

.apotek-topbar-brand strong {
  display: block;
  font-size: 18px;
  color: #0f172a;
}

.apotek-topbar-brand small {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}

.apotek-topbar-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.apotek-topbar-cta {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(34, 197, 94, 0.38);
  background: #ffffff;
  color: #15803d;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.apotek-topbar-user-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 8px 10px 8px 8px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.38);
  background: linear-gradient(180deg, #ffffff, #f0fdf4);
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.08);
}

.apotek-topbar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.apotek-topbar-user-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.apotek-topbar-user-meta strong {
  color: #0f172a;
  font-size: 14px;
  line-height: 1.1;
}

.apotek-topbar-user-meta small {
  color: #64748b;
  font-size: 11px;
  line-height: 1.1;
}

.apotek-topbar-gear {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #15803d;
  background: rgba(34, 197, 94, 0.12);
  cursor: pointer;
}

.apotek-picker-top {
  align-items: flex-end;
}

.apotek-picker-user {
  display: none;
}

.apotek-picker-actions {
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .landing-topbar {
    padding: 14px 18px;
    flex-wrap: wrap;
  }

  .landing-topbar-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .apotek-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .apotek-topbar-right {
    justify-content: space-between;
  }
}

@media (max-width: 640px) {
  .landing-topbar {
    gap: 12px;
    padding: 12px 14px;
  }

  .landing-topbar-brand {
    width: 100%;
  }

  .landing-topbar-actions {
    width: 100%;
  }

  .landing-topbar-btn {
    flex: 1;
  }

  .apotek-topbar-right {
    flex-direction: column;
    align-items: stretch;
  }

  .apotek-topbar-user-card,
  .apotek-topbar-cta {
    width: 100%;
  }
}
.login-screen {
  display: block;
}

button.login-cta-primary,
button.login-cta-secondary {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.login-brand {
  min-height: calc(100vh - 86px);
}

.login-panel {
  position: fixed;
  inset: 0;
  z-index: 42;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(9px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.login-panel-inner {
  position: relative;
  width: min(100%, 460px);
  max-width: 460px;
  max-height: calc(100vh - 44px);
  overflow: auto;
  margin-top: 0 !important;
  transform: translateY(18px) scale(0.98);
  transition: transform 0.24s ease;
}

.login-screen.is-auth-open .login-panel {
  opacity: 1;
  pointer-events: auto;
}

.login-screen.is-auth-open .login-panel-inner {
  transform: translateY(0) scale(1);
}

.login-panel-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eff6ff;
  color: #1d4ed8;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12);
}

.login-panel-close:hover {
  background: #dbeafe;
}

@media (min-width: 901px) {
  .login-panel {
    min-height: 0;
    align-self: auto;
  }

  .login-panel-inner {
    margin-top: 0 !important;
  }
}

@media (max-width: 900px) {
  .login-brand {
    min-height: auto;
  }

  .login-panel {
    padding: 14px;
  }
}

.apotek-picker-screen {
  min-height: 100vh;
  padding: 28px;
  background: linear-gradient(180deg, #f8fafc, #e2e8f0);
}

.apotek-picker-shell {
  max-width: 1120px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
  padding: 22px;
}

.apotek-picker-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.apotek-picker-kicker {
  margin: 0 0 4px;
  color: #10b981;
  font-weight: 700;
  font-size: 13px;
}

.apotek-picker-top h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  color: #0f172a;
}

.apotek-picker-sub {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 15px;
}

.apotek-picker-user {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
}

.apotek-picker-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.apotek-create-form {
  border: 1px solid #dbeafe;
  background: #f8fbff;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}

.apotek-create-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.apotek-create-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.apotek-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.apotek-card {
  border: 1px solid #dbe4ef;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.apotek-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.apotek-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #22c55e, #0891b2);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.apotek-card-name {
  margin: 0;
  font-size: 17px;
  color: #0f172a;
}

.apotek-card-owner {
  margin: 2px 0 0;
  font-size: 13px;
  color: #64748b;
}

.apotek-card-meta {
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
  min-height: 32px;
}

.apotek-card .btn {
  margin-top: auto;
}

.apotek-picker-empty {
  grid-column: 1 / -1;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 18px;
  color: #64748b;
  text-align: center;
  background: #f8fafc;
}

@media (max-width: 980px) {
  .apotek-picker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .apotek-picker-screen {
    padding: 12px;
  }

  .apotek-picker-shell {
    border-radius: 12px;
    padding: 14px;
  }

  .apotek-picker-top {
    flex-direction: column;
  }

  .apotek-picker-top h1 {
    font-size: 24px;
  }

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

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

  .apotek-picker-actions {
    width: 100%;
  }

  .apotek-picker-actions .btn {
    flex: 1;
  }
}
.zf-proc-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.zf-proc-tabs .btn {
  flex: 1;
  min-width: 112px;
}

@media (max-width: 900px) {`r`n  .login-brand {`r`n    min-height: auto;`r`n    padding: 34px 18px 26px;`r`n  }`r`n}

/* Persediaan final scoped block */
.inv-stock-panel {
  padding: 0;
  overflow: hidden;
}

.inv-topline {
  padding: 18px 22px 10px;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.inv-topline span {
  color: #64748b;
  margin: 0 6px;
}

.inv-tabbar {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #e2e8f0;
  padding: 0 14px;
  background: #fff;
}

.inv-tab {
  border: none;
  background: transparent;
  color: #64748b;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 10px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.inv-tab.is-active {
  color: var(--active-green-dark);
  border-bottom-color: var(--active-green);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.02));
}

.inv-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px 10px;
}

.inv-title-row .panel-title {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
}

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

.inv-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 18px 12px;
  align-items: flex-end;
}

.inv-search-box {
  flex: 1 1 340px;
  min-width: 280px;
}

.inv-condition-box {
  flex: 0 0 220px;
}

.inv-search-box label,
.inv-condition-box label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}

.inv-search-input {
  position: relative;
}

.inv-search-input input,
.inv-condition-box select {
  width: 100%;
  height: 42px;
  border: 1px solid #dbe7de;
  border-radius: 8px;
  padding: 0 42px 0 12px;
  font-size: 14px;
  color: #0f172a;
  background: #fcfffd;
}

.inv-condition-box select {
  padding-right: 12px;
}

.btn-search-inline {
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  color: #475569;
  cursor: pointer;
}

.inv-filter-btn,
.inv-upload-btn,
.inv-template-btn {
  height: 42px;
  margin: 0;
}

.inv-upload-btn {
  cursor: pointer;
}

.inv-table-wrap {
  width: calc(100% - 36px);
  max-width: 1060px;
  margin: 0 auto 14px;
  border: 1px solid #e6f2e8;
  border-radius: 14px;
  overflow-x: auto;
}

.inv-table {
  min-width: 1240px;
}

.inv-table th {
  font-size: 13px;
  color: #334155;
  padding-top: 12px;
  padding-bottom: 12px;
}

.inv-table td {
  font-size: 13px;
  color: #0f172a;
  padding-top: 10px;
  padding-bottom: 10px;
}

.inv-opsi-cell {
  white-space: nowrap;
  min-width: 240px;
}

.inv-empty-cell {
  padding: 44px 16px !important;
}

.inv-empty-state {
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  color: #64748b;
}

.inv-empty-state i {
  font-size: 34px;
  color: #94a3b8;
}

.inv-cond-chip {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.inv-cond-normal {
  background: #ecfdf5;
  color: #047857;
}

.inv-cond-warning {
  background: #fff7ed;
  color: #b45309;
}

.inv-cond-expired {
  background: #fee2e2;
  color: #b91c1c;
}

.inv-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 210;
}

.inv-drawer {
  position: fixed;
  top: 64px;
  right: 20px;
  width: min(470px, calc(100vw - 24px));
  max-height: calc(100vh - 84px);
  background: #fff;
  border: 1px solid rgba(22, 163, 74, 0.14);
  border-radius: 16px;
  box-shadow: 0 24px 50px rgba(20, 83, 45, 0.18);
  z-index: 220;
  display: flex;
  flex-direction: column;
}

.inv-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #e6f2e8;
}

.inv-drawer-head h3 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
}

.inv-close-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #d7e5da;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  color: #334155;
  font-weight: 700;
}

.inv-drawer-body {
  padding: 12px 14px;
  overflow: auto;
}

.inv-mini-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 10px 0 12px;
  border-bottom: 1px solid #e6f2e8;
}

.inv-mini-tab {
  border: 1px solid #dbe7de;
  border-bottom: none;
  background: #f8fffa;
  color: #64748b;
  padding: 10px;
  cursor: pointer;
  font-weight: 700;
}

.inv-mini-tab.is-active {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #ffffff;
  border-color: #16a34a;
}

.inv-sold-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  flex-wrap: wrap;
}

.inv-sold-row span {
  font-weight: 600;
  color: #334155;
}

.inv-sold-row label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #475569;
}

.inv-type-row {
  margin-bottom: 12px;
}

.inv-type-row > span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.inv-type-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.inv-type-pill {
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 6px 8px;
  background: #ecfdf5;
  color: #16a34a;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.inv-type-pill.is-active {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  border-color: #15803d;
}

.inv-drawer-actions {
  margin: 0;
  padding: 12px 14px 14px;
  border-top: 1px solid #e2e8f0;
  justify-content: flex-end;
}

.stock-card-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 230;
  display: grid;
  place-items: center;
  padding: 18px;
}

.stock-card-dialog {
  width: min(1320px, calc(100vw - 22px));
  max-height: calc(100vh - 22px);
  background: #fff;
  border: 1px solid rgba(22, 163, 74, 0.14);
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(20, 83, 45, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.stock-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #e6f2e8;
}

.stock-card-head h3 {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
}

.stock-card-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(210px, 260px) auto;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  align-items: end;
}

.stock-card-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
}

.stock-card-field input,
.stock-card-field select {
  width: 100%;
  height: 40px;
  border: 1px solid #dbe7de;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  color: #0f172a;
  background: #fff;
}

.stock-card-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
}

.stock-card-table-wrap {
  padding: 0 14px 12px;
  overflow: auto;
}

.stock-card-table {
  min-width: 1180px;
}

.stock-card-table th {
  font-size: 13px;
  color: #334155;
}

.stock-card-table td {
  font-size: 13px;
  color: #0f172a;
}

.stock-card-ops {
  white-space: nowrap;
  width: 58px;
}

.stock-card-eye {
  width: 30px;
  height: 28px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  border-radius: 8px;
  color: #166534;
  cursor: default;
}

.stock-card-foot {
  padding: 8px 14px 12px;
  border-top: 1px solid #e6f2e8;
  font-size: 12px;
  color: #64748b;
}

@media (max-width: 900px) {
  .stock-card-head h3 {
    font-size: 24px;
  }

  .stock-card-filters {
    grid-template-columns: 1fr;
  }

  .stock-card-actions {
    justify-content: stretch;
  }

  .stock-card-actions .btn {
    width: 100%;
  }
}

@media (max-width: 1100px) {
  .inv-condition-box {
    flex: 1 1 220px;
  }

  .inv-filter-btn,
  .inv-upload-btn,
  .inv-template-btn {
    flex: 1 1 150px;
  }
}




/* Kasir - Farmaklik-like scoped */
.kasir-layout {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.kasir-left,
.kasir-right {
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
}

.kasir-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 90px 52px auto;
  gap: 10px;
  padding: 16px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  align-items: center;
}

.kasir-search-wrap {
  position: relative;
}

.kasir-search-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-size: 14px;
}

.kasir-search-wrap input {
  width: 100%;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: #fff;
  padding: 0 14px 0 40px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

.kasir-qty {
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 0 10px;
  font-size: 15px;
  font-weight: 700;
}

.kasir-add-btn {
  height: 48px;
  min-width: 52px;
  padding: 0;
  border-radius: 14px;
  background: #14532d;
  border-color: #14532d;
  box-shadow: none;
}

.kasir-draft-btn {
  height: 48px;
  border-radius: 14px;
  border: 1px solid #fcd34d;
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
  padding-inline: 14px;
}

.kasir-table-wrap {
  margin: 0;
  border-top: 1px solid rgba(20, 83, 45, 0.08);
  max-height: 560px;
  overflow: auto;
}

.kasir-table {
  min-width: 760px;
}

.kasir-table th {
  font-size: 14px;
  color: #374151;
  font-weight: 700;
  background: #f8faf9;
}

.kasir-table td {
  font-size: 14px;
}

.kasir-clear-btn,
.kasir-row-del {
  width: 28px;
  height: 28px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff5f5;
  color: #dc2626;
  cursor: pointer;
}

.kasir-empty {
  text-align: center;
  color: var(--muted);
  padding: 28px 12px !important;
}

.kasir-right {
  padding: 18px;
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 110px);
  overflow: auto;
  overscroll-behavior: contain;
}

.kasir-side-title {
  margin: 6px 0 12px;
  font-size: 17px;
  font-weight: 800;
  color: #14532d;
}

.kasir-field {
  margin-bottom: 12px;
}

.kasir-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 6px;
}

.kasir-field input,
.kasir-field select,
.kasir-field textarea {
  width: 100%;
  height: 44px;
  border: 1px solid #dbe7de;
  border-radius: 14px;
  padding: 0 12px;
  font-size: 14px;
  font-family: inherit;
  background: #fcfffd;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.kasir-field input:focus,
.kasir-field select:focus,
.kasir-field textarea:focus {
  outline: none;
  border-color: #16a34a;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.kasir-field textarea {
  height: auto;
  min-height: 78px;
  padding-block: 10px;
  resize: vertical;
}

.kasir-summary {
  border: 1px solid #bbf7d0;
  border-radius: 18px;
  padding: 16px;
  margin-top: 12px;
  background: linear-gradient(180deg, #f8fff9 0%, #f0fdf4 100%);
}

.kasir-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 15px;
  color: #334155;
}

.kasir-summary > div strong {
  color: #0f172a;
}

.kasir-total-row {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px dashed #86efac;
}

.kasir-total-row span {
  color: #16a34a !important;
  font-size: 18px;
  font-weight: 700;
}

.kasir-total-row strong {
  color: #16a34a !important;
  font-size: 40px;
  font-weight: 800;
}

.kasir-pay-btn {
  width: 100%;
  margin-top: 14px;
  height: 58px;
  font-size: 24px;
  font-weight: 800;
  border-radius: 16px;
  position: sticky;
  bottom: 0;
  z-index: 2;
  box-shadow: 0 18px 30px rgba(22, 163, 74, 0.2);
}

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

  .kasir-toolbar {
    grid-template-columns: 1fr 90px 52px;
  }

  .kasir-draft-btn {
    grid-column: 1 / -1;
  }

  .kasir-right {
    position: static;
    max-height: none;
    overflow: visible;
  }

  .kasir-pay-btn {
    position: static;
  }
}

@media (max-width: 640px) {
  .kasir-toolbar {
    grid-template-columns: 1fr;
  }

  .kasir-qty,
  .kasir-add-btn,
  .kasir-draft-btn {
    width: 100%;
  }
}















/* Auth domain + entry loader + lively dashboard */
.login-field-help {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #0f766e;
}

.login-field-help strong {
  color: #047857;
}

.entry-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(20, 83, 45, 0.24);
  backdrop-filter: blur(12px);
  z-index: 320;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.entry-loader.is-open {
  opacity: 1;
  pointer-events: auto;
}

.entry-loader-card {
  width: min(100%, 460px);
  position: relative;
  overflow: hidden;
  padding: 30px 28px;
  border-radius: 28px;
  border: 1px solid rgba(22, 163, 74, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 244, 0.96));
  box-shadow: 0 28px 70px rgba(20, 83, 45, 0.2);
}

.entry-loader-card::before {
  content: '';
  position: absolute;
  inset: -20% auto auto -12%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.24), rgba(34, 197, 94, 0));
}

.entry-loader-card::after {
  content: '';
  position: absolute;
  inset: auto -15% -22% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.16), rgba(22, 163, 74, 0));
}

.entry-loader-pill,
.dashboard-hero-kicker,
.dashboard-live-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.entry-loader-pill {
  padding: 8px 12px;
  border-radius: 999px;
  color: #14532d;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(22, 163, 74, 0.2);
  position: relative;
  z-index: 1;
}

.entry-loader-spinner {
  width: 64px;
  height: 64px;
  margin: 18px 0 16px;
  border-radius: 50%;
  border: 5px solid rgba(22, 163, 74, 0.12);
  border-top-color: #16a34a;
  border-right-color: #22c55e;
  animation: zf-entry-spin 0.85s linear infinite;
  position: relative;
  z-index: 1;
}

.entry-loader-card h3,
.entry-loader-card p,
.entry-loader-steps {
  position: relative;
  z-index: 1;
}

.entry-loader-card h3 {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}

.entry-loader-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #6b7280;
}

.entry-loader-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.entry-loader-step {
  min-height: 56px;
  padding: 12px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.05);
}

@keyframes zf-entry-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.content-body[data-page='dashboard'] {
  position: relative;
}

.content-body[data-page='dashboard']::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  height: 380px;
  z-index: -1;
  border-radius: 34px;
  background:
    radial-gradient(circle at 14% 10%, rgba(22, 163, 74, 0.16), rgba(22, 163, 74, 0) 38%),
    radial-gradient(circle at 86% 12%, rgba(34, 197, 94, 0.15), rgba(34, 197, 94, 0) 35%),
    linear-gradient(180deg, rgba(240, 253, 244, 0.95), rgba(248, 255, 249, 0));
  pointer-events: none;
}

.dashboard-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 24px;
  padding: 28px;
  margin-bottom: 26px;
  border-radius: 30px;
  border: 1px solid rgba(22, 163, 74, 0.16);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 253, 244, 0.96));
  box-shadow: 0 24px 50px rgba(20, 83, 45, 0.1);
  animation: zf-dashboard-rise 0.7s ease both;
}

.dashboard-hero::before {
  content: '';
  position: absolute;
  inset: auto auto -120px -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.18), rgba(34, 197, 94, 0));
}

.dashboard-hero::after {
  content: '';
  position: absolute;
  inset: -100px -120px auto auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.12), rgba(22, 163, 74, 0));
}

.dashboard-hero-copy,
.dashboard-hero-side {
  position: relative;
  z-index: 1;
}

.dashboard-hero-kicker {
  padding: 10px 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  color: #0f766e;
  background: rgba(236, 253, 245, 0.95);
  border: 1px solid rgba(34, 197, 94, 0.22);
}

.dashboard-hero h2 {
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 14px;
}

.dashboard-hero-copy > p:last-of-type {
  max-width: 680px;
  font-size: 15px;
  line-height: 1.8;
  color: #475569;
}

.dashboard-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.dashboard-hero-metric {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(22, 163, 74, 0.14);
  box-shadow: 0 16px 28px rgba(20, 83, 45, 0.08);
  animation: zf-dashboard-float 5.2s ease-in-out infinite;
}

.dashboard-hero-metric:nth-child(2) {
  animation-delay: 0.7s;
}

.dashboard-hero-metric:nth-child(3) {
  animation-delay: 1.35s;
}

.dashboard-hero-metric strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
}

.dashboard-hero-metric span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-live-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 24px;
  border-radius: 26px;
  color: #ecfeff;
  background: linear-gradient(160deg, #0f172a, #0f766e 68%, #14b8a6 100%);
  box-shadow: 0 28px 48px rgba(15, 23, 42, 0.22);
}

.dashboard-live-card::after {
  content: '';
  position: absolute;
  inset: auto -16% -32% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  animation: zf-dashboard-drift 9s linear infinite;
}

.dashboard-live-status {
  padding: 8px 12px;
  border-radius: 999px;
  color: #d1fae5;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.16);
  animation: fk-pulse 1.35s ease-in-out infinite;
}

.dashboard-live-card h3 {
  margin-top: 18px;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
}

.dashboard-live-card p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(236, 254, 255, 0.88);
}

.dashboard-live-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.dashboard-live-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-live-list span {
  font-size: 12px;
  font-weight: 700;
  color: rgba(236, 254, 255, 0.76);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dashboard-live-list strong {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.stats-grid .stat-card,
.charts-grid .chart-card {
  position: relative;
  overflow: hidden;
  animation: zf-dashboard-rise 0.6s ease both;
}

.stats-grid .stat-card {
  animation-delay: calc(var(--card-index, 0) * 70ms);
}

.stats-grid .stat-card::after,
.charts-grid .chart-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.58) 38%, transparent 68%);
  transform: translateX(-130%);
  animation: zf-dashboard-shimmer 7s ease-in-out infinite;
}

.stats-grid .stat-card::after {
  animation-delay: calc(var(--card-index, 0) * 0.45s);
}

.charts-grid .chart-card::after {
  animation-delay: 1.2s;
}

.stat-meta {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.chart-card {
  min-height: 340px;
}

.chart-card h3 {
  position: relative;
  padding-bottom: 12px;
}

.chart-card h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 58px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #16a34a);
}

@keyframes zf-dashboard-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes zf-dashboard-shimmer {
  0%,
  72%,
  100% {
    transform: translateX(-130%);
  }
  82% {
    transform: translateX(130%);
  }
}

@keyframes zf-dashboard-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes zf-dashboard-drift {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  to {
    transform: translate3d(-14px, -10px, 0) rotate(18deg);
  }
}

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

@media (max-width: 760px) {
  .entry-loader-card {
    padding: 24px 20px;
    border-radius: 24px;
  }

  .entry-loader-card h3 {
    font-size: 24px;
  }

  .entry-loader-steps {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    padding: 22px 18px;
    gap: 18px;
  }

  .dashboard-hero h2 {
    font-size: 27px;
  }

  .dashboard-hero-metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-live-card {
    padding: 20px;
  }
}

/* New Dashboard Components */
.quick-actions-section {
  margin-bottom: 32px;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.quick-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--blue-border);
}

.quick-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}

.quick-action-icon.green { background: var(--green); }
.quick-action-icon.blue { background: var(--blue); }
.quick-action-icon.violet { background: var(--accent); }

.quick-action-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.quick-action-content p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.dashboard-cards-section {
  margin-bottom: 32px;
}

.dashboard-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.dashboard-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.dashboard-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.card-icon.green { background: var(--green); }
.card-icon.blue { background: var(--blue); }
.card-icon.orange { background: #f97316; }
.card-icon.red { background: var(--red); }

.card-title h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.card-subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.card-content {
  text-align: center;
}

.card-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.card-meta {
  font-size: 14px;
  color: var(--muted);
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .quick-actions-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-cards-grid {
    grid-template-columns: 1fr;
  }
  
  .quick-action-btn {
    padding: 16px;
  }
  
  .dashboard-card {
    padding: 20px;
  }
  
  .card-value {
    font-size: 28px;
  }
}

/* Dashboard refresh */
.content-body[data-page='dashboard'] {
  position: relative;
}

.content-body[data-page='dashboard']::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 320px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 12% 14%, rgba(16, 185, 129, 0.16), rgba(16, 185, 129, 0) 34%),
    radial-gradient(circle at 88% 12%, rgba(5, 150, 105, 0.12), rgba(5, 150, 105, 0) 30%),
    linear-gradient(180deg, #f5fffb 0%, rgba(245, 255, 251, 0) 100%);
  pointer-events: none;
  z-index: -1;
}

.dashboard-shell {
  display: grid;
  gap: 24px;
}

.dashboard-surface {
  background: #ffffff;
  border: 1px solid rgba(20, 83, 45, 0.08);
  border-radius: 24px;
  box-shadow: 0 16px 36px rgba(20, 83, 45, 0.08);
}

.dashboard-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(220px, 0.8fr) minmax(260px, 0.9fr);
  gap: 20px;
  align-items: stretch;
}

.dashboard-brand-card,
.dashboard-user-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 26px;
}

.dashboard-brand-card {
  min-width: 0;
}

.dashboard-brand-mark,
.dashboard-action-icon,
.dashboard-card-icon,
.dashboard-user-avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.dashboard-brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  color: #ffffff;
  font-size: 26px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 16px 30px rgba(22, 163, 74, 0.24);
}

.dashboard-brand-copy {
  min-width: 0;
}

.dashboard-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #166534;
}

.dashboard-brand-copy h1,
.dashboard-section-head h2,
.dashboard-panel-head h2 {
  letter-spacing: -0.03em;
  color: #0f172a;
}

.dashboard-brand-copy h1 {
  margin-top: 10px;
  font-size: 30px;
  line-height: 1.1;
}

.dashboard-brand-copy p {
  margin-top: 10px;
  max-width: 640px;
  font-size: 14px;
  line-height: 1.75;
  color: #667085;
}

.dashboard-clock-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 24px;
  text-align: center;
}

.dashboard-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-status-pill.is-healthy {
  color: #14532d;
  background: #ecfdf5;
  border: 1px solid rgba(22, 163, 74, 0.18);
}

.dashboard-status-pill.is-warning {
  color: #b45309;
  background: #fffbeb;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.dashboard-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.75;
}

.dashboard-clock-card strong {
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.05em;
  color: #0f172a;
}

.dashboard-clock-card span[data-dashboard-date] {
  font-size: 14px;
  color: #64748b;
}

.dashboard-user-card {
  justify-content: flex-start;
}

.dashboard-user-avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: #14532d;
  font-size: 20px;
  font-weight: 800;
}

.dashboard-user-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.dashboard-user-copy strong {
  font-size: 18px;
  color: #0f172a;
}

.dashboard-user-copy span:last-child {
  font-size: 14px;
  color: #64748b;
  overflow-wrap: anywhere;
}

.dashboard-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.dashboard-summary-card {
  padding: 24px;
}

.dashboard-summary-card--primary {
  grid-column: span 2;
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0) 30%),
    linear-gradient(145deg, #ffffff 0%, #f3fff7 100%);
  border-color: rgba(22, 163, 74, 0.18);
}

.dashboard-card-topline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.dashboard-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-size: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.dashboard-card-icon--soft {
  background: #ecfdf5;
  color: #166534;
}

.dashboard-card-icon--soft.danger {
  background: #fff7ed;
  color: #ea580c;
}

.dashboard-card-label {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.dashboard-summary-value {
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: #0f172a;
}

.dashboard-summary-figure {
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.dashboard-summary-note,
.dashboard-summary-meta {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: #64748b;
}

.dashboard-summary-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.dashboard-summary-inline span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #f0fdf4;
  color: #14532d;
  font-size: 13px;
  font-weight: 600;
}

.dashboard-profit-positive {
  color: #15803d;
}

.dashboard-profit-negative {
  color: #b91c1c;
}

.dashboard-summary-figure.dashboard-profit-positive,
.dashboard-chart-kpi strong.dashboard-profit-positive,
.dashboard-table td.dashboard-profit-positive {
  color: #15803d;
}

.dashboard-summary-figure.dashboard-profit-negative,
.dashboard-chart-kpi strong.dashboard-profit-negative,
.dashboard-table td.dashboard-profit-negative {
  color: #b91c1c;
}

.dashboard-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 20px;
}

.dashboard-chart-panel,
.dashboard-health-panel {
  min-width: 0;
}

.dashboard-chart-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.dashboard-chart-kpi {
  padding: 16px;
  border-radius: 18px;
  background: #f8fffa;
  border: 1px solid #e6f2e8;
  display: grid;
  gap: 6px;
}

.dashboard-chart-kpi span,
.dashboard-health-card span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.dashboard-chart-kpi strong,
.dashboard-health-card strong {
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.dashboard-chart-kpi small,
.dashboard-health-card small {
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
}

.dashboard-chart-shell {
  position: relative;
  min-height: 300px;
  border-radius: 20px;
  border: 1px solid rgba(22, 163, 74, 0.14);
  background: linear-gradient(180deg, #fbfffc 0%, #ffffff 100%);
  overflow: hidden;
}

.dashboard-chart-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
  line-height: 1.8;
  background:
    radial-gradient(circle at 20% 18%, rgba(34, 197, 94, 0.09), rgba(34, 197, 94, 0) 30%),
    linear-gradient(180deg, #f6fff8 0%, rgba(246, 255, 248, 0.96) 100%);
}

.dashboard-chart-canvas {
  display: block;
  width: 100%;
  height: 300px !important;
  opacity: 1;
  transition: opacity 0.18s ease;
}

.dashboard-chart-shell.is-pending .dashboard-chart-canvas {
  opacity: 0;
}

.dashboard-chart-shell.is-ready .dashboard-chart-canvas {
  opacity: 1;
}

.dashboard-health-grid {
  display: grid;
  gap: 12px;
}

.dashboard-health-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #e6f2e8;
  background: #ffffff;
  display: grid;
  gap: 6px;
  border-left-width: 4px;
}

.dashboard-health-card.success {
  border-left-color: #16a34a;
}

.dashboard-health-card.warning {
  border-left-color: #eab308;
}

.dashboard-health-card.urgent {
  border-left-color: #f97316;
}

.dashboard-health-card.danger {
  border-left-color: #ef4444;
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  gap: 20px;
}

.dashboard-panel {
  padding: 24px;
}

.dashboard-panel-head,
.dashboard-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.dashboard-panel-head h2,
.dashboard-section-head h2 {
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.1;
}

.dashboard-link-btn {
  border: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f0fdf4;
  color: #14532d;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background-color 0.18s ease;
}

.dashboard-link-btn:hover {
  transform: translateY(-1px);
  opacity: 0.96;
  background: #dcfce7;
}

.dashboard-table-wrap {
  overflow-x: auto;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #e6f2e8;
  text-align: left;
  vertical-align: middle;
}

.dashboard-table th {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.dashboard-table td {
  font-size: 14px;
  color: #1f2937;
}

.dashboard-table td:last-child,
.dashboard-table th:last-child {
  text-align: right;
}

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

.dashboard-table-sub {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #94a3b8;
}

.dashboard-empty-cell,
.dashboard-empty-state {
  padding: 18px 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.dashboard-alerts-panel {
  display: grid;
  align-content: start;
}

.dashboard-alert-groups {
  display: grid;
  gap: 18px;
}

.dashboard-alert-group {
  padding: 18px;
  border-radius: 18px;
  background: #f8fffa;
  border: 1px solid rgba(22, 163, 74, 0.08);
}

.dashboard-alert-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.dashboard-alert-group-head h3 {
  font-size: 16px;
  color: #0f172a;
}

.dashboard-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #14532d;
  font-size: 13px;
  font-weight: 800;
}

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

.dashboard-alert-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e6f2e8;
}

.dashboard-alert-item strong {
  display: block;
  font-size: 14px;
  color: #0f172a;
}

.dashboard-alert-item > div span {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.6;
  color: #64748b;
}

.dashboard-alert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.dashboard-alert-badge.warning {
  background: #fffbeb;
  color: #b45309;
}

.dashboard-alert-badge.urgent {
  background: #fff7ed;
  color: #c2410c;
}

.dashboard-alert-badge.danger {
  background: #fff1f2;
  color: #be123c;
}

.dashboard-quick-actions {
  display: grid;
  gap: 18px;
}

.dashboard-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-action-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  padding: 20px;
  text-align: left;
  border: 1px solid rgba(22, 163, 74, 0.12);
  border-radius: 20px;
  background: #ffffff;
  color: inherit;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(20, 83, 45, 0.07);
  transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-action-card:hover {
  transform: translateY(-2px);
  opacity: 0.98;
  border-color: rgba(22, 163, 74, 0.24);
  box-shadow: 0 18px 32px rgba(20, 83, 45, 0.1);
}

.dashboard-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #ecfdf5;
  color: #14532d;
  font-size: 20px;
}

.dashboard-action-card strong {
  display: block;
  font-size: 16px;
  color: #0f172a;
}

.dashboard-action-card span:last-child {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: #64748b;
}

@media (max-width: 1200px) {
  .dashboard-topbar,
  .dashboard-main-grid,
  .dashboard-analytics-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .dashboard-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-chart-kpis {
    grid-template-columns: 1fr;
  }

  .dashboard-summary-card--primary {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .dashboard-shell {
    gap: 18px;
  }

  .dashboard-brand-card,
  .dashboard-user-card,
  .dashboard-panel,
  .dashboard-summary-card,
  .dashboard-clock-card {
    padding: 20px;
  }

  .dashboard-brand-card,
  .dashboard-user-card {
    align-items: flex-start;
  }

  .dashboard-brand-copy h1 {
    font-size: 26px;
  }

  .dashboard-clock-card strong,
  .dashboard-summary-value {
    font-size: 30px;
  }

  .dashboard-summary-grid,
  .dashboard-actions-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-chart-shell {
    min-height: 260px;
  }

  .dashboard-chart-canvas {
    height: 260px !important;
  }

  .dashboard-summary-card--primary {
    grid-column: auto;
  }

  .dashboard-panel-head,
  .dashboard-section-head,
  .dashboard-alert-group-head,
  .dashboard-alert-item {
    align-items: flex-start;
  }

  .dashboard-panel-head,
  .dashboard-section-head {
    flex-direction: column;
  }

  .dashboard-alert-item {
    flex-direction: column;
  }
}

/* Farmasi-Klik inspired refresh */
:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #dbeafe;
  --blue-border: #93c5fd;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --accent: #f59e0b;
  --green: #10b981;
  --green-soft: #d1fae5;
  --green-text: #065f46;
  --active-green: #2563eb;
  --active-green-dark: #1d4ed8;
  --active-green-soft: #bfdbfe;
  --bg: #edf4ff;
  --bg-gradient-mid: #f7faff;
  --surface: #ffffff;
  --line: #d8e5f7;
  --text: #0f172a;
  --muted: #64748b;
  --shadow-sm: 0 16px 34px rgba(15, 23, 42, 0.06);
  --shadow: 0 24px 54px rgba(15, 23, 42, 0.14);
  --shadow-card: 0 18px 38px rgba(37, 99, 235, 0.08);
  --pharmacy-accent: #2563eb;
}

body.zf-app {
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), rgba(37, 99, 235, 0) 28%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), rgba(14, 165, 233, 0) 24%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 50%, #f5f8ff 100%);
  -webkit-tap-highlight-color: rgba(37, 99, 235, 0.16);
}

.main-content {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0) 22%),
    linear-gradient(180deg, #f8fbff 0%, #eef4ff 46%, #f7f9fd 100%);
}

.sidebar {
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.12), rgba(96, 165, 250, 0) 26%),
    linear-gradient(180deg, #0f172a 0%, #12213f 54%, #162847 100%);
  border-right: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 18px 0 42px rgba(15, 23, 42, 0.24);
}

.sidebar-user-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 255, 255, 0.14);
}

.su-avatar {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.28);
}

.su-eyebrow,
.su-meta {
  color: rgba(219, 234, 254, 0.72);
}

.su-sub {
  color: rgba(226, 232, 240, 0.86);
}

.nav-single,
.nav-parent,
.nav-sub {
  color: rgba(226, 232, 240, 0.82);
}

.nav-single i,
.nav-parent-left i {
  color: rgba(191, 219, 254, 0.84);
}

.nav-single:hover,
.nav-parent:hover,
.nav-sub:hover,
.nav-group.is-open > .nav-parent {
  background: rgba(148, 163, 184, 0.12);
  color: #ffffff;
}

.nav-group.is-open > .nav-parent .nav-parent-left i,
.nav-group.is-open > .nav-parent .nav-chevron {
  color: #bfdbfe;
}

.nav-single.active,
.nav-sub.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.34);
}

.nav-children {
  border-left-color: rgba(191, 219, 254, 0.18);
}

.sidebar-footer {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.top-header {
  background: rgba(248, 251, 255, 0.86);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.header-export-btn,
.header-user-pill,
.header-pharmacy-pill,
.header-clock,
.today-date {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.header-export-btn,
.header-clock,
.header-pharmacy-avatar {
  color: var(--blue);
}

.header-pharmacy-avatar {
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
}

.content-body {
  max-width: 1540px;
}

.page-title-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.page-title-copy {
  display: grid;
  gap: 8px;
}

.page-title-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-title-section h1 {
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.page-title-sub {
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.today-date {
  margin-top: 0;
  padding: 12px 15px;
  gap: 10px;
}

.today-date span:first-child {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.today-date span:last-child {
  color: var(--text);
  font-weight: 700;
}

.panel,
.dashboard-surface {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.06);
}

.btn-blue {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #2563eb;
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.2);
}

.btn-blue:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
}

.btn-blue-outline {
  background: rgba(239, 246, 255, 0.92);
  border-color: rgba(96, 165, 250, 0.38);
  color: var(--blue);
}

.btn-green {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #10b981;
  box-shadow: 0 16px 28px rgba(16, 185, 129, 0.2);
}

.content-body[data-page='dashboard']::before {
  background:
    radial-gradient(circle at 10% 14%, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0) 34%),
    radial-gradient(circle at 90% 12%, rgba(14, 165, 233, 0.14), rgba(14, 165, 233, 0) 30%),
    linear-gradient(180deg, rgba(239, 246, 255, 0.95), rgba(239, 246, 255, 0) 100%);
}

.dashboard-brand-card,
.dashboard-user-card,
.dashboard-clock-card,
.dashboard-panel,
.dashboard-summary-card {
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
}

.dashboard-brand-card {
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.16), rgba(96, 165, 250, 0) 28%),
    linear-gradient(135deg, #ffffff 0%, #f6faff 100%);
}

.dashboard-brand-mark,
.dashboard-card-icon,
.dashboard-action-icon {
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  color: var(--blue);
}

.dashboard-brand-copy p,
.dashboard-user-card p,
.dashboard-clock-card span,
.dashboard-section-head p,
.dashboard-summary-meta,
.dashboard-table-note,
.dashboard-chart-kpi span,
.dashboard-alert-item > div span,
.dashboard-action-card span:last-child {
  color: var(--muted);
}

.dashboard-summary-card--primary {
  background:
    radial-gradient(circle at top right, rgba(191, 219, 254, 0.46), rgba(191, 219, 254, 0) 36%),
    linear-gradient(135deg, #1d4ed8, #2563eb);
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: 0 26px 46px rgba(37, 99, 235, 0.24);
}

.dashboard-summary-card--primary .dashboard-card-topline,
.dashboard-summary-card--primary .dashboard-summary-value,
.dashboard-summary-card--primary .dashboard-summary-meta,
.dashboard-summary-card--primary .dashboard-card-icon {
  color: #ffffff;
}

.dashboard-summary-card--primary .dashboard-card-icon {
  background: rgba(255, 255, 255, 0.14);
}

.dashboard-chart-card,
.dashboard-activity-card,
.dashboard-inventory-card,
.dashboard-alerts-card,
.dashboard-quick-actions {
  background: transparent;
}

.dashboard-chart-kpi,
.dashboard-alert-group,
.dashboard-alert-item,
.dashboard-action-card {
  border-color: rgba(148, 163, 184, 0.18);
}

.dashboard-chart-kpi,
.dashboard-alert-group {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.dashboard-action-card {
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

.dashboard-action-card:hover {
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 20px 36px rgba(37, 99, 235, 0.12);
}

.dashboard-count-pill {
  background: #dbeafe;
  color: #1d4ed8;
}

.dashboard-alert-badge.warning {
  background: #fef3c7;
  color: #92400e;
}

.dashboard-alert-badge.urgent {
  background: #ffedd5;
  color: #c2410c;
}

.dashboard-alert-badge.danger {
  background: #fee2e2;
  color: #b91c1c;
}

.kasir-layout--klik {
  grid-template-columns: minmax(0, 1.22fr) minmax(340px, 0.78fr);
  gap: 24px;
  align-items: start;
}

.kasir-layout--klik .kasir-left,
.kasir-layout--klik .kasir-right {
  padding: 24px;
  border-radius: 28px;
}

.kasir-catalog-panel {
  background:
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.1), rgba(96, 165, 250, 0) 26%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.kasir-catalog-head,
.kasir-cart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.kasir-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kasir-catalog-head h2,
.kasir-side-title {
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  color: var(--text);
}

.kasir-catalog-head h2 {
  font-size: 29px;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.kasir-catalog-head p {
  margin-top: 6px;
  max-width: 650px;
  color: var(--muted);
  line-height: 1.7;
}

.kasir-catalog-badge,
.kasir-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.kasir-layout--klik .kasir-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px auto auto;
  gap: 12px;
  margin: 24px 0 14px;
}

.kasir-layout--klik .kasir-search-wrap,
.kasir-layout--klik .kasir-qty,
.kasir-layout--klik .kasir-field input,
.kasir-layout--klik .kasir-field select,
.kasir-layout--klik .kasir-field textarea {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.kasir-layout--klik .kasir-search-wrap {
  min-height: 54px;
}

.kasir-add-btn,
.kasir-draft-btn {
  min-height: 54px;
  border-radius: 16px;
}

.kasir-draft-btn {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--text);
}

.kasir-draft-btn:hover {
  background: #eff6ff;
  border-color: rgba(96, 165, 250, 0.34);
}

.kasir-catalog-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.kasir-catalog-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(239, 246, 255, 0.84);
  border: 1px solid rgba(147, 197, 253, 0.34);
  color: #1e3a8a;
  font-size: 13px;
  font-weight: 600;
}

.kasir-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.kasir-product-card,
.kasir-product-empty,
.kasir-cart-item,
.kasir-cart-empty,
.kasir-side-section,
.kasir-summary {
  border-radius: 22px;
}

.kasir-product-card {
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.kasir-product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: 0 20px 34px rgba(37, 99, 235, 0.1);
}

.kasir-product-card.is-empty {
  opacity: 0.58;
  box-shadow: none;
}

.kasir-product-card strong {
  display: block;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
}

.kasir-product-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.kasir-product-meta,
.kasir-product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kasir-product-category,
.kasir-product-stock {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.kasir-product-category {
  background: #eff6ff;
  color: #1d4ed8;
}

.kasir-product-stock.is-aman {
  background: #dcfce7;
  color: #166534;
}

.kasir-product-stock.is-menipis {
  background: #fef3c7;
  color: #92400e;
}

.kasir-product-stock.is-habis {
  background: #fee2e2;
  color: #b91c1c;
}

.kasir-product-foot {
  margin-top: 16px;
}

.kasir-product-foot span {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.kasir-product-foot small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.kasir-product-empty,
.kasir-cart-empty {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 240px;
  padding: 28px;
  text-align: center;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  background: rgba(248, 250, 252, 0.82);
  color: var(--muted);
}

.kasir-product-empty i,
.kasir-cart-empty i {
  font-size: 28px;
  color: #94a3b8;
}

.kasir-cart-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kasir-clear-text {
  border: none;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
}

.kasir-cart-list {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.kasir-cart-item,
.kasir-side-section,
.kasir-summary {
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.kasir-cart-item {
  display: grid;
  gap: 14px;
}

.kasir-cart-main strong {
  display: block;
  font-size: 15px;
  color: var(--text);
}

.kasir-cart-main span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.kasir-cart-aside {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kasir-cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #ffffff;
}

.kasir-cart-qty span {
  min-width: 28px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.kasir-row-del {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: #e2e8f0;
  color: #0f172a;
  cursor: pointer;
}

.kasir-row-del.is-add {
  background: #dbeafe;
  color: #1d4ed8;
}

.kasir-row-del.is-trash {
  background: #fee2e2;
  color: #b91c1c;
}

.kasir-cart-total {
  font-size: 15px;
  color: var(--text);
}

.kasir-right {
  position: sticky;
  top: 94px;
}

.kasir-side-section {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.kasir-side-title {
  font-size: 16px;
  font-weight: 700;
}

.kasir-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.kasir-field label {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.kasir-customer-hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.kasir-summary {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  background:
    radial-gradient(circle at top right, rgba(191, 219, 254, 0.4), rgba(191, 219, 254, 0) 32%),
    linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.kasir-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.kasir-summary strong {
  color: var(--text);
  font-size: 15px;
}

.kasir-total-row {
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.kasir-total-row span,
.kasir-total-row strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
}

.kasir-pay-btn {
  width: 100%;
  min-height: 56px;
  margin-top: 18px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 1320px) {
  .kasir-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .page-title-section {
    flex-direction: column;
  }

  .kasir-layout--klik {
    grid-template-columns: 1fr;
  }

  .kasir-right {
    position: static;
    top: auto;
  }
}

@media (max-width: 720px) {
  .page-title-section {
    gap: 12px;
  }

  .today-date {
    width: 100%;
    justify-content: space-between;
  }

  .kasir-layout--klik .kasir-left,
  .kasir-layout--klik .kasir-right {
    padding: 18px;
    border-radius: 22px;
  }

  .kasir-layout--klik .kasir-toolbar,
  .kasir-field-row,
  .kasir-product-grid {
    grid-template-columns: 1fr;
  }

  .kasir-catalog-head,
  .kasir-cart-head,
  .kasir-cart-aside {
    flex-direction: column;
    align-items: flex-start;
  }

  .kasir-cart-qty {
    order: 2;
  }
}

/* Internal app polish */
:root {
  --blue: #0f766e;
  --blue-dark: #115e59;
  --blue-soft: #ccfbf1;
  --blue-border: #99f6e4;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --accent: #f59e0b;
  --green: #16a34a;
  --green-soft: #dcfce7;
  --green-text: #14532d;
  --active-green: #16a34a;
  --active-green-dark: #15803d;
  --active-green-soft: #bbf7d0;
  --bg: #f4fbf7;
  --bg-gradient-mid: #f8fdf9;
  --surface: #ffffff;
  --line: #d9ebe1;
  --text: #10231d;
  --muted: #5f766d;
  --shadow-sm: 0 12px 24px rgba(15, 118, 110, 0.06);
  --shadow: 0 18px 42px rgba(15, 118, 110, 0.12);
  --shadow-card: 0 16px 34px rgba(15, 118, 110, 0.08);
  --pharmacy-accent: #22c55e;
}

body.zf-app {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.12), rgba(16, 185, 129, 0) 26%),
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.1), rgba(20, 184, 166, 0) 22%),
    linear-gradient(180deg, #fbfefd 0%, #f4fbf7 48%, #f8fcfa 100%);
  -webkit-tap-highlight-color: rgba(15, 118, 110, 0.16);
}

.main-content {
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0) 20%),
    linear-gradient(180deg, #fbfefd 0%, #f4fbf7 46%, #f7fbf9 100%);
}

.sidebar {
  background:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.12), rgba(45, 212, 191, 0) 24%),
    linear-gradient(180deg, #0d2d27 0%, #11403a 52%, #14534c 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 18px 0 40px rgba(13, 45, 39, 0.22);
}

.sidebar-user-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 255, 255, 0.14);
}

.su-avatar {
  background: linear-gradient(135deg, #22c55e, #0f766e);
  box-shadow: 0 14px 24px rgba(34, 197, 94, 0.24);
}

.su-eyebrow,
.su-meta {
  color: rgba(209, 250, 229, 0.76);
}

.su-sub {
  color: rgba(236, 253, 245, 0.88);
}

.nav-single,
.nav-parent,
.nav-sub {
  color: rgba(236, 253, 245, 0.82);
}

.nav-single i,
.nav-parent-left i {
  color: rgba(167, 243, 208, 0.88);
}

.nav-single:hover,
.nav-parent:hover,
.nav-sub:hover,
.nav-group.is-open > .nav-parent {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.nav-single.active,
.nav-sub.active {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 16px 28px rgba(34, 197, 94, 0.26);
}

.top-header {
  background: rgba(250, 253, 251, 0.9);
  border-bottom: 1px solid rgba(15, 118, 110, 0.08);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.06);
}

.header-export-btn,
.header-fullscreen-btn,
.notif-btn,
.header-status-pill,
.header-user-pill,
.header-pharmacy-pill,
.header-clock,
.today-date {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(15, 118, 110, 0.12);
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.04);
}

.header-export-btn,
.header-fullscreen-btn,
.notif-btn,
.header-clock,
.header-pharmacy-avatar {
  color: var(--blue);
}

.header-fullscreen-btn:hover,
.header-export-btn:hover,
.notif-btn:hover {
  background: #f0fdf9;
  border-color: rgba(15, 118, 110, 0.24);
}

.header-pharmacy-avatar {
  background: linear-gradient(135deg, #ecfdf5, #ccfbf1);
}

.content-body {
  max-width: 1520px;
}

.page-title-section {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.page-title-copy {
  display: grid;
  gap: 8px;
}

.page-title-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.page-title-section h1 {
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.page-title-sub {
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.today-date {
  margin-top: 0;
  padding: 12px 15px;
  gap: 10px;
}

.today-date span:first-child {
  color: #6b8b80;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.today-date span:last-child {
  color: var(--text);
  font-weight: 700;
}

.panel,
.dashboard-surface {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(15, 118, 110, 0.08);
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.06);
}

.btn-blue {
  background: linear-gradient(135deg, #0f766e, #0d9488);
  border-color: #0f766e;
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.18);
}

.btn-blue:hover {
  background: linear-gradient(135deg, #115e59, #0f766e);
}

.btn-blue-outline {
  background: rgba(240, 253, 250, 0.96);
  border-color: rgba(45, 212, 191, 0.42);
  color: var(--blue);
}

.btn-green {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-color: #22c55e;
  box-shadow: 0 14px 28px rgba(34, 197, 94, 0.18);
}

.content-body[data-page='dashboard']::before {
  background:
    radial-gradient(circle at 12% 14%, rgba(34, 197, 94, 0.14), rgba(34, 197, 94, 0) 34%),
    radial-gradient(circle at 88% 10%, rgba(20, 184, 166, 0.12), rgba(20, 184, 166, 0) 30%),
    linear-gradient(180deg, rgba(240, 253, 244, 0.94), rgba(240, 253, 244, 0) 100%);
}

.dashboard-brand-card,
.dashboard-user-card,
.dashboard-clock-card,
.dashboard-panel,
.dashboard-summary-card {
  border-color: rgba(15, 118, 110, 0.08);
  box-shadow: 0 18px 34px rgba(15, 118, 110, 0.06);
}

.dashboard-brand-card {
  background:
    radial-gradient(circle at top right, rgba(110, 231, 183, 0.2), rgba(110, 231, 183, 0) 28%),
    linear-gradient(135deg, #ffffff 0%, #f4fbf7 100%);
}

.dashboard-brand-mark,
.dashboard-card-icon,
.dashboard-action-icon {
  background: linear-gradient(135deg, #dcfce7, #ccfbf1);
  color: var(--blue);
}

.dashboard-summary-card--primary {
  background:
    radial-gradient(circle at top right, rgba(167, 243, 208, 0.36), rgba(167, 243, 208, 0) 36%),
    linear-gradient(135deg, #0f766e, #14b8a6);
  border-color: rgba(15, 118, 110, 0.14);
  box-shadow: 0 24px 44px rgba(15, 118, 110, 0.2);
}

.dashboard-summary-card--primary .dashboard-card-topline,
.dashboard-summary-card--primary .dashboard-summary-value,
.dashboard-summary-card--primary .dashboard-summary-meta,
.dashboard-summary-card--primary .dashboard-card-icon {
  color: #ffffff;
}

.dashboard-summary-card--primary .dashboard-card-icon {
  background: rgba(255, 255, 255, 0.14);
}

.dashboard-chart-kpi,
.dashboard-alert-group {
  background: linear-gradient(180deg, #ffffff, #f7fbf9);
  border-color: rgba(15, 118, 110, 0.08);
}

.dashboard-action-card {
  border-color: rgba(15, 118, 110, 0.1);
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.05);
}

.dashboard-action-card:hover {
  border-color: rgba(15, 118, 110, 0.22);
  box-shadow: 0 18px 34px rgba(15, 118, 110, 0.1);
}

.dashboard-count-pill {
  background: #ccfbf1;
  color: #115e59;
}

.kasir-layout--klik {
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  gap: 24px;
  align-items: start;
}

.kasir-layout--klik .kasir-left,
.kasir-layout--klik .kasir-right {
  padding: 24px;
  border-radius: 28px;
}

.kasir-catalog-panel {
  background:
    radial-gradient(circle at top right, rgba(167, 243, 208, 0.18), rgba(167, 243, 208, 0) 28%),
    linear-gradient(180deg, #ffffff 0%, #f7fbf9 100%);
}

.kasir-catalog-head,
.kasir-cart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.kasir-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kasir-catalog-head h2,
.kasir-side-title {
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  color: var(--text);
}

.kasir-catalog-head h2 {
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.kasir-catalog-head p {
  margin-top: 6px;
  max-width: 640px;
  color: var(--muted);
  line-height: 1.75;
}

.kasir-catalog-badge,
.kasir-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #166534;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.kasir-layout--klik .kasir-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px auto auto;
  gap: 12px;
  margin: 24px 0 14px;
}

.kasir-layout--klik .kasir-search-wrap,
.kasir-layout--klik .kasir-qty,
.kasir-layout--klik .kasir-field input,
.kasir-layout--klik .kasir-field select,
.kasir-layout--klik .kasir-field textarea {
  border: 1px solid rgba(15, 118, 110, 0.12);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

.kasir-add-btn,
.kasir-draft-btn {
  min-height: 54px;
  border-radius: 16px;
}

.kasir-draft-btn {
  background: #f8fcfa;
  border: 1px solid rgba(15, 118, 110, 0.12);
  color: var(--text);
}

.kasir-draft-btn:hover {
  background: #f0fdf9;
  border-color: rgba(15, 118, 110, 0.22);
}

.kasir-catalog-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.kasir-catalog-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(240, 253, 250, 0.92);
  border: 1px solid rgba(45, 212, 191, 0.24);
  color: #115e59;
  font-size: 13px;
  font-weight: 600;
}

.kasir-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.kasir-product-card,
.kasir-product-empty,
.kasir-cart-item,
.kasir-cart-empty,
.kasir-side-section,
.kasir-summary {
  border-radius: 22px;
}

.kasir-product-card {
  padding: 18px;
  border: 1px solid rgba(15, 118, 110, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf9 100%);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.04);
}

.kasir-product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.2);
  box-shadow: 0 18px 30px rgba(15, 118, 110, 0.08);
}

.kasir-product-card.is-empty {
  opacity: 0.58;
  box-shadow: none;
}

.kasir-product-card strong {
  display: block;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
}

.kasir-product-card p,
.kasir-cart-main span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.kasir-product-meta,
.kasir-product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kasir-product-category,
.kasir-product-stock {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.kasir-product-category {
  background: #ccfbf1;
  color: #115e59;
}

.kasir-product-stock.is-aman {
  background: #dcfce7;
  color: #166534;
}

.kasir-product-stock.is-menipis {
  background: #fef3c7;
  color: #92400e;
}

.kasir-product-stock.is-habis {
  background: #fee2e2;
  color: #b91c1c;
}

.kasir-product-foot {
  margin-top: 16px;
}

.kasir-product-foot span,
.kasir-cart-total {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.kasir-product-empty,
.kasir-cart-empty {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 240px;
  padding: 28px;
  text-align: center;
  border: 1px dashed rgba(15, 118, 110, 0.18);
  background: rgba(248, 252, 250, 0.92);
  color: var(--muted);
}

.kasir-cart-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.kasir-clear-text {
  border: none;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
}

.kasir-cart-list {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.kasir-cart-item,
.kasir-side-section,
.kasir-summary {
  padding: 18px;
  border: 1px solid rgba(15, 118, 110, 0.1);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf9 100%);
}

.kasir-cart-item {
  display: grid;
  gap: 14px;
}

.kasir-cart-main strong {
  display: block;
  font-size: 15px;
  color: var(--text);
}

.kasir-cart-aside {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kasir-cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.1);
  background: #ffffff;
}

.kasir-cart-qty span {
  min-width: 28px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.kasir-row-del {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: #dcfce7;
  color: #166534;
  cursor: pointer;
}

.kasir-row-del.is-add {
  background: #ccfbf1;
  color: #115e59;
}

.kasir-row-del.is-trash {
  background: #fee2e2;
  color: #b91c1c;
}

.kasir-right {
  position: sticky;
  top: 94px;
}

.kasir-side-section {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.kasir-side-title {
  font-size: 16px;
  font-weight: 700;
}

.kasir-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.kasir-field label {
  color: #4b635a;
  font-size: 12px;
  font-weight: 700;
}

.kasir-customer-hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.kasir-summary {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  background:
    radial-gradient(circle at top right, rgba(167, 243, 208, 0.34), rgba(167, 243, 208, 0) 32%),
    linear-gradient(180deg, #ffffff 0%, #f0fdf9 100%);
}

.kasir-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.kasir-summary strong {
  color: var(--text);
  font-size: 15px;
}

.kasir-total-row {
  padding-top: 10px;
  border-top: 1px solid rgba(15, 118, 110, 0.12);
}

.kasir-total-row span,
.kasir-total-row strong {
  color: var(--text);
  font-size: 17px;
  font-weight: 800;
}

.kasir-pay-btn {
  width: 100%;
  min-height: 56px;
  margin-top: 18px;
  border-radius: 18px;
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 1320px) {
  .kasir-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .page-title-section {
    flex-direction: column;
  }

  .kasir-layout--klik {
    grid-template-columns: 1fr;
  }

  .kasir-right {
    position: static;
    top: auto;
  }
}

@media (max-width: 720px) {
  .today-date {
    width: 100%;
    justify-content: space-between;
  }

  .kasir-layout--klik .kasir-left,
  .kasir-layout--klik .kasir-right {
    padding: 18px;
    border-radius: 22px;
  }

  .kasir-layout--klik .kasir-toolbar,
  .kasir-field-row,
  .kasir-product-grid {
    grid-template-columns: 1fr;
  }

  .kasir-catalog-head,
  .kasir-cart-head,
  .kasir-cart-aside {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Unified app theme */
.notif-count {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
}

.header-status-dot {
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(15, 118, 110, 0.14);
}

.dashboard-status-pill.is-healthy,
.dashboard-status-pill.is-warning {
  color: var(--blue);
  background: rgba(204, 251, 241, 0.78);
  border-color: rgba(15, 118, 110, 0.14);
}

.dashboard-card-icon--soft,
.dashboard-card-icon--soft.danger {
  background: rgba(204, 251, 241, 0.86);
  color: var(--blue);
}

.dashboard-summary-inline span {
  background: rgba(240, 253, 250, 0.92);
  color: var(--blue);
}

.dashboard-health-card.success,
.dashboard-health-card.warning,
.dashboard-health-card.urgent,
.dashboard-health-card.danger {
  border-left-color: rgba(15, 118, 110, 0.5);
  background: linear-gradient(180deg, #ffffff, #f7fbf9);
}

.dashboard-link-btn {
  background: rgba(240, 253, 250, 0.94);
  color: var(--blue);
}

.dashboard-link-btn:hover {
  background: #ccfbf1;
}

.dashboard-count-pill,
.dashboard-alert-badge.warning,
.dashboard-alert-badge.urgent,
.dashboard-alert-badge.danger {
  background: rgba(204, 251, 241, 0.82);
  color: var(--blue);
}

.dashboard-alert-item,
.dashboard-alert-group,
.dashboard-chart-kpi,
.dashboard-health-card {
  border-color: rgba(15, 118, 110, 0.08);
}

.dashboard-brand-mark,
.dashboard-action-icon,
.dashboard-card-icon,
.dashboard-user-avatar {
  background: linear-gradient(135deg, #ccfbf1, #99f6e4);
  color: var(--blue);
  box-shadow: none;
}

.dashboard-summary-card--primary .dashboard-card-icon {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.login-floating-icon.is-blue,
.login-floating-icon.is-green,
.login-floating-icon.is-violet,
.login-floating-icon.is-teal,
.login-showcase-mark {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  box-shadow: 0 16px 30px rgba(15, 118, 110, 0.18);
}

.card-icon.green,
.card-icon.blue,
.card-icon.orange,
.card-icon.red {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.inv-cond-warning {
  background: rgba(204, 251, 241, 0.82);
  color: var(--blue);
}
