/* RS-Klimaat shared admin cockpit. Visual layer only. */
html body[data-layout-role="admin"] {
  --admin-blue: #24282e;
  --admin-blue-dark: #171a1f;
  --admin-ink: #102040;
  --admin-muted: #65738d;
  --admin-line: #dce5f1;
  --admin-soft: #f7f9fc;
  --admin-panel: #ffffff;
  margin: 0 !important;
  background: #f8fafc !important;
  color: var(--admin-ink) !important;
  font-family: "Bahnschrift", "Segoe UI Variable", "Segoe UI", Arial, sans-serif !important;
}

html body[data-layout-role="admin"] .top-toolbar,
html body[data-layout-role="admin"] .portal-admin-mobile-menu,
html body[data-layout-role="admin"] .page-noise,
html body[data-layout-role="admin"] .site-header .panel-corners,
html body[data-layout-role="admin"] .site-header .menu-toggle {
  display: none !important;
}

html body.portal-page--admin-dashboard > .site-header {
  display: none !important;
}

html body[data-layout-role="admin"] .site-header,
html body.portal-page--admin .rs-admin-topbar {
  position: fixed !important;
  inset: 0 0 auto 0 !important;
  z-index: 7000 !important;
  height: 70px !important;
  min-height: 70px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--admin-line) !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 10px 26px rgba(20, 34, 58, 0.05) !important;
  overflow: visible !important;
  transform: none !important;
  clip-path: none !important;
}

html body[data-layout-role="admin"] .site-header .header-shell,
html body[data-layout-role="admin"] .site-header .header-shell--portal {
  position: static !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
  width: 100% !important;
  height: 70px !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 28px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  overflow: visible !important;
  clip-path: none !important;
}

html body[data-layout-role="admin"] .site-header .header-main {
  order: 1 !important;
  display: flex !important;
  align-items: center !important;
  min-width: 220px !important;
  margin: 0 !important;
}

html body[data-layout-role="admin"] .site-header .brand,
html body.portal-page--admin .rs-admin-brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 16px !important;
  min-width: 0 !important;
  color: var(--admin-ink) !important;
  font-size: 1.12rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
}

html body[data-layout-role="admin"] .site-header .brand::after {
  content: "RS-Klimaat Beheer";
  white-space: nowrap;
}

html body[data-layout-role="admin"] .site-header .brand img,
html body.portal-page--admin .rs-admin-brand img {
  display: block !important;
  position: static !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  flex: 0 0 34px !important;
  border-radius: 7px !important;
  object-fit: contain !important;
  content: url("assets/favicon-48.png");
  transform: none !important;
  filter: none !important;
  clip-path: none !important;
}

html body[data-layout-role="admin"] .site-header .header-utility {
  order: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  min-width: 0 !important;
}

html body[data-layout-role="admin"] .site-header .portal-session,
html body[data-layout-role="admin"] .site-header .portal-session__actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
}

html body[data-layout-role="admin"] .site-header .portal-session__text,
html body[data-layout-role="admin"] .site-header .portal-trigger,
html body[data-layout-role="admin"] .site-header .client-access-link__eyebrow,
html body[data-layout-role="admin"] .site-header .client-access-link__label {
  display: none !important;
}

html body[data-layout-role="admin"] .site-header .portal-header-links,
html body.portal-page--admin .rs-admin-topbar__actions,
html body.portal-page--admin .rs-admin-topbar__actions .portal-header-links {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  margin: 0 !important;
  width: auto !important;
}

html body[data-layout-role="admin"] .site-header .portal-header-link,
html body[data-layout-role="admin"] .site-header .portal-blocked-menu__toggle,
html body[data-layout-role="admin"] .site-header .portal-mini-button,
html body.portal-page--admin .rs-admin-topbar__actions .portal-header-link,
html body.portal-page--admin .rs-admin-topbar__actions .portal-blocked-menu__toggle,
html body.portal-page--admin .rs-admin-topbar__actions .portal-mini-button {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  min-width: 148px !important;
  min-height: 46px !important;
  height: 46px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 1px solid var(--admin-line) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  background-image: none !important;
  color: var(--admin-ink) !important;
  box-shadow: none !important;
  font-size: 0.86rem !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  text-transform: none !important;
}

html body[data-layout-role="admin"] .site-header .portal-header-link strong,
html body[data-layout-role="admin"] .site-header .portal-blocked-menu__count,
html body.portal-page--admin .rs-admin-topbar__actions .portal-header-link strong,
html body.portal-page--admin .rs-admin-topbar__actions .portal-blocked-menu__count {
  min-width: 28px !important;
  margin-left: auto !important;
  color: var(--admin-ink) !important;
  background: transparent !important;
  font-weight: 900 !important;
  text-align: center !important;
}

html body[data-layout-role="admin"] .site-header .portal-mini-button,
html body.portal-page--admin .rs-admin-topbar__actions .portal-mini-button {
  min-width: 110px !important;
}

