/* Cookie Portal v227: warm, quiet and professional application theme. */
html body.template-saas {
  --cp227-bg: #f7f7f4;
  --cp227-surface: #ffffff;
  --cp227-soft: #f1f1ed;
  --cp227-soft-green: #eaf4f0;
  --cp227-ink: #20221f;
  --cp227-muted: #6c706a;
  --cp227-line: #dedfd9;
  --cp227-line-soft: #e9e9e4;
  --cp227-accent: #117e6d;
  --cp227-accent-dark: #0d5f53;
  background: var(--cp227-bg) !important;
  color: var(--cp227-ink) !important;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 13px !important;
  letter-spacing: 0 !important;
}

html body.template-saas .saas-app-sidebar {
  grid-template-columns: 216px minmax(0, 1fr) !important;
  background: var(--cp227-bg) !important;
}

html body.template-saas .saas-sidebar {
  width: 216px !important;
  max-width: 216px !important;
  padding: 12px 10px 20px !important;
  border: 0 !important;
  border-right: 1px solid var(--cp227-line-soft) !important;
  background: #f3f3ef !important;
  color: var(--cp227-ink) !important;
  box-shadow: none !important;
}

html body.template-saas .saas-brand {
  min-height: 44px !important;
  height: 44px !important;
  margin: 0 0 8px !important;
  padding: 0 8px !important;
  gap: 9px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--cp227-ink) !important;
}

html body.template-saas .saas-brand span {
  width: 27px !important;
  height: 27px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: var(--cp227-ink) !important;
  color: #fff !important;
  font-size: 9px !important;
  font-weight: 750 !important;
}

html body.template-saas .saas-brand strong {
  color: var(--cp227-ink) !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  text-transform: none !important;
}

html body.template-saas .saas-nav {
  gap: 10px !important;
}

html body.template-saas .saas-nav-group {
  gap: 2px !important;
  padding: 0 0 7px !important;
  border: 0 !important;
}

html body.template-saas .saas-nav-group > span,
html body.template-saas .saas-nav-collapsible > summary {
  min-height: 24px !important;
  margin: 0 !important;
  padding: 6px 9px !important;
  color: #8a8d87 !important;
  font-size: 8px !important;
  font-weight: 690 !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

html body.template-saas .saas-nav-item {
  min-height: 34px !important;
  padding: 6px 8px !important;
  gap: 8px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: #4b4f49 !important;
  font-size: 11.5px !important;
  font-weight: 520 !important;
  box-shadow: none !important;
}

html body.template-saas .saas-nav-icon {
  flex: 0 0 21px !important;
  width: 21px !important;
  height: 21px !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: transparent !important;
  color: #878b84 !important;
  font-size: 8px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

html body.template-saas .saas-nav-item:hover,
html body.template-saas .saas-nav-item:focus-visible {
  background: #eaeae5 !important;
  color: var(--cp227-ink) !important;
  outline: none !important;
}

html body.template-saas .saas-nav-item.is-active {
  background: var(--cp227-surface) !important;
  color: var(--cp227-ink) !important;
  font-weight: 650 !important;
  box-shadow: 0 1px 2px rgba(32, 34, 31, .06) !important;
}

html body.template-saas .saas-nav-item.is-active::before,
html body.template-saas .saas-nav-item.is-active::after {
  display: none !important;
}

html body.template-saas .saas-nav-item.is-active .saas-nav-icon {
  background: var(--cp227-soft-green) !important;
  color: var(--cp227-accent-dark) !important;
}

html body.template-saas .saas-content,
html body.template-saas .saas-main,
html body.template-saas .auth-main {
  min-width: 0 !important;
  background: var(--cp227-bg) !important;
}

html body.template-saas .saas-global-topbar,
html body.template-saas .saas-topbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 2147482000 !important;
  height: 58px !important;
  min-height: 58px !important;
  padding: 9px 16px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--cp227-line-soft) !important;
  background: rgba(250, 250, 248, .94) !important;
  box-shadow: none !important;
  backdrop-filter: blur(16px) saturate(1.1) !important;
}

html body.template-saas .saas-header-search {
  width: min(500px, 50vw) !important;
  height: 38px !important;
  gap: 7px !important;
}

