/*
 * Zill Trade ERP Responsive Refresh v1.3.2
 * UI-only override for the existing ZTI ERP classes.
 *
 * Principles:
 * - no gradients, decorative motion, or excessive card treatment
 * - role/task-first hierarchy
 * - accessible contrast and visible keyboard focus
 * - mobile-first layouts with safe horizontal table scrolling
 * - no changes to data, forms, endpoints, permissions, or business rules
 */

:root {
  --zti-refresh-ink: #172b4d;
  --zti-refresh-ink-soft: #344563;
  --zti-refresh-muted: #5e6c84;
  --zti-refresh-subtle: #f7f9fc;
  --zti-refresh-page: #f4f6fa;
  --zti-refresh-surface: #ffffff;
  --zti-refresh-border: #dfe5ee;
  --zti-refresh-border-strong: #c8d2e1;
  --zti-refresh-brand: #2457b8;
  --zti-refresh-brand-dark: #173f8b;
  --zti-refresh-success: #147a55;
  --zti-refresh-warning: #946200;
  --zti-refresh-danger: #b42318;
  --zti-refresh-radius: 10px;
  --zti-refresh-focus: 0 0 0 3px rgba(36, 87, 184, .22);
}

html {
  overflow-x: hidden;
}

body.zti-erp-body {
  background: var(--zti-refresh-page);
  color: var(--zti-refresh-ink);
  font-family: "Manrope", "Noto Sans Bengali", "Noto Sans", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.zti-erp-body :where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--zti-refresh-brand) !important;
  outline-offset: 2px;
  box-shadow: var(--zti-refresh-focus) !important;
}

body.zti-erp-body :where(button, a) {
  touch-action: manipulation;
}

/* Shared Zill Trade monogram for sidebar, sign-in and compact brand marks. */
.zti-brand-mark,
.zti-login-mark,
.zti-login-mark-small,
.zti-custom-logo-link img,
.custom-logo {
  background: #fff var(--zti-refresh-logo) center / contain no-repeat !important;
}

.zti-brand-mark,
.zti-login-mark,
.zti-login-mark-small {
  font-size: 0 !important;
  color: transparent !important;
  overflow: hidden;
}

.zti-brand-mark {
  border: 1px solid rgba(255, 255, 255, .68) !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .16) !important;
}

.zti-login-mark {
  width: 82px !important;
  height: 82px !important;
  border-radius: 0 !important;
  border: 1px solid rgba(255, 255, 255, .7) !important;
}

.zti-login-mark-small {
  border-radius: 7px !important;
  border: 1px solid #d7dfeb !important;
}

.zti-custom-logo-link img,
.custom-logo {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Shell: reduce visual noise and keep the working area readable. */
.zti-sidebar {
  background: #14233d !important;
  border-right: 1px solid #263858 !important;
  box-shadow: none !important;
}

.zti-sidebar-brand {
  border-bottom-color: #2a3b5a !important;
}

.zti-nav a {
  border-radius: 8px !important;
  color: #c8d3e5 !important;
  font-weight: 600 !important;
}

.zti-nav a:hover {
  background: #203554 !important;
  color: #fff !important;
}

.zti-nav a.is-active {
  background: #28518f !important;
  color: #fff !important;
}

.zti-main {
  min-width: 0;
}

.zti-topbar {
  min-width: 0;
  background: rgba(255, 255, 255, .98) !important;
  border-bottom-color: var(--zti-refresh-border) !important;
  box-shadow: 0 1px 4px rgba(24, 43, 77, .04) !important;
}

.zti-content,
.zti-workspace-content {
  width: 100%;
  max-width: 1480px !important;
  margin-inline: auto !important;
  padding-inline: clamp(14px, 3vw, 32px) !important;
}

.zti-workspace-content {
  padding-block: clamp(18px, 3vw, 30px) !important;
}

/* Headings and panels: a calm operational hierarchy rather than dashboard
 * decoration. */
.zti-dashboard-hero h1,
.zti-workspace-heading h1,
.zti-front-admin-screen .zti-page-head h1,
.zti-front-admin-screen .wrap > h1 {
  color: var(--zti-refresh-ink) !important;
  letter-spacing: -.035em !important;
  font-weight: 760 !important;
}

.zti-dashboard-hero p,
.zti-workspace-heading p,
.zti-page-head p,
.zti-front-admin-screen .description {
  color: var(--zti-refresh-muted) !important;
}

.zti-modern-panel,
.zti-front-card,
.zti-front-admin-screen .zti-panel,
.zti-front-admin-screen .zti-card,
.zti-front-admin-screen .zti-kpi,
.zti-front-admin-screen .zti-kpi-card {
  background: var(--zti-refresh-surface) !important;
  border: 1px solid var(--zti-refresh-border) !important;
  border-radius: var(--zti-refresh-radius) !important;
  box-shadow: 0 2px 8px rgba(24, 43, 77, .035) !important;
}

.zti-modern-panel:hover,
.zti-front-card:hover {
  box-shadow: 0 4px 14px rgba(24, 43, 77, .055) !important;
}

.zti-page-head,
.zti-workspace-heading,
.zti-front-card-head,
.zti-panel-head {
  min-width: 0;
}

.zti-page-head .button-primary,
.zti-workspace-heading .button-primary,
.zti-front-card-head .button-primary {
  min-height: 42px !important;
  padding-inline: 16px !important;
}

/* KPI strip: make figures scannable without decorative gradients. */
.zti-executive-kpis,
.zti-workspace-content .zti-core-kpis,
.zti-front-admin-screen .zti-kpi-grid {
  gap: 0 !important;
  border: 1px solid var(--zti-refresh-border) !important;
  border-radius: var(--zti-refresh-radius) !important;
  overflow: hidden;
  background: var(--zti-refresh-surface);
}

.zti-metric-card,
.zti-workspace-content .zti-core-kpis > div,
.zti-front-admin-screen .zti-kpi-card,
.zti-front-admin-screen .zti-kpi {
  border: 0 !important;
  border-right: 1px solid var(--zti-refresh-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.zti-metric-card:last-child,
.zti-workspace-content .zti-core-kpis > div:last-child,
.zti-front-admin-screen .zti-kpi-card:last-child,
.zti-front-admin-screen .zti-kpi:last-child {
  border-right: 0 !important;
}

.zti-metric-primary {
  background: var(--zti-refresh-brand-dark) !important;
  border-color: var(--zti-refresh-brand-dark) !important;
}

.zti-metric-card::after {
  display: none !important;
}

/* Forms: consistent, touch-friendly controls. */
.zti-workspace-content :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea),
.zti-front-admin-screen :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 44px !important;
  border: 1px solid var(--zti-refresh-border-strong) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--zti-refresh-ink) !important;
  padding: 9px 12px !important;
  box-shadow: none !important;
}

