/* DJIVON design system: bold visual language shared by all pages. */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@500;600;700;800&display=swap');

:root {
  --bg-0: #f2f7f6;
  --bg-1: #deeeea;
  --ink-0: #0b1f24;
  --ink-1: #17343d;
  --muted: #53707a;
  --line: #d8e5e4;
  --accent: #0f9bb8;
  --accent-2: #00b894;
  --accent-3: #f59e0b;
  --danger: #ef4444;
  --success: #059669;
  --warning: #d97706;
  --surface: rgba(255, 255, 255, 0.9);
}

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

.hidden {
  display: none !important;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--ink-0);
  background:
    radial-gradient(1200px 500px at -10% -20%, #b9f2e6 0%, rgba(185, 242, 230, 0) 65%),
    radial-gradient(1000px 500px at 115% -5%, #c8e5ff 0%, rgba(200, 229, 255, 0) 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Sora', sans-serif;
  letter-spacing: -0.02em;
  color: var(--ink-1);
}

.app-shell {
  position: relative;
  overflow-x: hidden;
}

.app-shell::before,
.app-shell::after {
  content: '';
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 9999px;
  filter: blur(40px);
  opacity: 0.5;
}

.app-shell::before {
  width: 280px;
  height: 280px;
  left: -90px;
  bottom: 10vh;
  background: linear-gradient(135deg, #00b894, #0f9bb8);
}

.app-shell::after {
  width: 230px;
  height: 230px;
  right: -90px;
  top: 12vh;
  background: linear-gradient(135deg, #0f9bb8, #f59e0b);
}

.app-frame {
  position: relative;
}

.app-sidebar {
  background:
    radial-gradient(110% 90% at 10% 0%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%),
    linear-gradient(165deg, #0a202b 0%, #0f3f4d 50%, #093646 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.app-sidebar-drawer {
  width: 100%;
}

.mobile-topbar {
  display: none;
}

.desktop-notification-bell {
  display: none;
}

#mobile-sidebar-overlay {
  display: none !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

#mobile-sidebar-overlay.is-active {
  display: block !important;
  opacity: 1;
  pointer-events: auto;
}

body[data-sidebar-open="1"] #mobile-sidebar-overlay {
  display: block !important;
  opacity: 1;
  pointer-events: auto;
}

[data-modal] {
  pointer-events: none;
}

[data-modal]:not(.hidden) {
  pointer-events: auto;
}

.brand-orb {
  box-shadow: 0 0 0 6px rgba(15, 155, 184, 0.18), 0 12px 24px rgba(5, 31, 42, 0.35);
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 0.75rem;
  padding: 0.58rem 0.75rem;
  color: rgba(235, 247, 251, 0.9);
  transition: all 220ms ease;
  position: relative;
}

.nav-link:hover {
  transform: translateX(3px);
  color: #fff;
  border-color: rgba(0, 184, 148, 0.35);
  background: rgba(14, 119, 144, 0.35);
}

.nav-link-active {
  color: #fff;
  border-color: rgba(0, 184, 148, 0.75);
  background:
    linear-gradient(90deg, rgba(0, 184, 148, 0.16), rgba(15, 155, 184, 0.26));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nav-link-icon {
  width: 1rem;
  height: 1rem;
  stroke-width: 2;
  flex-shrink: 0;
}

.sidebar-group {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.95rem;
  padding: 0.42rem;
  background: rgba(8, 45, 58, 0.24);
}

.sidebar-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  border-radius: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.52rem 0.62rem;
  color: rgba(210, 236, 244, 0.92);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
}

.sidebar-group-toggle:hover {
  background: rgba(12, 137, 166, 0.24);
  color: #ffffff;
}

.sidebar-group-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-group-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  color: rgba(215, 237, 244, 0.88);
  transition: transform 220ms ease;
}

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

[data-sidebar-group-panel] {
  padding-top: 0.4rem;
}

.content-shell {
  position: relative;
}

main {
  position: relative;
}

section.space-y-6 > header {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78));
  box-shadow: 0 12px 24px rgba(18, 56, 67, 0.08);
}

section.space-y-6 > header p {
  color: var(--muted);
}

.page-help-panel {
  border: 1px solid #cfe0e3;
  border-radius: 0.92rem;
  background:
    linear-gradient(125deg, rgba(15, 155, 184, 0.1), rgba(0, 184, 148, 0.09)),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 22px rgba(14, 43, 56, 0.08);
  overflow: hidden;
}

.page-help-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.72rem 0.86rem;
  cursor: pointer;
}

.page-help-summary::-webkit-details-marker {
  display: none;
}

.page-help-summary-left {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.page-help-icon {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 0.54rem;
  background: rgba(15, 155, 184, 0.16);
  color: #0f6e83;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.page-help-icon svg {
  width: 0.95rem;
  height: 0.95rem;
}

.page-help-summary-text {
  min-width: 0;
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
}

.page-help-kicker {
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0f5a72;
}

.page-help-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: #173946;
}