html body.template-saas .saas-header-search label {
  height: 38px !important;
  min-height: 38px !important;
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  background: #eeeeea !important;
  box-shadow: none !important;
}

html body.template-saas .saas-header-search label:focus-within {
  border-color: #c8cbc5 !important;
  background: #fff !important;
}

html body.template-saas .saas-header-search input {
  height: 36px !important;
  min-height: 36px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--cp227-ink) !important;
  font-size: 11.5px !important;
  font-weight: 450 !important;
  outline: 0 !important;
}

html body.template-saas .saas-header-search button,
html body.template-saas .md-primary,
html body.template-saas .md-focus > a {
  min-height: 36px !important;
  padding: 0 13px !important;
  border: 1px solid var(--cp227-ink) !important;
  border-radius: 8px !important;
  background: var(--cp227-ink) !important;
  color: #fff !important;
  font-size: 10.5px !important;
  font-weight: 650 !important;
  text-transform: none !important;
  box-shadow: none !important;
}

html body.template-saas .saas-account-menu summary {
  width: 220px !important;
  min-width: 220px !important;
  max-width: 220px !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 4px 9px 4px 4px !important;
  border: 1px solid transparent !important;
  border-radius: 9px !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body.template-saas .saas-account-menu summary:hover,
html body.template-saas .saas-account-menu[open] summary {
  border-color: var(--cp227-line) !important;
  background: var(--cp227-surface) !important;
}

html body.template-saas .saas-account-menu summary > span {
  width: 29px !important;
  height: 29px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: var(--cp227-soft-green) !important;
  color: var(--cp227-accent-dark) !important;
  font-size: 10px !important;
  font-weight: 720 !important;
}

html body.template-saas .saas-account-menu summary strong {
  color: var(--cp227-ink) !important;
  font-size: 11px !important;
  font-weight: 650 !important;
}

html body.template-saas .saas-account-menu summary small {
  color: var(--cp227-muted) !important;
  font-size: 8.5px !important;
  font-weight: 450 !important;
}

html body.template-saas .saas-account-menu .saas-account-dropdown,
html body.template-saas .portal-account-floating {
  top: calc(100% + 7px) !important;
  width: min(480px, calc(100vw - 24px)) !important;
  min-width: 420px !important;
  max-width: 480px !important;
  padding: 9px !important;
  gap: 7px !important;
  border: 1px solid var(--cp227-line) !important;
  border-radius: 10px !important;
  background: var(--cp227-surface) !important;
  box-shadow: 0 18px 50px rgba(32, 34, 31, .12) !important;
}

html body.template-saas .saas-account-dropdown > div,
html body.template-saas .portal-account-floating > div {
  padding: 7px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: #fafaf8 !important;
}

html body.template-saas .saas-account-dropdown > div > span,
html body.template-saas .portal-account-floating > div > span {
  padding: 3px 6px !important;
  color: #8a8d87 !important;
  font-size: 8px !important;
  font-weight: 680 !important;
}

html body.template-saas .saas-account-dropdown a,
html body.template-saas .portal-account-floating a {
  min-height: 32px !important;
  padding: 7px 8px !important;
  border-radius: 6px !important;
  color: #424640 !important;
  font-size: 10.5px !important;
  font-weight: 520 !important;
}

html body.template-saas .saas-account-dropdown a:hover,
html body.template-saas .portal-account-floating a:hover {
  background: var(--cp227-soft-green) !important;
  color: var(--cp227-accent-dark) !important;
}

html body.template-saas .auth-shell:not(.minimal-dashboard),
html body.template-saas .admin-console,
html body.template-saas .account-workspace,
html body.template-saas .project-workspace,
html body.template-saas .tariff-workspace,
html body.template-saas .payment-workspace,
html body.template-saas .system-tabs-workspace {
  max-width: 1240px !important;
  margin-inline: auto !important;
}

html body.template-saas :is(.auth-card, .account-panel, .admin-panel, .account-hero, .admin-commandbar, .portal-home-hero, .ops-hero, .system-tabs-hero) {
  border-color: var(--cp227-line-soft) !important;
  border-radius: 9px !important;
  background: var(--cp227-surface) !important;
  box-shadow: none !important;
}

html body.template-saas :is(input, select, textarea) {
  border-color: var(--cp227-line) !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: var(--cp227-ink) !important;
  box-shadow: none !important;
}

html body.template-saas :is(input, select, textarea):focus {
  border-color: #8db9ae !important;
  outline: 3px solid rgba(17, 126, 109, .10) !important;
}

html body.template-saas .button,
html body.template-saas button,
html body.template-saas input[type="submit"] {
  border-radius: 7px !important;
  font-weight: 620 !important;
  box-shadow: none !important;
}

/* Dashboard: one calm workspace with progressive emphasis. */
html body.template-saas .minimal-dashboard {
  --md-ink: var(--cp227-ink) !important;
  --md-muted: var(--cp227-muted) !important;
  --md-line: var(--cp227-line-soft) !important;
  --md-soft: var(--cp227-soft) !important;
  --md-accent: var(--cp227-accent) !important;
  max-width: 1180px !important;
  padding: 34px 36px 48px !important;
  gap: 18px !important;
}

html body.template-saas .md-head {
  align-items: center !important;
  padding: 0 0 20px !important;
  border-bottom-color: var(--cp227-line-soft) !important;
}

html body.template-saas .md-head h1 {
  font-size: 30px !important;
  font-weight: 620 !important;
  line-height: 1.12 !important;
}

html body.template-saas .md-eyebrow {
  margin-bottom: 6px !important;
  color: var(--cp227-muted) !important;
  font-size: 9px !important;
  font-weight: 680 !important;
}

html body.template-saas .md-head p:last-child {
  margin-top: 7px !important;
  color: var(--cp227-muted) !important;
  font-size: 12px !important;
}

html body.template-saas .md-focus {
  padding: 20px 22px !important;
  border: 1px solid #d9e7e2 !important;
  border-left: 3px solid var(--cp227-accent) !important;
  border-radius: 9px !important;
  background: #f5faf8 !important;
  color: var(--cp227-ink) !important;
  box-shadow: none !important;
}

html body.template-saas .md-focus .md-eyebrow {
  color: var(--cp227-accent-dark) !important;
}

html body.template-saas .md-focus h2 {
  color: var(--cp227-ink) !important;
  font-size: 17px !important;
  font-weight: 650 !important;
}

html body.template-saas .md-focus div > p:last-child {
  color: var(--cp227-muted) !important;
}

html body.template-saas .md-focus > a {
  border-color: var(--cp227-ink) !important;
  background: var(--cp227-ink) !important;
  color: #fff !important;
}

html body.template-saas .md-kpis {
  gap: 0 !important;
  overflow: hidden !important;
  border: 1px solid var(--cp227-line-soft) !important;
  border-radius: 9px !important;
  background: var(--cp227-surface) !important;
}

html body.template-saas .md-kpis article {
  min-height: 82px !important;
  padding: 15px 17px !important;
  border: 0 !important;
  border-right: 1px solid var(--cp227-line-soft) !important;
  border-radius: 0 !important;
  background: var(--cp227-surface) !important;
  box-shadow: none !important;
}

html body.template-saas .md-kpis article:last-child {
  border-right: 0 !important;
}

html body.template-saas .md-kpis article.needs-review {
  border-bottom: 0 !important;
  box-shadow: inset 0 -2px #d99a3d !important;
}

html body.template-saas .md-kpis span {
  color: var(--cp227-muted) !important;
  font-size: 9px !important;
  font-weight: 650 !important;
}

html body.template-saas .md-kpis strong {
  margin-top: 7px !important;
  font-size: 24px !important;
  font-weight: 620 !important;
}

html body.template-saas .md-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr) !important;
  gap: 14px !important;
}

