@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap");

/* ORCA — OpenWA-inspired business shell (default: light, accent: blue) */
:root,
[data-theme="light"] {
  color-scheme: light;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: color-mix(in srgb, var(--primary) 14%, transparent);
  --bg-light: #f1f5f9;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --error: #ef4444;
  --success: #16a34a;
  --warning: #d97706;
  --info: #2563eb;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --radius: 10px;
  --sidebar-width: 260px;
  --sidebar-collapsed: 72px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-soft: color-mix(in srgb, var(--primary) 18%, transparent);
  --bg-light: #0f172a;
  --bg-white: #1e293b;
  --bg-card: #1e293b;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --border: #334155;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  margin: 0;
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

h1, h2, h3, h4 { margin: 0; color: var(--text-primary); }
h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.125rem; font-weight: 700; }
h3 { font-size: 0.95rem; font-weight: 600; }

.eyebrow {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Layout */
.layout {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: width 0.25s ease;
}

.sidebar.collapsed { width: var(--sidebar-collapsed); }

.sidebar-header {
  min-height: 72px;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.sidebar-brand { overflow: hidden; white-space: nowrap; }
.brand-name { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; }
.brand-version { font-size: 0.65rem; color: var(--text-muted); margin-top: 2px; }

.sidebar.collapsed .sidebar-brand,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .footer-text,
.sidebar.collapsed .theme-label { display: none; }

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.nav-section {
  margin: 0.75rem 0 0.35rem;
  padding: 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sidebar.collapsed .nav-section { display: none; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: 0.15s ease;
  white-space: nowrap;
}

.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.85; }

.nav-item:hover {
  background: var(--bg-light);
  color: var(--text-primary);
  text-decoration: none;
}

.nav-item.active {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}

.app-frame {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  min-height: 100dvh;
  min-width: 0;
  width: 100%;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  transition: margin-left 0.25s ease;
  background: var(--bg-light);
  overflow-x: hidden;
}

.app-frame.expanded { margin-left: var(--sidebar-collapsed); }

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.app-header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
}

.app-header-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.app-header-titles { min-width: 0; }

.app-header-titles h1 {
  font-size: 1.15rem;
  line-height: 1.3;
}

.app-header-subtitle {
  margin: 0.15rem 0 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { opacity: 0.55; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: 0.15s ease;
  padding: 0;
}

.icon-btn:hover {
  background: var(--bg-light);
  color: var(--text-primary);
  border-color: color-mix(in srgb, var(--primary) 25%, var(--border));
}

.desktop-sidebar-btn { display: inline-flex; }

.theme-icon-sun { display: none; }
[data-theme="dark"] .theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: block; }

.user-menu { position: relative; }

.user-avatar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-white);
  cursor: pointer;
  transition: 0.15s ease;
}

.user-avatar-btn:hover,
.user-menu.open .user-avatar-btn {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.user-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #6366f1);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 220px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: 0.15s ease;
  z-index: 200;
  overflow: hidden;
}

.user-menu.open .user-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-menu-head {
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-light);
}

.user-menu-head strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.user-menu-head span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.user-menu-items { padding: 0.35rem; }

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: calc(var(--radius) - 2px);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  text-decoration: none;
  transition: 0.15s ease;
}

.user-menu-item:hover {
  background: var(--bg-light);
  color: var(--text-primary);
  text-decoration: none;
}

.user-menu-item-danger:hover {
  background: rgba(239, 68, 68, 0.08);
  color: var(--error);
}

.app-header--compact {
  padding: 0.45rem 0.65rem;
}

.app-header--compact .app-header-left {
  flex: 0;
}

.app-header--compact .app-header-right {
  margin-left: auto;
}