html body[data-layout-role="admin"] .site-header .header-bottom,
html body.portal-page--admin .rs-admin-sidebar {
  position: fixed !important;
  top: 70px !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 7100 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 246px !important;
  min-width: 246px !important;
  margin: 0 !important;
  padding: 34px 14px 28px !important;
  border: 0 !important;
  border-right: 1px solid var(--admin-line) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
  transform: none !important;
  clip-path: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin,
html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin.is-open,
html body.portal-page--admin .rs-admin-sidebar__nav {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  grid-template-columns: 1fr !important;
  gap: 4px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  clip-path: none !important;
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a,
html body.portal-page--admin .rs-admin-sidebar__nav a {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 30px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 56px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 14px 0 10px !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: #243958 !important;
  box-shadow: none !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  text-decoration: none !important;
  text-transform: none !important;
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a.is-active,
html body.portal-page--admin .rs-admin-sidebar__nav a.is-active {
  color: var(--admin-blue) !important;
  background: linear-gradient(90deg, rgba(31, 36, 43, 0.10), rgba(31, 36, 43, 0.02)) !important;
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a.is-active::after,
html body.portal-page--admin .rs-admin-sidebar__nav a.is-active::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  right: -14px !important;
  bottom: 0 !important;
  width: 3px !important;
  background: var(--admin-blue) !important;
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a::before,
html body.portal-page--admin .rs-admin-sidebar__nav a::before {
  display: none !important;
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a .nav-core,
html body.portal-page--admin .rs-admin-sidebar__nav .nav-core {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  background: currentColor !important;
  opacity: 0.78 !important;
  -webkit-mask: var(--admin-nav-icon) center / 22px 22px no-repeat;
  mask: var(--admin-nav-icon) center / 22px 22px no-repeat;
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a .nav-sheen,
html body.portal-page--admin .rs-admin-sidebar__nav .nav-sheen {
  display: none !important;
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a:nth-child(1),
html body.portal-page--admin .rs-admin-sidebar__nav a:nth-child(1) {
  --admin-nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75' stroke='black' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a:nth-child(2),
html body.portal-page--admin .rs-admin-sidebar__nav a:nth-child(2) {
  --admin-nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='8' r='4' stroke='black' stroke-width='2' fill='none'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0' stroke='black' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a:nth-child(3),
html body.portal-page--admin .rs-admin-sidebar__nav a:nth-child(3) {
  --admin-nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='4' width='18' height='17' rx='2' stroke='black' stroke-width='2' fill='none'/%3E%3Cpath d='M8 2v4M16 2v4M3 10h18' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a:nth-child(4),
html body.portal-page--admin .rs-admin-sidebar__nav a:nth-child(4) {
  --admin-nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 20h9M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z' stroke='black' stroke-width='2' fill='none' stroke-linejoin='round'/%3E%3C/svg%3E");
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a:nth-child(5),
html body.portal-page--admin .rs-admin-sidebar__nav a:nth-child(5) {
  --admin-nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 2h9l5 5v15H6zM14 2v6h6M9 13h6M9 17h6' stroke='black' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a:nth-child(6),
html body.portal-page--admin .rs-admin-sidebar__nav a:nth-child(6) {
  --admin-nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 2h12v20l-3-2-3 2-3-2-3 2zM9 8h6M9 12h6M9 16h3M15 16l2 2 4-5' stroke='black' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a:nth-child(7),
html body.portal-page--admin .rs-admin-sidebar__nav a:nth-child(7) {
  --admin-nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 7h6l2 2h10v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z' stroke='black' stroke-width='2' fill='none' stroke-linejoin='round'/%3E%3C/svg%3E");
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a:nth-child(8),
html body.portal-page--admin .rs-admin-sidebar__nav a:nth-child(8) {
  --admin-nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6ZM19.4 15a1.7 1.7 0 0 0 .34 1.88l.05.08a2 2 0 1 1-3.46 2l-.05-.08a1.7 1.7 0 0 0-1.62-.94h-.1a1.7 1.7 0 0 0-1.47.94l-.05.08a2 2 0 1 1-3.46-2l.05-.08A1.7 1.7 0 0 0 4.6 15a2 2 0 1 1 0-4 1.7 1.7 0 0 0 1.47-.94l.05-.08a2 2 0 1 1 3.46-2l-.05.08a1.7 1.7 0 0 0 1.47.94h.1a1.7 1.7 0 0 0 1.62-.94l.05-.08a2 2 0 1 1 3.46 2l-.05.08A1.7 1.7 0 0 0 19.4 11a2 2 0 1 1 0 4Z' stroke='black' stroke-width='1.7' fill='none'/%3E%3C/svg%3E");
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a:nth-child(9),
html body.portal-page--admin .rs-admin-sidebar__nav a:nth-child(9) {
  --admin-nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='7' width='18' height='14' rx='2' stroke='black' stroke-width='2' fill='none'/%3E%3Cpath d='M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M3 12h18' stroke='black' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a:nth-child(10),
html body.portal-page--admin .rs-admin-sidebar__nav a:nth-child(10) {
  --admin-nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 7h16M6 7v13h12V7M8 7V4h8v3M10 11h4' stroke='black' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

html body[data-layout-role="admin"] > main,
html body[data-layout-role="admin"] main.content-section,
html body.portal-page--admin .rs-admin-content {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  min-height: 100vh !important;
  margin: 0 !important;
  margin-left: 246px !important;
  padding: 100px 42px 48px !important;
  background: #f8fafc !important;
  box-sizing: border-box !important;
}

html body.portal-page--admin .rs-admin-content {
  margin-left: 0 !important;
}

html body[data-layout-role="admin"] > main > .content-section,
html body[data-layout-role="admin"] > main > .portal-section,
html body[data-layout-role="admin"] main.content-section.portal-section {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body[data-layout-role="admin"] .portal-section-card,
html body[data-layout-role="admin"] .tech-panel,
html body[data-layout-role="admin"] .portal-admin-card,
html body[data-layout-role="admin"] .account-card,
html body[data-layout-role="admin"] .document-builder-shell,
html body[data-layout-role="admin"] .price-manager-shell {
  border: 1px solid var(--admin-line) !important;
  border-radius: 8px !important;
  background: var(--admin-panel) !important;
  background-image: none !important;
  box-shadow: 0 14px 34px rgba(20, 34, 58, 0.06) !important;
}

html body[data-layout-role="admin"] .portal-section-card::before,
html body[data-layout-role="admin"] .portal-section-card::after,
html body[data-layout-role="admin"] .tech-panel::before,
html body[data-layout-role="admin"] .tech-panel::after {
  display: none !important;
  content: none !important;
}

html body[data-layout-role="admin"] .section-kicker {
  color: #477caf !important;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.20em !important;
  text-transform: uppercase !important;
}

html body[data-layout-role="admin"] h1,
html body[data-layout-role="admin"] h2,
html body[data-layout-role="admin"] h3 {
  color: var(--admin-ink) !important;
  letter-spacing: 0 !important;
}

html body[data-layout-role="admin"] p,
html body[data-layout-role="admin"] .planning-field-note,
html body[data-layout-role="admin"] .field-hint {
  color: var(--admin-muted) !important;
}

html body[data-layout-role="admin"] input,
html body[data-layout-role="admin"] select,
html body[data-layout-role="admin"] textarea {
  min-height: 48px !important;
  border: 1px solid #d8e2ee !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  color: var(--admin-ink) !important;
  box-shadow: none !important;
  font: inherit !important;
}

html body[data-layout-role="admin"] .button,
html body[data-layout-role="admin"] .portal-inline-button,
html body[data-layout-role="admin"] .filter-button {
  border-radius: 6px !important;
  box-shadow: none !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html body[data-layout-role="admin"] .button-primary,
html body[data-layout-role="admin"] .planning-quicklink--primary,
html body[data-layout-role="admin"] button[type="submit"]:not(.portal-mini-button) {
  border-color: var(--admin-blue) !important;
  background: linear-gradient(180deg, #2f343a, var(--admin-blue-dark)) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(31, 36, 43, 0.18) !important;
}

html body[data-layout-role="admin"] .button-secondary,
html body[data-layout-role="admin"] .planning-quicklink:not(.planning-quicklink--primary) {
  border-color: var(--admin-line) !important;
  background: #fbfcff !important;
  color: #51627b !important;
}

html body[data-layout-role="admin"] .planning-dashboard-card {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html body[data-layout-role="admin"] .planning-dashboard-card__main {
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.55fr) !important;
  gap: 22px !important;
  align-items: stretch !important;
}

html body[data-layout-role="admin"] .planning-next-card,
html body[data-layout-role="admin"] .planning-dashboard-stats article,
html body[data-layout-role="admin"] .planning-admin-actions-card,
html body[data-layout-role="admin"] .planning-group-card {
  border: 1px solid var(--admin-line) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: 0 14px 34px rgba(20, 34, 58, 0.06) !important;
}

html body[data-layout-role="admin"] .planning-dashboard-stats {
  display: grid !important;
  grid-column: 1 / -1 !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

html body[data-layout-role="admin"] .planning-admin-actions-card {
  overflow: hidden !important;
  padding: 0 !important;
}

html body[data-layout-role="admin"] .planning-quickbar {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 0 !important;
  padding: 16px 18px !important;
  background: #ffffff !important;
}

html body[data-layout-role="admin"] .planning-quicklink {
  min-width: 0 !important;
  min-height: 54px !important;
  height: 54px !important;
  justify-content: center !important;
  gap: 10px !important;
  white-space: nowrap !important;
}

html body[data-layout-role="admin"] .planning-admin-search {
  display: grid !important;
  grid-template-columns: minmax(280px, 1.25fr) minmax(210px, 0.7fr) minmax(210px, 0.8fr) auto !important;
  gap: 18px !important;
  align-items: end !important;
  padding: 20px !important;
  border-top: 1px solid #edf1f6 !important;
  background: #ffffff !important;
}

html body[data-layout-role="admin"] .planning-team-card,
html body[data-layout-role="admin"] .planning-admin-create-card {
  display: none !important;
}

html body[data-layout-role="admin"] .planning-team-card:target,
html body[data-layout-role="admin"] .planning-admin-create-card:target {
  display: grid !important;
}

html body[data-layout-role="admin"] .portal-admin-file-badge,
html body.portal-page .portal-admin-file-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 150px;
  border-radius: 8px;
  background: #eef4fb;
  color: var(--admin-blue, #24282e);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

@media (max-width: 1180px) {
  html body[data-layout-role="admin"] .site-header .header-bottom,
  html body.portal-page--admin .rs-admin-sidebar {
    position: static !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 14px 16px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--admin-line) !important;
  }

  html body[data-layout-role="admin"] .site-header,
  html body.portal-page--admin .rs-admin-topbar {
    position: sticky !important;
    height: auto !important;
    min-height: 70px !important;
  }

  html body[data-layout-role="admin"] .site-header .header-shell {
    height: auto !important;
    min-height: 70px !important;
    flex-wrap: wrap !important;
    padding: 14px 16px !important;
  }

  html body[data-layout-role="admin"] > main,
  html body[data-layout-role="admin"] main.content-section,
  html body.portal-page--admin .rs-admin-content {
    margin-left: 0 !important;
    padding: 24px 16px 36px !important;
  }

  html body[data-layout-role="admin"] .planning-dashboard-card__main,
  html body[data-layout-role="admin"] .planning-dashboard-stats,
  html body[data-layout-role="admin"] .planning-quickbar,
  html body[data-layout-role="admin"] .planning-admin-search {
    grid-template-columns: 1fr !important;
  }
}

/* Final admin template lock: force every logged-in beheer page into the white cockpit style. */
html body[data-layout-role="admin"],
html body[data-layout-role="admin"].portal-page,
html body[data-layout-role="admin"].portal-page--admin {
  min-height: 100vh !important;
  background: #f8fafc !important;
  background-image: none !important;
  color: var(--admin-ink) !important;
  overflow-x: hidden !important;
}

html body[data-layout-role="admin"]::before,
html body[data-layout-role="admin"]::after,
html body[data-layout-role="admin"] .page-noise,
html body[data-layout-role="admin"] .panel-corners,
html body[data-layout-role="admin"] .scroll-top-button,
html body[data-layout-role="admin"] > .site-footer {
  display: none !important;
  content: none !important;
}

html body[data-layout-role="admin"] .rs-admin-topbar,
html body[data-layout-role="admin"] > .rs-admin-topbar {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  left: 0 !important;
  z-index: 9000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 72px !important;
  min-height: 72px !important;
  padding: 0 40px 0 34px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--admin-line) !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 10px 24px rgba(20, 34, 58, 0.04) !important;
}

html body[data-layout-role="admin"] .rs-admin-sidebar,
html body[data-layout-role="admin"] > .rs-admin-sidebar {
  position: fixed !important;
  top: 72px !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 8900 !important;
  display: flex !important;
  flex-direction: column !important;
  width: 246px !important;
  min-width: 246px !important;
  padding: 34px 14px 28px !important;
  border-right: 1px solid var(--admin-line) !important;
  background: #ffffff !important;
  box-shadow: none !important;
  overflow-y: auto !important;
}

html body[data-layout-role="admin"] > main,
html body[data-layout-role="admin"] main,
html body[data-layout-role="admin"] main.content-section,
html body[data-layout-role="admin"] .rs-admin-content {
  width: auto !important;
  max-width: none !important;
  min-height: 100vh !important;
  margin: 0 !important;
  margin-left: 246px !important;
  padding: 104px 42px 56px !important;
  background: #f8fafc !important;
  background-image: none !important;
  box-sizing: border-box !important;
}

html body[data-layout-role="admin"] .rs-admin-content {
  margin-left: 0 !important;
}

html body[data-layout-role="admin"] .content-section,
html body[data-layout-role="admin"] .portal-section {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

html body[data-layout-role="admin"] .portal-admin-workspace {
  display: grid !important;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr) !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  align-items: start !important;
  background: transparent !important;
}

html body[data-layout-role="admin"] .portal-admin-workspace > .portal-admin-sidebar {
  position: static !important;
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}

html body[data-layout-role="admin"] .portal-admin-main,
html body[data-layout-role="admin"] .portal-list,
html body[data-layout-role="admin"] .login-shell,
html body[data-layout-role="admin"] .portal-customer-shell {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body[data-layout-role="admin"] .tech-panel,
html body[data-layout-role="admin"] .tech-panel:hover,
html body[data-layout-role="admin"] .tech-panel:focus-within,
html body[data-layout-role="admin"] .portal-section-card,
html body[data-layout-role="admin"] .portal-case,
html body[data-layout-role="admin"] .portal-admin-document,
html body[data-layout-role="admin"] .portal-mini-note,
html body[data-layout-role="admin"] .portal-admin-photo-card,
html body[data-layout-role="admin"] .login-card,
html body[data-layout-role="admin"] .login-copy,
html body[data-layout-role="admin"] .account-card,
html body[data-layout-role="admin"] .document-builder-widget,
html body[data-layout-role="admin"] .price-manager-card {
  border: 1px solid var(--admin-line) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: 0 14px 34px rgba(20, 34, 58, 0.06) !important;
  color: var(--admin-ink) !important;
  text-shadow: none !important;
  transform: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html body[data-layout-role="admin"] .tech-panel::before,
html body[data-layout-role="admin"] .tech-panel::after,
html body[data-layout-role="admin"] .portal-section-card::before,
html body[data-layout-role="admin"] .portal-section-card::after,
html body[data-layout-role="admin"] .portal-case::before,
html body[data-layout-role="admin"] .portal-case::after,
html body[data-layout-role="admin"] .portal-admin-document::before,
html body[data-layout-role="admin"] .portal-admin-document::after,
html body[data-layout-role="admin"] .login-card::before,
html body[data-layout-role="admin"] .login-card::after,
html body[data-layout-role="admin"] .login-copy::before,
html body[data-layout-role="admin"] .login-copy::after {
  display: none !important;
  content: none !important;
}

html body[data-layout-role="admin"] .portal-admin-detail-header,
html body[data-layout-role="admin"] .portal-admin-dossier {
  padding: 22px 24px !important;
}

html body[data-layout-role="admin"] .portal-admin-detail-header h1,
html body[data-layout-role="admin"] .portal-admin-detail-header h2,
html body[data-layout-role="admin"] .portal-admin-detail-header h3,
html body[data-layout-role="admin"] .portal-section-card h1,
html body[data-layout-role="admin"] .portal-section-card h2,
html body[data-layout-role="admin"] .portal-section-card h3,
html body[data-layout-role="admin"] .tech-panel h1,
html body[data-layout-role="admin"] .tech-panel h2,
html body[data-layout-role="admin"] .tech-panel h3 {
  color: var(--admin-ink) !important;
  text-shadow: none !important;
  letter-spacing: 0 !important;
}

html body[data-layout-role="admin"] .portal-admin-detail-header p,
html body[data-layout-role="admin"] .portal-section-card p,
html body[data-layout-role="admin"] .tech-panel p,
html body[data-layout-role="admin"] .portal-case__meta,
html body[data-layout-role="admin"] .portal-admin-document__meta,
html body[data-layout-role="admin"] .portal-mini-note p {
  color: var(--admin-muted) !important;
  text-shadow: none !important;
}

html body[data-layout-role="admin"] .portal-status,
html body[data-layout-role="admin"] .portal-case-filter,
html body[data-layout-role="admin"] .portal-finance-chip,
html body[data-layout-role="admin"] .portal-admin-stat,
html body[data-layout-role="admin"] .portal-admin-detail-tags span {
  border: 0 !important;
  border-radius: 999px !important;
  background: #eef4fb !important;
  color: #39506f !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html body[data-layout-role="admin"] .portal-admin-tabbar {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  gap: 0 !important;
  width: 100% !important;
  margin: 18px 0 !important;
  padding: 16px 18px !important;
  border: 1px solid var(--admin-line) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 14px 34px rgba(20, 34, 58, 0.06) !important;
}

html body[data-layout-role="admin"] .portal-admin-tab {
  min-height: 54px !important;
  border: 1px solid var(--admin-line) !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  background: #fbfcff !important;
  color: #536580 !important;
  box-shadow: none !important;
  font-weight: 850 !important;
  text-shadow: none !important;
}

html body[data-layout-role="admin"] .portal-admin-tab:first-child {
  border-left: 1px solid var(--admin-line) !important;
  border-radius: 6px 0 0 6px !important;
}

html body[data-layout-role="admin"] .portal-admin-tab:last-child {
  border-radius: 0 6px 6px 0 !important;
}

html body[data-layout-role="admin"] .portal-admin-tab.is-active,
html body[data-layout-role="admin"] .portal-admin-tab[aria-selected="true"] {
  border-color: var(--admin-blue) !important;
  background: linear-gradient(180deg, #2f343a, #171a1f) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 22px rgba(31, 36, 43, 0.20) !important;
}

html body[data-layout-role="admin"] .portal-admin-tabpanels,
html body[data-layout-role="admin"] .portal-admin-panel {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html body[data-layout-role="admin"] .portal-admin-panel[hidden] {
  display: none !important;
}

html body[data-layout-role="admin"] input,
html body[data-layout-role="admin"] select,
html body[data-layout-role="admin"] textarea {
  min-height: 48px !important;
  border: 1px solid #d8e2ee !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  background-image: none !important;
  color: var(--admin-ink) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html body[data-layout-role="admin"] .button,
html body[data-layout-role="admin"] .portal-inline-button,
html body[data-layout-role="admin"] .portal-mini-button,
html body[data-layout-role="admin"] .filter-button {
  min-height: 44px !important;
  border-radius: 6px !important;
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html body[data-layout-role="admin"] .button-primary,
html body[data-layout-role="admin"] .portal-inline-button.button-primary,
html body[data-layout-role="admin"] button[type="submit"]:not(.portal-mini-button) {
  border-color: var(--admin-blue) !important;
  background: linear-gradient(180deg, #2f343a, #171a1f) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 22px rgba(31, 36, 43, 0.20) !important;
}

html body[data-layout-role="admin"] .button-secondary,
html body[data-layout-role="admin"] .portal-inline-button.button-secondary {
  border: 1px solid var(--admin-line) !important;
  background: #fbfcff !important;
  color: #40536f !important;
}

html body[data-layout-role="admin"] .portal-admin-sidebar-card {
  padding: 20px !important;
}

html body[data-layout-role="admin"] .portal-admin-sidebar-card .button-primary,
html body[data-layout-role="admin"] .portal-backup-upload .button-primary {
  width: 100% !important;
}

@media (max-width: 1180px) {
  html body[data-layout-role="admin"] .rs-admin-topbar,
  html body[data-layout-role="admin"] > .rs-admin-topbar,
  html body[data-layout-role="admin"] .rs-admin-sidebar,
  html body[data-layout-role="admin"] > .rs-admin-sidebar {
    position: static !important;
    width: auto !important;
    min-width: 0 !important;
  }

  html body[data-layout-role="admin"] > main,
  html body[data-layout-role="admin"] main,
  html body[data-layout-role="admin"] main.content-section,
  html body[data-layout-role="admin"] .rs-admin-content {
    margin-left: 0 !important;
    padding: 24px 16px 44px !important;
  }

  html body[data-layout-role="admin"] .portal-admin-workspace {
    grid-template-columns: 1fr !important;
  }
}
/* Admin auto-adjust layout lock */
html body[data-layout-role="admin"] {
  --admin-sidebar-width: clamp(216px, 13vw, 246px);
  --admin-page-gutter: clamp(16px, 2.4vw, 42px);
  overflow-x: hidden !important;
}

html body[data-layout-role="admin"] *,
html body[data-layout-role="admin"] *::before,
html body[data-layout-role="admin"] *::after {
  box-sizing: border-box;
  min-width: 0;
}

html body[data-layout-role="admin"] .rs-admin-sidebar,
html body[data-layout-role="admin"] > .rs-admin-sidebar {
  width: var(--admin-sidebar-width) !important;
  min-width: var(--admin-sidebar-width) !important;
  max-width: var(--admin-sidebar-width) !important;
}

html body[data-layout-role="admin"] > main,
html body[data-layout-role="admin"] main,
html body[data-layout-role="admin"] main.content-section {
  width: calc(100vw - var(--admin-sidebar-width)) !important;
  max-width: calc(100vw - var(--admin-sidebar-width)) !important;
  margin-left: var(--admin-sidebar-width) !important;
  padding-left: var(--admin-page-gutter) !important;
  padding-right: var(--admin-page-gutter) !important;
  overflow-x: hidden !important;
}

html body[data-layout-role="admin"] .rs-admin-content {
  width: calc(100vw - var(--admin-sidebar-width)) !important;
  max-width: calc(100vw - var(--admin-sidebar-width)) !important;
  margin-left: var(--admin-sidebar-width) !important;
  padding-left: var(--admin-page-gutter) !important;
  padding-right: var(--admin-page-gutter) !important;
  overflow-x: hidden !important;
}

html body[data-layout-role="admin"] .rs-admin-content main,
html body[data-layout-role="admin"] .rs-admin-content main.content-section,
html body[data-layout-role="admin"] .portal-section,
html body[data-layout-role="admin"] .content-section {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

html body[data-layout-role="admin"] .portal-admin-workspace,
html body[data-layout-role="admin"] .portal-admin-main,
html body[data-layout-role="admin"] .portal-list,
html body[data-layout-role="admin"] .portal-section-card,
html body[data-layout-role="admin"] .tech-panel,
html body[data-layout-role="admin"] .planning-layout,
html body[data-layout-role="admin"] .planning-layout--admin,
html body[data-layout-role="admin"] .planning-dashboard-card,
html body[data-layout-role="admin"] .planning-admin-actions-card,
html body[data-layout-role="admin"] .planning-group-card,
html body[data-layout-role="admin"] .planning-empty-card,
html body[data-layout-role="admin"] .planning-team-card,
html body[data-layout-role="admin"] .planning-admin-create-card {
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
}

html body[data-layout-role="admin"] .planning-dashboard-card__main {
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr) !important;
}

html body[data-layout-role="admin"] .planning-dashboard-stats {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
}

html body[data-layout-role="admin"] .planning-admin-actions-card .planning-quickbar,
html body[data-layout-role="admin"] .planning-quickbar {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
  gap: 0 !important;
  padding: 16px !important;
  overflow: hidden !important;
}

html body[data-layout-role="admin"] .planning-admin-actions-card .planning-quickbar .button-primary,
html body[data-layout-role="admin"] .planning-admin-actions-card .planning-quickbar .button-secondary,
html body[data-layout-role="admin"] .planning-admin-actions-card .planning-quickbar .planning-quicklink,
html body[data-layout-role="admin"] .planning-admin-actions-card .planning-quickbar > :first-child,
html body[data-layout-role="admin"] .planning-admin-actions-card .planning-quickbar > :last-child {
  min-width: 0 !important;
  border-radius: 6px !important;
  white-space: normal !important;
}

html body[data-layout-role="admin"] .planning-admin-actions-card .planning-admin-search,
html body[data-layout-role="admin"] .planning-admin-search {
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.7fr) minmax(180px, 0.7fr) minmax(168px, auto) !important;
  gap: 18px !important;
  overflow: hidden !important;
}

html body[data-layout-role="admin"] .planning-admin-actions-card .planning-admin-search .login-actions,
html body[data-layout-role="admin"] .planning-admin-search .login-actions {
  grid-template-columns: repeat(2, minmax(82px, 1fr)) !important;
  width: 100% !important;
}

html body[data-layout-role="admin"] .portal-admin-tabbar {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
  overflow: hidden !important;
}

html body[data-layout-role="admin"] .portal-admin-tab,
html body[data-layout-role="admin"] .portal-admin-tab:first-child,
html body[data-layout-role="admin"] .portal-admin-tab:last-child {
  border-radius: 6px !important;
  border-left: 1px solid var(--admin-line) !important;
}

html body[data-layout-role="admin"] .portal-admin-workspace {
  grid-template-columns: minmax(240px, min(320px, 28vw)) minmax(0, 1fr) !important;
}

@media (max-width: 1500px) {
  html body[data-layout-role="admin"] {
    --admin-sidebar-width: clamp(202px, 12vw, 232px);
    --admin-page-gutter: clamp(14px, 1.8vw, 28px);
  }

  html body[data-layout-role="admin"] .planning-dashboard-card__main,
  html body[data-layout-role="admin"] .planning-admin-actions-card .planning-admin-search,
  html body[data-layout-role="admin"] .planning-admin-search {
    grid-template-columns: 1fr 1fr !important;
  }

  html body[data-layout-role="admin"] .planning-admin-actions-card .planning-quickbar,
  html body[data-layout-role="admin"] .planning-quickbar {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)) !important;
  }
}

@media (max-width: 1180px) {
  html body[data-layout-role="admin"] {
    --admin-sidebar-width: 0px;
  }

  html body[data-layout-role="admin"] > main,
  html body[data-layout-role="admin"] main,
  html body[data-layout-role="admin"] main.content-section,
  html body[data-layout-role="admin"] .rs-admin-content {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding: 24px 16px 44px !important;
  }

  html body[data-layout-role="admin"] .planning-dashboard-card__main,
  html body[data-layout-role="admin"] .planning-dashboard-stats,
  html body[data-layout-role="admin"] .planning-admin-actions-card .planning-quickbar,
  html body[data-layout-role="admin"] .planning-quickbar,
  html body[data-layout-role="admin"] .planning-admin-actions-card .planning-admin-search,
  html body[data-layout-role="admin"] .planning-admin-search,
  html body[data-layout-role="admin"] .portal-admin-workspace {
    grid-template-columns: 1fr !important;
  }
}
/* Page editor compact admin layout */
html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-media-admin {
  display: grid !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-media-hero,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-editor,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-update-editor,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .portal-project-editor,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .portal-project-list-card {
  padding: 18px 20px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-media-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 14px !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-media-hero h1,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-editor h2,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-update-editor h2,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .portal-project-editor h2,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .portal-project-list-card h2 {
  margin: 3px 0 6px !important;
  font-size: clamp(1.35rem, 1.05rem + 0.7vw, 2rem) !important;
  letter-spacing: 0 !important;
  line-height: 1.1 !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-media-hero p,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-editor p,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-update-editor p,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .portal-project-editor p,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .portal-project-list-card p {
  max-width: 820px !important;
  line-height: 1.45 !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .portal-case__top {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  gap: 14px !important;
  margin-bottom: 14px !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
  max-width: 100% !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-card {
  display: grid !important;
  grid-template-columns: minmax(132px, 0.42fr) minmax(0, 1fr) !important;
  grid-template-areas:
    "preview copy"
    "preview form"
    "preview remove" !important;
  align-items: stretch !important;
  gap: 12px !important;
  min-width: 0 !important;
  padding: 12px !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-preview {
  grid-area: preview !important;
  width: 100% !important;
  min-height: 132px !important;
  max-height: 164px !important;
  aspect-ratio: auto !important;
  border-radius: 8px !important;
  background: #eef4fb !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-preview--logo {
  max-height: 150px !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-preview img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: contain !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-copy {
  grid-area: copy !important;
  min-width: 0 !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-copy h3 {
  margin: 0 0 4px !important;
  font-size: 1rem !important;
  line-height: 1.2 !important;
  overflow-wrap: anywhere !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-copy p {
  margin: 0 !important;
  font-size: 0.82rem !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-copy small {
  margin-top: 8px !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  background: #eef4fb !important;
  color: #40536f !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-form {
  grid-area: form !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(94px, auto) !important;
  align-items: stretch !important;
  gap: 8px !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-remove {
  grid-area: remove !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-file,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-card .button {
  min-height: 42px !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-file span {
  min-height: 42px !important;
  padding: 0 10px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-media-grid-admin {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-media-editor-card {
  gap: 12px !important;
  padding: 14px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-media-editor-card__top {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 10px !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-media-editor-card__top h2 {
  margin: 2px 0 0 !important;
  font-size: 1.05rem !important;
  line-height: 1.2 !important;
  overflow-wrap: anywhere !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-media-form {
  display: grid !important;
  grid-template-columns: minmax(132px, 0.45fr) minmax(0, 1fr) !important;
  gap: 10px !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-media-dropzone {
  grid-row: span 4 !important;
  min-height: 176px !important;
  border-radius: 8px !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-media-dropzone__preview {
  min-height: 176px !important;
  padding: 10px !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-media-dropzone__preview img {
  min-height: 0 !important;
  height: 100% !important;
  max-height: 176px !important;
  border-radius: 6px !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-media-form .field {
  margin: 0 !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-media-form textarea {
  min-height: 78px !important;
  resize: vertical !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-media-actions,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-theme-form .login-actions,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .portal-project-form .login-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  align-items: center !important;
  margin: 0 !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-theme-form,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .portal-project-form {
  display: grid !important;
  gap: 12px !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-theme-groups,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-theme-grid,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-glass-color-grid,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-glass-style-grid,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-layout-options,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-section-core,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-section-items,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .portal-project-admin-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)) !important;
  gap: 10px !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-section-editor,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-section-item-editor {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)) !important;
  gap: 10px !important;
  padding: 12px !important;
  border-radius: 8px !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-section-editor .field-full,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-section-item-editor .field-full,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .portal-project-form .field-full,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .portal-project-photo-field {
  grid-column: 1 / -1 !important;
}

@media (max-width: 1500px) {
  html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-card,
  html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-media-form {
    grid-template-columns: 1fr !important;
    grid-template-areas: none !important;
  }

  html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-preview,
  html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-copy,
  html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-form,
  html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-remove {
    grid-area: auto !important;
  }

  html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-preview {
    min-height: 120px !important;
    max-height: 142px !important;
  }
}

@media (max-width: 900px) {
  html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-media-hero,
  html body[data-layout-role="admin"][data-layout-editor="enabled"] .portal-case__top,
  html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-form,
  html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-media-form {
    grid-template-columns: 1fr !important;
  }
}
/* Page editor final no-overflow layout */
html:has(body[data-layout-role="admin"][data-layout-editor="enabled"]),
html body[data-layout-role="admin"][data-layout-editor="enabled"] {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] > main.homepage-media-admin,
html body[data-layout-role="admin"][data-layout-editor="enabled"] main.homepage-media-admin,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-media-admin {
  width: calc(100vw - var(--admin-sidebar-width)) !important;
  max-width: calc(100vw - var(--admin-sidebar-width)) !important;
  margin-left: var(--admin-sidebar-width) !important;
  padding: 96px clamp(14px, 1.8vw, 28px) 48px !important;
  overflow-x: hidden !important;
  background: #f8fafc !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-media-admin > * {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-editor,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-update-editor,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .portal-project-editor,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .portal-project-list-card,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-media-editor-card,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-card {
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid var(--admin-line) !important;
  border-radius: 8px !important;
  box-shadow: 0 14px 34px rgba(20, 34, 58, 0.06) !important;
  transform: none !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-card {
  display: grid !important;
  grid-template-columns: clamp(128px, 12vw, 180px) minmax(220px, 1fr) minmax(300px, 0.72fr) !important;
  grid-template-areas: "preview copy form" "preview copy remove" !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 128px !important;
  padding: 12px !important;
  overflow: hidden !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-preview {
  grid-area: preview !important;
  width: 100% !important;
  height: 104px !important;
  min-height: 104px !important;
  max-height: 104px !important;
  aspect-ratio: auto !important;
  border: 1px solid #dbe5f0 !important;
  border-radius: 8px !important;
  background: #eef4fb !important;
  overflow: hidden !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-preview--logo {
  height: 112px !important;
  min-height: 112px !important;
  max-height: 112px !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-preview img,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-preview--logo img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  padding: 6px !important;
  object-fit: contain !important;
  object-position: center !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-copy {
  grid-area: copy !important;
  min-width: 0 !important;
  align-self: center !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-copy h3 {
  margin: 0 0 4px !important;
  color: var(--admin-ink) !important;
  font-size: 1rem !important;
  line-height: 1.2 !important;
  overflow-wrap: anywhere !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-copy p {
  margin: 0 !important;
  color: var(--admin-muted) !important;
  font-size: 0.84rem !important;
  line-height: 1.35 !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-copy small {
  display: inline-flex !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin-top: 8px !important;
  padding: 4px 8px !important;
  background: #eef4fb !important;
  color: #40536f !important;
  white-space: normal !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-form {
  grid-area: form !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 98px !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-remove {
  grid-area: remove !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  width: 100% !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-file,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-file span,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-card .button {
  min-height: 42px !important;
  height: 42px !important;
  border-radius: 6px !important;
  font-size: 0.82rem !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-file span,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-card .button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  padding: 0 10px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-theme-groups,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-media-grid-admin,
html body[data-layout-role="admin"][data-layout-editor="enabled"] .portal-project-admin-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)) !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

@media (max-width: 1500px) {
  html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-card {
    grid-template-columns: clamp(112px, 18vw, 160px) minmax(0, 1fr) !important;
    grid-template-areas: "preview copy" "preview form" "preview remove" !important;
  }
}

@media (max-width: 900px) {
  html body[data-layout-role="admin"][data-layout-editor="enabled"] > main.homepage-media-admin,
  html body[data-layout-role="admin"][data-layout-editor="enabled"] main.homepage-media-admin,
  html body[data-layout-role="admin"][data-layout-editor="enabled"] .homepage-media-admin {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding: 24px 14px 44px !important;
  }

  html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-card {
    grid-template-columns: 1fr !important;
    grid-template-areas: "preview" "copy" "form" "remove" !important;
  }

  html body[data-layout-role="admin"][data-layout-editor="enabled"] .site-header-media-form {
    grid-template-columns: 1fr !important;
  }
}
/* Admin clear palette final */
html body[data-layout-role="admin"] {
  --admin-page-bg: #f7f9fc;
  --admin-surface: #ffffff;
  --admin-surface-soft: #f5f8fc;
  --admin-line: #dbe4ef;
  --admin-line-strong: #b8c8da;
  --admin-ink: #10233d;
  --admin-muted: #5c6f87;
  --admin-blue: #24282e;
  --admin-blue-dark: #084da8;
  --admin-blue-soft: #e8f2ff;
  --admin-focus: rgba(31, 36, 43, 0.20);
  background: var(--admin-page-bg) !important;
  background-image: none !important;
  color: var(--admin-ink) !important;
}

html body[data-layout-role="admin"]::before,
html body[data-layout-role="admin"] .page-noise,
html body[data-layout-role="admin"] .panel-corners,
html body[data-layout-role="admin"] .tech-panel::before,
html body[data-layout-role="admin"] .tech-panel::after,
html body[data-layout-role="admin"] .portal-section-card::before,
html body[data-layout-role="admin"] .portal-section-card::after,
html body[data-layout-role="admin"] .portal-case::before,
html body[data-layout-role="admin"] .portal-case::after,
html body[data-layout-role="admin"] .portal-admin-dossier::before,
html body[data-layout-role="admin"] .portal-admin-dossier::after,
html body[data-layout-role="admin"] .portal-admin-detail-header::before,
html body[data-layout-role="admin"] .portal-admin-detail-header::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
}

html body[data-layout-role="admin"] > main,
html body[data-layout-role="admin"] main,
html body[data-layout-role="admin"] main.content-section,
html body[data-layout-role="admin"] .rs-admin-content,
html body[data-layout-role="admin"] .content-section,
html body[data-layout-role="admin"] .portal-section,
html body[data-layout-role="admin"] .portal-customer-shell,
html body[data-layout-role="admin"] .portal-admin-workspace,
html body[data-layout-role="admin"] .portal-admin-main,
html body[data-layout-role="admin"] .portal-list {
  background: var(--admin-page-bg) !important;
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html body[data-layout-role="admin"] .rs-admin-topbar,
html body[data-layout-role="admin"] .rs-admin-sidebar {
  background: #ffffff !important;
  background-image: none !important;
  border-color: var(--admin-line) !important;
  box-shadow: none !important;
}

html body[data-layout-role="admin"] .tech-panel,
html body[data-layout-role="admin"] .tech-panel:hover,
html body[data-layout-role="admin"] .tech-panel:focus-within,
html body[data-layout-role="admin"] .portal-section-card,
html body[data-layout-role="admin"] .portal-section-card:hover,
html body[data-layout-role="admin"] .portal-section-card:focus-within,
html body[data-layout-role="admin"] .portal-admin-sidebar-card,
html body[data-layout-role="admin"] .portal-admin-detail-header,
html body[data-layout-role="admin"] .portal-admin-dossier,
html body[data-layout-role="admin"] .portal-admin-card,
html body[data-layout-role="admin"] .portal-case,
html body[data-layout-role="admin"] .portal-admin-document,
html body[data-layout-role="admin"] .portal-admin-photo-card,
html body[data-layout-role="admin"] .portal-mini-note,
html body[data-layout-role="admin"] .portal-backup-upload,
html body[data-layout-role="admin"] .document-builder-widget,
html body[data-layout-role="admin"] .price-manager-card,
html body[data-layout-role="admin"] .account-card,
html body[data-layout-role="admin"] .login-card,
html body[data-layout-role="admin"] .login-copy,
html body[data-layout-role="admin"] .planning-dashboard-card,
html body[data-layout-role="admin"] .planning-admin-actions-card,
html body[data-layout-role="admin"] .planning-group-card,
html body[data-layout-role="admin"] .planning-empty-card {
  border: 1px solid var(--admin-line) !important;
  border-radius: 8px !important;
  background: var(--admin-surface) !important;
  background-image: none !important;
  color: var(--admin-ink) !important;
  box-shadow: 0 12px 28px rgba(16, 35, 61, 0.06) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  text-shadow: none !important;
  transform: none !important;
}

html body[data-layout-role="admin"] .portal-admin-sidebar-card,
html body[data-layout-role="admin"] .portal-mini-note,
html body[data-layout-role="admin"] .portal-auth-note,
html body[data-layout-role="admin"] .portal-case__detail,
html body[data-layout-role="admin"] .portal-attachment-list,
html body[data-layout-role="admin"] .portal-backup-upload {
  background: var(--admin-surface-soft) !important;
  background-image: none !important;
}

html body[data-layout-role="admin"] h1,
html body[data-layout-role="admin"] h2,
html body[data-layout-role="admin"] h3,
html body[data-layout-role="admin"] h4,
html body[data-layout-role="admin"] .portal-admin-detail-header h1,
html body[data-layout-role="admin"] .portal-admin-detail-header h2,
html body[data-layout-role="admin"] .portal-section-card h1,
html body[data-layout-role="admin"] .portal-section-card h2,
html body[data-layout-role="admin"] .portal-section-card h3,
html body[data-layout-role="admin"] .portal-case h3 {
  color: var(--admin-ink) !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

html body[data-layout-role="admin"] p,
html body[data-layout-role="admin"] small,
html body[data-layout-role="admin"] .field-hint,
html body[data-layout-role="admin"] .portal-case__meta,
html body[data-layout-role="admin"] .portal-case__summary,
html body[data-layout-role="admin"] .portal-admin-document__meta,
html body[data-layout-role="admin"] .portal-admin-detail-header p,
html body[data-layout-role="admin"] .portal-section-card p,
html body[data-layout-role="admin"] .tech-panel p {
  color: var(--admin-muted) !important;
  text-shadow: none !important;
}

html body[data-layout-role="admin"] .section-kicker,
html body[data-layout-role="admin"] label > span:first-child,
html body[data-layout-role="admin"] .field > span:first-child,
html body[data-layout-role="admin"] .portal-admin-sidebar-card h2,
html body[data-layout-role="admin"] .portal-admin-sidebar-card h3 {
  color: #3f78b8 !important;
  text-shadow: none !important;
}

html body[data-layout-role="admin"] input,
html body[data-layout-role="admin"] select,
html body[data-layout-role="admin"] textarea,
html body[data-layout-role="admin"] input[type="file"]::file-selector-button {
  border: 1px solid var(--admin-line-strong) !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  background-image: none !important;
  color: var(--admin-ink) !important;
  box-shadow: none !important;
  text-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html body[data-layout-role="admin"] input:focus,
html body[data-layout-role="admin"] select:focus,
html body[data-layout-role="admin"] textarea:focus {
  border-color: var(--admin-blue) !important;
  outline: 0 !important;
  box-shadow: 0 0 0 4px var(--admin-focus) !important;
}

html body[data-layout-role="admin"] input::placeholder,
html body[data-layout-role="admin"] textarea::placeholder {
  color: #8799ae !important;
}

html body[data-layout-role="admin"] .button,
html body[data-layout-role="admin"] .portal-inline-button,
html body[data-layout-role="admin"] .portal-mini-button,
html body[data-layout-role="admin"] .filter-button,
html body[data-layout-role="admin"] .portal-admin-tab,
html body[data-layout-role="admin"] .portal-case-filter,
html body[data-layout-role="admin"] input[type="file"]::file-selector-button {
  border-radius: 6px !important;
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html body[data-layout-role="admin"] .button-primary,
html body[data-layout-role="admin"] .portal-inline-button.button-primary,
html body[data-layout-role="admin"] button[type="submit"]:not(.portal-mini-button),
html body[data-layout-role="admin"] .filter-button.is-active,
html body[data-layout-role="admin"] .portal-case-filter.is-active,
html body[data-layout-role="admin"] .portal-admin-tab.is-active,
html body[data-layout-role="admin"] .portal-admin-tab[aria-selected="true"] {
  border-color: var(--admin-blue) !important;
  background: linear-gradient(180deg, #383d44, var(--admin-blue)) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 10px 20px rgba(31, 36, 43, 0.18) !important;
}

html body[data-layout-role="admin"] .button-primary:hover,
html body[data-layout-role="admin"] .button-primary:focus-visible,
html body[data-layout-role="admin"] .portal-inline-button.button-primary:hover,
html body[data-layout-role="admin"] .portal-inline-button.button-primary:focus-visible,
html body[data-layout-role="admin"] button[type="submit"]:not(.portal-mini-button):hover,
html body[data-layout-role="admin"] button[type="submit"]:not(.portal-mini-button):focus-visible,
html body[data-layout-role="admin"] .portal-admin-tab.is-active:hover,
html body[data-layout-role="admin"] .portal-admin-tab.is-active:focus-visible {
  border-color: var(--admin-blue-dark) !important;
  background: linear-gradient(180deg, #24282e, var(--admin-blue-dark)) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 4px var(--admin-focus), 0 12px 24px rgba(8, 77, 168, 0.20) !important;
}

html body[data-layout-role="admin"] .button-secondary,
html body[data-layout-role="admin"] .portal-inline-button.button-secondary,
html body[data-layout-role="admin"] .portal-mini-button,
html body[data-layout-role="admin"] .portal-admin-tab,
html body[data-layout-role="admin"] .portal-case-filter,
html body[data-layout-role="admin"] input[type="file"]::file-selector-button {
  border: 1px solid var(--admin-line-strong) !important;
  background: #ffffff !important;
  color: var(--admin-ink) !important;
  -webkit-text-fill-color: var(--admin-ink) !important;
}

html body[data-layout-role="admin"] .button-secondary:hover,
html body[data-layout-role="admin"] .button-secondary:focus-visible,
html body[data-layout-role="admin"] .portal-inline-button.button-secondary:hover,
html body[data-layout-role="admin"] .portal-inline-button.button-secondary:focus-visible,
html body[data-layout-role="admin"] .portal-mini-button:hover,
html body[data-layout-role="admin"] .portal-mini-button:focus-visible,
html body[data-layout-role="admin"] .portal-admin-tab:hover,
html body[data-layout-role="admin"] .portal-admin-tab:focus-visible,
html body[data-layout-role="admin"] .portal-case-filter:hover,
html body[data-layout-role="admin"] .portal-case-filter:focus-visible,
html body[data-layout-role="admin"] input[type="file"]::file-selector-button:hover {
  border-color: var(--admin-blue) !important;
  background: var(--admin-blue-soft) !important;
  color: var(--admin-blue-dark) !important;
  -webkit-text-fill-color: var(--admin-blue-dark) !important;
  box-shadow: 0 0 0 3px var(--admin-focus) !important;
}

html body[data-layout-role="admin"] .portal-admin-tabbar {
  border: 1px solid var(--admin-line) !important;
  border-radius: 8px !important;
  background: var(--admin-surface) !important;
  background-image: none !important;
  box-shadow: 0 12px 28px rgba(16, 35, 61, 0.06) !important;
  gap: 6px !important;
}

html body[data-layout-role="admin"] .portal-status,
html body[data-layout-role="admin"] .portal-admin-stat,
html body[data-layout-role="admin"] .portal-admin-detail-tags span,
html body[data-layout-role="admin"] .portal-finance-chip {
  border: 1px solid var(--admin-line) !important;
  border-radius: 999px !important;
  background: var(--admin-blue-soft) !important;
  color: #355374 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html body[data-layout-role="admin"] .login-feedback,
html body[data-layout-role="admin"] .login-feedback--success,
html body[data-layout-role="admin"] .login-feedback--error {
  border-radius: 8px !important;
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

html body[data-layout-role="admin"] .login-feedback--success {
  border-color: #9bd7b7 !important;
  background: #effbf4 !important;
  color: #155c32 !important;
}

html body[data-layout-role="admin"] .login-feedback--error {
  border-color: #f0b2b2 !important;
  background: #fff3f3 !important;
  color: #8a2424 !important;
}
/* Admin calm visual system final */
html body[data-layout-role="admin"] {
  --admin-page-bg: #f6f8fb;
  --admin-surface: #ffffff;
  --admin-surface-2: #f8fafd;
  --admin-border: #d9e3ee;
  --admin-border-2: #c3d0df;
  --admin-text: #12233a;
  --admin-text-soft: #5d6f86;
  --admin-accent: #24282e;
  --admin-accent-hover: #1f2328;
  --admin-accent-soft: #eaf3ff;
  --admin-shadow-flat: 0 10px 24px rgba(18, 35, 58, 0.055);
  background: var(--admin-page-bg) !important;
  color: var(--admin-text) !important;
}

html body[data-layout-role="admin"]::before,
html body[data-layout-role="admin"]::after,
html body[data-layout-role="admin"] .page-noise,
html body[data-layout-role="admin"] .panel-corners,
html body[data-layout-role="admin"] .nav-sheen,
html body[data-layout-role="admin"] .tech-panel::before,
html body[data-layout-role="admin"] .tech-panel::after,
html body[data-layout-role="admin"] .portal-section-card::before,
html body[data-layout-role="admin"] .portal-section-card::after,
html body[data-layout-role="admin"] .portal-case::before,
html body[data-layout-role="admin"] .portal-case::after,
html body[data-layout-role="admin"] .portal-admin-card::before,
html body[data-layout-role="admin"] .portal-admin-card::after,
html body[data-layout-role="admin"] .portal-admin-dossier::before,
html body[data-layout-role="admin"] .portal-admin-dossier::after,
html body[data-layout-role="admin"] .portal-admin-detail-header::before,
html body[data-layout-role="admin"] .portal-admin-detail-header::after,
html body[data-layout-role="admin"] .login-card::before,
html body[data-layout-role="admin"] .login-card::after,
html body[data-layout-role="admin"] .login-copy::before,
html body[data-layout-role="admin"] .login-copy::after,
html body[data-layout-role="admin"] .button::before,
html body[data-layout-role="admin"] .button::after,
html body[data-layout-role="admin"] .portal-inline-button::before,
html body[data-layout-role="admin"] .portal-inline-button::after,
html body[data-layout-role="admin"] .portal-mini-button::before,
html body[data-layout-role="admin"] .portal-mini-button::after,
html body[data-layout-role="admin"] .portal-admin-tab::before,
html body[data-layout-role="admin"] .portal-admin-tab::after,
html body[data-layout-role="admin"] .portal-case-filter::before,
html body[data-layout-role="admin"] .portal-case-filter::after,
html body[data-layout-role="admin"] .filter-button::before,
html body[data-layout-role="admin"] .filter-button::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  animation: none !important;
}

html body[data-layout-role="admin"] *,
html body[data-layout-role="admin"] *::before,
html body[data-layout-role="admin"] *::after {
  text-shadow: none !important;
  animation: none !important;
}

html body[data-layout-role="admin"] > main,
html body[data-layout-role="admin"] main,
html body[data-layout-role="admin"] main.content-section,
html body[data-layout-role="admin"] .rs-admin-content,
html body[data-layout-role="admin"] .content-section,
html body[data-layout-role="admin"] .portal-section,
html body[data-layout-role="admin"] .portal-customer-shell,
html body[data-layout-role="admin"] .portal-admin-workspace,
html body[data-layout-role="admin"] .portal-admin-main,
html body[data-layout-role="admin"] .portal-list,
html body[data-layout-role="admin"] .portal-admin-tabpanels,
html body[data-layout-role="admin"] .portal-admin-panel {
  background: var(--admin-page-bg) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html body[data-layout-role="admin"] .rs-admin-topbar,
html body[data-layout-role="admin"] .rs-admin-sidebar,
html body[data-layout-role="admin"] .rs-admin-help {
  background: var(--admin-surface) !important;
  background-image: none !important;
  border-color: var(--admin-border) !important;
  box-shadow: none !important;
  color: var(--admin-text) !important;
}

html body[data-layout-role="admin"] .tech-panel,
html body[data-layout-role="admin"] .tech-panel:hover,
html body[data-layout-role="admin"] .tech-panel:focus-within,
html body[data-layout-role="admin"] .portal-section-card,
html body[data-layout-role="admin"] .portal-section-card:hover,
html body[data-layout-role="admin"] .portal-section-card:focus-within,
html body[data-layout-role="admin"] .portal-admin-sidebar-card,
html body[data-layout-role="admin"] .portal-admin-detail-header,
html body[data-layout-role="admin"] .portal-admin-dossier,
html body[data-layout-role="admin"] .portal-admin-card,
html body[data-layout-role="admin"] .portal-case,
html body[data-layout-role="admin"] .portal-case:hover,
html body[data-layout-role="admin"] .portal-case:focus-within,
html body[data-layout-role="admin"] .portal-admin-document,
html body[data-layout-role="admin"] .portal-admin-photo-card,
html body[data-layout-role="admin"] .portal-mini-note,
html body[data-layout-role="admin"] .portal-backup-upload,
html body[data-layout-role="admin"] .document-builder-widget,
html body[data-layout-role="admin"] .price-manager-card,
html body[data-layout-role="admin"] .account-card,
html body[data-layout-role="admin"] .login-card,
html body[data-layout-role="admin"] .login-copy,
html body[data-layout-role="admin"] .planning-dashboard-card,
html body[data-layout-role="admin"] .planning-admin-actions-card,
html body[data-layout-role="admin"] .planning-group-card,
html body[data-layout-role="admin"] .planning-empty-card,
html body[data-layout-role="admin"] .portal-blocked-menu__panel {
  border: 1px solid var(--admin-border) !important;
  border-radius: 8px !important;
  background: var(--admin-surface) !important;
  background-image: none !important;
  color: var(--admin-text) !important;
  box-shadow: var(--admin-shadow-flat) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transform: none !important;
  filter: none !important;
}

html body[data-layout-role="admin"] .portal-admin-sidebar-card,
html body[data-layout-role="admin"] .portal-mini-note,
html body[data-layout-role="admin"] .portal-case__detail,
html body[data-layout-role="admin"] .portal-attachment-list,
html body[data-layout-role="admin"] .portal-backup-upload,
html body[data-layout-role="admin"] .portal-admin-panel,
html body[data-layout-role="admin"] .portal-blocked-menu__item,
html body[data-layout-role="admin"] .portal-notification-open-area {
  border-color: var(--admin-border) !important;
  background: var(--admin-surface-2) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html body[data-layout-role="admin"] .portal-admin-tabbar,
html body[data-layout-role="admin"] .planning-quickbar,
html body[data-layout-role="admin"] .planning-admin-search,
html body[data-layout-role="admin"] .portal-search-form,
html body[data-layout-role="admin"] .portal-filter-bar {
  border: 1px solid var(--admin-border) !important;
  border-radius: 8px !important;
  background: var(--admin-surface) !important;
  background-image: none !important;
  box-shadow: var(--admin-shadow-flat) !important;
  gap: 6px !important;
}

html body[data-layout-role="admin"] h1,
html body[data-layout-role="admin"] h2,
html body[data-layout-role="admin"] h3,
html body[data-layout-role="admin"] h4,
html body[data-layout-role="admin"] strong,
html body[data-layout-role="admin"] .nav-label,
html body[data-layout-role="admin"] .rs-admin-brand,
html body[data-layout-role="admin"] .rs-admin-sidebar__nav a {
  color: var(--admin-text) !important;
  letter-spacing: 0 !important;
}

html body[data-layout-role="admin"] p,
html body[data-layout-role="admin"] small,
html body[data-layout-role="admin"] .field-hint,
html body[data-layout-role="admin"] .portal-case__meta,
html body[data-layout-role="admin"] .portal-case__summary,
html body[data-layout-role="admin"] .portal-admin-document__meta,
html body[data-layout-role="admin"] .portal-admin-detail-header p,
html body[data-layout-role="admin"] .portal-section-card p,
html body[data-layout-role="admin"] .tech-panel p,
html body[data-layout-role="admin"] .portal-session__text,
html body[data-layout-role="admin"] .portal-blocked-menu__empty {
  color: var(--admin-text-soft) !important;
}

html body[data-layout-role="admin"] .section-kicker,
html body[data-layout-role="admin"] label > span:first-child,
html body[data-layout-role="admin"] .field > span:first-child,
html body[data-layout-role="admin"] legend {
  color: #4776ad !important;
  letter-spacing: 0.1em !important;
}

html body[data-layout-role="admin"] input,
html body[data-layout-role="admin"] select,
html body[data-layout-role="admin"] textarea,
html body[data-layout-role="admin"] .site-header-media-file,
html body[data-layout-role="admin"] .homepage-media-dropzone,
html body[data-layout-role="admin"] input[type="file"]::file-selector-button {
  border: 1px solid var(--admin-border-2) !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  background-image: none !important;
  color: var(--admin-text) !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html body[data-layout-role="admin"] input:focus,
html body[data-layout-role="admin"] select:focus,
html body[data-layout-role="admin"] textarea:focus {
  border-color: var(--admin-accent) !important;
  outline: 0 !important;
  box-shadow: 0 0 0 4px rgba(31, 36, 43, 0.16) !important;
}

html body[data-layout-role="admin"] .button,
html body[data-layout-role="admin"] .portal-inline-button,
html body[data-layout-role="admin"] .portal-mini-button,
html body[data-layout-role="admin"] .filter-button,
html body[data-layout-role="admin"] .portal-admin-tab,
html body[data-layout-role="admin"] .portal-case-filter,
html body[data-layout-role="admin"] input[type="file"]::file-selector-button,
html body[data-layout-role="admin"] .portal-header-link,
html body[data-layout-role="admin"] .portal-blocked-menu__toggle {
  border: 1px solid var(--admin-border-2) !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  background-image: none !important;
  color: var(--admin-text) !important;
  -webkit-text-fill-color: var(--admin-text) !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html body[data-layout-role="admin"] .button:hover,
html body[data-layout-role="admin"] .button:focus-visible,
html body[data-layout-role="admin"] .portal-inline-button:hover,
html body[data-layout-role="admin"] .portal-inline-button:focus-visible,
html body[data-layout-role="admin"] .portal-mini-button:hover,
html body[data-layout-role="admin"] .portal-mini-button:focus-visible,
html body[data-layout-role="admin"] .filter-button:hover,
html body[data-layout-role="admin"] .filter-button:focus-visible,
html body[data-layout-role="admin"] .portal-admin-tab:hover,
html body[data-layout-role="admin"] .portal-admin-tab:focus-visible,
html body[data-layout-role="admin"] .portal-case-filter:hover,
html body[data-layout-role="admin"] .portal-case-filter:focus-visible,
html body[data-layout-role="admin"] .portal-header-link:hover,
html body[data-layout-role="admin"] .portal-header-link:focus-visible,
html body[data-layout-role="admin"] .portal-blocked-menu__toggle:hover,
html body[data-layout-role="admin"] .portal-blocked-menu__toggle:focus-visible {
  border-color: var(--admin-accent) !important;
  background: var(--admin-accent-soft) !important;
  color: var(--admin-accent-hover) !important;
  -webkit-text-fill-color: var(--admin-accent-hover) !important;
  box-shadow: 0 0 0 3px rgba(31, 36, 43, 0.14) !important;
}

html body[data-layout-role="admin"] .button-primary,
html body[data-layout-role="admin"] .portal-inline-button.button-primary,
html body[data-layout-role="admin"] button[type="submit"]:not(.portal-mini-button),
html body[data-layout-role="admin"] .filter-button.is-active,
html body[data-layout-role="admin"] .portal-case-filter.is-active,
html body[data-layout-role="admin"] .portal-admin-tab.is-active,
html body[data-layout-role="admin"] .portal-admin-tab[aria-selected="true"] {
  border-color: var(--admin-accent) !important;
  background: var(--admin-accent) !important;
  background-image: none !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: none !important;
}

html body[data-layout-role="admin"] .button-primary:hover,
html body[data-layout-role="admin"] .button-primary:focus-visible,
html body[data-layout-role="admin"] .portal-inline-button.button-primary:hover,
html body[data-layout-role="admin"] .portal-inline-button.button-primary:focus-visible,
html body[data-layout-role="admin"] button[type="submit"]:not(.portal-mini-button):hover,
html body[data-layout-role="admin"] button[type="submit"]:not(.portal-mini-button):focus-visible,
html body[data-layout-role="admin"] .portal-admin-tab.is-active:hover,
html body[data-layout-role="admin"] .portal-admin-tab.is-active:focus-visible {
  border-color: var(--admin-accent-hover) !important;
  background: var(--admin-accent-hover) !important;
  background-image: none !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(31, 36, 43, 0.16) !important;
}

html body[data-layout-role="admin"] .portal-status,
html body[data-layout-role="admin"] .portal-admin-stat,
html body[data-layout-role="admin"] .portal-admin-detail-tags span,
html body[data-layout-role="admin"] .portal-finance-chip,
html body[data-layout-role="admin"] .status-pill {
  border: 1px solid var(--admin-border) !important;
  border-radius: 999px !important;
  background: var(--admin-accent-soft) !important;
  background-image: none !important;
  color: #365574 !important;
  box-shadow: none !important;
}

html body[data-layout-role="admin"] .login-feedback,
html body[data-layout-role="admin"] .login-feedback--success,
html body[data-layout-role="admin"] .login-feedback--error {
  border-radius: 8px !important;
  background-image: none !important;
  box-shadow: none !important;
}

html body[data-layout-role="admin"] .login-feedback--success {
  border-color: #9bd7b7 !important;
  background: #effbf4 !important;
  color: #155c32 !important;
}

html body[data-layout-role="admin"] .login-feedback--error {
  border-color: #f0b2b2 !important;
  background: #fff3f3 !important;
  color: #8a2424 !important;
}
/* Admin dossier clean layout 2026-06-03 */
html body[data-layout-role="admin"] .portal-admin-workspace {
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: start !important;
}

html body[data-layout-role="admin"] .portal-admin-main {
  gap: 14px !important;
}

html body[data-layout-role="admin"] .portal-admin-detail-header.portal-admin-dossier {
  gap: 14px !important;
  padding: 22px 24px !important;
  background: #ffffff !important;
  border: 1px solid #d8e2ed !important;
  box-shadow: 0 12px 28px rgba(18, 35, 58, 0.06) !important;
  min-height: 0 !important;
}

html body[data-layout-role="admin"] .portal-admin-detail-header .portal-case__top {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

html body[data-layout-role="admin"] .portal-admin-detail-header .section-kicker,
html body[data-layout-role="admin"] .portal-admin-panel-copy .section-kicker {
  margin: 0 !important;
  color: #326ca8 !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

html body[data-layout-role="admin"] .portal-admin-detail-header h2 {
  margin: 4px 0 0 !important;
  color: #13243a !important;
  font-size: clamp(1.35rem, 1.1rem + 0.6vw, 2rem) !important;
  line-height: 1.12 !important;
}

html body[data-layout-role="admin"] .portal-admin-detail-header .portal-status {
  min-height: 30px !important;
  padding: 0 12px !important;
  background: #eef5fd !important;
  color: #31506f !important;
}

html body[data-layout-role="admin"] .portal-admin-detail-header .portal-case__meta {
  gap: 8px !important;
  margin: 2px 0 4px !important;
}

html body[data-layout-role="admin"] .portal-admin-detail-header .portal-case__meta span,
html body[data-layout-role="admin"] .portal-admin-detail-tags span {
  min-height: 28px !important;
  padding: 0 10px !important;
  border: 1px solid #dbe5ef !important;
  border-radius: 999px !important;
  background: #f7faff !important;
  color: #405974 !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

html body[data-layout-role="admin"] .portal-shortcuts {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: 2px 0 2px !important;
}

html body[data-layout-role="admin"] .portal-shortcuts .button,
html body[data-layout-role="admin"] .portal-inline-links .button,
html body[data-layout-role="admin"] .login-actions .button {
  min-height: 38px !important;
  padding: 0 14px !important;
  border-radius: 6px !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

html body[data-layout-role="admin"] .portal-admin-tabbar {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)) !important;
  gap: 8px !important;
  padding: 10px !important;
  margin-top: 4px !important;
  border: 1px solid #dbe5ef !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  box-shadow: none !important;
}

html body[data-layout-role="admin"] .portal-admin-tab {
  min-width: 0 !important;
  min-height: 42px !important;
  padding: 0 12px !important;
  border: 1px solid #d7e1ec !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  color: #344d68 !important;
  font-size: 0.86rem !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: none !important;
}

html body[data-layout-role="admin"] .portal-admin-tab.is-active,
html body[data-layout-role="admin"] .portal-admin-tab[aria-selected="true"] {
  border-color: #24282e !important;
  background: #24282e !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: none !important;
}

html body[data-layout-role="admin"] .portal-admin-tabpanels {
  margin-top: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body[data-layout-role="admin"] .portal-admin-panel {
  gap: 14px !important;
  padding: 0 !important;
  background: transparent !important;
}

html body[data-layout-role="admin"] .portal-admin-panel-copy {
  gap: 3px !important;
  padding: 0 !important;
}

html body[data-layout-role="admin"] .portal-admin-panel-copy h3 {
  margin: 0 !important;
  color: #13243a !important;
  font-size: 1.08rem !important;
  line-height: 1.3 !important;
}

html body[data-layout-role="admin"] .portal-admin-photo-form {
  display: grid !important;
  grid-template-columns: minmax(180px, 260px) minmax(280px, 1fr) auto !important;
  gap: 14px !important;
  align-items: end !important;
  padding: 18px !important;
  border: 1px solid #dbe5ef !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

html body[data-layout-role="admin"] .portal-admin-photo-form .field {
  margin: 0 !important;
  gap: 7px !important;
}

html body[data-layout-role="admin"] .portal-admin-photo-form .field:nth-of-type(3) {
  grid-column: 1 / -1 !important;
}

html body[data-layout-role="admin"] .portal-admin-photo-form .login-actions {
  margin: 0 !important;
  align-self: stretch !important;
  display: flex !important;
  align-items: end !important;
}

html body[data-layout-role="admin"] .portal-admin-photo-form .login-actions .button {
  min-width: 160px !important;
  height: 42px !important;
}

html body[data-layout-role="admin"] .portal-admin-photo-form label > span:first-child,
html body[data-layout-role="admin"] .portal-admin-photo-form .field > span:first-child {
  color: #326ca8 !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

html body[data-layout-role="admin"] .portal-admin-photo-form input,
html body[data-layout-role="admin"] .portal-admin-photo-form select,
html body[data-layout-role="admin"] .portal-admin-photo-form textarea {
  width: 100% !important;
  min-height: 42px !important;
  padding: 0 12px !important;
  border: 1px solid #cbd8e6 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  color: #13243a !important;
  font-size: 0.92rem !important;
}

html body[data-layout-role="admin"] .portal-admin-photo-form textarea {
  min-height: 82px !important;
  padding-top: 11px !important;
  resize: vertical !important;
}

html body[data-layout-role="admin"] .portal-admin-photo-form input[type="file"] {
  display: flex !important;
  align-items: center !important;
  padding: 8px 10px !important;
  background: #f8fafc !important;
}

html body[data-layout-role="admin"] .portal-admin-photo-form input[type="file"]::file-selector-button {
  min-height: 30px !important;
  margin-right: 12px !important;
  border: 1px solid #c8d5e4 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  color: #13243a !important;
  font-weight: 700 !important;
}

html body[data-layout-role="admin"] .portal-admin-panel[data-portal-panel="photos"] .portal-mini-note {
  padding: 14px 16px !important;
  border: 1px solid #dbe5ef !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  color: #405974 !important;
  box-shadow: none !important;
}

html body[data-layout-role="admin"] .portal-admin-panel[data-portal-panel="photos"] .portal-mini-note strong {
  color: #13243a !important;
  font-size: 0.96rem !important;
}

html body[data-layout-role="admin"] .portal-admin-panel[data-portal-panel="photos"] .portal-mini-note p {
  margin: 4px 0 0 !important;
  color: #5f7186 !important;
}

html body[data-layout-role="admin"] .portal-admin-sidebar-card {
  padding: 18px !important;
  background: #ffffff !important;
}

html body[data-layout-role="admin"] .portal-admin-sidebar-card .button,
html body[data-layout-role="admin"] .portal-admin-sidebar-card input,
html body[data-layout-role="admin"] .portal-admin-sidebar-card select,
html body[data-layout-role="admin"] .portal-admin-sidebar-card textarea {
  min-height: 38px !important;
}

html body[data-layout-role="admin"] .portal-backup-upload {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  padding: 10px !important;
  background: #f8fafc !important;
}

html body[data-layout-role="admin"] .portal-backup-upload .button,
html body[data-layout-role="admin"] .portal-backup-file-label,
html body[data-layout-role="admin"] .portal-backup-file {
  min-height: 36px !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

html body[data-layout-role="admin"] .portal-admin-photo-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
  gap: 12px !important;
}

html body[data-layout-role="admin"] .portal-admin-photo-card {
  border: 1px solid #dbe5ef !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

html body[data-layout-role="admin"] .portal-admin-photo-card__media {
  background: #eef4fa !important;
  border-bottom: 1px solid #dbe5ef !important;
}

html body[data-layout-role="admin"] .portal-admin-file-badge {
  background: #eaf3ff !important;
  color: #24282e !important;
}

@media (max-width: 1100px) {
  html body[data-layout-role="admin"] .portal-admin-workspace {
    grid-template-columns: 1fr !important;
  }

  html body[data-layout-role="admin"] .portal-admin-sidebar {
    position: static !important;
  }

  html body[data-layout-role="admin"] .portal-admin-photo-form {
    grid-template-columns: 1fr !important;
  }

  html body[data-layout-role="admin"] .portal-admin-photo-form .login-actions {
    align-items: stretch !important;
  }

  html body[data-layout-role="admin"] .portal-admin-photo-form .login-actions .button {
    width: 100% !important;
  }
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a.portal-admin-nav--customers,
html body.portal-page--admin .rs-admin-sidebar__nav a.portal-admin-nav--customers {
  --admin-nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8ZM22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75' stroke='black' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a.portal-admin-nav--backup,
html body.portal-page--admin .rs-admin-sidebar__nav a.portal-admin-nav--backup {
  --admin-nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cellipse cx='12' cy='5' rx='8' ry='3' stroke='black' stroke-width='2' fill='none'/%3E%3Cpath d='M4 5v10c0 1.7 3.6 3 8 3s8-1.3 8-3V5M4 10c0 1.7 3.6 3 8 3s8-1.3 8-3M12 21v-6M9 18l3 3 3-3' stroke='black' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a.portal-admin-nav--account,
html body.portal-page--admin .rs-admin-sidebar__nav a.portal-admin-nav--account {
  --admin-nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='8' r='4' stroke='black' stroke-width='2' fill='none'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0' stroke='black' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a.portal-admin-nav--planning,
html body.portal-page--admin .rs-admin-sidebar__nav a.portal-admin-nav--planning {
  --admin-nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='4' width='18' height='17' rx='2' stroke='black' stroke-width='2' fill='none'/%3E%3Cpath d='M8 2v4M16 2v4M3 10h18' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a.portal-admin-nav--homepage,
html body.portal-page--admin .rs-admin-sidebar__nav a.portal-admin-nav--homepage {
  --admin-nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 20h9M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z' stroke='black' stroke-width='2' fill='none' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a.portal-admin-nav--bookkeeper,
html body.portal-page--admin .rs-admin-sidebar__nav a.portal-admin-nav--bookkeeper {
  --admin-nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 2h9l5 5v15H6zM14 2v6h6M9 13h6M9 17h6' stroke='black' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a.portal-admin-nav--invoice_check,
html body.portal-page--admin .rs-admin-sidebar__nav a.portal-admin-nav--invoice_check {
  --admin-nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 2h12v20l-3-2-3 2-3-2-3 2zM9 8h6M9 12h6M9 16h3M15 16l2 2 4-5' stroke='black' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a.portal-admin-nav--documents,
html body.portal-page--admin .rs-admin-sidebar__nav a.portal-admin-nav--documents {
  --admin-nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 7h6l2 2h10v10a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z' stroke='black' stroke-width='2' fill='none' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a.portal-admin-nav--prices,
html body.portal-page--admin .rs-admin-sidebar__nav a.portal-admin-nav--prices {
  --admin-nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6ZM19.4 15a1.7 1.7 0 0 0 .34 1.88l.05.08a2 2 0 1 1-3.46 2l-.05-.08a1.7 1.7 0 0 0-1.62-.94h-.1a1.7 1.7 0 0 0-1.47.94l-.05.08a2 2 0 1 1-3.46-2l.05-.08A1.7 1.7 0 0 0 4.6 15a2 2 0 1 1 0-4 1.7 1.7 0 0 0 1.47-.94l.05-.08a2 2 0 1 1 3.46-2l-.05.08a1.7 1.7 0 0 0 1.47.94h.1a1.7 1.7 0 0 0 1.62-.94l.05-.08a2 2 0 1 1 3.46 2l-.05.08A1.7 1.7 0 0 0 19.4 11a2 2 0 1 1 0 4Z' stroke='black' stroke-width='1.7' fill='none'/%3E%3C/svg%3E") !important;
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a.portal-admin-nav--administration,
html body.portal-page--admin .rs-admin-sidebar__nav a.portal-admin-nav--administration {
  --admin-nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='7' width='18' height='14' rx='2' stroke='black' stroke-width='2' fill='none'/%3E%3Cpath d='M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2M3 12h18' stroke='black' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a.portal-admin-nav--archive,
html body.portal-page--admin .rs-admin-sidebar__nav a.portal-admin-nav--archive {
  --admin-nav-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 7h16M6 7v13h12V7M8 7V4h8v3M10 11h4' stroke='black' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

html body.portal-page--backup .portal-backup-dashboard {
  display: grid !important;
  gap: 18px !important;
  max-width: 1120px !important;
}

html body.portal-page--backup .portal-backup-dashboard h1,
html body.portal-page--backup .portal-backup-dashboard h2,
html body.portal-page--backup .portal-backup-dashboard p {
  margin-top: 0 !important;
}

html body.portal-page--backup .portal-backup-summary-grid,
html body.portal-page--backup .portal-backup-control-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

html body.portal-page--backup .portal-backup-control-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

html body.portal-page--backup .portal-backup-summary-card,
html body.portal-page--backup .portal-backup-panel,
html body.portal-page--backup .portal-backup-list-item {
  border: 1px solid #d6e2ee !important;
  border-radius: 8px !important;
  background: rgba(248, 251, 254, 0.88) !important;
  box-shadow: none !important;
}

html body.portal-page--backup .portal-backup-summary-card,
html body.portal-page--backup .portal-backup-panel {
  padding: 18px !important;
}

html body.portal-page--backup .portal-backup-summary-card span,
html body.portal-page--backup .portal-backup-list-item .section-kicker {
  display: block !important;
  margin-bottom: 6px !important;
  color: #477cac !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

html body.portal-page--backup .portal-backup-summary-card strong,
html body.portal-page--backup .portal-backup-list-item strong {
  display: block !important;
  color: #13243a !important;
  font-size: 1.06rem !important;
}

html body.portal-page--backup .portal-backup-summary-card p,
html body.portal-page--backup .portal-backup-panel p,
html body.portal-page--backup .portal-backup-list-item p {
  color: #5b7087 !important;
}

html body.portal-page--backup .portal-backup-list {
  display: grid !important;
  gap: 10px !important;
}

html body.portal-page--backup .portal-backup-list-item {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 14px !important;
  align-items: center !important;
  padding: 14px 16px !important;
}

html body.portal-page--backup .portal-backup-list-actions,
html body[data-layout-role="admin"].portal-page--backup .portal-backup-upload.portal-backup-upload--page {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  align-items: center !important;
}

html body[data-layout-role="admin"].portal-page--backup .portal-backup-upload.portal-backup-upload--page {
  grid-template-columns: none !important;
  padding: 0 !important;
  background: transparent !important;
}

@media (max-width: 900px) {
  html body.portal-page--backup .portal-backup-summary-grid,
  html body.portal-page--backup .portal-backup-control-grid,
  html body.portal-page--backup .portal-backup-list-item {
    grid-template-columns: 1fr !important;
  }

  html body.portal-page--backup .portal-backup-list-actions .button,
  html body.portal-page--backup .portal-backup-upload--page .button {
    width: 100% !important;
  }
}

/* Clear admin navigation hierarchy: klanten and back-up are primary, the rest is beheer. */
html body[data-layout-role="admin"] .rs-admin-sidebar,
html body[data-layout-role="admin"] > .rs-admin-sidebar {
  background: #eef5fb !important;
}

html body[data-layout-role="admin"] .rs-admin-sidebar__nav,
html body.portal-page--admin .rs-admin-sidebar__nav {
  gap: 7px !important;
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a,
html body.portal-page--admin .rs-admin-sidebar__nav a,
html body[data-layout-role="admin"] .portal-admin-mobile-menu__grid a {
  border: 1px solid #d7e4ef !important;
  background: #ffffff !important;
  color: #1f344f !important;
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a.portal-admin-nav--customers,
html body.portal-page--admin .rs-admin-sidebar__nav a.portal-admin-nav--customers,
html body[data-layout-role="admin"] .portal-admin-mobile-menu__grid a.portal-admin-nav--customers {
  border-color: #9bc7ef !important;
  background: linear-gradient(90deg, #f4f5f6, #ffffff) !important;
  color: #0d5fa8 !important;
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a.portal-admin-nav--backup,
html body.portal-page--admin .rs-admin-sidebar__nav a.portal-admin-nav--backup,
html body[data-layout-role="admin"] .portal-admin-mobile-menu__grid a.portal-admin-nav--backup {
  border-color: #9fd7bd !important;
  background: linear-gradient(90deg, #f4f5f6, #ffffff) !important;
  color: #127243 !important;
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a.portal-admin-nav--backup,
html body.portal-page--admin .rs-admin-sidebar__nav a.portal-admin-nav--backup {
  margin-bottom: 17px !important;
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a.portal-admin-nav--account,
html body.portal-page--admin .rs-admin-sidebar__nav a.portal-admin-nav--account {
  margin-top: 7px !important;
  box-shadow: 0 -13px 0 -12px #cad8e5 !important;
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a.portal-admin-nav--customers.is-active,
html body.portal-page--admin .rs-admin-sidebar__nav a.portal-admin-nav--customers.is-active,
html body[data-layout-role="admin"] .portal-admin-mobile-menu__grid a.portal-admin-nav--customers.is-active {
  border-color: #24282e !important;
  background: linear-gradient(90deg, #3b4148, #24282e) !important;
  color: #ffffff !important;
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a.portal-admin-nav--backup.is-active,
html body.portal-page--admin .rs-admin-sidebar__nav a.portal-admin-nav--backup.is-active,
html body[data-layout-role="admin"] .portal-admin-mobile-menu__grid a.portal-admin-nav--backup.is-active {
  border-color: #13945b !important;
  background: linear-gradient(90deg, #555b62, #32373d) !important;
  color: #ffffff !important;
}

html body.portal-page--backup .portal-backup-dashboard {
  border-color: #b8d9c8 !important;
}

html body.portal-page--backup .portal-backup-summary-card,
html body.portal-page--backup .portal-backup-panel,
html body.portal-page--backup .portal-backup-list-item {
  border-color: #cfe2d7 !important;
}

/* Admin neutral segment system 2026-06-04 */
html body[data-layout-role="admin"] {
  --admin-neutral-bg: #f4f7fb;
  --admin-neutral-surface: #ffffff;
  --admin-neutral-soft: #f8fafc;
  --admin-neutral-muted: #eef3f8;
  --admin-neutral-border: #d9e3ee;
  --admin-neutral-border-strong: #c4d2e0;
  --admin-neutral-text: #142338;
  --admin-neutral-soft-text: #5c6f84;
  --admin-neutral-accent: #353a41;
  --admin-neutral-accent-soft: #edf5ff;
  background: var(--admin-neutral-bg) !important;
}

html body[data-layout-role="admin"] :is(.tech-panel, .portal-section-card, .portal-admin-detail-header, .portal-admin-dossier, .portal-admin-sidebar-card, .portal-admin-card, .portal-case, .portal-admin-document, .portal-admin-photo-card, .document-builder-widget, .price-manager-card, .account-card, .login-card, .planning-dashboard-card, .planning-admin-actions-card, .planning-group-card, .planning-empty-card, .portal-blocked-menu__panel, .portal-backup-panel, .portal-backup-summary-card, .portal-backup-list-item) {
  border-color: var(--admin-neutral-border) !important;
  background: var(--admin-neutral-surface) !important;
  background-image: none !important;
  box-shadow: 0 10px 24px rgba(20, 35, 56, 0.055) !important;
  color: var(--admin-neutral-text) !important;
}

html body[data-layout-role="admin"] :is(.portal-mini-note, .portal-case__detail, .portal-attachment-list, .portal-admin-panel, .portal-notification-open-area, .portal-backup-upload, .planning-admin-search, .planning-quickbar, .portal-filter-bar, .portal-search-form, .portal-admin-tabbar, .portal-case-filter-bar) {
  border-color: var(--admin-neutral-border) !important;
  background: var(--admin-neutral-soft) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html body[data-layout-role="admin"] .rs-admin-sidebar,
html body[data-layout-role="admin"] > .rs-admin-sidebar,
html body[data-layout-role="admin"] .rs-admin-topbar,
html body[data-layout-role="admin"] .rs-admin-help {
  border-color: var(--admin-neutral-border) !important;
  background: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a,
html body.portal-page--admin .rs-admin-sidebar__nav a,
html body[data-layout-role="admin"] .portal-admin-mobile-menu__grid a {
  position: relative !important;
  min-height: 46px !important;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  background-image: none !important;
  color: #24384f !important;
  box-shadow: none !important;
  filter: none !important;
  text-shadow: none !important;
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a:hover,
html body.portal-page--admin .rs-admin-sidebar__nav a:hover,
html body[data-layout-role="admin"] .portal-admin-mobile-menu__grid a:hover,
html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a:focus-visible,
html body.portal-page--admin .rs-admin-sidebar__nav a:focus-visible,
html body[data-layout-role="admin"] .portal-admin-mobile-menu__grid a:focus-visible {
  border-color: var(--admin-neutral-border) !important;
  background: var(--admin-neutral-soft) !important;
  color: var(--admin-neutral-accent) !important;
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a.is-active,
html body.portal-page--admin .rs-admin-sidebar__nav a.is-active,
html body[data-layout-role="admin"] .portal-admin-mobile-menu__grid a.is-active,
html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a.portal-admin-nav--customers.is-active,
html body.portal-page--admin .rs-admin-sidebar__nav a.portal-admin-nav--customers.is-active,
html body[data-layout-role="admin"] .portal-admin-mobile-menu__grid a.portal-admin-nav--customers.is-active,
html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a.portal-admin-nav--backup.is-active,
html body.portal-page--admin .rs-admin-sidebar__nav a.portal-admin-nav--backup.is-active,
html body[data-layout-role="admin"] .portal-admin-mobile-menu__grid a.portal-admin-nav--backup.is-active {
  border-color: #bfdbfe !important;
  border-left-color: var(--admin-neutral-accent) !important;
  border-left-width: 4px !important;
  background: var(--admin-neutral-accent-soft) !important;
  background-image: none !important;
  color: #0f3f77 !important;
  -webkit-text-fill-color: #0f3f77 !important;
  box-shadow: none !important;
}

html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a.portal-admin-nav--customers,
html body.portal-page--admin .rs-admin-sidebar__nav a.portal-admin-nav--customers,
html body[data-layout-role="admin"] .portal-admin-mobile-menu__grid a.portal-admin-nav--customers,
html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a.portal-admin-nav--backup,
html body.portal-page--admin .rs-admin-sidebar__nav a.portal-admin-nav--backup,
html body[data-layout-role="admin"] .portal-admin-mobile-menu__grid a.portal-admin-nav--backup {
  border-color: transparent !important;
  background: #ffffff !important;
  background-image: none !important;
  color: #24384f !important;
  -webkit-text-fill-color: #24384f !important;
}

html body.portal-page--admin .rs-admin-sidebar__nav a.portal-admin-nav--backup {
  margin-bottom: 12px !important;
}

html body.portal-page--admin .rs-admin-sidebar__nav a.portal-admin-nav--account {
  margin-top: 8px !important;
  box-shadow: 0 -11px 0 -10px var(--admin-neutral-border) !important;
}

html body[data-layout-role="admin"] .rs-admin-sidebar__nav .nav-core,
html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin .nav-core,
html body[data-layout-role="admin"] .portal-admin-mobile-menu__grid .nav-core {
  background: #6b7d92 !important;
  opacity: 1 !important;
}

html body[data-layout-role="admin"] .rs-admin-sidebar__nav a.is-active .nav-core,
html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a.is-active .nav-core,
html body[data-layout-role="admin"] .portal-admin-mobile-menu__grid a.is-active .nav-core {
  background: var(--admin-neutral-accent) !important;
}

html body[data-layout-role="admin"] :is(.button-primary, .portal-inline-button.button-primary, button[type="submit"]:not(.portal-mini-button), .filter-button.is-active, .portal-case-filter.is-active, .portal-admin-tab.is-active, .portal-admin-tab[aria-selected="true"], .portal-finance-filter.is-active, .portal-finance-chip.is-active) {
  border-color: #2e3339 !important;
  background: #353a41 !important;
  background-image: none !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: none !important;
}

html body[data-layout-role="admin"] :is(.button-primary, .portal-inline-button.button-primary, button[type="submit"]:not(.portal-mini-button), .filter-button.is-active, .portal-case-filter.is-active, .portal-admin-tab.is-active, .portal-admin-tab[aria-selected="true"], .portal-finance-filter.is-active, .portal-finance-chip.is-active):hover,
html body[data-layout-role="admin"] :is(.button-primary, .portal-inline-button.button-primary, button[type="submit"]:not(.portal-mini-button), .filter-button.is-active, .portal-case-filter.is-active, .portal-admin-tab.is-active, .portal-admin-tab[aria-selected="true"], .portal-finance-filter.is-active, .portal-finance-chip.is-active):focus-visible {
  border-color: #1756a8 !important;
  background: #2a2f35 !important;
  background-image: none !important;
  box-shadow: 0 0 0 3px rgba(31, 111, 209, 0.16) !important;
}

html body[data-layout-role="admin"] :is(.button, .portal-inline-button, .portal-mini-button, .filter-button, .portal-admin-tab, .portal-case-filter, .portal-finance-filter, .portal-finance-chip, .portal-blocked-menu__toggle):not(.button-primary):not(.is-active) {
  border-color: var(--admin-neutral-border-strong) !important;
  background: #ffffff !important;
  background-image: none !important;
  color: #263a52 !important;
  -webkit-text-fill-color: #263a52 !important;
  box-shadow: none !important;
}

html body[data-layout-role="admin"] :is(input, select, textarea) {
  border-color: var(--admin-neutral-border-strong) !important;
  background: #ffffff !important;
  background-image: none !important;
  color: var(--admin-neutral-text) !important;
  box-shadow: none !important;
}

html body[data-layout-role="admin"] :is(.portal-status, .status-pill, .portal-admin-stat, .portal-admin-detail-tags span, .portal-case__meta span, .portal-kpi, .planning-dashboard-stats article) {
  border-color: var(--admin-neutral-border) !important;
  background: var(--admin-neutral-soft) !important;
  background-image: none !important;
  color: #425970 !important;
  box-shadow: none !important;
}

html body[data-layout-role="admin"] :is(.portal-status--completed, .portal-status--approved, .portal-status--paid, .portal-status--planned, .portal-status--requested, .portal-status--waiting_customer, .portal-status--warning, .portal-status--reviewed, .portal-status--closed, .portal-status--cancelled, .portal-status--unpaid, .portal-status--in_progress, .portal-status--new) {
  border-color: var(--admin-neutral-border) !important;
  background: var(--admin-neutral-soft) !important;
  color: #425970 !important;
}

html body[data-layout-role="admin"] :is(.portal-admin-sidebar-card, .portal-admin-detail-header, .portal-admin-dossier, .portal-mini-note, .portal-case, .portal-admin-document, .portal-backup-panel, .portal-backup-summary-card, .portal-backup-list-item):hover,
html body[data-layout-role="admin"] :is(.portal-admin-sidebar-card, .portal-admin-detail-header, .portal-admin-dossier, .portal-mini-note, .portal-case, .portal-admin-document, .portal-backup-panel, .portal-backup-summary-card, .portal-backup-list-item):focus-within {
  transform: none !important;
  filter: none !important;
  box-shadow: 0 10px 24px rgba(20, 35, 56, 0.055) !important;
}

html body.portal-page--backup .portal-backup-dashboard,
html body.portal-page--backup .portal-backup-summary-card,
html body.portal-page--backup .portal-backup-panel,
html body.portal-page--backup .portal-backup-list-item {
  border-color: var(--admin-neutral-border) !important;
}
/* Admin grayscale no blue 2026-06-04 */
html body.portal-page[data-layout-role="admin"],
html body.portal-page--admin[data-layout-role="admin"],
html body[data-layout-role="admin"] {
  --admin-gray-bg: #f4f5f6;
  --admin-gray-surface: #ffffff;
  --admin-gray-soft: #f7f8f9;
  --admin-gray-muted: #eceff2;
  --admin-gray-border: #d8dde2;
  --admin-gray-border-strong: #bfc7cf;
  --admin-gray-text: #1f242b;
  --admin-gray-text-soft: #5f6873;
  --admin-gray-active: #2f343a;
  --admin-gray-active-hover: #1f2328;
  --admin-gray-active-soft: #eef0f2;
  background: var(--admin-gray-bg) !important;
  color: var(--admin-gray-text) !important;
}

html body.portal-page[data-layout-role="admin"]::before,
html body.portal-page[data-layout-role="admin"]::after,
html body[data-layout-role="admin"]::before,
html body[data-layout-role="admin"]::after,
html body[data-layout-role="admin"] .page-noise,
html body[data-layout-role="admin"] .panel-corners,
html body[data-layout-role="admin"] .nav-sheen,
html body[data-layout-role="admin"] .tech-panel::before,
html body[data-layout-role="admin"] .tech-panel::after,
html body[data-layout-role="admin"] .portal-section-card::before,
html body[data-layout-role="admin"] .portal-section-card::after,
html body[data-layout-role="admin"] .button::before,
html body[data-layout-role="admin"] .button::after,
html body[data-layout-role="admin"] .portal-inline-button::before,
html body[data-layout-role="admin"] .portal-inline-button::after,
html body[data-layout-role="admin"] .portal-admin-tab::before,
html body[data-layout-role="admin"] .portal-admin-tab::after,
html body[data-layout-role="admin"] .portal-case-filter::before,
html body[data-layout-role="admin"] .portal-case-filter::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
}

html body[data-layout-role="admin"] *,
html body[data-layout-role="admin"] *::before,
html body[data-layout-role="admin"] *::after {
  text-shadow: none !important;
}

html body[data-layout-role="admin"] .rs-admin-topbar,
html body[data-layout-role="admin"] .rs-admin-sidebar,
html body[data-layout-role="admin"] > .rs-admin-sidebar,
html body[data-layout-role="admin"] .rs-admin-help {
  background: #ffffff !important;
  background-image: none !important;
  border-color: var(--admin-gray-border) !important;
  box-shadow: none !important;
  color: var(--admin-gray-text) !important;
}

html body[data-layout-role="admin"] .rs-admin-brand,
html body[data-layout-role="admin"] .rs-admin-brand span,
html body[data-layout-role="admin"] h1,
html body[data-layout-role="admin"] h2,
html body[data-layout-role="admin"] h3,
html body[data-layout-role="admin"] h4,
html body[data-layout-role="admin"] strong,
html body[data-layout-role="admin"] .nav-label {
  color: var(--admin-gray-text) !important;
  -webkit-text-fill-color: var(--admin-gray-text) !important;
}

html body[data-layout-role="admin"] p,
html body[data-layout-role="admin"] small,
html body[data-layout-role="admin"] .field-hint,
html body[data-layout-role="admin"] .portal-case__meta,
html body[data-layout-role="admin"] .portal-case__summary,
html body[data-layout-role="admin"] .portal-admin-document__meta,
html body[data-layout-role="admin"] .portal-session__text {
  color: var(--admin-gray-text-soft) !important;
  -webkit-text-fill-color: var(--admin-gray-text-soft) !important;
}

html body[data-layout-role="admin"] .section-kicker,
html body[data-layout-role="admin"] label > span:first-child,
html body[data-layout-role="admin"] .field > span:first-child,
html body[data-layout-role="admin"] legend {
  color: #5c646d !important;
  -webkit-text-fill-color: #5c646d !important;
  letter-spacing: 0.1em !important;
}

html body[data-layout-role="admin"] .rs-admin-sidebar__nav a,
html body[data-layout-role="admin"] .rs-admin-sidebar__nav a.portal-admin-nav--customers,
html body[data-layout-role="admin"] .rs-admin-sidebar__nav a.portal-admin-nav--backup,
html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a,
html body[data-layout-role="admin"] .portal-admin-mobile-menu__grid a {
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #2f343a !important;
  -webkit-text-fill-color: #2f343a !important;
  box-shadow: none !important;
  filter: none !important;
}

html body[data-layout-role="admin"] .rs-admin-sidebar__nav a:hover,
html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a:hover,
html body[data-layout-role="admin"] .portal-admin-mobile-menu__grid a:hover,
html body[data-layout-role="admin"] .rs-admin-sidebar__nav a:focus-visible,
html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a:focus-visible,
html body[data-layout-role="admin"] .portal-admin-mobile-menu__grid a:focus-visible {
  border-color: var(--admin-gray-border) !important;
  background: var(--admin-gray-soft) !important;
  background-image: none !important;
  color: #1f242b !important;
  -webkit-text-fill-color: #1f242b !important;
}

html body[data-layout-role="admin"] .rs-admin-sidebar__nav a.is-active,
html body[data-layout-role="admin"] .rs-admin-sidebar__nav a.portal-admin-nav--customers.is-active,
html body[data-layout-role="admin"] .rs-admin-sidebar__nav a.portal-admin-nav--backup.is-active,
html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a.is-active,
html body[data-layout-role="admin"] .portal-admin-mobile-menu__grid a.is-active {
  border-color: var(--admin-gray-border-strong) !important;
  border-left: 4px solid var(--admin-gray-active) !important;
  background: var(--admin-gray-active-soft) !important;
  background-color: var(--admin-gray-active-soft) !important;
  background-image: none !important;
  color: #1f242b !important;
  -webkit-text-fill-color: #1f242b !important;
  box-shadow: none !important;
}

html body[data-layout-role="admin"] .rs-admin-sidebar__nav .nav-core,
html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin .nav-core,
html body[data-layout-role="admin"] .portal-admin-mobile-menu__grid .nav-core,
html body[data-layout-role="admin"] .rs-admin-sidebar__nav a.is-active .nav-core,
html body[data-layout-role="admin"] .site-header .site-nav.portal-nav--admin > a.is-active .nav-core,
html body[data-layout-role="admin"] .portal-admin-mobile-menu__grid a.is-active .nav-core {
  background: #6b737c !important;
  opacity: 1 !important;
}

html body[data-layout-role="admin"] .tech-panel,
html body[data-layout-role="admin"] .tech-panel:hover,
html body[data-layout-role="admin"] .tech-panel:focus-within,
html body[data-layout-role="admin"] .portal-section-card,
html body[data-layout-role="admin"] .portal-section-card:hover,
html body[data-layout-role="admin"] .portal-section-card:focus-within,
html body[data-layout-role="admin"] .portal-section-card.tech-panel,
html body[data-layout-role="admin"] .portal-section-card.tech-panel:hover,
html body[data-layout-role="admin"] .portal-section-card.tech-panel:focus-within,
html body[data-layout-role="admin"] .portal-section-card.tech-panel.price-manager-card,
html body[data-layout-role="admin"] .portal-section-card.tech-panel.price-manager-card:hover,
html body[data-layout-role="admin"] .portal-section-card.tech-panel.price-manager-card:focus-within,
html body[data-layout-role="admin"] .price-manager-card,
html body[data-layout-role="admin"] .price-manager-card:hover,
html body[data-layout-role="admin"] .price-manager-card:focus-within,
html body[data-layout-role="admin"] .portal-admin-sidebar-card,
html body[data-layout-role="admin"] .portal-admin-detail-header,
html body[data-layout-role="admin"] .portal-admin-dossier,
html body[data-layout-role="admin"] .portal-admin-card,
html body[data-layout-role="admin"] .portal-case,
html body[data-layout-role="admin"] .portal-admin-document,
html body[data-layout-role="admin"] .portal-admin-photo-card,
html body[data-layout-role="admin"] .document-builder-widget,
html body[data-layout-role="admin"] .price-manager-card,
html body[data-layout-role="admin"] .account-card,
html body[data-layout-role="admin"] .login-card,
html body[data-layout-role="admin"] .planning-dashboard-card,
html body[data-layout-role="admin"] .planning-admin-actions-card,
html body[data-layout-role="admin"] .planning-group-card,
html body[data-layout-role="admin"] .planning-empty-card,
html body[data-layout-role="admin"] .portal-backup-panel,
html body[data-layout-role="admin"] .portal-backup-summary-card,
html body[data-layout-role="admin"] .portal-backup-list-item {
  border: 1px solid var(--admin-gray-border) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: var(--admin-gray-text) !important;
  -webkit-text-fill-color: initial !important;
  box-shadow: 0 8px 18px rgba(31, 36, 43, 0.045) !important;
  filter: none !important;
  transform: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body[data-layout-role="admin"] .portal-mini-note,
html body[data-layout-role="admin"] .portal-case__detail,
html body[data-layout-role="admin"] .portal-admin-panel,
html body[data-layout-role="admin"] .portal-admin-tabbar,
html body[data-layout-role="admin"] .portal-case-filter-bar,
html body[data-layout-role="admin"] .portal-filter-bar,
html body[data-layout-role="admin"] .portal-search-form,
html body[data-layout-role="admin"] .planning-quickbar,
html body[data-layout-role="admin"] .planning-admin-search,
html body[data-layout-role="admin"] .portal-backup-upload,
html body[data-layout-role="admin"] .price-manager-form,
html body[data-layout-role="admin"] .price-manager-grid,
html body[data-layout-role="admin"] .portal-attachment-list,
html body[data-layout-role="admin"] .portal-notification-open-area {
  border-color: var(--admin-gray-border) !important;
  background: var(--admin-gray-soft) !important;
  background-color: var(--admin-gray-soft) !important;
  background-image: none !important;
  box-shadow: none !important;
}

html body[data-layout-role="admin"] .button,
html body[data-layout-role="admin"] .portal-inline-button,
html body[data-layout-role="admin"] .portal-mini-button,
html body[data-layout-role="admin"] .filter-button,
html body[data-layout-role="admin"] .portal-admin-tab,
html body[data-layout-role="admin"] .portal-case-filter,
html body[data-layout-role="admin"] .portal-finance-filter,
html body[data-layout-role="admin"] .portal-finance-chip,
html body[data-layout-role="admin"] .portal-blocked-menu__toggle,
html body[data-layout-role="admin"] input[type="file"]::file-selector-button {
  border: 1px solid var(--admin-gray-border-strong) !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #2f343a !important;
  -webkit-text-fill-color: #2f343a !important;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
}

html body[data-layout-role="admin"] .button-primary,
html body[data-layout-role="admin"] .portal-inline-button.button-primary,
html body[data-layout-role="admin"] button[type="submit"]:not(.portal-mini-button),
html body[data-layout-role="admin"] .filter-button.is-active,
html body[data-layout-role="admin"] .portal-case-filter.is-active,
html body[data-layout-role="admin"] .portal-admin-tab.is-active,
html body[data-layout-role="admin"] .portal-admin-tab[aria-selected="true"],
html body[data-layout-role="admin"] .portal-finance-filter.is-active,
html body[data-layout-role="admin"] .portal-finance-chip.is-active {
  border-color: var(--admin-gray-active) !important;
  background: var(--admin-gray-active) !important;
  background-color: var(--admin-gray-active) !important;
  background-image: none !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: none !important;
}

html body[data-layout-role="admin"] .button-primary:hover,
html body[data-layout-role="admin"] .button-primary:focus-visible,
html body[data-layout-role="admin"] .portal-inline-button.button-primary:hover,
html body[data-layout-role="admin"] .portal-inline-button.button-primary:focus-visible,
html body[data-layout-role="admin"] button[type="submit"]:not(.portal-mini-button):hover,
html body[data-layout-role="admin"] button[type="submit"]:not(.portal-mini-button):focus-visible,
html body[data-layout-role="admin"] .filter-button.is-active:hover,
html body[data-layout-role="admin"] .portal-case-filter.is-active:hover,
html body[data-layout-role="admin"] .portal-admin-tab.is-active:hover,
html body[data-layout-role="admin"] .portal-admin-tab[aria-selected="true"]:hover {
  border-color: var(--admin-gray-active-hover) !important;
  background: var(--admin-gray-active-hover) !important;
  background-color: var(--admin-gray-active-hover) !important;
  background-image: none !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html body[data-layout-role="admin"] input,
html body[data-layout-role="admin"] select,
html body[data-layout-role="admin"] textarea {
  border: 1px solid var(--admin-gray-border-strong) !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: var(--admin-gray-text) !important;
  -webkit-text-fill-color: var(--admin-gray-text) !important;
  box-shadow: none !important;
}

html body[data-layout-role="admin"] input:focus,
html body[data-layout-role="admin"] select:focus,
html body[data-layout-role="admin"] textarea:focus {
  border-color: #69717a !important;
  outline: 0 !important;
  box-shadow: 0 0 0 3px rgba(31, 36, 43, 0.14) !important;
}

html body[data-layout-role="admin"] .portal-status,
html body[data-layout-role="admin"] .status-pill,
html body[data-layout-role="admin"] .portal-kpi,
html body[data-layout-role="admin"] .portal-admin-stat,
html body[data-layout-role="admin"] .portal-case__meta span,
html body[data-layout-role="admin"] .portal-admin-detail-tags span,
html body[data-layout-role="admin"] .planning-dashboard-stats article {
  border-color: var(--admin-gray-border) !important;
  background: var(--admin-gray-soft) !important;
  background-color: var(--admin-gray-soft) !important;
  background-image: none !important;
  color: #4f5964 !important;
  -webkit-text-fill-color: #4f5964 !important;
  box-shadow: none !important;
}
/* ADMIN NO BLUE HARD OVERRIDE 2026-06-04 */
body[data-layout-role="admin"],
body[data-layout-role="admin"] * {
  --accent: #2f343a !important;
  --accent-rgb: 47, 52, 58 !important;
  --accent-text: #2f343a !important;
  --primary: #2f343a !important;
  --primary-rgb: 47, 52, 58 !important;
  --blue: #2f343a !important;
  --admin-blue: #2f343a !important;
  --admin-accent: #2f343a !important;
  --admin-neutral-accent: #2f343a !important;
  --admin-gray-active: #2f343a !important;
}

body[data-layout-role="admin"] :is(
  .tech-panel,
  .portal-section-card,
  .price-manager-card,
  .portal-admin-sidebar-card,
  .portal-admin-detail-header,
  .portal-admin-dossier,
  .portal-mini-note,
  .portal-case,
  .portal-admin-document,
  .portal-admin-photo-card,
  .portal-admin-panel,
  .portal-admin-tabbar,
  .portal-case-filter-bar,
  .portal-filter-bar,
  .portal-search-form,
  .planning-quickbar,
  .planning-admin-search,
  .portal-backup-panel,
  .portal-backup-summary-card,
  .portal-backup-list-item,
  .portal-backup-upload,
  .document-builder-widget,
  .account-card,
  .planning-dashboard-card,
  .planning-admin-actions-card,
  .planning-group-card,
  .planning-empty-card
),
body[data-layout-role="admin"] :is(
  .tech-panel,
  .portal-section-card,
  .price-manager-card,
  .portal-admin-sidebar-card,
  .portal-admin-detail-header,
  .portal-admin-dossier,
  .portal-mini-note,
  .portal-case,
  .portal-admin-document,
  .portal-admin-photo-card,
  .portal-admin-panel,
  .portal-admin-tabbar,
  .portal-case-filter-bar,
  .portal-filter-bar,
  .portal-search-form,
  .planning-quickbar,
  .planning-admin-search,
  .portal-backup-panel,
  .portal-backup-summary-card,
  .portal-backup-list-item,
  .portal-backup-upload,
  .document-builder-widget,
  .account-card,
  .planning-dashboard-card,
  .planning-admin-actions-card,
  .planning-group-card,
  .planning-empty-card
):hover,
body[data-layout-role="admin"] :is(
  .tech-panel,
  .portal-section-card,
  .price-manager-card,
  .portal-admin-sidebar-card,
  .portal-admin-detail-header,
  .portal-admin-dossier,
  .portal-mini-note,
  .portal-case,
  .portal-admin-document,
  .portal-admin-photo-card,
  .portal-admin-panel,
  .portal-admin-tabbar,
  .portal-case-filter-bar,
  .portal-filter-bar,
  .portal-search-form,
  .planning-quickbar,
  .planning-admin-search,
  .portal-backup-panel,
  .portal-backup-summary-card,
  .portal-backup-list-item,
  .portal-backup-upload,
  .document-builder-widget,
  .account-card,
  .planning-dashboard-card,
  .planning-admin-actions-card,
  .planning-group-card,
  .planning-empty-card
):focus-within {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border-color: #d8dde2 !important;
  color: #1f242b !important;
  box-shadow: 0 8px 18px rgba(31,36,43,.05) !important;
  filter: none !important;
}

body[data-layout-role="admin"] :is(
  button,
  .button,
  .button-primary,
  .button-secondary,
  .portal-inline-button,
  .portal-mini-button,
  .filter-button,
  .portal-admin-tab,
  .portal-case-filter,
  .portal-finance-filter,
  .portal-finance-chip,
  .portal-blocked-menu__toggle,
  .rs-admin-sidebar__nav a,
  .site-nav.portal-nav--admin > a,
  input[type="file"]::file-selector-button
) {
  background-image: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
}

body[data-layout-role="admin"] :is(
  .button-primary,
  .portal-inline-button.button-primary,
  button[type="submit"]:not(.portal-mini-button),
  .filter-button.is-active,
  .portal-case-filter.is-active,
  .portal-admin-tab.is-active,
  .portal-admin-tab[aria-selected="true"],
  .portal-finance-filter.is-active,
  .portal-finance-chip.is-active
) {
  background: #2f343a !important;
  background-color: #2f343a !important;
  background-image: none !important;
  border-color: #2f343a !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body[data-layout-role="admin"] :is(input, select, textarea) {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border-color: #bfc7cf !important;
  color: #1f242b !important;
  box-shadow: none !important;
}

body[data-layout-role="admin"] :is(.portal-status,.status-pill,.portal-kpi,.portal-admin-stat,.portal-case__meta span,.portal-admin-detail-tags span) {
  background: #f4f5f6 !important;
  background-color: #f4f5f6 !important;
  background-image: none !important;
  border-color: #d8dde2 !important;
  color: #4f5964 !important;
  box-shadow: none !important;
}
/* ADMIN FORCE GRAY ALL ADMIN PAGES 2026-06-04 */
body.portal-page--admin,
body.portal-page--admin * {
  --accent: #30343a !important;
  --accent-rgb: 48,52,58 !important;
  --accent-text: #30343a !important;
  --primary: #30343a !important;
  --primary-rgb: 48,52,58 !important;
  --blue: #30343a !important;
  --admin-blue: #30343a !important;
  --admin-accent: #30343a !important;
  --admin-neutral-accent: #30343a !important;
}

body.portal-page--admin :is(.button-primary,.portal-inline-button.button-primary,button[type="submit"],.filter-button.is-active,.portal-finance-filter.is-active,.portal-finance-chip.is-active,.portal-auth-tab.is-active,.portal-case-filter.is-active,.portal-admin-tab.is-active,.portal-admin-tab[aria-selected="true"],.planning-duration-option.is-active,.planning-time-button.is-selected,.rs-admin-sidebar__nav a.is-active) {
  background: #30343a !important;
  background-color: #30343a !important;
  background-image: none !important;
  border-color: #30343a !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: none !important;
  text-shadow: none !important;
  filter: none !important;
}

body.portal-page--admin :is(.tech-panel,.portal-section-card,.portal-section-card.tech-panel,.portal-section-card.tech-panel.price-manager-card,.price-manager-card,.portal-finance-toolbar-card,.portal-finance-search-card,.portal-finance-summary-card,.portal-finance-group,.portal-admin-sidebar-card,.portal-admin-detail-header,.portal-admin-dossier,.portal-mini-note,.portal-case,.portal-admin-document,.document-builder-widget,.account-card,.planning-dashboard-card,.planning-admin-actions-card,.planning-group-card,.planning-empty-card,.portal-backup-panel,.portal-backup-summary-card,.portal-backup-list-item),
body.portal-page--admin :is(.tech-panel,.portal-section-card,.portal-section-card.tech-panel,.portal-section-card.tech-panel.price-manager-card,.price-manager-card,.portal-finance-toolbar-card,.portal-finance-search-card,.portal-finance-summary-card,.portal-finance-group,.portal-admin-sidebar-card,.portal-admin-detail-header,.portal-admin-dossier,.portal-mini-note,.portal-case,.portal-admin-document,.document-builder-widget,.account-card,.planning-dashboard-card,.planning-admin-actions-card,.planning-group-card,.planning-empty-card,.portal-backup-panel,.portal-backup-summary-card,.portal-backup-list-item):hover,
body.portal-page--admin :is(.tech-panel,.portal-section-card,.portal-section-card.tech-panel,.portal-section-card.tech-panel.price-manager-card,.price-manager-card,.portal-finance-toolbar-card,.portal-finance-search-card,.portal-finance-summary-card,.portal-finance-group,.portal-admin-sidebar-card,.portal-admin-detail-header,.portal-admin-dossier,.portal-mini-note,.portal-case,.portal-admin-document,.document-builder-widget,.account-card,.planning-dashboard-card,.planning-admin-actions-card,.planning-group-card,.planning-empty-card,.portal-backup-panel,.portal-backup-summary-card,.portal-backup-list-item):focus-within {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border-color: #d7dce2 !important;
  color: #1f242b !important;
  box-shadow: 0 8px 18px rgba(31,36,43,.05) !important;
  filter: none !important;
  transform: none !important;
}

body.portal-page--admin :is(.button,.portal-inline-button,.portal-mini-button,.filter-button,.portal-finance-filter,.portal-finance-chip,.portal-auth-tab,.portal-case-filter,.portal-admin-tab,.client-access-link,.menu-toggle,.portal-admin-inline-link):not(.button-primary):not(.is-active) {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border-color: #c5ccd3 !important;
  color: #30343a !important;
  -webkit-text-fill-color: #30343a !important;
  box-shadow: none !important;
}

body.portal-page--admin :is(input,select,textarea) {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border-color: #bfc7cf !important;
  color: #1f242b !important;
  box-shadow: none !important;
}

body.portal-page--admin :is(.portal-status,.portal-status-card,.status-pill,.portal-kpi,.portal-admin-stat,.portal-case__meta span,.portal-admin-detail-tags span,.portal-finance-chip:not(.is-active)) {
  background: #f4f5f6 !important;
  background-color: #f4f5f6 !important;
  background-image: none !important;
  border-color: #d7dce2 !important;
  color: #4f5964 !important;
  box-shadow: none !important;
}

body.portal-page--admin :is(.tech-panel,.portal-section-card,.button,.portal-inline-button,.portal-mini-button,.filter-button,.portal-finance-filter,.portal-finance-chip,.portal-case-filter,.portal-admin-tab)::before,
body.portal-page--admin :is(.tech-panel,.portal-section-card,.button,.portal-inline-button,.portal-mini-button,.filter-button,.portal-finance-filter,.portal-finance-chip,.portal-case-filter,.portal-admin-tab)::after {
  display: none !important;
  content: none !important;
  background: none !important;
  background-image: none !important;
}
/* ADMIN KILL REMAINING BLUE BUTTONS 2026-06-04 */
body.portal-page--admin .portal-finance-filter.is-active,
body.portal-page--admin .portal-finance-chip.is-active,
body.portal-page--admin .filter-button.is-active,
body.portal-page--admin .button-primary,
body.portal-page--admin button.button-primary,
body.portal-page--admin button[type="submit"],
body.portal-page--admin .portal-admin-tab.is-active,
body.portal-page--admin .portal-case-filter.is-active,
body.portal-page--admin .portal-inline-button.button-primary,
body[data-layout-role="admin"] .portal-finance-filter.is-active,
body[data-layout-role="admin"] .portal-finance-chip.is-active,
body[data-layout-role="admin"] .filter-button.is-active,
body[data-layout-role="admin"] .button-primary,
body[data-layout-role="admin"] button.button-primary,
body[data-layout-role="admin"] button[type="submit"],
body[data-layout-role="admin"] .portal-admin-tab.is-active,
body[data-layout-role="admin"] .portal-case-filter.is-active,
body[data-layout-role="admin"] .portal-inline-button.button-primary {
  background: #1f1f1f !important;
  background-color: #1f1f1f !important;
  background-image: none !important;
  border-color: #1f1f1f !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

body.portal-page--admin .portal-finance-filter.is-active *,
body.portal-page--admin .portal-finance-chip.is-active *,
body.portal-page--admin .filter-button.is-active *,
body.portal-page--admin .button-primary *,
body.portal-page--admin button.button-primary *,
body.portal-page--admin button[type="submit"] *,
body.portal-page--admin .portal-admin-tab.is-active *,
body.portal-page--admin .portal-case-filter.is-active *,
body[data-layout-role="admin"] .portal-finance-filter.is-active *,
body[data-layout-role="admin"] .portal-finance-chip.is-active *,
body[data-layout-role="admin"] .filter-button.is-active *,
body[data-layout-role="admin"] .button-primary *,
body[data-layout-role="admin"] button.button-primary *,
body[data-layout-role="admin"] button[type="submit"] *,
body[data-layout-role="admin"] .portal-admin-tab.is-active *,
body[data-layout-role="admin"] .portal-case-filter.is-active * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.portal-page--admin .portal-finance-filter::before,
body.portal-page--admin .portal-finance-filter::after,
body.portal-page--admin .portal-finance-chip::before,
body.portal-page--admin .portal-finance-chip::after,
body.portal-page--admin .filter-button::before,
body.portal-page--admin .filter-button::after,
body.portal-page--admin .button::before,
body.portal-page--admin .button::after,
body.portal-page--admin button::before,
body.portal-page--admin button::after,
body[data-layout-role="admin"] .portal-finance-filter::before,
body[data-layout-role="admin"] .portal-finance-filter::after,
body[data-layout-role="admin"] .portal-finance-chip::before,
body[data-layout-role="admin"] .portal-finance-chip::after,
body[data-layout-role="admin"] .filter-button::before,
body[data-layout-role="admin"] .filter-button::after,
body[data-layout-role="admin"] .button::before,
body[data-layout-role="admin"] .button::after,
body[data-layout-role="admin"] button::before,
body[data-layout-role="admin"] button::after {
  display: none !important;
  content: none !important;
  background: none !important;
  background-image: none !important;
  opacity: 0 !important;
  box-shadow: none !important;
}

body.portal-page--admin input,
body.portal-page--admin select,
body.portal-page--admin textarea,
body[data-layout-role="admin"] input,
body[data-layout-role="admin"] select,
body[data-layout-role="admin"] textarea {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border-color: #9ca3aa !important;
}
/* FINANCE BOOKKEEPER NO BLUE 2026-06-04 */
body.portal-page--finance,
body.portal-page--finance *,
body[data-layout-role="bookkeeper"],
body[data-layout-role="bookkeeper"] * {
  --accent: #30343a !important;
  --accent-rgb: 48,52,58 !important;
  --primary: #30343a !important;
  --primary-rgb: 48,52,58 !important;
  --blue: #30343a !important;
  --admin-blue: #30343a !important;
  --admin-accent: #30343a !important;
}

body.portal-page--finance :is(.button-primary,.portal-inline-button.button-primary,button[type="submit"],.filter-button.is-active,.portal-finance-filter.is-active,.portal-finance-chip.is-active,.portal-case-filter.is-active),
body[data-layout-role="bookkeeper"] :is(.button-primary,.portal-inline-button.button-primary,button[type="submit"],.filter-button.is-active,.portal-finance-filter.is-active,.portal-finance-chip.is-active,.portal-case-filter.is-active) {
  background: #30343a !important;
  background-color: #30343a !important;
  background-image: none !important;
  border-color: #30343a !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

body.portal-page--finance :is(.tech-panel,.portal-section-card,.portal-finance-toolbar-card,.portal-finance-search-card,.portal-finance-summary-card,.portal-finance-group,.portal-case,.portal-admin-document,.planning-empty-card),
body.portal-page--finance :is(.tech-panel,.portal-section-card,.portal-finance-toolbar-card,.portal-finance-search-card,.portal-finance-summary-card,.portal-finance-group,.portal-case,.portal-admin-document,.planning-empty-card):hover,
body[data-layout-role="bookkeeper"] :is(.tech-panel,.portal-section-card,.portal-finance-toolbar-card,.portal-finance-search-card,.portal-finance-summary-card,.portal-finance-group,.portal-case,.portal-admin-document,.planning-empty-card),
body[data-layout-role="bookkeeper"] :is(.tech-panel,.portal-section-card,.portal-finance-toolbar-card,.portal-finance-search-card,.portal-finance-summary-card,.portal-finance-group,.portal-case,.portal-admin-document,.planning-empty-card):hover {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border-color: #d7dce2 !important;
  color: #1f242b !important;
  box-shadow: 0 8px 18px rgba(31,36,43,.05) !important;
  filter: none !important;
}

body.portal-page--finance :is(.button,.portal-inline-button,.portal-mini-button,.filter-button,.portal-finance-filter,.portal-finance-chip,.portal-case-filter):not(.button-primary):not(.is-active),
body[data-layout-role="bookkeeper"] :is(.button,.portal-inline-button,.portal-mini-button,.filter-button,.portal-finance-filter,.portal-finance-chip,.portal-case-filter):not(.button-primary):not(.is-active) {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border-color: #c5ccd3 !important;
  color: #30343a !important;
  -webkit-text-fill-color: #30343a !important;
  box-shadow: none !important;
}

body.portal-page--finance :is(.button,.portal-inline-button,.portal-mini-button,.filter-button,.portal-finance-filter,.portal-finance-chip,.portal-case-filter)::before,
body.portal-page--finance :is(.button,.portal-inline-button,.portal-mini-button,.filter-button,.portal-finance-filter,.portal-finance-chip,.portal-case-filter)::after,
body[data-layout-role="bookkeeper"] :is(.button,.portal-inline-button,.portal-mini-button,.filter-button,.portal-finance-filter,.portal-finance-chip,.portal-case-filter)::before,
body[data-layout-role="bookkeeper"] :is(.button,.portal-inline-button,.portal-mini-button,.filter-button,.portal-finance-filter,.portal-finance-chip,.portal-case-filter)::after {
  display: none !important;
  content: none !important;
  background: none !important;
  background-image: none !important;
  opacity: 0 !important;
}
/* ADMIN PLAIN SELECTORS NO BLUE 2026-06-04 */
body.portal-page--admin .button-primary,
body.portal-page--admin a.button-primary,
body.portal-page--admin button.button-primary,
body.portal-page--admin .button.button-primary,
body.portal-page--admin .portal-inline-button.button-primary,
body.portal-page--admin button[type="submit"],
body.portal-page--admin .portal-admin-tab.is-active,
body.portal-page--admin .portal-admin-tab[aria-selected="true"],
body.portal-page--admin .portal-case-filter.is-active,
body.portal-page--admin .filter-button.is-active,
body.portal-page--finance .button-primary,
body.portal-page--finance a.button-primary,
body.portal-page--finance button.button-primary,
body.portal-page--finance .button.button-primary,
body.portal-page--finance .portal-inline-button.button-primary,
body.portal-page--finance button[type="submit"],
body.portal-page--finance .portal-finance-filter.is-active,
body.portal-page--finance .portal-finance-chip.is-active,
body.portal-page--finance .filter-button.is-active,
body[data-layout-role="admin"] .button-primary,
body[data-layout-role="admin"] a.button-primary,
body[data-layout-role="admin"] button.button-primary,
body[data-layout-role="admin"] .button.button-primary,
body[data-layout-role="admin"] .portal-inline-button.button-primary,
body[data-layout-role="admin"] button[type="submit"],
body[data-layout-role="admin"] .portal-admin-tab.is-active,
body[data-layout-role="admin"] .portal-admin-tab[aria-selected="true"],
body[data-layout-role="admin"] .portal-case-filter.is-active,
body[data-layout-role="admin"] .filter-button.is-active {
  background: #1f1f1f !important;
  background-color: #1f1f1f !important;
  background-image: none !important;
  border-color: #1f1f1f !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

body.portal-page--admin .button-primary::before,
body.portal-page--admin .button-primary::after,
body.portal-page--admin .portal-admin-tab::before,
body.portal-page--admin .portal-admin-tab::after,
body.portal-page--admin .portal-case-filter::before,
body.portal-page--admin .portal-case-filter::after,
body.portal-page--finance .button-primary::before,
body.portal-page--finance .button-primary::after,
body.portal-page--finance .portal-finance-filter::before,
body.portal-page--finance .portal-finance-filter::after,
body.portal-page--finance .portal-finance-chip::before,
body.portal-page--finance .portal-finance-chip::after,
body[data-layout-role="admin"] .button-primary::before,
body[data-layout-role="admin"] .button-primary::after,
body[data-layout-role="admin"] .portal-admin-tab::before,
body[data-layout-role="admin"] .portal-admin-tab::after,
body[data-layout-role="admin"] .portal-case-filter::before,
body[data-layout-role="admin"] .portal-case-filter::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

body.portal-page--admin .button-primary *,
body.portal-page--admin .portal-admin-tab.is-active *,
body.portal-page--admin .portal-case-filter.is-active *,
body.portal-page--finance .button-primary *,
body.portal-page--finance .portal-finance-filter.is-active *,
body.portal-page--finance .portal-finance-chip.is-active *,
body[data-layout-role="admin"] .button-primary *,
body[data-layout-role="admin"] .portal-admin-tab.is-active *,
body[data-layout-role="admin"] .portal-case-filter.is-active * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.portal-page--admin .portal-admin-tab:not(.is-active),
body.portal-page--admin .portal-case-filter:not(.is-active),
body.portal-page--admin .button:not(.button-primary),
body.portal-page--finance .portal-finance-filter:not(.is-active),
body.portal-page--finance .portal-finance-chip:not(.is-active),
body.portal-page--finance .button:not(.button-primary),
body[data-layout-role="admin"] .portal-admin-tab:not(.is-active),
body[data-layout-role="admin"] .portal-case-filter:not(.is-active),
body[data-layout-role="admin"] .button:not(.button-primary) {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border-color: #c7ccd1 !important;
  color: #252525 !important;
  -webkit-text-fill-color: #252525 !important;
  box-shadow: none !important;
}
/* ADMIN ACCOUNT INPUTS BLACK WHITE 2026-06-04 */
body.portal-page--admin input,
body.portal-page--admin select,
body.portal-page--admin textarea,
body.portal-page--admin .account-card input,
body.portal-page--admin .account-card select,
body.portal-page--admin .account-card textarea,
body[data-layout-role="admin"] input,
body[data-layout-role="admin"] select,
body[data-layout-role="admin"] textarea,
body[data-layout-role="admin"] .account-card input,
body[data-layout-role="admin"] .account-card select,
body[data-layout-role="admin"] .account-card textarea {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border: 1px solid #9b9b9b !important;
  color: #1f1f1f !important;
  -webkit-text-fill-color: #1f1f1f !important;
  box-shadow: none !important;
}

body.portal-page--admin input:disabled,
body.portal-page--admin select:disabled,
body.portal-page--admin textarea:disabled,
body[data-layout-role="admin"] input:disabled,
body[data-layout-role="admin"] select:disabled,
body[data-layout-role="admin"] textarea:disabled {
  background: #eeeeee !important;
  background-color: #eeeeee !important;
  color: #4a4a4a !important;
  -webkit-text-fill-color: #4a4a4a !important;
}

body.portal-page--admin .button-primary,
body.portal-page--admin button.button-primary,
body.portal-page--admin .button.button-primary,
body.portal-page--admin button[type="submit"],
body[data-layout-role="admin"] .button-primary,
body[data-layout-role="admin"] button.button-primary,
body[data-layout-role="admin"] .button.button-primary,
body[data-layout-role="admin"] button[type="submit"] {
  background: #1f1f1f !important;
  background-color: #1f1f1f !important;
  background-image: none !important;
  border-color: #1f1f1f !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

body.portal-page--admin .button-primary::before,
body.portal-page--admin .button-primary::after,
body.portal-page--admin button.button-primary::before,
body.portal-page--admin button.button-primary::after,
body.portal-page--admin .button.button-primary::before,
body.portal-page--admin .button.button-primary::after,
body.portal-page--admin button[type="submit"]::before,
body.portal-page--admin button[type="submit"]::after,
body[data-layout-role="admin"] .button-primary::before,
body[data-layout-role="admin"] .button-primary::after,
body[data-layout-role="admin"] button.button-primary::before,
body[data-layout-role="admin"] button.button-primary::after,
body[data-layout-role="admin"] .button.button-primary::before,
body[data-layout-role="admin"] .button.button-primary::after,
body[data-layout-role="admin"] button[type="submit"]::before,
body[data-layout-role="admin"] button[type="submit"]::after {
  display: none !important;
  content: none !important;
  opacity: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}
/* RS admin direct gray/antracite reset - 20260604-direct-gray-24 */
body.portal-page--admin,
body.portal-page--finance,
body.portal-page--backup,
body[data-layout-role="admin"],
body[data-layout-role="bookkeeper"] {
  --rs-admin-ink: #121417 !important;
  --rs-admin-muted: #5e6670 !important;
  --rs-admin-line: #d9dee4 !important;
  --rs-admin-panel: #ffffff !important;
  --rs-admin-soft: #f3f4f6 !important;
  --rs-admin-field: #e7ebef !important;
  --rs-admin-accent: #24282e !important;
  --admin-blue: #24282e !important;
  --admin-blue-dark: #171a1f !important;
  --admin-accent: #24282e !important;
  --admin-focus: rgba(31, 36, 43, 0.18) !important;
  color: #121417 !important;
  background: #f3f4f6 !important;
}

body.portal-page--admin .portal-admin-shell,
body.portal-page--finance .portal-admin-shell,
body.portal-page--backup .portal-admin-shell,
body[data-layout-role="admin"] .portal-admin-shell,
body[data-layout-role="bookkeeper"] .portal-admin-shell {
  display: grid !important;
  grid-template-columns: 248px minmax(0, 1fr) !important;
  gap: 28px !important;
  width: 100% !important;
  max-width: none !important;
  padding: 28px 28px 40px !important;
  box-sizing: border-box !important;
}

body.portal-page--admin .portal-admin-sidebar,
body.portal-page--finance .portal-admin-sidebar,
body.portal-page--backup .portal-admin-sidebar,
body[data-layout-role="admin"] .portal-admin-sidebar,
body[data-layout-role="bookkeeper"] .portal-admin-sidebar {
  width: 248px !important;
  min-width: 248px !important;
  max-width: 248px !important;
  background: #ffffff !important;
  border-right: 1px solid #dfe3e8 !important;
  box-shadow: none !important;
  overflow-x: hidden !important;
}

body.portal-page--admin .portal-admin-main,
body.portal-page--finance .portal-admin-main,
body.portal-page--backup .portal-admin-main,
body[data-layout-role="admin"] .portal-admin-main,
body[data-layout-role="bookkeeper"] .portal-admin-main,
body.portal-page--admin .portal-admin-content,
body.portal-page--finance .portal-admin-content,
body.portal-page--backup .portal-admin-content {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

body.portal-page--admin .portal-admin-nav,
body.portal-page--finance .portal-admin-nav,
body.portal-page--backup .portal-admin-nav,
body[data-layout-role="admin"] .portal-admin-nav,
body[data-layout-role="bookkeeper"] .portal-admin-nav {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 18px 12px !important;
}

body.portal-page--admin .portal-admin-nav a,
body.portal-page--finance .portal-admin-nav a,
body.portal-page--backup .portal-admin-nav a,
body[data-layout-role="admin"] .portal-admin-nav a,
body[data-layout-role="bookkeeper"] .portal-admin-nav a {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 48px !important;
  padding: 10px 14px !important;
  color: #1f2328 !important;
  background: #ffffff !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: normal !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

body.portal-page--admin .portal-admin-nav a svg,
body.portal-page--finance .portal-admin-nav a svg,
body.portal-page--backup .portal-admin-nav a svg,
body[data-layout-role="admin"] .portal-admin-nav a svg,
body[data-layout-role="bookkeeper"] .portal-admin-nav a svg {
  position: static !important;
  flex: 0 0 22px !important;
  width: 22px !important;
  height: 22px !important;
  color: #737b84 !important;
  stroke: currentColor !important;
}

body.portal-page--admin .portal-admin-nav a.is-active,
body.portal-page--finance .portal-admin-nav a.is-active,
body.portal-page--backup .portal-admin-nav a.is-active,
body[data-layout-role="admin"] .portal-admin-nav a.is-active,
body[data-layout-role="bookkeeper"] .portal-admin-nav a.is-active {
  color: #111315 !important;
  background: #eef0f2 !important;
  border-color: #cfd5dc !important;
  border-left: 4px solid #24282e !important;
}

body.portal-page--admin .rs-admin-brand img,
body.portal-page--finance .rs-admin-brand img,
body.portal-page--backup .rs-admin-brand img,
body[data-layout-role="admin"] .rs-admin-brand img,
body[data-layout-role="bookkeeper"] .rs-admin-brand img {
  filter: grayscale(1) contrast(1.06) !important;
}

body.portal-page--admin .admin-card,
body.portal-page--admin .portal-card,
body.portal-page--admin .portal-panel,
body.portal-page--admin .planning-panel,
body.portal-page--admin .planning-stat-card,
body.portal-page--admin .planning-filter-card,
body.portal-page--admin .planning-list-card,
body.portal-page--finance .admin-card,
body.portal-page--finance .portal-card,
body.portal-page--finance .portal-panel,
body.portal-page--backup .admin-card,
body.portal-page--backup .portal-card,
body.portal-page--backup .portal-panel,
body[data-layout-role="admin"] .admin-card,
body[data-layout-role="admin"] .portal-card,
body[data-layout-role="admin"] .portal-panel,
body[data-layout-role="bookkeeper"] .admin-card,
body[data-layout-role="bookkeeper"] .portal-card,
body[data-layout-role="bookkeeper"] .portal-panel {
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid #d9dee4 !important;
  box-shadow: 0 14px 32px rgba(17, 24, 39, 0.06) !important;
  color: #121417 !important;
}

body.portal-page--admin input,
body.portal-page--admin select,
body.portal-page--admin textarea,
body.portal-page--finance input,
body.portal-page--finance select,
body.portal-page--finance textarea,
body.portal-page--backup input,
body.portal-page--backup select,
body.portal-page--backup textarea,
body[data-layout-role="admin"] input,
body[data-layout-role="admin"] select,
body[data-layout-role="admin"] textarea,
body[data-layout-role="bookkeeper"] input,
body[data-layout-role="bookkeeper"] select,
body[data-layout-role="bookkeeper"] textarea {
  background: #e7ebef !important;
  background-image: none !important;
  border: 1px solid #aeb7c1 !important;
  color: #15181c !important;
  box-shadow: none !important;
}

body.portal-page--admin input:focus,
body.portal-page--admin select:focus,
body.portal-page--admin textarea:focus,
body.portal-page--finance input:focus,
body.portal-page--finance select:focus,
body.portal-page--finance textarea:focus,
body.portal-page--backup input:focus,
body.portal-page--backup select:focus,
body.portal-page--backup textarea:focus,
body[data-layout-role="admin"] input:focus,
body[data-layout-role="admin"] select:focus,
body[data-layout-role="admin"] textarea:focus,
body[data-layout-role="bookkeeper"] input:focus,
body[data-layout-role="bookkeeper"] select:focus,
body[data-layout-role="bookkeeper"] textarea:focus {
  border-color: #24282e !important;
  box-shadow: 0 0 0 3px rgba(31, 36, 43, 0.16) !important;
}

body.portal-page--admin .button-primary,
body.portal-page--admin button[type="submit"],
body.portal-page--admin .portal-admin-topbar a,
body.portal-page--admin .portal-admin-tab.is-active,
body.portal-page--admin .portal-case-filter.is-active,
body.portal-page--admin .portal-finance-filter.is-active,
body.portal-page--admin .portal-finance-chip.is-active,
body.portal-page--admin .filter-button.is-active,
body.portal-page--admin .planning-quickbar .button-primary,
body.portal-page--admin .planning-quickbar .button.is-active,
body.portal-page--admin .planning-duration-option.is-active,
body.portal-page--admin .planning-time-button.is-selected,
body.portal-page--admin .planning-admin-actions-card button[type="submit"],
body.portal-page--finance .button-primary,
body.portal-page--finance button[type="submit"],
body.portal-page--finance .portal-admin-tab.is-active,
body.portal-page--finance .portal-case-filter.is-active,
body.portal-page--finance .portal-finance-filter.is-active,
body.portal-page--finance .portal-finance-chip.is-active,
body.portal-page--backup .button-primary,
body.portal-page--backup button[type="submit"],
body[data-layout-role="admin"] .button-primary,
body[data-layout-role="admin"] button[type="submit"],
body[data-layout-role="admin"] .portal-admin-tab.is-active,
body[data-layout-role="admin"] .portal-case-filter.is-active,
body[data-layout-role="admin"] .portal-finance-filter.is-active,
body[data-layout-role="admin"] .portal-finance-chip.is-active,
body[data-layout-role="bookkeeper"] .button-primary,
body[data-layout-role="bookkeeper"] button[type="submit"],
body[data-layout-role="bookkeeper"] .portal-admin-tab.is-active,
body[data-layout-role="bookkeeper"] .portal-case-filter.is-active,
body[data-layout-role="bookkeeper"] .portal-finance-filter.is-active,
body[data-layout-role="bookkeeper"] .portal-finance-chip.is-active {
  background: #24282e !important;
  background-image: none !important;
  border-color: #24282e !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  text-shadow: none !important;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.14) !important;
}

body.portal-page--admin .button,
body.portal-page--admin .button-secondary,
body.portal-page--admin .portal-admin-tab,
body.portal-page--admin .portal-case-filter,
body.portal-page--admin .portal-finance-filter,
body.portal-page--admin .portal-finance-chip,
body.portal-page--admin .filter-button,
body.portal-page--admin .planning-quickbar .button,
body.portal-page--finance .button,
body.portal-page--finance .button-secondary,
body.portal-page--finance .portal-admin-tab,
body.portal-page--finance .portal-case-filter,
body.portal-page--finance .portal-finance-filter,
body.portal-page--finance .portal-finance-chip,
body.portal-page--backup .button,
body.portal-page--backup .button-secondary,
body[data-layout-role="admin"] .button,
body[data-layout-role="admin"] .button-secondary,
body[data-layout-role="admin"] .portal-admin-tab,
body[data-layout-role="admin"] .portal-case-filter,
body[data-layout-role="admin"] .portal-finance-filter,
body[data-layout-role="admin"] .portal-finance-chip,
body[data-layout-role="bookkeeper"] .button,
body[data-layout-role="bookkeeper"] .button-secondary,
body[data-layout-role="bookkeeper"] .portal-admin-tab,
body[data-layout-role="bookkeeper"] .portal-case-filter,
body[data-layout-role="bookkeeper"] .portal-finance-filter,
body[data-layout-role="bookkeeper"] .portal-finance-chip {
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid #cfd5dc !important;
  color: #1f2328 !important;
  -webkit-text-fill-color: #1f2328 !important;
  text-shadow: none !important;
  box-shadow: none !important;
}

body.portal-page--admin [style*="background"],
body.portal-page--finance [style*="background"],
body.portal-page--backup [style*="background"],
body[data-layout-role="admin"] [style*="background"],
body[data-layout-role="bookkeeper"] [style*="background"] {
  --admin-blue: #24282e !important;
  --admin-blue-dark: #171a1f !important;
}

@media (max-width: 900px) {
  body.portal-page--admin .portal-admin-shell,
  body.portal-page--finance .portal-admin-shell,
  body.portal-page--backup .portal-admin-shell,
  body[data-layout-role="admin"] .portal-admin-shell,
  body[data-layout-role="bookkeeper"] .portal-admin-shell {
    grid-template-columns: 1fr !important;
    padding: 18px !important;
  }
  body.portal-page--admin .portal-admin-sidebar,
  body.portal-page--finance .portal-admin-sidebar,
  body.portal-page--backup .portal-admin-sidebar,
  body[data-layout-role="admin"] .portal-admin-sidebar,
  body[data-layout-role="bookkeeper"] .portal-admin-sidebar {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}