html body.template-saas .md-panel {
  border: 1px solid var(--cp227-line-soft) !important;
  border-radius: 9px !important;
  background: var(--cp227-surface) !important;
  box-shadow: none !important;
}

html body.template-saas .md-panel-head {
  min-height: 68px !important;
  padding: 14px 17px !important;
  border-bottom-color: var(--cp227-line-soft) !important;
  background: transparent !important;
}

html body.template-saas .md-panel h2 {
  font-size: 16px !important;
  font-weight: 640 !important;
}

html body.template-saas .md-task {
  min-height: 61px !important;
  padding: 12px 17px !important;
  border-bottom-color: var(--cp227-line-soft) !important;
  background: transparent !important;
}

html body.template-saas .md-task:hover,
html body.template-saas .md-quick-grid a:hover {
  background: #fafaf8 !important;
}

html body.template-saas .md-task strong,
html body.template-saas .md-quick-grid strong {
  font-size: 11.5px !important;
  font-weight: 620 !important;
}

html body.template-saas .md-task small,
html body.template-saas .md-quick-grid small {
  color: var(--cp227-muted) !important;
  font-size: 10px !important;
}

html body.template-saas .md-task b {
  border-radius: 5px !important;
  background: var(--cp227-soft) !important;
}

html body.template-saas .md-quick-grid {
  gap: 0 !important;
  background: transparent !important;
}