.app-content {
  flex: 1;
  padding: 1.25rem 1.75rem 1rem;
  max-width: 1600px;
  width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.app-content--grid {
  padding: 0.25rem 0.35rem 0.15rem;
  max-width: none;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  padding: 0.1rem 0.2rem 0.35rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.page-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.page-breadcrumb a:hover {
  color: var(--primary);
}

.page-breadcrumb .sep {
  opacity: 0.5;
  user-select: none;
}

.page-breadcrumb .current {
  color: var(--text-primary);
  font-weight: 600;
}

.app-frame:has(.app-content--grid) .app-footer {
  padding: 0.35rem 0.65rem;
  font-size: 0.72rem;
}

.app-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.25rem;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.76rem;
}

.btn-sm { padding: 0.45rem 0.75rem; font-size: 0.8rem; }

.mobile-menu-btn { display: none; }

@media (max-width: 900px) {
  .desktop-sidebar-btn { display: none; }
  .mobile-menu-btn { display: inline-flex; }
}

.card-body-muted {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

.card-body-muted p { margin: 0 0 0.75rem; }
.card-body-muted p:last-child { margin-bottom: 0; }

.card-body-grid { padding-top: 0.75rem; }

.kpi-value-sm { font-size: 1.05rem; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.card-body { padding: 1.1rem 1.25rem; }

.card-header {
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}

.kpi-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.kpi-value {
  margin-top: 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
}

.kpi-sub { margin-top: 0.2rem; font-size: 0.78rem; color: var(--text-secondary); }

/* Dashboard */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}

.stat-icon-pending {
  background: color-mix(in srgb, var(--info) 12%, transparent);
  color: var(--info);
}

.stat-icon-approval {
  background: color-mix(in srgb, var(--warning) 12%, transparent);
  color: var(--warning);
}

.stat-icon-paid {
  background: color-mix(in srgb, var(--success) 12%, transparent);
  color: var(--success);
}

.stat-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-value {
  margin-top: 0.2rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.stat-hint {
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.roadmap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.roadmap-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.roadmap-dot {
  width: 10px;
  height: 10px;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: var(--border);
  flex-shrink: 0;
}

.roadmap-item-done .roadmap-dot {
  background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 20%, transparent);
}

.roadmap-item strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.roadmap-item span {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

@media (max-width: 1100px) {
  .dashboard-stats { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: 0.15s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }

.btn-secondary {
  background: var(--bg-white);
  color: var(--text-secondary);
  border-color: var(--border);
}

.btn-secondary:hover { background: var(--bg-light); color: var(--text-primary); }

.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.875rem;
  border: 1px solid;
}

.alert-error {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  color: #b91c1c;
}

.alert-success {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.25);
  color: #15803d;
}

/* Auth */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--primary) 8%, transparent), transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(99, 102, 241, 0.06), transparent 40%),
    var(--bg-light);
}