.page-help-toggle {
  border: 1px solid #cde2e6;
  border-radius: 999px;
  padding: 0.22rem 0.58rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #31545f;
  background: rgba(255, 255, 255, 0.72);
  flex-shrink: 0;
}

.page-help-body {
  border-top: 1px solid #d8e8eb;
  padding: 0.76rem 0.86rem 0.82rem;
}

.page-help-intro {
  margin: 0;
  color: #385765;
  line-height: 1.45;
}

.page-help-list {
  margin: 0.55rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.3rem;
  color: #1f3e4c;
}

.page-help-list li {
  line-height: 1.42;
}

.premium-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(15, 155, 184, 0.1), rgba(0, 184, 148, 0.09)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.84));
}

.premium-hero > * {
  position: relative;
  z-index: 1;
}

.premium-hero::after {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 9999px;
  filter: blur(12px);
  opacity: 0.45;
  background: linear-gradient(135deg, #14b8a6, #0f9bb8);
  z-index: 0;
  pointer-events: none;
}

.page-dashboard .premium-hero {
  background:
    linear-gradient(120deg, rgba(15, 155, 184, 0.14), rgba(0, 184, 148, 0.12)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.8));
}

.page-dashboard .premium-hero::after {
  background: linear-gradient(135deg, #00b894, #0f9bb8);
}

.page-products .premium-hero {
  background:
    linear-gradient(120deg, rgba(245, 158, 11, 0.18), rgba(15, 155, 184, 0.12)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.82));
}

.page-products .premium-hero::after {
  background: linear-gradient(135deg, #f59e0b, #0f9bb8);
}

.page-transactions .premium-hero {
  background:
    linear-gradient(120deg, rgba(0, 184, 148, 0.15), rgba(34, 197, 94, 0.14)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.82));
}

.page-transactions .premium-hero::after {
  background: linear-gradient(135deg, #22c55e, #0f9bb8);
}

.page-reports .premium-hero {
  background:
    linear-gradient(120deg, rgba(14, 165, 233, 0.16), rgba(251, 191, 36, 0.15)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.82));
}

.page-reports .premium-hero::after {
  background: linear-gradient(135deg, #0ea5e9, #f59e0b);
}

.page-statistics .analytics-chart-card canvas {
  display: block;
  border: 1px solid #d8e7ef;
  border-radius: 0.86rem;
  background:
    linear-gradient(180deg, #f9fcff, #f3f8fc);
  padding: 0.3rem;
}

.page-statistics .analytics-progress-row {
  border: 1px solid #e2edf3;
  border-radius: 0.72rem;
  background: #f8fbfd;
  padding: 0.56rem 0.62rem;
}

.page-restocks .premium-hero {
  background:
    linear-gradient(120deg, rgba(16, 185, 129, 0.16), rgba(59, 130, 246, 0.12)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.83));
}

.page-restocks .premium-hero::after {
  background: linear-gradient(135deg, #10b981, #3b82f6);
}

.page-exchanges .premium-hero {
  background:
    linear-gradient(120deg, rgba(56, 189, 248, 0.17), rgba(14, 116, 144, 0.13)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.83));
}

.page-exchanges .premium-hero::after {
  background: linear-gradient(135deg, #06b6d4, #0284c7);
}

.page-finance .premium-hero {
  background:
    linear-gradient(120deg, rgba(34, 197, 94, 0.15), rgba(30, 64, 175, 0.1)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.83));
}

.page-finance .premium-hero::after {
  background: linear-gradient(135deg, #22c55e, #1d4ed8);
}

.page-targets .premium-hero {
  background:
    linear-gradient(120deg, rgba(245, 158, 11, 0.16), rgba(16, 185, 129, 0.1)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.83));
}

.page-targets .premium-hero::after {
  background: linear-gradient(135deg, #f59e0b, #10b981);
}

.page-closures .premium-hero {
  background:
    linear-gradient(120deg, rgba(99, 102, 241, 0.16), rgba(236, 72, 153, 0.1)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.83));
}

.page-closures .premium-hero::after {
  background: linear-gradient(135deg, #6366f1, #ec4899);
}

.page-notifications .premium-hero {
  background:
    linear-gradient(120deg, rgba(14, 165, 233, 0.16), rgba(59, 130, 246, 0.1)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.83));
}

.page-notifications .premium-hero::after {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.page-vrps .premium-hero,
.page-managers .premium-hero,
.page-settings .premium-hero {
  background:
    linear-gradient(120deg, rgba(15, 155, 184, 0.14), rgba(100, 116, 139, 0.11)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.83));
}

.page-vrps .premium-hero::after,
.page-managers .premium-hero::after,
.page-settings .premium-hero::after {
  background: linear-gradient(135deg, #0f9bb8, #64748b);
}

.kpi-card {
  border: 1px solid rgba(15, 155, 184, 0.15) !important;
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 155, 184, 0.06), rgba(0, 184, 148, 0.05));
  pointer-events: none;
}

.kpi-card > * {
  position: relative;
  z-index: 1;
}