.zti-workspace-content :where(input, select, textarea):hover,
.zti-front-admin-screen :where(input, select, textarea):hover {
  border-color: #9eafc6 !important;
}

.zti-workspace-content :where(input, select, textarea):focus,
.zti-front-admin-screen :where(input, select, textarea):focus {
  border-color: var(--zti-refresh-brand) !important;
  box-shadow: var(--zti-refresh-focus) !important;
}

.zti-front-admin-screen label,
.zti-workspace-content label {
  color: var(--zti-refresh-ink-soft) !important;
  font-weight: 650 !important;
}

.zti-workspace-content :where(.button, button, input[type="submit"]),
.zti-front-admin-screen :where(.button, button, input[type="submit"]) {
  min-height: 42px;
  border-radius: 8px !important;
  font-weight: 700;
}

.zti-workspace-content .button-primary,
.zti-front-admin-screen .button-primary,
.zti-front-primary {
  background: var(--zti-refresh-brand) !important;
  border-color: var(--zti-refresh-brand) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.zti-workspace-content .button-primary:hover,
.zti-front-admin-screen .button-primary:hover,
.zti-front-primary:hover {
  background: var(--zti-refresh-brand-dark) !important;
  border-color: var(--zti-refresh-brand-dark) !important;
}

.zti-status-danger,
.zti-status-cancelled,
.zti-status-rejected {
  background: #fff0ee !important;
  color: var(--zti-refresh-danger) !important;
}

/* Tables remain complete on phones: no data is hidden; the wrapper scrolls. */
.zti-modern-table-wrap,
.zti-core-table,
.zti-table-wrap,
.zti-front-admin-screen .zti-table-wrap {
  max-width: 100%;
  overflow-x: auto !important;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #aebbd0 transparent;
  border: 1px solid var(--zti-refresh-border);
  border-radius: 8px;
}

.zti-modern-table,
.zti-core-table table,
.zti-front-admin-screen table.widefat {
  min-width: 680px;
  border-collapse: collapse !important;
}

.zti-modern-table th,
.zti-core-table th,
.zti-front-admin-screen table.widefat th {
  background: var(--zti-refresh-subtle) !important;
  color: var(--zti-refresh-muted) !important;
  border-bottom: 1px solid var(--zti-refresh-border) !important;
  font-size: 10px !important;
  font-weight: 750 !important;
  letter-spacing: .045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.zti-modern-table td,
.zti-core-table td,
.zti-front-admin-screen table.widefat td {
  color: var(--zti-refresh-ink-soft) !important;
  border-bottom: 1px solid #edf0f5 !important;
  font-size: 12px !important;
  vertical-align: middle;
}

.zti-modern-table tbody tr:hover td,
.zti-core-table tbody tr:hover td,
.zti-front-admin-screen table.widefat tbody tr:hover td {
  background: #f8fbff !important;
}

/* Status uses meaning, not decoration. */
.zti-status-delivered,
.zti-status-completed {
  background: #e8f6ef !important;
  color: var(--zti-refresh-success) !important;
}

.zti-status-submitted {
  background: #fff4d8 !important;
  color: var(--zti-refresh-warning) !important;
}

/* Prevent accidental viewport overflow from long labels, maps, and form rows. */
.zti-front-admin-screen,
.zti-front-admin-screen .wrap,
.zti-front-admin-screen .zti-admin,
.zti-front-admin-screen .zti-core-module,
.zti-workspace-content {
  min-width: 0 !important;
  max-width: 100% !important;
}

.zti-front-form-grid,
.zti-form-grid,
.zti-two-col,
.zti-three-col,
.zti-grid-2,
.zti-grid-4 {
  min-width: 0;
}

/* Tablet: keep two useful columns where there is room, but do not squeeze
 * transactional forms. */
@media (max-width: 1100px) {
  .zti-content,
  .zti-workspace-content {
    padding-inline: 20px !important;
  }

  .zti-executive-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .zti-front-form-grid,
  .zti-form-grid,
  .zti-three-col,
  .zti-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Phone: navigation becomes an overlay, cards stack, and all controls remain
 * thumb-sized. */
@media (max-width: 900px) {
  .zti-sidebar {
    width: min(86vw, 310px) !important;
  }

  .zti-main {
    width: 100% !important;
    margin-left: 0 !important;
  }

  .zti-front-admin-screen .zti-page-head,
  .zti-front-admin-screen .zti-admin > :first-child {
    max-width: 100%;
  }

  .zti-topbar {
    min-height: 62px;
    padding-inline: 14px !important;
  }

  .zti-content,
  .zti-workspace-content {
    padding: 18px 14px 88px !important;
  }

  .zti-front-form-grid,
  .zti-form-grid,
  .zti-two-col,
  .zti-three-col,
  .zti-grid-2,
  .zti-grid-4 {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .zti-front-card,
  .zti-front-admin-screen .zti-panel,
  .zti-modern-panel {
    padding: 15px !important;
  }

  .zti-workspace-content .zti-core-table,
  .zti-front-admin-screen .zti-table-wrap,
  .zti-front-admin-screen .zti-core-table {
    max-width: 100%;
    overflow-x: auto !important;
  }

  .zti-front-admin-screen table.widefat {
    display: block;
    max-width: 100%;
    overflow-x: auto !important;
  }

  .zti-front-actions {
    justify-content: stretch !important;
  }

  .zti-front-actions > *,
  .zti-front-primary {
    width: 100%;
  }

  .zti-executive-kpis,
  .zti-workspace-content .zti-core-kpis,
  .zti-front-admin-screen .zti-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .zti-metric-card,
  .zti-workspace-content .zti-core-kpis > div,
  .zti-front-admin-screen .zti-kpi-card,
  .zti-front-admin-screen .zti-kpi {
    border-right: 0 !important;
    border-bottom: 1px solid var(--zti-refresh-border) !important;
  }

  .zti-metric-card:nth-last-child(-n + 2),
  .zti-workspace-content .zti-core-kpis > div:nth-last-child(-n + 2),
  .zti-front-admin-screen .zti-kpi-card:nth-last-child(-n + 2),
  .zti-front-admin-screen .zti-kpi:nth-last-child(-n + 2) {
    border-bottom: 0 !important;
  }
}

@media (max-width: 520px) {
  .zti-content,
  .zti-workspace-content {
    padding-inline: 10px !important;
  }

  .zti-executive-kpis,
  .zti-workspace-content .zti-core-kpis,
  .zti-front-admin-screen .zti-kpi-grid {
    grid-template-columns: 1fr !important;
  }

  .zti-metric-card,
  .zti-workspace-content .zti-core-kpis > div,
  .zti-front-admin-screen .zti-kpi-card,
  .zti-front-admin-screen .zti-kpi {
    border-bottom: 1px solid var(--zti-refresh-border) !important;
  }

  .zti-metric-card:last-child,
  .zti-workspace-content .zti-core-kpis > div:last-child,
  .zti-front-admin-screen .zti-kpi-card:last-child,
  .zti-front-admin-screen .zti-kpi:last-child {
    border-bottom: 0 !important;
  }

  .zti-modern-table,
  .zti-core-table table,
  .zti-front-admin-screen table.widefat {
    min-width: 620px;
  }

  .zti-panel-head,
  .zti-front-card-head,
  .zti-workspace-heading {
    align-items: flex-start !important;
    gap: 10px;
  }

  .zti-page-head,
  .zti-workspace-heading,
  .zti-front-card-head,
  .zti-panel-head {
    flex-direction: column;
  }

  .zti-page-head > :last-child,
  .zti-workspace-heading > :last-child,
  .zti-front-card-head > :last-child,
  .zti-panel-head > :last-child {
    width: 100%;
  }

  .zti-page-head .button,
  .zti-page-head .button-primary,
  .zti-workspace-heading .button,
  .zti-workspace-heading .button-primary,
  .zti-front-card-head .button,
  .zti-front-card-head .button-primary {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .zti-sidebar,
  .zti-topbar,
  .zti-mobile-bottom-nav {
    display: none !important;
  }

  .zti-main {
    margin-left: 0 !important;
  }

  .zti-content,
  .zti-workspace-content {
    max-width: none !important;
    padding: 0 !important;
  }

  .zti-modern-table-wrap,
  .zti-core-table,
  .zti-table-wrap {
    overflow: visible !important;
    border: 0 !important;
  }
}

/* Final live-QA guard for wide transactional tables. The data remains complete;
 * only the table viewport scrolls horizontally. */
.zti-partner-list-table-wrap,
.zti-modern-table-wrap {
  max-width: 100% !important;
  overflow-x: auto !important;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.zti-partner-list-table-wrap > table,
.zti-modern-table-wrap > table {
  width: max-content;
  min-width: 680px;
}

@media (max-width: 1100px) {
  .zti-partner-list-table-wrap,
  .zti-modern-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ================================================================
   v1.3.0 Enterprise product system

   This layer is intentionally last. The parent theme owns the markup and
   workflows; these rules only establish a more deliberate visual language:
   typographic hierarchy, operational density, semantic emphasis and calm
   responsive behavior. No gradients, decorative surfaces or data changes.
   ================================================================ */
:root {
  --zti-refresh-ink: #172a43;
  --zti-refresh-ink-soft: #334861;
  --zti-refresh-muted: #66768b;
  --zti-refresh-faint: #8a98a9;
  --zti-refresh-page: #f5f7fa;
  --zti-refresh-surface: #ffffff;
  --zti-refresh-subtle: #f8fafc;
  --zti-refresh-border: #dce3eb;
  --zti-refresh-border-strong: #c2cedb;
  --zti-refresh-brand: #2459a8;
  --zti-refresh-brand-dark: #183f7d;
  --zti-refresh-brand-soft: #edf3fb;
  --zti-refresh-success: #176b4d;
  --zti-refresh-warning: #875b0a;
  --zti-refresh-danger: #a33a32;
  --zti-refresh-radius: 10px;
  --zti-refresh-focus: 0 0 0 3px rgba(36, 89, 168, .18);
   --zti-refresh-font: "Manrope", "Noto Sans Bengali", "Noto Sans", "Segoe UI", Arial, sans-serif;
}

html {
  overflow-x: clip;
}

body.zti-erp-body {
  background: var(--zti-refresh-page);
  color: var(--zti-refresh-ink);
  font-family: var(--zti-refresh-font);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -.003em;
  font-optical-sizing: auto;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.zti-erp-body :where(h1, h2, h3, h4, p, strong, small, label, th, td, a, button, input, select, textarea) {
  font-family: inherit;
}

body.zti-erp-body :where(h1, h2, h3, h4, p) {
  margin-block-start: 0;
}

body.zti-erp-body :where(button, input, select, textarea) {
  font-size: inherit;
}

body.zti-erp-body :where(.zti-metric-card > strong, .zti-workforce-grid strong, .zti-target-numbers strong, .zti-modern-table td strong) {
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -.025em;
}

/* The shell should read as a dependable work instrument, not a hero graphic. */
.zti-sidebar {
  width: 248px !important;
  background: #12243d !important;
  border-right: 1px solid #263a58 !important;
  box-shadow: none !important;
}

:root {
  --zti-sidebar-width: 248px;
}

.zti-sidebar-brand {
  height: 76px !important;
  padding-inline: 16px !important;
  border-bottom: 1px solid #293d5b !important;
}

.zti-brand-mark {
  width: 42px !important;
  height: 42px !important;
  flex-basis: 42px !important;
  border-radius: 7px !important;
  box-shadow: none !important;
}

.zti-brand-copy strong {
  font-size: 14px !important;
  font-weight: 720 !important;
  letter-spacing: -.01em !important;
}

.zti-brand-copy span {
  margin-top: 3px !important;
  color: #91a3bc !important;
  font-size: 10px !important;
  letter-spacing: .01em;
}

.zti-nav {
  padding: 13px 10px 18px !important;
}

.zti-nav-section {
  padding: 14px 10px 6px !important;
  color: #7388a7 !important;
  font-size: 9px !important;
  font-weight: 760 !important;
  letter-spacing: .14em !important;
}

.zti-nav a {
  min-height: 40px !important;
  margin-block: 1px !important;
  padding: 8px 10px !important;
  border: 1px solid transparent !important;
  border-radius: 7px !important;
  color: #c2cedd !important;
  font-size: 12px !important;
  font-weight: 620 !important;
  letter-spacing: -.002em;
}

.zti-nav a:hover {
  background: #1b3455 !important;
  color: #fff !important;
}

.zti-nav a.is-active {
  position: relative;
  background: #244f8f !important;
  border-color: #3265aa !important;
  color: #fff !important;
  box-shadow: none !important;
}

.zti-nav a.is-active::before {
  position: absolute;
  inset: 7px auto 7px -1px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: #b9d4f7;
  content: "";
}

.zti-nav-icon {
  color: currentColor !important;
  opacity: .86;
}

/* All interactive shell glyphs use the same inline SVG language. */
.zti-mobile-toggle svg,
.zti-sidebar-collapse svg,
.zti-logout-mini svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.zti-mobile-toggle::before,
.zti-mobile-toggle::after {
  display: none !important;
  content: none !important;
}

.zti-sidebar-collapse,
.zti-logout-mini {
  font-size: 0 !important;
}

.zti-sidebar-collapse svg {
  width: 15px;
  height: 15px;
}

.zti-logout-mini svg {
  width: 16px;
  height: 16px;
}

.zti-sidebar-user {
  margin: 10px !important;
  padding: 9px !important;
  border: 1px solid #29405f !important;
  border-radius: 9px !important;
  background: #172d4a !important;
}

.zti-sidebar-user-copy strong {
  font-size: 11px !important;
  font-weight: 680 !important;
}

.zti-sidebar-user-copy span {
  color: #91a3bc !important;
  font-size: 10px !important;
}

.zti-main {
  background: var(--zti-refresh-page);
}

.zti-topbar {
  height: 68px !important;
  padding-inline: 28px !important;
  background: rgba(255, 255, 255, .98) !important;
  border-bottom: 1px solid var(--zti-refresh-border) !important;
  box-shadow: none !important;
}

.zti-topbar-title strong {
  color: var(--zti-refresh-ink) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: -.01em;
}

.zti-topbar-title span {
  color: var(--zti-refresh-faint) !important;
  font-size: 10px !important;
}

.zti-global-search {
  width: 280px !important;
  height: 40px !important;
  border: 1px solid var(--zti-refresh-border) !important;
  border-radius: 9px !important;
  background: #fbfcfd !important;
  box-shadow: none !important;
}

.zti-global-search input {
  color: var(--zti-refresh-ink) !important;
  font-size: 12px !important;
}

.zti-icon-button {
  width: 40px !important;
  height: 40px !important;
  border: 1px solid var(--zti-refresh-border) !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: var(--zti-refresh-ink-soft) !important;
  box-shadow: none !important;
}

.zti-profile-chip {
  gap: 9px !important;
  padding-left: 5px !important;
}

.zti-profile-chip strong {
  color: var(--zti-refresh-ink) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

.zti-profile-chip span {
  color: var(--zti-refresh-faint) !important;
  font-size: 9px !important;
}

.zti-profile-chip > a {
  color: var(--zti-refresh-brand-dark) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
}

.zti-content,
.zti-workspace-content {
  padding: 26px 32px 44px !important;
}

/* Shared module geometry: every screen gets the same readable start line,
   action rhythm and safe minimum width. */
.zti-front-admin-screen,
.zti-front-admin-screen .wrap,
.zti-front-admin-screen .zti-admin,
.zti-front-admin-screen .zti-core-module,
.zti-front-admin-screen .zti-front-card,
.zti-workspace-content > * {
  min-width: 0 !important;
  max-width: 100% !important;
}

.zti-front-admin-screen .zti-page-head,
.zti-front-admin-screen .zti-front-card-head,
.zti-front-admin-screen .zti-panel-head,
.zti-front-admin-screen .zti-admin > div:first-child,
.zti-workspace-content .zti-page-head {
  gap: 14px;
  min-width: 0;
}

.zti-front-admin-screen .zti-page-head > *,
.zti-front-admin-screen .zti-front-card-head > *,
.zti-front-admin-screen .zti-panel-head > *,
.zti-workspace-content .zti-page-head > * {
  min-width: 0;
}

.zti-front-admin-screen .zti-page-head .button,
.zti-front-admin-screen .zti-front-card-head .button,
.zti-front-admin-screen .zti-panel-head .button {
  white-space: nowrap;
}

/* Dashboard: the first screen has one clear reading order. */
.zti-dashboard-hero {
  min-height: 92px;
  padding: 3px 2px 20px !important;
  align-items: flex-start !important;
  border-bottom: 1px solid transparent;
}

.zti-eyebrow,
.zti-panel-kicker {
  color: #637b9b !important;
  font-size: 9px !important;
  font-weight: 780 !important;
  letter-spacing: .14em !important;
  line-height: 1.2 !important;
}

.zti-dashboard-hero h1,
.zti-workspace-heading h1,
.zti-front-admin-screen .zti-page-head h1,
.zti-front-admin-screen .wrap > h1 {
  margin: 8px 0 5px !important;
  color: var(--zti-refresh-ink) !important;
  font-size: clamp(26px, 2.2vw, 31px) !important;
  font-weight: 730 !important;
  letter-spacing: -.045em !important;
  line-height: 1.1 !important;
}

.zti-dashboard-hero p,
.zti-workspace-heading p,
.zti-page-head p,
.zti-front-admin-screen .description {
  color: var(--zti-refresh-muted) !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}

.zti-hero-meta {
  gap: 5px !important;
  padding-top: 12px;
}

.zti-hero-meta strong {
  color: var(--zti-refresh-ink-soft) !important;
  font-size: 11px !important;
  font-weight: 680 !important;
}

.zti-hero-meta small {
  color: var(--zti-refresh-faint) !important;
  font-size: 10px !important;
}

.zti-live-dot {
  border: 1px solid #bfe2d0 !important;
  border-radius: 4px !important;
  background: #f0faf4 !important;
  color: var(--zti-refresh-success) !important;
  font-size: 9px !important;
  font-weight: 750 !important;
}

.zti-dashboard-tabs {
  display: flex !important;
  gap: 22px !important;
  margin: 0 0 18px !important;
  border-bottom: 1px solid var(--zti-refresh-border) !important;
}

.zti-dashboard-tabs a {
  margin: 0 !important;
  padding: 0 0 9px !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--zti-refresh-muted) !important;
  font-size: 12px !important;
  font-weight: 680 !important;
}

.zti-dashboard-tabs a.is-active {
  border-bottom-color: var(--zti-refresh-brand) !important;
  color: var(--zti-refresh-brand-dark) !important;
}

/* KPIs behave like an analytical strip, not four unrelated floating cards. */
.zti-executive-kpis,
.zti-workspace-content .zti-core-kpis,
.zti-front-admin-screen .zti-kpi-grid {
  border: 1px solid var(--zti-refresh-border) !important;
  border-radius: 10px !important;
  background: var(--zti-refresh-surface) !important;
  box-shadow: none !important;
}

.zti-metric-card,
.zti-workspace-content .zti-core-kpis > div,
.zti-front-admin-screen .zti-kpi-card,
.zti-front-admin-screen .zti-kpi {
  min-width: 0;
  padding: 18px 19px !important;
  border: 0 !important;
  border-right: 1px solid var(--zti-refresh-border) !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--zti-refresh-ink) !important;
  box-shadow: none !important;
}

.zti-metric-card:last-child,
.zti-workspace-content .zti-core-kpis > div:last-child,
.zti-front-admin-screen .zti-kpi-card:last-child,
.zti-front-admin-screen .zti-kpi:last-child {
  border-right: 0 !important;
}

.zti-metric-card.zti-metric-primary {
  position: relative;
  background: #f3f7fd !important;
  color: var(--zti-refresh-ink) !important;
}

.zti-metric-card.zti-metric-primary::before {
  position: absolute;
  inset: 16px auto 16px 0;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--zti-refresh-brand);
  content: "";
}

.zti-metric-head {
  align-items: center !important;
  gap: 8px !important;
}

.zti-metric-head > span:first-child {
  min-width: 0;
  color: var(--zti-refresh-muted) !important;
  font-size: 10px !important;
  font-weight: 680 !important;
  letter-spacing: .01em;
  line-height: 1.35;
}

.zti-metric-icon {
  color: #7189aa !important;
  opacity: .9;
}

.zti-metric-card > strong {
  display: block;
  margin: 13px 0 5px !important;
  color: var(--zti-refresh-ink) !important;
  font-size: 25px !important;
  font-weight: 730 !important;
  line-height: 1.05 !important;
}

.zti-metric-card > small {
  color: var(--zti-refresh-faint) !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
}

/* Panels use one border and an internal rhythm; no hover lift. */
.zti-modern-panel,
.zti-front-card,
.zti-front-admin-screen .zti-panel,
.zti-front-admin-screen .zti-card {
  border: 1px solid var(--zti-refresh-border) !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.zti-modern-panel:hover,
.zti-front-card:hover {
  box-shadow: none !important;
}

.zti-modern-panel {
  padding: 20px !important;
}

.zti-panel-head,
.zti-front-card-head {
  margin-bottom: 16px !important;
}

.zti-panel-head h2,
.zti-front-card-head h2,
.zti-front-admin-screen .zti-panel > h2,
.zti-front-admin-screen .zti-card > h2 {
  margin: 6px 0 0 !important;
  color: var(--zti-refresh-ink) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: -.025em !important;
  line-height: 1.25 !important;
}

.zti-panel-head > a,
.zti-front-card-head > a {
  color: var(--zti-refresh-brand-dark) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

.zti-empty-state {
  min-height: 158px !important;
  border: 1px dashed #c8d3e0 !important;
  border-radius: 8px !important;
  background: #fbfcfe !important;
}

.zti-empty-state strong {
  color: var(--zti-refresh-ink-soft) !important;
  font-size: 13px !important;
  font-weight: 680 !important;
}

.zti-empty-state p,
.zti-panel-note {
  color: var(--zti-refresh-muted) !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
}

/* Attention is a work queue: separators communicate priority better than pills. */
.zti-attention-list {
  border-top: 1px solid #edf1f5;
}

.zti-attention-list a {
  min-width: 0;
  padding: 12px 0 !important;
  border-bottom: 1px solid #edf1f5 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.zti-attention-list a:last-child {
  border-bottom: 0 !important;
}

.zti-attention-list a:hover {
  background: #fbfcfe !important;
}

.zti-attention-badge {
  width: 30px !important;
  height: 30px !important;
  flex-basis: 30px !important;
  border: 1px solid #d6e2f2 !important;
  border-radius: 6px !important;
  background: #f0f5fb !important;
  color: var(--zti-refresh-brand-dark) !important;
  font-size: 9px !important;
  font-weight: 780 !important;
}

.zti-attention-list strong {
  color: var(--zti-refresh-ink-soft) !important;
  font-size: 11px !important;
  font-weight: 680 !important;
}

.zti-attention-list small {
  color: var(--zti-refresh-faint) !important;
  font-size: 10px !important;
}

.zti-attention-list b {
  min-width: 25px;
  color: var(--zti-refresh-ink) !important;
  font-size: 12px !important;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* Quick access: action list, not a marketplace of rounded tiles. */
.zti-quick-grid {
  gap: 8px !important;
}

.zti-quick-card {
  min-width: 0;
  min-height: 68px;
  padding: 11px 12px !important;
  border: 1px solid #e3e8ef !important;
  border-radius: 7px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.zti-quick-card:hover {
  border-color: #aec4e2 !important;
  background: #f8fbff !important;
  box-shadow: none !important;
}

.zti-quick-icon {
  width: 30px !important;
  height: 30px !important;
  flex-basis: 30px !important;
  border-radius: 6px !important;
  background: #eef4fb !important;
  color: var(--zti-refresh-brand-dark) !important;
}

.zti-quick-card strong {
  color: var(--zti-refresh-ink-soft) !important;
  font-size: 11px !important;
  font-weight: 680 !important;
  line-height: 1.25 !important;
}

.zti-quick-card small {
  color: var(--zti-refresh-faint) !important;
  font-size: 9px !important;
  line-height: 1.35 !important;
}

.zti-quick-arrow {
  color: #8ca2bd !important;
}

.zti-workforce-grid {
  gap: 0 !important;
  border-top: 1px solid #edf1f5;
  border-bottom: 1px solid #edf1f5;
}

.zti-workforce-grid > div {
  min-width: 0;
  padding: 14px 12px !important;
  border-right: 1px solid #edf1f5 !important;
  border-radius: 0 !important;
  background: #fff !important;
}

.zti-workforce-grid > div:last-child {
  border-right: 0 !important;
}

.zti-workforce-grid span {
  color: var(--zti-refresh-muted) !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
}

.zti-workforce-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--zti-refresh-ink) !important;
  font-size: 22px !important;
  font-weight: 720 !important;
}

.zti-panel-button {
  min-height: 38px !important;
  margin-top: 16px;
  border: 1px solid #c9d8ec !important;
  border-radius: 6px !important;
  background: #f5f8fc !important;
  color: var(--zti-refresh-brand-dark) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

/* Data surfaces: readable rows and restrained status semantics. */
.zti-modern-table-wrap,
.zti-core-table,
.zti-table-wrap,
.zti-front-admin-screen .zti-table-wrap {
  border: 1px solid var(--zti-refresh-border) !important;
  border-radius: 8px !important;
  background: #fff !important;
}

.zti-modern-table th,
.zti-core-table th,
.zti-front-admin-screen table.widefat th {
  padding: 11px 12px !important;
  background: #f7f9fb !important;
  color: #687b91 !important;
  font-size: 10px !important;
  font-weight: 760 !important;
  letter-spacing: .07em !important;
}

.zti-modern-table td,
.zti-core-table td,
.zti-front-admin-screen table.widefat td {
  padding: 12px !important;
  color: var(--zti-refresh-ink-soft) !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
}

.zti-modern-table tbody tr:hover td,
.zti-core-table tbody tr:hover td,
.zti-front-admin-screen table.widefat tbody tr:hover td {
  background: #fafcff !important;
}

.zti-status-pill,
.zti-status-delivered,
.zti-status-completed,
.zti-status-submitted,
.zti-status-danger,
.zti-status-cancelled,
.zti-status-rejected {
  border-radius: 4px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
}

/* Forms should feel like a business application: labels first, controls compact,
   primary action unmistakable. */
.zti-front-admin-screen label,
.zti-workspace-content label {
  color: var(--zti-refresh-ink-soft) !important;
  font-size: 11px !important;
  font-weight: 680 !important;
  line-height: 1.35 !important;
}

.zti-workspace-content :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea),
.zti-front-admin-screen :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
  min-height: 42px !important;
  border: 1px solid var(--zti-refresh-border-strong) !important;
  border-radius: 6px !important;
  padding: 9px 11px !important;
  color: var(--zti-refresh-ink) !important;
  font-size: 12px !important;
  box-shadow: none !important;
}

.zti-workspace-content :where(input, select, textarea):focus,
.zti-front-admin-screen :where(input, select, textarea):focus {
  border-color: var(--zti-refresh-brand) !important;
  box-shadow: var(--zti-refresh-focus) !important;
}

.zti-workspace-content :where(.button, button, input[type="submit"]),
.zti-front-admin-screen :where(.button, button, input[type="submit"]) {
  min-height: 40px !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.zti-workspace-content .button-primary,
.zti-front-admin-screen .button-primary,
.zti-front-primary {
  background: var(--zti-refresh-brand) !important;
  border-color: var(--zti-refresh-brand) !important;
}

.zti-workspace-content .button-primary:hover,
.zti-front-admin-screen .button-primary:hover,
.zti-front-primary:hover {
  background: var(--zti-refresh-brand-dark) !important;
  border-color: var(--zti-refresh-brand-dark) !important;
}

.zti-front-admin-screen .nav-tab-wrapper,
.zti-workspace-content .nav-tab-wrapper {
  gap: 18px !important;
  border-bottom: 1px solid var(--zti-refresh-border) !important;
}

.zti-front-admin-screen .nav-tab,
.zti-workspace-content .nav-tab {
  padding: 9px 0 !important;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--zti-refresh-muted) !important;
  font-size: 12px !important;
}

.zti-front-admin-screen .nav-tab-active,
.zti-workspace-content .nav-tab-active {
  border-bottom-color: var(--zti-refresh-brand) !important;
  color: var(--zti-refresh-brand-dark) !important;
}

/* The partner filter is a legitimate multi-field row. Let its action group
   shrink/wrap instead of creating a body-width overflow strip on desktop. */
.zti-partner-filters {
  grid-template-columns: minmax(150px, 1.2fr) minmax(120px, .75fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(142px, auto) !important;
}

.zti-partner-filter-actions {
  min-width: 0 !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
}

.zti-partner-filter-actions > * {
  min-width: 0 !important;
}

/* Login uses the same system but remains a focused entry point. */
.zti-login-page {
  background: var(--zti-refresh-page) !important;
}

/* Remove browser-native placeholder clutter from the global shell search. The
   accessible label remains and the control is still discoverable by focus. */
.zti-global-search input::placeholder,
.zti-login-input-wrap input::placeholder {
  color: transparent !important;
  opacity: 0 !important;
}

.zti-login-feature-list span::before {
  display: none !important;
  content: none !important;
}

.zti-login-feature-list span {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding-left: 0 !important;
}

.zti-login-feature-list span svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 1px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.zti-login-visual {
  background: #122f58 !important;
}

.zti-login-visual::before,
.zti-login-visual::after {
  display: none !important;
}

.zti-login-visual h2 {
  font-size: 32px !important;
  font-weight: 720 !important;
  letter-spacing: -.04em !important;
}

.zti-login-card {
  border: 1px solid var(--zti-refresh-border) !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 30px rgba(18, 42, 70, .07) !important;
}

/* Responsive contract: preserve data, reduce decoration, protect the viewport. */
@media (max-width: 1100px) {
  .zti-content,
  .zti-workspace-content {
    padding-inline: 22px !important;
  }

  .zti-global-search {
    width: 220px !important;
  }
}

@media (max-width: 900px) {
  .zti-sidebar {
    width: min(86vw, 304px) !important;
  }

  .zti-topbar {
    height: 64px !important;
    padding-inline: 16px !important;
  }

  .zti-mobile-toggle {
    display: grid !important;
    place-items: center;
    width: 40px !important;
    height: 40px !important;
    border: 1px solid var(--zti-refresh-border) !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: var(--zti-refresh-ink-soft) !important;
    font-size: 0 !important;
  }

  .zti-content,
  .zti-workspace-content {
    padding: 22px 16px 92px !important;
  }

  .zti-dashboard-hero h1 {
    font-size: 27px !important;
  }

  .zti-dashboard-grid-main,
  .zti-dashboard-grid-secondary {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .zti-executive-kpis,
  .zti-workspace-content .zti-core-kpis,
  .zti-front-admin-screen .zti-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .zti-metric-card:nth-child(2n),
  .zti-workspace-content .zti-core-kpis > div:nth-child(2n),
  .zti-front-admin-screen .zti-kpi-card:nth-child(2n),
  .zti-front-admin-screen .zti-kpi:nth-child(2n) {
    border-right: 0 !important;
  }

  .zti-metric-card:nth-child(-n + 2),
  .zti-workspace-content .zti-core-kpis > div:nth-child(-n + 2),
  .zti-front-admin-screen .zti-kpi-card:nth-child(-n + 2),
  .zti-front-admin-screen .zti-kpi:nth-child(-n + 2) {
    border-bottom: 1px solid var(--zti-refresh-border) !important;
  }

  .zti-modern-panel {
    padding: 18px !important;
  }

  .zti-partner-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .zti-front-admin-screen .zti-page-head,
  .zti-front-admin-screen .zti-front-card-head,
  .zti-front-admin-screen .zti-panel-head,
  .zti-workspace-content .zti-page-head {
    align-items: flex-start !important;
  }

  .zti-front-admin-screen .zti-page-head > :last-child,
  .zti-front-admin-screen .zti-front-card-head > :last-child,
  .zti-front-admin-screen .zti-panel-head > :last-child,
  .zti-workspace-content .zti-page-head > :last-child {
    max-width: 100%;
  }

  .zti-front-admin-screen .zti-page-head .button,
  .zti-front-admin-screen .zti-front-card-head .button,
  .zti-front-admin-screen .zti-panel-head .button {
    min-height: 42px !important;
  }

  .zti-mobile-bottom-nav {
    border-radius: 10px !important;
    box-shadow: 0 8px 24px rgba(25, 45, 80, .13) !important;
    backdrop-filter: none !important;
  }
}

@media (max-width: 520px) {
  .zti-content,
  .zti-workspace-content {
    padding: 18px 11px 88px !important;
  }

  .zti-dashboard-hero {
    min-height: 0;
    padding-bottom: 16px !important;
  }

  .zti-dashboard-hero h1 {
    margin-top: 7px !important;
    font-size: 24px !important;
  }

  .zti-dashboard-hero p {
    font-size: 11px !important;
  }

  .zti-topbar {
    padding-inline: 11px !important;
  }

  .zti-topbar-title {
    min-width: 0;
  }

  .zti-topbar-title strong {
    max-width: 45vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .zti-front-admin-screen .zti-page-head,
  .zti-front-admin-screen .zti-front-card-head,
  .zti-front-admin-screen .zti-panel-head,
  .zti-workspace-content .zti-page-head {
    flex-direction: column !important;
    gap: 9px !important;
  }

  .zti-front-admin-screen .zti-page-head > :last-child,
  .zti-front-admin-screen .zti-front-card-head > :last-child,
  .zti-front-admin-screen .zti-panel-head > :last-child,
  .zti-workspace-content .zti-page-head > :last-child {
    width: 100%;
  }

  .zti-front-admin-screen .zti-page-head .button,
  .zti-front-admin-screen .zti-front-card-head .button,
  .zti-front-admin-screen .zti-panel-head .button,
  .zti-front-admin-screen .zti-page-head .button-primary,
  .zti-front-admin-screen .zti-front-card-head .button-primary {
    width: 100%;
  }

  .zti-front-admin-screen .zti-panel,
  .zti-front-admin-screen .zti-card,
  .zti-front-card,
  .zti-modern-panel {
    padding: 15px !important;
    border-radius: 8px !important;
  }

  .zti-front-admin-screen .zti-panel > h2,
  .zti-front-admin-screen .zti-card > h2 {
    font-size: 15px !important;
  }

  .zti-front-admin-screen .zti-two-col,
  .zti-front-admin-screen .zti-three-col,
  .zti-front-admin-screen .zti-form-grid,
  .zti-front-admin-screen .zti-grid-4,
  .zti-front-admin-screen .zti-front-form-grid,
  .zti-front-admin-screen .zti-filter-grid {
    grid-template-columns: 1fr !important;
    min-width: 0 !important;
  }

  .zti-workspace-content .zti-two-col,
  .zti-workspace-content .zti-three-col,
  .zti-workspace-content .zti-form-grid,
  .zti-workspace-content .zti-grid-4,
  .zti-workspace-content .zti-front-form-grid,
  .zti-workspace-content .zti-filter-grid {
    grid-template-columns: 1fr !important;
    min-width: 0 !important;
  }

  .zti-front-admin-screen .zti-form,
  .zti-front-admin-screen form {
    min-width: 0 !important;
  }

  .zti-front-admin-screen .zti-form p,
  .zti-front-admin-screen form p {
    min-width: 0;
  }

  .zti-front-admin-screen .submit,
  .zti-front-admin-screen .zti-form .submit {
    width: 100%;
  }

  .zti-front-admin-screen .submit input,
  .zti-front-admin-screen .submit button,
  .zti-front-admin-screen .zti-form .submit input,
  .zti-front-admin-screen .zti-form .submit button {
    width: 100%;
  }

  .zti-front-admin-screen .nav-tab-wrapper,
  .zti-workspace-content .nav-tab-wrapper {
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap !important;
    gap: 18px !important;
    scrollbar-width: none;
  }

  .zti-front-admin-screen .nav-tab-wrapper::-webkit-scrollbar,
  .zti-workspace-content .nav-tab-wrapper::-webkit-scrollbar {
    display: none;
  }

  .zti-front-admin-screen .nav-tab,
  .zti-workspace-content .nav-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .zti-front-admin-screen .zti-erp-table-scroll-cue {
    margin-block: 8px !important;
    color: var(--zti-refresh-muted) !important;
    font-size: 10px !important;
  }

  .zti-partner-filters {
    grid-template-columns: 1fr !important;
  }

  .zti-hero-meta {
    display: none !important;
  }

  .zti-executive-kpis,
  .zti-workspace-content .zti-core-kpis,
  .zti-front-admin-screen .zti-kpi-grid {
    grid-template-columns: 1fr !important;
  }

  .zti-metric-card,
  .zti-workspace-content .zti-core-kpis > div,
  .zti-front-admin-screen .zti-kpi-card,
  .zti-front-admin-screen .zti-kpi {
    border-right: 0 !important;
    border-bottom: 1px solid var(--zti-refresh-border) !important;
  }

  .zti-metric-card:last-child,
  .zti-workspace-content .zti-core-kpis > div:last-child,
  .zti-front-admin-screen .zti-kpi-card:last-child,
  .zti-front-admin-screen .zti-kpi:last-child {
    border-bottom: 0 !important;
  }

  .zti-metric-card > strong {
    font-size: 23px !important;
  }

  .zti-dashboard-tabs {
    gap: 16px !important;
    overflow-x: auto;
  }

  .zti-dashboard-tabs a {
    flex: 0 0 auto;
  }

  .zti-panel-head,
  .zti-front-card-head {
    align-items: flex-start !important;
  }

  .zti-panel-head > a,
  .zti-front-card-head > a {
    flex: 0 0 auto;
  }

  .zti-quick-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .zti-workforce-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .zti-workforce-grid > div:nth-child(2n) {
    border-right: 0 !important;
  }

  .zti-workforce-grid > div:nth-child(-n + 2) {
    border-bottom: 1px solid #edf1f5;
  }

  .zti-modern-table,
  .zti-core-table table,
  .zti-front-admin-screen table.widefat {
    min-width: 640px !important;
  }
}

@media (max-width: 360px) {
  .zti-quick-grid,
  .zti-workforce-grid {
    grid-template-columns: 1fr !important;
  }

  .zti-workforce-grid > div,
  .zti-workforce-grid > div:nth-child(2n) {
    border-right: 0 !important;
    border-bottom: 1px solid #edf1f5 !important;
  }

  .zti-workforce-grid > div:last-child {
    border-bottom: 0 !important;
  }

  .zti-dashboard-hero h1 {
    font-size: 22px !important;
  }

  .zti-content,
  .zti-workspace-content {
    padding-inline: 9px !important;
  }
}

/* Use the containing body width rather than 100vw so the desktop vertical
   scrollbar cannot create a 15px body-only overflow strip. */
@media (min-width: 901px) {
  .zti-main {
    width: calc(100% - var(--zti-sidebar-width)) !important;
  }

  body.zti-sidebar-collapsed .zti-main {
    width: calc(100% - var(--zti-sidebar-collapsed)) !important;
  }
}