html body.template-saas .md-quick-grid a {
  min-height: 79px !important;
  padding: 14px 38px 14px 16px !important;
  border-right: 1px solid var(--cp227-line-soft) !important;
  border-bottom: 1px solid var(--cp227-line-soft) !important;
  background: transparent !important;
}

html body.template-saas .md-quick-grid a:nth-child(2n) {
  border-right: 0 !important;
}

html body.template-saas .md-quick-grid a:nth-last-child(-n+2) {
  border-bottom: 0 !important;
}

html body.template-saas .md-quick-grid span {
  color: var(--cp227-accent) !important;
}

html body.template-saas .md-utility {
  padding: 3px 2px !important;
  color: var(--cp227-muted) !important;
}

@media (max-width: 980px) {
  html body.template-saas .minimal-dashboard {
    padding: 24px 20px 40px !important;
  }

  html body.template-saas .md-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px) {
  html body.template-saas .saas-app-sidebar {
    grid-template-columns: 1fr !important;
  }

  html body.template-saas .saas-sidebar {
    width: min(320px, 86vw) !important;
    max-width: min(320px, 86vw) !important;
    padding: 12px 10px 24px !important;
    background: #f7f7f4 !important;
  }

  html body.template-saas .saas-global-topbar,
  html body.template-saas .saas-topbar {
    height: 56px !important;
    min-height: 56px !important;
    padding: 8px 10px !important;
  }

  html body.template-saas .saas-account-menu summary {
    width: 190px !important;
    min-width: 190px !important;
    max-width: 190px !important;
  }
}

@media (max-width: 680px) {
  html body.template-saas .minimal-dashboard {
    padding: 20px 14px 32px !important;
    gap: 13px !important;
  }

  html body.template-saas .md-head {
    gap: 16px !important;
  }

  html body.template-saas .md-head h1 {
    font-size: 25px !important;
  }

  html body.template-saas .md-focus {
    gap: 16px !important;
    padding: 17px !important;
  }

  html body.template-saas .md-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body.template-saas .md-kpis article:nth-child(2) {
    border-right: 0 !important;
  }

  html body.template-saas .md-kpis article:nth-child(-n+2) {
    border-bottom: 1px solid var(--cp227-line-soft) !important;
  }

  html body.template-saas .md-quick-grid {
    grid-template-columns: 1fr !important;
  }

  html body.template-saas .md-quick-grid a,
  html body.template-saas .md-quick-grid a:nth-child(2n),
  html body.template-saas .md-quick-grid a:nth-last-child(-n+2) {
    border-right: 0 !important;
    border-bottom: 1px solid var(--cp227-line-soft) !important;
  }

  html body.template-saas .md-quick-grid a:last-child {
    border-bottom: 0 !important;
  }

  html body.template-saas .saas-account-menu .saas-account-dropdown,
  html body.template-saas .portal-account-floating {
    width: min(360px, calc(100vw - 20px)) !important;
    min-width: 0 !important;
    max-width: min(360px, calc(100vw - 20px)) !important;
    grid-template-columns: 1fr !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body.template-saas * {
    scroll-behavior: auto !important;
  }
}