.title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-right: 0.45rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, rgba(0, 184, 148, 0.18), rgba(15, 155, 184, 0.22));
  color: #0f6e83;
  vertical-align: -0.32rem;
}

.title-icon svg {
  width: 1rem;
  height: 1rem;
}

.card-shadow,
article.bg-white {
  box-shadow: 0 14px 30px rgba(13, 53, 62, 0.09);
}

article.bg-white {
  background: var(--surface) !important;
  border: 1px solid var(--line);
  backdrop-filter: blur(4px);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

article.bg-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(10, 45, 58, 0.13);
  border-color: #bed7d9;
}

article.bg-white > form[method="get"] {
  align-items: end;
  gap: 0.75rem;
}

article.bg-white > form[method="get"] label {
  font-size: 0.79rem;
  font-weight: 700;
  color: #224652;
  letter-spacing: 0.01em;
}

article.bg-white > form[method="get"] .space-y-1 {
  display: grid;
  gap: 0.34rem;
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

.dj-table-wrap {
  border: 1px solid #d8e5ec;
  border-radius: 0.92rem;
  overflow: hidden;
  background: #ffffff;
  isolation: isolate;
}

.dj-table {
  width: 100%;
  min-width: 1120px;
}

.dj-table-fit {
  min-width: 100%;
  table-layout: auto;
}

.dj-table-legacy {
  min-width: 1080px;
}

.dj-table-legacy-compact {
  min-width: 100%;
}

.dj-table thead th {
  padding: 0.72rem 0.62rem;
  border-bottom: 1px solid #dce8ee;
  font-size: 0.72rem;
  color: #48636d;
  background: #eff6f8;
}

.dj-table tbody td {
  padding: 0.68rem 0.62rem;
  border-bottom: 1px solid #e6eef2;
  vertical-align: top;
}

.dj-table tbody tr:hover {
  background: #f7fbfc;
}

.dj-table-fit thead th,
.dj-table-fit tbody td {
  white-space: normal;
}

.dj-table-alert {
  max-width: 860px;
  margin-inline: auto;
}

.dj-table-alert thead th:last-child,
.dj-table-alert tbody td:last-child {
  width: 8.5rem;
}

.cell-code {
  font-family: 'Sora', sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: #163746;
}

.cell-money {
  font-weight: 800;
  color: #0f2740;
}

.cell-date {
  color: #516979;
  font-size: 0.85rem;
  white-space: nowrap;
}

.mini-line {
  border: 1px solid #d9e6ee;
  background: #f8fbfd;
  border-radius: 0.62rem;
  padding: 0.42rem 0.56rem;
}

.mini-line-title {
  font-weight: 700;
  color: #163746;
}

.mini-line-meta {
  color: #5c7383;
  font-size: 0.82rem;
  margin-top: 0.14rem;
}

.password-reveal-row td {
  background: #f2f8ff;
}

.password-reveal-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.62rem 0.7rem;
  border: 1px solid #ccddf0;
  border-radius: 0.62rem;
  background: #ffffff;
}

.password-reveal-label {
  font-size: 0.77rem;
  color: #49677f;
}

.password-reveal-value {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 0.92rem;
  color: #102a43;
  font-weight: 700;
}

.password-copy-btn {
  border: 1px solid #cdd7e2;
  background: #f8fafc;
  color: #334155;
  border-radius: 0.56rem;
  padding: 0.36rem 0.55rem;
  font-size: 0.74rem;
}

.table-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.action-btn {
  border-radius: 0.58rem;
  padding: 0.37rem 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  line-height: 1.15;
  white-space: nowrap;
  border: 1px solid transparent;
}

.action-btn-icon-only {
  width: 2.05rem;
  min-width: 2.05rem;
  height: 2.05rem;
  padding: 0 !important;
  border-radius: 0.62rem;
  justify-content: center;
}

.action-btn-icon-only .btn-icon {
  margin: 0;
}

.action-btn-icon-only .btn-icon svg {
  width: 0.92rem;
  height: 0.92rem;
}

.action-btn-neutral {
  background: #334155;
}

.action-btn-edit {
  background: #0f766e;
}

.action-btn-danger {
  background: #dc2626;
}

.actions-stack {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-left: auto;
}

.table-detail-cell {
  line-height: 1.5;
  padding-top: 0.52rem !important;
  padding-bottom: 0.52rem !important;
}

.detail-chip {
  display: inline-flex !important;
  align-items: center;
  border: 1px solid #d4e4ec;
  border-radius: 9999px;
  background: #f8fbfd;
  padding: 0.12rem 0.58rem;
  margin: 0 0.42rem 0.35rem 0 !important;
  color: #224652;
  font-weight: 600;
}

.table-col-hidden {
  display: table-cell;
}

.table-meta-row-hidden {
  display: table-row;
}

.table-row-details-btn {
  min-width: 3.1rem;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
  justify-content: center;
}

.table-row-details-btn.action-btn-icon-only {
  width: 2.05rem;
  min-width: 2.05rem;
  padding: 0 !important;
}