.auth-card {
  width: min(420px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.form-group { margin-bottom: 1rem; }

label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

input[type="text"],
input[type="password"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-white);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: 0.15s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.auth-footer {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* DevExtreme grid — compact theme + shell colors */
.orca-grid-host {
  min-height: 520px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  touch-action: pan-x pan-y;
}

.app-content--grid .orca-grid-host {
  min-height: calc(100dvh - 8.25rem);
}

.orca-grid-host .dx-datagrid {
  width: 100% !important;
  max-width: 100%;
  color: var(--text-primary);
  background: var(--bg-card);
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.orca-grid-host .dx-datagrid-headers .dx-datagrid-text-content {
  font-weight: 600;
  color: var(--text-secondary);
}

/* Toolbar + group panel — integrated with grid card, not floating */
.orca-grid-host .dx-datagrid-header-panel,
.orca-grid-host .dx-datagrid-group-panel {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.orca-grid-host .dx-datagrid-group-panel {
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  min-height: 2rem;
  padding: 0.2rem 0.45rem;
}

.orca-grid-host .dx-datagrid-group-panel .dx-group-panel-message {
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
}

.orca-grid-host .dx-toolbar {
  background: var(--bg-card);
  padding: 0.2rem 0.35rem;
  margin: 0;
  min-height: 2.1rem;
  border-bottom: none;
}

.orca-grid-host .dx-datagrid-header-panel {
  padding: 0;
  margin: 0;
}

.orca-grid-host .dx-datagrid-header-panel .dx-toolbar-items-container {
  padding: 0 0.15rem;
}

.orca-grid-host .dx-toolbar .dx-button {
  min-height: 1.75rem;
  min-width: 1.75rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  box-shadow: none;
}

.orca-grid-host .dx-toolbar .dx-button .dx-icon {
  color: var(--text-secondary);
}

.orca-grid-host .dx-toolbar .dx-button.dx-state-hover {
  background: var(--bg-light);
  border-color: color-mix(in srgb, var(--primary) 25%, var(--border));
}

.orca-grid-host .dx-toolbar .dx-button.dx-state-hover .dx-icon {
  color: var(--text-primary);
}

.orca-grid-host .dx-toolbar .dx-texteditor {
  border-radius: 6px;
  border-color: var(--border);
  background: var(--bg-white);
}

.orca-grid-host .dx-toolbar .dx-texteditor.dx-state-hover,
.orca-grid-host .dx-toolbar .dx-texteditor.dx-state-focused {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}

.orca-grid-host .dx-toolbar .dx-texteditor-input {
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--text-primary);
}

.orca-grid-host .dx-datagrid-headers {
  border-top: none;
  background: var(--bg-light);
}

.orca-grid-host .dx-datagrid-rowsview {
  background: var(--bg-card);
}

.orca-grid-host .dx-datagrid-borders > .dx-datagrid-headers,
.orca-grid-host .dx-datagrid-borders > .dx-datagrid-rowsview,
.orca-grid-host .dx-datagrid-borders > .dx-datagrid-total-footer {
  border-left: none;
  border-right: none;
}

[data-theme="dark"] .dx-datagrid,
[data-theme="dark"] .dx-toolbar,
[data-theme="dark"] .dx-popup-content {
  background-color: var(--bg-card) !important;
  color: var(--text-primary) !important;
}

/* Mobile */
.sidebar-overlay { display: none; }

.mobile-header { display: none; }

@media (max-width: 900px) {
  html, body { font-size: 15px; }

  .sidebar {
    transform: translateX(-100%);
    width: min(280px, 88vw);
    box-shadow: var(--shadow-lg);
  }

  .sidebar.collapsed { width: min(280px, 88vw); }

  .sidebar.mobile-open { transform: translateX(0); }

  .app-frame,
  .app-frame.expanded {
    margin-left: 0;
    width: 100%;
    max-width: 100vw;
  }

  .mobile-menu-btn { display: inline-flex; align-items: center; justify-content: center; }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 95;
  }

  .sidebar-overlay.show { display: block; }

  .app-content { padding: 0.85rem 0.75rem 0.75rem; }
  .app-header {
    padding: 0.65rem 0.75rem;
    gap: 0.5rem;
  }
  .app-footer {
    padding: 0.65rem 0.75rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .app-header-titles h1 {
    font-size: 1rem;
    line-height: 1.25;
  }

  .app-header-subtitle { display: none; }

  .icon-btn,
  .user-avatar-btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .app-content--grid { padding: 0.2rem 0.25rem 0.1rem; }

  .orca-grid-host {
    min-height: calc(100dvh - 10rem);
  }

  .app-content--grid .orca-grid-host {
    min-height: calc(100dvh - 7rem);
  }

  .orca-grid-host .dx-datagrid {
    font-size: 13px;
  }

  .orca-grid-host .dx-scrollable-container,
  .orca-grid-host .dx-scrollable-content {
    -webkit-overflow-scrolling: touch;
  }

  .orca-grid-host .dx-scrollbar-horizontal {
    height: 0.65rem;
  }

  .orca-grid-host .dx-scrollbar-horizontal .dx-scrollable-scroll {
    height: 0.45rem;
  }

  .orca-grid-host .dx-toolbar .dx-button {
    min-width: 36px;
    min-height: 36px;
  }

  .orca-grid-host .dx-toolbar .orca-column-size-btn .dx-button-text {
    display: none;
  }

  .orca-edit-popup .dx-overlay-content {
    width: calc(100vw - 1.5rem) !important;
    max-width: 480px;
  }
}

@media (max-width: 480px) {
  html, body { font-size: 16px; }

  .breadcrumb { display: none; }

  .app-content { padding: 0.75rem 0.65rem; }

  .auth-page { padding: 1rem; }

  .auth-card { padding: 1.35rem; }
}