.dj-table td[data-actions-enhanced="1"],
.dj-table td[data-generated-details-cell="1"] {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  min-width: 8.5rem;
}

.row-details-grid {
  display: grid;
  gap: 0.62rem;
}

.row-details-item {
  border: 1px solid #d8e7ee;
  border-radius: 0.72rem;
  background: #f9fcfd;
  padding: 0.6rem 0.66rem;
}

.row-details-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #456370;
  margin-bottom: 0.18rem;
}

.row-details-value {
  margin: 0;
  color: #173946;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 640px) {
  .table-col-hidden {
    display: none !important;
  }

  .table-meta-row-hidden {
    display: none !important;
  }
}

thead th {
  font-family: 'Sora', sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #4f6b73;
  background: rgba(239, 247, 246, 0.95);
  position: sticky;
  top: 0;
  z-index: 1;
}

table thead tr {
  border-bottom-color: #d5e4e4 !important;
}

tbody tr {
  transition: background-color 160ms ease, transform 160ms ease;
}

tbody tr:hover {
  background-color: rgba(220, 243, 239, 0.34) !important;
}

th,
td {
  border-color: #e0eceb !important;
}

input,
select,
textarea {
  border-color: #ccdbde !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: #12343f !important;
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

input::placeholder,
textarea::placeholder {
  color: #7a8f97;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #43a7bd !important;
  box-shadow: 0 0 0 4px rgba(15, 155, 184, 0.14);
  outline: none;
}

.vrp-search-widget {
  position: relative;
  width: 100%;
  margin-bottom: 0.45rem;
  z-index: 18;
}

.vrp-search-widget.is-open {
  z-index: 260;
}

.vrp-search-input {
  width: 100%;
  border: 1px solid #cddbe4;
  border-radius: 0.72rem;
  padding: 0.56rem 0.72rem;
  font-size: 0.9rem;
  color: #12343f;
  background: #ffffff;
}

.vrp-search-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  border: 1px solid #d6e4ec;
  border-radius: 0.72rem;
  background: #ffffff;
  box-shadow: 0 14px 26px rgba(14, 39, 56, 0.18);
  max-height: 15rem;
  overflow: auto;
  z-index: 260;
}

.vrp-search-widget.is-dropup .vrp-search-panel {
  top: auto;
  bottom: calc(100% + 0.35rem);
}

.vrp-search-open-host {
  position: relative;
  z-index: 120 !important;
  overflow: visible !important;
}

.vrp-search-option {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #edf3f7;
  background: transparent;
  color: #163748;
  text-align: left;
  font-size: 0.86rem;
  padding: 0.58rem 0.72rem;
}

.vrp-search-option:last-child {
  border-bottom: 0;
}

.vrp-search-option:hover,
.vrp-search-option.is-active {
  background: #e8f5fb;
  color: #0b4462;
}

.vrp-search-empty {
  padding: 0.62rem 0.72rem;
  font-size: 0.84rem;
  color: #60758a;
}

.password-with-toggle {
  position: relative;
  width: 100%;
}

.password-with-toggle > input {
  padding-right: 2.6rem !important;
}

.password-toggle-btn {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 0.55rem;
  border: 1px solid #d3e3e5;
  background: #f7fbfc;
  color: #335864;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.password-toggle-btn svg {
  width: 0.95rem;
  height: 0.95rem;
}

button,
a {
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

button:hover,
a:hover {
  filter: saturate(1.05);
}

button:active,
a:active {
  transform: translateY(1px) scale(0.995);
}

.btn-enhanced {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
}

.btn-enhanced .btn-icon {
  width: 0.95rem;
  height: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-enhanced .btn-icon svg {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
}

.action-btn.btn-enhanced {
  align-items: center;
  justify-content: center;
  gap: 0.34rem;
}

.action-btn .btn-icon {
  width: 0.86rem;
  height: 0.86rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.action-btn .btn-icon svg {
  width: 0.86rem;
  height: 0.86rem;
  display: block;
}

.nav-link-icon,
.title-icon,
.sidebar-group-chevron i,
.mobile-topbar [data-lucide],
.desktop-notification-bell [data-lucide] {
  flex-shrink: 0;
}

.nav-link-icon svg,
.title-icon svg,
.sidebar-group-chevron svg,
.mobile-topbar [data-lucide] svg,
.desktop-notification-bell [data-lucide] svg {
  display: block;
}

.table-actions .action-btn,
.actions-stack .action-btn {
  align-items: center;
  justify-content: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 700;
}

.badge-green {
  background: #d1fae5;
  color: #065f46;
}

.badge-yellow {
  background: #fef3c7;
  color: #92400e;
}

.badge-red {
  background: #fee2e2;
  color: #991b1b;
}

.badge-blue {
  background: #dbeafe;
  color: #1e3a8a;
}

[data-modal] {
  backdrop-filter: blur(0.6px);
}

[data-modal]:not(.hidden) {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

[data-modal] > .absolute.inset-0 {
  position: fixed !important;
  background: rgba(15, 23, 42, 0.45) !important;
}

[data-modal] > .relative {
  width: min(92vw, 560px) !important;
  max-width: 560px !important;
  max-height: calc((var(--app-vh, 1vh) * 100) - 2rem);
  overflow: auto;
  margin: auto !important;
  border: 1px solid #dfe6ee !important;
  background: #ffffff !important;
  border-radius: 0.92rem !important;
  box-shadow: 0 24px 52px rgba(2, 12, 27, 0.24) !important;
  padding: 1rem !important;
}

[data-modal] > .relative > .flex.items-center.justify-between:first-child {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #ffffff;
  border-bottom: 1px solid #e7edf3;
  backdrop-filter: none;
  margin: -1rem -1rem 1rem;
  padding: 0.9rem 1rem 0.85rem;
}

[data-modal] [data-modal-close] {
  border: 1px solid #d5e4e5;
}

[data-modal] > .relative > .flex.items-center.justify-between:first-child button[data-modal-close] {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: none !important;
  background: transparent !important;
  color: #98a3b3 !important;
  font-size: 0 !important;
  padding: 0 !important;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

[data-modal] > .relative > .flex.items-center.justify-between:first-child button[data-modal-close]::before {
  content: '\00D7';
  font-size: 1.8rem;
  font-weight: 400;
}

[data-modal] > .relative > .flex.items-center.justify-between:first-child button[data-modal-close]:hover {
  background: #f1f5f9 !important;
  color: #64748b !important;
}

.system-modal .flex.items-start.justify-between button[data-modal-close] {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: none !important;
  background: transparent !important;
  color: #98a3b3 !important;
  font-size: 0 !important;
  padding: 0 !important;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.system-modal .flex.items-start.justify-between button[data-modal-close]::before {
  content: '\00D7';
  font-size: 1.8rem;
  font-weight: 400;
}

.system-modal .flex.items-start.justify-between button[data-modal-close]:hover {
  background: #f1f5f9 !important;
  color: #64748b !important;
}

[data-modal] h3 {
  color: #0b2a52;
}

[data-modal] label {
  color: #0b2a52;
  font-weight: 700;
}

[data-modal] input,
[data-modal] select,
[data-modal] textarea {
  border: 1px solid #d6deea !important;
  border-radius: 0.72rem !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

[data-modal] textarea {
  min-height: 7.5rem;
}

[data-modal] form {
  display: grid;
  gap: 0.75rem;
}

[data-modal] form > button.w-full {
  width: auto !important;
}

[data-modal] form > button {
  min-width: 126px;
  justify-self: end;
  border-radius: 0.72rem !important;
  padding: 0.62rem 1.2rem !important;
}

[data-modal] .modal-line-remove-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

[data-modal] .modal-line-remove-btn {
  width: 2.25rem;
  min-width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.62rem !important;
  border: 1px solid #fecaca !important;
  background: #fff1f2 !important;
  color: #b91c1c !important;
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 1;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

[data-modal] .modal-line-remove-btn:hover {
  border-color: #fda4af !important;
  background: #ffe4e6 !important;
  color: #9f1239 !important;
  transform: translateY(-1px);
}

[data-modal] .modal-line-remove-btn:focus-visible {
  outline: 2px solid #fda4af;
  outline-offset: 2px;
}

[data-modal] .relative {
  animation: modalIn 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal-variant-chip {
  display: none !important;
  align-items: center;
  gap: 0.28rem;
  padding: 0.18rem 0.55rem;
  margin-right: 0.4rem;
  border-radius: 9999px;
  font-size: 0.69rem;
  font-weight: 700;
  vertical-align: middle;
}

.modal-variant-chip svg {
  width: 0.82rem;
  height: 0.82rem;
}

.modal-variant-chip-info {
  color: #0f5f77;
  background: #d8f3fa;
  border: 1px solid #9fdce9;
}

.modal-variant-chip-success {
  color: #046047;
  background: #d5f9e8;
  border: 1px solid #9fe7c5;
}

.modal-variant-chip-warning {
  color: #8a4b08;
  background: #feefc9;
  border: 1px solid #f7d887;
}

.modal-variant-chip-danger {
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.modal-variant-chip-error {
  color: #9f1239;
  background: #ffe4ef;
  border: 1px solid #fec5df;
}

[data-modal].modal-variant-info > .relative {
  border-color: #dfe6ee !important;
  background: #ffffff !important;
}

[data-modal].modal-variant-success > .relative {
  border-color: #dfe6ee !important;
  background: #ffffff !important;
}

[data-modal].modal-variant-warning > .relative {
  border-color: #dfe6ee !important;
  background: #ffffff !important;
}

[data-modal].modal-variant-danger > .relative {
  border-color: #dfe6ee !important;
  background: #ffffff !important;
}

[data-modal].modal-variant-error > .relative {
  border-color: #dfe6ee !important;
  background: #ffffff !important;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.page-reveal-ready {
  opacity: 0;
  transform: translateY(12px);
}

.page-reveal-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 360ms ease, transform 360ms ease;
}

#toast-host {
  display: grid;
  gap: 0.45rem;
}

#toast-host > div {
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 24px rgba(7, 28, 35, 0.24);
  backdrop-filter: blur(4px);
}

.pwa-install-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: min(410px, calc(100vw - 2rem));
  z-index: 68;
}

.pwa-install-panel {
  position: relative;
  border-radius: 1rem;
  border: 1px solid #bfe7ef;
  background:
    radial-gradient(90% 90% at 100% 0%, rgba(15, 155, 184, 0.16) 0%, rgba(15, 155, 184, 0) 60%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 252, 255, 0.95));
  box-shadow: 0 16px 30px rgba(6, 35, 47, 0.2);
  padding: 0.86rem 0.92rem 0.82rem;
}

.pwa-install-banner:not(.hidden) .pwa-install-panel {
  animation: pwaInstallIn 220ms ease-out;
}

.pwa-install-close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: #7a8da3;
  font-size: 1.45rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pwa-install-close:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
}

.pwa-install-head {
  display: flex;
  align-items: flex-start;
  gap: 0.62rem;
  padding-right: 1.8rem;
}

.pwa-install-icon {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.72rem;
  background: rgba(15, 155, 184, 0.14);
  color: #0b6b82;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pwa-install-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.pwa-install-copy {
  min-width: 0;
}

.pwa-install-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #15384a;
  letter-spacing: -0.01em;
}

.pwa-install-text {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: #4b6473;
  line-height: 1.35;
}

.pwa-install-actions {
  margin-top: 0.68rem;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.46rem;
}

.pwa-install-btn {
  border: 1px solid transparent;
  border-radius: 0.7rem;
  padding: 0.38rem 0.72rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.pwa-install-btn-muted {
  background: #f1f5f9;
  border-color: #dbe4ed;
  color: #39516a;
}

.pwa-install-btn-muted:hover {
  background: #e7edf4;
}

.pwa-install-btn-primary {
  background: linear-gradient(120deg, #0f9bb8, #0aa4d4);
  border-color: #0f9bb8;
  color: #f8ffff;
  box-shadow: 0 8px 16px rgba(15, 155, 184, 0.24);
}

.pwa-install-btn-primary:hover {
  filter: brightness(1.03);
}

body[data-sidebar-open="1"] .pwa-install-banner {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

@keyframes pwaInstallIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pwaInstallPulse {
  0%, 100% {
    box-shadow: 0 14px 28px rgba(6, 35, 47, 0.2);
  }
  50% {
    box-shadow: 0 16px 34px rgba(15, 155, 184, 0.34);
  }
}

.auth-shell {
  background:
    radial-gradient(140% 100% at 0% 0%, rgba(0, 184, 148, 0.28) 0%, rgba(0, 184, 148, 0) 65%),
    radial-gradient(130% 110% at 100% 0%, rgba(15, 155, 184, 0.36) 0%, rgba(15, 155, 184, 0) 70%),
    linear-gradient(135deg, #072430 0%, #0b3b4b 50%, #0f6a7b 100%);
}

.auth-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 25px 45px rgba(6, 24, 33, 0.35);
}

.auth-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 9999px;
  filter: blur(44px);
}

.auth-glow-a {
  width: 240px;
  height: 240px;
  background: rgba(0, 184, 148, 0.4);
  top: 9vh;
  left: -70px;
}

.auth-glow-b {
  width: 210px;
  height: 210px;
  background: rgba(245, 158, 11, 0.35);
  right: -70px;
  bottom: 10vh;
}

.login-field {
  position: relative;
}

.login-field i[data-lucide] {
  position: absolute;
  left: 0.75rem;
  top: 2.5rem;
  width: 1rem;
  height: 1rem;
  color: #3f6f7c;
}

.login-field input {
  padding-left: 2.25rem !important;
}

.auth-action {
  background: linear-gradient(90deg, #00b894, #0f9bb8);
  color: #f5fffd !important;
  box-shadow: 0 8px 20px rgba(15, 155, 184, 0.33);
}

.auth-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 155, 184, 0.36);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(180, 202, 205, 0.25);
}

::-webkit-scrollbar-thumb {
  background: rgba(15, 130, 152, 0.42);
  border-radius: 9999px;
}

@media (min-width: 1024px) {
  .desktop-notification-bell {
    display: block;
  }

  .app-sidebar-drawer {
    position: sticky;
    top: 0;
    width: 18rem;
    height: 100dvh;
    overflow-y: auto;
  }
}

@media (max-width: 1023px) {
  :root {
    --mobile-sidebar-width: min(84vw, 320px);
  }

  .mobile-topbar {
    display: block;
  }

  body:not(.js-ready) .mobile-topbar {
    display: none;
  }

  .app-sidebar {
    border-right: none;
    border-bottom: none;
  }

  .app-sidebar-drawer {
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    z-index: auto;
    transform: none;
    transition: none;
    overflow-y: visible;
    overscroll-behavior: auto;
    -webkit-overflow-scrolling: auto;
    padding: 1rem;
  }

  body.js-ready .app-sidebar-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--mobile-sidebar-width);
    max-width: 320px;
    z-index: 80;
    transform: translateX(-110%);
    transition: transform 260ms cubic-bezier(0.22, 0.9, 0.28, 1);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0.9rem;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }

  body.js-ready .app-sidebar-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  body[data-sidebar-open="1"] #mobile-sidebar-overlay {
    left: var(--mobile-sidebar-width) !important;
    right: 0 !important;
  }

  section.space-y-6 > header {
    padding: 0.85rem;
  }

  .kpi-card p.text-2xl {
    font-size: 1.35rem !important;
  }

  .dj-table td .table-actions,
  .dj-table td .actions-stack {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    white-space: nowrap;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0.3rem;
  }

  .dj-table td .table-actions .action-btn,
  .dj-table td .actions-stack .action-btn {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .tx-confirmed-qr-btn {
    display: none !important;
  }

  html {
    font-size: 14px;
  }

  body {
    line-height: 1.35;
  }

  .pwa-install-banner {
    left: 0.62rem;
    right: 0.62rem;
    bottom: 0.62rem;
    width: auto;
    z-index: 62;
  }

  .pwa-install-panel {
    border-radius: 0.86rem;
    padding: 0.74rem 0.75rem 0.7rem;
  }

  .pwa-install-banner:not(.hidden) .pwa-install-panel {
    animation: pwaInstallIn 220ms ease-out, pwaInstallPulse 1800ms ease-in-out 260ms infinite;
  }

  .pwa-install-title {
    font-size: 0.9rem;
  }

  .pwa-install-text {
    font-size: 0.77rem;
  }

  .pwa-install-actions {
    margin-top: 0.6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }

  .pwa-install-btn {
    width: 100%;
    justify-content: center;
  }

  .content-shell {
    padding: 0.75rem !important;
    padding-top: 4.4rem !important;
  }

  .mobile-topbar {
    padding: 0.45rem 0.55rem;
  }

  .mobile-topbar > div {
    border-radius: 0.9rem;
    padding: 0.45rem 0.55rem;
    gap: 0.45rem;
  }

  .mobile-topbar [data-sidebar-open-btn],
  .mobile-topbar a[href*="notifications"] {
    width: 2.1rem !important;
    height: 2.1rem !important;
  }

  .mobile-topbar p.text-sm {
    font-size: 0.95rem !important;
  }

  section.space-y-6 {
    gap: 0.95rem !important;
  }

  section.space-y-6 > header {
    padding: 0.85rem 0.8rem;
    border-radius: 0.9rem;
  }

  section.space-y-6 > header > div:first-child {
    min-width: 0;
  }

  section.space-y-6 > header > div:last-child {
    width: 100%;
  }

  .title-icon {
    width: 1.45rem;
    height: 1.45rem;
    margin-right: 0.33rem;
  }

  .title-icon svg {
    width: 0.86rem;
    height: 0.86rem;
  }

  article.bg-white {
    border-radius: 0.9rem !important;
    padding: 0.75rem !important;
  }

  .app-sidebar .nav-link {
    border-radius: 0.65rem;
    padding: 0.48rem 0.58rem;
    font-size: 0.9rem;
  }

  .app-sidebar .nav-link-icon {
    width: 0.92rem;
    height: 0.92rem;
  }

  .sidebar-group {
    border-radius: 0.8rem;
    padding: 0.34rem;
  }

  .sidebar-group-toggle {
    border-radius: 0.62rem;
    padding: 0.43rem 0.52rem;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
  }

  .app-sidebar .mt-8.pt-6 {
    margin-top: 1rem !important;
    padding-top: 0.7rem !important;
  }

  #mobile-sidebar-overlay {
    z-index: 55 !important;
    background: rgba(2, 8, 23, 0.52) !important;
    backdrop-filter: blur(0.5px);
  }

  input,
  select,
  textarea,
  button {
    font-size: 0.95rem !important;
  }

  [data-modal]:not(.hidden) {
    padding: 0.65rem !important;
    align-items: center !important;
  }

  [data-modal] > .relative {
    width: min(95vw, 520px) !important;
    max-width: 520px !important;
    height: auto !important;
    max-height: calc((var(--app-vh, 1vh) * 100) - 1.3rem) !important;
    margin: auto !important;
    border-radius: 0.92rem !important;
    padding: 0.8rem !important;
  }

  [data-modal] .grid.md\:grid-cols-12,
  [data-modal] .grid.md\:grid-cols-4,
  [data-modal] .grid.md\:grid-cols-3,
  [data-modal] .grid.md\:grid-cols-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
  }

  [data-modal] .md\:col-span-12,
  [data-modal] .md\:col-span-4,
  [data-modal] .md\:col-span-3,
  [data-modal] .md\:col-span-2,
  [data-modal] .md\:col-span-1 {
    grid-column: span 1 / span 1 !important;
  }

  [data-modal] button.w-full {
    min-height: 2.7rem;
  }

  .page-products .flex.gap-2,
  .page-transactions .flex.gap-2,
  .page-reports .flex.gap-2,
  .page-dashboard .flex.gap-2 {
    flex-wrap: wrap;
  }

  .dj-table-wrap {
    border-radius: 0.82rem;
  }

  .dj-table {
    min-width: 100%;
    table-layout: fixed;
  }

  .dj-table-fit {
    table-layout: auto;
  }

  .dj-table-alert {
    max-width: 100%;
  }

  .dj-table thead th,
  .dj-table tbody td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dj-table-fit thead th,
  .dj-table-fit tbody td {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .dj-table td[data-generated-details-cell="1"] {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  section.space-y-6 > header .flex.gap-2 {
    width: 100%;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem !important;
  }

  section.space-y-6 > header .flex.gap-2 > * {
    width: 100%;
    justify-content: center;
  }

  section.space-y-6 > header > .flex.items-center.gap-2,
  section.space-y-6 > header > .flex.gap-2,
  section.space-y-6 > header > .grid {
    width: 100%;
  }

  .page-help-summary {
    padding: 0.62rem 0.68rem;
    gap: 0.55rem;
  }

  .page-help-title {
    font-size: 0.88rem;
  }

  .page-help-toggle {
    font-size: 0.68rem;
    padding: 0.18rem 0.5rem;
  }

  .page-help-body {
    padding: 0.64rem 0.68rem 0.72rem;
  }
}

.system-modal:not(.hidden) {
  align-items: center !important;
}

.system-modal .system-modal-panel {
  width: min(94vw, 460px) !important;
  max-height: calc((var(--app-vh, 1vh) * 100) - 2rem);
  margin: auto !important;
  border-radius: 0.92rem !important;
  border: 1px solid #dfe6ee !important;
  background: #ffffff !important;
  padding: 1rem !important;
}

.system-modal.system-modal-variant-info .system-modal-panel {
  border-color: #dfe6ee !important;
}

.system-modal.system-modal-variant-success .system-modal-panel {
  border-color: #dfe6ee !important;
  background: #ffffff !important;
}

.system-modal.system-modal-variant-warning .system-modal-panel {
  border-color: #dfe6ee !important;
  background: #ffffff !important;
}

.system-modal.system-modal-variant-danger .system-modal-panel {
  border-color: #dfe6ee !important;
  background: #ffffff !important;
}

.system-modal.system-modal-variant-error .system-modal-panel {
  border-color: #dfe6ee !important;
  background: #ffffff !important;
}

.system-modal .system-modal-actions {
  margin-top: 0.75rem;
  display: flex !important;
  justify-content: flex-end;
  gap: 0.65rem;
}

.system-modal .system-modal-actions button {
  min-height: 2.6rem;
  width: auto !important;
  min-width: 124px;
  border-radius: 0.72rem !important;
}

#system-modal-cancel {
  background: #6b7280 !important;
  color: #ffffff !important;
}

#system-modal-confirm {
  background: #2563eb !important;
  color: #ffffff !important;
}

@media (min-width: 1024px) {
  html {
    font-size: 13px;
  }

  section.space-y-6 > header {
    padding: 0.82rem 1rem;
  }

  section.space-y-6 > header h1.text-2xl {
    font-size: 1.56rem !important;
  }

  article.bg-white {
    padding: 0.88rem !important;
  }

  .kpi-card p.text-2xl {
    font-size: 1.42rem !important;
  }

  .app-sidebar .nav-link {
    font-size: 0.92rem;
    padding: 0.5rem 0.64rem;
  }

  .sidebar-group-toggle {
    font-size: 0.62rem;
    padding: 0.44rem 0.55rem;
  }

  .dj-table thead th {
    font-size: 0.66rem;
    padding: 0.58rem 0.52rem;
  }

  .dj-table tbody td {
    font-size: 0.84rem;
    padding: 0.52rem 0.52rem;
  }

  .cell-date {
    font-size: 0.79rem;
  }

  .mini-line-title {
    font-size: 0.85rem;
  }

  .mini-line-meta {
    font-size: 0.76rem;
  }

  input,
  select,
  textarea,
  button {
    font-size: 0.88rem !important;
  }

  .action-btn {
    font-size: 0.74rem;
    padding: 0.3rem 0.5rem;
  }

  .action-btn-icon-only {
    width: 1.9rem;
    min-width: 1.9rem;
    height: 1.9rem;
    padding: 0 !important;
  }

  .table-row-details-btn.action-btn-icon-only {
    width: 1.9rem;
    min-width: 1.9rem;
    height: 1.9rem;
  }

  .action-btn .btn-icon {
    width: 0.82rem;
    height: 0.82rem;
  }

  .action-btn .btn-icon svg {
    width: 0.82rem;
    height: 0.82rem;
  }

  [data-modal] > .relative {
    max-width: min(94vw, 900px) !important;
  }
}

@media (max-width: 640px) {
  .system-modal .system-modal-panel {
    height: auto !important;
    max-height: calc((var(--app-vh, 1vh) * 100) - 1rem) !important;
    border-radius: 0.9rem !important;
    padding: 0.95rem !important;
  }
}
