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

.admin-body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #071936;
  background: #061425;
}

:where(.admin-body a) {
  color: inherit;
}

.admin-body dialog[open] {
  position: fixed;
  inset: 0;
  margin: auto;
  transform: none;
}

.admin-user-preview-banner {
  position: sticky;
  top: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 78px;
  padding: 12px clamp(16px, 3vw, 34px);
  color: #fff;
  background: linear-gradient(105deg, #7c2d12, #b45309 58%, #7c2d12);
  border-bottom: 3px solid #fdba74;
  box-shadow: 0 8px 26px rgba(50, 20, 6, .3);
}
.admin-user-preview-banner__icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #7c2d12;
  background: #fff7ed;
  border: 2px solid #fed7aa;
  border-radius: 50%;
}
.admin-user-preview-banner__icon svg { width: 25px; height: 25px; }
.admin-user-preview-banner__copy { display: grid; flex: 1; min-width: 0; gap: 1px; }
.admin-user-preview-banner__copy > span { color: #ffedd5; font-size: .7rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.admin-user-preview-banner__copy > strong { color: #fff; font-size: 1rem; }
.admin-user-preview-banner__copy > small { color: #fff7ed; font-size: .76rem; line-height: 1.4; }
.admin-user-preview-banner form { flex: 0 0 auto; margin: 0; }
.admin-user-preview-banner button {
  min-height: 42px;
  padding: 0 16px;
  color: #7c2d12;
  background: #fff;
  border: 2px solid #fed7aa;
  border-radius: 9px;
  font: inherit;
  font-size: .82rem;
  font-weight: 900;
  cursor: pointer;
}
.admin-user-preview-banner button:hover,
.admin-user-preview-banner button:focus-visible { color: #5b210d; background: #fff7ed; border-color: #fff; outline: 3px solid rgba(255, 255, 255, .28); }

@media (max-width: 760px) {
  .admin-user-preview-banner { position: relative; align-items: stretch; flex-direction: column; }
  .admin-user-preview-banner__icon { display: none; }
  .admin-user-preview-banner form,
  .admin-user-preview-banner button { width: 100%; }
}

.admin-kicker {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  padding: 8px 12px;
  color: #064e73;
  background: #e6f5fb;
  border: 1px solid #2c7796;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(6, 78, 115, .12);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.admin-dashboard__hero .admin-kicker,
.marketing-workspace-head .admin-kicker,
.workspace-campaign-focus .admin-kicker,
.blog-image-picker__header .admin-kicker,
html[data-backoffice-theme-resolved="dark"] .admin-kicker {
  color: #f0fbff;
  background: #0b4d68;
  border-color: #82d8f6;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .24);
}

.admin-login {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  padding: 32px 24px;
  color: #fff;
  background: #061425;
}

.admin-login__image,
.admin-login__overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.admin-login__image {
  background-position: center;
  background-size: cover;
  opacity: .58;
}

.admin-login__overlay {
  z-index: -1;
  background:
    radial-gradient(circle at 18% 18%, rgba(73, 184, 221, .34), transparent 30rem),
    linear-gradient(115deg, rgba(1, 15, 33, .96) 0%, rgba(3, 27, 46, .9) 48%, rgba(1, 15, 33, .84) 100%);
}

.admin-login__shell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 480px);
  min-height: calc(100vh - 64px);
  margin: 0 auto;
}

.admin-login__mobile-logo img {
  display: block;
  width: auto;
}

.admin-login__mobile-logo {
  display: inline-flex;
  margin-bottom: 26px;
  padding: 12px 16px;
  background: #081f32;
  border: 1px solid #214b68;
  border-radius: 10px;
}

.admin-login__mobile-logo img {
  height: 38px;
}

.admin-login__card {
  width: 100%;
  padding: 30px;
  color: #071936;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 8px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .35);
  backdrop-filter: blur(20px);
}

.admin-login__heading {
  display: flex;
  gap: 14px;
  align-items: center;
}

.admin-login__lock {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 50px;
  height: 50px;
  color: #fff;
  background: #0057ff;
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(0, 87, 255, .25);
}

.admin-login__lock svg,
.admin-field__control svg,
.admin-button svg {
  width: 22px;
  height: 22px;
}

.admin-login__heading p {
  margin: 0;
  color: #0057ff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.admin-login__heading h2 {
  margin: 2px 0 0;
  color: #071936;
  font-size: 28px;
  font-weight: 950;
}

.admin-login__hint {
  margin: 18px 0 0;
  color: #52647c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.admin-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.admin-field {
  display: grid;
  gap: 8px;
  color: #1c304c;
  font-size: 14px;
  font-weight: 900;
}

.admin-field__control {
  position: relative;
  display: block;
}

.admin-field__control svg {
  position: absolute;
  top: 50%;
  left: 14px;
  color: #71829a;
  transform: translateY(-50%);
}

.admin-field input {
  width: 100%;
  height: 50px;
  padding: 0 14px 0 48px;
  color: #071936;
  background: #f7fbff;
  border: 1px solid #cfdceb;
  border-radius: 8px;
  font: inherit;
  outline: 0;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.admin-field input:focus {
  background: #fff;
  border-color: #0057ff;
  box-shadow: 0 0 0 4px rgba(0, 87, 255, .13);
}

.admin-alert,
.admin-error {
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.admin-alert {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid transparent;
}

.admin-alert code {
  font-weight: 900;
}

.admin-alert--success {
  color: #11623d;
  background: #eefcf5;
  border-color: #bdebd3;
}

.admin-alert--warning {
  color: #7a4a05;
  background: #fff7df;
  border-color: #f1d88b;
}

.admin-alert--danger {
  color: #8e2d24;
  background: #fff1f0;
  border-color: #ffc9c4;
}

.admin-alert--flush {
  margin-top: 0;
}

.admin-error {
  margin: -8px 0 0;
  color: #b42318;
}

.admin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.admin-button:hover,
.admin-button:focus-visible {
  transform: translateY(-1px);
}

.admin-button--primary {
  width: 100%;
  min-height: 50px;
  color: #fff;
  background: #0057ff;
  box-shadow: 0 16px 32px rgba(0, 87, 255, .24);
}

.admin-button--primary:hover,
.admin-button--primary:focus-visible {
  background: #0046cf;
  box-shadow: 0 18px 38px rgba(0, 87, 255, .3);
}

.admin-button--secondary {
  color: #083f68;
  background: #e7f4fc;
  border: 1px solid #8dc9e8;
  box-shadow: 0 10px 24px rgba(8, 63, 104, .1);
}

.admin-button--secondary:hover,
.admin-button--secondary:focus-visible {
  color: #052f4d;
  background: #d4edfa;
  border-color: #4fa9d7;
  box-shadow: 0 12px 28px rgba(8, 63, 104, .15);
}

.admin-button--ghost {
  color: #083f68;
  background: #f4fbff;
  border: 1px solid #8dc9e8;
  box-shadow: 0 8px 20px rgba(8, 63, 104, .08);
}

.admin-button--ghost:hover,
.admin-button--ghost:focus-visible {
  color: #052f4d;
  background: #dff2fc;
  border-color: #4fa9d7;
  box-shadow: 0 10px 24px rgba(8, 63, 104, .13);
}

.admin-dashboard__hero .admin-button--ghost,
.admin-sidebar .admin-button--ghost {
  color: #f0f7fb;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .28);
  box-shadow: none;
}

.admin-dashboard__hero .admin-button--ghost:hover,
.admin-dashboard__hero .admin-button--ghost:focus-visible,
.admin-sidebar .admin-button--ghost:hover,
.admin-sidebar .admin-button--ghost:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .16);
  border-color: rgba(153, 212, 225, .58);
}

.admin-button--danger {
  color: #fff;
  background: #b42318;
  box-shadow: 0 16px 32px rgba(180, 35, 24, .18);
}

.admin-button--danger:hover,
.admin-button--danger:focus-visible {
  background: #941d14;
  box-shadow: 0 18px 38px rgba(180, 35, 24, .24);
}

.admin-button--fit {
  width: fit-content;
}

.admin-button__icon {
  display: block;
  flex: 0 0 auto;
  width: 18px !important;
  height: 18px !important;
  pointer-events: none;
}

.admin-dashboard__hero .admin-page-link,
.admin-user-preview-banner button {
  gap: 8px;
}

.admin-user-preview-banner button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-login__footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  color: #71829a;
  border-top: 1px solid #dbe7f5;
  font-size: 12px;
  font-weight: 850;
}

.admin-login__footer a {
  color: #0057ff;
  text-decoration: none;
}

.admin-login__footer a:hover {
  color: #003bb5;
}

.admin-dashboard {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(0, 87, 255, .12), transparent 26rem),
    linear-gradient(180deg, #eef6ff 0%, #f7fbff 46%, #eef5ff 100%);
}

.admin-dashboard--sidebar {
  display: flex;
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: 282px;
  padding: 24px 18px;
  color: #eaf7ff;
  background:
    linear-gradient(180deg, rgba(3, 27, 46, .98), rgba(0, 25, 57, .98)),
    repeating-linear-gradient(24deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 34px);
  border-right: 1px solid rgba(153, 212, 225, .2);
  box-shadow: 18px 0 44px rgba(0, 27, 63, .18);
}

.admin-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-sidebar__mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 94px;
  min-height: 44px;
  padding: 0 14px;
  color: #fff;
  background: rgba(153, 212, 225, .12);
  border: 1px solid rgba(153, 212, 225, .3);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.admin-sidebar__mobile-toggle svg {
  width: 20px;
  height: 20px;
}

.admin-sidebar__mobile-toggle:focus-visible {
  outline: 3px solid #8ed6ff;
  outline-offset: 3px;
}

.admin-sidebar__brand {
  display: flex;
  align-items: center;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.admin-sidebar__brand img {
  flex: 0 0 auto;
  width: auto;
  height: 34px;
}

.admin-sidebar__nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
  margin-top: 34px;
  overflow-y: auto;
  scrollbar-color: rgba(153, 212, 225, .34) transparent;
  scrollbar-width: thin;
}

.admin-sidebar__link {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 10px 12px;
  color: rgba(234, 247, 255, .78);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}

.admin-sidebar__link svg {
  width: 20px;
  height: 20px;
  color: #99d4e1;
}

.admin-sidebar__link:hover,
.admin-sidebar__link:focus-visible,
.admin-sidebar__link.is-active {
  color: #fff;
  background: rgba(153, 212, 225, .12);
  border-color: rgba(153, 212, 225, .22);
  outline: 0;
}

.admin-sidebar__profile-link {
  margin-top: 10px;
}

.admin-sidebar__copyright {
  display: grid;
  justify-items: center;
  gap: 2px;
  margin: auto 4px 0;
  padding: 18px 8px 0;
  color: rgba(234, 247, 255, .72);
  border-top: 1px solid rgba(153, 212, 225, .2);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
}

.admin-sidebar__copyright span {
  display: block;
}

/* Marketing company workspace */
.marketing-workspace {
  gap: 14px;
}

.marketing-workspace-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
  color: #fff;
  background: linear-gradient(135deg, #061c31, #0a3153 70%, #006ba9);
  border: 1px solid rgba(17, 136, 203, .3);
  border-radius: 14px;
  box-shadow: 0 15px 34px rgba(6, 28, 49, .13);
}

.marketing-workspace-head .admin-page-link { color: #8fd5ff; }
.marketing-workspace-head .admin-kicker { margin: 12px 0 3px; color: #f0fbff; }
.marketing-workspace-head h1 { margin: 0; font-size: clamp(25px, 2.3vw, 38px); line-height: 1.08; }
.marketing-workspace-head__actions { display: flex; flex-wrap: wrap; gap: 9px; }
.marketing-workspace-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 14px; margin-top: 10px; color: #c3d9e9; font-size: 12px; }
.marketing-workspace-meta .admin-status { border-color: rgba(255,255,255,.22); }

.marketing-workspace-tabs,
.marketing-google-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.marketing-workspace-tabs {
  position: sticky;
  z-index: 20;
  top: 0;
  padding: 7px;
  background: rgba(255,255,255,.96);
  border: 1px solid #dce8f3;
  border-radius: 11px;
  box-shadow: 0 8px 24px rgba(10, 49, 83, .07);
  backdrop-filter: blur(12px);
}

.marketing-workspace-tabs a,
.marketing-google-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 10px 15px;
  color: #53677e;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.marketing-workspace-tabs a:hover,
.marketing-workspace-tabs a.is-active { color: #fff; background: #08365a; }
.marketing-workspace-tabs a span { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; color: #fff; background: #e5484d; border-radius: 20px; font-size: 10px; }
.marketing-google-tabs { padding: 0 4px 8px; border-bottom: 1px solid #dce8f3; }
.marketing-google-tabs a { padding: 8px 12px; }
.marketing-google-tabs a:hover,
.marketing-google-tabs a.is-active { color: #006ea8; background: #e9f6fd; }

.marketing-period-bar {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) repeat(2, minmax(135px, .7fr)) minmax(210px, 1.2fr) repeat(2, minmax(135px, .7fr)) auto minmax(230px, 1.2fr);
  align-items: end;
  gap: 9px;
  padding: 13px;
  background: #f4f9fd;
  border: 1px solid #d9e8f3;
  border-radius: 11px;
}

.marketing-period-bar label,
.workspace-form-grid label,
.workspace-report-form > label,
.workspace-comment-form label { display: grid; gap: 5px; }
.marketing-period-bar label > span,
.workspace-form-grid label > span,
.workspace-report-form label > span,
.workspace-comment-form label > span { color: #62778d; font-size: 9px; font-weight: 950; letter-spacing: .055em; text-transform: uppercase; }
.marketing-period-bar select,
.marketing-period-bar input,
.workspace-form-grid select,
.workspace-form-grid input,
.workspace-form-grid textarea,
.workspace-report-form select,
.workspace-comment-form textarea,
.ads-insight-card__actions input,
.ads-insight-card__actions textarea {
  width: 100%;
  min-height: 39px;
  padding: 8px 10px;
  color: #143654;
  background: #fff;
  border: 1px solid #cbdbe8;
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
}
.marketing-period-bar__status { display: grid; gap: 3px; align-self: center; }
.marketing-period-bar__status strong { color: #123a5a; font-size: 12px; }
.marketing-period-bar__status small { color: #6b7f90; font-size: 10px; }
.marketing-period-bar__status .admin-status { width: fit-content; margin-top: 2px; }

.marketing-workspace-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  max-width: 100%;
  gap: 15px;
}
.marketing-workspace-content > *,
.workspace-report-grid,
.workspace-report-card,
.workspace-print-report,
.agency-section,
.agency-table-card { min-width: 0; max-width: 100%; }
.workspace-page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 5px 2px; }
.workspace-page-heading h2 { margin: 2px 0 4px; color: #0b3353; font-size: clamp(22px, 2vw, 30px); }
.workspace-page-heading p:last-child { margin: 0; color: #64778b; }
.workspace-page-heading form { flex: 0 0 auto; }
.marketing-refresh-control { display: grid; justify-items: end; gap: 5px; }
.marketing-refresh-control form { margin: 0; }
.marketing-refresh-control small { color: #526a7e; font-size: 10px; font-weight: 750; }
.marketing-kpis--workspace { margin: 0; grid-template-columns: repeat(8, minmax(125px, 1fr)); }
.marketing-kpis--workspace .marketing-kpi { min-height: 92px; padding: 16px; }
.marketing-kpis--workspace .marketing-kpi strong { font-size: 20px; }

.workspace-overview-grid,
.workspace-two-columns,
.workspace-report-grid,
.workspace-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.workspace-two-columns--stacked-tables { grid-template-columns: minmax(0, 1fr); }
.workspace-settings-grid { align-items: stretch; }
.workspace-report-card,
.workspace-settings-card { min-width: 0; }
.workspace-settings-card { display: grid; grid-template-rows: auto 1fr; }
.workspace-settings-card .marketing-service-card { grid-template-columns: minmax(0, 1fr); }
.workspace-priority-list { display: grid; gap: 7px; }
.workspace-priority-list > a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 11px; color: #143654; background: #f7fafc; border: 1px solid #e1eaf2; border-radius: 8px; text-decoration: none; }
.workspace-priority-list > a:hover { border-color: #58b9ea; transform: translateY(-1px); }
.workspace-priority-list small { color: #77889a; }
.workspace-severity { padding: 4px 7px; background: #dceaf3; border-radius: 5px; font-size: 9px; font-weight: 950; text-transform: uppercase; }
.workspace-severity--critical { color: #9d1d28; background: #feecee; }
.workspace-severity--high { color: #9b5800; background: #fff1d8; }
.workspace-health { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.workspace-health article { display: grid; gap: 5px; padding: 14px; background: #f6fafe; border: 1px solid #e0ebf3; border-radius: 9px; }
.workspace-health span { color: #718396; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.workspace-health strong { color: #073a60; font-size: 21px; }
.workspace-campaign-focus { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(420px, 1.3fr); gap: 20px; padding: 20px; color: #fff; background: linear-gradient(135deg, #073354, #075e8e); border-radius: 12px; }
.workspace-campaign-focus .admin-page-link,
.workspace-campaign-focus .admin-kicker { color: #f0fbff; }
.workspace-campaign-focus h2 { margin: 5px 0; }
.workspace-campaign-focus p { margin: 0; color: #c6deed; }
.workspace-campaign-focus .workspace-health article { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.15); }
.workspace-campaign-focus .workspace-health span { color: #b7d7e9; }
.workspace-campaign-focus .workspace-health strong { color: #fff; }
.workspace-explanation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.workspace-explanation-card { display: grid; align-content: start; gap: 9px; min-width: 0; min-height: 142px; padding: 20px; }
.workspace-explanation-grid h3 { margin: 0; color: #547087; font-size: 11px; font-weight: 950; letter-spacing: .055em; line-height: 1.35; text-transform: uppercase; }
.workspace-explanation-grid strong { display: block; margin: 2px 0; color: #073a60; font-size: clamp(25px, 2.2vw, 32px); font-variant-numeric: tabular-nums; line-height: 1.05; overflow-wrap: anywhere; }
.workspace-explanation-grid p { margin: auto 0 0; color: #6b7f91; line-height: 1.45; }

.workspace-recommendations,
.workspace-report-history { display: grid; gap: 8px; }
.workspace-recommendations article,
.workspace-report-history article { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px; background: #f7fafc; border: 1px solid #e1ebf2; border-radius: 8px; }
.workspace-recommendations p,
.workspace-report-history small { display: block; margin: 3px 0 0; color: #718396; }
.workspace-recommendations > article > span { color: #0074ad; font-size: 11px; font-weight: 900; }

.workspace-task-create { padding: 0; overflow: hidden; }
.workspace-task-create summary { display: flex; justify-content: space-between; gap: 14px; padding: 17px 20px; cursor: pointer; }
.workspace-task-create summary span { color: #718396; font-size: 11px; }
.workspace-form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0 20px 20px; }
.workspace-field--wide { grid-column: 1 / -1; }
.workspace-internal-note { margin-top: 11px; padding: 10px; color: #674d05; background: #fff9df; border: 1px solid #f4dc81; border-radius: 7px; }
.workspace-internal-note p { margin: 3px 0 0; }
.is-overdue { color: #bd2635 !important; font-weight: 950; }
.workspace-task-discussion { grid-column: 1 / -1; padding: 0 14px 14px; background: #f9fbfd; border-top: 1px solid #e3ebf4; }
.workspace-task-discussion summary { padding: 11px 0 5px; color: #31516c; font-size: 11px; font-weight: 950; cursor: pointer; }
.workspace-task-discussion summary span { margin-left: 5px; color: #0084c5; }
.workspace-comments { display: grid; gap: 6px; margin: 8px 0; }
.workspace-comments article { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 11px; background: #fff; border: 1px solid #e1eaf2; border-radius: 7px; }
.workspace-comments article p { grid-column: 1 / -1; margin: 3px 0 0; white-space: pre-wrap; }
.workspace-comments small { color: #7c8d9d; }
.workspace-comment-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 9px; }

.workspace-report-form { display: grid; gap: 14px; padding: 20px; }
.workspace-report-form fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px; border: 1px solid #dce8f1; border-radius: 8px; }
.workspace-report-form legend { padding: 0 5px; color: #567086; font-size: 10px; font-weight: 950; text-transform: uppercase; }
.workspace-report-form fieldset label { display: flex; align-items: center; gap: 7px; color: #31516c; font-size: 12px; }
.workspace-report-card > .workspace-report-history { padding: 20px; }
.workspace-print-report { display: grid; gap: 15px; }
.workspace-data-empty-row:hover { background: transparent !important; }
.workspace-data-empty-row td { padding: 0 !important; }
.workspace-data-empty {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 24px;
  color: #243f56;
  background: #f5f9fc;
  border-left: 4px solid #4b94c4;
}
.workspace-data-empty strong { color: #0b3353; font-size: 15px; }
.workspace-data-empty span { max-width: 760px; line-height: 1.55; }
.workspace-data-empty small { color: #526a7e; font-weight: 750; }
.workspace-data-empty .admin-page-link { margin-top: 3px; }
.workspace-definition-list { display: grid; gap: 0; margin: 0; }
.workspace-settings-card > .workspace-definition-list { padding: 8px 20px; }
.workspace-definition-list div { display: grid; grid-template-columns: minmax(120px, .4fr) minmax(0, 1fr); gap: 15px; padding: 11px 0; border-bottom: 1px solid #e5edf3; }
.workspace-definition-list div:last-child { border-bottom: 0; }
.workspace-definition-list dt { color: #718396; font-size: 10px; font-weight: 950; text-transform: uppercase; }
.workspace-definition-list dd { margin: 0; color: #173b5a; font-weight: 750; overflow-wrap: anywhere; }

@media (max-width: 1450px) {
  .marketing-period-bar { grid-template-columns: repeat(4, minmax(150px, 1fr)); }
  .marketing-period-bar__status { grid-column: span 2; }
  .marketing-kpis--workspace { grid-template-columns: repeat(4, minmax(135px, 1fr)); }
}

@media (max-width: 900px) {
  .marketing-workspace-head,
  .workspace-page-heading { align-items: stretch; flex-direction: column; }
  .marketing-refresh-control { justify-items: stretch; }
  .marketing-refresh-control .admin-button { width: 100%; }
  .marketing-period-bar,
  .workspace-overview-grid,
  .workspace-two-columns,
  .workspace-report-grid,
  .workspace-settings-grid,
  .workspace-campaign-focus,
  .workspace-explanation-grid { grid-template-columns: 1fr; }
  .marketing-period-bar__status { grid-column: auto; }
  .workspace-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-comment-form { grid-template-columns: 1fr; }
}

.client-company-todos__list { display: grid; gap: .75rem; padding: 1.25rem; }
.client-company-todos__list article { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; border: 1px solid var(--admin-border, #d7e3ef); border-radius: .8rem; }
.client-company-todos__list article div { display: grid; gap: .25rem; }
.client-company-todos__list article small { color: var(--admin-muted, #64748b); }
.client-company-todos__footer { padding: 0 1.25rem 1.25rem; text-align: right; }
@media (max-width: 700px) { .client-company-todos__list article { align-items: flex-start; flex-direction: column; } }

@media (max-width: 560px) {
  .marketing-workspace-head { padding: 18px; }
  .marketing-kpis--workspace,
  .workspace-health,
  .workspace-form-grid { grid-template-columns: 1fr; }
  .workspace-report-form { padding: 16px; }
  .workspace-report-form fieldset { grid-template-columns: 1fr; }
  .workspace-report-card > .workspace-report-history { padding: 16px; }
  .workspace-settings-card > .workspace-definition-list { padding: 6px 16px; }
  .workspace-priority-list > a { grid-template-columns: 1fr; }
}

/* Audit hardening: explicit high-contrast states shared by the complete Backoffice. */
@media screen {
  .admin-muted {
    color: #52647c;
  }

  .marketing-workspace-head .admin-page-link {
    color: #e5f6ff;
    background: rgba(2, 22, 38, .66);
    border-color: #5fa9d1;
  }

  .marketing-workspace-head .admin-page-link:hover,
  .marketing-workspace-head .admin-page-link:focus-visible {
    color: #fff;
    background: #073a60;
    border-color: #a5e1ff;
  }

  html[data-backoffice-theme-resolved="dark"] .global-search-list > a,
  html[data-backoffice-theme-resolved="dark"] .global-search-list strong {
    color: #edf8ff;
  }

  html[data-backoffice-theme-resolved="dark"] .global-search-list small,
  html[data-backoffice-theme-resolved="dark"] .global-search-list i {
    color: #c4d7e4;
  }

  html[data-backoffice-theme-resolved="dark"] .global-search-list > a:hover,
  html[data-backoffice-theme-resolved="dark"] .global-search-list > a:focus-visible {
    color: #fff;
    background: #173b53;
    outline: 3px solid #55bdf5;
    outline-offset: -3px;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-table__date,
  html[data-backoffice-theme-resolved="dark"] .employee-email,
  html[data-backoffice-theme-resolved="dark"] .admin-table a,
  html[data-backoffice-theme-resolved="dark"] .admin-detail-value a,
  html[data-backoffice-theme-resolved="dark"] .profile-card a,
  html[data-backoffice-theme-resolved="dark"] .workspace-definition-list a {
    color: #a9ddff !important;
  }

  html[data-backoffice-theme-resolved="dark"] .marketing-period-bar__status strong,
  html[data-backoffice-theme-resolved="dark"] .marketing-period-bar input::-webkit-datetime-edit,
  html[data-backoffice-theme-resolved="dark"] .marketing-period-bar input::-webkit-datetime-edit-fields-wrapper,
  html[data-backoffice-theme-resolved="dark"] .marketing-period-bar input::-webkit-datetime-edit-text,
  html[data-backoffice-theme-resolved="dark"] .marketing-period-bar input::-webkit-datetime-edit-month-field,
  html[data-backoffice-theme-resolved="dark"] .marketing-period-bar input::-webkit-datetime-edit-day-field,
  html[data-backoffice-theme-resolved="dark"] .marketing-period-bar input::-webkit-datetime-edit-year-field {
    color: #f2f8fb;
  }

  html[data-backoffice-theme-resolved="dark"] .marketing-period-bar__status small {
    color: #c9d9e3;
  }

  html[data-backoffice-theme-resolved="dark"] .marketing-refresh-control small {
    color: #c4d7e4;
  }

  html[data-backoffice-theme-resolved="dark"] .marketing-period-bar input,
  html[data-backoffice-theme-resolved="dark"] .marketing-period-bar select {
    color-scheme: dark;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-button--secondary {
    color: #dff4ff;
    background: #173a50;
    border-color: #5a9fc5;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
  }

  html[data-backoffice-theme-resolved="dark"] .admin-button--secondary:hover,
  html[data-backoffice-theme-resolved="dark"] .admin-button--secondary:focus-visible {
    color: #fff;
    background: #20506c;
    border-color: #8ed6ff;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-button--ghost {
    color: #f0f7fb;
    background: #173a50;
    border-color: #5a9fc5;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
  }

  html[data-backoffice-theme-resolved="dark"] .admin-button--ghost:hover,
  html[data-backoffice-theme-resolved="dark"] .admin-button--ghost:focus-visible {
    color: #fff;
    background: #20506c;
    border-color: #8ed6ff;
  }

  html[data-backoffice-theme-resolved="dark"] .ads-insight-recommendation > strong,
  html[data-backoffice-theme-resolved="dark"] .ads-insight-status,
  html[data-backoffice-theme-resolved="dark"] .ads-insight-status--in_progress,
  html[data-backoffice-theme-resolved="dark"] .ads-insight-status--resolved,
  html[data-backoffice-theme-resolved="dark"] .ads-insight-status--dismissed,
  html[data-backoffice-theme-resolved="dark"] .ads-insight-impact,
  html[data-backoffice-theme-resolved="dark"] .ads-change-history summary span {
    color: #bde7ff;
  }

  html[data-backoffice-theme-resolved="dark"] .workspace-severity--critical {
    color: #ffc5cd;
    background: #4a242c;
    border: 1px solid #8f4c58;
  }

  html[data-backoffice-theme-resolved="dark"] .workspace-severity--high {
    color: #ffda9b;
    background: #49351b;
    border: 1px solid #8b6630;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-scroll-hint {
    color: #d8e7ef;
    background: #132c3e;
    border-color: #35576d;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-scroll-hint span {
    color: #8ed6ff;
  }

  html[data-backoffice-theme-resolved="dark"] .workspace-data-empty {
    color: #d6e5ee;
    background: #10293b;
    border-color: #65bde9;
  }

  html[data-backoffice-theme-resolved="dark"] .workspace-data-empty strong {
    color: #f1f8fb;
  }

  html[data-backoffice-theme-resolved="dark"] .workspace-data-empty small {
    color: #b9cedb;
  }

  html[data-backoffice-theme-resolved="dark"] .permission-tools,
  html[data-backoffice-theme-resolved="dark"] .permission-module__service-toggle {
    color: #dceaf3;
    background: rgba(15, 37, 54, .97);
    border-color: #35576d;
  }

  html[data-backoffice-theme-resolved="dark"] .permission-tools label,
  html[data-backoffice-theme-resolved="dark"] .permission-tools > p {
    color: #c6d8e3;
  }

  html[data-backoffice-theme-resolved="dark"] .blog-editor-jump-nav {
    background: rgba(15, 37, 54, .97);
    border-color: #35576d;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
  }

  html[data-backoffice-theme-resolved="dark"] .blog-editor-jump-nav a {
    color: #d9effb;
    background: #173a50;
    border-color: #456d86;
  }

  html[data-backoffice-theme-resolved="dark"] .blog-editor-jump-nav a:hover,
  html[data-backoffice-theme-resolved="dark"] .blog-editor-jump-nav a:focus-visible {
    color: #fff;
    background: #20506c;
    border-color: #8ed6ff;
  }

  html[data-backoffice-theme-resolved="dark"] .marketing-table th:last-child,
  html[data-backoffice-theme-resolved="dark"] .employees-table th:last-child,
  html[data-backoffice-theme-resolved="dark"] .blog-admin__table th:last-child {
    background: #132c3e;
  }

  html[data-backoffice-theme-resolved="dark"] .marketing-table td:last-child,
  html[data-backoffice-theme-resolved="dark"] .employees-table td:last-child,
  html[data-backoffice-theme-resolved="dark"] .blog-admin__table td:last-child {
    background: #0f2536;
  }

  html[data-backoffice-theme-resolved="dark"] .marketing-table tbody tr:hover td:last-child,
  html[data-backoffice-theme-resolved="dark"] .employees-table tbody tr:hover td:last-child,
  html[data-backoffice-theme-resolved="dark"] .blog-admin__table tbody tr:hover td:last-child {
    background: #173247;
  }
}

html[data-backoffice-theme-resolved="dark"] .blog-social-admin,
html[data-backoffice-theme-resolved="dark"] .blog-social-admin__intro,
html[data-backoffice-theme-resolved="dark"] .blog-social-admin__save {
  color: #dceaf3;
}

html[data-backoffice-theme-resolved="dark"] .blog-social-admin__intro h2 {
  color: #f0f7fb;
}

html[data-backoffice-theme-resolved="dark"] .blog-social-admin__intro p:last-child,
html[data-backoffice-theme-resolved="dark"] .blog-social-admin__save small,
html[data-backoffice-theme-resolved="dark"] .blog-social-card__copy small {
  color: #dceaf3;
}

html[data-backoffice-theme-resolved="dark"] .blog-social-admin__save {
  background: #0f2536;
  border-color: #35576d;
}

html[data-backoffice-theme-resolved="dark"] .blog-social-card__preview,
html[data-backoffice-theme-resolved="dark"] .blog-translation-editor__toggle {
  border-color: #45677f;
}

html[data-backoffice-theme-resolved="dark"] .blog-translation-editor__toggle {
  color: #dceaf3;
  background: #173247;
}

@media print {
  @page { size: A4 portrait; margin: 9mm; }
  .marketing-workspace-head,
  .marketing-workspace-tabs,
  .marketing-google-tabs,
  .marketing-period-bar,
  .workspace-print-hide,
  .workspace-report-grid { display: none !important; }
  .marketing-workspace-content,
  .workspace-print-report { display: block !important; }
  .workspace-print-report > * { margin-bottom: 4mm !important; }
  .workspace-print-report .marketing-kpis { grid-template-columns: repeat(4, 1fr) !important; gap: 2mm !important; }
  .workspace-print-report .marketing-kpi { min-height: 0 !important; padding: 2.5mm !important; }
  .workspace-print-report .marketing-kpi strong { font-size: 12px !important; }
}

/* Potenciálni zákazníci – obchodný pipeline, časová os a individuálne oslovenie. */
.prospects-admin {
  display: grid;
  gap: 22px;
}

.prospect-filter-form {
  grid-template-columns: minmax(240px, 1.5fr) repeat(4, minmax(150px, 1fr)) auto;
}

.prospect-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.prospect-chip-list span,
.prospect-service-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid #c8dce7;
  border-radius: 999px;
  background: #f2f8fb;
  color: #17324a;
  font-size: .76rem;
  font-weight: 800;
}

.prospect-priority {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e8f1f6;
  color: #17324a;
  font-size: .78rem;
  font-weight: 900;
}

.prospect-priority--high { background: #fff0d8; color: #7a4300; }
.prospect-priority--critical { background: #fde8e7; color: #8a2018; }
.prospect-priority--low { background: #e9f7ee; color: #17653a; }

.prospect-followup-alert {
  display: block;
  margin-top: 5px;
  color: #9a3412 !important;
  font-weight: 800;
}

.prospect-record-form {
  display: grid;
  gap: 22px;
}

.prospect-record-form > .admin-panel > .prospect-form-grid {
  padding: 22px;
}

.prospect-record-form > .admin-panel > .prospect-service-checks {
  margin: 22px 22px 0;
}

.prospect-form-grid,
.prospect-activity-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.prospect-service-checks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.prospect-service-checks label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid #c8dce7;
  border-radius: 12px;
  background: #f7fbfd;
  color: #17324a;
  font-weight: 800;
  cursor: pointer;
}

.prospect-service-checks input { width: 18px; height: 18px; accent-color: #087da3; }
.prospect-form-actions,
.prospect-hero-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }

.prospect-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.prospects-admin .admin-stat-card strong {
  font-size: 1.5rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.prospects-admin .admin-dashboard__hero > div > p:last-child { overflow-wrap: anywhere; }

.prospect-detail-grid > .admin-panel > .prospect-definition-list {
  margin: 0;
  padding: 22px;
}

.prospect-detail-grid > .admin-panel > .prospect-chip-list {
  padding: 0 22px 22px;
}

.prospect-definition-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}

.prospect-definition-list > div {
  padding: 13px 14px;
  border: 1px solid #d3e3eb;
  border-radius: 11px;
  background: #f7fbfd;
}

.prospect-definition-list__wide { grid-column: 1 / -1; }
.prospect-definition-list dt { margin-bottom: 5px; color: #527086; font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.prospect-definition-list dd { margin: 0; color: #17324a; line-height: 1.55; overflow-wrap: anywhere; }
.prospect-definition-list a { color: #075f91; font-weight: 800; }

.prospect-activity-form { padding: 22px; }
.prospect-activity-form .newsletter-field--wide { grid-column: 1 / -1; }
.prospect-activity-form .admin-button { justify-self: start; }

.prospect-suppression-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
}

.prospect-suppression-panel > div { flex: 1 1 280px; min-width: 0; }
.prospect-suppression-panel h2 { margin: 0; color: #17324a; font-size: 1.08rem; font-weight: 950; line-height: 1.35; }
.prospect-suppression-panel p { margin: 8px 0 0; color: #526b7c; line-height: 1.55; }
.prospect-suppression-panel form { display: flex; flex: 1 1 420px; align-items: end; gap: 12px; min-width: 0; }
.prospect-suppression-panel .newsletter-field { flex: 1; }

.prospect-timeline {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 22px 22px 22px 48px;
}

.prospect-timeline::before { content: ''; position: absolute; top: 30px; bottom: 30px; left: 29px; width: 2px; background: #c8dce7; }
.prospect-timeline:has(> .admin-empty) { padding-left: 22px; }
.prospect-timeline:has(> .admin-empty)::before { display: none; }
.prospect-timeline__item { position: relative; padding: 16px 18px; border: 1px solid #d3e3eb; border-radius: 14px; background: #f7fbfd; }
.prospect-timeline__item h3,
.prospect-timeline__item p { overflow-wrap: anywhere; }
.prospect-timeline__dot { position: absolute; top: 22px; left: -26px; width: 14px; height: 14px; border: 3px solid #eaf4f8; border-radius: 50%; background: #087da3; box-sizing: border-box; }
.prospect-timeline__heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; margin-bottom: 10px; }
.prospect-timeline__heading > div { min-width: 0; }
.prospect-timeline__heading div { display: grid; gap: 3px; }
.prospect-timeline__heading strong,
.prospect-timeline__item h3 { color: #17324a; }
.prospect-timeline__heading small,
.prospect-timeline__heading time,
.prospect-timeline__item > small { color: #527086; font-size: .78rem; }
.prospect-timeline__item h3 { margin: 12px 0 5px; font-size: 1rem; }
.prospect-timeline__item p { margin: 7px 0; color: #17324a; line-height: 1.6; }
.prospect-snapshot { margin-top: 12px; padding: 11px 13px; border-radius: 10px; background: #eaf4f8; }
.prospect-snapshot summary { color: #075f91; font-weight: 900; cursor: pointer; }
.prospect-snapshot dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.prospect-snapshot dt { color: #527086; font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.prospect-snapshot dd { margin: 3px 0 0; color: #17324a; overflow-wrap: anywhere; }
.prospect-snapshot pre { margin: 12px 0 0; max-width: 100%; white-space: pre-wrap; overflow-wrap: anywhere; color: #17324a; font: inherit; line-height: 1.55; }

.prospect-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  align-items: start;
  gap: 22px;
}

.prospect-editor-grid .newsletter-compose-panel form { display: grid; gap: 18px; }
.prospect-compliance-details { padding: 14px; border: 1px solid #c8dce7; border-radius: 12px; background: #f7fbfd; }
.prospect-compliance-details summary { color: #17324a; font-weight: 900; cursor: pointer; }
.prospect-compliance-details[open] summary { margin-bottom: 14px; }
.prospect-preview-panel { position: sticky; top: 92px; }
.prospect-preview-panel iframe { min-height: 780px; }
.prospect-sender-grid { padding-top: 4px; }

html[data-backoffice-theme-resolved="dark"] .prospect-chip-list span,
html[data-backoffice-theme-resolved="dark"] .prospect-service-label,
html[data-backoffice-theme-resolved="dark"] .prospect-priority,
html[data-backoffice-theme-resolved="dark"] .prospect-service-checks label,
html[data-backoffice-theme-resolved="dark"] .prospect-definition-list > div,
html[data-backoffice-theme-resolved="dark"] .prospect-timeline__item,
html[data-backoffice-theme-resolved="dark"] .prospect-compliance-details {
  border-color: #315267;
  background: #102c40;
  color: #dceaf3;
}

html[data-backoffice-theme-resolved="dark"] .prospect-definition-list dt,
html[data-backoffice-theme-resolved="dark"] .prospect-timeline__heading small,
html[data-backoffice-theme-resolved="dark"] .prospect-timeline__heading time,
html[data-backoffice-theme-resolved="dark"] .prospect-timeline__item > small,
html[data-backoffice-theme-resolved="dark"] .prospect-snapshot dt { color: #b8d0df; }
html[data-backoffice-theme-resolved="dark"] .prospect-definition-list dd,
html[data-backoffice-theme-resolved="dark"] .prospect-timeline__heading strong,
html[data-backoffice-theme-resolved="dark"] .prospect-timeline__item h3,
html[data-backoffice-theme-resolved="dark"] .prospect-timeline__item p,
html[data-backoffice-theme-resolved="dark"] .prospect-compliance-details summary,
html[data-backoffice-theme-resolved="dark"] .prospect-snapshot dd,
html[data-backoffice-theme-resolved="dark"] .prospect-snapshot pre { color: #f0f7fb; }
html[data-backoffice-theme-resolved="dark"] .prospect-snapshot { background: #183b52; }
html[data-backoffice-theme-resolved="dark"] .prospect-suppression-panel h2 { color: #f0f7fb; }
html[data-backoffice-theme-resolved="dark"] .prospect-suppression-panel p { color: #dceaf3; }
html[data-backoffice-theme-resolved="dark"] .prospect-definition-list a,
html[data-backoffice-theme-resolved="dark"] .prospect-snapshot summary { color: #7dd8ff; }
html[data-backoffice-theme-resolved="dark"] .prospect-timeline::before { background: #315267; }

@media (max-width: 1250px) {
  .prospect-filter-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prospect-service-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prospect-editor-grid { grid-template-columns: 1fr; }
  .prospect-preview-panel { position: static; }
}

@media (max-width: 760px) {
  .prospect-record-form > .admin-panel > .prospect-form-grid {
    padding: 18px 16px;
  }

  .prospect-record-form > .admin-panel > .prospect-service-checks {
    margin: 18px 16px 0;
  }

  .prospect-detail-grid > .admin-panel > .prospect-definition-list,
  .prospect-activity-form,
  .prospect-suppression-panel { padding: 16px; }
  .prospect-detail-grid > .admin-panel > .prospect-chip-list { padding: 0 16px 16px; }
  .prospect-timeline { padding: 16px 16px 16px 42px; }
  .prospect-timeline::before { top: 24px; bottom: 24px; left: 23px; }
  .prospect-timeline:has(> .admin-empty) { padding-left: 16px; }

  .prospect-filter-form,
  .prospect-form-grid,
  .prospect-activity-form,
  .prospect-detail-grid,
  .prospect-service-checks,
  .prospect-snapshot dl { grid-template-columns: 1fr; }
  .prospect-suppression-panel,
  .prospect-suppression-panel form { align-items: stretch; flex-direction: column; }
  .prospect-suppression-panel > div { flex: none; }
  .prospect-suppression-panel form { flex: none; width: 100%; min-width: 0; }
  .prospect-hero-actions,
  .prospect-form-actions { justify-content: stretch; }
  .prospect-hero-actions > *,
  .prospect-form-actions > * { width: 100%; }
  .prospect-preview-panel iframe { min-height: 620px; }
}

/* Newsletter subscribers, campaign composer, templates and live e-mail preview. */
.newsletter-admin {
  max-width: none;
}

.newsletter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid #d6e4ee;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(8, 42, 67, .07);
}

.newsletter-tabs a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  color: #0b4f76;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.newsletter-tabs a:hover,
.newsletter-tabs a:focus-visible {
  color: #052f4d;
  background: #dff2fc;
  outline: none;
}

.newsletter-tabs a.is-active {
  color: #ffffff;
  background: #075f91;
  box-shadow: 0 8px 20px rgba(7, 95, 145, .2);
}

.newsletter-audience-strip {
  display: grid;
  grid-template-columns: minmax(170px, .3fr) minmax(0, 1.7fr);
  align-items: center;
  gap: 24px;
  padding: 18px 22px;
  color: #17324a;
  background: #edf8fd;
  border: 1px solid #b7dbea;
  border-left: 5px solid #087da3;
  border-radius: 12px;
}

.newsletter-audience-strip > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.newsletter-audience-strip span {
  color: #0b4f76;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.newsletter-audience-strip strong {
  color: #08233d;
  font-size: 28px;
}

.newsletter-audience-strip p {
  margin: 0;
  line-height: 1.55;
}

.newsletter-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(440px, .92fr);
  align-items: start;
  gap: 20px;
}

.newsletter-compose-panel form {
  padding: 22px;
}

.newsletter-compose-meta,
.newsletter-template-name,
.newsletter-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.newsletter-template-name {
  grid-template-columns: minmax(0, 1fr) minmax(210px, .72fr) auto;
  align-items: end;
}

.newsletter-field-grid {
  margin-top: 18px;
}

.newsletter-field {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  color: #17324a;
  font-size: 12px;
  font-weight: 850;
}

.newsletter-field--wide {
  grid-column: 1 / -1;
}

.newsletter-field > span {
  color: #17324a;
}

.newsletter-field input,
.newsletter-field select,
.newsletter-field textarea {
  width: 100%;
  min-width: 0;
  color: #17324a;
  background: #ffffff;
  border: 1px solid #bfd3e2;
  border-radius: 9px;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
}

.newsletter-field input,
.newsletter-field select {
  min-height: 46px;
  padding: 0 13px;
}

.newsletter-field textarea {
  padding: 12px 13px;
  line-height: 1.58;
  resize: vertical;
}

.newsletter-field input:focus,
.newsletter-field select:focus,
.newsletter-field textarea:focus {
  border-color: #1779b9;
  box-shadow: 0 0 0 4px rgba(23, 121, 185, .12);
  outline: none;
}

.newsletter-field small,
.newsletter-confirm small {
  color: #52647c;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
}

.newsletter-send-controls {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #dce8f1;
}

.newsletter-test-send {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.newsletter-confirm {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  color: #17324a;
  background: #f7fbfe;
  border: 1px solid #c8dce8;
  border-radius: 10px;
  cursor: pointer;
}

.newsletter-confirm input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
}

.newsletter-confirm span {
  display: grid;
  gap: 4px;
}

.newsletter-confirm strong {
  color: #08233d;
  font-size: 13px;
}

.newsletter-confirm--compact {
  align-self: end;
  min-height: 46px;
  padding: 9px 12px;
}

.newsletter-template-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 20px;
}

.newsletter-preview-panel {
  position: sticky;
  top: 98px;
  overflow: hidden;
}

.newsletter-preview-panel iframe {
  display: block;
  width: 100%;
  min-height: 840px;
  background: #eef5f8;
  border: 0;
}

html[data-backoffice-theme-resolved="dark"] .newsletter-tabs,
html[data-backoffice-theme-resolved="dark"] .newsletter-compose-panel,
html[data-backoffice-theme-resolved="dark"] .newsletter-preview-panel {
  color: #dceaf3;
  background: #0d2232;
  border-color: #35576d;
}

html[data-backoffice-theme-resolved="dark"] .newsletter-tabs a {
  color: #dceaf3;
}

html[data-backoffice-theme-resolved="dark"] .newsletter-tabs a:hover,
html[data-backoffice-theme-resolved="dark"] .newsletter-tabs a:focus-visible {
  color: #f0f7fb;
  background: #173a50;
}

html[data-backoffice-theme-resolved="dark"] .newsletter-tabs a.is-active {
  color: #ffffff;
  background: #096da3;
}

html[data-backoffice-theme-resolved="dark"] .newsletter-audience-strip,
html[data-backoffice-theme-resolved="dark"] .newsletter-confirm {
  color: #dceaf3;
  background: #132c3e;
  border-color: #45677f;
}

html[data-backoffice-theme-resolved="dark"] .newsletter-audience-strip span,
html[data-backoffice-theme-resolved="dark"] .newsletter-audience-strip strong,
html[data-backoffice-theme-resolved="dark"] .newsletter-field,
html[data-backoffice-theme-resolved="dark"] .newsletter-field > span,
html[data-backoffice-theme-resolved="dark"] .newsletter-confirm strong {
  color: #f0f7fb;
}

html[data-backoffice-theme-resolved="dark"] .newsletter-field small,
html[data-backoffice-theme-resolved="dark"] .newsletter-confirm small {
  color: #dceaf3;
}

html[data-backoffice-theme-resolved="dark"] .newsletter-field input,
html[data-backoffice-theme-resolved="dark"] .newsletter-field select,
html[data-backoffice-theme-resolved="dark"] .newsletter-field textarea {
  color: #f0f7fb;
  background: #0b1d2b;
  border-color: #52758c;
}

html[data-backoffice-theme-resolved="dark"] .newsletter-send-controls {
  border-color: #35576d;
}

@media (max-width: 1180px) {
  .newsletter-editor-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-preview-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .newsletter-tabs a {
    flex: 1 1 100%;
    justify-content: center;
  }

  .newsletter-audience-strip,
  .newsletter-compose-meta,
  .newsletter-template-name,
  .newsletter-field-grid,
  .newsletter-test-send {
    grid-template-columns: 1fr;
  }

  .newsletter-field--wide {
    grid-column: auto;
  }

  .newsletter-test-send .admin-button,
  .newsletter-send-controls > .admin-button,
  .newsletter-template-actions .admin-button {
    width: 100%;
  }

  .newsletter-preview-panel iframe {
    min-height: 700px;
  }
}

/* Smartlook REST API workspace */
.smartlook-hero {
  display: flex;
  gap: 28px;
  align-items: flex-end;
  justify-content: space-between;
}

.smartlook-hero > div:first-child {
  max-width: 820px;
}

.smartlook-sync-form {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  align-items: flex-end;
  padding: 14px;
  color: #dceaf3;
  background: rgba(5, 23, 39, .72);
  border: 1px solid rgba(185, 239, 250, .28);
  border-radius: 10px;
}

.smartlook-sync-form label,
.smartlook-filters label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
}

.smartlook-sync-form select,
.smartlook-filters select,
.smartlook-anomaly-card__actions select {
  min-height: 42px;
  padding: 8px 34px 8px 11px;
  color: #17324a;
  background: #fff;
  border: 1px solid #9bb2c3;
  border-radius: 7px;
  font: inherit;
}

.smartlook-configuration {
  display: flex;
  margin: 0;
}

.smartlook-configuration > div {
  display: grid;
  gap: 5px;
}

.smartlook-configuration code {
  font-weight: 900;
}

.smartlook-meta-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  color: #dceaf3;
  background: #0b2436;
  border: 1px solid #34576f;
  border-radius: 9px;
}

.smartlook-meta-strip > span {
  display: grid;
  gap: 4px;
  padding: 15px 18px;
  border-right: 1px solid #34576f;
}

.smartlook-meta-strip > span:last-child {
  border-right: 0;
}

.smartlook-meta-strip small {
  color: #dceaf3;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.smartlook-meta-strip strong {
  color: #f0f7fb;
  font-size: 14px;
}

.smartlook-filter-panel {
  padding: 16px 20px;
}

.smartlook-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr)) auto;
  gap: 14px;
  align-items: end;
}

.smartlook-filters label {
  color: #17324a;
}

.smartlook-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.smartlook-analysis-grid,
.smartlook-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.smartlook-analysis-grid > .admin-panel,
.smartlook-detail-grid > .admin-panel {
  min-width: 0;
  margin: 0;
}

.smartlook-exit-signals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 20px 16px;
}

.smartlook-exit-signal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  padding: 12px 14px;
  color: #17324a;
  background: #f5f9fc;
  border: 1px solid #c6d6e1;
  border-left: 4px solid #6c879a;
  border-radius: 8px;
}

.smartlook-exit-signal > span {
  font-size: 12px;
  font-weight: 900;
}

.smartlook-exit-signal > strong {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
  font-size: 21px;
}

.smartlook-exit-signal > small {
  color: #3e5c72;
  font-size: 11px;
  font-weight: 800;
}

.smartlook-exit-signal--critical { border-left-color: #bc2f35; }
.smartlook-exit-signal--high { border-left-color: #d16428; }
.smartlook-exit-signal--medium { border-left-color: #b47a13; }
.smartlook-exit-signal--positive { border-left-color: #267a55; }

.smartlook-inference-note {
  display: block;
  margin: 0 20px 18px;
  color: #3e5c72;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.55;
}

.smartlook-error-groups td:first-child {
  min-width: 280px;
}

.smartlook-error-groups td small,
.smartlook-exit-pages td small {
  display: block;
  margin-top: 4px;
}

.smartlook-table-actions,
.smartlook-detail-hero__actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}

.smartlook-detail-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.smartlook-detail-hero__actions {
  justify-content: flex-end;
}

.smartlook-detail-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  background: #fff;
  border: 1px solid #c6d6e1;
  border-radius: 9px;
}

.smartlook-detail-stats > article {
  display: grid;
  gap: 5px;
  padding: 15px 18px;
  color: #17324a;
  border-right: 1px solid #d5e0e8;
}

.smartlook-detail-stats > article:last-child { border-right: 0; }
.smartlook-detail-stats span { color: #3e5c72; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.smartlook-detail-stats strong { font-size: 17px; }

.smartlook-exit-assessment {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 22px;
  color: #17324a;
  background: #f7fbfe;
  border: 1px solid #c6d6e1;
  border-left: 6px solid #6c879a;
}

.smartlook-exit-assessment--critical { border-left-color: #bc2f35; }
.smartlook-exit-assessment--high { border-left-color: #d16428; }
.smartlook-exit-assessment--medium { border-left-color: #b47a13; }
.smartlook-exit-assessment--positive { border-left-color: #267a55; }

.smartlook-exit-assessment__score {
  display: grid;
  gap: 5px;
  padding-right: 20px;
  border-right: 1px solid #c6d6e1;
}

.smartlook-exit-assessment__score span,
.smartlook-exit-assessment__score small {
  color: #3e5c72;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.smartlook-exit-assessment__score strong { font-size: 30px; }
.smartlook-exit-assessment h2 { margin: 2px 0 7px; font-size: 21px; }
.smartlook-exit-assessment p { margin: 0; line-height: 1.55; }
.smartlook-exit-assessment .smartlook-inference-note { margin: 9px 0 0; }

.smartlook-journey {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  padding: 0 20px 20px;
  color: #17324a;
}

.smartlook-journey > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 13px;
  background: #f5f9fc;
  border: 1px solid #c6d6e1;
  border-radius: 8px;
}

.smartlook-journey span,
.smartlook-journey small { color: #3e5c72; font-size: 11px; font-weight: 800; }
.smartlook-journey small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.smartlook-technical-list,
.smartlook-error-detail dl {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 20px 20px;
}

.smartlook-technical-list > div,
.smartlook-error-detail dl > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid #d5e0e8;
}

.smartlook-technical-list > div:last-child,
.smartlook-error-detail dl > div:last-child { border-bottom: 0; }
.smartlook-technical-list dt,
.smartlook-error-detail dt { color: #3e5c72; font-size: 12px; font-weight: 900; }
.smartlook-technical-list dd,
.smartlook-error-detail dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: #17324a; font-weight: 750; }

.smartlook-error-detail-list {
  display: grid;
  gap: 12px;
  padding: 0 20px 20px;
}

.smartlook-error-detail {
  padding: 16px;
  color: #17324a;
  background: #fff8f7;
  border: 1px solid #e1b8b5;
  border-radius: 8px;
}

.smartlook-error-detail__heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.smartlook-error-detail__heading time { color: #3e5c72; font-size: 12px; font-weight: 800; }
.smartlook-error-detail h3 { margin: 13px 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.smartlook-error-detail dl { padding: 0; }
.smartlook-error-detail details { margin-top: 12px; }
.smartlook-error-detail summary { cursor: pointer; font-size: 12px; font-weight: 900; }
.smartlook-error-detail pre { max-height: 320px; overflow: auto; margin: 10px 0 0; padding: 13px; color: #f0f7fb; background: #0b2436; border-radius: 7px; font-size: 11px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }

.smartlook-timeline {
  display: grid;
  gap: 0;
  padding: 0 20px 20px;
}

.smartlook-timeline__item {
  display: grid;
  grid-template-columns: 75px minmax(0, 1fr);
  gap: 18px;
  position: relative;
  padding: 14px 0;
  color: #17324a;
  border-bottom: 1px solid #d5e0e8;
}

.smartlook-timeline__item:last-child { border-bottom: 0; }
.smartlook-timeline__item time { color: #3e5c72; font-size: 12px; font-weight: 900; }
.smartlook-timeline__item strong { font-size: 13px; }
.smartlook-timeline__item p { margin: 4px 0; line-height: 1.5; overflow-wrap: anywhere; }
.smartlook-timeline__item small { color: #3e5c72; overflow-wrap: anywhere; }

.smartlook-anomaly-list {
  display: grid;
  gap: 12px;
  padding: 0 22px 22px;
}

.smartlook-anomaly-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 17px;
  color: #17324a;
  background: #f7fbfe;
  border: 1px solid #c6d6e1;
  border-left: 5px solid #5b7890;
  border-radius: 8px;
}

.smartlook-anomaly-card--critical { border-left-color: #bc2f35; }
.smartlook-anomaly-card--high { border-left-color: #d16428; }
.smartlook-anomaly-card--medium { border-left-color: #b47a13; }
.smartlook-anomaly-card--low { border-left-color: #3478a8; }

.smartlook-anomaly-card__priority {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.smartlook-anomaly-card__priority > strong {
  color: #17324a;
  font-size: 13px;
}

.smartlook-severity {
  display: inline-flex;
  padding: 5px 8px;
  color: #17324a;
  background: #e4edf3;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.smartlook-severity--critical { color: #7d151b; background: #ffe2e2; }
.smartlook-severity--high { color: #80320c; background: #ffeadc; }
.smartlook-severity--medium { color: #684406; background: #fff0c6; }
.smartlook-severity--low { color: #164e72; background: #dceeff; }

.smartlook-anomaly-card__content h3 {
  margin: 0;
  color: #102d44;
  font-size: 16px;
}

.smartlook-anomaly-card__content p {
  margin: 5px 0 0;
  color: #324f65;
  font-size: 13px;
  line-height: 1.55;
}

.smartlook-anomaly-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 10px;
  color: #3e5c72;
  font-size: 12px;
  font-weight: 800;
}

.smartlook-anomaly-card__actions {
  display: grid;
  gap: 8px;
  min-width: 190px;
}

.smartlook-anomaly-card__actions form {
  display: flex;
  gap: 7px;
}

.smartlook-session-table td small {
  display: block;
  margin-top: 4px;
}

html[data-backoffice-theme-resolved="dark"] .smartlook-filter-panel,
html[data-backoffice-theme-resolved="dark"] .smartlook-anomaly-card,
html[data-backoffice-theme-resolved="dark"] .smartlook-exit-signal,
html[data-backoffice-theme-resolved="dark"] .smartlook-detail-stats,
html[data-backoffice-theme-resolved="dark"] .smartlook-exit-assessment,
html[data-backoffice-theme-resolved="dark"] .smartlook-journey > div,
html[data-backoffice-theme-resolved="dark"] .smartlook-error-detail {
  color: #dceaf3;
  background: #0f2536;
  border-color: #45677f;
}

html[data-backoffice-theme-resolved="dark"] .smartlook-filters label,
html[data-backoffice-theme-resolved="dark"] .smartlook-anomaly-card__priority > strong,
html[data-backoffice-theme-resolved="dark"] .smartlook-anomaly-card__content p,
html[data-backoffice-theme-resolved="dark"] .smartlook-anomaly-card__meta {
  color: #dceaf3;
}

html[data-backoffice-theme-resolved="dark"] .smartlook-exit-signal > small,
html[data-backoffice-theme-resolved="dark"] .smartlook-inference-note,
html[data-backoffice-theme-resolved="dark"] .smartlook-detail-stats > article,
html[data-backoffice-theme-resolved="dark"] .smartlook-detail-stats span,
html[data-backoffice-theme-resolved="dark"] .smartlook-exit-assessment,
html[data-backoffice-theme-resolved="dark"] .smartlook-exit-assessment__score span,
html[data-backoffice-theme-resolved="dark"] .smartlook-exit-assessment__score small,
html[data-backoffice-theme-resolved="dark"] .smartlook-journey,
html[data-backoffice-theme-resolved="dark"] .smartlook-journey span,
html[data-backoffice-theme-resolved="dark"] .smartlook-journey small,
html[data-backoffice-theme-resolved="dark"] .smartlook-technical-list dt,
html[data-backoffice-theme-resolved="dark"] .smartlook-error-detail dt,
html[data-backoffice-theme-resolved="dark"] .smartlook-technical-list dd,
html[data-backoffice-theme-resolved="dark"] .smartlook-error-detail dd,
html[data-backoffice-theme-resolved="dark"] .smartlook-error-detail__heading time,
html[data-backoffice-theme-resolved="dark"] .smartlook-timeline__item,
html[data-backoffice-theme-resolved="dark"] .smartlook-timeline__item time,
html[data-backoffice-theme-resolved="dark"] .smartlook-timeline__item small {
  color: #dceaf3;
}

html[data-backoffice-theme-resolved="dark"] .smartlook-detail-stats > article,
html[data-backoffice-theme-resolved="dark"] .smartlook-exit-assessment__score,
html[data-backoffice-theme-resolved="dark"] .smartlook-technical-list > div,
html[data-backoffice-theme-resolved="dark"] .smartlook-error-detail dl > div,
html[data-backoffice-theme-resolved="dark"] .smartlook-timeline__item {
  border-color: #45677f;
}

html[data-backoffice-theme-resolved="dark"] .smartlook-anomaly-card__content h3 {
  color: #f0f7fb;
}

html[data-backoffice-theme-resolved="dark"] .smartlook-exit-signal--critical,
html[data-backoffice-theme-resolved="dark"] .smartlook-exit-assessment--critical { border-left-color: #ff7a80; }
html[data-backoffice-theme-resolved="dark"] .smartlook-exit-signal--high,
html[data-backoffice-theme-resolved="dark"] .smartlook-exit-assessment--high { border-left-color: #ff9b62; }
html[data-backoffice-theme-resolved="dark"] .smartlook-exit-signal--medium,
html[data-backoffice-theme-resolved="dark"] .smartlook-exit-assessment--medium { border-left-color: #efbd55; }
html[data-backoffice-theme-resolved="dark"] .smartlook-exit-signal--positive,
html[data-backoffice-theme-resolved="dark"] .smartlook-exit-assessment--positive { border-left-color: #61c996; }

html[data-backoffice-theme-resolved="dark"] .smartlook-filters select,
html[data-backoffice-theme-resolved="dark"] .smartlook-anomaly-card__actions select {
  color: #f0f7fb;
  background: #173247;
  border-color: #58788f;
}

@media (max-width: 1180px) {
  .smartlook-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .smartlook-detail-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .smartlook-detail-stats > article:nth-child(3) { border-right: 0; }

  .smartlook-anomaly-card {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .smartlook-anomaly-card__actions {
    grid-column: 2;
    grid-template-columns: auto minmax(220px, 1fr);
  }
}

@media (max-width: 820px) {
  .smartlook-hero,
  .smartlook-sync-form,
  .smartlook-anomaly-card__actions,
  .smartlook-anomaly-card__actions form {
    align-items: stretch;
  }

  .smartlook-hero,
  .smartlook-sync-form,
  .smartlook-anomaly-card__actions form {
    flex-direction: column;
  }

  .smartlook-meta-strip,
  .smartlook-stats,
  .smartlook-filters,
  .smartlook-analysis-grid,
  .smartlook-detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .smartlook-analysis-grid,
  .smartlook-detail-grid,
  .smartlook-detail-hero,
  .smartlook-exit-assessment {
    grid-template-columns: 1fr;
  }

  .smartlook-detail-hero { align-items: stretch; flex-direction: column; }
  .smartlook-detail-hero__actions { justify-content: flex-start; }
  .smartlook-exit-assessment__score { padding: 0 0 16px; border-right: 0; border-bottom: 1px solid #c6d6e1; }

  .smartlook-meta-strip > span:nth-child(2) {
    border-right: 0;
  }

  .smartlook-meta-strip > span:nth-child(-n+2) {
    border-bottom: 1px solid #34576f;
  }

  .smartlook-anomaly-card {
    grid-template-columns: 1fr;
  }

  .smartlook-anomaly-card__actions {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .smartlook-meta-strip,
  .smartlook-stats,
  .smartlook-filters,
  .smartlook-exit-signals,
  .smartlook-detail-stats {
    grid-template-columns: 1fr;
  }

  .smartlook-detail-stats > article { border-right: 0; border-bottom: 1px solid #d5e0e8; }
  .smartlook-detail-stats > article:last-child { border-bottom: 0; }
  .smartlook-journey { grid-template-columns: 1fr; }
  .smartlook-journey > span { transform: rotate(90deg); justify-self: center; }
  .smartlook-technical-list > div,
  .smartlook-error-detail dl > div,
  .smartlook-timeline__item { grid-template-columns: 1fr; gap: 5px; }

  .smartlook-meta-strip > span {
    border-right: 0;
    border-bottom: 1px solid #34576f;
  }

  .smartlook-meta-strip > span:last-child {
    border-bottom: 0;
  }

  .smartlook-anomaly-list {
    padding: 0 14px 14px;
  }
}

/* Work reports */
.work-reports-admin {
  width: 100%;
  max-width: none;
}

.work-reports-hero,
.work-report-hero-actions,
.work-report-workflow__actions,
.work-report-form-actions,
.work-report-inline-checks {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.work-reports-hero { justify-content: space-between; }
.work-report-hero-actions,
.work-report-workflow__actions { justify-content: flex-end; }
.work-report-workflow__actions form { margin: 0; }
.work-report-stop-alert {
  display: grid;
  grid-template-columns: minmax(132px, .22fr) minmax(0, 1fr);
  margin-top: 18px;
  overflow: hidden;
  border: 3px solid #a50909;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(120deg, #750606 0%, #a50909 46%, #650303 100%);
  box-shadow: 0 18px 42px rgba(117, 6, 6, .32), 0 0 0 5px rgba(204, 20, 20, .12);
}
.work-report-stop-alert__signal {
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 24px 18px;
  background: repeating-linear-gradient(-45deg, #171717 0 14px, #242424 14px 28px);
  border-right: 3px solid rgba(255, 255, 255, .9);
}
.work-report-stop-alert__signal span {
  display: grid;
  place-items: center;
  width: 106px;
  height: 106px;
  color: #fff;
  background: #d20d0d;
  border: 7px solid #fff;
  clip-path: polygon(29% 0, 71% 0, 100% 29%, 100% 71%, 71% 100%, 29% 100%, 0 71%, 0 29%);
  font-size: 1.65rem;
  font-weight: 950;
  letter-spacing: .08em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .28);
}
.work-report-stop-alert__content { min-width: 0; padding: 24px 26px 22px; }
.work-report-stop-alert__eyebrow {
  margin: 0 0 3px;
  color: #ffd3d3;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.work-report-stop-alert h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  font-weight: 950;
  letter-spacing: .025em;
  line-height: 1.05;
}
.work-report-stop-alert__instruction { max-width: 1000px; margin: 12px 0 0; color: #fff; line-height: 1.55; }
.work-report-stop-alert__items { display: grid; gap: 8px; margin-top: 17px; }
.work-report-stop-alert__items article {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) repeat(2, minmax(150px, 1fr));
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 10px;
  background: rgba(35, 0, 0, .48);
}
.work-report-stop-alert__items div { display: grid; gap: 2px; }
.work-report-stop-alert__items span { color: #ffd3d3; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.work-report-stop-alert__items strong { color: #fff; font-size: .87rem; }
.work-report-stop-alert__test-note { margin: 13px 0 0; color: #ffdada; font-size: .72rem; line-height: 1.45; }
.work-report-email-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 24px 22px;
}
.work-report-email-action {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid #d5e4ec;
  border-radius: 12px;
  background: #f8fbfd;
}
.work-report-email-action small { color: #586f80; font-size: .72rem; line-height: 1.5; }
.work-report-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 22px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid #d5e4ec;
  border-radius: 14px;
  background: #fff;
}

.work-report-tabs a {
  flex: 0 0 auto;
  padding: 9px 14px;
  border-radius: 10px;
  color: #17324a;
  font-size: .84rem;
  font-weight: 750;
  text-decoration: none;
}

.work-report-tabs a:hover,
.work-report-tabs a:focus-visible { color: #05669e; background: #eaf7fe; outline: none; }

.work-report-filters,
.work-report-create-period,
.work-report-entry-form,
.work-report-reopen {
  display: grid;
  gap: 14px;
  align-items: end;
}

.work-report-filters { grid-template-columns: minmax(240px, 2fr) minmax(180px, 1fr) auto; }
.work-report-entry-filters { grid-template-columns: repeat(4, minmax(105px, 1fr)) minmax(190px, auto); border-bottom: 1px solid #dbe7ed; }
.work-report-entry-filter-actions { grid-column: auto; justify-content: flex-end; flex-wrap: nowrap; white-space: nowrap; }
.work-report-entry-filter-status { color: #526b7c; font-size: .76rem; font-weight: 750; }
.work-report-create-period { grid-template-columns: 100px 110px auto; }
.work-report-entry-form { grid-template-columns: repeat(4, minmax(170px, 1fr)); padding: 24px; }
.work-report-reopen { grid-template-columns: minmax(300px, 1fr) auto; padding: 0 24px 24px; }

.work-report-entry-workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.work-report-entry-workspace--single { grid-template-columns: minmax(0, 1fr); }
.work-report-entry-workspace > .admin-panel,
.work-report-entry-sidebar { min-width: 0; }
.work-report-entry-sidebar { display: grid; gap: 20px; align-content: start; }
.work-report-entry-workspace .work-report-entry-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.work-report-filters label,
.work-report-create-period label,
.work-report-reopen label,
.work-report-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #17324a;
  font-size: .78rem;
  font-weight: 750;
}

.work-report-filter-panel { padding: 20px 24px; }
.work-report-filter-actions { display: flex; align-items: center; gap: 10px; min-height: 42px; }

.work-report-filters input,
.work-report-filters select,
.work-report-create-period input,
.work-report-create-period select,
.work-report-reopen input,
.work-report-field input,
.work-report-field select,
.work-report-field textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #b9ceda;
  border-radius: 10px;
  color: #17324a;
  background: #fff;
  font: inherit;
  font-weight: 550;
}

.work-report-field textarea { resize: vertical; line-height: 1.5; }
.work-report-field input[type="color"] { padding: 4px; min-height: 42px; cursor: pointer; }
.work-report-field > small { color: #586f80; font-size: .7rem; font-weight: 550; line-height: 1.4; }
.work-report-filters input:focus,
.work-report-filters select:focus,
.work-report-create-period input:focus,
.work-report-create-period select:focus,
.work-report-reopen input:focus,
.work-report-field input:focus,
.work-report-field select:focus,
.work-report-field textarea:focus { border-color: #159bd5; box-shadow: 0 0 0 3px rgba(21,155,213,.14); outline: none; }

.work-report-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 16px;
  padding: 0 24px 24px;
}

.work-reports-admin .admin-panel > .admin-panel__header + .work-report-form-grid,
.work-reports-admin .admin-panel > .admin-panel__header + .work-report-filters { padding-top: 22px; }
.work-reports-admin .admin-panel > .admin-table-wrap { padding-top: 10px; }
.work-report-form-grid--compact { grid-template-columns: repeat(3, minmax(140px, 1fr)); padding: 0; }
.work-report-field--wide { grid-column: span 2; }
.work-report-company-form { display: grid; gap: 18px; }
.work-report-company-settings-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; min-width: 0; }
.work-report-company-settings-column { display: grid; min-width: 0; gap: 18px; align-content: start; }
.work-report-company-section { min-width: 0; }
.work-report-company-section > .admin-panel__header { padding-bottom: 22px; }
.work-report-company-section .work-report-form-grid { grid-template-columns: minmax(0, 1fr); }
.work-report-company-section .work-report-field--wide { grid-column: auto; }
.work-report-section-heading { margin-top: 4px; border-top: 1px solid #dce8ee; padding-top: 24px; }
.work-report-company-actions .work-report-form-actions { justify-content: flex-end; padding: 18px 24px; }
.work-report-contacts { display: grid; gap: 14px; padding: 0 24px 24px; }
.work-report-contacts__heading,
.work-report-contact-card__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.work-report-contacts__heading h3,
.work-report-rules-heading h3 { margin: 0; color: #17324a; font-size: .95rem; }
.work-report-contacts__heading p,
.work-report-rules-heading p { margin: 5px 0 0; color: #586f80; font-size: .72rem; line-height: 1.45; }
.work-report-contact-mail-note { display: grid; gap: 3px; padding: 12px 14px; color: #234861; background: #eef7fc; border: 1px solid #c7e0ed; border-radius: 10px; font-size: .72rem; line-height: 1.45; }
.work-report-contact-mail-note strong { color: #0d5e89; }
.work-report-contact-list { display: grid; gap: 12px; }
.work-report-contact-card { display: grid; gap: 14px; padding: 15px; border: 1px solid #cbdde7; border-radius: 12px; background: #f9fcfe; }
.work-report-contact-card__heading { align-items: center; }
.work-report-contact-card__heading > strong { color: #17324a; font-size: .84rem; }
.work-report-contact-card__heading .admin-button { min-height: 32px; padding: 6px 10px; font-size: .68rem; }
.work-report-contact-fields { display: grid; gap: 12px; }
.work-report-contact-mail-toggle { align-items: flex-start; padding: 11px 12px; background: #fff; border: 1px solid #d6e4eb; border-radius: 10px; line-height: 1.4; }
.work-report-rules-heading { margin: 0 24px 18px; padding-top: 22px; border-top: 1px solid #dce8ee; }
.work-report-company-rules-grid { padding-top: 0; }
.work-report-company-rules-grid__wide { grid-column: 1 / -1; }
[data-sla-reason-field].is-hidden { display: none !important; }
.client-sla-duration-groups { display: grid; gap: 14px; }
.client-sla-duration-group { overflow: hidden; border: 1px solid #cbdde7; border-radius: 12px; background: #f9fcfe; }
.client-sla-duration-group__heading { padding: 14px 16px; border-bottom: 1px solid #dce8ee; background: #eef6fa; }
.client-sla-duration-group__heading h3 { margin: 0; color: #17324a; font-size: .9rem; }
.client-sla-duration-group__heading p { margin: 4px 0 0; color: #586f80; font-size: .7rem; line-height: 1.45; }
.client-sla-duration-group__rows { display: grid; }
.client-sla-duration-row { display: grid; grid-template-columns: minmax(95px, .7fr) minmax(0, 1.3fr); align-items: center; gap: 10px 14px; padding: 12px 16px; }
.client-sla-duration-row + .client-sla-duration-row { border-top: 1px solid #e1ebf0; }
.client-sla-duration-row > label { color: #17324a; font-size: .76rem; font-weight: 800; }
.client-sla-duration-row > .admin-error { grid-column: 1 / -1; margin: -2px 0 0; }
.client-sla-duration-control { display: grid; grid-template-columns: minmax(0, 1fr) minmax(92px, .65fr); gap: 8px; min-width: 0; }
.client-sla-duration-control__field { display: grid; gap: 5px; min-width: 0; }
.client-sla-duration-control__field > span { color: #586f80; font-size: .66rem; font-weight: 850; letter-spacing: .04em; line-height: 1.2; text-transform: uppercase; }
.client-sla-duration-control input,
.client-sla-duration-control select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  color: #17324a;
  background: #fff;
  border: 1px solid #9eb8c8;
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(15, 47, 70, .06);
  font: inherit;
}
.client-sla-duration-control input::placeholder { color: #8296a5; opacity: 1; }
.client-sla-duration-control input:hover,
.client-sla-duration-control select:hover { border-color: #67a9c9; }
.client-sla-duration-control input:focus,
.client-sla-duration-control select:focus { outline: 3px solid rgba(0, 127, 189, .2); outline-offset: 1px; border-color: #007fbd; box-shadow: none; }

.work-report-check,
.work-report-inline-checks label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #17324a;
  font-size: .82rem;
  font-weight: 700;
}

.work-report-check input,
.work-report-inline-checks input { width: 18px; height: 18px; accent-color: #159bd5; }
.work-report-company-table td small,
.work-report-duration small,
.work-report-user-card small { display: block; margin-top: 4px; color: #586f80; }

.work-report-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid #b9ceda;
  border-radius: 999px;
  color: #17324a;
  background: #edf6fb;
  font-size: .74rem;
  font-weight: 800;
  white-space: nowrap;
}

.work-report-status--open { color: #075f8b; background: #e5f6fe; border-color: #9bcfe7; }
.work-report-status--review { color: #7a5200; background: #fff5d8; border-color: #e9cf82; }
.work-report-status--closed { color: #374b5a; background: #eef2f4; border-color: #c8d3d9; }
.work-report-status--exported { color: #12623e; background: #e6f7ef; border-color: #a7d7bf; }

.work-report-employee-stat-card__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.work-report-employee-stat-card__heading > span { min-width: 0; }
.work-report-employee-stat-card__actions { display: flex; flex: 0 0 auto; gap: 6px; }
.work-report-employee-stat-card__actions .admin-icon-button { width: 36px !important; height: 36px; }
.work-report-employee-stat-card__actions .admin-icon-button svg { width: 18px; height: 18px; }
.work-report-company-tariff-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; min-width: 0; }
.work-report-company-tariff-layout--single { grid-template-columns: minmax(0, 1fr); }
.work-report-company-tariff-layout > .admin-panel { min-width: 0; }
.work-report-company-tariff-layout .work-report-tariff-grid,
.work-report-company-tariff-layout .work-report-package-grid { grid-template-columns: minmax(0, 1fr); }
.work-report-tariff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0 24px 24px; }
.work-report-tariff-card { padding: 18px; border: 1px solid #d5e4ec; border-top: 4px solid var(--tariff-color); border-radius: 14px; background: #fafdff; }
.work-report-tariff-card__heading { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: #17324a; }
.work-report-tariff-card__heading strong { flex: 1; }
.work-report-color-dot { display: inline-block; flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; background: var(--tariff-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tariff-color) 18%, transparent); }
.work-report-allowance-mode-note { display: grid; gap: 5px; padding: 14px; border: 1px solid #b7d9ea; border-radius: 11px; color: #17324a; background: #eef9ff; }
.work-report-allowance-mode-note[hidden] { display: none; }
.work-report-allowance-mode-note small { color: #526b7c; }
.work-report-field input[readonly] { color: #526b7c; background: #edf3f6; cursor: not-allowed; }
.work-report-package-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 0 24px 24px; }
.work-report-package-card { container-type: inline-size; padding: 18px; border: 1px solid #d5e4ec; border-left: 4px solid var(--tariff-color); border-radius: 14px; background: #fafdff; }
.work-report-package-card > .admin-button { margin-top: 16px; }
.work-report-package-card [data-work-report-own-allowance][hidden] { display: none; }
.work-report-own-allowance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.work-report-own-allowance-grid > .work-report-field { grid-template-rows: auto 42px auto; align-content: start; }
.work-report-own-allowance-grid > .work-report-field > input { height: 42px; min-height: 42px; }
@container (min-width: 760px) {
  .work-report-own-allowance-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@container (max-width: 460px) {
  .work-report-own-allowance-grid { grid-template-columns: minmax(0, 1fr); }
}
.work-report-pool-section { display: grid; gap: 14px; padding: 0 24px 24px; }
.work-report-pool-section__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.work-report-pool-section__heading--tariffs { padding: 2px 24px 16px; border-top: 1px solid #dbe7ed; padding-top: 22px; }
.work-report-pool-section__heading h3 { margin: 0; color: #17324a; font-size: 1rem; }
.work-report-pool-section__heading p { margin: 5px 0 0; color: #586f80; font-size: .76rem; line-height: 1.5; }
.work-report-pool-card { display: grid; gap: 14px; padding: 16px; border: 1px solid #c9dce6; border-radius: 13px; background: #f7fbfd; }
.work-report-pool-card--create { border-style: dashed; background: #fafdff; }
.work-report-pool-card > form { display: grid; gap: 14px; }
.work-report-pool-card__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #17324a; }
.work-report-pool-members { margin: -4px 0 0; color: #526b7c; font-size: .74rem; line-height: 1.5; }
.work-report-pool-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; }
.work-report-apply-open { display: flex; align-items: flex-start; gap: 9px; min-width: 0; color: #17324a; font-size: .76rem; cursor: pointer; }
.work-report-apply-open > input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: #159bd5; }
.work-report-apply-open > span { display: grid; gap: 3px; }
.work-report-apply-open small { color: #586f80; font-weight: 500; line-height: 1.4; }
.work-report-pool-delete { justify-self: end; }
.work-report-inline-checks { justify-content: flex-end; margin-top: 16px; }
.work-report-add-tariff-button { flex: 0 0 auto; width: 40px !important; height: 40px; }
.work-report-add-tariff-button svg { width: 20px; height: 20px; }
.work-report-global-source { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.work-report-global-source span { display: grid; gap: 3px; padding: 9px 10px; border: 1px solid #d5e4ec; border-radius: 9px; color: #17324a; background: #f3f8fb; font-size: .74rem; }
.work-report-global-source b { color: #526b7c; font-size: .64rem; letter-spacing: .04em; text-transform: uppercase; }
.work-report-client-tariff-fields { grid-template-columns: minmax(0, 1fr); }
.work-report-client-tariff-fields .work-report-field--wide { grid-column: auto; }
.work-report-global-tariff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 24px; }
.work-report-global-tariff-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #dbe7ed; color: #526b7c; font-size: .74rem; }
.work-report-color-validation { display: block; margin-top: 5px; color: #b42318; font-size: .7rem; font-weight: 750; line-height: 1.35; }
.work-report-color-validation[hidden] { display: none; }
.work-report-field input[data-global-tariff-color]:invalid { border-color: #c83f4d; box-shadow: 0 0 0 3px rgba(200,63,77,.12); }

.work-report-user-card { display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 14px; border: 1px solid #d5e4ec; border-radius: 12px; color: #17324a; background: #fafdff; }
.work-report-user-card input { width: 18px; height: 18px; accent-color: #159bd5; }

.work-report-workflow__actions { max-width: 760px; }
.work-report-entry-form > .work-report-field--wide { grid-column: 1 / -1; }
.work-report-entry-form > .work-report-form-actions { grid-column: 1 / -1; justify-content: flex-end; }
.work-report-entry-form--create > .work-report-form-actions { justify-content: flex-start; }
.work-report-duration { display: block; padding-left: 9px; border-left: 4px solid var(--tariff-color); }
.work-report-duration strong { display: block; color: #17324a; }
.work-report-duration small { max-width: 210px; white-space: normal; }
.work-report-employee-name { display: inline-flex; align-items: center; gap: 8px; color: #17324a; }
.work-report-employee-name > i { flex: 0 0 auto; width: 10px; height: 10px; background: var(--employee-color); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px var(--employee-color); }
.work-report-employee-name > strong { font-weight: 850; }
.work-report-description { min-width: 320px; white-space: pre-line; }
.work-report-entry-table tr[id^="polozka-"] { scroll-margin-top: 110px; }
.work-report-entry-table tr:target > td { background: #fff0b8; box-shadow: inset 0 2px #c17b00, inset 0 -2px #c17b00; }

.client-approvals-admin { display: grid; gap: 20px; }
.client-approval-hero { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.client-approval-hero__copy { min-width: 0; }
.client-approval-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.client-approval-hero .client-approval-actions { flex: 0 0 auto; justify-content: flex-end; margin-left: auto; }
.client-approval-filters { grid-template-columns: minmax(220px, 1.6fr) minmax(150px, 1fr); }
.client-approval-filters--admin { grid-template-columns: minmax(220px, 1.6fr) repeat(2, minmax(150px, 1fr)); }
.client-approval-status { display: inline-flex; align-items: center; width: fit-content; padding: 5px 9px; border-radius: 999px; background: #e7eef3; color: #314c5e; font-size: .75rem; font-weight: 800; }
.client-approval-status--approved, .client-approval-status--completed, .client-approval-status--fulfilled { background: #dff5eb; color: #076047; }
.client-approval-status--declined, .client-approval-status--cancelled { background: #fde7e7; color: #9b2525; }
.client-approval-status--pending { background: #fff0cc; color: #805500; }
.client-approval-status--in_progress, .client-approval-status--ordered { background: #dceeff; color: #125b89; }
.client-approval-status--archived { margin-left: 4px; background: #e9e5f5; color: #594482; }
.client-approval-form { display: grid; gap: 24px; padding: 24px; }
.client-approval-form-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr); align-items: start; gap: 20px; min-width: 0; }
.client-approval-form-layout--offer { grid-template-columns: minmax(0, 1fr); }
.client-approval-form-section { display: grid; min-width: 0; overflow: hidden; border: 1px solid #dbe7ed; border-radius: 14px; background: #fafdff; }
.client-approval-form-section > .admin-panel__header { padding: 18px 20px; border-bottom: 1px solid #dbe7ed; background: #f4f9fc; }
.client-approval-form-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px; }
.client-approval-form-stack .work-report-field--wide { grid-column: auto; }
.client-approval-company-prompt { margin: 0; padding: 11px 12px; color: #70500b; background: #fff7df; border: 1px solid #f1d88b; border-radius: 9px; font-size: .75rem; font-weight: 750; line-height: 1.45; }
.has-company-combobox [data-approval-company] { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.client-approval-company-combobox { position: relative; display: block; min-width: 0; }
.client-approval-company-combobox__control { position: relative; display: block; }
.work-report-field .client-approval-company-combobox__control input { padding-right: 46px; }
.client-approval-company-combobox__control > button { position: absolute; top: 50%; right: 5px; display: inline-grid; width: 34px; height: 34px; padding: 0; place-items: center; color: #31536a; background: transparent; border: 0; border-radius: 8px; cursor: pointer; transform: translateY(-50%); }
.client-approval-company-combobox__control > button:hover { color: #075985; background: #e9f5fb; }
.client-approval-company-combobox__control > button:focus-visible { outline: 3px solid rgba(21,155,213,.24); outline-offset: 1px; }
.client-approval-company-combobox__control > button svg { width: 17px; height: 17px; transition: transform .16s ease; }
.client-approval-company-combobox__control > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.client-approval-company-combobox__options { position: absolute; z-index: 40; top: calc(100% + 6px); right: 0; left: 0; display: grid; max-height: 270px; padding: 6px; overflow-y: auto; background: #fff; border: 1px solid #b9ceda; border-radius: 11px; box-shadow: 0 18px 38px rgba(15,48,70,.18); }
.client-approval-company-combobox__options[hidden] { display: none; }
.client-approval-company-combobox__options > button { display: grid; gap: 3px; width: 100%; padding: 10px 11px; color: #17324a; text-align: left; background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
.client-approval-company-combobox__options > button:hover,
.client-approval-company-combobox__options > button.is-active { color: #075985; background: #e9f5fb; }
.client-approval-company-combobox__options > button[aria-selected="true"] { color: #075985; background: #dff2fb; }
.client-approval-company-combobox__options strong { font-size: .82rem; }
.client-approval-company-combobox__options small { color: #667d8d; font-size: .7rem; font-weight: 650; }
.client-approval-company-combobox__empty { padding: 12px 11px; color: #667d8d; font-size: .76rem; font-weight: 650; }
.client-approval-service-note { color: #586f80; font-size: .7rem; font-weight: 550; line-height: 1.5; }
.client-approval-form-section--service select:disabled { color: #718696; background: #edf3f6; cursor: not-allowed; }
.client-approval-form > [data-offer-fields] { display: grid; gap: 16px; padding-top: 22px; border-top: 1px solid #dbe7ed; }
.client-approval-form-actions { justify-content: flex-end; padding-top: 20px; border-top: 1px solid #dbe7ed; }
.client-offer-item { display: grid; gap: 14px; padding: 18px; border: 1px solid #dbe7ed; border-radius: 14px; background: #f8fbfc; }
.client-offer-item + .client-offer-item { margin-top: 14px; }
.client-offer-item__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.client-approval-detail-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .8fr); align-items: start; gap: 20px; }
.client-approval-copy { min-height: 116px; padding: 22px 24px 24px; color: #18394f; font-size: .95rem; line-height: 1.72; overflow-wrap: anywhere; }
.client-approval-internal { margin-top: 22px; padding: 16px; border-radius: 12px; background: #fff6d9; color: #664900; }
.client-approval-internal p { margin: 8px 0 0; }
.client-approval-copy + .client-approval-internal { margin: 0 24px 24px; }
.client-approval-summary dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 16px 22px 22px; }
.client-approval-summary dl div { display: grid; align-content: start; gap: 5px; min-width: 0; padding: 12px; border: 1px solid #dbe7ed; border-radius: 10px; background: #f8fbfc; }
.client-approval-summary dt { color: #607487; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.client-approval-summary dd { min-width: 0; margin: 0; color: #17324a; font-weight: 700; overflow-wrap: anywhere; }
.client-approval-summary__heading { display: flex; align-items: center; gap: 10px; }
.client-approval-summary__evidence-button { width: 36px !important; height: 36px; border-radius: 50%; }
.client-approval-summary__evidence-button svg { width: 19px; height: 19px; }
.client-approval-summary--has-decision dl { padding-bottom: 10px; }
.client-approval-decision-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 22px 22px; }
.client-approval-decision-card { display: grid; align-content: start; gap: 5px; min-width: 0; padding: 12px; border: 1px solid #dbe7ed; border-radius: 10px; color: #17324a; background: #f8fbfc; }
.client-approval-decision-card--actor { grid-column: 1 / -1; }
.client-approval-decision-card--statement { grid-column: 1 / -1; }
.client-approval-decision-card--statement p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.client-approval-decision-card > span { color: #607487; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.client-approval-decision-card > strong { font-size: .95rem; overflow-wrap: anywhere; }
.client-approval-decision-card > small { color: #526b7c; font-size: .75rem; font-weight: 650; overflow-wrap: anywhere; }
.client-approval-decision-grid--approved .client-approval-decision-card--outcome { color: #12613f; background: #ecf9f2; border-color: #9bd5b8; }
.client-approval-decision-grid--approved .client-approval-decision-card--outcome > span { color: #247555; }
.client-approval-decision-grid--declined .client-approval-decision-card--outcome { color: #9c2c2c; background: #fff1f1; border-color: #efb1b1; }
.client-approval-decision-grid--declined .client-approval-decision-card--outcome > span { color: #b13d3d; }
.client-approval-evidence__status { display: grid; gap: 4px; margin: 20px 22px 0; padding: 14px 16px; border: 1px solid; border-radius: 11px; }
.client-approval-evidence__status strong { font-size: .92rem; }
.client-approval-evidence__status span { font-size: .78rem; line-height: 1.55; }
.client-approval-evidence__status--valid { color: #12613f; background: #ecf9f2; border-color: #9bd5b8; }
.client-approval-evidence__status--invalid { color: #9c2c2c; background: #fff1f1; border-color: #efb1b1; }
.client-approval-evidence__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 16px 22px 22px; }
.client-approval-evidence__grid > div { display: grid; align-content: start; gap: 5px; min-width: 0; padding: 12px; border: 1px solid #dbe7ed; border-radius: 10px; background: #f8fbfc; }
.client-approval-evidence__grid dt { color: #607487; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.client-approval-evidence__grid dd { min-width: 0; margin: 0; color: #17324a; font-weight: 700; overflow-wrap: anywhere; }
.client-approval-evidence__grid code { color: inherit; font-size: .72rem; word-break: break-all; }
.client-approval-evidence__grid small { color: #526b7c; font-weight: 650; }
.client-approval-evidence__wide { grid-column: 1 / -1; }
.client-approval-evidence-dialog { width: min(940px, calc(100vw - 32px)); overflow: auto; }
.client-approval-evidence-dialog .admin-panel__header { align-items: flex-start; padding: 0 24px 18px; }
.client-approval-evidence-dialog .admin-panel__header .admin-kicker { margin-bottom: 7px; }
.client-approval-evidence-dialog .admin-alert { margin: 0 24px 24px; }
.client-approval-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 20px 22px 0; }
.client-approval-metrics article { display: grid; gap: 5px; padding: 16px; border: 1px solid #dbe7ed; border-radius: 12px; background: #f8fbfc; }
.client-approval-metrics span { color: #607487; font-size: .78rem; font-weight: 750; }
.client-approval-metrics strong { color: #0d3652; font-size: 1.35rem; }
.client-approval-context { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0; padding: 16px 22px 22px; color: #526b7c; font-size: .9rem; }
.client-approval-context strong { color: #17324a; }
.client-approval-tariff { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; }
.client-approval-tariff i { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--tariff-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tariff-color) 18%, transparent); }
.client-approval-entry-workspace { display: grid; gap: 16px; margin: 0 22px 22px; padding-top: 20px; border-top: 1px solid #dbe7ed; }
.client-approval-entry-workspace h3 { margin: 0; color: #17324a; font-size: 1rem; }
.client-approval-entry-workspace > div > p { margin: 5px 0 0; color: #526b7c; font-size: .82rem; }
.client-approval-entry-form { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; }
.client-approval-work-entry { min-width: 0; padding: 16px; border: 1px solid #dbe7ed; border-radius: 10px; overflow-wrap: anywhere; }
.client-approval-work-entry__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.client-approval-work-entry__header > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; }
.client-approval-work-entry__header svg { width: 18px; height: 18px; min-width: 18px; max-width: 18px; }
.client-approval-work-entry p { margin: 8px 0 0; }
.client-approval-work-entry__description { white-space: pre-wrap; }
.client-approval-work-entry details { margin-top: 12px; }
.client-approval-work-entry summary { cursor: pointer; font-weight: 700; }
.client-approval-work-entry details[open] summary { margin-bottom: 16px; }
html[data-backoffice-theme-resolved="dark"] .client-approval-work-entry { border-color: #35576d; }
.client-approval-status-form { display: flex; flex-wrap: wrap; gap: 10px; }
.client-approval-status-form select { min-width: 220px; min-height: 44px; padding: 9px 12px; color: #17324a; background: #fff; border: 1px solid #b9ceda; border-radius: 10px; font: inherit; }
.client-approval-status-form select:focus { border-color: #159bd5; box-shadow: 0 0 0 3px rgba(21,155,213,.14); outline: none; }
.client-approval-summary__status { display: grid; gap: 10px; }
.client-approval-summary__work-status { margin: 0 22px 22px; padding: 12px; border: 1px solid #dbe7ed; border-radius: 10px; background: #f8fbfc; }
.client-approval-summary__status-form { display: grid; width: 100%; gap: 8px; }
.client-approval-summary__status-form label { color: #607487; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.client-approval-summary__status-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; gap: 10px; min-width: 0; }
.client-approval-summary__status-form select { width: 100%; min-width: 0; }
.client-approval-summary__status-form .admin-button { width: auto; min-height: 44px; white-space: nowrap; }
.client-approval-offer-table { min-width: 980px; table-layout: auto; }
.client-approval-offer-table th:first-child,
.client-approval-offer-table td:first-child { width: 42%; min-width: 320px; }
.client-approval-offer-table th:not(:first-child),
.client-approval-offer-table td:not(:first-child) { white-space: nowrap; }
.client-approval-offer-table td:first-child small { white-space: normal; }
.client-approval-send-dialog { width: min(700px, calc(100vw - 32px)); overflow: auto; }
.client-approval-send-dialog__form { display: grid; gap: 20px; }
.client-approval-send-dialog__header { padding: 0 24px; }
.client-approval-send-dialog__header h2 { margin: 0; color: #17324a; }
.client-approval-send-dialog__header > p:last-child { margin: 8px 0 0; color: #526b7c; line-height: 1.55; }
.client-approval-send-dialog__summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0 24px; }
.client-approval-send-dialog__summary div { display: grid; gap: 5px; min-width: 0; padding: 13px 14px; border: 1px solid #dbe7ed; border-radius: 10px; background: #f8fbfc; }
.client-approval-send-dialog__summary dt { color: #607487; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.client-approval-send-dialog__summary dd { margin: 0; color: #17324a; font-weight: 750; overflow-wrap: anywhere; }
.client-approval-send-dialog__recipients { grid-column: 1 / -1; }
.client-approval-send-dialog__actions { display: flex; justify-content: flex-end; gap: 10px; padding: 0 24px 22px; }
.client-approval-entry-completion-dialog { width: min(680px, calc(100vw - 32px)); overflow: auto; }
.client-approval-entry-completion-dialog__form { display: grid; gap: 18px; min-width: 0; }
.client-approval-entry-completion-dialog__header { padding: 0 24px; }
.client-approval-entry-completion-dialog__header h2 { margin: 0; color: #17324a; }
.client-approval-entry-completion-dialog__header > p:last-child { margin: 8px 0 0; color: #526b7c; line-height: 1.55; }
.client-approval-entry-completion-dialog__notice { margin: 0 24px; padding: 13px 15px; color: #526b7c; background: #f5f9fb; border: 1px solid #dbe7ed; border-radius: 10px; font-size: .82rem; line-height: 1.55; }
.client-approval-entry-completion-dialog__actions { display: flex; justify-content: flex-end; gap: 10px; padding: 0 24px 22px; }
.client-approval-delete-dialog { width: min(640px, calc(100vw - 32px)); overflow: auto; }
.client-approval-delete-dialog__form { display: grid; gap: 18px; min-width: 0; }
.client-approval-delete-dialog__header { padding: 0 24px; }
.client-approval-delete-dialog__header h2 { margin: 0; color: #17324a; }
.client-approval-delete-dialog__header > p:last-child { margin: 8px 0 0; color: #526b7c; font-size: .88rem; line-height: 1.55; }
.client-approval-delete-dialog__summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0 24px; }
.client-approval-delete-dialog__summary div { display: grid; gap: 5px; min-width: 0; padding: 13px 14px; border: 1px solid #dbe7ed; border-radius: 10px; background: #f8fbfc; }
.client-approval-delete-dialog__summary dt { color: #607487; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.client-approval-delete-dialog__summary dd { margin: 0; color: #17324a; font-weight: 750; overflow-wrap: anywhere; }
.client-approval-delete-dialog__title { grid-column: 1 / -1; }
.client-approval-delete-dialog__notice { margin: 0 24px; padding: 13px 15px; color: #526b7c; background: #f5f9fb; border: 1px solid #dbe7ed; border-radius: 10px; font-size: .8rem; line-height: 1.55; }
.client-approval-delete-dialog__notice.has-linked-entries { color: #7a4c00; background: #fff8e7; border-color: #e7be63; }
.client-approval-delete-dialog__actions { display: flex; justify-content: flex-end; gap: 10px; padding: 0 24px 22px; }
.work-report-package-overview { display: flex; align-items: flex-start; gap: 18px; padding: 14px 16px; border: 1px solid #b7d9ea; border-radius: 13px; background: #f3faff; }
.work-report-package-overview__heading { display: grid; flex: 0 0 150px; gap: 3px; color: #17324a; }
.work-report-package-overview__heading span { font-size: .76rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.work-report-package-overview__heading small { color: #526b7c; }
.work-report-package-overview__items { display: grid; flex: 1; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 8px; }
.work-report-package-overview article { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 9px; padding: 10px 11px; border: 1px solid #d5e4ec; border-radius: 10px; color: #17324a; background: #fff; }
.work-report-package-overview article > i { width: 10px; height: 10px; border-radius: 50%; background: var(--tariff-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tariff-color) 18%, transparent); }
.work-report-package-overview article strong, .work-report-package-overview article small { display: block; }
.work-report-package-overview article small { margin-top: 2px; color: #526b7c; font-size: .7rem; }
.work-report-package-overview .work-report-pool-tariffs > span { display: inline-flex; align-items: center; gap: 4px; margin-right: 7px; }
.work-report-package-overview .work-report-pool-tariffs i { width: 7px; height: 7px; border-radius: 50%; background: var(--tariff-color); }
.work-report-package-overview article.is-over { border-color: #e6b7ae; background: #fff6f4; }
.work-report-tariff-summary { display: grid; gap: 9px; padding: 0 24px 24px; }
.work-report-tariff-summary article { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid #dbe7ed; border-radius: 10px; color: #17324a; }
.work-report-tariff-summary article small { display: block; margin-top: 2px; color: #586f80; }
.work-report-employee-summary th:nth-child(3),
.work-report-employee-summary td:nth-child(3) { width: 85px; text-align: right; white-space: nowrap; }
.work-report-employee-summary th:nth-child(4),
.work-report-employee-summary td:nth-child(4) { width: 120px; text-align: right; white-space: nowrap; }
.work-report-employee-tariffs { display: grid; min-width: 240px; gap: 6px; }
.work-report-employee-tariffs > span { display: grid; grid-template-columns: auto minmax(110px, 1fr) auto; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid #dbe7ed; border-radius: 8px; color: #17324a; background: #f6fbfe; }
.work-report-employee-tariffs i { width: 9px; height: 9px; border-radius: 50%; background: var(--tariff-color); }
.work-report-employee-tariffs b { font-size: .75rem; white-space: normal; }
.work-report-employee-tariffs strong { font-size: .75rem; white-space: nowrap; }
.work-report-employee-summary tfoot th { border-top: 2px solid #b9ceda; color: #17324a; background: #edf6fb; }
.work-report-employee-summary tfoot th:nth-last-child(-n + 2) { text-align: right; white-space: nowrap; }
.work-report-economy { border-color: #9bcfe7; }
.work-report-private-badge { display: inline-flex; align-items: center; padding: 7px 10px; border: 1px solid #e7be63; border-radius: 999px; color: #654400; background: #fff5d8; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.work-report-economy-form { padding-bottom: 24px; }
.work-report-economy-settings { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 16px; padding: 0 24px 20px; }
.work-report-rate-matrix-wrap { margin: 0 24px; border: 1px solid #dbe7ed; border-radius: 12px; }
.work-report-rate-matrix th:not(:first-child),
.work-report-rate-matrix td:not(:first-child) { min-width: 170px; text-align: center; }
.work-report-rate-matrix td:first-child { min-width: 210px; }
.work-report-rate-matrix td:first-child small,
.work-report-rate-matrix th small { display: block; margin-top: 3px; color: #586f80; }
.work-report-rate-matrix input { width: 110px; min-height: 38px; padding: 8px 10px; border: 1px solid #b9ceda; border-radius: 9px; color: #17324a; background: #fff; font: inherit; font-weight: 700; text-align: right; }
.work-report-rate-matrix input:focus { border-color: #159bd5; box-shadow: 0 0 0 3px rgba(21,155,213,.14); outline: none; }
.work-report-rate-heading { display: inline-flex; align-items: center; gap: 7px; }
.work-report-rate-heading i { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--tariff-color); }
.work-report-economy-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px 0; }
.work-report-economy-actions p { margin: 0; color: #586f80; font-size: .76rem; }
.work-report-economy-history-heading { margin-top: 8px; border-top: 1px solid #dbe7ed; }
.work-report-economy-history-heading h3,
.work-report-economy-breakdown h3 { margin: 0; color: #17324a; }
.work-report-economy-warning { display: grid; gap: 4px; margin: 0 24px 18px; padding: 12px 14px; border: 1px solid #e7be63; border-radius: 10px; color: #654400; background: #fff8e7; }
.work-report-economy-warning span { font-size: .78rem; }
.work-report-report-price-form { display: flex; align-items: end; gap: 12px; padding: 0 24px 20px; }
.work-report-report-price-form .work-report-field { width: min(480px, 100%); }
.work-report-report-price-form--tariffs { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); align-items: end; }
.work-report-report-price-form--tariffs .work-report-field { width: 100%; }
.work-report-economy-stats { padding-top: 0; }
.work-report-economy-breakdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 0 24px 24px; }
.work-report-economy-breakdown > div { min-width: 0; }
.work-report-economy-breakdown h3 { margin-bottom: 12px; }
.work-report-economy-missing { display: block; margin-top: 4px; color: #8a5b00; font-size: .68rem; font-weight: 800; }
.work-report-edit-dialog { width: min(860px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid #b9ceda; border-radius: 18px; color: #17324a; background: #fff; box-shadow: 0 30px 90px rgba(5,31,48,.3); }
.work-report-edit-dialog::backdrop { background: rgba(3,20,33,.68); backdrop-filter: blur(3px); }
.work-report-edit-dialog.client-approval-missing-entry-dialog { width: min(740px, calc(100vw - 32px)); }
.client-approval-missing-entry-dialog .client-approval-entry-completion-dialog__header h2 { font-size: 1.2rem; font-weight: 850; line-height: 1.35; }
.client-approval-missing-entry-dialog .work-report-dialog-close button { width: 44px; height: 44px; }
.client-approval-missing-entry-dialog .client-approval-entry-completion-dialog__actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.client-approval-missing-entry-dialog .client-approval-entry-completion-dialog__actions .admin-button { width: 100%; min-height: 44px; white-space: normal; }
.client-approval-missing-entry-dialog .client-approval-entry-completion-dialog__actions:not(:has([data-client-approval-missing-entry-add])) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) {
  .client-approval-missing-entry-dialog .client-approval-entry-completion-dialog__actions,
  .client-approval-missing-entry-dialog .client-approval-entry-completion-dialog__actions:not(:has([data-client-approval-missing-entry-add])) { grid-template-columns: minmax(0, 1fr); }
}
.client-approval-missing-entry-dialog .client-approval-entry-completion-dialog__header > p:last-child,
.client-approval-missing-entry-dialog .client-approval-entry-completion-dialog__notice { color: #17324a; }
.client-approval-missing-entry-dialog .client-approval-entry-completion-dialog__notice p { margin: 8px 0 0; }
.client-approval-missing-entry-fallback { display: grid; gap: 12px; margin-top: 12px; }
.client-approval-missing-entry-fallback p { margin: 0; }
.work-report-edit-dialog .work-report-entry-form { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 8px; }
.work-report-edit-dialog header { grid-column: 1 / -1; }
.work-report-edit-dialog h2 { margin: 0; color: #17324a; }
.work-report-dialog-close { display: flex; justify-content: flex-end; padding: 10px 12px 0; }
.work-report-dialog-close button { width: 36px; height: 36px; border: 0; border-radius: 50%; color: #17324a; background: #edf6fb; font-size: 1.5rem; cursor: pointer; }
.work-report-assignment-dialog { width: min(780px, calc(100vw - 32px)); overflow: auto; }
.admin-body dialog.work-report-assignment-dialog[open],
.admin-body dialog.work-report-archive-dialog[open] { position: fixed; inset: auto; top: 50%; left: 50%; max-height: calc(100dvh - 32px); margin: 0; transform: translate(-50%, -50%); }
.work-report-assignment-form,
.work-report-assigned-users { display: grid; min-width: 0; }
.work-report-assignment-dialog__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; padding: 0 24px 18px; }
.work-report-assignment-dialog__header > div { min-width: 0; }
.work-report-assignment-dialog__header p:not(.admin-kicker) { max-width: 580px; margin: 8px 0 0; color: #526b7c; font-size: .86rem; line-height: 1.55; }
.work-report-assignment-dialog__header > strong { flex: 0 0 auto; padding: 8px 11px; border: 1px solid #b7d9ea; border-radius: 999px; color: #075f8b; background: #eef9ff; font-size: .78rem; white-space: nowrap; }
.work-report-assignment-search { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 0 24px 16px; }
.work-report-assignment-search label { display: grid; flex: 1 1 420px; gap: 6px; min-width: 0; color: #526b7c; font-size: .72rem; font-weight: 850; }
.work-report-assignment-search input { width: 100%; min-height: 44px; padding: 10px 13px; border: 1px solid #b9ceda; border-radius: 10px; color: #17324a; background: #fff; font: inherit; }
.work-report-assignment-search input:focus { border-color: #159bd5; box-shadow: 0 0 0 3px rgba(21,155,213,.14); outline: none; }
.work-report-assignment-search > span { flex: 0 0 auto; padding-bottom: 11px; color: #526b7c; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.work-report-assignment-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-height: min(54vh, 500px); padding: 18px 24px; overflow: auto; border-top: 1px solid #dce8ee; border-bottom: 1px solid #dce8ee; background: #f6fafc; }
.work-report-assignment-list > .admin-empty { grid-column: 1 / -1; }
.work-report-assignment-no-results[hidden],
.work-report-assignment-list .work-report-user-card[hidden] { display: none; }
.work-report-assignment-list .work-report-user-card { min-width: 0; margin: 0; cursor: pointer; }
.work-report-assignment-list .work-report-user-card:has(input:checked) { border-color: #159bd5; background: #eaf7fe; box-shadow: inset 0 0 0 1px rgba(21,155,213,.14); }
.work-report-assignment-list .work-report-user-card > span:not(.admin-status):not(.work-report-user-avatar) { min-width: 0; }
.work-report-assignment-list .work-report-user-card strong,
.work-report-assignment-list .work-report-user-card small { overflow-wrap: anywhere; }
.work-report-user-card--readonly { cursor: default !important; }
.work-report-user-card--readonly .admin-status { margin-left: auto; }
.work-report-user-avatar { display: inline-grid; place-items: center; flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #0057ff, #159bd5); font-size: .9rem; font-weight: 900; }
.work-report-assignment-dialog__actions { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px 20px; }
.work-report-tariff-dialog { width: min(760px, calc(100vw - 32px)); overflow: auto; }
.work-report-tariff-dialog__form { display: grid; min-width: 0; }
.work-report-tariff-dialog__header { padding: 0 24px 20px; }
.work-report-tariff-dialog__header p:not(.admin-kicker) { max-width: 620px; margin: 8px 0 0; color: #526b7c; font-size: .86rem; line-height: 1.55; }
.work-report-tariff-dialog__errors { margin: 0 24px 20px; }
.work-report-tariff-dialog__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 20px; border-top: 1px solid #dce8ee; border-bottom: 1px solid #dce8ee; background: #f6fafc; }
.work-report-tariff-dialog__actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 24px 20px; }
.work-report-tariff-dialog__actions .work-report-inline-checks { justify-content: flex-start; margin: 0; }
.work-report-tariff-dialog__buttons { display: flex; flex: 0 0 auto; gap: 10px; }
.work-report-tariff-dialog__empty { grid-column: 1 / -1; }
.work-report-archive .admin-table__actions { flex-wrap: nowrap; }
.work-report-archive .admin-icon-button svg { display: block; width: 18px; height: 18px; }
.work-report-archive-dialog { width: min(620px, calc(100vw - 32px)); overflow: auto; }
.work-report-archive-dialog__form { display: grid; gap: 18px; padding: 0 24px 24px; }
.work-report-archive-dialog__form header { display: grid; gap: 6px; }
.work-report-archive-dialog__form header p { margin: 0; color: #526b7c; line-height: 1.55; }
.work-report-archive-dialog__form header p:last-child { font-size: .88rem; }
.work-report-archive-dialog__notice { display: grid; gap: 5px; padding: 13px 15px; color: #17405b; background: #eef8fd; border: 1px solid #c4dfec; border-radius: 10px; }
.work-report-archive-dialog__notice strong { color: #0d5279; font-size: .88rem; }
.work-report-archive-dialog__notice span { font-size: .8rem; line-height: 1.5; }
.work-report-archive-dialog__actions { display: flex; justify-content: flex-end; gap: 10px; }

.employee-cost-rates { margin-top: 20px; }
.employee-cost-rates__form { display: grid; }
.employee-cost-rates__effective { width: min(420px, 100%); padding: 20px 24px 0; }
.employee-cost-rates__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 20px 24px; }
.employee-cost-rate-card { display: grid; gap: 9px; min-width: 0; padding: 15px; border: 1px solid #d5e4ec; border-top: 4px solid var(--tariff-color); border-radius: 12px; color: #17324a; background: #fafdff; font-size: .74rem; font-weight: 750; }
.employee-cost-rate-card__title { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 3px 9px; }
.employee-cost-rate-card__title i { grid-row: 1 / 3; width: 10px; height: 10px; border-radius: 50%; background: var(--tariff-color); }
.employee-cost-rate-card__title strong { overflow-wrap: anywhere; font-size: .82rem; }
.employee-cost-rate-card__title small { color: #526b7c; font-size: .68rem; font-weight: 600; }
.employee-cost-rate-card input[type="number"] { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #b9ceda; border-radius: 10px; color: #17324a; background: #fff; font: inherit; }
.employee-cost-rate-card input[type="number"]:focus { border-color: #159bd5; box-shadow: 0 0 0 3px rgba(21,155,213,.14); outline: none; }
.employee-cost-rate-card--no-cost { border-color: #3b9a70; background: #f0fbf5; }
.employee-cost-rate-card__no-cost { display: flex; align-items: flex-start; gap: 9px; margin-top: 2px; padding: 10px; border: 1px solid #bddfce; border-radius: 10px; background: #fff; cursor: pointer; }
.employee-cost-rate-card__no-cost input { flex: 0 0 auto; width: 17px; height: 17px; margin: 1px 0 0; accent-color: #13865b; }
.employee-cost-rate-card__no-cost span { display: grid; gap: 2px; min-width: 0; }
.employee-cost-rate-card__no-cost strong { color: #126343; font-size: .75rem; }
.employee-cost-rate-card__no-cost small { color: #526b7c; font-size: .67rem; font-weight: 600; line-height: 1.4; }
.employee-cost-rate-card--no-cost input[type="number"] { color: #6a7d88; background: #e7f0ec; }
.employee-cost-rates__actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 24px 22px; }
.employee-cost-rates__actions p { margin: 0; color: #526b7c; font-size: .76rem; }
.employee-cost-rates__history-heading { border-top: 1px solid #dbe7ed; }
.employee-cost-rates__history-heading h3 { margin: 0; color: #17324a; }

html[data-backoffice-theme-resolved="dark"] .work-reports-admin,
html[data-backoffice-theme-resolved="dark"] .work-report-filters label,
html[data-backoffice-theme-resolved="dark"] .work-report-create-period label,
html[data-backoffice-theme-resolved="dark"] .work-report-reopen label,
html[data-backoffice-theme-resolved="dark"] .work-report-field,
html[data-backoffice-theme-resolved="dark"] .work-report-check,
html[data-backoffice-theme-resolved="dark"] .work-report-inline-checks label,
html[data-backoffice-theme-resolved="dark"] .work-report-user-card,
html[data-backoffice-theme-resolved="dark"] .work-report-tariff-card__heading,
html[data-backoffice-theme-resolved="dark"] .work-report-package-card,
html[data-backoffice-theme-resolved="dark"] .work-report-pool-card,
html[data-backoffice-theme-resolved="dark"] .work-report-pool-card__heading,
html[data-backoffice-theme-resolved="dark"] .work-report-pool-section__heading h3,
html[data-backoffice-theme-resolved="dark"] .work-report-apply-open,
html[data-backoffice-theme-resolved="dark"] .work-report-package-overview,
html[data-backoffice-theme-resolved="dark"] .work-report-package-overview__heading,
html[data-backoffice-theme-resolved="dark"] .work-report-package-overview article,
html[data-backoffice-theme-resolved="dark"] .work-report-allowance-mode-note,
html[data-backoffice-theme-resolved="dark"] .work-report-tariff-summary article,
html[data-backoffice-theme-resolved="dark"] .work-report-duration strong { color: #dceaf3; }

html[data-backoffice-theme-resolved="dark"] .work-report-tabs,
html[data-backoffice-theme-resolved="dark"] .work-report-tariff-card,
html[data-backoffice-theme-resolved="dark"] .work-report-package-card,
html[data-backoffice-theme-resolved="dark"] .work-report-pool-card,
html[data-backoffice-theme-resolved="dark"] .work-report-package-overview,
html[data-backoffice-theme-resolved="dark"] .work-report-package-overview article,
html[data-backoffice-theme-resolved="dark"] .work-report-allowance-mode-note,
html[data-backoffice-theme-resolved="dark"] .work-report-user-card,
html[data-backoffice-theme-resolved="dark"] .work-report-tariff-summary article,
html[data-backoffice-theme-resolved="dark"] .work-report-edit-dialog { color: #dceaf3; background: #0f2536; border-color: #35576d; }

html[data-backoffice-theme-resolved="dark"] .work-report-tabs a,
html[data-backoffice-theme-resolved="dark"] .work-report-edit-dialog h2 { color: #f0f7fb; }

html[data-backoffice-theme-resolved="dark"] .work-report-tabs a:hover,
html[data-backoffice-theme-resolved="dark"] .work-report-tabs a:focus-visible { color: #8ed6ff; background: #173e57; }

html[data-backoffice-theme-resolved="dark"] .work-report-stop-alert {
  color: #fff;
  background: linear-gradient(120deg, #610606 0%, #8f0b0b 48%, #4c0303 100%);
  border-color: #ff6b6b;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .46), 0 0 0 5px rgba(255, 107, 107, .13);
}

html[data-backoffice-theme-resolved="dark"] .work-report-entry-filters { border-bottom-color: #35576d; }
html[data-backoffice-theme-resolved="dark"] .work-report-entry-filter-status { color: #dceaf3; }

html[data-backoffice-theme-resolved="dark"] .work-report-filters input,
html[data-backoffice-theme-resolved="dark"] .work-report-filters select,
html[data-backoffice-theme-resolved="dark"] .work-report-create-period input,
html[data-backoffice-theme-resolved="dark"] .work-report-create-period select,
html[data-backoffice-theme-resolved="dark"] .work-report-reopen input,
html[data-backoffice-theme-resolved="dark"] .work-report-field input,
html[data-backoffice-theme-resolved="dark"] .work-report-field select,
html[data-backoffice-theme-resolved="dark"] .work-report-field textarea { color: #f0f7fb; background: #0b1d2b; border-color: #45677f; }

html[data-backoffice-theme-resolved="dark"] .work-report-employee-tariffs > span { color: #dceaf3; background: #142d3f; border-color: #45677f; }
html[data-backoffice-theme-resolved="dark"] .work-report-employee-summary tfoot th { color: #f0f7fb; background: #173247; border-top-color: #45677f; }
html[data-backoffice-theme-resolved="dark"] .work-report-economy { border-color: #45677f; }
html[data-backoffice-theme-resolved="dark"] .work-report-private-badge { color: #ffe8a6; background: #4a370d; border-color: #9a7521; }
html[data-backoffice-theme-resolved="dark"] .work-report-rate-matrix-wrap,
html[data-backoffice-theme-resolved="dark"] .work-report-economy-history-heading { border-color: #45677f; }
html[data-backoffice-theme-resolved="dark"] .work-report-rate-matrix input { color: #f0f7fb; background: #0b1d2b; border-color: #45677f; }
html[data-backoffice-theme-resolved="dark"] .work-report-rate-matrix td:first-child small,
html[data-backoffice-theme-resolved="dark"] .work-report-rate-matrix th small,
html[data-backoffice-theme-resolved="dark"] .work-report-economy-actions p { color: #dceaf3; }
html[data-backoffice-theme-resolved="dark"] .work-report-economy-history-heading h3,
html[data-backoffice-theme-resolved="dark"] .work-report-economy-breakdown h3 { color: #f0f7fb; }
html[data-backoffice-theme-resolved="dark"] .work-report-economy-warning { color: #ffe8a6; background: #3f310f; border-color: #8d6d24; }
html[data-backoffice-theme-resolved="dark"] .work-report-economy-missing { color: #ffe09a; }
html[data-backoffice-theme-resolved="dark"] .work-report-assignment-dialog__header p:not(.admin-kicker) { color: #dceaf3; }
html[data-backoffice-theme-resolved="dark"] .work-report-assignment-dialog__header > strong { color: #dff5ff; background: #07517a; border-color: #3c7898; }
html[data-backoffice-theme-resolved="dark"] .work-report-assignment-search label,
html[data-backoffice-theme-resolved="dark"] .work-report-assignment-search > span { color: #dceaf3; }
html[data-backoffice-theme-resolved="dark"] .work-report-assignment-search input { color: #f0f7fb; background: #0b1d2b; border-color: #45677f; }
html[data-backoffice-theme-resolved="dark"] .work-report-assignment-list { background: #0b1d2b; border-color: #35576d; }
html[data-backoffice-theme-resolved="dark"] .work-report-assignment-list .work-report-user-card:has(input:checked) { color: #f0f7fb; background: #173e57; border-color: #65c7f3; }
html[data-backoffice-theme-resolved="dark"] .work-report-tariff-dialog__header p:not(.admin-kicker) { color: #dceaf3; }
html[data-backoffice-theme-resolved="dark"] .work-report-tariff-dialog__fields { background: #0b1d2b; border-color: #35576d; }
html[data-backoffice-theme-resolved="dark"] .work-report-global-source span,
html[data-backoffice-theme-resolved="dark"] .employee-cost-rate-card { color: #f0f7fb; background: #142d3f; border-color: #45677f; }
html[data-backoffice-theme-resolved="dark"] .work-report-global-source b,
html[data-backoffice-theme-resolved="dark"] .work-report-global-tariff-card__footer,
html[data-backoffice-theme-resolved="dark"] .employee-cost-rate-card__title small,
html[data-backoffice-theme-resolved="dark"] .employee-cost-rates__actions p { color: #dceaf3; }
html[data-backoffice-theme-resolved="dark"] .employee-cost-rate-card input[type="number"] { color: #f0f7fb; background: #0b1d2b; border-color: #45677f; }
html[data-backoffice-theme-resolved="dark"] .employee-cost-rate-card--no-cost { border-color: #46b886; background: #12382e; }
html[data-backoffice-theme-resolved="dark"] .employee-cost-rate-card__no-cost { background: #0b251e; border-color: #36765d; }
html[data-backoffice-theme-resolved="dark"] .employee-cost-rate-card__no-cost strong { color: #8be7bb; }
html[data-backoffice-theme-resolved="dark"] .employee-cost-rate-card__no-cost small { color: #dceaf3; }
html[data-backoffice-theme-resolved="dark"] .employee-cost-rate-card--no-cost input[type="number"] { color: #91a8b5; background: #102a24; }
html[data-backoffice-theme-resolved="dark"] .employee-cost-rates__history-heading h3 { color: #f0f7fb; }
html[data-backoffice-theme-resolved="dark"] .work-report-color-validation { color: #ffd0cb; }
html[data-backoffice-theme-resolved="dark"] .work-report-employee-name { color: #f0f7fb; }
html[data-backoffice-theme-resolved="dark"] .work-report-employee-name > i { border-color: #0f2536; }
html[data-backoffice-theme-resolved="dark"] .work-report-package-overview__heading small,
html[data-backoffice-theme-resolved="dark"] .work-report-package-overview article small,
html[data-backoffice-theme-resolved="dark"] .work-report-allowance-mode-note small { color: #dceaf3; }
html[data-backoffice-theme-resolved="dark"] .work-report-package-overview article.is-over { color: #ffe3dc; background: #45231f; border-color: #8f5146; }
html[data-backoffice-theme-resolved="dark"] .work-report-field input[readonly] { color: #dceaf3; background: #173247; }
html[data-backoffice-theme-resolved="dark"] .work-report-company-table td small,
html[data-backoffice-theme-resolved="dark"] .work-report-duration small,
html[data-backoffice-theme-resolved="dark"] .work-report-user-card small,
html[data-backoffice-theme-resolved="dark"] .work-report-tariff-summary article small,
html[data-backoffice-theme-resolved="dark"] .work-report-field > small { color: #dceaf3; }
html[data-backoffice-theme-resolved="dark"] .work-report-contacts__heading h3,
html[data-backoffice-theme-resolved="dark"] .work-report-rules-heading h3,
html[data-backoffice-theme-resolved="dark"] .work-report-contact-card__heading > strong { color: #f0f7fb; }
html[data-backoffice-theme-resolved="dark"] .work-report-contacts__heading p,
html[data-backoffice-theme-resolved="dark"] .work-report-rules-heading p { color: #c2d3df; }
html[data-backoffice-theme-resolved="dark"] .work-report-contact-mail-note { color: #dceaf3; background: #102b3e; border-color: #3c6982; }
html[data-backoffice-theme-resolved="dark"] .work-report-contact-mail-note strong { color: #74d1ff; }
html[data-backoffice-theme-resolved="dark"] .work-report-contact-card { background: #102535; border-color: #35576d; }
html[data-backoffice-theme-resolved="dark"] .work-report-contact-mail-toggle { background: #0b1d2b; border-color: #35576d; }
html[data-backoffice-theme-resolved="dark"] .work-report-email-action { background: #102535; border-color: #35576d; }
html[data-backoffice-theme-resolved="dark"] .work-report-email-action small { color: #c2d3df; }
html[data-backoffice-theme-resolved="dark"] .work-report-rules-heading { border-top-color: #35576d; }
html[data-backoffice-theme-resolved="dark"] .work-report-pool-section__heading--tariffs { border-top-color: #35576d; }
html[data-backoffice-theme-resolved="dark"] .work-report-pool-section__heading p,
html[data-backoffice-theme-resolved="dark"] .work-report-pool-members,
html[data-backoffice-theme-resolved="dark"] .work-report-apply-open small { color: #dceaf3; }
html[data-backoffice-theme-resolved="dark"] .work-report-dialog-close button { color: #f0f7fb; background: #173247; }
html[data-backoffice-theme-resolved="dark"] .work-report-archive-dialog__form header p { color: #dceaf3; }
html[data-backoffice-theme-resolved="dark"] .work-report-archive-dialog__notice { color: #dceaf3; background: #102b3e; border-color: #3c6982; }
html[data-backoffice-theme-resolved="dark"] .work-report-archive-dialog__notice strong { color: #74d1ff; }
html[data-backoffice-theme-resolved="dark"] .work-report-entry-table tr:target > td { background: #4b3814; box-shadow: inset 0 2px #f2bd61, inset 0 -2px #f2bd61; }
html[data-backoffice-theme-resolved="dark"] .client-approval-form > [data-offer-fields],
html[data-backoffice-theme-resolved="dark"] .client-approval-form-actions,
html[data-backoffice-theme-resolved="dark"] .client-approval-summary dl div { border-color: #35576d; }
html[data-backoffice-theme-resolved="dark"] .client-approval-form-section { background: #132b3b; border-color: #35576d; }
html[data-backoffice-theme-resolved="dark"] .client-approval-form-section > .admin-panel__header { background: #173247; border-color: #35576d; }
html[data-backoffice-theme-resolved="dark"] .client-approval-company-prompt { color: #f5d385; background: #382f18; border-color: #6a5728; }
html[data-backoffice-theme-resolved="dark"] .client-approval-company-combobox__control > button { color: #c7dce9; }
html[data-backoffice-theme-resolved="dark"] .client-approval-company-combobox__control > button:hover { color: #9edfff; background: #173e57; }
html[data-backoffice-theme-resolved="dark"] .client-approval-company-combobox__options { background: #0b1d2b; border-color: #45677f; box-shadow: 0 18px 38px rgba(0,0,0,.44); }
html[data-backoffice-theme-resolved="dark"] .client-approval-company-combobox__options > button { color: #f0f7fb; }
html[data-backoffice-theme-resolved="dark"] .client-approval-company-combobox__options > button:hover,
html[data-backoffice-theme-resolved="dark"] .client-approval-company-combobox__options > button.is-active { color: #bdeaff; background: #173e57; }
html[data-backoffice-theme-resolved="dark"] .client-approval-company-combobox__options > button[aria-selected="true"] { color: #dff5ff; background: #155071; }
html[data-backoffice-theme-resolved="dark"] .client-approval-company-combobox__options small,
html[data-backoffice-theme-resolved="dark"] .client-approval-company-combobox__empty { color: #bfd0dc; }
html[data-backoffice-theme-resolved="dark"] .client-approval-service-note { color: #bfd0dc; }
html[data-backoffice-theme-resolved="dark"] .client-approval-form-section--service select:disabled { color: #91a5b3; background: #172b38; border-color: #35576d; }
html[data-backoffice-theme-resolved="dark"] .client-offer-item,
html[data-backoffice-theme-resolved="dark"] .client-approval-summary dl div,
html[data-backoffice-theme-resolved="dark"] .client-approval-decision-card,
html[data-backoffice-theme-resolved="dark"] .client-approval-metrics article,
html[data-backoffice-theme-resolved="dark"] .client-approval-send-dialog__summary div,
html[data-backoffice-theme-resolved="dark"] .client-approval-delete-dialog__summary div { background: #213441; border-color: #35576d; }
html[data-backoffice-theme-resolved="dark"] .client-approval-evidence__grid > div { background: #213441; border-color: #35576d; }
html[data-backoffice-theme-resolved="dark"] .client-approval-copy,
html[data-backoffice-theme-resolved="dark"] .client-approval-summary dd,
html[data-backoffice-theme-resolved="dark"] .client-approval-decision-card,
html[data-backoffice-theme-resolved="dark"] .client-approval-metrics strong,
html[data-backoffice-theme-resolved="dark"] .client-approval-context strong,
html[data-backoffice-theme-resolved="dark"] .client-approval-entry-workspace h3,
html[data-backoffice-theme-resolved="dark"] .client-approval-send-dialog__header h2,
html[data-backoffice-theme-resolved="dark"] .client-approval-send-dialog__summary dd,
html[data-backoffice-theme-resolved="dark"] .client-approval-entry-completion-dialog__header h2,
html[data-backoffice-theme-resolved="dark"] .client-approval-delete-dialog__header h2,
html[data-backoffice-theme-resolved="dark"] .client-approval-delete-dialog__summary dd { color: #eef6fb; }
html[data-backoffice-theme-resolved="dark"] .client-approval-evidence__grid dd { color: #eef6fb; }
html[data-backoffice-theme-resolved="dark"] .client-approval-summary dt,
html[data-backoffice-theme-resolved="dark"] .client-approval-decision-card > span,
html[data-backoffice-theme-resolved="dark"] .client-approval-decision-card > small,
html[data-backoffice-theme-resolved="dark"] .client-approval-metrics span,
html[data-backoffice-theme-resolved="dark"] .client-approval-context,
html[data-backoffice-theme-resolved="dark"] .client-approval-entry-workspace > div > p,
html[data-backoffice-theme-resolved="dark"] .client-approval-send-dialog__header > p:last-child,
html[data-backoffice-theme-resolved="dark"] .client-approval-send-dialog__summary dt,
html[data-backoffice-theme-resolved="dark"] .client-approval-entry-completion-dialog__header > p:last-child,
html[data-backoffice-theme-resolved="dark"] .client-approval-delete-dialog__header > p:last-child,
html[data-backoffice-theme-resolved="dark"] .client-approval-delete-dialog__summary dt { color: #bfd0dc; }
html[data-backoffice-theme-resolved="dark"] .client-approval-evidence__grid dt,
html[data-backoffice-theme-resolved="dark"] .client-approval-evidence__grid small { color: #bfd0dc; }
html[data-backoffice-theme-resolved="dark"] .client-approval-evidence__status--valid { color: #b8f2d2; background: #123b2d; border-color: #34795d; }
html[data-backoffice-theme-resolved="dark"] .client-approval-evidence__status--invalid { color: #ffd0d0; background: #482527; border-color: #955052; }
html[data-backoffice-theme-resolved="dark"] .client-approval-decision-grid--approved .client-approval-decision-card--outcome { color: #b8f2d2; background: #123b2d; border-color: #34795d; }
html[data-backoffice-theme-resolved="dark"] .client-approval-decision-grid--approved .client-approval-decision-card--outcome > span { color: #8fdab5; }
html[data-backoffice-theme-resolved="dark"] .client-approval-decision-grid--declined .client-approval-decision-card--outcome { color: #ffd0d0; background: #482527; border-color: #955052; }
html[data-backoffice-theme-resolved="dark"] .client-approval-decision-grid--declined .client-approval-decision-card--outcome > span { color: #ffaaaa; }
html[data-backoffice-theme-resolved="dark"] .client-approval-entry-workspace { border-top-color: #35576d; }
html[data-backoffice-theme-resolved="dark"] .client-approval-internal { background: #4a3a17; color: #ffe9a8; }
html[data-backoffice-theme-resolved="dark"] .client-approval-status-form select { color: #f0f7fb; background: #0b1d2b; border-color: #45677f; }
html[data-backoffice-theme-resolved="dark"] .client-approval-summary__work-status { background: #213441; border-color: #35576d; }
html[data-backoffice-theme-resolved="dark"] .client-approval-summary__status-form label { color: #bfd0dc; }
html[data-backoffice-theme-resolved="dark"] .client-approval-entry-completion-dialog__notice { color: #bfd0dc; background: #172b38; border-color: #35576d; }
html[data-backoffice-theme-resolved="dark"] .client-approval-missing-entry-dialog .client-approval-entry-completion-dialog__header h2 { color: #f0f7fb; }
html[data-backoffice-theme-resolved="dark"] .client-approval-missing-entry-dialog .client-approval-entry-completion-dialog__header > p:last-child,
html[data-backoffice-theme-resolved="dark"] .client-approval-missing-entry-dialog .client-approval-entry-completion-dialog__notice { color: #dceaf3; }
html[data-backoffice-theme-resolved="dark"] .client-approval-delete-dialog__notice { color: #bfd0dc; background: #172b38; border-color: #35576d; }
html[data-backoffice-theme-resolved="dark"] .client-approval-delete-dialog__notice.has-linked-entries { color: #f5d385; background: #382f18; border-color: #6a5728; }

@media (max-width: 1180px) {
  .work-report-company-settings-layout,
  .work-report-company-tariff-layout,
  .work-report-tariff-grid,
  .work-report-package-grid { grid-template-columns: 1fr; }
  .work-report-entry-form { grid-template-columns: repeat(2, minmax(170px, 1fr)); }
  .work-report-economy-breakdown { grid-template-columns: 1fr; }
  .employee-cost-rates__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-report-package-overview__items,
  .work-report-report-price-form--tariffs { grid-template-columns: repeat(2, minmax(180px, 1fr)); }
}

@media (max-width: 1100px) {
  .client-approval-form-layout { grid-template-columns: minmax(0, 1fr); }
  .work-report-entry-workspace { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .client-approval-hero { align-items: stretch; flex-direction: column; }
  .client-approval-hero > .admin-page-link { width: 100%; }
  .client-approval-hero .client-approval-actions { width: 100%; justify-content: flex-start; margin-left: 0; }
  .client-approval-hero .client-approval-actions .admin-button { width: 100%; }
  .client-approval-form { padding: 16px; }
  .client-approval-form-stack { padding: 16px; }
  .client-approval-form-actions { align-items: stretch; flex-direction: column-reverse; }
  .client-approval-form-actions .admin-button { width: 100%; }
  .client-approval-copy { min-height: 0; padding: 19px 18px 21px; }
  .client-approval-copy + .client-approval-internal { margin: 0 18px 20px; }
  .client-approval-summary dl { padding-right: 18px; padding-left: 18px; }
  .client-approval-metrics { padding: 18px 18px 0; }
  .client-approval-context { padding: 14px 18px 20px; }
  .client-approval-entry-workspace { margin: 0 18px 20px; }
  .client-approval-entry-form { padding-inline: 0; }
  .client-approval-recipient-box { margin: 18px 18px 14px; }
  .client-approval-status-form select { width: 100%; }
  .work-report-global-source,
  .work-report-global-tariff-grid,
  .employee-cost-rates__grid { grid-template-columns: 1fr; }
  .work-report-stop-alert { grid-template-columns: 1fr; }
  .work-report-stop-alert__signal { min-height: auto; padding: 16px; border-right: 0; border-bottom: 3px solid rgba(255, 255, 255, .9); }
  .work-report-stop-alert__signal span { width: 84px; height: 84px; border-width: 6px; font-size: 1.35rem; }
  .work-report-stop-alert__content { padding: 20px 18px; }
  .work-report-stop-alert__items article { grid-template-columns: 1fr; }
  .work-report-package-overview { flex-direction: column; }
  .work-report-package-overview__heading { flex-basis: auto; }
  .work-report-package-overview__items,
  .work-report-report-price-form--tariffs { grid-template-columns: 1fr; width: 100%; }
  .work-report-economy-settings { grid-template-columns: 1fr; }
  .work-report-economy-actions,
  .work-report-report-price-form { align-items: stretch; flex-direction: column; }
  .work-reports-hero { align-items: flex-start; }
  .work-report-hero-actions { justify-content: flex-start; }
  .work-report-filters,
  .work-report-create-period,
  .work-report-entry-form,
  .work-report-reopen,
  .work-report-form-grid,
  .work-report-form-grid--compact { grid-template-columns: 1fr; }
  .work-report-field--wide { grid-column: auto; }
  .work-report-tariff-grid,
  .work-report-package-grid { padding-inline: 16px; }
  .work-report-form-grid,
  .work-report-entry-form { padding-inline: 16px; }
  .work-report-contacts { padding-inline: 16px; }
  .work-report-rules-heading { margin-inline: 16px; }
  .work-report-contacts__heading { align-items: stretch; flex-direction: column; }
  .work-report-contacts__heading .admin-button { width: 100%; }
  .work-report-company-actions .work-report-form-actions { align-items: stretch; flex-direction: column-reverse; padding-inline: 16px; }
  .work-report-company-actions .admin-button { width: 100%; }
  .client-access-panel > .admin-alert,
  .client-access-panel > .admin-table-wrap,
  .client-access-panel > .admin-empty,
  .client-access-create { margin-right: 16px; margin-left: 16px; }
  .work-reports-admin .admin-panel > .admin-panel__header + .work-report-form-grid,
  .work-reports-admin .admin-panel > .admin-panel__header + .work-report-filters { padding-top: 18px; }
  .work-reports-admin .admin-panel > .admin-table-wrap { padding-top: 8px; }
  .work-report-entry-workspace .work-report-entry-form { grid-template-columns: minmax(0, 1fr); }
  .work-report-workflow__actions { justify-content: flex-start; }
  .work-report-email-actions { grid-template-columns: 1fr; padding-inline: 16px; }
  .work-report-email-action .admin-button { width: 100%; }
  .work-report-entry-filter-actions { grid-column: auto; justify-content: space-between; flex-wrap: wrap; white-space: normal; }
  .work-report-pool-actions { align-items: stretch; flex-direction: column; }
  .work-report-pool-delete { justify-self: stretch; margin-top: 0; transform: none; }
  .work-report-pool-delete .admin-button { width: 100%; }
  .work-report-description { min-width: 240px; }
  .work-report-edit-dialog .work-report-entry-form { grid-template-columns: 1fr; }
  .work-report-assignment-dialog__header { align-items: stretch; flex-direction: column; gap: 12px; padding-inline: 16px; }
  .work-report-assignment-dialog__header > strong { align-self: flex-start; }
  .work-report-assignment-search { align-items: stretch; flex-direction: column; gap: 8px; padding-inline: 16px; }
  .work-report-assignment-search label { flex-basis: auto; }
  .work-report-assignment-search > span { padding-bottom: 0; }
  .work-report-assignment-list { grid-template-columns: 1fr; max-height: min(32dvh, 280px); padding: 14px 16px; }
  .work-report-assignment-dialog__actions { align-items: stretch; flex-direction: column-reverse; padding-inline: 16px; }
  .work-report-assignment-dialog__actions .admin-button { width: 100%; }
  .work-report-tariff-dialog__header { padding-inline: 16px; }
  .work-report-tariff-dialog__errors { margin-inline: 16px; }
  .work-report-tariff-dialog__fields { grid-template-columns: 1fr; padding-inline: 16px; }
  .work-report-tariff-dialog__fields .work-report-field--wide { grid-column: auto; }
  .work-report-tariff-dialog__actions { align-items: stretch; flex-direction: column; padding-inline: 16px; }
  .work-report-tariff-dialog__actions .work-report-inline-checks { align-items: flex-start; flex-direction: column; }
  .work-report-tariff-dialog__buttons { flex-direction: column-reverse; }
  .work-report-tariff-dialog__buttons .admin-button { width: 100%; }
  .work-report-archive-dialog__form { padding-inline: 16px; }
  .work-report-archive-dialog__actions { align-items: stretch; flex-direction: column-reverse; }
  .work-report-archive-dialog__actions .admin-button { width: 100%; }
  .employee-cost-rates__effective,
  .employee-cost-rates__grid,
  .employee-cost-rates__actions { padding-inline: 16px; }
  .employee-cost-rates__actions { align-items: stretch; flex-direction: column; }
  .employee-cost-rates__actions .admin-button { width: 100%; }
}

/* Blog editorial system */
.admin-shell.admin-dashboard__main.blog-admin {
  width: calc(100% - 40px);
  max-width: none;
}

.blog-admin__hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.blog-admin__hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.blog-manual-dialog {
  position: fixed;
  inset: auto;
  top: 50%;
  left: 50%;
  width: min(680px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  margin: 0;
  padding: 0;
  color: #203a51;
  background: transparent;
  border: 0;
  transform: translate(-50%, -50%);
}

.blog-manual-dialog::backdrop {
  background: rgba(2, 13, 29, .74);
  backdrop-filter: blur(5px);
}

.blog-manual-dialog__card {
  overflow: auto;
  max-height: calc(100vh - 32px);
  padding: 26px;
  background: #fff;
  border: 1px solid #d8e6f4;
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(0, 24, 68, .28);
}

.blog-manual-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.blog-manual-dialog__header h2 {
  margin: 4px 0 0;
  color: #071936;
  font-size: clamp(23px, 4vw, 32px);
}

.blog-manual-dialog__close {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  color: #40596d;
  background: #f3f7fb;
  border: 1px solid #d4e1ee;
  border-radius: 8px;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.blog-manual-dialog__close:hover,
.blog-manual-dialog__close:focus-visible {
  color: #0057ff;
  background: #fff;
  border-color: #75a8ff;
}

.blog-manual-dialog__intro {
  margin: 18px 0 0;
  color: #40596d;
  line-height: 1.62;
}

.blog-manual-dialog__steps {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding: 0;
  list-style: none;
  counter-reset: manual-step;
}

.blog-manual-dialog__steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 2px 12px;
  align-items: center;
  padding: 12px 14px;
  background: #f7faff;
  border: 1px solid #dce8f5;
  border-radius: 8px;
  counter-increment: manual-step;
}

.blog-manual-dialog__steps li::before {
  content: counter(manual-step);
  grid-row: 1 / 3;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff;
  background: #0057ff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 950;
}

.blog-manual-dialog__steps strong {
  color: #102d48;
  font-size: 14px;
}

.blog-manual-dialog__steps span {
  color: #60758a;
  font-size: 12px;
  line-height: 1.45;
}

.blog-manual-dialog__command {
  display: grid;
  gap: 7px;
  color: #17324a;
  font-size: 13px;
  font-weight: 850;
}

.blog-manual-dialog__command textarea {
  width: 100%;
  min-height: 82px;
  padding: 12px;
  resize: none;
  color: #dff4ff;
  background: #081f32;
  border: 1px solid #1e4f70;
  border-radius: 8px;
  font: 700 12px/1.55 Consolas, "Courier New", monospace;
  overflow-wrap: anywhere;
}

.blog-manual-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.blog-manual-dialog__status {
  flex: 1 1 100%;
  min-height: 20px;
  color: #12613e;
  font-size: 12px;
  font-weight: 800;
}

.blog-manual-dialog [hidden] { display: none !important; }

.blog-manual-import {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: end;
  margin-top: 18px;
  padding: 18px;
  background: #eef6ff;
  border: 1px solid #bfd9fa;
  border-radius: 9px;
}

.blog-manual-import label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #203a51;
  font-size: 13px;
  font-weight: 850;
}

.blog-manual-import input[type="file"] {
  width: 100%;
  min-height: 44px;
  padding: 8px;
  color: #203a51;
  background: #fff;
  border: 1px solid #b9cde2;
  border-radius: 8px;
  font: inherit;
}

.blog-manual-import input[type="file"]::file-selector-button {
  min-height: 30px;
  margin-right: 10px;
  padding: 0 10px;
  color: #0046cf;
  background: #edf5ff;
  border: 1px solid #b9d4f5;
  border-radius: 6px;
  font-weight: 850;
  cursor: pointer;
}

.blog-manual-import p {
  grid-column: 1 / -1;
  margin: 0;
  color: #587086;
  font-size: 11px;
  line-height: 1.5;
}

.blog-manual-import[aria-busy="true"] input[type="file"] { opacity: .72; }

.blog-manual-dialog__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.blog-delete-dialog {
  width: min(620px, calc(100% - 32px));
}

.blog-delete-dialog__card {
  overflow: hidden;
}

.blog-delete-dialog__intro {
  margin: 18px 0;
  color: #40596d;
  line-height: 1.6;
}

.blog-delete-dialog__table-wrap {
  overflow: hidden;
  border: 1px solid #d8e6f4;
  border-radius: 9px;
}

.blog-delete-dialog__table {
  width: 100%;
  border-collapse: collapse;
}

.blog-delete-dialog__table th,
.blog-delete-dialog__table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e4edf7;
  text-align: left;
  vertical-align: top;
}

.blog-delete-dialog__table tr:last-child th,
.blog-delete-dialog__table tr:last-child td {
  border-bottom: 0;
}

.blog-delete-dialog__table th {
  width: 110px;
  color: #203a51;
  background: #f3f7fb;
  font-size: 12px;
  font-weight: 900;
}

.blog-delete-dialog__table td {
  color: #071936;
  background: #fff;
  font-size: 13px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.blog-delete-dialog__notice {
  margin: 16px 0 0;
  padding: 12px 14px;
  color: #5c4210;
  background: #fff8df;
  border: 1px solid #ead28a;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.55;
}

.blog-delete-dialog__notice.is-blocked {
  color: #8e2d24;
  background: #fff1f0;
  border-color: #ffc9c4;
}

.blog-delete-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.blog-admin__stats {
  display: grid;
  grid-template-columns: repeat(8, minmax(120px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.blog-admin__stat {
  display: grid;
  gap: 6px;
  min-width: 120px;
  padding: 14px 16px;
  color: #52647c;
  background: #fff;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 43, 115, .06);
  text-decoration: none;
}

.blog-admin__stat span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.blog-admin__stat strong {
  color: #071936;
  font-size: 26px;
  line-height: 1;
}

.blog-admin__stat:hover,
.blog-admin__stat.is-active {
  color: #0046cf;
  border-color: #6fa2ff;
  box-shadow: 0 14px 34px rgba(0, 87, 255, .12);
}

.blog-admin__filters {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(160px, 220px) minmax(160px, 220px) auto auto;
  gap: 12px;
  align-items: end;
  padding: 18px 20px;
  border-bottom: 1px solid #e1ebf7;
}

.blog-admin__filters label,
.blog-field,
.blog-publish-form label,
.blog-reject-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #17324a;
  font-size: 13px;
  font-weight: 850;
}

.blog-admin__filters input,
.blog-admin__filters select,
.blog-field input,
.blog-field select,
.blog-field textarea,
.blog-publish-form input,
.blog-reject-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: #071936;
  background: #f8fbff;
  border: 1px solid #cfdceb;
  border-radius: 8px;
  font: inherit;
  outline: none;
}

.blog-admin__filters input:focus,
.blog-admin__filters select:focus,
.blog-field input:focus,
.blog-field select:focus,
.blog-field textarea:focus,
.blog-publish-form input:focus,
.blog-reject-form textarea:focus {
  background: #fff;
  border-color: #0057ff;
  box-shadow: 0 0 0 4px rgba(0, 87, 255, .11);
}

.blog-admin__pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  color: #52647c;
  border-top: 1px solid #e1ebf7;
  font-size: 13px;
  font-weight: 800;
}

.blog-admin__pagination a {
  color: #0057ff;
  text-decoration: none;
}

.blog-admin__pagination .is-disabled { opacity: .48; }

.blog-status,
.blog-origin,
.blog-source-confidence {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid #d2dfec;
  border-radius: 999px;
  color: #17324a;
  background: #f4f8fc;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.blog-status--published,
.blog-status--approved,
.blog-readiness--ready,
.blog-source-confidence--high { color: #11623d; background: #eefcf5; border-color: #bdebd3; }
.blog-status--scheduled,
.blog-status--in_review,
.blog-origin--codex,
.blog-source-confidence--medium { color: #0051a8; background: #eef6ff; border-color: #bfd9fa; }
.blog-origin--legacy { color: #61430d; background: #fff8df; border-color: #ead28a; }
.blog-status--rejected,
.blog-status--archived,
.blog-source-confidence--low { color: #8e2d24; background: #fff1f0; border-color: #ffc9c4; }
.blog-status--draft,
.blog-status--idea,
.blog-readiness--warning { color: #7a4a05; background: #fff8e6; border-color: #f1d88b; }

.blog-editor-layout,
.blog-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 18px;
  align-items: start;
}

.blog-editor-jump-nav {
  position: sticky;
  z-index: 14;
  top: 82px;
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding: 8px;
  background: rgba(247, 251, 255, .96);
  border: 1px solid #cbddea;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(7, 25, 54, .08);
  backdrop-filter: blur(14px);
  scrollbar-width: thin;
}

.blog-editor-jump-nav a {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 11px;
  color: #16496f;
  background: #eaf4fb;
  border: 1px solid #c6ddeb;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.blog-editor-jump-nav a:hover,
.blog-editor-jump-nav a:focus-visible {
  color: #003f88;
  background: #d9ecf8;
  border-color: #5fa9d1;
  outline: 0;
}

.blog-editor-form .blog-editor-section { scroll-margin-top: 150px; }
.admin-body--backoffice .blog-editor-form .blog-editor-toolbar { top: 138px; }

.blog-editor-layout__main,
.blog-detail-layout__main,
.blog-editor-layout__aside,
.blog-detail-layout__aside {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.blog-editor-section--sticky,
.blog-publish-panel { position: sticky; top: 18px; }
.blog-editor-grid { display: grid; gap: 14px; padding: 20px; }
.blog-editor-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blog-field--wide { grid-column: 1 / -1; }
.blog-field small { color: #71829a; font-weight: 700; }
.blog-field textarea { min-height: 100px; resize: vertical; line-height: 1.55; }
.blog-field__prefix { display: flex; align-items: center; overflow: hidden; background: #f0f5fb; border: 1px solid #cfdceb; border-radius: 8px; }
.blog-field__prefix span { padding: 0 0 0 12px; color: #71829a; }
.blog-field__prefix input { border: 0; background: transparent; box-shadow: none !important; }

.admin-panel.blog-editor-section--content {
  overflow: visible;
}

.blog-editor-toolbar {
  position: sticky;
  z-index: 12;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 12px 20px;
  background: #f6f9fd;
  border-bottom: 1px solid #dbe7f5;
  box-shadow: 0 10px 22px rgba(0, 43, 115, .08);
}

.blog-editor-toolbar button,
.blog-media-card button {
  min-height: 44px;
  padding: 0 10px;
  color: #244359;
  background: #fff;
  border: 1px solid #cad9e7;
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.blog-editor-canvas {
  position: relative;
}

.blog-editor-canvas--compact {
  padding: 18px;
  background: #edf3f9;
}

.blog-rich-editor {
  min-height: 580px;
  padding: 28px;
  color: #223b51;
  background: #fff;
  font-size: 17px;
  line-height: 1.72;
  outline: none;
}

.blog-rich-editor:focus { box-shadow: inset 0 0 0 2px #0057ff; }
.blog-rich-editor h2 { margin: 34px 0 12px; color: #071936; font-size: 30px; }
.blog-rich-editor h3 { margin: 26px 0 10px; color: #071936; font-size: 22px; }
.blog-rich-editor img { max-width: 100%; height: auto; border-radius: 8px; }
.blog-rich-editor figcaption { color: #64748b; font-size: 13px; }
.blog-rich-editor figure {
  position: relative;
  margin: 28px 0;
  padding: 12px;
  background: #f8fbff;
  border: 2px solid transparent;
  border-radius: 11px;
  box-shadow: 0 12px 28px rgba(0, 43, 115, .07);
  cursor: pointer;
}
.blog-rich-editor figure.is-selected { border-color: #0057ff; box-shadow: 0 0 0 4px rgba(0, 87, 255, .11), 0 16px 32px rgba(0, 43, 115, .1); }
.blog-rich-editor figure img { display: block; width: 100%; }
.blog-rich-editor figure figcaption { padding: 9px 3px 0; }
.blog-rich-editor table {
  width: 100%;
  margin: 22px 0;
  background: #fff;
  border: 1px solid #cad8e5;
  border-collapse: collapse;
  table-layout: fixed;
}
.blog-rich-editor caption { padding-bottom: 9px; color: #071936; font-weight: 800; text-align: left; }
.blog-rich-editor th,
.blog-rich-editor td { padding: 9px 11px; border: 1px solid #cad8e5; font-size: .9em; overflow-wrap: anywhere; text-align: left; vertical-align: top; }
.blog-rich-editor th { color: #071936; background: #edf6ff; font-weight: 800; }

.blog-editor-canvas--compact .blog-rich-editor {
  width: min(100%, 920px);
  min-height: 520px;
  margin: 0 auto;
  padding: 24px 28px;
  font-size: 15px;
  line-height: 1.62;
  border: 1px solid #d8e3ee;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(7, 25, 54, .06);
}

.blog-editor-canvas--compact .blog-rich-editor p,
.blog-editor-canvas--compact .blog-rich-editor ul,
.blog-editor-canvas--compact .blog-rich-editor ol { margin-top: 10px; margin-bottom: 10px; }
.blog-editor-canvas--compact .blog-rich-editor h2 { margin: 26px 0 10px; font-size: 24px; line-height: 1.25; }
.blog-editor-canvas--compact .blog-rich-editor h3 { margin: 21px 0 8px; font-size: 19px; line-height: 1.3; }
.blog-editor-canvas--compact .blog-rich-editor figure {
  width: min(100%, 720px);
  margin: 20px auto;
  padding: 10px;
}
.blog-editor-canvas--compact .blog-rich-editor img {
  display: block;
  width: auto;
  max-width: min(100%, 720px);
  max-height: 420px;
  margin: 18px auto;
  object-fit: contain;
}
.blog-editor-canvas--compact .blog-rich-editor figure img {
  width: auto;
  max-width: 100%;
  max-height: 420px;
  margin: 0 auto;
}
.blog-editor-canvas--compact .blog-rich-editor figure figcaption { padding-top: 7px; text-align: center; }
.blog-editor-image-trigger {
  position: absolute;
  z-index: 5;
  min-height: 36px;
  padding: 0 12px;
  color: #fff;
  background: #0057ff;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(0, 87, 255, .24);
  cursor: pointer;
}
.blog-editor-image-trigger:hover,
.blog-editor-image-trigger:focus-visible { background: #003fbd; transform: translateY(-1px); }
.blog-image-block-tools {
  position: absolute;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 24px);
  padding: 7px;
  color: #fff;
  background: rgba(7, 25, 54, .94);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 9px;
  box-shadow: 0 14px 28px rgba(7, 25, 54, .22);
  backdrop-filter: blur(10px);
}
.blog-image-block-tools[hidden],
.blog-editor-image-trigger[hidden] { display: none !important; }
.blog-image-block-tools strong { padding: 0 5px; font-size: 11px; }
.blog-image-block-tools button {
  min-height: 30px;
  padding: 0 9px;
  color: #eaf4ff;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.blog-image-block-tools button:hover,
.blog-image-block-tools button:focus-visible { background: rgba(73, 184, 221, .2); border-color: rgba(73, 184, 221, .48); }
.blog-editor-builder-help { margin: 0; padding: 13px 20px; color: #40596d; background: #eef6ff; border-top: 1px solid #d5e6f8; font-size: 13px; line-height: 1.55; }

.blog-translation-list { display: grid; gap: 16px; padding: 20px; }
.blog-translation-editor__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
}
.blog-translation-editor__summary::-webkit-details-marker { display: none; }
.blog-translation-editor__summary:focus-visible { outline: 3px solid rgba(0, 87, 255, .24); outline-offset: -3px; }
.blog-translation-editor__toggle {
  flex: 0 0 auto;
  min-width: 86px;
  padding: 8px 11px;
  color: #16496f;
  background: #eaf4fb;
  border: 1px solid #c6ddeb;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}
.blog-translation-card { overflow: hidden; background: #f8fbff; border: 1px solid #d5e2ef; border-radius: 10px; }
.blog-translation-card > header { display: flex; align-items: center; gap: 12px; padding: 15px 20px; background: #edf6ff; border-bottom: 1px solid #d5e2ef; }
.blog-translation-card > header > span { display: grid; width: 42px; height: 32px; place-items: center; color: #fff; background: #0057ff; border-radius: 7px; font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.blog-translation-card > header h3 { margin: 0; color: #071936; font-size: 16px; }
.blog-translation-card > header p { margin: 3px 0 0; color: #5e7188; font-size: 12px; }
.blog-translation-card__content { min-height: 320px; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 13px; line-height: 1.55; }

.blog-editor-submit { display: grid; gap: 10px; padding: 0 20px 20px; }
.blog-editor-submit small { color: #64748b; line-height: 1.45; }
.blog-service-options { margin: 0; padding: 0; border: 0; }
.blog-service-options legend { margin-bottom: 8px; }
.blog-service-options label { display: flex; gap: 9px; align-items: flex-start; padding: 8px 0; font-weight: 700; }
.blog-service-options input { width: auto; min-height: 0; margin-top: 3px; }

.blog-source-list { display: grid; gap: 12px; padding: 20px; }
.blog-source-empty { padding: 0 20px 20px; }
.blog-source-row { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px; background: #f8fbff; border: 1px solid #dbe7f5; border-radius: 8px; }
.blog-source-row { display: block; padding: 0; }
.blog-source-row__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #dbe7f5; }
.blog-source-row__header button { min-height: 32px; padding: 0 10px; color: #a3261c; background: #fff1f0; border: 1px solid #ffc9c4; border-radius: 7px; font-weight: 850; cursor: pointer; }
.blog-source-row > .blog-editor-grid { padding: 16px; }
.blog-source-row .blog-field--wide { grid-column: 1 / -1; }

.blog-media-upload__status { align-self: center; color: #52647c; font-size: 13px; font-weight: 750; }
.blog-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 250px)); justify-content: start; gap: 10px; padding: 0 20px 20px; }
.blog-media-grid:empty::after { content: "Knižnica je zatiaľ prázdna. Kliknite na Pridať obrázky."; grid-column: 1 / -1; padding: 22px; color: #64748b; background: #f8fbff; border: 1px dashed #c8d8e8; border-radius: 8px; text-align: center; font-size: 13px; font-weight: 700; }
.blog-media-card { overflow: hidden; border: 1px solid #dbe7f5; border-radius: 8px; }
.blog-media-card > img { display: block; width: 100%; height: 112px; object-fit: cover; background: #edf3f9; }
.blog-media-card > div { display: grid; gap: 6px; padding: 10px; }
.blog-media-card strong { font-size: 13px; overflow-wrap: anywhere; }
.blog-media-card small,
.blog-media-card p { margin: 0; color: #64748b; font-size: 11px; line-height: 1.45; }
.blog-media-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.blog-media-card .blog-media-card__preview { width: 44px !important; height: 44px; color: #0057ff !important; }
.blog-media-card .blog-media-card__preview svg { width: 18px; height: 18px; }
.blog-media-card .blog-media-card__delete { width: fit-content; color: #a3261c; background: #fff1f0; border-color: #ffc9c4; }
.blog-editor-media-library .admin-panel__header { align-items: flex-start; padding: 16px; }
.blog-editor-media-library .admin-panel__header h2 { font-size: 17px; }
.blog-editor-media-library .admin-panel__header p { font-size: 12px; }
.blog-editor-media-library .blog-media-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; padding: 0 16px 16px; }
.blog-editor-media-library .blog-media-card > img { height: 82px; }
.blog-editor-media-library .blog-media-card > div { gap: 5px; padding: 8px; }
.blog-editor-media-library .blog-media-card strong { font-size: 12px; line-height: 1.35; }
.blog-editor-media-library .blog-media-card small,
.blog-editor-media-library .blog-media-card p { font-size: 10px; }
.blog-editor-media-library .blog-media-card__actions { gap: 4px; }
.blog-editor-media-library .blog-media-card__actions button { min-height: 32px; padding: 0 7px; font-size: 10px; }
.blog-editor-media-library .blog-media-card .blog-media-card__preview { width: 32px !important; height: 32px; }
.blog-editor-media-library .blog-media-card .blog-media-card__preview svg { width: 15px; height: 15px; }
.blog-editor-media-library .blog-media-card .blog-media-card__delete { min-height: 30px; padding: 0 7px; font-size: 10px; }

.blog-social-admin__intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px;
}
.blog-social-admin__intro h2 { margin: 5px 0 8px; color: #071936; }
.blog-social-admin__intro p:last-child { max-width: 850px; margin: 0; color: #40596d; line-height: 1.6; }
.blog-social-admin__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.blog-social-card { display: flex; flex-direction: column; min-width: 0; }
.blog-social-card__preview {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0 20px 18px;
  overflow: hidden;
  background: #071936;
  border: 1px solid #d5e2ef;
  border-radius: 10px;
}
.blog-social-card__preview img { display: block; width: 100%; max-height: 420px; object-fit: contain; }
.blog-social-card__preview--instagram img { max-height: 560px; }
.blog-social-card__preview span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 9px;
  color: #fff;
  background: rgba(7, 25, 54, .9);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 850;
}
.blog-social-card__copy { margin: 0 20px 14px; }
.blog-social-card__copy textarea { min-height: 310px; }
.blog-social-card > [data-copy-social-text] { margin: auto 20px 20px; }
.blog-social-admin__save {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #f8fbff;
  border: 1px solid #d5e2ef;
  border-radius: 10px;
}
.blog-social-admin__save small { color: #40596d; font-weight: 700; }

body.has-blog-image-picker { overflow: hidden; }
.blog-image-picker {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
}
.blog-image-picker[hidden] { display: none !important; }
.blog-image-picker__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; background: rgba(3, 18, 35, .72); border: 0; cursor: default; backdrop-filter: blur(5px); }
.blog-image-picker__card { position: relative; z-index: 1; display: grid; grid-template-rows: auto minmax(0, 1fr); width: min(1180px, 100%); max-height: min(880px, calc(100vh - 48px)); overflow: hidden; background: #f7faff; border: 1px solid rgba(255, 255, 255, .24); border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 18, 42, .35); }
.blog-image-picker__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px; color: #fff; background: linear-gradient(135deg, #071936, #0d3552); }
.blog-image-picker__header h2 { margin: 4px 0 0; color: #fff; font-size: 26px; }
.blog-image-picker__header p:not(.admin-kicker) { max-width: 760px; margin: 7px 0 0; color: #c7d8e8; font-size: 13px; line-height: 1.5; }
.blog-image-picker__header > button { flex: 0 0 auto; width: 38px; height: 38px; padding: 0; color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; }
.blog-image-picker__body { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); min-height: 0; overflow: auto; }
.blog-media-batch,
.blog-image-picker__library { min-width: 0; padding: 22px; }
.blog-media-batch { border-right: 1px solid #dbe7f5; }
.blog-image-picker__library > div:first-child { margin-bottom: 13px; }
.blog-image-picker__library h3 { margin: 0; color: #071936; font-size: 18px; }
.blog-image-picker__library p { margin: 5px 0 0; color: #64748b; font-size: 12px; line-height: 1.5; }
.blog-media-queue { display: grid; gap: 10px; max-height: 480px; margin-top: 15px; overflow: auto; }
.blog-media-queue[hidden] { display: none !important; }
.blog-media-queue__item { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr) 30px; gap: 12px; padding: 11px; background: #fff; border: 1px solid #dbe7f5; border-radius: 9px; }
.blog-media-queue__item > img { display: block; width: 92px; height: 92px; object-fit: cover; background: #edf3f9; border-radius: 7px; }
.blog-media-queue__item > div { display: grid; gap: 7px; min-width: 0; }
.blog-media-queue__item > div > strong { overflow: hidden; color: #203a51; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.blog-media-queue__item label { display: grid; gap: 3px; color: #52647c; font-size: 10px; font-weight: 850; }
.blog-media-queue__item input { min-height: 34px; padding: 6px 9px; font-size: 12px; }
.blog-media-queue__item > button { width: 30px; height: 30px; padding: 0; color: #a3261c; background: #fff1f0; border: 1px solid #ffc9c4; border-radius: 7px; font-size: 18px; cursor: pointer; }
.blog-media-batch__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.blog-image-picker__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.blog-image-picker__grid:empty::after { content: "Zatiaľ nie sú nahrané žiadne obrázky."; grid-column: 1 / -1; padding: 22px; color: #64748b; border: 1px dashed #c8d8e8; border-radius: 8px; text-align: center; font-size: 12px; }
.blog-image-picker__grid > button { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; min-width: 0; padding: 9px; color: #203a51; background: #fff; border: 1px solid #dbe7f5; border-radius: 9px; text-align: left; cursor: pointer; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.blog-image-picker__grid > button:hover,
.blog-image-picker__grid > button:focus-visible { transform: translateY(-2px); border-color: #6aa5ee; box-shadow: 0 12px 24px rgba(0, 43, 115, .09); }
.blog-image-picker__grid img { display: block; width: 90px; height: 72px; object-fit: cover; background: #edf3f9; border-radius: 6px; }
.blog-image-picker__grid span { display: grid; align-content: center; gap: 5px; min-width: 0; }
.blog-image-picker__grid strong { overflow: hidden; font-size: 12px; line-height: 1.35; text-overflow: ellipsis; }
.blog-image-picker__grid small { color: #71829a; font-size: 10px; }

.blog-admin__error-summary ul,
.blog-readiness ul { margin: 10px 0 0; padding-left: 22px; }
.blog-detail-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.blog-detail-overview article { display: grid; gap: 7px; padding: 18px; color: #17324a; background: #fff; border: 1px solid #dbe7f5; border-radius: 8px; box-shadow: 0 14px 30px rgba(0, 43, 115, .06); }
.blog-detail-overview article > span { color: #64748b; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.blog-detail-overview article > strong { color: #071936; font-size: 18px; }
.blog-detail-overview article > small { color: #64748b; line-height: 1.45; }
.blog-readiness { padding-bottom: 18px; }
.blog-readiness .admin-panel__header { border: 0; }
.blog-readiness ul { padding: 0 38px; }

.blog-detail-live-preview { overflow: hidden; }
.blog-detail-live-preview__header { align-items: center; gap: 18px; }
.blog-detail-live-preview__header .admin-button { flex: 0 0 auto; }
.blog-detail-live-preview__viewport { padding: 14px; background: #dce7f2; }
.blog-detail-live-preview__frame { display: block; width: 100%; height: clamp(760px, 78vh, 1080px); background: #fff; border: 1px solid #c4d5e4; border-radius: 8px; box-shadow: 0 18px 45px rgba(5, 25, 54, .14); }

.blog-detail-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: #dbe7f5; border-bottom: 1px solid #dbe7f5; }
.blog-detail-list div { padding: 16px 20px; background: #f9fbfe; }
.blog-detail-list dt { color: #64748b; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.blog-detail-list dd { margin: 6px 0 0; color: #203a51; font-weight: 750; overflow-wrap: anywhere; }

.blog-detail-sources { display: grid; gap: 12px; padding: 20px; }
.blog-detail-sources article { padding: 16px; background: #f8fbff; border: 1px solid #dbe7f5; border-radius: 8px; }
.blog-detail-sources article > div { display: flex; gap: 7px; }
.blog-detail-sources h3 { margin: 12px 0 0; font-size: 16px; }
.blog-detail-sources h3 a { color: #0057ff; overflow-wrap: anywhere; }
.blog-detail-sources p { margin: 8px 0 0; color: #40596d; line-height: 1.55; }
.blog-detail-sources small { display: block; margin-top: 8px; color: #71829a; }

.blog-revision-list { padding: 20px; }
.blog-revision-list article { position: relative; display: grid; grid-template-columns: 16px 1fr; gap: 10px; padding-bottom: 20px; }
.blog-revision-list article:not(:last-child)::before { content: ""; position: absolute; top: 13px; bottom: -2px; left: 5px; width: 2px; background: #dbe7f5; }
.blog-revision-list__marker { z-index: 1; width: 12px; height: 12px; margin-top: 3px; background: #0057ff; border: 3px solid #dce9ff; border-radius: 50%; }
.blog-revision-list strong,
.blog-revision-list small { display: block; }
.blog-revision-list small { margin-top: 5px; color: #64748b; }
.blog-revision-list p { margin: 7px 0 0; color: #40596d; }

.blog-publish-panel,
.blog-internal-notes,
.blog-danger-zone { padding-bottom: 20px; }
.blog-publish-panel > form,
.blog-publish-panel > a,
.blog-internal-notes > h3,
.blog-internal-notes > p,
.blog-danger-zone > form { margin-right: 20px; margin-left: 20px; }
.blog-publish-panel > form,
.blog-publish-panel > a { width: calc(100% - 40px); margin-top: 12px; }
.blog-admin__filters .admin-button--ghost,
.blog-publish-panel .admin-button--ghost { color: #0057ff; background: #eef5ff; border-color: #cfe0f5; }
.blog-admin__filters .admin-button--ghost:hover,
.blog-publish-panel .admin-button--ghost:hover { color: #003bb5; background: #fff; border-color: #0057ff; }
.blog-publish-form,
.blog-reject-form { display: grid; gap: 12px; }
.blog-confirm { display: flex !important; gap: 9px !important; align-items: flex-start; padding: 12px; background: #eef6ff; border: 1px solid #bfd9fa; border-radius: 8px; }
.blog-confirm input { width: auto; min-height: 0; margin-top: 3px; }
.blog-internal-notes h3 { margin-top: 16px; margin-bottom: 0; color: #071936; font-size: 14px; }
.blog-internal-notes p { margin-top: 6px; color: #40596d; font-size: 13px; line-height: 1.6; white-space: pre-line; }

@media (max-width: 1180px) {
  .blog-editor-layout,
  .blog-detail-layout { grid-template-columns: 1fr; }
  .blog-social-admin__form { grid-template-columns: 1fr; }
  .blog-editor-section--sticky,
  .blog-publish-panel { position: static; }
  .blog-detail-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-admin__filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .admin-shell.admin-dashboard__main.blog-admin { width: calc(100% - 24px); }
  .blog-translation-editor__summary { align-items: flex-start; }
  .blog-translation-editor__toggle { min-width: 76px; }
  .blog-social-admin__intro { align-items: flex-start; flex-direction: column; padding: 18px; }
  .blog-social-card__preview { margin: 0 12px 14px; }
  .blog-social-card__copy { margin-right: 12px; margin-left: 12px; }
  .blog-social-card > [data-copy-social-text] { margin-right: 12px; margin-left: 12px; }
  .blog-social-admin__save { align-items: flex-start; flex-direction: column; }
  .blog-admin__hero { display: grid; }
  .blog-admin__hero-actions { justify-content: flex-start; }
  .blog-admin__hero-actions .admin-button { width: 100%; }
  .blog-detail-live-preview__header { align-items: stretch; }
  .blog-detail-live-preview__header .admin-button { width: 100%; }
  .blog-detail-live-preview__viewport { padding: 8px; }
  .blog-detail-live-preview__frame { height: 720px; }
  .blog-admin__filters,
  .blog-editor-grid--two,
  .blog-source-row,
  .blog-detail-overview,
  .blog-detail-list { grid-template-columns: 1fr; }
  .blog-field--wide,
  .blog-source-row .blog-field--wide { grid-column: auto; }
  .blog-rich-editor { min-height: 420px; padding: 20px; }
  .blog-editor-canvas--compact { padding: 8px; }
  .blog-editor-canvas--compact .blog-rich-editor { min-height: 420px; padding: 16px; font-size: 14px; }
  .blog-editor-canvas--compact .blog-rich-editor h2 { font-size: 21px; }
  .blog-editor-canvas--compact .blog-rich-editor h3 { font-size: 18px; }
  .blog-editor-canvas--compact .blog-rich-editor img,
  .blog-editor-canvas--compact .blog-rich-editor figure img { max-height: 300px; }
  .blog-editor-image-trigger { max-width: calc(100% - 24px); }
  .blog-image-block-tools { right: 8px !important; left: 8px; max-width: none; }
  .blog-translation-list { padding: 12px; }
  .blog-translation-card > header { align-items: flex-start; padding: 14px; }
  .blog-translation-card__content { min-height: 240px; }
  .blog-image-picker { padding: 0; }
  .blog-image-picker__card { width: 100%; max-height: 100vh; border-radius: 0; }
  .blog-image-picker__header { padding: 18px 16px; }
  .blog-image-picker__header h2 { font-size: 22px; }
  .blog-image-picker__body { grid-template-columns: 1fr; }
  .blog-media-batch { border-right: 0; border-bottom: 1px solid #dbe7f5; }
  .blog-media-batch,
  .blog-image-picker__library { padding: 16px; }
  .blog-media-grid { grid-template-columns: minmax(210px, 250px); justify-content: center; }
  .blog-image-picker__grid { grid-template-columns: 1fr; }
  .blog-media-queue__item { grid-template-columns: 70px minmax(0, 1fr) 28px; }
  .blog-media-queue__item > img { width: 70px; height: 70px; }
  .blog-admin__pagination { align-items: flex-start; }
  .blog-manual-dialog__card { padding: 20px; }
  .blog-manual-dialog__actions .admin-button,
  .blog-manual-import,
  .blog-manual-import .admin-button,
  .blog-manual-dialog__footer,
  .blog-manual-dialog__footer .admin-button { width: 100%; }
  .blog-manual-import { grid-template-columns: 1fr; }
  .blog-delete-dialog__actions { display: grid; grid-template-columns: 1fr; }
  .blog-delete-dialog__actions .admin-button { width: 100%; }
  .blog-delete-dialog__table th { width: 88px; }
}

/* Povinne heslo a dvojfaktorove overenie Backoffice */
.backoffice-security-page {
  overflow-y: auto;
}

.backoffice-security-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 900px);
  min-height: calc(100vh - 64px);
  margin: 0 auto;
}

.backoffice-security-card {
  color: #071936;
}

.backoffice-security-card--wide {
  padding: 34px;
}

.backoffice-security-logo {
  display: block;
  width: auto;
  height: 36px;
  margin: 0 0 24px;
  padding: 8px 12px;
  background: #081f32;
  border-radius: 8px;
  box-sizing: content-box;
}

.backoffice-security-card .admin-login__lock {
  font-size: 12px;
  font-weight: 950;
}

.backoffice-security-card .admin-field small {
  color: #52647c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.backoffice-security-setup-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  margin-top: 24px;
}

.backoffice-security-qr {
  display: grid;
  place-items: center;
  padding: 14px;
  background: #fff;
  border: 1px solid #cfdceb;
  border-radius: 10px;
}

.backoffice-security-qr img {
  display: block;
  width: 100%;
  height: auto;
}

.backoffice-security-steps ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
  color: #1c304c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.backoffice-security-steps details {
  margin-top: 18px;
  padding: 12px 14px;
  color: #1c304c;
  background: #f3f8fd;
  border: 1px solid #d8e4ef;
  border-radius: 8px;
}

.backoffice-security-steps summary {
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.backoffice-security-steps details p {
  margin: 10px 0 0;
  font-size: 12px;
}

.backoffice-security-steps details code {
  display: block;
  margin-top: 7px;
  padding: 10px;
  color: #071936;
  background: #fff;
  border: 1px solid #cfdceb;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.backoffice-security-code-input {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace !important;
  font-size: 18px !important;
  font-weight: 900 !important;
  letter-spacing: .08em;
}

.backoffice-security-trust-note {
  margin: 18px 0 0;
  padding: 12px 14px;
  color: #1c304c;
  background: #edf6ff;
  border-left: 3px solid #0057ff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.55;
}

.backoffice-security-logout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 18px;
  color: #52647c;
  border-top: 1px solid #d8e4ef;
  font-size: 12px;
  font-weight: 700;
}

.backoffice-security-logout button {
  padding: 0;
  color: #0057ff;
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.backoffice-recovery-codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
  padding: 18px;
  background: #f3f8fd;
  border: 1px solid #d8e4ef;
  border-radius: 10px;
}

.backoffice-recovery-codes code {
  padding: 12px;
  color: #071936;
  background: #fff;
  border: 1px solid #cbd9e7;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  user-select: all;
}

.backoffice-recovery-actions {
  display: grid;
  grid-template-columns: minmax(180px, .7fr) minmax(260px, 1.3fr);
  gap: 18px;
  align-items: end;
  margin-top: 20px;
}

.backoffice-recovery-actions form {
  display: grid;
  gap: 12px;
}

.backoffice-recovery-confirmation {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: #1c304c;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.backoffice-recovery-confirmation input {
  margin-top: 2px;
}

.employee-generated-password-info,
.employee-temporary-password,
.employee-security-management {
  color: #071936;
}

.employee-security-note {
  margin: 0;
  padding: 0 22px 22px;
  color: #52647c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
}

.employee-temporary-password,
.employee-security-management {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 22px;
  padding: 22px;
}

.employee-temporary-password h2,
.employee-security-management h2 {
  margin: 10px 0 6px;
  font-size: 21px;
}

.employee-temporary-password p:last-child,
.employee-security-management p:last-child {
  max-width: 720px;
  margin: 0;
  color: #52647c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.employee-temporary-password__value {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  align-items: center;
}

.employee-temporary-password__value code {
  padding: 13px 15px;
  color: #071936;
  background: #edf6ff;
  border: 1px solid #bcd7f3;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  user-select: all;
}

html[data-backoffice-theme-resolved="dark"] .backoffice-security-card {
  color: #e8f2f8;
  background: #0f2536;
  border-color: #35576d;
}

html[data-backoffice-theme-resolved="dark"] .backoffice-security-card .admin-login__heading h2,
html[data-backoffice-theme-resolved="dark"] .backoffice-security-card .admin-field,
html[data-backoffice-theme-resolved="dark"] .backoffice-security-steps ol,
html[data-backoffice-theme-resolved="dark"] .backoffice-security-steps details,
html[data-backoffice-theme-resolved="dark"] .backoffice-security-trust-note,
html[data-backoffice-theme-resolved="dark"] .backoffice-recovery-confirmation,
html[data-backoffice-theme-resolved="dark"] .employee-temporary-password h2,
html[data-backoffice-theme-resolved="dark"] .employee-security-management h2,
html[data-backoffice-theme-resolved="dark"] .employee-temporary-password__value code {
  color: #f0f7fb;
}

html[data-backoffice-theme-resolved="dark"] .backoffice-security-card .admin-login__hint,
html[data-backoffice-theme-resolved="dark"] .backoffice-security-card .admin-field small,
html[data-backoffice-theme-resolved="dark"] .backoffice-security-logout,
html[data-backoffice-theme-resolved="dark"] .employee-security-note,
html[data-backoffice-theme-resolved="dark"] .employee-temporary-password p:last-child,
html[data-backoffice-theme-resolved="dark"] .employee-security-management p:last-child {
  color: #dceaf3;
}

html[data-backoffice-theme-resolved="dark"] .backoffice-security-steps details,
html[data-backoffice-theme-resolved="dark"] .backoffice-security-trust-note,
html[data-backoffice-theme-resolved="dark"] .backoffice-recovery-codes,
html[data-backoffice-theme-resolved="dark"] .employee-temporary-password__value code {
  background: #132c3e;
  border-color: #35576d;
}

html[data-backoffice-theme-resolved="dark"] .backoffice-security-steps details code,
html[data-backoffice-theme-resolved="dark"] .backoffice-recovery-codes code {
  color: #f0f7fb;
  background: #0b1d2b;
  border-color: #355269;
}

html[data-backoffice-theme-resolved="dark"] .backoffice-security-logout {
  border-color: #35576d;
}

@media (max-width: 760px) {
  .backoffice-security-setup-grid,
  .backoffice-recovery-actions {
    grid-template-columns: 1fr;
  }

  .backoffice-security-card--wide {
    padding: 24px;
  }

  .backoffice-security-qr {
    width: min(100%, 340px);
    margin: 0 auto;
  }

  .employee-temporary-password,
  .employee-security-management,
  .employee-temporary-password__value,
  .backoffice-security-logout {
    align-items: stretch;
    flex-direction: column;
  }

  .employee-temporary-password__value code,
  .employee-temporary-password__value .admin-button {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .backoffice-recovery-codes {
    grid-template-columns: 1fr;
  }
}

.admin-sidebar__group {
  min-width: 0;
}

.admin-sidebar__group summary {
  list-style: none;
  cursor: pointer;
}

.admin-sidebar__group summary::-webkit-details-marker {
  display: none;
}

.admin-sidebar__group-trigger {
  grid-template-columns: 24px minmax(0, 1fr) 16px;
  width: 100%;
  text-align: left;
}

.admin-sidebar__group-trigger .admin-sidebar__chevron {
  width: 15px;
  height: 15px;
  transition: transform .18s ease;
}

.admin-sidebar__group[open] .admin-sidebar__chevron {
  transform: rotate(180deg);
}

.admin-sidebar__submenu {
  display: grid;
  gap: 3px;
  margin: 4px 0 2px 21px;
  padding: 3px 0 3px 20px;
  border-left: 1px solid rgba(153, 212, 225, .2);
}

.admin-sidebar__submenu a {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 36px;
  padding: 7px 9px;
  color: rgba(234, 247, 255, .68);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.admin-sidebar__submenu a:hover,
.admin-sidebar__submenu a:focus-visible,
.admin-sidebar__submenu a.is-active {
  color: #fff;
  background: rgba(153, 212, 225, .11);
  outline: none;
}

.admin-sidebar__submenu-icon {
  width: 18px;
  height: 18px;
  color: #76c7dc;
}

.admin-sidebar__footer {
  display: grid;
  gap: 7px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(153, 212, 225, .18);
}

.admin-sidebar__footer span,
.admin-sidebar__footer strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-sidebar__footer span {
  color: rgba(234, 247, 255, .56);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-sidebar__footer strong {
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.admin-sidebar__logout {
  width: 100%;
  margin-top: 8px;
}

.admin-dashboard__content {
  min-width: 0;
  width: 100%;
  margin-left: 282px;
}

.admin-shell {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
}

.admin-body--backoffice .admin-dashboard__main.admin-shell {
  width: calc(100% - 40px);
  max-width: none;
}

.admin-topbar {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(3, 27, 46, .98), rgba(0, 41, 95, .96)),
    repeating-linear-gradient(24deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 34px);
  border-bottom: 1px solid rgba(153, 212, 225, .22);
}

.admin-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.admin-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: inherit;
  text-decoration: none;
}

.admin-topbar__brand img {
  width: auto;
  height: 34px;
}

.admin-topbar__brand small,
.admin-topbar__brand strong {
  display: block;
}

.admin-topbar__brand small {
  color: #99d4e1;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.admin-topbar__brand strong {
  margin-top: 2px;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}

.admin-dashboard__main {
  display: grid;
  gap: 18px;
  padding: 28px 0 44px;
}

.admin-dashboard__hero {
  position: relative;
  overflow: hidden;
  padding: 28px;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(3, 27, 46, .95), rgba(0, 52, 122, .86)),
    url("/assets/yenwa-homepage/webp/09-hero-dark-network-background-generated.webp") center / cover;
  border: 1px solid rgba(153, 212, 225, .22);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 27, 63, .18);
}

.admin-dashboard__hero--with-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}

.admin-dashboard__hero-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.admin-dashboard__hero-actions form {
  margin: 0;
}

.admin-dashboard__hero .admin-page-link {
  color: #0b4f76;
  background: #f4fbff;
  border-color: #a9d4e8;
}

.admin-dashboard__hero .admin-page-link:hover,
.admin-dashboard__hero .admin-page-link:focus-visible {
  color: #063955;
  background: #fff;
  border-color: #58b3dc;
}

.admin-dashboard__hero h1 {
  max-width: 720px;
  margin: 14px 0 0;
  color: #fff;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.06;
  font-weight: 950;
}

.admin-dashboard__hero p:not(.admin-kicker) {
  max-width: 650px;
  margin: 12px 0 0;
  color: rgba(226, 242, 255, .82);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.6;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  align-items: stretch;
}

.admin-dashboard-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.admin-dashboard-card__body {
  display: grid;
  flex: 1;
  align-content: space-between;
  gap: 18px;
  padding: 20px;
}

.admin-dashboard-card__metric {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-dashboard-card__metric span {
  color: #64748b;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.admin-dashboard-card__metric strong {
  color: #071936;
  font-size: 28px;
  font-weight: 950;
  line-height: 1.1;
}

.admin-dashboard-card__metric small {
  color: #64748b;
  font-size: 14px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-stat-card {
  min-width: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(0, 43, 115, .08);
}

.admin-stat-card span,
.admin-stat-card strong {
  display: block;
}

.admin-stat-card span {
  color: #64748b;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.admin-stat-card strong {
  margin-top: 8px;
  color: #071936;
  font-size: 36px;
  line-height: 1;
  font-weight: 950;
}

.admin-dashboard-overview {
  display: grid;
  gap: 16px;
}

.admin-dashboard-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 6px 2px 2px;
}

.admin-dashboard-section-heading h2 {
  margin: 6px 0 0;
  color: #071936;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  font-weight: 950;
}

.admin-dashboard-section-heading p:not(.admin-kicker) {
  max-width: 780px;
  margin: 8px 0 0;
  color: #5d7185;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 700;
}

.admin-dashboard-section-heading > span {
  flex: 0 0 auto;
  color: #60758a;
  font-size: 12px;
  font-weight: 850;
}

.admin-dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 12px;
}

.admin-dashboard-kpi {
  --dashboard-kpi-accent: #0877d1;
  position: relative;
  display: grid;
  min-width: 0;
  gap: 7px;
  overflow: hidden;
  padding: 18px;
  color: #071936;
  background: #fff;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(0, 43, 115, .08);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.admin-dashboard-kpi::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  content: "";
  background: var(--dashboard-kpi-accent);
}

.admin-dashboard-kpi:hover,
.admin-dashboard-kpi:focus-visible {
  color: #071936;
  border-color: color-mix(in srgb, var(--dashboard-kpi-accent) 48%, #dbe7f5);
  box-shadow: 0 18px 38px rgba(0, 43, 115, .14);
  transform: translateY(-2px);
}

.admin-dashboard-kpi--cyan { --dashboard-kpi-accent: #00a8d8; }
.admin-dashboard-kpi--violet { --dashboard-kpi-accent: #7657d5; }
.admin-dashboard-kpi--green { --dashboard-kpi-accent: #11865f; }
.admin-dashboard-kpi--amber { --dashboard-kpi-accent: #c67a09; }
.admin-dashboard-kpi--navy { --dashboard-kpi-accent: #173c67; }

.admin-dashboard-kpi > span {
  color: #60758a;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.admin-dashboard-kpi > strong {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1;
  font-weight: 950;
}

.admin-dashboard-kpi > small {
  min-height: 38px;
  color: #52687d;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 720;
}

.admin-dashboard-kpi > em {
  color: var(--dashboard-kpi-accent);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.admin-dashboard-analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.admin-dashboard-analytics-card,
.admin-dashboard-progress-card,
.admin-dashboard-health-card,
.admin-dashboard-attention-card,
.admin-dashboard-activity-card {
  min-width: 0;
  padding: 20px;
}

.admin-dashboard-analytics-card__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.admin-dashboard-analytics-card__heading h3 {
  margin: 0;
  color: #071936;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 950;
}

.admin-dashboard-analytics-card__heading p {
  max-width: 560px;
  margin: 5px 0 0;
  color: #64778a;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
}

.admin-dashboard-analytics-card__heading > a {
  flex: 0 0 auto;
  color: #006cbf;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.admin-dashboard-analytics-card__heading > a:hover,
.admin-dashboard-analytics-card__heading > a:focus-visible {
  color: #003f78;
  text-decoration: underline;
}

.admin-dashboard-chart-legend {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 12px;
  color: #52687d;
  font-size: 11px;
  font-weight: 850;
}

.admin-dashboard-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.admin-dashboard-chart-legend i {
  width: 8px;
  height: 8px;
  background: #0877d1;
  border-radius: 50%;
}

.admin-dashboard-chart-legend i.is-newsletter { background: #7657d5; }

.admin-dashboard-bar-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  min-height: 230px;
  padding: 12px 4px 0;
  background: repeating-linear-gradient(to top, transparent 0 53px, #e8eff6 54px 55px);
  border-bottom: 1px solid #cddbe7;
}

.admin-dashboard-bar-chart__column {
  display: grid;
  grid-template-rows: 28px 168px 25px;
  gap: 5px;
  min-width: 0;
}

.admin-dashboard-bar-chart__values {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 3px;
  color: #52687d;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.admin-dashboard-bar-chart__bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.admin-dashboard-bar-chart__bars i {
  display: block;
  width: min(34%, 30px);
  height: max(4px, var(--dashboard-bar-size));
  background: linear-gradient(180deg, #30aaf4, #0877d1);
  border-radius: 4px 4px 1px 1px;
  box-shadow: 0 7px 16px rgba(8, 119, 209, .18);
}

.admin-dashboard-bar-chart__bars i.is-newsletter {
  background: linear-gradient(180deg, #9e82ee, #7657d5);
  box-shadow: 0 7px 16px rgba(118, 87, 213, .18);
}

.admin-dashboard-bar-chart__bars i.is-work {
  width: min(56%, 52px);
  background: linear-gradient(180deg, #18bdd7, #007caa);
  box-shadow: 0 7px 16px rgba(0, 124, 170, .2);
}

.admin-dashboard-bar-chart__column > strong {
  overflow: hidden;
  color: #60758a;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 950;
  text-align: center;
  text-overflow: ellipsis;
}

.admin-dashboard-progress-card {
  display: grid;
  align-content: start;
}

.admin-dashboard-progress-row {
  display: grid;
  gap: 6px;
  padding: 9px 0;
  border-top: 1px solid #e7eef5;
}

.admin-dashboard-progress-row > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #3e566c;
  font-size: 12px;
  font-weight: 800;
}

.admin-dashboard-progress-row > div strong {
  color: #071936;
  font-weight: 950;
}

.admin-dashboard-progress-track {
  display: block;
  height: 7px;
  overflow: hidden;
  background: #e9f0f6;
  border-radius: 999px;
}

.admin-dashboard-progress-track i {
  display: block;
  width: var(--dashboard-progress-size);
  height: 100%;
  background: linear-gradient(90deg, #0877d1, #21a5eb);
  border-radius: inherit;
}

.admin-dashboard-progress-track i.is-won,
.admin-dashboard-progress-track i.is-published,
.admin-dashboard-progress-track i.is-approved { background: #168365; }
.admin-dashboard-progress-track i.is-lost,
.admin-dashboard-progress-track i.is-do_not_contact,
.admin-dashboard-progress-track i.is-rejected,
.admin-dashboard-progress-track i.is-archived { background: #8093a3; }
.admin-dashboard-progress-track i.is-negotiation,
.admin-dashboard-progress-track i.is-proposal,
.admin-dashboard-progress-track i.is-in_review { background: #c67a09; }
.admin-dashboard-progress-track i.is-ready,
.admin-dashboard-progress-track i.is-scheduled { background: #7657d5; }

.admin-dashboard-ads-summary,
.admin-dashboard-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.admin-dashboard-ads-summary + .admin-dashboard-ads-summary {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e1ebf3;
}

.admin-dashboard-ads-summary > div,
.admin-dashboard-health-grid > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  background: #f3f8fc;
  border: 1px solid #dce8f1;
  border-radius: 6px;
}

.admin-dashboard-ads-summary span,
.admin-dashboard-health-grid span {
  color: #60758a;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.admin-dashboard-ads-summary strong,
.admin-dashboard-health-grid strong {
  overflow-wrap: anywhere;
  color: #071936;
  font-size: 18px;
  font-weight: 950;
}

.admin-dashboard-sync-note {
  margin: 12px 0 0;
  color: #60758a;
  font-size: 11px;
  font-weight: 750;
}

.admin-dashboard-attention-list,
.admin-dashboard-activity-list {
  display: grid;
  gap: 7px;
}

.admin-dashboard-attention-item,
.admin-dashboard-activity-list > a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  color: #203b52;
  background: #f6f9fc;
  border: 1px solid #e0e9f1;
  border-radius: 6px;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease;
}

.admin-dashboard-attention-item:hover,
.admin-dashboard-attention-item:focus-visible,
.admin-dashboard-activity-list > a:hover,
.admin-dashboard-activity-list > a:focus-visible {
  color: #071936;
  background: #edf6fd;
  border-color: #aed4ef;
}

.admin-dashboard-attention-item > span {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: #fff;
  background: #c0392b;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 950;
}

.admin-dashboard-attention-item.is-ok > span { background: #168365; }

.admin-dashboard-attention-item div,
.admin-dashboard-activity-list > a div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.admin-dashboard-attention-item strong,
.admin-dashboard-activity-list strong {
  overflow: hidden;
  color: #163249;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-dashboard-attention-item small,
.admin-dashboard-activity-list small,
.admin-dashboard-activity-list time {
  color: #60758a;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 730;
}

.admin-dashboard-attention-item > b {
  min-width: 30px;
  padding: 4px 7px;
  color: #fff;
  background: #b43127;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  text-align: center;
}

.admin-dashboard-attention-item.is-ok > b { background: #168365; }

.admin-dashboard-activity-list > a > span {
  width: 9px;
  height: 9px;
  background: #168365;
  border-radius: 50%;
}

.admin-dashboard-activity-list > a > span.is-error,
.admin-dashboard-activity-list > a > span.is-denied { background: #c0392b; }
.admin-dashboard-activity-list > a > span.is-rejected,
.admin-dashboard-activity-list > a > span.is-not_found { background: #c67a09; }

.admin-dashboard-activity-list time {
  text-align: right;
  white-space: nowrap;
}

.admin-dashboard-empty-state {
  margin: 0;
  padding: 18px;
  color: #60758a;
  background: #f5f9fc;
  border: 1px dashed #c8d8e5;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 750;
  text-align: center;
}

.admin-panel {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(0, 43, 115, .08);
}

.admin-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #e1ebf7;
}

.admin-panel__header h2 {
  margin: 0;
  color: #071936;
  font-size: 18px;
  font-weight: 950;
}

.admin-panel__header p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.admin-table-wrap {
  position: relative;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: #6f8caf #e8f0f7;
  scrollbar-width: thin;
}

.admin-scroll-hint {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  margin: 0;
  padding: 7px 12px;
  color: #425b71;
  background: #edf5fb;
  border-bottom: 1px solid #d5e3ee;
  font-size: 11px;
  font-weight: 850;
}

.admin-scroll-hint span {
  color: #0057b8;
  font-size: 16px;
}

.admin-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  color: #1c304c;
  font-size: 14px;
}

.admin-table--contacts {
  min-width: 1040px;
}

.admin-table th,
.admin-table td {
  padding: 16px 18px;
  vertical-align: top;
  border-bottom: 1px solid #e7eff9;
  text-align: left;
}

.admin-table th {
  color: #64748b;
  background: #f5f9ff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.admin-table tbody tr:hover {
  background: #f8fbff;
}

.admin-table strong,
.admin-table small,
.admin-table a {
  display: block;
}

.admin-table strong {
  color: #071936;
  font-weight: 950;
}

.admin-table small {
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.admin-table a {
  width: fit-content;
  margin-top: 5px;
  color: #0057ff;
  font-weight: 800;
  text-decoration: none;
}

.admin-table a:hover {
  color: #003bb5;
}

.admin-table__date {
  white-space: nowrap;
  color: #17324a;
  font-weight: 850;
}

.admin-table__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-inline-form {
  display: inline-flex;
  margin: 0;
}

.admin-icon-button {
  display: inline-grid !important;
  place-items: center;
  flex: 0 0 auto;
  width: 44px !important;
  height: 44px;
  margin: 0 !important;
  padding: 0;
  color: #0057ff !important;
  background: #eef5ff;
  border: 1px solid #cfe0f5;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .16s ease, color .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.admin-icon-button svg {
  width: 20px;
  height: 20px;
}

.admin-icon-button:hover,
.admin-icon-button:focus-visible {
  color: #003bb5 !important;
  background: #fff;
  border-color: #0057ff;
  box-shadow: 0 10px 22px rgba(0, 87, 255, .14);
  outline: 0;
  transform: translateY(-1px);
}

.admin-icon-button--danger {
  color: #b42318 !important;
  background: #fff1f0;
  border-color: #ffc9c4;
}

.admin-icon-button--danger:hover,
.admin-icon-button--danger:focus-visible {
  color: #941d14 !important;
  border-color: #b42318;
  box-shadow: 0 10px 22px rgba(180, 35, 24, .14);
}

.admin-message {
  max-width: 420px;
  max-height: 108px;
  margin: 0;
  overflow: auto;
  color: #17324a;
  line-height: 1.55;
  white-space: pre-line;
}

.admin-source-link {
  margin-top: 9px !important;
  font-size: 12px;
}

.admin-locale,
.admin-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.admin-locale {
  color: #17324a;
  background: #f1f6fd;
  border-color: #dbe7f5;
}

.admin-status--pending {
  color: #7a4a05;
  background: #fff7df;
  border-color: #f1d88b;
}

.admin-status--sent {
  color: #11623d;
  background: #eefcf5;
  border-color: #bdebd3;
}

.admin-status--contacted {
  color: #0b6038;
  background: #f4fcf7;
  border-color: #36a66e;
  box-shadow: inset 0 0 0 1px rgba(54, 166, 110, .12);
}

.admin-status--failed {
  color: #b42318;
  background: #fff1f0;
  border-color: #ffc9c4;
}

.admin-empty {
  display: grid;
  gap: 6px;
  padding: 36px;
  text-align: center;
}

.admin-empty--compact {
  padding: 8px 0;
  text-align: left;
}

.admin-empty span {
  color: #64748b;
  font-weight: 650;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  color: #64748b;
  border-top: 1px solid #e1ebf7;
  font-size: 14px;
  font-weight: 800;
}

.admin-pagination > div {
  display: flex;
  gap: 8px;
}

.admin-page-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: #17324a;
  background: #fff;
  border: 1px solid #cfdceb;
  border-radius: 8px;
  text-decoration: none;
}

.admin-page-link:not(.is-disabled):hover {
  color: #0057ff;
  border-color: #0057ff;
}

.admin-page-link.is-disabled {
  color: #9baabe;
  background: #f7fbff;
}

.admin-detail-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.admin-detail-group {
  min-width: 0;
  padding: 20px;
  border-bottom: 1px solid #e7eff9;
}

.admin-detail-group:nth-child(odd) {
  border-right: 1px solid #e7eff9;
}

.admin-detail-group h3 {
  margin: 0 0 14px;
  color: #071936;
  font-size: 16px;
  font-weight: 950;
}

.admin-detail-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.admin-detail-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid #edf3fb;
}

.admin-detail-row:first-child {
  border-top: 0;
}

.admin-detail-row dt {
  color: #64748b;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.admin-detail-value {
  min-width: 0;
  margin: 0;
  color: #1c304c;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.admin-detail-value a {
  color: #0057ff;
  text-decoration: none;
}

.admin-detail-value a:hover {
  color: #003bb5;
}

.admin-detail-value--multiline {
  white-space: normal;
}

.admin-detail-value--code pre,
.admin-detail-value pre {
  max-width: 100%;
  max-height: 320px;
  margin: 0;
  overflow: auto;
  padding: 12px;
  color: #eaf7ff;
  background: #061425;
  border-radius: 8px;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
}

.admin-muted {
  color: #52647c;
}

@media (max-width: 900px) {
  .client-approval-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .client-approval-filters,
  .client-approval-filters--admin { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-editor-jump-nav { top: 68px; }
  .admin-body--backoffice .blog-editor-form .blog-editor-toolbar { top: 124px; }

  .admin-scroll-hint:not([hidden]) {
    display: flex;
  }

  .admin-login {
    padding: 20px;
  }

  .admin-login__shell {
    min-height: calc(100vh - 40px);
  }

  .admin-login__card {
    margin: 0 auto;
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-dashboard-analytics-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-dashboard--sidebar {
    display: block;
  }

  .admin-sidebar {
    position: static;
    width: 100%;
    padding: 14px 16px;
    box-shadow: none;
  }

  .admin-sidebar__mobile-toggle {
    display: inline-flex;
  }

  .admin-sidebar__nav {
    display: none;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 14px;
    overflow: visible;
    padding: 12px;
    background: rgba(1, 18, 32, .44);
    border: 1px solid rgba(153, 212, 225, .18);
    border-radius: 10px;
  }

  .admin-sidebar.is-navigation-open .admin-sidebar__nav {
    display: flex;
  }

  .admin-sidebar__link {
    grid-template-columns: 22px minmax(0, 1fr);
    width: 100%;
  }

  .admin-sidebar__group {
    width: 100%;
  }

  .admin-sidebar__group-trigger {
    grid-template-columns: 22px minmax(0, 1fr) 15px;
  }

  .admin-sidebar__submenu {
    margin: 6px 0 0 16px;
  }

  .admin-sidebar__copyright {
    margin-top: 12px;
  }

  .admin-sidebar__footer {
    margin-top: 16px;
  }

  .admin-dashboard__content {
    margin-left: 0;
  }

  .admin-dashboard__hero {
    padding: 22px;
  }

  .admin-detail-groups {
    grid-template-columns: 1fr;
  }

  .admin-detail-group:nth-child(odd) {
    border-right: 0;
  }

  .admin-detail-row {
    grid-template-columns: 150px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .admin-dashboard__hero--with-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-dashboard__hero-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-start;
    margin-left: 0;
  }

  .admin-dashboard__hero-actions > *,
  .admin-dashboard__hero-actions form,
  .admin-dashboard__hero-actions .admin-page-link,
  .admin-dashboard__hero-actions .admin-button {
    width: 100%;
  }

  .client-approval-filters,
  .client-approval-filters--admin,
  .client-approval-metrics,
  .client-approval-summary dl,
  .client-approval-decision-grid,
  .client-approval-evidence__grid,
  .client-approval-send-dialog__summary,
  .client-approval-delete-dialog__summary { grid-template-columns: minmax(0, 1fr); }
  .client-approval-decision-card--actor { grid-column: auto; }
  .client-approval-evidence__wide { grid-column: auto; }
  .client-approval-send-dialog__recipients { grid-column: auto; }
  .client-approval-delete-dialog__title { grid-column: auto; }
  .client-approval-send-dialog__actions,
  .client-approval-entry-completion-dialog__actions,
  .client-approval-delete-dialog__actions { align-items: stretch; flex-direction: column-reverse; }
  .client-approval-evidence-dialog .admin-panel__header { align-items: stretch; flex-direction: column; }
  .client-approval-evidence-dialog .admin-panel__header .admin-button { width: 100%; }
  .client-approval-send-dialog__actions .admin-button,
  .client-approval-entry-completion-dialog__actions .admin-button,
  .client-approval-delete-dialog__actions .admin-button { width: 100%; }
  .admin-shell {
    width: min(100% - 28px, 1180px);
  }

  .admin-body--backoffice .admin-dashboard__main.admin-shell {
    width: calc(100% - 28px);
  }

  .admin-login {
    padding: 14px;
  }

  .admin-login__card {
    padding: 22px;
  }

  .admin-login__heading h2 {
    font-size: 24px;
  }

  .admin-topbar__inner,
  .admin-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-section-heading,
  .admin-dashboard-analytics-card__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-dashboard-section-heading > span {
    white-space: normal;
  }

  .admin-dashboard-kpi-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-kpi > small {
    min-height: 0;
  }

  .admin-dashboard-analytics-card,
  .admin-dashboard-progress-card,
  .admin-dashboard-health-card,
  .admin-dashboard-attention-card,
  .admin-dashboard-activity-card {
    padding: 16px;
  }

  .admin-dashboard-chart-legend {
    justify-content: flex-start;
  }

  .admin-dashboard-bar-chart {
    gap: 5px;
    min-height: 208px;
  }

  .admin-dashboard-bar-chart__column {
    grid-template-rows: 24px 146px 24px;
  }

  .admin-dashboard-bar-chart__values {
    font-size: 8px;
  }

  .admin-dashboard-attention-item small {
    display: none;
  }

  .admin-dashboard-activity-list > a {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .admin-dashboard-activity-list time {
    grid-column: 2;
    text-align: left;
  }

  .admin-panel__header {
    padding: 16px;
  }

  .admin-table th,
  .admin-table td {
    padding: 14px;
  }

  .admin-detail-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Klientsky portal a tikety */
.client-portal-topbar { justify-content: space-between; }
.client-portal-topbar__company { display: grid; gap: 2px; min-width: 0; }
.client-portal-topbar__company small { color: var(--admin-muted, #63788d); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.client-portal-topbar__company strong { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-portal-notification-link { position: relative; display: inline-grid; width: 44px; height: 44px; place-items: center; color: var(--admin-text, #0b2944); border: 1px solid var(--admin-border, #d6e2ec); border-radius: 12px; background: var(--admin-surface, #fff); }
.client-portal-notification-link svg { width: 22px; height: 22px; }
.client-portal-notification-link > span { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; color: #fff; background: #c62323; font-size: .7rem; font-weight: 900; line-height: 20px; text-align: center; }
.client-portal-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.client-portal-dashboard .admin-stat-card {
  position: relative;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.client-portal-dashboard .admin-stat-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, #0057ff, #16a8d8);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.client-portal-dashboard .admin-stat-card:is(:hover, :focus-visible) {
  color: inherit;
  background: #fafdff;
  border-color: #69bce4;
  box-shadow: 0 20px 42px rgba(0, 72, 156, .16);
  outline: none;
  transform: translateY(-3px);
}
.client-portal-dashboard .admin-stat-card:is(:hover, :focus-visible)::before { transform: scaleX(1); }
.client-portal-dashboard .admin-stat-card:is(:hover, :focus-visible) strong { color: #0057c8; }
.client-portal-consumption__body { display: grid; gap: 18px; padding: 20px 22px 22px; }
.client-portal-consumption__link { color: inherit; text-decoration: none; border-radius: 0 0 16px 16px; outline: none; }
.client-portal-consumption__link .client-portal-consumption__stats article,
.client-portal-consumption__link .work-report-package-overview article,
.client-portal-consumption__link .work-report-tariff-summary article {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.client-portal-consumption__link .client-portal-consumption__stats article:hover,
.client-portal-consumption__link:is(:focus-visible) .client-portal-consumption__stats article {
  background: #fafdff;
  border-color: #69bce4;
  box-shadow: 0 14px 30px rgba(0, 72, 156, .14);
  transform: translateY(-3px);
}
.client-portal-consumption__link .work-report-package-overview article:hover,
.client-portal-consumption__link .work-report-tariff-summary article:hover,
.client-portal-consumption__link:is(:focus-visible) :is(.work-report-package-overview article, .work-report-tariff-summary article) {
  border-color: #69bce4;
  box-shadow: 0 12px 26px rgba(0, 72, 156, .12);
  transform: translateX(3px);
}
.client-portal-consumption__link:focus-visible { box-shadow: inset 0 0 0 3px rgba(22, 168, 216, .42); }
.client-portal-consumption__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.client-portal-consumption__stats article { display: grid; align-content: start; gap: 5px; min-width: 0; padding: 16px; color: var(--admin-text, #17324a); background: var(--admin-surface-soft, #f7fafc); border: 1px solid var(--admin-border, #dce6ef); border-radius: 12px; }
.client-portal-consumption__stats article.is-over { color: #8f2525; background: #fff4f2; border-color: #e5ada5; }
.client-portal-consumption__stats span { color: var(--admin-muted, #63788d); font-size: .72rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.client-portal-consumption__stats strong { overflow-wrap: anywhere; font-size: 1.12rem; line-height: 1.25; }
.client-portal-consumption__stats small { color: var(--admin-muted, #63788d); line-height: 1.45; }
.client-portal-consumption__details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 16px; }
.client-portal-consumption__details > * { min-width: 0; }
.client-portal-consumption__details > :only-child { grid-column: 1 / -1; }
.client-portal-consumption__tariffs { display: grid; align-content: start; gap: 12px; padding: 14px 16px; color: #17324a; background: #f3faff; border: 1px solid #b7d9ea; border-radius: 13px; }
.client-portal-consumption__tariff-heading { display: grid; gap: 3px; }
.client-portal-consumption__tariff-heading h3 { margin: 0; font-size: .76rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.client-portal-consumption__tariff-heading small { color: #526b7c; }
.client-portal-consumption .work-report-package-overview { margin: 0; }
.client-portal-consumption__details .work-report-package-overview { display: grid; align-content: start; gap: 12px; }
.client-portal-consumption__details .work-report-package-overview__heading { display: grid; gap: 3px; }
.client-portal-consumption__details .work-report-package-overview__items { grid-template-columns: minmax(0, 1fr); }
.client-portal-consumption .work-report-tariff-summary { padding: 0; }
.client-portal-consumption .work-report-tariff-summary .admin-empty { padding: 18px; border: 1px dashed var(--admin-border, #dce6ef); border-radius: 12px; }
.client-portal-consumption__empty { padding: 28px 22px; }
.client-work-report-pdf-state { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 9px; color: var(--admin-muted, #63788d); background: var(--admin-surface-soft, #f4f8fb); border: 1px solid var(--admin-border, #dce6ef); border-radius: 999px; font-size: .74rem; font-weight: 850; white-space: nowrap; }
.client-work-report-pdf-state--ready { color: #11623d; background: #eefcf5; border-color: #bdebd3; }
.client-work-report-notice { margin-bottom: 0; }
.client-work-report-entries { min-width: 0; }
.client-work-report-entries .admin-table { min-width: 760px; }
.client-work-report-entries .admin-table th:nth-child(1),
.client-work-report-entries .admin-table td:nth-child(1),
.client-work-report-entries .admin-table th:nth-child(2),
.client-work-report-entries .admin-table td:nth-child(2) { white-space: nowrap; }
.client-work-report-tariff { display: inline-flex; align-items: center; gap: 8px; color: var(--admin-text, #17324a); font-weight: 850; }
.client-work-report-tariff i { display: block; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--tariff-color); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tariff-color) 18%, transparent); }
.client-work-report-description { min-width: 280px; white-space: pre-line; overflow-wrap: anywhere; line-height: 1.55; }
.client-portal-dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.client-portal-dashboard-grid--single { grid-template-columns: minmax(0, 1fr); }
.client-portal-list { display: grid; gap: 0; padding: 0 22px; }
.client-portal-list > a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 14px 0; color: inherit; text-decoration: none; border-bottom: 1px solid var(--admin-border, #dce6ef); }
.client-portal-list > a:last-child { border-bottom: 0; }
.client-portal-dashboard .client-portal-list > a {
  transition: color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.client-portal-dashboard .client-portal-list > a:is(:hover, :focus-visible) {
  color: #064e7a;
  background: #f2f9fd;
  box-shadow: inset 3px 0 #16a8d8;
  outline: none;
  transform: translateX(3px);
}
.client-portal-list > a > span { display: grid; gap: 5px; min-width: 0; }
.client-portal-list strong, .client-portal-list small { display: block; min-width: 0; }
.client-portal-list strong { overflow-wrap: anywhere; }
.client-portal-list small { color: var(--admin-muted, #63788d); line-height: 1.35; }
.client-ticket-status { display: inline-flex; width: fit-content; align-items: center; justify-content: center; padding: 5px 10px; border-radius: 999px; color: #174363; background: #e7f2f9; font-size: .76rem; font-weight: 900; white-space: nowrap; }
.client-ticket-status--new, .client-ticket-status--waiting, .client-ticket-status.is-waiting { color: #815600; background: #fff1c8; }
.client-ticket-status--active, .client-ticket-status--progress, .client-ticket-status.is-active { color: #075a91; background: #dff2ff; }
.client-ticket-status--resolved, .client-ticket-status--closed, .client-ticket-status.is-resolved { color: #087052; background: #dff7ed; }
.client-ticket-status--danger, .client-ticket-status.is-closed { color: #a51e1e; background: #ffe7e7; }
.ticketing-list-panel__filters { padding: 20px 22px; border-bottom: 1px solid var(--admin-border, #dce6ef); }
.ticketing-form-panel { padding: 24px; }
.ticketing-panel-form { display: grid; gap: 16px; padding: 20px 22px 22px; }
.client-ticket-filters { grid-template-columns: minmax(260px, 2fr) minmax(180px, 1fr); }
.support-ticket-filters { grid-template-columns: minmax(260px, 2fr) repeat(2, minmax(160px, 1fr)) minmax(150px, auto); }
.client-approval-portal-filter { grid-template-columns: minmax(220px, 360px); }
.support-ticket-mine {
  display: inline-flex !important;
  align-items: center;
  align-self: end;
  justify-content: flex-start;
  gap: 10px !important;
  min-height: 42px;
  padding: 9px 13px;
  color: var(--admin-text, #17324a);
  background: var(--admin-surface-soft, #f7fafc);
  border: 1px solid var(--admin-border, #b9ceda);
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
}
.support-ticket-mine input[type="hidden"] { display: none; }
.work-report-filters .support-ticket-mine input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: #0057ff;
  box-shadow: none;
}
.support-ticket-mine span { line-height: 1.2; }
.client-ticket-form { display: grid; grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr); gap: 22px; }
.client-ticket-form__main, .client-ticket-form__side, .client-profile-password { display: grid; gap: 16px; align-content: start; }
.client-ticket-sla { padding: 16px; border: 1px solid #9fd7f1; border-radius: 14px; background: #eef9ff; }
.client-ticket-sla strong, .client-ticket-sla span { display: block; }
.client-ticket-sla span { margin-top: 5px; color: #356078; }
.client-ticket-sla--inactive { color: #704400; border-color: #e5b55f; background: #fff7df; }
.client-ticket-sla--inactive span { color: #704400; }
.client-ticket-sla-choice { display: grid; gap: 11px; min-width: 0; padding: 16px; border: 1px solid #e5b55f; border-radius: 14px; background: #fffaf0; }
.client-ticket-sla-choice__switch { display: flex; align-items: flex-start; gap: 10px; color: #704400; font-size: .82rem; font-weight: 800; line-height: 1.4; cursor: pointer; }
.client-ticket-sla-choice__switch input { flex: none; width: 18px; min-width: 18px; max-width: 18px; height: 18px; min-height: 18px; max-height: 18px; margin: 1px 0 0; padding: 0; appearance: auto; accent-color: #ac670c; box-shadow: none; }
.client-ticket-sla-choice p { margin: 0; color: #704400; font-size: .74rem; line-height: 1.5; }
.client-ticket-sla-choice__reason { min-width: 0; }
.client-ticket-sla-choice__reason textarea { width: 100%; min-height: 90px; }
.client-ticket-detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, .8fr); gap: 18px; align-items: start; }
.client-ticket-sidebar { display: grid; gap: 18px; }
.client-ticket-summary dl, .client-company-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 20px 22px; }
.client-ticket-summary dl > div, .client-company-details > div, .client-profile-security { padding: 14px; border: 1px solid var(--admin-border, #dce6ef); border-radius: 12px; background: var(--admin-surface-soft, #f7fafc); }
.client-ticket-summary dt, .client-company-details dt { color: var(--admin-muted, #63788d); font-size: .72rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.client-ticket-summary dd, .client-company-details dd { margin: 4px 0 0; color: var(--admin-text, #17324a); font-weight: 800; }
.client-ticket-service { max-width: 100%; padding: 7px 10px; color: var(--admin-text, #17324a); background: var(--admin-surface, #fff); border: 1px solid var(--admin-border, #dce6ef); border-left: 4px solid var(--tariff-color); border-radius: 10px; line-height: 1.4; }
.client-ticket-service i { box-shadow: 0 0 0 3px color-mix(in srgb, var(--tariff-color) 18%, transparent); }
.client-ticket-service strong { min-width: 0; overflow-wrap: anywhere; }
.client-ticket-list th:nth-child(2),
.client-ticket-list td:nth-child(2) { min-width: 210px; }
.client-ticket-list th:nth-child(3),
.client-ticket-list td:nth-child(3) { min-width: 180px; }
.client-ticket-list th:first-child,
.client-ticket-list td:first-child,
.client-ticket-list th:nth-child(5),
.client-ticket-list td:nth-child(5) { white-space: nowrap; }
.client-ticket-summary__wide { grid-column: 1 / -1; }
.client-ticket-summary__wide small { display: block; margin-top: 7px; color: var(--admin-muted, #63788d); line-height: 1.45; }
.client-ticket-sla-timing { display: block; margin-top: 6px; color: var(--admin-muted, #63788d); font-size: .75rem; font-weight: 700; line-height: 1.4; }
.client-ticket-sla-timing--met { color: #14734e; }
.client-ticket-sla-timing--late { color: #ae302b; }
html[data-backoffice-theme-resolved="dark"] .client-ticket-sla-timing--met { color: #88e0b5; }
html[data-backoffice-theme-resolved="dark"] .client-ticket-sla-timing--late { color: #ffaaa4; }
.client-ticket-sla-badge { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 9px; border: 1px solid #efbd75; border-radius: 999px; color: #8a4b05; background: #fff3df; font-size: .72rem; font-weight: 900; line-height: 1.35; }
.client-ticket-sla-controls { display: grid; gap: 11px; margin: 0 22px 22px; padding: 17px; border: 1px solid var(--admin-border, #dce6ef); border-radius: 12px; background: var(--admin-surface-soft, #f7fafc); }
.client-ticket-sla-controls h3 { margin: 0; color: var(--admin-text, #17324a); font-size: .86rem; }
.client-ticket-sla-controls p { margin: 0; color: var(--admin-muted, #63788d); font-size: .74rem; line-height: 1.5; }
.client-ticket-sla-controls form { display: grid; gap: 10px; min-width: 0; }
.client-ticket-sla-controls .work-report-field { min-width: 0; }
.client-ticket-sla-controls textarea { width: 100%; min-height: 86px; }
.client-ticket-sla-controls .admin-button { width: 100%; justify-content: center; }
.client-company-sla-state { display: grid; gap: 5px; margin: 20px 22px 0; padding: 14px 16px; border: 1px solid #82cba3; border-radius: 12px; color: #126343; background: #e8f8ef; }
.client-company-sla-state.is-inactive { color: #704400; border-color: #e5b55f; background: #fff7df; }
.client-company-sla-state span { line-height: 1.45; }
.client-company-sla-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px 22px 22px; }
.client-company-sla-times > section { overflow: hidden; border: 1px solid var(--admin-border, #dce6ef); border-radius: 12px; background: var(--admin-surface-soft, #f7fafc); }
.client-company-sla-times h3 { margin: 0; padding: 12px 14px; color: var(--admin-text, #17324a); border-bottom: 1px solid var(--admin-border, #dce6ef); font-size: .8rem; }
.client-company-sla-times dl { display: grid; margin: 0; padding: 5px 14px; }
.client-company-sla-times dl > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; }
.client-company-sla-times dl > div + div { border-top: 1px solid var(--admin-border, #dce6ef); }
.client-company-sla-times dt { color: var(--admin-muted, #63788d); font-size: .7rem; font-weight: 800; }
.client-company-sla-times dd { margin: 0; color: var(--admin-text, #17324a); font-weight: 900; text-align: right; }
.client-ticket-impact { display: inline-flex; max-width: 100%; min-height: 28px; padding: 5px 9px; align-items: center; color: #175b83; background: #eaf6fc; border: 1px solid #8cc7e5; border-radius: 999px; font-size: .72rem; font-weight: 900; line-height: 1.35; }
.client-ticket-impact--low { color: #126343; background: #e8f8ef; border-color: #8fd1ad; }
.client-ticket-impact--medium { color: #175b83; background: #eaf6fc; border-color: #8cc7e5; }
.client-ticket-impact--high { color: #8a4b05; background: #fff3df; border-color: #efbd75; }
.client-ticket-impact--critical { color: #a02424; background: #fff0f0; border-color: #e6a1a1; }
.client-ticket-timeline__items { display: grid; gap: 14px; padding: 20px 22px; }
.client-ticket-message { position: relative; margin-right: 8%; padding: 16px; border: 1px solid var(--admin-border, #dce6ef); border-radius: 15px; background: var(--admin-surface-soft, #f7fafc); overflow-wrap: anywhere; }
.client-ticket-message--client { margin-right: 0; margin-left: 8%; border-color: #9bd5ee; background: #eef9ff; }
.client-ticket-message--internal { border-color: #e3c47d; background: #fff8e6; }
.client-ticket-message header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.client-ticket-message p { margin: 0; white-space: pre-wrap; }
.support-ticket-admin .client-ticket-message--client { width: 92%; margin-right: 0; margin-left: 0; justify-self: start; border-color: #c7d8e2; background: #f3f7f9; }
.support-ticket-admin .client-ticket-message--staff { width: 92%; margin-right: 0; margin-left: 0; justify-self: end; border-color: #8dcbe6; background: #e9f7fd; }
.support-ticket-admin .client-ticket-message--system { width: 92%; margin-right: 0; margin-left: 0; justify-self: center; border-style: dashed; background: #f7fafc; }
.support-ticket-admin .client-ticket-message--staff.client-ticket-message--internal { border-color: #e3c47d; background: #fff8e6; }
.client-ticket-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.client-ticket-files a { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 7px 10px; border: 1px solid var(--admin-border, #dce6ef); border-radius: 9px; background: var(--admin-surface, #fff); }
.client-ticket-files a > span { min-width: 0; overflow-wrap: anywhere; }
.client-ticket-files a > small { flex-shrink: 0; white-space: nowrap; }
.client-ticket-files a > .client-ticket-files__download { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px; width: 28px; min-width: 28px; max-width: 28px; height: 28px; min-height: 28px; max-height: 28px; border: 1px solid var(--admin-border, #dce6ef); border-radius: 6px; background: var(--admin-surface-soft, #f7fafc); }
.client-ticket-files__download > .admin-button__icon { flex: 0 0 18px; width: 18px; min-width: 18px; max-width: 18px; height: 18px; min-height: 18px; max-height: 18px; }
.client-ticket-files__pending { display: inline-flex; flex-wrap: wrap; gap: 5px; align-items: center; padding: 7px 10px; border: 1px solid var(--admin-border, #dce6ef); border-radius: 9px; color: var(--admin-text, #17324a); background: var(--admin-surface, #fff); }
.client-ticket-files__pending small { font-weight: 700; opacity: .85; }
.client-ticket-reply, .client-ticket-team-form, .client-ticket-report-link, .client-access-create { display: grid; gap: 14px; }
.client-ticket-reply { padding: 20px 22px 22px; border-top: 1px solid var(--admin-border, #dce6ef); }
.client-ticket-reply[hidden], .client-ticket-chat-closed[hidden], [data-ticket-chat-feedback][hidden] { display: none; }
.client-ticket-chat-closed { margin: 0; padding: 20px 22px 22px; border-top: 1px solid var(--admin-border, #dce6ef); color: var(--admin-muted, #63788d); }
.client-ticket-team-form, .client-ticket-report-link { padding: 20px 22px 22px; }
.client-ticket-work-entry-form .admin-button { width: 100%; }
.client-ticket-work-entry-empty { margin: 18px 22px 22px; }
.client-ticket-team { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 22px 22px; }
.client-ticket-team span, .client-company-services > * { padding: 7px 10px; border-radius: 999px; background: var(--admin-surface-soft, #eef3f7); }
.client-company-services > * { color: var(--admin-text, #17324a); border: 1px solid var(--admin-border, #dce6ef); }
.client-ticket-work-entries { display: grid; gap: 10px; margin: 0; padding: 20px 22px 0; }
.client-ticket-work-entries a { display: grid; gap: 3px; padding: 12px; color: inherit; text-decoration: none; border: 1px solid var(--admin-border, #dce6ef); border-radius: 12px; }
.client-ticket-work-entries .client-ticket-work-entry-link { grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.client-ticket-work-entry-link__content { display: grid; gap: 3px; min-width: 0; }
.client-ticket-work-entry-link__icon { flex: 0 0 auto; pointer-events: none; }
.ticket-attachment-picker { display: grid; gap: 10px; min-width: 0; }
.ticket-attachment-picker kbd { display: inline-flex; min-width: 25px; min-height: 23px; padding: 2px 6px; align-items: center; justify-content: center; color: #17324a; background: #eef4f8; border: 1px solid #b9ceda; border-bottom-width: 2px; border-radius: 6px; font: inherit; font-size: .68rem; font-weight: 850; line-height: 1; }
.ticket-attachment-picker__status { margin: 0; padding: 10px 12px; color: #126343; background: #ecf9f2; border: 1px solid #9bd5b8; border-radius: 9px; font-size: .75rem; font-weight: 750; line-height: 1.45; }
.ticket-attachment-picker__status.is-error { color: #9c2c2c; background: #fff1f1; border-color: #efb1b1; }
.ticket-attachment-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.ticket-attachment-preview__item { position: relative; display: grid; grid-template-rows: 112px auto; min-width: 0; overflow: hidden; color: #17324a; background: #f7fafc; border: 1px solid #cbdde7; border-radius: 12px; }
.ticket-attachment-preview__media { display: grid; place-items: center; min-width: 0; overflow: hidden; color: #31536a; background: #e9f2f7; border-bottom: 1px solid #cbdde7; }
.ticket-attachment-preview__media img { width: 100%; height: 100%; object-fit: cover; }
.ticket-attachment-preview__media span { padding: 8px 10px; border: 1px solid #9fb9c8; border-radius: 8px; font-size: .74rem; font-weight: 900; letter-spacing: .06em; }
.ticket-attachment-preview__copy { display: grid; gap: 3px; min-width: 0; padding: 10px 12px 12px; }
.ticket-attachment-preview__copy strong { overflow: hidden; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.ticket-attachment-preview__copy small { color: #526b7c; font-size: .68rem; }
.ticket-attachment-preview__remove { position: absolute; z-index: 2; top: 7px; right: 7px; display: grid; width: 30px; height: 30px; padding: 0; place-items: center; color: #fff; background: rgba(109, 18, 18, .9); border: 1px solid rgba(255, 255, 255, .65); border-radius: 50%; box-shadow: 0 4px 12px rgba(0, 0, 0, .24); font-size: 1.25rem; font-weight: 800; line-height: 1; cursor: pointer; }
.ticket-attachment-preview__remove:hover,
.ticket-attachment-preview__remove:focus-visible { background: #8f1515; outline: 3px solid rgba(255, 107, 107, .32); outline-offset: 2px; }
.client-portal-approval-copy { padding: 20px 22px 4px; white-space: pre-wrap; }
.client-portal-approval-copy > :first-child { margin-top: 0; }
.client-portal-approval-copy > :last-child { margin-bottom: 0; }
.client-portal-approval-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 22px 22px; }
.client-portal-approval-metrics > div { padding: 14px; border: 1px solid var(--admin-border, #dce6ef); border-radius: 12px; }
.client-portal-approval-metrics span, .client-portal-approval-metrics strong { display: block; }
.client-portal-decision__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.client-portal-decision__actions .admin-button { width: 100%; }
.client-company-services { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 22px 22px; }
.client-company-services .work-report-rate-heading { border-left: 4px solid var(--tariff-color); }
.client-company-access-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; padding: 20px 22px 22px; }
.client-company-access-list article { display: flex; min-width: 0; padding: 14px; align-items: center; justify-content: space-between; gap: 12px; color: var(--admin-text, #17324a); background: var(--admin-surface-soft, #f7fafc); border: 1px solid var(--admin-border, #dce6ef); border-radius: 12px; }
.client-company-access-list article > div { display: grid; min-width: 0; gap: 3px; }
.client-company-access-list strong, .client-company-access-list small { overflow-wrap: anywhere; }
.client-company-access-list small { color: var(--admin-muted, #63788d); }
.client-company-access-list article > span { flex: 0 0 auto; padding: 5px 8px; color: #126343; background: #e8f8ef; border: 1px solid #8fd1ad; border-radius: 999px; font-size: .68rem; font-weight: 900; }
.client-profile-security { display: flex; justify-content: space-between; gap: 14px; margin: 20px 22px 22px; }
.client-profile-password { padding: 20px 22px 22px; }
.client-portal-approval-statement { margin: 0; padding: 20px 22px 22px; white-space: pre-wrap; overflow-wrap: anywhere; }
.client-access-panel { min-width: 0; }
.client-access-panel > .admin-alert { margin: 18px 22px 0; }
.work-reports-admin .client-access-panel > .admin-table-wrap { width: auto; margin: 10px 22px 0; padding-top: 0; border: 1px solid var(--admin-border, #dce6ef); border-radius: 12px; }
.client-access-panel > .admin-empty { margin: 18px 22px 0; }
.client-access-panel code { display: block; margin-top: 8px; padding: 10px; border-radius: 8px; background: #071d31; color: #fff; font-size: 1rem; overflow-wrap: anywhere; user-select: all; }
.client-access-create { grid-template-columns: minmax(0, 1fr) minmax(150px, .65fr) auto; align-items: end; margin: 18px 22px 22px; }
.client-access-panel .admin-table { min-width: 780px; }
.client-access-scope { display: flex; align-items: center; gap: 6px; min-width: 178px; }
.client-access-scope select { min-width: 0; width: 142px; min-height: 40px; padding: 6px 8px; border: 1px solid var(--admin-border, #c8d9e8); border-radius: 8px; background: var(--admin-surface, #fff); color: var(--admin-text, #08213b); }
.client-access-scope .admin-icon-button { flex: 0 0 40px; width: 40px !important; height: 40px !important; }
.client-access-panel .admin-table th:last-child,
.client-access-panel .admin-table td:last-child { width: 1%; white-space: nowrap; }
.client-access-actions { flex-wrap: nowrap; white-space: nowrap; }
.client-access-actions .admin-icon-button { width: 40px !important; height: 40px; }
.client-access-actions .admin-button__icon--security { width: 22px !important; height: 22px !important; overflow: visible; }
.client-access-actions .admin-button__icon--security * { vector-effect: non-scaling-stroke; }
.client-access-action--password { color: #9a5b08 !important; background: #fff8e8; border-color: #efd49d; }
.client-access-action--password:hover,
.client-access-action--password:focus-visible { color: #754100 !important; border-color: #c78318; box-shadow: 0 10px 22px rgba(154, 91, 8, .16); }

html[data-backoffice-theme-resolved="dark"] .client-ticket-sla { color: #d8effa; border-color: #286179; background: #102e3c; }
html[data-backoffice-theme-resolved="dark"] .client-sla-duration-group { border-color: #45677f; background: #102536; }
html[data-backoffice-theme-resolved="dark"] .client-sla-duration-group__heading { border-color: #45677f; background: #142d3f; }
html[data-backoffice-theme-resolved="dark"] .client-sla-duration-group__heading h3,
html[data-backoffice-theme-resolved="dark"] .client-sla-duration-row > label { color: #f0f7fb; }
html[data-backoffice-theme-resolved="dark"] .client-sla-duration-group__heading p { color: #b9cedc; }
html[data-backoffice-theme-resolved="dark"] .client-sla-duration-row + .client-sla-duration-row { border-color: #345267; }
html[data-backoffice-theme-resolved="dark"] .client-sla-duration-control__field > span { color: #b9cedc; }
html[data-backoffice-theme-resolved="dark"] .client-sla-duration-control input,
html[data-backoffice-theme-resolved="dark"] .client-sla-duration-control select { color: #f0f7fb; background: #0d2231; border-color: #56778d; color-scheme: dark; }
html[data-backoffice-theme-resolved="dark"] .client-sla-duration-control input::placeholder { color: #87a7ba; }
html[data-backoffice-theme-resolved="dark"] .client-sla-duration-control input:hover,
html[data-backoffice-theme-resolved="dark"] .client-sla-duration-control select:hover { border-color: #79b9d4; }
html[data-backoffice-theme-resolved="dark"] .client-sla-duration-control input:focus,
html[data-backoffice-theme-resolved="dark"] .client-sla-duration-control select:focus { outline-color: rgba(91, 192, 235, .28); border-color: #5bc0eb; }
html[data-backoffice-theme-resolved="dark"] .client-ticket-sla span { color: #a9cede; }
html[data-backoffice-theme-resolved="dark"] .client-ticket-sla--inactive,
html[data-backoffice-theme-resolved="dark"] .client-ticket-sla--inactive span { color: #ffe2a6; border-color: #8a6226; background: #392b12; }
html[data-backoffice-theme-resolved="dark"] .client-ticket-sla-choice { border-color: #8a6226; background: #332915; }
html[data-backoffice-theme-resolved="dark"] .client-ticket-sla-choice__switch,
html[data-backoffice-theme-resolved="dark"] .client-ticket-sla-choice p { color: #ffe2a6; }
html[data-backoffice-theme-resolved="dark"] .client-portal-consumption__stats article { color: #f0f7fb; background: #142d3f; border-color: #45677f; }
html[data-backoffice-theme-resolved="dark"] .client-portal-consumption__stats article.is-over { color: #ffd0cb; background: #45231f; border-color: #8f5146; }
html[data-backoffice-theme-resolved="dark"] .client-portal-consumption__stats span,
html[data-backoffice-theme-resolved="dark"] .client-portal-consumption__stats small { color: #b9cedc; }
html[data-backoffice-theme-resolved="dark"] .client-portal-consumption__tariffs { color: #dceaf3; background: #0f2536; border-color: #35576d; }
html[data-backoffice-theme-resolved="dark"] .client-portal-consumption__tariff-heading small { color: #b9cedc; }
html[data-backoffice-theme-resolved="dark"] .client-portal-consumption__link .client-portal-consumption__stats article:hover,
html[data-backoffice-theme-resolved="dark"] .client-portal-consumption__link:is(:focus-visible) .client-portal-consumption__stats article { color: #f0f7fb; background: #173247; border-color: #4d9cc0; box-shadow: 0 16px 34px rgba(0, 0, 0, .3); }
html[data-backoffice-theme-resolved="dark"] .client-portal-consumption__link .work-report-package-overview article:hover,
html[data-backoffice-theme-resolved="dark"] .client-portal-consumption__link .work-report-tariff-summary article:hover,
html[data-backoffice-theme-resolved="dark"] .client-portal-consumption__link:is(:focus-visible) :is(.work-report-package-overview article, .work-report-tariff-summary article) { color: #f0f7fb; background: #173247; border-color: #4d9cc0; box-shadow: 0 14px 30px rgba(0, 0, 0, .28); }
html[data-backoffice-theme-resolved="dark"] .client-portal-dashboard .admin-stat-card:is(:hover, :focus-visible) { color: #f0f7fb; background: #173247; border-color: #4d9cc0; box-shadow: 0 20px 44px rgba(0, 0, 0, .34); }
html[data-backoffice-theme-resolved="dark"] .client-portal-dashboard .admin-stat-card:is(:hover, :focus-visible) strong { color: #7dd8ff; }
html[data-backoffice-theme-resolved="dark"] .client-portal-dashboard .client-portal-list > a:is(:hover, :focus-visible) { color: #f0f7fb; background: #173247; }
html[data-backoffice-theme-resolved="dark"] .client-work-report-pdf-state { color: #c7d8e4; background: #142d3f; border-color: #45677f; }
html[data-backoffice-theme-resolved="dark"] .client-work-report-pdf-state--ready { color: #a8ebcb; background: #12382e; border-color: #36765d; }
html[data-backoffice-theme-resolved="dark"] .client-work-report-tariff { color: #f0f7fb; }
html[data-backoffice-theme-resolved="dark"] .client-access-actions .client-access-action--password { color: #ffd78f !important; background: #3c2f16; border-color: #7d632b; }
html[data-backoffice-theme-resolved="dark"] .client-access-scope select { background: #102b3f; color: #eff8ff; border-color: #56778d; }
html[data-backoffice-theme-resolved="dark"] .client-access-actions .client-access-action--password:hover,
html[data-backoffice-theme-resolved="dark"] .client-access-actions .client-access-action--password:focus-visible { color: #fff0c9 !important; background: #4a3918; border-color: #d49a32; }

@media (prefers-reduced-motion: reduce) {
  .client-portal-dashboard .admin-stat-card,
  .client-portal-dashboard .admin-stat-card::before,
  .client-portal-dashboard .client-portal-list > a,
  .client-portal-consumption__link .client-portal-consumption__stats article,
  .client-portal-consumption__link .work-report-package-overview article,
  .client-portal-consumption__link .work-report-tariff-summary article { transition: none; }
  .client-portal-dashboard .admin-stat-card:is(:hover, :focus-visible),
  .client-portal-dashboard .client-portal-list > a:is(:hover, :focus-visible),
  .client-portal-consumption__link :is(.client-portal-consumption__stats article, .work-report-package-overview article, .work-report-tariff-summary article) { transform: none; }
}
html[data-backoffice-theme-resolved="dark"] .client-ticket-impact--low { color: #a8ebcb; background: #12382e; border-color: #36765d; }
html[data-backoffice-theme-resolved="dark"] .client-ticket-impact--medium { color: #bde7ff; background: #103246; border-color: #34799a; }
html[data-backoffice-theme-resolved="dark"] .client-ticket-impact--high { color: #ffd89a; background: #453015; border-color: #8b6630; }
html[data-backoffice-theme-resolved="dark"] .client-ticket-impact--critical { color: #ffd0cb; background: #45231f; border-color: #8f5146; }
html[data-backoffice-theme-resolved="dark"] .client-ticket-sla-badge { color: #ffd89a; background: #453015; border-color: #8b6630; }
html[data-backoffice-theme-resolved="dark"] .client-ticket-message--client { border-color: #286179; background: #102e3c; }
html[data-backoffice-theme-resolved="dark"] .client-ticket-message--internal { border-color: #725f31; background: #332c19; }
html[data-backoffice-theme-resolved="dark"] .support-ticket-admin .client-ticket-message--client { border-color: #526b7c; background: #1b2b36; }
html[data-backoffice-theme-resolved="dark"] .support-ticket-admin .client-ticket-message--staff { border-color: #34799a; background: #102e3c; }
html[data-backoffice-theme-resolved="dark"] .support-ticket-admin .client-ticket-message--system { border-color: #45677f; background: #142633; }
html[data-backoffice-theme-resolved="dark"] .support-ticket-admin .client-ticket-message--staff.client-ticket-message--internal { border-color: #725f31; background: #332c19; }
html[data-backoffice-theme-resolved="dark"] .client-ticket-service { color: #f0f7fb; background: #142d3f; border-color: #45677f; border-left-color: var(--tariff-color); }
html[data-backoffice-theme-resolved="dark"] .client-company-details > div,
html[data-backoffice-theme-resolved="dark"] .client-company-services > * { color: #f0f7fb; background: #142d3f; border-color: #45677f; }
html[data-backoffice-theme-resolved="dark"] .client-company-details dt { color: #a9c2d3; }
html[data-backoffice-theme-resolved="dark"] .client-company-details dd,
html[data-backoffice-theme-resolved="dark"] .client-company-services .work-report-rate-heading { color: #f0f7fb; border-left-color: var(--tariff-color); }
html[data-backoffice-theme-resolved="dark"] .client-company-sla-state { color: #b9f2d2; border-color: #347a56; background: #153527; }
html[data-backoffice-theme-resolved="dark"] .client-company-sla-state.is-inactive { color: #ffe2a6; border-color: #8a6226; background: #392b12; }
html[data-backoffice-theme-resolved="dark"] .client-company-sla-times > section { border-color: #45677f; background: #142d3f; }
html[data-backoffice-theme-resolved="dark"] .client-company-sla-times h3,
html[data-backoffice-theme-resolved="dark"] .client-company-sla-times dl > div + div { border-color: #45677f; }
html[data-backoffice-theme-resolved="dark"] .client-company-sla-times h3,
html[data-backoffice-theme-resolved="dark"] .client-company-sla-times dd { color: #f0f7fb; }
html[data-backoffice-theme-resolved="dark"] .client-company-sla-times dt { color: #b9cedc; }
html[data-backoffice-theme-resolved="dark"] .client-company-access-list article { color: #f0f7fb; background: #142d3f; border-color: #45677f; }
html[data-backoffice-theme-resolved="dark"] .client-company-access-list small { color: #b9cedc; }
html[data-backoffice-theme-resolved="dark"] .client-company-access-list article > span { color: #a8ebcb; background: #12382e; border-color: #36765d; }
html[data-backoffice-theme-resolved="dark"] .ticket-attachment-picker kbd { color: #f0f7fb; background: #173247; border-color: #56778d; }
html[data-backoffice-theme-resolved="dark"] .ticket-attachment-preview__item { color: #f0f7fb; background: #142d3f; border-color: #45677f; }
html[data-backoffice-theme-resolved="dark"] .ticket-attachment-preview__media { color: #dceaf3; background: #0b1d2b; border-color: #45677f; }
html[data-backoffice-theme-resolved="dark"] .ticket-attachment-preview__copy small { color: #c2d3df; }
html[data-backoffice-theme-resolved="dark"] .ticket-attachment-picker__status { color: #a8ebcb; background: #12382e; border-color: #36765d; }
html[data-backoffice-theme-resolved="dark"] .ticket-attachment-picker__status.is-error { color: #ffd0cb; background: #45231f; border-color: #8f5146; }

@media (max-width: 980px) {
  .client-portal-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-portal-consumption__details { grid-template-columns: minmax(0, 1fr); }
  .client-portal-consumption__details > :only-child { grid-column: auto; }
  .client-portal-dashboard-grid, .client-ticket-detail-grid, .client-ticket-form { grid-template-columns: 1fr; }
  .support-ticket-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1200px) {
  .client-access-create { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .client-portal-topbar__company strong { max-width: 55vw; }
  .client-portal-stats, .client-portal-consumption__stats, .client-ticket-summary dl, .client-company-details, .client-portal-approval-metrics, .client-portal-decision__actions { grid-template-columns: 1fr; }
  .client-ticket-filters, .support-ticket-filters, .client-access-create { grid-template-columns: 1fr; }
  .client-ticket-message, .client-ticket-message--client { margin-right: 0; margin-left: 0; }
  .support-ticket-admin .client-ticket-message--client,
  .support-ticket-admin .client-ticket-message--staff,
  .support-ticket-admin .client-ticket-message--system { width: 100%; }
  .ticketing-list-panel__filters, .ticketing-form-panel, .ticketing-panel-form,
  .client-ticket-timeline__items, .client-ticket-reply, .client-ticket-team-form,
  .client-ticket-report-link, .client-profile-password { padding: 16px; }
  .client-portal-list { padding: 0 16px; }
  .client-ticket-summary dl, .client-company-details { padding: 16px; }
  .client-company-sla-state { margin: 16px 16px 0; }
  .client-company-sla-times { grid-template-columns: 1fr; padding: 12px 16px 16px; }
  .client-sla-duration-row { grid-template-columns: 1fr; }
  .client-sla-duration-control { grid-template-columns: 1fr; }
  .client-ticket-team, .client-profile-security,
  .client-portal-approval-metrics { margin-right: 16px; margin-left: 16px; }
  .client-company-services, .client-company-access-list, .client-portal-approval-statement { padding: 16px; }
  .client-portal-consumption__body { padding: 16px; }
  .client-portal-approval-copy { padding: 16px 16px 4px; }
  .client-ticket-work-entries { padding: 16px 16px 0; }
  .client-ticket-work-entry-empty { margin: 16px; }
  .support-ticket-mine { width: 100%; }
}
.marketing-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.marketing-hero .admin-button {
  flex: 0 0 auto;
}

.marketing-table {
  min-width: 1220px;
}

.marketing-table th:last-child,
.marketing-table td:last-child,
.employees-table th:last-child,
.employees-table td:last-child,
.blog-admin__table th:last-child,
.blog-admin__table td:last-child {
  position: sticky;
  right: 0;
  z-index: 2;
  background: #fff;
  box-shadow: -12px 0 18px -16px rgba(7, 25, 54, .72);
}

.marketing-table th:last-child,
.employees-table th:last-child,
.blog-admin__table th:last-child {
  z-index: 3;
  background: #f5f9ff;
}

.marketing-table tbody tr:hover td:last-child,
.employees-table tbody tr:hover td:last-child,
.blog-admin__table tbody tr:hover td:last-child {
  background: #f8fbff;
}

.marketing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 360px;
}

.marketing-tag {
  display: inline-flex;
  padding: 6px 9px;
  color: #174267;
  background: #edf7ff;
  border: 1px solid #cde7f7;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.marketing-company-form {
  display: grid;
  gap: 18px;
}

.marketing-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.marketing-google-settings {
  grid-column: 1 / -1;
}

.marketing-google-settings[hidden] {
  display: none;
}

.marketing-form-section {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.marketing-form-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.marketing-form-columns .marketing-field:last-child:first-child {
  grid-column: auto;
}

.marketing-field {
  display: grid;
  gap: 8px;
  color: #1c304c;
  font-size: 13px;
  font-weight: 900;
}

.marketing-field input,
.marketing-field textarea,
.marketing-field select,
.marketing-range-form select {
  width: 100%;
  color: #071936;
  background: #f7fbff;
  border: 1px solid #cfdceb;
  border-radius: 8px;
  font: inherit;
  outline: 0;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.marketing-field input,
.marketing-field select {
  min-height: 48px;
  padding: 0 14px;
}

.marketing-field textarea {
  min-height: 118px;
  padding: 13px 14px;
  line-height: 1.55;
  resize: vertical;
}

.marketing-field input:focus,
.marketing-field select:focus,
.marketing-field textarea:focus,
.marketing-range-form select:focus {
  background: #fff;
  border-color: #0057ff;
  box-shadow: 0 0 0 4px rgba(0, 87, 255, .13);
}

.marketing-field small {
  color: #71829a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.marketing-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: #1c304c;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.marketing-toggle input,
.marketing-service-option input {
  width: 18px;
  height: 18px;
  accent-color: #0057ff;
}

.marketing-service-picker {
  display: grid;
  gap: 10px;
}

.marketing-service-option {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  background: #f7fbff;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.marketing-service-option:has(input:checked) {
  background: #eef5ff;
  border-color: #79aaff;
  box-shadow: 0 8px 20px rgba(0, 87, 255, .08);
}

.marketing-service-option input {
  margin-top: 2px;
}

.marketing-service-option strong,
.marketing-service-option small {
  display: block;
}

.marketing-service-option strong {
  color: #071936;
  font-size: 14px;
  font-weight: 950;
}

.marketing-service-option small {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.marketing-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.marketing-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.marketing-info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 4px 20px 20px;
}

.marketing-info-list > div {
  min-width: 0;
  padding: 16px 0;
  border-bottom: 1px solid #e7eff9;
}

.marketing-info-list > div:nth-child(odd) {
  padding-right: 16px;
}

.marketing-info-list > div:nth-child(even) {
  padding-left: 16px;
  border-left: 1px solid #e7eff9;
}

.marketing-info-list span,
.marketing-info-list strong,
.marketing-info-list a {
  display: block;
}

.marketing-info-list span,
.marketing-notes > span {
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.marketing-info-list strong,
.marketing-info-list a {
  margin-top: 6px;
  color: #1c304c;
  font-size: 14px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.marketing-info-list a {
  color: #0057ff;
  text-decoration: none;
}

.marketing-notes {
  margin: 0 20px 20px;
  padding: 16px;
  color: #17324a;
  background: #f7fbff;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
}

.marketing-notes p {
  margin: 7px 0 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  white-space: pre-line;
}

.marketing-service-list {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.marketing-service-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: #f7fbff;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
}

.marketing-service-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #0057ff;
  background: #e9f2ff;
  border-radius: 8px;
}

.marketing-service-card__icon svg {
  width: 22px;
  height: 22px;
}

.marketing-service-card strong,
.marketing-service-card small {
  display: block;
}

.marketing-service-card strong {
  color: #071936;
  font-size: 14px;
  font-weight: 950;
}

.marketing-service-card small {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.marketing-panel-header,
.marketing-header-actions,
.marketing-report-toolbar,
.marketing-report-actions,
.marketing-range-form {
  display: flex;
  align-items: center;
}

.marketing-panel-header,
.marketing-report-toolbar {
  justify-content: space-between;
}

.marketing-header-actions,
.marketing-report-actions,
.marketing-range-form {
  gap: 10px;
}

.marketing-inline-alert {
  margin: 20px;
}

.marketing-inline-alert--action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.marketing-inline-alert--action .admin-button {
  flex: 0 0 auto;
}

.marketing-report-toolbar {
  gap: 18px;
  padding: 18px 20px;
  background: #f7fbff;
  border-bottom: 1px solid #e1ebf7;
}

.marketing-range-form label {
  color: #17324a;
  font-size: 13px;
  font-weight: 900;
}

.marketing-range-form select {
  width: auto;
  min-width: 190px;
  height: 42px;
  padding: 0 36px 0 12px;
  font-size: 13px;
  font-weight: 850;
}

.marketing-report-actions form {
  margin: 0;
}

.marketing-link-button {
  cursor: pointer;
  font: inherit;
}

.marketing-link-button--danger {
  color: #b42318;
  border-color: #ffc9c4;
}

.marketing-sync-note {
  margin: 14px 20px 0;
  color: #52647c;
  font-size: 12px;
  font-weight: 750;
}

.marketing-report-loader {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px;
  padding: 18px 20px;
  color: #16385f;
  background: #f2f8ff;
  border: 1px solid #cfe2f7;
  border-radius: 10px;
}

.marketing-report-loader__spinner {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 3px solid #bfd7f0;
  border-top-color: #0057ff;
  border-radius: 50%;
  animation: marketing-report-spin .8s linear infinite;
}

.marketing-report-loader strong,
.marketing-report-loader small {
  display: block;
}

.marketing-report-loader strong {
  font-size: 14px;
}

.marketing-report-loader small {
  margin-top: 4px;
  color: #5d728a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.marketing-service-option--disabled {
  color: #8b98a8;
  background: #f3f5f7;
  border-color: #e1e6eb;
  cursor: not-allowed;
  box-shadow: none;
  opacity: .78;
}

.marketing-service-option--disabled:hover,
.marketing-service-option--disabled:has(input:checked) {
  background: #f3f5f7;
  border-color: #e1e6eb;
  box-shadow: none;
}

.marketing-service-option--disabled input {
  accent-color: #a5afbb;
  cursor: not-allowed;
}

.marketing-service-option--disabled strong,
.marketing-service-option--disabled small {
  color: #7d8996;
}

.marketing-service-option__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.marketing-service-option__heading em {
  padding: 4px 7px;
  color: #667382;
  background: #e4e8ec;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.marketing-report-loader--error {
  color: #8f1d15;
  background: #fff6f5;
  border-color: #ffc9c4;
}

@keyframes marketing-report-spin {
  to {
    transform: rotate(360deg);
  }
}

.marketing-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 20px;
}

.marketing-kpi {
  min-width: 0;
  padding: 16px;
  background: #f7fbff;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
}

.marketing-kpi span,
.marketing-kpi strong {
  display: block;
}

.marketing-kpi span {
  color: #64748b;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.marketing-kpi strong {
  margin-top: 8px;
  color: #071936;
  font-size: 24px;
  font-weight: 950;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.marketing-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 20px 20px;
}

.marketing-chart-card {
  min-width: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
}

.marketing-chart-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.marketing-chart-heading h3,
.marketing-section-heading h3 {
  margin: 0;
  color: #071936;
  font-size: 16px;
  font-weight: 950;
}

.marketing-chart-heading p,
.marketing-section-heading p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.marketing-chart-legends {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.marketing-chart-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #52647c;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.marketing-chart-legend i {
  width: 9px;
  height: 9px;
  background: #0057ff;
  border-radius: 50%;
}

.marketing-chart-legend i.is-cyan {
  background: #1aa7c8;
}

.marketing-chart-legend i.is-green {
  background: #14945f;
}

.marketing-chart-card canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 280px;
}

.marketing-campaigns {
  margin: 0 20px 20px;
  overflow: hidden;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
}

.marketing-section-heading {
  padding: 18px;
  border-bottom: 1px solid #e1ebf7;
}

.marketing-campaign-table {
  min-width: 980px;
}

.report-table-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  padding: 12px 14px;
  background: #f8fbff;
  border-bottom: 1px solid #e1ebf7;
}

.report-table-search,
.report-table-page-size {
  display: grid;
  gap: 5px;
}

.report-table-search span,
.report-table-page-size span {
  color: #60758d;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.report-table-search input,
.report-table-page-size select {
  height: 38px;
  padding: 0 11px;
  color: #153455;
  background: #fff;
  border: 1px solid #cfdeed;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 750;
}

.report-table-search input:focus,
.report-table-page-size select:focus {
  border-color: #5595ff;
  box-shadow: 0 0 0 3px rgba(0, 87, 255, .1);
  outline: none;
}

.report-table-page-size select {
  min-width: 90px;
}

.report-table-summary {
  align-self: center;
  min-width: 105px;
  color: #60758d;
  font-size: 11px;
  font-weight: 850;
  text-align: right;
}

.report-table-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 11px 14px;
  background: #fbfdff;
  border-top: 1px solid #e1ebf7;
}

.report-table-pagination[hidden] {
  display: none;
}

.report-table-pagination span {
  min-width: 92px;
  color: #60758d;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.report-table-pagination button,
.report-section-toggle {
  min-height: 44px;
  padding: 7px 11px;
  color: #17416f;
  background: #fff;
  border: 1px solid #cbdced;
  border-radius: 7px;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.report-table-pagination button:hover:not(:disabled),
.report-table-pagination button:focus-visible,
.report-section-toggle:hover,
.report-section-toggle:focus-visible {
  color: #0057ff;
  background: #eef6ff;
  border-color: #8bb6ff;
  outline: none;
}

.report-table-pagination button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.report-sortable {
  cursor: pointer;
  user-select: none;
  transition: color .16s ease, background .16s ease;
}

.report-sortable:hover,
.report-sortable:focus-visible {
  color: #0057ff;
  background: #edf5ff;
  outline: none;
}

.report-sort-icon {
  display: inline-block;
  min-width: 13px;
  margin-left: 6px;
  color: #6f8caf;
  font-size: 12px;
  text-align: center;
}

.report-table-empty td {
  padding: 22px !important;
  color: #71849a;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.marketing-chart-card {
  position: relative;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.marketing-chart-card:hover {
  border-color: #b9d2ee;
  box-shadow: 0 12px 26px rgba(7, 25, 54, .08);
  transform: translateY(-1px);
}

.marketing-chart-card canvas {
  cursor: crosshair;
  border-radius: 6px;
}

.marketing-chart-card canvas:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 87, 255, .14);
  outline: none;
}

.marketing-chart-tooltip {
  position: absolute;
  z-index: 6;
  min-width: 170px;
  max-width: 250px;
  padding: 10px 12px;
  color: #fff;
  background: rgba(7, 25, 54, .94);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(7, 25, 54, .22);
  pointer-events: none;
}

.marketing-chart-tooltip strong {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
}

.marketing-chart-tooltip div,
.marketing-chart-tooltip div > span {
  display: grid;
  gap: 6px;
}

.marketing-chart-tooltip div > span {
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: center;
  color: #dce8f5;
  font-size: 11px;
  font-weight: 750;
}

.marketing-chart-tooltip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.marketing-chart-hint {
  margin: 8px 0 0;
  color: #7a8da3;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

.marketing-chart-legend--interactive {
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity .16s ease, background .16s ease, border-color .16s ease;
}

.marketing-chart-legend--interactive:hover,
.marketing-chart-legend--interactive:focus-visible {
  background: #f1f7ff;
  border-color: #cfe0f3;
  outline: none;
}

.marketing-chart-legend--interactive.is-disabled {
  opacity: .38;
  text-decoration: line-through;
}

.marketing-section-heading--interactive {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.report-section-toggle {
  flex: 0 0 auto;
  white-space: nowrap;
}

.agency-section.is-collapsed,
.marketing-campaigns.is-collapsed {
  border-color: #cbdced;
}

.marketing-kpi,
.agency-secondary-kpis article,
.agency-executive-kpis article {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.marketing-kpi:hover,
.agency-secondary-kpis article:hover,
.agency-executive-kpis article:hover {
  border-color: #b9d2ee;
  box-shadow: 0 10px 22px rgba(7, 25, 54, .07);
  transform: translateY(-2px);
}

@media (max-width: 1080px) {
  .marketing-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketing-chart-grid,
  .marketing-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .marketing-form-grid {
    grid-template-columns: 1fr;
  }

  .marketing-google-settings {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .marketing-hero,
  .marketing-panel-header,
  .marketing-report-toolbar,
  .marketing-chart-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .marketing-hero .admin-button,
  .marketing-form-actions .admin-button,
  .marketing-form-actions .admin-page-link {
    width: 100%;
  }

  .marketing-form-columns,
  .marketing-info-list,
  .marketing-kpis {
    grid-template-columns: 1fr;
  }

  .marketing-info-list > div:nth-child(odd),
  .marketing-info-list > div:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-left: 0;
  }

  .marketing-form-actions,
  .marketing-report-actions,
  .marketing-inline-alert--action {
    align-items: stretch;
    flex-direction: column;
  }

  .marketing-inline-alert--action .admin-button {
    width: 100%;
  }

  .marketing-report-actions form,
  .marketing-report-actions button,
  .marketing-range-form,
  .marketing-range-form select {
    width: 100%;
  }

  .marketing-chart-grid {
    padding-right: 14px;
    padding-left: 14px;
  }

  .marketing-campaigns {
    margin-right: 14px;
    margin-left: 14px;
  }

  .report-table-tools {
    grid-template-columns: 1fr 90px;
  }

  .report-table-summary {
    grid-column: 1 / -1;
    min-width: 0;
    text-align: left;
  }

  .report-table-pagination {
    justify-content: space-between;
  }

  .report-table-pagination button {
    padding-right: 8px;
    padding-left: 8px;
  }

  .marketing-section-heading--interactive {
    align-items: stretch;
    flex-direction: column;
  }

  .report-section-toggle {
    width: 100%;
  }
}
/* Professional Google Ads agency report */
.agency-report-head {
  display: grid;
  gap: 28px;
  margin: 18px 22px 0;
  padding: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 15%, rgba(0, 169, 255, .22), transparent 34%),
    linear-gradient(135deg, #071936 0%, #0a2d50 100%);
  border: 1px solid rgba(115, 199, 255, .2);
  border-radius: 14px;
  box-shadow: 0 20px 46px rgba(7, 25, 54, .16);
}

.agency-report-brand-row,
.agency-report-head__main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.agency-report-brand-row {
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.agency-report-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.agency-report-brand img {
  width: auto;
  height: 38px;
}

.agency-report-brand span,
.agency-report-brand strong,
.agency-report-brand small,
.agency-report-document-meta span,
.agency-report-document-meta strong {
  display: block;
}

.agency-report-brand strong {
  color: #fff;
  font-size: 15px;
  font-weight: 950;
}

.agency-report-brand small,
.agency-report-document-meta span {
  margin-top: 3px;
  color: #9fb9d3;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.agency-report-document-meta {
  text-align: right;
}

.agency-report-document-meta strong {
  margin-top: 3px;
  color: #fff;
  font-size: 14px;
}

.agency-report-head h3 {
  margin: 3px 0 12px;
  color: #fff;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.1;
}

.agency-report-account-name {
  margin: -5px 0 12px;
  color: #9fb9d3;
  font-size: 12px;
  font-weight: 750;
}

.agency-report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: #c8d8eb;
  font-size: 12px;
  line-height: 1.5;
}

.agency-report-meta strong {
  color: #fff;
}

.agency-report-head__actions {
  display: grid;
  justify-items: end;
  gap: 12px;
  min-width: 180px;
}

.agency-print-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: nowrap;
}

.agency-print-button svg {
  width: 18px;
  height: 18px;
}

.agency-score {
  display: grid;
  gap: 2px;
  min-width: 168px;
  padding: 12px 16px;
  text-align: right;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 10px;
}

.agency-score span {
  color: #afc7df;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.agency-score strong {
  color: #5de0ff;
  font-size: 22px;
}

.agency-report-nav {
  position: sticky;
  z-index: 5;
  top: 10px;
  display: flex;
  gap: 6px;
  margin: 14px 22px 0;
  padding: 8px;
  overflow-x: auto;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #dbe7f5;
  border-radius: 11px;
  box-shadow: 0 8px 24px rgba(7, 25, 54, .08);
  backdrop-filter: blur(12px);
}

.agency-report-nav a {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: #39506b;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.agency-report-nav a:hover,
.agency-report-nav a:focus-visible,
.agency-report-nav a.is-active {
  color: #0057ff;
  background: #eef6ff;
}

.agency-section {
  margin: 30px 22px 0;
  scroll-margin-top: 82px;
}

.agency-executive-summary {
  padding: 22px;
  background: linear-gradient(145deg, #f8fbff, #eef6ff);
  border: 1px solid #d6e5f4;
  border-radius: 12px;
}

.agency-executive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(430px, .9fr);
  gap: 24px;
  margin-top: 16px;
}

.agency-executive-copy {
  padding: 18px;
  color: #425a73;
  background: #fff;
  border: 1px solid #dce7f3;
  border-radius: 10px;
}

.agency-executive-copy p {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.72;
}

.agency-executive-copy p + p {
  margin-top: 12px;
}

.agency-executive-copy strong {
  color: #0b2849;
  font-weight: 950;
}

.agency-executive-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.agency-executive-kpis article {
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 104px;
  padding: 15px;
  background: #fff;
  border: 1px solid #dce7f3;
  border-radius: 10px;
}

.agency-executive-kpis span {
  color: #657b93;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.agency-executive-kpis strong {
  color: #0b2849;
  font-size: 21px;
  line-height: 1.1;
}

.agency-executive-kpis small {
  color: #7e90a4;
  font-size: 10px;
  font-weight: 700;
}

.agency-executive-note {
  margin: 14px 0 0;
  padding: 11px 13px;
  color: #5e7289;
  background: rgba(255, 255, 255, .72);
  border-left: 3px solid #1aa7c8;
  font-size: 11px;
  line-height: 1.55;
}

.agency-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.agency-insight {
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr);
  gap: 13px;
  min-height: 112px;
  padding: 18px;
  background: #f8fbff;
  border: 1px solid #dce7f3;
  border-radius: 11px;
}

.agency-insight > span {
  width: 7px;
  height: 100%;
  background: #6190be;
  border-radius: 99px;
}

.agency-insight--positive > span {
  background: #14945f;
}

.agency-insight--warning > span {
  background: #e59a20;
}

.agency-insight strong {
  display: block;
  margin-bottom: 7px;
  color: #102b4c;
  font-size: 14px;
}

.agency-insight p {
  margin: 0;
  color: #647991;
  font-size: 12px;
  line-height: 1.6;
}

.agency-comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.agency-comparison-card {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 17px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce7f3;
  border-radius: 10px;
}

.agency-comparison-card > span {
  color: #6b7f96;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.agency-comparison-card > strong {
  color: #0b2849;
  font-size: 21px;
}

.agency-comparison-card > small {
  color: #8394a7;
  font-size: 11px;
}

.agency-delta {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 7px;
  color: #476178;
  background: #edf3f8;
  border-radius: 99px;
  font-size: 10px;
}

.agency-delta.is-positive {
  color: #08784a;
  background: #def7eb;
}

.agency-delta.is-negative {
  color: #b33d35;
  background: #ffebe8;
}

.agency-data-warning {
  margin: 16px 22px 0;
  padding: 13px 15px;
  color: #6c561d;
  background: #fff9e8;
  border: 1px solid #f0dda1;
  border-radius: 9px;
  font-size: 12px;
}

.agency-data-warning summary {
  font-weight: 900;
  cursor: pointer;
}

.agency-data-warning ul {
  margin: 10px 0 0 18px;
  padding: 0;
}

.agency-secondary-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.agency-secondary-kpis article {
  display: grid;
  gap: 7px;
  padding: 16px;
  background: linear-gradient(145deg, #f7fbff, #eef6ff);
  border: 1px solid #d9e7f5;
  border-radius: 10px;
}

.marketing-chart-card--wide {
  grid-column: 1 / -1;
}

.agency-secondary-kpis span {
  color: #6e8299;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .045em;
}

.agency-secondary-kpis strong {
  color: #0b2849;
  font-size: 19px;
}

.agency-secondary-kpis strong small {
  color: #71849a;
  font-size: 11px;
}

.agency-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.agency-table-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce7f3;
  border-radius: 11px;
}

.agency-card-heading {
  padding: 16px 18px;
  background: #f8fbff;
  border-bottom: 1px solid #e1eaf4;
}

.agency-card-heading h4 {
  margin: 0 0 4px;
  color: #102b4c;
  font-size: 15px;
}

.agency-card-heading p {
  margin: 0;
  color: #71849a;
  font-size: 11px;
}

.agency-wide-table {
  min-width: 1080px;
}

.agency-compact-table {
  min-width: 690px;
}

.agency-table-card .admin-table th {
  white-space: nowrap;
}

.agency-table-card .admin-table td {
  vertical-align: top;
}

.agency-table-card .admin-table td > small,
.agency-table-card .admin-table td > a {
  display: block;
  margin-top: 4px;
  font-size: 10px;
}

.agency-row-warning {
  background: #fffaf0;
}

.agency-row-warning td:first-child {
  box-shadow: inset 3px 0 #e59a20;
}

.agency-quality {
  display: inline-flex;
  min-width: 42px;
  justify-content: center;
  padding: 5px 7px;
  color: #08784a;
  background: #def7eb;
  border-radius: 6px;
  font-weight: 900;
}

.agency-quality.is-low {
  color: #b33d35;
  background: #ffebe8;
}

.agency-url {
  max-width: 360px;
  overflow: hidden;
  color: #0057ff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agency-subheading {
  margin-top: 24px;
}

.agency-report-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 28px 22px 8px;
  padding-top: 16px;
  color: #7c8da1;
  border-top: 1px solid #dce7f3;
  font-size: 10px;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .agency-comparison-grid,
  .agency-secondary-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agency-two-column {
    grid-template-columns: 1fr;
  }

  .agency-executive-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .agency-report-head {
    margin-right: 14px;
    margin-left: 14px;
    padding: 18px;
  }

  .agency-report-brand-row,
  .agency-report-head__main {
    align-items: stretch;
    flex-direction: column;
    gap: 18px;
  }

  .agency-report-document-meta {
    text-align: left;
  }

  .agency-report-head__actions {
    justify-items: stretch;
  }

  .agency-score {
    text-align: left;
  }

  .agency-report-nav,
  .agency-section,
  .agency-data-warning,
  .agency-report-footer {
    margin-right: 14px;
    margin-left: 14px;
  }

  .agency-insights,
  .agency-comparison-grid,
  .agency-secondary-kpis,
  .agency-executive-kpis {
    grid-template-columns: 1fr;
  }

  .agency-executive-summary {
    padding: 16px;
  }

  .agency-report-footer {
    flex-direction: column;
  }
}

.changelog-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.changelog-hero__meta {
  display: grid;
  flex: 0 0 auto;
  gap: 5px;
  min-width: 190px;
  padding: 15px 18px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(153, 212, 225, .24);
  border-radius: 8px;
}

.changelog-hero__meta span {
  color: rgba(226, 242, 255, .7);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.changelog-hero__meta strong {
  color: #fff;
  font-size: 21px;
  font-weight: 950;
}

.changelog-filter-panel {
  padding: 20px;
}

.changelog-filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) minmax(210px, .7fr) auto;
  gap: 14px;
  align-items: end;
}

.changelog-filters label {
  display: grid;
  gap: 8px;
  color: #1c304c;
  font-size: 12px;
  font-weight: 900;
}

.changelog-filters input,
.changelog-filters select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: #071936;
  background: #f7fbff;
  border: 1px solid #cfdceb;
  border-radius: 8px;
  font: inherit;
  outline: 0;
}

.changelog-filters input:focus,
.changelog-filters select:focus {
  background: #fff;
  border-color: #0057ff;
  box-shadow: 0 0 0 4px rgba(0, 87, 255, .13);
}

.changelog-filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
}

.changelog-type-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e1ebf7;
}

.changelog-type-list a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  color: #405773;
  background: #f6f9fd;
  border: 1px solid #dae5f1;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.changelog-type-list a:hover,
.changelog-type-list a.is-active {
  color: #0046cc;
  background: #edf4ff;
  border-color: #a9c8f4;
}

.changelog-type-list b {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  min-height: 21px;
  padding: 0 5px;
  color: inherit;
  background: rgba(0, 87, 255, .08);
  border-radius: 999px;
  font-size: 10px;
}

.changelog-result-count {
  flex: 0 0 auto;
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.changelog-table {
  min-width: 920px;
}

.changelog-table th:first-child,
.changelog-table td:first-child {
  width: 130px;
}

.changelog-table th:nth-child(2),
.changelog-table td:nth-child(2) {
  width: 165px;
}

.changelog-table th:last-child,
.changelog-table td:last-child {
  width: 150px;
}

.changelog-type,
.changelog-area {
  display: inline-flex !important;
  align-items: center;
  width: fit-content;
  white-space: nowrap;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

.changelog-type {
  padding: 7px 10px;
  border: 1px solid transparent;
}

.changelog-type--feature {
  color: #075e3d;
  background: #e8f8f0;
  border-color: #bce9d3;
}

.changelog-type--fix {
  color: #9c2c1e;
  background: #fff0ed;
  border-color: #ffc9c0;
}

.changelog-type--change {
  color: #174267;
  background: #edf7ff;
  border-color: #cde7f7;
}

.changelog-type--performance {
  color: #745400;
  background: #fff7d9;
  border-color: #f1dc8d;
}

.changelog-type--security {
  color: #6b2ca0;
  background: #f6edff;
  border-color: #dfc6f5;
}

.changelog-type--integration {
  color: #0046cc;
  background: #edf4ff;
  border-color: #bfd5f5;
}

.changelog-type--design {
  color: #9a336f;
  background: #fff0f8;
  border-color: #f4c5df;
}

.changelog-type--content {
  color: #4a596c;
  background: #f1f4f7;
  border-color: #d7e0e9;
}

.changelog-type--seo {
  color: #12604f;
  background: #e9f8f5;
  border-color: #bce7dc;
}

.changelog-entry-copy {
  max-width: 900px;
}

.changelog-entry-copy strong {
  font-size: 15px;
}

.changelog-entry-copy p {
  max-width: 920px;
  margin: 7px 0 0;
  color: #52677f;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
}

.changelog-area {
  padding: 6px 9px;
  color: #52677f;
  background: #f5f8fc;
  border: 1px solid #dce6f0;
}

.notification-center__list {
  display: grid;
  gap: 0;
}

.notification-center__item {
  display: grid;
  grid-template-columns: minmax(230px, .32fr) minmax(0, 1fr);
  gap: 24px;
  padding: 22px 24px;
  border-top: 1px solid #e1eaf1;
}

.notification-center__item.is-unread {
  background: linear-gradient(90deg, rgba(0, 103, 232, .08), rgba(0, 103, 232, .015));
  box-shadow: inset 4px 0 0 #0067e8;
}

.notification-center__meta {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: center;
  gap: 8px;
}

.notification-center__meta > strong {
  padding: 5px 8px;
  color: #fff;
  background: #0067e8;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.notification-center__meta time {
  flex-basis: 100%;
  color: #60758a;
  font-size: 11px;
  font-weight: 850;
}

.notification-center__copy h3 {
  margin: 0;
  color: #143654;
  font-size: 17px;
}

.notification-center__copy p {
  max-width: 980px;
  margin: 8px 0 0;
  color: #52677f;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .changelog-filters {
    grid-template-columns: 1fr 1fr;
  }

  .changelog-filter-actions {
    grid-column: 1 / -1;
  }

  .notification-center__item {
    grid-template-columns: 1fr;
    gap: 13px;
  }
}

@media (max-width: 640px) {
  .changelog-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .changelog-hero__meta {
    min-width: 0;
  }

  .changelog-filters {
    grid-template-columns: 1fr;
  }

  .changelog-filter-actions {
    grid-column: auto;
    align-items: stretch;
    flex-direction: column;
  }

  .changelog-filter-actions .admin-button,
  .changelog-filter-actions .admin-page-link {
    width: 100%;
  }

  .notification-center .admin-panel__header {
    align-items: stretch;
  }

  .notification-center .admin-panel__header form,
  .notification-center .admin-panel__header button {
    width: 100%;
  }

  .notification-center__item {
    padding: 18px 16px;
  }
}

.employees-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.employees-hero__meta {
  display: grid;
  gap: 5px;
  min-width: 260px;
  padding: 15px 17px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(168, 193, 220, .65);
  border-radius: 10px;
}

.employees-hero__meta span {
  color: #60758d;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.employees-hero__meta strong {
  color: #0c2a4c;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.employees-hero__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.employees-filter-panel {
  padding: 18px;
}

.employees-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 190px 170px auto;
  gap: 12px;
  align-items: end;
}

.employees-filters label {
  display: grid;
  gap: 6px;
  color: #52677f;
  font-size: 11px;
  font-weight: 900;
}

.employees-filters input,
.employees-filters select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  color: #16385f;
  background: #fff;
  border: 1px solid #cfdeed;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
}

.employees-filters input:focus,
.employees-filters select:focus {
  border-color: #5595ff;
  box-shadow: 0 0 0 3px rgba(0, 87, 255, .1);
  outline: none;
}

.employees-filter-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.employees-result-count {
  color: #60758d;
  font-size: 12px;
  font-weight: 750;
}

.employees-result-count strong {
  color: #0c2a4c;
  font-size: 15px;
}

.employees-table {
  min-width: 1210px;
}

.employees-table th:last-child,
.employees-table td:last-child {
  width: 158px;
}

.employee-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 210px;
}

.employee-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  color: #fff;
  background: linear-gradient(145deg, #0057ff, #16a9c9);
  border-radius: 10px;
  box-shadow: 0 7px 15px rgba(0, 87, 255, .16);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .03em;
}

.employee-email {
  font-weight: 850;
}

.employee-role {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  color: #17416f;
  background: #edf5ff;
  border: 1px solid #c7dcf4;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.employee-role--administrator {
  color: #5b2a91;
  background: #f5edff;
  border-color: #ddc6f5;
}

.employee-role--manager {
  color: #00518c;
  background: #eaf8ff;
  border-color: #bce5f5;
}

.employee-role--employee {
  color: #3f5369;
  background: #f1f4f7;
  border-color: #d6e0e9;
}

.employee-table-actions {
  min-width: 130px;
}

.admin-icon-button:disabled,
.admin-button:disabled {
  cursor: not-allowed;
  opacity: .48;
  box-shadow: none;
  transform: none;
}

.admin-icon-button:disabled:hover,
.admin-icon-button:disabled:focus-visible,
.admin-button:disabled:hover,
.admin-button:disabled:focus-visible {
  box-shadow: none;
  transform: none;
}

.employee-detail-hero {
  display: flex;
  align-items: center;
  gap: 20px;
}

.employee-detail-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  color: #fff;
  background: linear-gradient(145deg, #0057ff, #16a9c9);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 18px;
  box-shadow: 0 16px 30px rgba(0, 87, 255, .22);
  font-size: 23px;
  font-weight: 950;
  letter-spacing: .04em;
}

.employee-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.employee-info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px 20px 20px;
}

.employee-info-list > div {
  min-width: 0;
  padding: 16px 0;
  border-bottom: 1px solid #e7eff9;
}

.employee-info-list > div:nth-child(odd) {
  padding-right: 16px;
}

.employee-info-list > div:nth-child(even) {
  padding-left: 16px;
  border-left: 1px solid #e7eff9;
}

.employee-info-list span,
.employee-info-list strong,
.employee-info-list a {
  display: block;
}

.employee-info-list > div > span {
  color: #64748b;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.employee-info-list strong,
.employee-info-list a {
  margin-top: 7px;
  color: #1c304c;
  font-size: 14px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.employee-info-list a {
  color: #0057ff;
  text-decoration: none;
}

.employee-info-list strong > .employee-role {
  display: inline-flex;
  margin-top: 0;
}

.employee-danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 20px;
  border-color: #f1c5c0;
}

.employee-danger-zone h2 {
  margin: 4px 0 5px;
  color: #7f1d16;
  font-size: 18px;
}

.employee-danger-zone p:last-child {
  margin: 0;
  color: #74534f;
  font-size: 12px;
  font-weight: 700;
}

.employee-danger-zone form {
  flex: 0 0 auto;
  margin: 0;
}

.employee-edit-form {
  display: grid;
  gap: 18px;
}

.employee-form-error-summary ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.employee-form-section {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.employee-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.employee-color-setting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 22px;
  align-items: center;
  padding: 16px;
  background: #f7fbff;
  border: 1px solid #cfdceb;
  border-radius: 10px;
}

.employee-color-setting__copy {
  display: grid;
  gap: 5px;
}

.employee-color-setting__copy > span {
  color: #17324a;
  font-size: 13px;
  font-weight: 900;
}

.employee-color-setting__copy > small {
  color: #526b7c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.employee-color-control {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.employee-color-control input[type="color"] {
  width: 52px;
  height: 44px;
  padding: 3px;
  background: #fff;
  border: 1px solid #9eb5c6;
  border-radius: 9px;
  cursor: pointer;
}

.employee-color-control__preview {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 13px;
  color: #17324a;
  background: #fff;
  border: 1px solid #c6d8e4;
  border-radius: 9px;
}

.employee-color-control__preview > i {
  width: 13px;
  height: 13px;
  background: var(--employee-color);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--employee-color);
}

.employee-color-control__preview > strong {
  font-size: 12px;
  letter-spacing: .04em;
}

.employee-color-setting__validation {
  grid-column: 1 / -1;
  color: #9f241d;
  font-size: 11px;
  font-weight: 850;
}

.employee-access-control {
  display: grid;
  gap: 8px;
  color: #1c304c;
  font-size: 13px;
  font-weight: 900;
}

.employee-active-toggle {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  min-height: 48px;
  padding: 12px 14px;
  background: #f7fbff;
  border: 1px solid #cfdceb;
  border-radius: 8px;
  cursor: pointer;
}

.employee-active-toggle.is-locked {
  cursor: not-allowed;
  opacity: .72;
}

.employee-active-toggle input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #0057ff;
}

.employee-active-toggle strong,
.employee-active-toggle small {
  display: block;
}

.employee-active-toggle strong {
  color: #173b63;
  font-size: 13px;
}

.employee-active-toggle small {
  margin-top: 3px;
  color: #71829a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.employee-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.employee-password-reset-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 18px;
  padding: 22px;
  border-color: #efc1bc;
}

.employee-password-reset-panel h2 {
  margin: 10px 0 6px;
  color: #7f1d16;
  font-size: 19px;
}

.employee-password-reset-panel p:last-child {
  max-width: 760px;
  margin: 0;
  color: #52647c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.employee-password-reset-dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
  color: #17324a;
  background: #fff;
  border: 1px solid #d7a9a4;
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(5, 31, 48, .32);
}

.employee-password-reset-dialog::backdrop {
  background: rgba(3, 20, 33, .68);
  backdrop-filter: blur(3px);
}

.employee-password-reset-dialog__close {
  display: flex;
  justify-content: flex-end;
  padding: 10px 12px 0;
}

.employee-password-reset-dialog__close button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  color: #17324a;
  background: #edf6fb;
  border: 0;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.employee-password-reset-dialog__form {
  display: grid;
  gap: 18px;
  padding: 0 24px 24px;
}

.employee-password-reset-dialog__form header {
  display: grid;
  gap: 6px;
}

.employee-password-reset-dialog__form h2 {
  margin: 0;
  color: #7f1d16;
}

.employee-password-reset-dialog__form header p:last-child {
  margin: 0;
  color: #52647c;
  font-size: .86rem;
  font-weight: 700;
}

.employee-password-reset-dialog__notice {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  color: #74322d;
  background: #fff5f4;
  border: 1px solid #efc1bc;
  border-radius: 10px;
}

.employee-password-reset-dialog__notice strong {
  color: #7f1d16;
  font-size: .88rem;
}

.employee-password-reset-dialog__notice span {
  font-size: .8rem;
  line-height: 1.55;
}

.employee-password-reset-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

html[data-backoffice-theme-resolved="dark"] .employee-password-reset-panel h2,
html[data-backoffice-theme-resolved="dark"] .employee-password-reset-dialog__form h2,
html[data-backoffice-theme-resolved="dark"] .employee-password-reset-dialog__notice strong {
  color: #ffd0cb;
}

html[data-backoffice-theme-resolved="dark"] .employee-password-reset-panel p:last-child,
html[data-backoffice-theme-resolved="dark"] .employee-password-reset-dialog__form header p:last-child,
html[data-backoffice-theme-resolved="dark"] .employee-password-reset-dialog__notice {
  color: #dceaf3;
}

html[data-backoffice-theme-resolved="dark"] .employee-password-reset-dialog {
  color: #dceaf3;
  background: #0f2536;
  border-color: #714d4b;
}

html[data-backoffice-theme-resolved="dark"] .employee-password-reset-dialog__close button {
  color: #f0f7fb;
  background: #173247;
}

html[data-backoffice-theme-resolved="dark"] .employee-password-reset-dialog__notice {
  background: #45231f;
  border-color: #8f5146;
}

html[data-backoffice-theme-resolved="dark"] .employee-color-setting {
  background: #0f2536;
  border-color: #45677f;
}

html[data-backoffice-theme-resolved="dark"] .employee-color-setting__copy > span,
html[data-backoffice-theme-resolved="dark"] .employee-color-control__preview {
  color: #f0f7fb;
}

html[data-backoffice-theme-resolved="dark"] .employee-color-setting__copy > small {
  color: #dceaf3;
}

html[data-backoffice-theme-resolved="dark"] .employee-color-control input[type="color"],
html[data-backoffice-theme-resolved="dark"] .employee-color-control__preview {
  background: #142d3f;
  border-color: #55748a;
}

html[data-backoffice-theme-resolved="dark"] .employee-color-control__preview > i {
  border-color: #142d3f;
}

html[data-backoffice-theme-resolved="dark"] .employee-color-setting__validation {
  color: #ffd0cb;
}

@media (max-width: 980px) {
  .employees-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .employees-hero__actions {
    justify-content: flex-start;
  }

  .employees-filters {
    grid-template-columns: 1fr 1fr;
  }

  .employees-filter-actions {
    grid-column: 1 / -1;
  }

  .employee-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .employees-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .employees-hero__meta {
    min-width: 0;
  }

  .employees-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .employees-hero__actions .admin-button {
    width: 100%;
  }

  .employees-filters {
    grid-template-columns: 1fr;
  }

  .employees-filter-actions {
    grid-column: auto;
    align-items: stretch;
    flex-direction: column;
  }

  .employees-filter-actions .admin-button,
  .employees-filter-actions .admin-page-link {
    width: 100%;
  }

  .employee-detail-hero,
  .employee-danger-zone {
    align-items: stretch;
    flex-direction: column;
  }

  .employee-detail-avatar {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    border-radius: 14px;
    font-size: 18px;
  }

  .employee-info-list,
  .employee-form-grid {
    grid-template-columns: 1fr;
  }

  .employee-color-setting {
    grid-template-columns: 1fr;
  }

  .employee-color-control {
    justify-content: flex-start;
  }

  .employee-info-list > div:nth-child(odd),
  .employee-info-list > div:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-left: 0;
  }

  .employee-danger-zone form,
  .employee-danger-zone .admin-button,
  .employee-password-reset-panel .admin-button,
  .employee-form-actions .admin-button,
  .employee-form-actions .admin-page-link {
    width: 100%;
  }

  .employee-form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .employee-password-reset-panel,
  .employee-password-reset-dialog__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .employee-password-reset-dialog__actions .admin-button {
    width: 100%;
  }
}

.marketing-intelligence-form {
  display: grid;
  gap: 18px;
  margin-top: 4px;
  padding-top: 22px;
  border-top: 1px solid #dbe7f5;
}

.admin-stat-card--attention {
  background: #fff5f6;
  border-color: #f0b1ba;
}

.admin-stat-card > small {
  display: block;
  margin-top: 4px;
  color: #71829a;
  font-size: 10px;
  font-weight: 800;
}

.ads-health-badge,
.ads-attention-badge {
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  gap: 2px;
  width: fit-content;
  padding: 7px 9px;
  border: 1px solid #d5e3f1;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 950;
  line-height: 1.1;
  text-decoration: none;
}

.ads-health-badge--good,
.ads-attention-badge.is-clear {
  color: #08734f;
  background: #eefbf6;
  border-color: #a8dfcb;
}

.ads-health-badge--warning,
.ads-attention-badge {
  color: #875900;
  background: #fff8e8;
  border-color: #efd795;
}

.ads-health-badge--critical,
.ads-attention-badge.is-critical {
  color: #a5283b;
  background: #fff1f3;
  border-color: #edb0ba;
}

.ads-attention-badge small {
  color: inherit;
  font-size: 8px;
  font-weight: 950;
  text-transform: uppercase;
}

.marketing-form-columns--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ads-intelligence {
  display: grid;
  gap: 20px;
  margin: 20px;
  padding: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(0, 151, 255, .12), transparent 32%),
    linear-gradient(150deg, #f7fbff 0%, #eef6ff 100%);
  border: 1px solid #cfe0f4;
  border-radius: 14px;
}

.ads-intelligence__hero,
.ads-intelligence__notice,
.ads-forecast .marketing-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.ads-intelligence__hero h2,
.ads-insight-worklist h3,
.ads-forecast h3 {
  margin: 4px 0 0;
  color: #071936;
  font-size: clamp(21px, 2.2vw, 30px);
  font-weight: 950;
  letter-spacing: -.025em;
}

.ads-intelligence__hero p:last-child,
.ads-insight-worklist .marketing-section-heading p:last-child,
.ads-forecast .marketing-section-heading p:last-child {
  max-width: 760px;
  margin: 7px 0 0;
  color: #60738c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.ads-intelligence__freshness {
  flex: 0 0 auto;
  min-width: 170px;
  padding: 12px 14px;
  text-align: right;
  background: rgba(255, 255, 255, .82);
  border: 1px solid #d6e5f5;
  border-radius: 9px;
}

.ads-intelligence__freshness span,
.ads-intelligence__freshness strong {
  display: block;
}

.ads-intelligence__freshness span {
  color: #71829a;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.ads-intelligence__freshness strong {
  margin-top: 3px;
  color: #173b63;
  font-size: 13px;
}

.ads-intelligence__notice {
  align-items: center;
  padding: 15px 16px;
  color: #5f3e00;
  background: #fff8e7;
  border: 1px solid #f3d893;
  border-radius: 10px;
}

.ads-intelligence__notice strong,
.ads-intelligence__notice span {
  display: block;
}

.ads-intelligence__notice strong {
  font-size: 14px;
}

.ads-intelligence__notice span {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.ads-intelligence__kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.ads-intelligence__kpis article,
.ads-forecast__grid article {
  min-width: 0;
  padding: 15px;
  background: #fff;
  border: 1px solid #d9e6f4;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(20, 65, 112, .06);
}

.ads-intelligence__kpis span,
.ads-intelligence__kpis strong,
.ads-intelligence__kpis small,
.ads-forecast__grid span,
.ads-forecast__grid strong,
.ads-forecast__grid small {
  display: block;
}

.ads-intelligence__kpis span,
.ads-forecast__grid span {
  color: #64748b;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.ads-intelligence__kpis strong,
.ads-forecast__grid strong {
  margin-top: 6px;
  color: #071936;
  font-size: 21px;
  font-weight: 950;
  letter-spacing: -.025em;
}

.ads-intelligence__kpis small,
.ads-forecast__grid small {
  margin-top: 4px;
  color: #71829a;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
}

.ads-health-score--good {
  border-color: #99dfc0 !important;
  background: #f0fff8 !important;
}

.ads-health-score--warning {
  border-color: #f1d389 !important;
  background: #fffaf0 !important;
}

.ads-health-score--critical {
  border-color: #f1afb7 !important;
  background: #fff5f6 !important;
}

.ads-intelligence__method-note {
  margin: -8px 0 0;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.ads-score-components {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ads-score-components article {
  padding: 13px 14px;
  background: rgba(255, 255, 255, .72);
  border: 1px solid #d9e6f4;
  border-radius: 9px;
}

.ads-score-components article > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #173b63;
  font-size: 12px;
  font-weight: 900;
}

.ads-score-components__bar {
  height: 6px;
  margin: 9px 0;
  overflow: hidden;
  background: #dce8f4;
  border-radius: 999px;
}

.ads-score-components__bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0057ff, #00a9ff);
  border-radius: inherit;
}

.ads-score-components small {
  display: block;
  min-height: 30px;
  color: #71829a;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.ads-forecast,
.ads-insight-worklist,
.ads-change-history {
  padding: 20px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid #d5e4f3;
  border-radius: 12px;
}

.ads-confidence {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: #075d43;
  background: #e9fbf4;
  border: 1px solid #a9e5ce;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

.ads-forecast__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.ads-insight-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0;
}

.ads-insight-filters button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 11px;
  color: #36516e;
  background: #f2f7fc;
  border: 1px solid #d5e3f1;
  border-radius: 999px;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.ads-insight-filters button span {
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  background: #fff;
  border-radius: 999px;
  font-size: 9px;
}

.ads-insight-filters button.is-active {
  color: #fff;
  background: #0a4b83;
  border-color: #0a4b83;
}

.ads-insight-filters button.is-active span {
  color: #0a4b83;
}

.ads-insight-list {
  display: grid;
  gap: 10px;
}

.ads-insight-card {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) minmax(190px, 230px);
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d8e5f2;
  border-left: 4px solid #f0b429;
  border-radius: 10px;
  box-shadow: 0 7px 20px rgba(20, 65, 112, .05);
}

.ads-insight-card[hidden] {
  display: none;
}

.ads-insight-card--critical {
  border-left-color: #d9394c;
}

.ads-insight-card--high {
  border-left-color: #e77b17;
}

.ads-insight-card--low {
  border-left-color: #5e89b5;
}

.ads-insight-card.is-closed {
  opacity: .68;
}

.ads-insight-card__priority {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 12px 8px;
  color: #526a83;
  background: #f6f9fc;
  border-right: 1px solid #e3ebf4;
  text-align: center;
}

.ads-insight-card__priority span,
.ads-insight-card__priority small {
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.ads-insight-card__priority strong {
  color: #173b63;
  font-size: 25px;
  font-weight: 950;
}

.ads-insight-card__body {
  min-width: 0;
  padding: 16px;
}

.ads-insight-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  color: #6b7e93;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.ads-insight-status {
  color: #9a5d00;
}

.ads-insight-status--in_progress {
  color: #0057b8;
}

.ads-insight-status--resolved {
  color: #08734f;
}

.ads-insight-status--dismissed {
  color: #71829a;
}

.ads-insight-card h4 {
  margin: 8px 0 0;
  color: #071936;
  font-size: 16px;
  font-weight: 950;
}

.ads-insight-card__body > p,
.ads-insight-recommendation p {
  margin: 6px 0 0;
  color: #536981;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.ads-insight-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.ads-insight-evidence > span {
  min-width: 105px;
  padding: 8px 9px;
  background: #f5f9fd;
  border: 1px solid #e0e9f3;
  border-radius: 7px;
}

.ads-insight-evidence small,
.ads-insight-evidence strong {
  display: block;
}

.ads-insight-evidence small {
  color: #71829a;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ads-insight-evidence strong {
  margin-top: 3px;
  color: #173b63;
  font-size: 11px;
}

.ads-insight-recommendation {
  margin-top: 12px;
  padding: 11px 12px;
  background: #edf7ff;
  border-left: 3px solid #008fd7;
  border-radius: 0 7px 7px 0;
}

.ads-insight-recommendation > strong {
  color: #075883;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ads-insight-impact {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin-top: 10px;
  color: #6a4b00;
  font-size: 10px;
  font-weight: 800;
}

.ads-insight-impact strong {
  font-size: 14px;
}

.ads-insight-card__actions {
  display: flex;
  align-items: center;
  padding: 14px;
  background: #f9fbfd;
  border-left: 1px solid #e3ebf4;
}

.ads-insight-card__actions form {
  display: grid;
  gap: 9px;
  width: 100%;
}

.ads-insight-card__actions label {
  display: grid;
  gap: 4px;
}

.ads-insight-card__actions label span {
  color: #71829a;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ads-insight-card__actions select {
  width: 100%;
  min-height: 36px;
  padding: 0 9px;
  color: #173b63;
  background: #fff;
  border: 1px solid #cfdceb;
  border-radius: 7px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.ads-change-history {
  padding: 0;
  overflow: hidden;
}

.ads-change-history summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  color: #173b63;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
}

.ads-change-history summary span {
  display: grid;
  place-items: center;
  min-width: 25px;
  height: 25px;
  padding: 0 6px;
  color: #075883;
  background: #e9f5ff;
  border-radius: 999px;
  font-size: 10px;
}

.ads-change-history .admin-table-wrap {
  border-top: 1px solid #e1eaf3;
}

.ads-change-history .admin-table {
  min-width: 820px;
}

.ads-intelligence__empty {
  border: 1px dashed #cbdbea;
  border-radius: 9px;
}

@media (max-width: 1180px) {
  .ads-intelligence__kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ads-insight-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .ads-insight-card__actions {
    grid-column: 1 / -1;
    border-top: 1px solid #e3ebf4;
    border-left: 0;
  }

  .ads-insight-card__actions form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
  }
}

@media (max-width: 900px) {
  .marketing-form-columns--three,
  .ads-score-components,
  .ads-forecast__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ads-intelligence__kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .marketing-form-columns--three,
  .ads-intelligence__kpis,
  .ads-score-components,
  .ads-forecast__grid {
    grid-template-columns: 1fr;
  }

  .ads-intelligence {
    gap: 14px;
    margin: 12px;
    padding: 14px;
    border-radius: 10px;
  }

  .ads-intelligence__hero,
  .ads-intelligence__notice,
  .ads-forecast .marketing-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .ads-intelligence__freshness {
    min-width: 0;
    text-align: left;
  }

  .ads-intelligence__notice .admin-button {
    width: 100%;
  }

  .ads-forecast,
  .ads-insight-worklist {
    padding: 14px;
  }

  .ads-insight-filters {
    flex-wrap: nowrap;
    margin-right: -14px;
    padding-right: 14px;
    overflow-x: auto;
  }

  .ads-insight-filters button {
    flex: 0 0 auto;
  }

  .ads-insight-card {
    grid-template-columns: 1fr;
  }

  .ads-insight-card__priority {
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    padding: 9px 12px;
    border-right: 0;
    border-bottom: 1px solid #e3ebf4;
  }

  .ads-insight-card__priority strong {
    font-size: 16px;
  }

  .ads-insight-card__actions {
    grid-column: auto;
  }

  .ads-insight-card__actions form {
    grid-template-columns: 1fr;
  }
}

@page {
  size: A4 portrait;
  margin: 8mm;
}

@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .admin-sidebar,
  .admin-dashboard__hero,
  .marketing-detail-grid,
  .marketing-report-toolbar,
  .agency-report-nav,
  .agency-print-button,
  .marketing-sync-note,
  .marketing-google-panel > .admin-panel__header,
  .marketing-inline-alert,
  .marketing-report-loader,
  .agency-data-warning,
  .report-table-tools,
  .report-table-pagination,
  .report-section-toggle,
  .marketing-chart-hint,
  .marketing-chart-tooltip,
  .report-sort-icon {
    display: none !important;
  }

  .ads-intelligence {
    display: none !important;
  }

  .report-sortable {
    color: inherit !important;
    background: inherit !important;
  }

  .admin-dashboard,
  .admin-dashboard__content,
  .admin-dashboard__main {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .agency-insight,
  .agency-comparison-card {
    break-inside: avoid;
    box-shadow: none !important;
  }

  .agency-table-card,
  .marketing-campaigns {
    break-inside: auto;
    box-shadow: none !important;
  }

  .admin-table tr,
  .agency-insight,
  .marketing-chart-card {
    break-inside: avoid;
  }

  .agency-report-head {
    gap: 3mm;
    margin: 0 0 4mm !important;
    padding: 4mm !important;
    color: #071936 !important;
    background: #fff !important;
    border: 1px solid #b9c9da !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    break-inside: avoid;
  }

  .agency-report-brand-row {
    gap: 4mm;
    padding-bottom: 2.5mm;
    border-bottom-color: #cbd8e5;
  }

  .agency-report-brand img {
    height: 8mm;
    filter: none;
  }

  .agency-report-brand {
    gap: 3mm;
  }

  .agency-report-brand strong {
    font-size: 10px;
  }

  .agency-report-brand small,
  .agency-report-document-meta span {
    margin-top: 1px;
    font-size: 7px;
  }

  .agency-report-document-meta strong {
    margin-top: 1px;
    font-size: 9px;
  }

  .agency-report-head__main {
    gap: 4mm;
  }

  .agency-report-head h3 {
    margin: 1mm 0 1.5mm;
    font-size: 19px;
  }

  .agency-report-account-name {
    margin: 0 0 1.5mm;
    font-size: 8px;
  }

  .agency-report-meta {
    gap: 1mm 4mm;
    font-size: 8px;
    line-height: 1.35;
  }

  .agency-report-head__actions {
    min-width: 34mm;
    gap: 0;
  }

  .agency-score {
    min-width: 34mm;
    padding: 2mm 3mm;
    background: #f1f6fb !important;
    border-color: #cbd8e5;
  }

  .agency-score span {
    color: #52677f !important;
    font-size: 7px;
  }

  .agency-score strong {
    color: #071936 !important;
    font-size: 15px;
  }

  .agency-report-brand strong,
  .agency-report-document-meta strong,
  .agency-report-head h3,
  .agency-report-meta strong {
    color: #071936 !important;
  }

  .agency-report-brand small,
  .agency-report-document-meta span,
  .agency-report-account-name,
  .agency-report-meta {
    color: #52677f !important;
  }

  .agency-report-technical-meta {
    display: none !important;
  }

  .agency-executive-summary {
    margin: 0 0 4mm !important;
    padding: 3.5mm !important;
    background: #f4f8fc !important;
    break-inside: avoid;
  }

  .agency-executive-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 3mm;
    margin-top: 2.5mm;
  }

  .agency-executive-copy {
    padding: 2.5mm;
  }

  .agency-executive-copy p {
    font-size: 8px;
    line-height: 1.4;
  }

  .agency-executive-copy p + p {
    margin-top: 1.5mm;
  }

  .agency-executive-kpis {
    gap: 1.5mm;
  }

  .agency-executive-kpis article {
    min-height: 16mm;
    gap: 1mm;
    padding: 2mm;
  }

  .agency-executive-kpis span,
  .agency-executive-kpis small {
    font-size: 6.5px;
  }

  .agency-executive-kpis strong {
    font-size: 13px;
  }

  .agency-executive-note {
    margin-top: 2mm;
    padding: 2mm 2.5mm;
    font-size: 7px;
    line-height: 1.4;
  }

  #report-campaigns {
    break-before: auto;
  }

  .agency-section {
    margin: 4mm 0 0;
    scroll-margin-top: 0;
  }

  .marketing-section-heading,
  .agency-card-heading {
    padding: 2.5mm 3mm;
  }

  .marketing-section-heading h3,
  .agency-card-heading h4 {
    margin: 0;
    font-size: 11px;
  }

  .marketing-section-heading p,
  .agency-card-heading p {
    margin-top: 1mm;
    font-size: 7px;
    line-height: 1.35;
  }

  .admin-kicker {
    color: #064e73 !important;
    background: #e6f5fb !important;
    border-color: #2c7796 !important;
    box-shadow: none !important;
    font-size: 7px;
  }

  .agency-insights,
  .agency-comparison-grid,
  .agency-secondary-kpis,
  .agency-two-column {
    gap: 2mm;
    margin-top: 2mm;
  }

  .agency-insight {
    min-height: 0;
    grid-template-columns: 1.5mm minmax(0, 1fr);
    gap: 2mm;
    padding: 2.5mm;
  }

  .agency-insight > span {
    width: 1.5mm;
  }

  .agency-insight strong {
    margin-bottom: 1mm;
    font-size: 9px;
  }

  .agency-insight p {
    font-size: 7px;
    line-height: 1.4;
  }

  .agency-comparison-card,
  .agency-secondary-kpis article {
    gap: 1mm;
    padding: 2.5mm;
  }

  .agency-comparison-card > span,
  .agency-secondary-kpis span {
    font-size: 6.5px;
  }

  .agency-comparison-card > strong,
  .agency-secondary-kpis strong {
    font-size: 13px;
  }

  .agency-comparison-card > small,
  .agency-secondary-kpis strong small {
    font-size: 7px;
  }

  .agency-delta {
    top: 2mm;
    right: 2mm;
    padding: 1mm 1.5mm;
    font-size: 6.5px;
  }

  .marketing-chart-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 3mm;
    padding: 0 0 3mm;
  }

  .marketing-chart-card {
    padding: 3mm;
  }

  .marketing-chart-heading {
    gap: 2mm;
    margin-bottom: 2mm;
  }

  .marketing-chart-heading h3 {
    font-size: 10px;
  }

  .marketing-chart-heading p,
  .marketing-chart-legend {
    font-size: 7px;
  }

  .marketing-chart-card canvas {
    height: 42mm !important;
  }

  .marketing-campaigns {
    margin: 0;
  }

  .admin-table-wrap {
    overflow: visible !important;
  }

  .agency-wide-table,
  .agency-compact-table,
  .agency-table-card .admin-table,
  .marketing-campaigns .admin-table {
    width: 100%;
    min-width: 0 !important;
    table-layout: fixed;
    font-size: 6.5px;
  }

  .agency-table-card .admin-table th,
  .agency-table-card .admin-table td,
  .marketing-campaigns .admin-table th,
  .marketing-campaigns .admin-table td {
    padding: 1.4mm 1mm;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .agency-table-card .admin-table th,
  .marketing-campaigns .admin-table th {
    font-size: 5.5px;
    letter-spacing: .02em;
  }

  .agency-table-card .admin-table td > small,
  .agency-table-card .admin-table td > a {
    margin-top: .5mm;
    font-size: 5.5px;
  }

  .agency-url {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .agency-report-footer {
    gap: 4mm;
    margin: 4mm 0 0;
    padding-top: 2.5mm;
    font-size: 7px;
  }

  .marketing-google-panel {
    border: 0;
    box-shadow: none !important;
  }
}

/* Keep workspace refinements after legacy marketing rules. */
.marketing-kpis.marketing-kpis--workspace {
  margin: 0;
  grid-template-columns: repeat(8, minmax(125px, 1fr));
}

.marketing-kpis--workspace .marketing-kpi {
  min-height: 92px;
  padding: 16px;
}

@media (max-width: 1450px) {
  .marketing-kpis.marketing-kpis--workspace { grid-template-columns: repeat(4, minmax(135px, 1fr)); }
}

@media (max-width: 560px) {
  .marketing-kpis.marketing-kpis--workspace { grid-template-columns: 1fr; }
}

.permissions-hero {
  align-items: center;
}

.permissions-admin-note {
  display: grid;
  max-width: 440px;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid rgba(55, 189, 248, .22);
  border-radius: 16px;
  background: rgba(6, 34, 54, .72);
}

.permissions-admin-note strong {
  color: #f8fbff;
}

.permissions-admin-note span,
.permissions-form__actions p {
  color: #d8e7f1;
  font-size: 13px;
  line-height: 1.55;
}

.permissions-form,
.permissions-role-column {
  display: grid;
  gap: 20px;
}

.permission-tools {
  position: sticky;
  z-index: 8;
  top: 82px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: end;
  gap: 10px 16px;
  padding: 16px;
  background: rgba(247, 251, 255, .96);
  border: 1px solid #cbddea;
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(7, 25, 54, .1);
  backdrop-filter: blur(14px);
}

.permission-tools label { display: grid; gap: 6px; color: #173b58; font-size: 11px; font-weight: 900; }
.permission-tools input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  color: #102e49;
  background: #fff;
  border: 1px solid #b9cedd;
  border-radius: 8px;
  font: inherit;
}
.permission-tools input:focus { border-color: #168dca; box-shadow: 0 0 0 3px rgba(22, 141, 202, .14); outline: 0; }
.permission-tools > div { display: flex; flex-wrap: wrap; gap: 8px; }
.permission-tools > p { grid-column: 1 / -1; min-height: 1em; margin: 0; color: #526a7e; font-size: 11px; font-weight: 800; }

.permissions-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.permissions-role-column > header {
  min-height: 132px;
  padding: 22px;
  border: 1px solid rgba(148, 180, 204, .16);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(10, 43, 67, .96), rgba(6, 28, 45, .96));
}

.permissions-role-column > header span {
  color: #55c8fa;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.permissions-role-column > header h2 {
  margin: 7px 0 5px;
  color: #fff;
  font-size: 24px;
}

.permissions-role-column > header p {
  margin: 0;
  color: #d8e7f1;
  line-height: 1.55;
}

.permission-module {
  overflow: hidden;
  padding: 0;
}

.permission-module__master,
.permission-service-list label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  cursor: pointer;
}

.permission-module__master {
  padding: 20px;
  border-bottom: 1px solid #d5e4ee;
  background: #eef7fc;
}

.permission-module input[type="checkbox"] {
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  accent-color: #1fb6ff;
}

.permission-module__master strong,
.permission-service-list strong {
  display: block;
  color: #102e49;
}

.permission-module__master small,
.permission-service-list small {
  display: block;
  margin-top: 4px;
  color: #4d6579;
  line-height: 1.45;
}

.permission-service-list {
  display: grid;
  gap: 0;
  padding: 4px 20px 12px;
}

.permission-module__service-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 8px 20px;
  color: #174c70;
  background: #f6fafc;
  border: 0;
  border-bottom: 1px solid #dce7ef;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}
.permission-module__service-toggle svg { width: 16px; height: 16px; transition: transform .16s ease; }
.permission-module.is-services-collapsed .permission-module__service-toggle svg { transform: rotate(-90deg); }
.permission-module.is-services-collapsed .permission-service-list { display: none; }

.permission-service-list label {
  padding: 14px 0;
  border-bottom: 1px solid #dce7ef;
}

.permission-service-list label:last-child {
  border-bottom: 0;
}

.permission-service-list label:has(input:disabled) {
  opacity: .58;
}

.permissions-form__actions {
  position: sticky;
  z-index: 5;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 17px 20px;
  border: 1px solid rgba(55, 189, 248, .2);
  border-radius: 16px;
  background: rgba(5, 26, 42, .94);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
  backdrop-filter: blur(16px);
}

.permissions-form__actions p {
  max-width: 700px;
  margin: 0;
}

/* Per-user permission overrides on the employee detail. */
.employee-permissions {
  scroll-margin-top: 96px;
  overflow: hidden;
  padding: 0;
}

.employee-permissions__header {
  align-items: center;
}

.employee-permissions__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 20px;
  background: #f3f8fc;
  border-bottom: 1px solid #d8e5ee;
}

.employee-permissions__stats article {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 15px 16px;
  background: #fff;
  border: 1px solid #d5e3ed;
  border-radius: 12px;
  box-shadow: 0 7px 20px rgba(16, 46, 73, .05);
}

.employee-permissions__stats article::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--permission-stat-color, #168dca);
  content: "";
}

.employee-permissions__stat > i {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  min-width: 38px;
  max-width: 38px;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  color: var(--permission-stat-color, #168dca);
  background: var(--permission-stat-background, #eaf7fd);
  border-radius: 12px;
  place-items: center;
}

.employee-permissions__stat-icon {
  display: block;
  flex: 0 0 18px;
  width: 18px !important;
  min-width: 18px;
  max-width: 18px;
  height: 18px !important;
  min-height: 18px;
  max-height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.employee-permissions__stat > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.employee-permissions__stat--allowed {
  --permission-stat-color: #16704a;
  --permission-stat-background: #eefcf5;
}

.employee-permissions__stat--denied {
  --permission-stat-color: #a03b31;
  --permission-stat-background: #fff1f0;
}

.employee-permissions__stats span,
.employee-permissions__stats small {
  color: #526a7e;
  font-size: 11px;
  font-weight: 800;
}

.employee-permissions__stats strong {
  color: #102e49;
  font-size: 24px;
  line-height: 1;
}

.employee-permissions__form {
  display: grid;
}

.employee-permissions__tools {
  display: grid;
  grid-template-columns: minmax(280px, .75fr) minmax(360px, 1.25fr);
  align-items: start;
  gap: 18px;
  padding: 20px;
  background: #f9fcfe;
  border-bottom: 1px solid #d8e5ee;
}

.employee-permissions__tools label {
  display: grid;
  gap: 6px;
  color: #17324a;
  font-size: 12px;
  font-weight: 900;
}

.employee-permissions__search-field {
  position: relative;
  display: block;
}

.employee-permissions__search-icon {
  position: absolute;
  top: 50%;
  left: 13px;
  z-index: 1;
  display: block;
  width: 16px !important;
  min-width: 16px;
  max-width: 16px;
  height: 16px !important;
  min-height: 16px;
  max-height: 16px;
  fill: none;
  stroke: #526a7e;
  stroke-linecap: round;
  stroke-width: 2;
  transform: translateY(-50%);
  pointer-events: none;
}

.employee-permissions__tools input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px 0 41px;
  color: #102e49;
  background: #fff;
  border: 1px solid #b9cedd;
  border-radius: 8px;
  font: inherit;
}

.employee-permissions__tools input:focus {
  border-color: #168dca;
  box-shadow: 0 0 0 3px rgba(22, 141, 202, .14);
  outline: 0;
}

.employee-permissions__tools p {
  margin: 0;
  color: #526a7e;
  font-size: 12px;
  line-height: 1.6;
}

.employee-permissions__guide {
  display: grid;
  gap: 7px;
  padding: 12px 14px;
  background: #eef6fb;
  border: 1px solid #d4e4ef;
  border-radius: 10px;
}

.employee-permissions__guide > strong {
  color: #17324a;
  font-size: 12px;
}

.employee-permissions__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
}

.employee-permissions__legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #36556d;
  font-size: 10px;
  font-weight: 800;
}

.employee-permissions__legend i {
  width: 8px;
  height: 8px;
  background: #6d8799;
  border-radius: 50%;
}

.employee-permissions__legend .is-allowed i { background: #1a875c; }
.employee-permissions__legend .is-denied i { background: #b44b42; }

.employee-permissions__toolbar {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 2px;
}

.employee-permissions__toolbar > span {
  color: #36556d;
  font-size: 11px;
  font-weight: 900;
}

.employee-permissions__toolbar > div {
  display: flex;
  gap: 7px;
}

.employee-permissions__toolbar-button {
  min-height: 34px;
  padding: 0 11px;
  color: #185c86;
  background: #fff;
  border: 1px solid #bcd3e2;
  border-radius: 8px;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.employee-permissions__toolbar-button:hover,
.employee-permissions__toolbar-button:focus-visible {
  color: #0f4569;
  background: #eaf6fc;
  border-color: #79b9db;
  outline: 0;
}

.employee-permissions__modules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
  background: #edf5fa;
}

.employee-permission-module {
  align-self: start;
  overflow: hidden;
  background: #fff;
  border: 1px solid #cfdfea;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(7, 25, 54, .05);
}

.employee-permission-module[hidden] {
  display: none;
}

.employee-permission-module > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  padding: 16px 18px;
  color: #102e49;
  background: #eaf5fb;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  list-style: none;
}

.employee-permission-module[open] > summary {
  border-bottom-color: #cfe0eb;
}

.employee-permission-module > summary::-webkit-details-marker {
  display: none;
}

.employee-permission-module > summary strong,
.employee-permission-module > summary small {
  display: block;
}

.employee-permission-module__identity {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  gap: 11px;
}

.employee-permission-module__icon {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  min-width: 38px;
  max-width: 38px;
  height: 38px;
  min-height: 38px;
  max-height: 38px;
  color: #136b9c;
  background: #dff2fb;
  border: 1px solid #bcddeb;
  border-radius: 10px;
  font-size: 15px;
  font-style: normal;
  font-weight: 950;
  place-items: center;
}

.employee-permission-module__copy {
  min-width: 0;
}

.employee-permission-module__meta,
.employee-permission-module__badges {
  display: flex;
  align-items: center;
}

.employee-permission-module__meta {
  flex: 0 0 auto;
  gap: 8px;
}

.employee-permission-module__badges {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.employee-permission-module__count,
.employee-permission-module__overrides {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  color: #36556d;
  background: #fff;
  border: 1px solid #ccdee9;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.employee-permission-module__overrides {
  color: #785810;
  background: #fff8df;
  border-color: #ead18a;
}

.employee-permission-module__chevron {
  display: block;
  flex: 0 0 18px;
  width: 18px !important;
  min-width: 18px;
  max-width: 18px;
  height: 18px !important;
  min-height: 18px;
  max-height: 18px;
  fill: none;
  stroke: #36556d;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform .18s ease;
}

.employee-permission-module[open] .employee-permission-module__chevron {
  transform: rotate(180deg);
}

.employee-permission-module > summary small {
  margin-top: 4px;
  color: #526a7e;
  font-size: 11px;
  line-height: 1.45;
}

.employee-permission-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 230px);
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid #dce7ef;
}

.employee-permission-row::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: transparent;
  content: "";
}

.employee-permission-row--state-allow { background: #f8fdfb; }
.employee-permission-row--state-deny { background: #fffafa; }
.employee-permission-row--state-allow::before { background: #1a875c; }
.employee-permission-row--state-deny::before { background: #b44b42; }

.employee-permission-row:last-child {
  border-bottom: 0;
}

.employee-permission-row--module {
  background: #f8fbfd;
}

.employee-permission-row--module.employee-permission-row--state-allow { background: #f3fbf7; }
.employee-permission-row--module.employee-permission-row--state-deny { background: #fff6f5; }

.employee-permission-row strong,
.employee-permission-row small {
  display: block;
}

.employee-permission-row strong {
  color: #102e49;
  font-size: 13px;
}

.employee-permission-row small {
  margin-top: 4px;
  color: #526a7e;
  font-size: 11px;
  line-height: 1.45;
}

.employee-permission-row select {
  width: 100%;
  min-height: 42px;
  padding: 0 34px 0 11px;
  color: #102e49;
  background: #fff;
  border: 1px solid #b9cedd;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.employee-permission-row__control {
  display: grid;
  gap: 5px;
}

.employee-permission-row__control > span {
  color: #526a7e;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.employee-permission-row__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.employee-permission-effective {
  display: inline-flex;
  flex: 0 0 auto;
  width: fit-content;
  padding: 5px 8px;
  border: 1px solid;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.employee-permission-effective.is-allowed {
  color: #11623d;
  background: #eefcf5;
  border-color: #bdebd3;
}

.employee-permission-effective.is-denied {
  color: #8e2d24;
  background: #fff1f0;
  border-color: #ffc9c4;
}

.employee-permissions__actions,
.employee-permissions__reset {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
}

.employee-permissions__actions {
  color: #dceaf3;
  background: #0b2b43;
}

.employee-permissions__actions p {
  max-width: 760px;
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.employee-permissions__reset {
  color: #526a7e;
  background: #f7fafc;
  border-top: 1px solid #d8e5ee;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .permissions-role-grid { grid-template-columns: 1fr; }
  .permissions-role-column > header { min-height: 0; }
  .employee-permissions__modules { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .permissions-admin-note { max-width: none; }
  .permission-tools { position: sticky; top: 68px; grid-template-columns: 1fr; }
  .permission-tools > div { display: grid; grid-template-columns: 1fr 1fr; }
  .permission-tools > div .admin-button { width: 100%; }
  .permission-module__master { padding: 17px; }
  .permission-service-list { padding-inline: 17px; }
  .permissions-form__actions { position: sticky; bottom: 8px; display: grid; }
  .employee-permissions__stats,
  .employee-permissions__tools { grid-template-columns: 1fr; }
  .employee-permissions__toolbar { grid-column: auto; align-items: flex-start; }
  .employee-permission-row { grid-template-columns: 1fr; }
  .employee-permission-module > summary { align-items: flex-start; }
  .employee-permission-module__meta { align-items: flex-end; flex-direction: column; }
  .employee-permission-module__badges { display: grid; justify-items: end; }
  .employee-permissions__actions,
  .employee-permissions__reset { display: grid; }
  .employee-permissions__actions .admin-button,
  .employee-permissions__reset .admin-button { width: 100%; }
}

/* Shared backoffice header, permission-aware search, notifications and user account menu. */
.admin-body--backoffice .admin-topbar {
  position: fixed;
  inset: 0 0 auto 282px;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(320px, 680px) minmax(120px, 1fr);
  align-items: center;
  min-height: 72px;
  padding: 10px 20px;
  color: #143654;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid #d8e5f0;
  box-shadow: 0 10px 30px rgba(6, 28, 49, .08);
  backdrop-filter: blur(18px);
}

.admin-body--backoffice .admin-dashboard__content {
  padding-top: 88px;
}

.admin-body--backoffice .blog-editor-toolbar {
  top: 82px;
}

.admin-global-search {
  position: relative;
  grid-column: 2;
  display: flex;
  align-items: center;
  width: 100%;
}

.admin-global-search > svg {
  position: absolute;
  left: 15px;
  width: 20px;
  height: 20px;
  color: #61768d;
  pointer-events: none;
}

.admin-global-search input {
  width: 100%;
  height: 46px;
  padding: 0 76px 0 45px;
  color: #102e49;
  background: #f5f9fc;
  border: 1px solid #cbdbe8;
  border-radius: 12px;
  outline: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.admin-global-search input:focus {
  background: #fff;
  border-color: #168dca;
  box-shadow: 0 0 0 4px rgba(22, 141, 202, .12);
}

.admin-global-search > span {
  position: absolute;
  right: 10px;
  padding: 5px 8px;
  color: #6d8195;
  background: #e8f0f6;
  border: 1px solid #d4e0ea;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 900;
  pointer-events: none;
}

.admin-global-search__suggestions {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  max-height: min(560px, calc(100vh - 110px));
  overflow-y: auto;
  padding: 8px;
  background: #fff;
  border: 1px solid #cddde9;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(6, 28, 49, .22);
}

.admin-global-search__suggestions[hidden] {
  display: none;
}

.admin-global-search__group + .admin-global-search__group {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #e3ebf2;
}

.admin-global-search__group-title {
  padding: 7px 10px 5px;
  color: #657b8f;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.admin-global-search__group > a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-height: 58px;
  padding: 8px 10px;
  color: #183b58;
  border-radius: 10px;
  text-decoration: none;
}

.admin-global-search__group > a:hover,
.admin-global-search__group > a:focus-visible,
.admin-global-search__group > a.is-active {
  color: #0057ff;
  background: #eef7fc;
  outline: 0;
}

.admin-global-search__result-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: linear-gradient(145deg, #0879b5, #0057ff);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 950;
}

.admin-global-search__group strong,
.admin-global-search__group small {
  display: block;
}

.admin-global-search__group > a > span:nth-child(2) {
  min-width: 0;
}

.admin-global-search__group strong {
  font-size: 13px;
}

.admin-global-search__group small {
  margin-top: 3px;
  overflow: hidden;
  color: #5e7488;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-global-search__group i {
  color: #168dca;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.admin-global-search__status {
  padding: 18px 14px;
  color: #536c80;
  font-size: 13px;
  font-weight: 750;
  text-align: center;
}

.admin-global-search__status.is-error {
  color: #a23a30;
  background: #fff5f3;
  border-radius: 9px;
}

.admin-topbar__actions {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 4px;
}

.admin-notification-menu,
.admin-user-menu {
  position: relative;
}

.admin-notification-menu > summary,
.admin-user-menu > summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 4px 8px 4px 4px;
  color: #234661;
  border: 1px solid transparent;
  border-radius: 13px;
  list-style: none;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}

.admin-notification-menu > summary {
  position: relative;
  justify-content: center;
  width: 48px;
  padding: 4px;
}

.admin-notification-menu > summary::-webkit-details-marker,
.admin-user-menu > summary::-webkit-details-marker {
  display: none;
}

.admin-notification-menu > summary:hover,
.admin-notification-menu > summary:focus-visible,
.admin-notification-menu[open] > summary,
.admin-user-menu > summary:hover,
.admin-user-menu > summary:focus-visible,
.admin-user-menu[open] > summary {
  background: #eef6fb;
  border-color: #cfe0eb;
  outline: 0;
}

.admin-notification-menu > summary > svg {
  width: 24px;
  height: 24px;
}

.admin-notification-menu__badge {
  position: absolute;
  top: 1px;
  right: 0;
  display: inline-grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  color: #fff;
  background: #d92d20;
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
}

.admin-notification-menu__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(430px, calc(100vw - 28px));
  overflow: hidden;
  background: #fff;
  border: 1px solid #d5e3ed;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(6, 28, 49, .2);
}

.admin-notification-menu__header,
.admin-notification-menu__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
}

.admin-notification-menu__header {
  border-bottom: 1px solid #e2ebf2;
}

.admin-notification-menu__header > div {
  display: grid;
  gap: 2px;
}

.admin-notification-menu__header span {
  color: #5d7185;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.admin-notification-menu__header strong {
  color: #102e49;
  font-size: 15px;
}

.admin-notification-menu__header b {
  padding: 5px 8px;
  color: #9f251c;
  background: #fff0ee;
  border-radius: 999px;
  font-size: 10px;
  white-space: nowrap;
}

.admin-notification-menu__list {
  max-height: min(510px, calc(100vh - 180px));
  overflow-y: auto;
  padding: 6px;
}

.admin-notification-menu__item {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 11px 12px 11px 15px;
  border-radius: 10px;
}

.admin-notification-menu__item + .admin-notification-menu__item {
  border-top: 1px solid #edf2f6;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.admin-notification-menu__item.is-unread {
  background: #eff7ff;
}

.admin-notification-menu__item.is-unread::before {
  position: absolute;
  top: 17px;
  left: 5px;
  width: 5px;
  height: 5px;
  background: #0067e8;
  border-radius: 50%;
  content: '';
}

.admin-notification-menu__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-notification-menu__meta .changelog-type {
  padding: 4px 7px;
  font-size: 9px;
}

.admin-notification-menu__meta time,
.admin-notification-menu__item > small {
  color: #5d7185;
  font-size: 10px;
  font-weight: 800;
}

.admin-notification-menu__item > strong {
  color: #153853;
  font-size: 13px;
  line-height: 1.35;
}

.admin-notification-menu__item > p {
  margin: 0;
  color: #5b7185;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
}

.admin-notification-menu__empty {
  display: grid;
  gap: 5px;
  padding: 28px 18px;
  color: #526b80;
  font-size: 12px;
  text-align: center;
}

.admin-notification-menu__empty strong {
  color: #183b58;
  font-size: 13px;
}

.admin-notification-menu__footer {
  min-height: 52px;
  background: #f8fbfd;
  border-top: 1px solid #e2ebf2;
}

.admin-notification-menu__footer a,
.admin-notification-menu__footer button {
  padding: 0;
  color: #0057c7;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.admin-notification-menu__footer a:hover,
.admin-notification-menu__footer a:focus-visible,
.admin-notification-menu__footer button:hover,
.admin-notification-menu__footer button:focus-visible {
  color: #003c91;
  text-decoration: underline;
  outline: 0;
}

.admin-user-menu__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #fff;
  background: linear-gradient(145deg, #0479b8, #0057ff);
  border-radius: 11px;
  box-shadow: 0 8px 20px rgba(0, 87, 255, .2);
}

.admin-user-menu__icon svg {
  width: 22px;
  height: 22px;
}

.admin-user-menu__chevron {
  width: 15px;
  height: 15px;
  transition: transform .16s ease;
}

.admin-user-menu[open] .admin-user-menu__chevron {
  transform: rotate(180deg);
}

.admin-user-menu__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(310px, calc(100vw - 28px));
  overflow: hidden;
  padding: 8px;
  background: #fff;
  border: 1px solid #d5e3ed;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(6, 28, 49, .2);
}

.admin-user-menu__identity {
  display: grid;
  gap: 3px;
  padding: 12px 12px 14px;
  border-bottom: 1px solid #e2ebf2;
}

.admin-user-menu__identity span {
  color: #6b8094;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.admin-user-menu__identity strong {
  overflow-wrap: anywhere;
  color: #102e49;
  font-size: 14px;
}

.admin-user-menu__identity small {
  color: #168dca;
  font-size: 12px;
  font-weight: 850;
}

.admin-user-menu__dropdown > a,
.admin-user-menu__dropdown button {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 42px;
  margin-top: 4px;
  padding: 9px 10px;
  color: #234661;
  background: transparent;
  border: 0;
  border-radius: 9px;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.admin-user-menu__dropdown > a:hover,
.admin-user-menu__dropdown > a:focus-visible,
.admin-user-menu__dropdown button:hover,
.admin-user-menu__dropdown button:focus-visible {
  color: #0057ff;
  background: #eef6fb;
  outline: 0;
}

.admin-user-menu__dropdown button:hover,
.admin-user-menu__dropdown button:focus-visible {
  color: #b42318;
  background: #fff1f0;
}

.admin-user-menu__dropdown svg {
  width: 20px;
  height: 20px;
}

.admin-user-menu__dropdown > a > span,
.admin-user-menu__dropdown button > span {
  min-width: 0;
  white-space: nowrap;
}

.marketing-workspace-tabs {
  top: 84px;
}

.global-search-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.global-search-group {
  overflow: hidden;
}

.global-search-list {
  display: grid;
}

.global-search-list > a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 12px 18px;
  color: #183b58;
  border-top: 1px solid #e0e9f0;
  text-decoration: none;
  transition: background .16s ease, color .16s ease;
}

.global-search-list > a:hover,
.global-search-list > a:focus-visible {
  color: #0057ff;
  background: #f1f8fd;
  outline: 0;
}

.global-search-list__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: linear-gradient(145deg, #0a759f, #0057ff);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 950;
}

.global-search-list strong,
.global-search-list small {
  display: block;
}

.global-search-list small {
  margin-top: 4px;
  color: #718398;
  font-size: 12px;
  line-height: 1.4;
}

.global-search-list i {
  color: #168dca;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.search-result-count {
  padding: 9px 13px;
  color: #d9f4ff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 900;
}

.profile-card {
  display: grid;
  grid-template-columns: 84px minmax(220px, .8fr) minmax(320px, 1.2fr);
  gap: 24px;
  align-items: center;
  padding: 26px;
}

.profile-card__avatar {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  color: #fff;
  background: linear-gradient(145deg, #0479b8, #0057ff);
  border-radius: 20px;
  font-size: 28px;
  font-weight: 950;
  box-shadow: 0 16px 32px rgba(0, 87, 255, .2);
}

.profile-card__identity span {
  color: #6c8195;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.profile-card__identity h2 {
  margin: 5px 0;
  color: #102e49;
  font-size: 24px;
}

.profile-card__identity a {
  color: #0879b5;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.profile-card__details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  overflow: hidden;
  background: #dce7ef;
  border: 1px solid #dce7ef;
  border-radius: 12px;
}

.profile-card__details div {
  min-width: 0;
  padding: 15px;
  background: #f7fafc;
}

.profile-card__details dt {
  color: #6c8195;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.profile-card__details dd {
  margin: 6px 0 0;
  color: #183b58;
  font-size: 13px;
  font-weight: 850;
}

@media (max-width: 1100px) {
  .global-search-results { grid-template-columns: 1fr; }
  .profile-card { grid-template-columns: 76px minmax(0, 1fr); }
  .profile-card__details { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .admin-body--backoffice .admin-topbar {
    position: sticky;
    inset: 0 auto auto;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 68px;
    padding: 10px 14px;
  }

  .admin-body--backoffice .admin-dashboard__content {
    padding-top: 0;
  }

  .admin-body--backoffice .blog-editor-toolbar {
    top: 68px;
  }

  .admin-global-search { grid-column: 1; }
  .admin-topbar__actions { grid-column: 2; }
  .marketing-workspace-tabs { top: 78px; }
}

@media (max-width: 640px) {
  .admin-global-search input {
    padding-right: 14px;
    font-size: 12px;
  }

  .admin-global-search > span,
  .admin-user-menu__chevron {
    display: none;
  }

  .admin-global-search__suggestions {
    position: fixed;
    top: 68px;
    right: 10px;
    left: 10px;
    max-height: calc(100vh - 82px);
  }

  .admin-global-search__group > a {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .admin-global-search__group i {
    grid-column: 2;
  }

  .admin-user-menu > summary {
    padding-right: 4px;
  }

  .admin-notification-menu__dropdown {
    position: fixed;
    top: 68px;
    right: 10px;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 78px);
  }

  .admin-notification-menu__list {
    max-height: calc(100vh - 188px);
  }

  .global-search-list > a {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 12px 14px;
  }

  .global-search-list > a > :last-child:not(:nth-child(2)) {
    grid-column: 2;
    justify-self: start;
  }

  .profile-card { grid-template-columns: 1fr; }
  .profile-card__details { grid-column: auto; grid-template-columns: 1fr; }
}

@media print {
  .admin-topbar { display: none !important; }
}

/* Per-user appearance controls. */
.admin-user-menu__theme {
  padding: 11px 10px 12px;
  border-bottom: 1px solid #e2ebf2;
}

.admin-user-menu__theme > span {
  display: block;
  margin-bottom: 8px;
  color: #6b8094;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.admin-user-menu__theme form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.admin-user-menu__theme button {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  gap: 4px;
  min-height: 56px;
  margin: 0;
  padding: 6px 4px;
  color: #526b80;
  background: #f5f9fc;
  border: 1px solid #d7e4ed;
  border-radius: 9px;
  text-align: center;
}

.admin-user-menu__theme button:hover,
.admin-user-menu__theme button:focus-visible,
.admin-user-menu__theme button.is-active {
  color: #0057ff;
  background: #eaf4ff;
  border-color: #8db8ff;
}

.admin-user-menu__theme button svg {
  width: 19px;
  height: 19px;
}

.admin-user-menu__theme button small {
  font-size: 9px;
  font-weight: 900;
}

.profile-theme-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 20px;
}

.profile-theme-option {
  display: grid;
  grid-template-columns: 20px 86px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-width: 0;
  padding: 15px;
  color: #183b58;
  background: #f7fafc;
  border: 1px solid #dce7ef;
  border-radius: 11px;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.profile-theme-option:hover,
.profile-theme-option:has(input:focus-visible),
.profile-theme-option.is-active {
  background: #eef7fc;
  border-color: #6baee1;
  box-shadow: 0 10px 24px rgba(22, 113, 177, .1);
  transform: translateY(-1px);
}

.profile-theme-option input {
  width: 18px;
  height: 18px;
  accent-color: #0057ff;
}

.profile-theme-option > span:last-child,
.profile-theme-option strong,
.profile-theme-option small {
  display: block;
  min-width: 0;
}

.profile-theme-option strong {
  color: #102e49;
  font-size: 14px;
}

.profile-theme-option small {
  margin-top: 4px;
  color: #5d7488;
  font-size: 11px;
  line-height: 1.45;
}

.profile-theme-option__preview {
  position: relative;
  display: block;
  width: 86px;
  height: 54px;
  overflow: hidden;
  background: #edf5fb;
  border: 1px solid #cbdce9;
  border-radius: 8px;
}

.profile-theme-option__preview::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 24px;
  content: "";
  background: #082039;
}

.profile-theme-option__preview i,
.profile-theme-option__preview b,
.profile-theme-option__preview em {
  position: absolute;
  left: 31px;
  display: block;
  border-radius: 3px;
}

.profile-theme-option__preview i {
  top: 8px;
  width: 46px;
  height: 8px;
  background: #fff;
}

.profile-theme-option__preview b,
.profile-theme-option__preview em {
  top: 22px;
  width: 20px;
  height: 23px;
  background: #fff;
}

.profile-theme-option__preview em {
  left: 57px;
}

.profile-theme-option__preview--dark {
  background: #071621;
  border-color: #35576d;
}

.profile-theme-option__preview--dark i,
.profile-theme-option__preview--dark b,
.profile-theme-option__preview--dark em {
  background: #163247;
}

.profile-theme-option__preview--system {
  background: linear-gradient(135deg, #edf5fb 0 50%, #071621 50% 100%);
}

.profile-theme-option__preview--system i,
.profile-theme-option__preview--system b {
  background: #fff;
}

.profile-theme-option__preview--system em {
  background: #163247;
}

.profile-theme-options__actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.profile-theme-options__actions .admin-button {
  width: auto;
}

@media (max-width: 1180px) {
  .profile-theme-options { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .profile-theme-option { grid-template-columns: 20px 70px minmax(0, 1fr); }
  .profile-theme-option__preview { width: 70px; }
  .profile-theme-option__preview i { width: 31px; }
  .profile-theme-option__preview b { width: 14px; }
  .profile-theme-option__preview em { left: 51px; width: 14px; }
  .profile-theme-options__actions,
  .profile-theme-options__actions .admin-button { width: 100%; }
}

html[data-backoffice-theme-resolved="dark"] {
  --backoffice-chart-label: #b8cbd9;
  --backoffice-chart-grid: #29475c;
  --backoffice-chart-point: #10283a;
  --backoffice-chart-guide: #6f91aa;
  --admin-text: #f0f7fb;
  --admin-muted: #c2d3df;
  --admin-surface: #0f2536;
  --admin-surface-soft: #142d3f;
  --admin-border: #45677f;
}

@media screen {
  html[data-backoffice-theme-resolved="dark"] .admin-body--backoffice {
    color: #e8f2f8;
    background: #06111b;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-dashboard {
    background:
      radial-gradient(circle at 8% 0%, rgba(0, 119, 255, .14), transparent 28rem),
      linear-gradient(180deg, #071621 0%, #091925 48%, #06131e 100%);
  }

  html[data-backoffice-theme-resolved="dark"] .admin-body--backoffice .admin-topbar {
    color: #dceaf3;
    background: rgba(8, 24, 36, .95);
    border-color: #253e51;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
  }

  html[data-backoffice-theme-resolved="dark"] .admin-global-search input,
  html[data-backoffice-theme-resolved="dark"] .admin-body--backoffice input:not([type="checkbox"]):not([type="radio"]),
  html[data-backoffice-theme-resolved="dark"] .admin-body--backoffice select,
  html[data-backoffice-theme-resolved="dark"] .admin-body--backoffice textarea {
    color: #e9f4fa;
    background: #0b1d2b;
    border-color: #355269;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-body--backoffice input::placeholder,
  html[data-backoffice-theme-resolved="dark"] .admin-body--backoffice textarea::placeholder {
    color: #829bae;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-global-search input:focus,
  html[data-backoffice-theme-resolved="dark"] .admin-body--backoffice input:not([type="checkbox"]):not([type="radio"]):focus,
  html[data-backoffice-theme-resolved="dark"] .admin-body--backoffice select:focus,
  html[data-backoffice-theme-resolved="dark"] .admin-body--backoffice textarea:focus {
    color: #fff;
    background: #10283a;
    border-color: #38a8ed;
    box-shadow: 0 0 0 4px rgba(56, 168, 237, .13);
  }

  html[data-backoffice-theme-resolved="dark"] .admin-global-search > span,
  html[data-backoffice-theme-resolved="dark"] .workspace-severity {
    color: #b8cbd9;
    background: #1b3447;
    border-color: #355269;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-global-search__suggestions,
  html[data-backoffice-theme-resolved="dark"] .admin-notification-menu__dropdown,
  html[data-backoffice-theme-resolved="dark"] .admin-user-menu__dropdown {
    color: #dceaf3;
    background: #0d2232;
    border-color: #35576d;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .42);
  }

  html[data-backoffice-theme-resolved="dark"] .admin-global-search__group + .admin-global-search__group,
  html[data-backoffice-theme-resolved="dark"] .admin-notification-menu__header,
  html[data-backoffice-theme-resolved="dark"] .admin-notification-menu__footer,
  html[data-backoffice-theme-resolved="dark"] .admin-notification-menu__item + .admin-notification-menu__item,
  html[data-backoffice-theme-resolved="dark"] .admin-user-menu__identity,
  html[data-backoffice-theme-resolved="dark"] .admin-user-menu__theme {
    border-color: #294357;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-global-search__group-title,
  html[data-backoffice-theme-resolved="dark"] .admin-global-search__group small,
  html[data-backoffice-theme-resolved="dark"] .admin-global-search__status,
  html[data-backoffice-theme-resolved="dark"] .admin-notification-menu__header span,
  html[data-backoffice-theme-resolved="dark"] .admin-notification-menu__meta time,
  html[data-backoffice-theme-resolved="dark"] .admin-notification-menu__item > small,
  html[data-backoffice-theme-resolved="dark"] .admin-notification-menu__item > p,
  html[data-backoffice-theme-resolved="dark"] .admin-user-menu__identity span,
  html[data-backoffice-theme-resolved="dark"] .admin-user-menu__theme > span {
    color: #a9bfce;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-global-search__group > a,
  html[data-backoffice-theme-resolved="dark"] .admin-notification-menu > summary,
  html[data-backoffice-theme-resolved="dark"] .admin-user-menu > summary,
  html[data-backoffice-theme-resolved="dark"] .admin-user-menu__dropdown > a,
  html[data-backoffice-theme-resolved="dark"] .admin-user-menu__dropdown button {
    color: #dceaf3;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-global-search__group > a:hover,
  html[data-backoffice-theme-resolved="dark"] .admin-global-search__group > a:focus-visible,
  html[data-backoffice-theme-resolved="dark"] .admin-global-search__group > a.is-active,
  html[data-backoffice-theme-resolved="dark"] .admin-notification-menu > summary:hover,
  html[data-backoffice-theme-resolved="dark"] .admin-notification-menu > summary:focus-visible,
  html[data-backoffice-theme-resolved="dark"] .admin-notification-menu[open] > summary,
  html[data-backoffice-theme-resolved="dark"] .admin-user-menu > summary:hover,
  html[data-backoffice-theme-resolved="dark"] .admin-user-menu > summary:focus-visible,
  html[data-backoffice-theme-resolved="dark"] .admin-user-menu[open] > summary,
  html[data-backoffice-theme-resolved="dark"] .admin-user-menu__dropdown > a:hover,
  html[data-backoffice-theme-resolved="dark"] .admin-user-menu__dropdown > a:focus-visible {
    color: #6bc8ff;
    background: #173249;
    border-color: #35566f;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-notification-menu__badge {
    border-color: #081824;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-notification-menu__header strong,
  html[data-backoffice-theme-resolved="dark"] .admin-notification-menu__item > strong,
  html[data-backoffice-theme-resolved="dark"] .admin-notification-menu__empty strong {
    color: #f0f7fb;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-notification-menu__header b {
    color: #ffb7af;
    background: #402521;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-notification-menu__item.is-unread {
    background: #123149;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-notification-menu__item.is-unread::before {
    background: #65c8ff;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-notification-menu__empty {
    color: #a9bfce;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-notification-menu__footer {
    background: #0a1c2a;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-notification-menu__footer a,
  html[data-backoffice-theme-resolved="dark"] .admin-notification-menu__footer button {
    color: #6bc8ff;
  }

  html[data-backoffice-theme-resolved="dark"] .notification-center__item {
    border-color: #294357;
  }

  html[data-backoffice-theme-resolved="dark"] .notification-center__item.is-unread {
    background: linear-gradient(90deg, rgba(56, 168, 237, .14), rgba(56, 168, 237, .025));
    box-shadow: inset 4px 0 0 #38a8ed;
  }

  html[data-backoffice-theme-resolved="dark"] .notification-center__copy h3 {
    color: #f0f7fb;
  }

  html[data-backoffice-theme-resolved="dark"] .notification-center__copy p,
  html[data-backoffice-theme-resolved="dark"] .notification-center__meta time {
    color: #b2c7d5;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-user-menu__identity strong,
  html[data-backoffice-theme-resolved="dark"] .admin-panel__header h2,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-card__metric strong,
  html[data-backoffice-theme-resolved="dark"] .admin-stat-card strong,
  html[data-backoffice-theme-resolved="dark"] .admin-table strong,
  html[data-backoffice-theme-resolved="dark"] .admin-detail-group h3,
  html[data-backoffice-theme-resolved="dark"] .marketing-field,
  html[data-backoffice-theme-resolved="dark"] .marketing-toggle,
  html[data-backoffice-theme-resolved="dark"] .marketing-service-option strong,
  html[data-backoffice-theme-resolved="dark"] .marketing-info-list strong,
  html[data-backoffice-theme-resolved="dark"] .marketing-service-card strong,
  html[data-backoffice-theme-resolved="dark"] .marketing-kpi strong,
  html[data-backoffice-theme-resolved="dark"] .marketing-chart-heading h3,
  html[data-backoffice-theme-resolved="dark"] .marketing-section-heading h3,
  html[data-backoffice-theme-resolved="dark"] .workspace-page-heading h2,
  html[data-backoffice-theme-resolved="dark"] .workspace-health strong,
  html[data-backoffice-theme-resolved="dark"] .workspace-explanation-grid strong,
  html[data-backoffice-theme-resolved="dark"] .workspace-definition-list dd,
  html[data-backoffice-theme-resolved="dark"] .changelog-entry-copy strong,
  html[data-backoffice-theme-resolved="dark"] .employees-result-count strong,
  html[data-backoffice-theme-resolved="dark"] .employee-info-list strong,
  html[data-backoffice-theme-resolved="dark"] .employee-access-control,
  html[data-backoffice-theme-resolved="dark"] .employee-active-toggle strong,
  html[data-backoffice-theme-resolved="dark"] .permissions-role-column > header h2,
  html[data-backoffice-theme-resolved="dark"] .permission-module__master strong,
  html[data-backoffice-theme-resolved="dark"] .permission-service-list strong,
  html[data-backoffice-theme-resolved="dark"] .profile-card__identity h2,
  html[data-backoffice-theme-resolved="dark"] .profile-card__details dd,
  html[data-backoffice-theme-resolved="dark"] .profile-theme-option strong {
    color: #f0f7fb;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-panel,
  html[data-backoffice-theme-resolved="dark"] .admin-stat-card,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-kpi,
  html[data-backoffice-theme-resolved="dark"] .marketing-chart-card,
  html[data-backoffice-theme-resolved="dark"] .agency-table-card {
    background: #0f2536;
    border-color: #35576d;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
  }

  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-section-heading h2,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-kpi,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-kpi:hover,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-kpi:focus-visible,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-kpi > strong,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-analytics-card__heading h3,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-progress-row > div strong,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-ads-summary strong,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-health-grid strong,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-attention-item strong,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-activity-list strong {
    color: #f0f7fb;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-section-heading p:not(.admin-kicker),
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-section-heading > span,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-kpi > span,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-kpi > small,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-analytics-card__heading p,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-chart-legend,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-bar-chart__values,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-bar-chart__column > strong,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-progress-row > div,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-ads-summary span,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-health-grid span,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-sync-note,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-attention-item small,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-activity-list small,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-activity-list time,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-empty-state {
    color: #c7d9e5;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-kpi > em,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-analytics-card__heading > a {
    color: #79d1ff;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-bar-chart {
    background: repeating-linear-gradient(to top, transparent 0 53px, #29475c 54px 55px);
    border-color: #45677f;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-progress-row,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-ads-summary + .admin-dashboard-ads-summary {
    border-color: #35576d;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-progress-track {
    background: #29475c;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-ads-summary > div,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-health-grid > div,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-attention-item,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-activity-list > a,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-empty-state {
    color: #dceaf3;
    background: #142d3f;
    border-color: #35576d;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-attention-item:hover,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-attention-item:focus-visible,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-activity-list > a:hover,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-activity-list > a:focus-visible {
    color: #fff;
    background: #173d57;
    border-color: #4b87aa;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-panel__header,
  html[data-backoffice-theme-resolved="dark"] .admin-table th,
  html[data-backoffice-theme-resolved="dark"] .admin-table td,
  html[data-backoffice-theme-resolved="dark"] .admin-pagination,
  html[data-backoffice-theme-resolved="dark"] .admin-detail-group,
  html[data-backoffice-theme-resolved="dark"] .admin-detail-row,
  html[data-backoffice-theme-resolved="dark"] .marketing-info-list > div,
  html[data-backoffice-theme-resolved="dark"] .employee-info-list > div,
  html[data-backoffice-theme-resolved="dark"] .marketing-section-heading,
  html[data-backoffice-theme-resolved="dark"] .workspace-definition-list div,
  html[data-backoffice-theme-resolved="dark"] .workspace-report-form fieldset,
  html[data-backoffice-theme-resolved="dark"] .ads-change-history .admin-table-wrap {
    border-color: #35576d;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-panel__header p,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-card__metric span,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard-card__metric small,
  html[data-backoffice-theme-resolved="dark"] .admin-stat-card span,
  html[data-backoffice-theme-resolved="dark"] .admin-stat-card > small,
  html[data-backoffice-theme-resolved="dark"] .admin-table th,
  html[data-backoffice-theme-resolved="dark"] .admin-table small,
  html[data-backoffice-theme-resolved="dark"] .admin-empty span,
  html[data-backoffice-theme-resolved="dark"] .admin-pagination,
  html[data-backoffice-theme-resolved="dark"] .admin-detail-row dt,
  html[data-backoffice-theme-resolved="dark"] .admin-muted,
  html[data-backoffice-theme-resolved="dark"] .marketing-field small,
  html[data-backoffice-theme-resolved="dark"] .marketing-service-option small,
  html[data-backoffice-theme-resolved="dark"] .marketing-info-list span,
  html[data-backoffice-theme-resolved="dark"] .marketing-notes > span,
  html[data-backoffice-theme-resolved="dark"] .marketing-service-card small,
  html[data-backoffice-theme-resolved="dark"] .marketing-sync-note,
  html[data-backoffice-theme-resolved="dark"] .marketing-kpi span,
  html[data-backoffice-theme-resolved="dark"] .marketing-chart-heading p,
  html[data-backoffice-theme-resolved="dark"] .marketing-section-heading p,
  html[data-backoffice-theme-resolved="dark"] .marketing-chart-legend,
  html[data-backoffice-theme-resolved="dark"] .marketing-chart-hint,
  html[data-backoffice-theme-resolved="dark"] .workspace-page-heading p:last-child,
  html[data-backoffice-theme-resolved="dark"] .workspace-explanation-grid h3,
  html[data-backoffice-theme-resolved="dark"] .workspace-explanation-grid p,
  html[data-backoffice-theme-resolved="dark"] .workspace-priority-list small,
  html[data-backoffice-theme-resolved="dark"] .workspace-recommendations p,
  html[data-backoffice-theme-resolved="dark"] .workspace-report-history small,
  html[data-backoffice-theme-resolved="dark"] .workspace-definition-list dt,
  html[data-backoffice-theme-resolved="dark"] .changelog-entry-copy p,
  html[data-backoffice-theme-resolved="dark"] .employees-result-count,
  html[data-backoffice-theme-resolved="dark"] .employee-info-list > div > span,
  html[data-backoffice-theme-resolved="dark"] .employee-active-toggle small,
  html[data-backoffice-theme-resolved="dark"] .permission-module__master small,
  html[data-backoffice-theme-resolved="dark"] .permission-service-list small,
  html[data-backoffice-theme-resolved="dark"] .profile-card__identity span,
  html[data-backoffice-theme-resolved="dark"] .profile-card__details dt,
  html[data-backoffice-theme-resolved="dark"] .profile-theme-option small,
  html[data-backoffice-theme-resolved="dark"] .changelog-filters label,
  html[data-backoffice-theme-resolved="dark"] .employees-filters label,
  html[data-backoffice-theme-resolved="dark"] .marketing-period-bar label > span,
  html[data-backoffice-theme-resolved="dark"] .workspace-form-grid label > span,
  html[data-backoffice-theme-resolved="dark"] .workspace-report-form label > span,
  html[data-backoffice-theme-resolved="dark"] .workspace-comment-form label > span,
  html[data-backoffice-theme-resolved="dark"] .report-table-search span,
  html[data-backoffice-theme-resolved="dark"] .report-table-page-size span,
  html[data-backoffice-theme-resolved="dark"] .report-table-summary,
  html[data-backoffice-theme-resolved="dark"] .report-table-pagination span,
  html[data-backoffice-theme-resolved="dark"] .agency-report-footer {
    color: #dceaf3;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-table {
    color: #d7e5ee;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-table th,
  html[data-backoffice-theme-resolved="dark"] .report-table-tools,
  html[data-backoffice-theme-resolved="dark"] .report-table-pagination,
  html[data-backoffice-theme-resolved="dark"] .agency-card-heading,
  html[data-backoffice-theme-resolved="dark"] .marketing-report-toolbar {
    background: #132c3e;
    border-color: #35576d;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-table tbody tr:hover,
  html[data-backoffice-theme-resolved="dark"] .marketing-chart-legend--interactive:hover,
  html[data-backoffice-theme-resolved="dark"] .marketing-chart-legend--interactive:focus-visible {
    background: #173247;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-page-link,
  html[data-backoffice-theme-resolved="dark"] .admin-icon-button,
  html[data-backoffice-theme-resolved="dark"] .report-table-pagination button,
  html[data-backoffice-theme-resolved="dark"] .report-section-toggle {
    color: #8ed6ff !important;
    background: #132c3e;
    border-color: #35536a;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-page-link.is-disabled {
    color: #6e879a !important;
    background: #102535;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-dashboard__hero .admin-page-link {
    color: #0b4f76 !important;
    background: #f4fbff;
    border-color: #a9d4e8;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-dashboard__hero .admin-page-link:hover,
  html[data-backoffice-theme-resolved="dark"] .admin-dashboard__hero .admin-page-link:focus-visible {
    color: #063955 !important;
    background: #fff;
    border-color: #58b3dc;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-detail-value,
  html[data-backoffice-theme-resolved="dark"] .admin-message,
  html[data-backoffice-theme-resolved="dark"] .marketing-info-list strong,
  html[data-backoffice-theme-resolved="dark"] .marketing-notes,
  html[data-backoffice-theme-resolved="dark"] .workspace-report-form fieldset label,
  html[data-backoffice-theme-resolved="dark"] .workspace-task-discussion summary,
  html[data-backoffice-theme-resolved="dark"] .agency-executive-copy,
  html[data-backoffice-theme-resolved="dark"] .agency-insight p,
  html[data-backoffice-theme-resolved="dark"] .agency-data-warning {
    color: #c2d3df;
  }

  html[data-backoffice-theme-resolved="dark"] .marketing-tag,
  html[data-backoffice-theme-resolved="dark"] .employee-role,
  html[data-backoffice-theme-resolved="dark"] .changelog-area {
    color: #9bdcff;
    background: #17364b;
    border-color: #31556e;
  }

  html[data-backoffice-theme-resolved="dark"] .marketing-service-option,
  html[data-backoffice-theme-resolved="dark"] .marketing-service-card,
  html[data-backoffice-theme-resolved="dark"] .marketing-notes,
  html[data-backoffice-theme-resolved="dark"] .marketing-kpi,
  html[data-backoffice-theme-resolved="dark"] .marketing-period-bar,
  html[data-backoffice-theme-resolved="dark"] .workspace-priority-list > a,
  html[data-backoffice-theme-resolved="dark"] .workspace-health article,
  html[data-backoffice-theme-resolved="dark"] .workspace-recommendations article,
  html[data-backoffice-theme-resolved="dark"] .workspace-report-history article,
  html[data-backoffice-theme-resolved="dark"] .workspace-comments article,
  html[data-backoffice-theme-resolved="dark"] .employee-active-toggle,
  html[data-backoffice-theme-resolved="dark"] .profile-card__details div,
  html[data-backoffice-theme-resolved="dark"] .profile-theme-option,
  html[data-backoffice-theme-resolved="dark"] .permission-module__master {
    color: #dceaf3;
    background: #142d3f;
    border-color: #2c4a60;
  }

  html[data-backoffice-theme-resolved="dark"] .employees-hero__meta {
    background: rgba(7, 28, 43, .78);
    border-color: rgba(125, 190, 226, .35);
  }

  html[data-backoffice-theme-resolved="dark"] .employees-hero__meta span {
    color: #add0e3;
  }

  html[data-backoffice-theme-resolved="dark"] .employees-hero__meta strong {
    color: #fff;
  }

  html[data-backoffice-theme-resolved="dark"] .marketing-service-option:has(input:checked),
  html[data-backoffice-theme-resolved="dark"] .profile-theme-option.is-active,
  html[data-backoffice-theme-resolved="dark"] .profile-theme-option:hover {
    background: #173c55;
    border-color: #4b9bc9;
  }

  html[data-backoffice-theme-resolved="dark"] .marketing-service-option--disabled,
  html[data-backoffice-theme-resolved="dark"] .marketing-service-option--disabled:hover {
    background: #172735;
    border-color: #2a3f4f;
  }

  html[data-backoffice-theme-resolved="dark"] .marketing-google-tabs,
  html[data-backoffice-theme-resolved="dark"] .marketing-workspace-tabs,
  html[data-backoffice-theme-resolved="dark"] .agency-report-nav {
    background: rgba(13, 34, 50, .95);
    border-color: #35576d;
  }

  html[data-backoffice-theme-resolved="dark"] .marketing-google-tabs a,
  html[data-backoffice-theme-resolved="dark"] .marketing-workspace-tabs a,
  html[data-backoffice-theme-resolved="dark"] .agency-report-nav a {
    color: #b5cad8;
  }

  html[data-backoffice-theme-resolved="dark"] .marketing-google-tabs a:hover,
  html[data-backoffice-theme-resolved="dark"] .marketing-google-tabs a.is-active,
  html[data-backoffice-theme-resolved="dark"] .agency-report-nav a:hover,
  html[data-backoffice-theme-resolved="dark"] .agency-report-nav a.is-active {
    color: #7fd3ff;
    background: #173d57;
  }

  html[data-backoffice-theme-resolved="dark"] .agency-executive-summary,
  html[data-backoffice-theme-resolved="dark"] .agency-secondary-kpis article,
  html[data-backoffice-theme-resolved="dark"] .ads-intelligence {
    background:
      radial-gradient(circle at 100% 0, rgba(0, 151, 255, .1), transparent 34%),
      linear-gradient(150deg, #0b2131, #0d293c);
    border-color: #2d4c62;
  }

  html[data-backoffice-theme-resolved="dark"] .agency-executive-copy,
  html[data-backoffice-theme-resolved="dark"] .agency-executive-kpis article,
  html[data-backoffice-theme-resolved="dark"] .agency-insight,
  html[data-backoffice-theme-resolved="dark"] .agency-comparison-card,
  html[data-backoffice-theme-resolved="dark"] .ads-intelligence__freshness,
  html[data-backoffice-theme-resolved="dark"] .ads-intelligence__kpis article,
  html[data-backoffice-theme-resolved="dark"] .ads-forecast__grid article,
  html[data-backoffice-theme-resolved="dark"] .ads-score-components article,
  html[data-backoffice-theme-resolved="dark"] .ads-forecast,
  html[data-backoffice-theme-resolved="dark"] .ads-insight-worklist,
  html[data-backoffice-theme-resolved="dark"] .ads-change-history,
  html[data-backoffice-theme-resolved="dark"] .ads-insight-card {
    color: #d8e7ef;
    background: #10293b;
    border-color: #2d4b61;
  }

  html[data-backoffice-theme-resolved="dark"] .agency-executive-note {
    color: #b8cbd8;
    background: #142f42;
  }

  html[data-backoffice-theme-resolved="dark"] .agency-delta {
    color: #c0d1dd;
    background: #213a4c;
  }

  html[data-backoffice-theme-resolved="dark"] .agency-row-warning {
    background: #332b19;
  }

  html[data-backoffice-theme-resolved="dark"] .agency-executive-copy strong,
  html[data-backoffice-theme-resolved="dark"] .agency-executive-kpis strong,
  html[data-backoffice-theme-resolved="dark"] .agency-insight strong,
  html[data-backoffice-theme-resolved="dark"] .agency-comparison-card > strong,
  html[data-backoffice-theme-resolved="dark"] .agency-secondary-kpis strong,
  html[data-backoffice-theme-resolved="dark"] .agency-card-heading h4,
  html[data-backoffice-theme-resolved="dark"] .ads-intelligence__hero h2,
  html[data-backoffice-theme-resolved="dark"] .ads-insight-worklist h3,
  html[data-backoffice-theme-resolved="dark"] .ads-forecast h3,
  html[data-backoffice-theme-resolved="dark"] .ads-intelligence__freshness strong,
  html[data-backoffice-theme-resolved="dark"] .ads-intelligence__kpis strong,
  html[data-backoffice-theme-resolved="dark"] .ads-forecast__grid strong,
  html[data-backoffice-theme-resolved="dark"] .ads-score-components article > div:first-child,
  html[data-backoffice-theme-resolved="dark"] .ads-insight-card h4,
  html[data-backoffice-theme-resolved="dark"] .ads-insight-card__priority strong,
  html[data-backoffice-theme-resolved="dark"] .ads-insight-evidence strong,
  html[data-backoffice-theme-resolved="dark"] .ads-change-history summary {
    color: #eff7fb;
  }

  html[data-backoffice-theme-resolved="dark"] .agency-executive-kpis span,
  html[data-backoffice-theme-resolved="dark"] .agency-executive-kpis small,
  html[data-backoffice-theme-resolved="dark"] .agency-insight p,
  html[data-backoffice-theme-resolved="dark"] .agency-comparison-card > span,
  html[data-backoffice-theme-resolved="dark"] .agency-comparison-card > small,
  html[data-backoffice-theme-resolved="dark"] .agency-secondary-kpis span,
  html[data-backoffice-theme-resolved="dark"] .agency-card-heading p,
  html[data-backoffice-theme-resolved="dark"] .ads-intelligence__hero p:last-child,
  html[data-backoffice-theme-resolved="dark"] .ads-intelligence__freshness span,
  html[data-backoffice-theme-resolved="dark"] .ads-intelligence__kpis span,
  html[data-backoffice-theme-resolved="dark"] .ads-intelligence__kpis small,
  html[data-backoffice-theme-resolved="dark"] .ads-forecast__grid span,
  html[data-backoffice-theme-resolved="dark"] .ads-forecast__grid small,
  html[data-backoffice-theme-resolved="dark"] .ads-intelligence__method-note,
  html[data-backoffice-theme-resolved="dark"] .ads-score-components small,
  html[data-backoffice-theme-resolved="dark"] .ads-insight-card__meta,
  html[data-backoffice-theme-resolved="dark"] .ads-insight-card__body > p,
  html[data-backoffice-theme-resolved="dark"] .ads-insight-recommendation p,
  html[data-backoffice-theme-resolved="dark"] .ads-insight-evidence small,
  html[data-backoffice-theme-resolved="dark"] .ads-insight-card__actions label span {
    color: #abc0cf;
  }

  html[data-backoffice-theme-resolved="dark"] .ads-insight-card__priority,
  html[data-backoffice-theme-resolved="dark"] .ads-insight-card__actions,
  html[data-backoffice-theme-resolved="dark"] .ads-insight-evidence > span,
  html[data-backoffice-theme-resolved="dark"] .workspace-task-discussion {
    background: #132c3e;
    border-color: #2c485d;
  }

  html[data-backoffice-theme-resolved="dark"] .ads-score-components__bar {
    background: #29475b;
  }

  html[data-backoffice-theme-resolved="dark"] .ads-insight-filters button {
    color: #bdd0dc;
    background: #183247;
    border-color: #345269;
  }

  html[data-backoffice-theme-resolved="dark"] .ads-insight-filters button span {
    background: #0e2536;
  }

  html[data-backoffice-theme-resolved="dark"] .ads-insight-filters button.is-active {
    color: #fff;
    background: #096da3;
    border-color: #1493cf;
  }

  html[data-backoffice-theme-resolved="dark"] .ads-health-score--good {
    background: #12352b !important;
    border-color: #2b684d !important;
  }

  html[data-backoffice-theme-resolved="dark"] .ads-health-score--warning {
    background: #382f19 !important;
    border-color: #705b29 !important;
  }

  html[data-backoffice-theme-resolved="dark"] .ads-health-score--critical,
  html[data-backoffice-theme-resolved="dark"] .admin-stat-card--attention {
    background: #3a2025 !important;
    border-color: #74414b !important;
  }

  html[data-backoffice-theme-resolved="dark"] .ads-insight-recommendation {
    background: #123a52;
  }

  html[data-backoffice-theme-resolved="dark"] .permissions-role-column > header {
    background: linear-gradient(145deg, #0b2233, #071824);
    border-color: #35576d;
  }

  html[data-backoffice-theme-resolved="dark"] .permission-service-list label,
  html[data-backoffice-theme-resolved="dark"] .permission-module__master {
    border-color: #2c485d;
  }

  html[data-backoffice-theme-resolved="dark"] .employee-permissions__stats,
  html[data-backoffice-theme-resolved="dark"] .employee-permissions__modules,
  html[data-backoffice-theme-resolved="dark"] .employee-permissions__reset {
    color: #dceaf3;
    background: #0c2232;
    border-color: #35576d;
  }

  html[data-backoffice-theme-resolved="dark"] .employee-permissions__stats article,
  html[data-backoffice-theme-resolved="dark"] .employee-permission-module,
  html[data-backoffice-theme-resolved="dark"] .employee-permission-row--module {
    color: #dceaf3;
    background: #0f2536;
    border-color: #35576d;
  }

  html[data-backoffice-theme-resolved="dark"] .employee-permissions__stat--effective {
    --permission-stat-color: #62c6f4;
    --permission-stat-background: #123a52;
  }

  html[data-backoffice-theme-resolved="dark"] .employee-permissions__stat--allowed {
    --permission-stat-color: #8ee0ba;
    --permission-stat-background: #10372b;
  }

  html[data-backoffice-theme-resolved="dark"] .employee-permissions__stat--denied {
    --permission-stat-color: #ffc1bc;
    --permission-stat-background: #3a2025;
  }

  html[data-backoffice-theme-resolved="dark"] .employee-permission-module > summary {
    color: #f0f7fb;
    background: #142d3f;
    border-color: #35576d;
  }

  html[data-backoffice-theme-resolved="dark"] .employee-permission-module__icon {
    color: #9cddfb;
    background: #123a52;
    border-color: #315c75;
  }

  html[data-backoffice-theme-resolved="dark"] .employee-permission-module__count {
    color: #dceaf3;
    background: #10293b;
    border-color: #4b6b80;
  }

  html[data-backoffice-theme-resolved="dark"] .employee-permission-module__overrides {
    color: #f5d385;
    background: #382f18;
    border-color: #6a5728;
  }

  html[data-backoffice-theme-resolved="dark"] .employee-permission-module__chevron {
    stroke: #dceaf3;
  }

  html[data-backoffice-theme-resolved="dark"] .employee-permission-module > summary strong,
  html[data-backoffice-theme-resolved="dark"] .employee-permission-row strong,
  html[data-backoffice-theme-resolved="dark"] .employee-permissions__stats strong {
    color: #f0f7fb;
  }

  html[data-backoffice-theme-resolved="dark"] .employee-permission-module > summary small,
  html[data-backoffice-theme-resolved="dark"] .employee-permission-row small,
  html[data-backoffice-theme-resolved="dark"] .employee-permissions__stats span,
  html[data-backoffice-theme-resolved="dark"] .employee-permissions__stats small,
  html[data-backoffice-theme-resolved="dark"] .employee-permissions__tools p,
  html[data-backoffice-theme-resolved="dark"] .employee-permissions__reset {
    color: #dceaf3;
  }

  html[data-backoffice-theme-resolved="dark"] .employee-permissions__tools,
  html[data-backoffice-theme-resolved="dark"] .employee-permission-row {
    border-color: #35576d;
  }

  html[data-backoffice-theme-resolved="dark"] .employee-permissions__tools {
    background: #0b1d2b;
  }

  html[data-backoffice-theme-resolved="dark"] .employee-permissions__guide {
    background: #10293b;
    border-color: #35576d;
  }

  html[data-backoffice-theme-resolved="dark"] .employee-permissions__guide > strong,
  html[data-backoffice-theme-resolved="dark"] .employee-permissions__legend span,
  html[data-backoffice-theme-resolved="dark"] .employee-permissions__toolbar > span,
  html[data-backoffice-theme-resolved="dark"] .employee-permission-row__control > span {
    color: #dceaf3;
  }

  html[data-backoffice-theme-resolved="dark"] .employee-permissions__toolbar-button {
    color: #b9e7fb;
    background: #10293b;
    border-color: #4b6b80;
  }

  html[data-backoffice-theme-resolved="dark"] .employee-permissions__toolbar-button:hover,
  html[data-backoffice-theme-resolved="dark"] .employee-permissions__toolbar-button:focus-visible {
    color: #f0f7fb;
    background: #16405a;
    border-color: #69b8df;
  }

  html[data-backoffice-theme-resolved="dark"] .employee-permission-row--state-allow,
  html[data-backoffice-theme-resolved="dark"] .employee-permission-row--module.employee-permission-row--state-allow {
    background: #102d27;
  }

  html[data-backoffice-theme-resolved="dark"] .employee-permission-row--state-deny,
  html[data-backoffice-theme-resolved="dark"] .employee-permission-row--module.employee-permission-row--state-deny {
    background: #311f24;
  }

  html[data-backoffice-theme-resolved="dark"] .employee-permissions__tools label {
    color: #f0f7fb;
  }

  html[data-backoffice-theme-resolved="dark"] .employee-permissions__tools input,
  html[data-backoffice-theme-resolved="dark"] .employee-permission-row select {
    color: #f0f7fb;
    background: #10293b;
    border-color: #4b6b80;
  }

  html[data-backoffice-theme-resolved="dark"] .employee-permission-effective.is-allowed {
    color: #8ee0ba;
    background: #10372b;
    border-color: #286449;
  }

  html[data-backoffice-theme-resolved="dark"] .employee-permission-effective.is-denied {
    color: #ffc1bc;
    background: #3a2025;
    border-color: #74414b;
  }

  html[data-backoffice-theme-resolved="dark"] .permissions-form__actions {
    background: rgba(8, 24, 36, .96);
    border-color: #31546c;
  }

  html[data-backoffice-theme-resolved="dark"] .profile-theme-option__preview--light {
    border-color: #638095;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-alert--success,
  html[data-backoffice-theme-resolved="dark"] .admin-status--sent {
    color: #8ee0ba;
    background: #10372b;
    border-color: #286449;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-status--contacted {
    color: #a9f2cc;
    background: rgba(22, 101, 65, .26);
    border-color: #4bc083;
    box-shadow: inset 0 0 0 1px rgba(75, 192, 131, .18);
  }

  html[data-backoffice-theme-resolved="dark"] .admin-alert--warning,
  html[data-backoffice-theme-resolved="dark"] .admin-status--pending,
  html[data-backoffice-theme-resolved="dark"] .workspace-internal-note,
  html[data-backoffice-theme-resolved="dark"] .agency-data-warning,
  html[data-backoffice-theme-resolved="dark"] .ads-intelligence__notice {
    color: #f5d385;
    background: #382f18;
    border-color: #6a5728;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-alert--danger,
  html[data-backoffice-theme-resolved="dark"] .admin-status--failed,
  html[data-backoffice-theme-resolved="dark"] .admin-icon-button--danger,
  html[data-backoffice-theme-resolved="dark"] .employee-danger-zone {
    color: #ffaaa1 !important;
    background: #3b201f;
    border-color: #71413d;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-user-menu__theme button {
    color: #b3c8d6;
    background: #142b3c;
    border-color: #2d495d;
  }

  html[data-backoffice-theme-resolved="dark"] .admin-user-menu__theme button:hover,
  html[data-backoffice-theme-resolved="dark"] .admin-user-menu__theme button:focus-visible,
  html[data-backoffice-theme-resolved="dark"] .admin-user-menu__theme button.is-active {
    color: #7fd3ff;
    background: #173e57;
    border-color: #4c91bb;
  }

  /* Blog text and editor surfaces must never inherit low-contrast light-theme colors. */
  html[data-backoffice-theme-resolved="dark"] .blog-admin,
  html[data-backoffice-theme-resolved="dark"] .blog-manual-dialog,
  html[data-backoffice-theme-resolved="dark"] .blog-editor-form,
  html[data-backoffice-theme-resolved="dark"] .blog-detail-layout {
    color: #dceaf3;
  }

  html[data-backoffice-theme-resolved="dark"] .blog-editor-toolbar,
  html[data-backoffice-theme-resolved="dark"] .blog-editor-canvas,
  html[data-backoffice-theme-resolved="dark"] .blog-rich-editor,
  html[data-backoffice-theme-resolved="dark"] .blog-translation-card,
  html[data-backoffice-theme-resolved="dark"] .blog-source-row,
  html[data-backoffice-theme-resolved="dark"] .blog-media-card,
  html[data-backoffice-theme-resolved="dark"] .blog-detail-overview article,
  html[data-backoffice-theme-resolved="dark"] .blog-detail-live-preview__viewport,
  html[data-backoffice-theme-resolved="dark"] .blog-detail-list,
  html[data-backoffice-theme-resolved="dark"] .blog-detail-list div,
  html[data-backoffice-theme-resolved="dark"] .blog-detail-sources article,
  html[data-backoffice-theme-resolved="dark"] .blog-image-picker__card,
  html[data-backoffice-theme-resolved="dark"] .blog-media-queue__item,
  html[data-backoffice-theme-resolved="dark"] .blog-image-picker__grid > button,
  html[data-backoffice-theme-resolved="dark"] .blog-manual-dialog__card,
  html[data-backoffice-theme-resolved="dark"] .blog-manual-dialog__steps li,
  html[data-backoffice-theme-resolved="dark"] .blog-manual-import {
    color: #dceaf3;
    background: #0f2536;
    border-color: #35576d;
  }

  html[data-backoffice-theme-resolved="dark"] .blog-rich-editor,
  html[data-backoffice-theme-resolved="dark"] .blog-translation-card__content,
  html[data-backoffice-theme-resolved="dark"] .blog-field__prefix {
    color: #e9f4fa;
    background: #0b1d2b;
    border-color: #35576d;
  }

  html[data-backoffice-theme-resolved="dark"] .blog-translation-card > header,
  html[data-backoffice-theme-resolved="dark"] .blog-source-row__header,
  html[data-backoffice-theme-resolved="dark"] .blog-editor-builder-help,
  html[data-backoffice-theme-resolved="dark"] .blog-confirm {
    color: #c7d9e5;
    background: #142d3f;
    border-color: #35576d;
  }

  html[data-backoffice-theme-resolved="dark"] .blog-editor-toolbar button,
  html[data-backoffice-theme-resolved="dark"] .blog-media-card button,
  html[data-backoffice-theme-resolved="dark"] .blog-manual-dialog__close,
  html[data-backoffice-theme-resolved="dark"] .blog-manual-import input[type="file"] {
    color: #dceaf3;
    background: #173247;
    border-color: #45677f;
  }

  html[data-backoffice-theme-resolved="dark"] .blog-rich-editor h2,
  html[data-backoffice-theme-resolved="dark"] .blog-rich-editor h3,
  html[data-backoffice-theme-resolved="dark"] .blog-translation-card > header h3,
  html[data-backoffice-theme-resolved="dark"] .blog-image-picker__library h3,
  html[data-backoffice-theme-resolved="dark"] .blog-detail-overview article > strong,
  html[data-backoffice-theme-resolved="dark"] .blog-internal-notes h3,
  html[data-backoffice-theme-resolved="dark"] .blog-manual-dialog__header h2,
  html[data-backoffice-theme-resolved="dark"] .blog-manual-dialog__steps strong,
  html[data-backoffice-theme-resolved="dark"] .blog-media-queue__item > div > strong {
    color: #f0f7fb;
  }

  html[data-backoffice-theme-resolved="dark"] .blog-field small,
  html[data-backoffice-theme-resolved="dark"] .blog-field__prefix span,
  html[data-backoffice-theme-resolved="dark"] .blog-rich-editor figcaption,
  html[data-backoffice-theme-resolved="dark"] .blog-translation-card > header p,
  html[data-backoffice-theme-resolved="dark"] .blog-editor-submit small,
  html[data-backoffice-theme-resolved="dark"] .blog-media-upload__status,
  html[data-backoffice-theme-resolved="dark"] .blog-media-card p,
  html[data-backoffice-theme-resolved="dark"] .blog-image-picker__library p,
  html[data-backoffice-theme-resolved="dark"] .blog-media-queue__item label,
  html[data-backoffice-theme-resolved="dark"] .blog-image-picker__grid small,
  html[data-backoffice-theme-resolved="dark"] .blog-detail-overview article > span,
  html[data-backoffice-theme-resolved="dark"] .blog-detail-overview article > small,
  html[data-backoffice-theme-resolved="dark"] .blog-detail-list dt,
  html[data-backoffice-theme-resolved="dark"] .blog-detail-sources p,
  html[data-backoffice-theme-resolved="dark"] .blog-detail-sources small,
  html[data-backoffice-theme-resolved="dark"] .blog-revision-list small,
  html[data-backoffice-theme-resolved="dark"] .blog-revision-list p,
  html[data-backoffice-theme-resolved="dark"] .blog-internal-notes p,
  html[data-backoffice-theme-resolved="dark"] .blog-manual-dialog__intro,
  html[data-backoffice-theme-resolved="dark"] .blog-manual-dialog__steps span,
  html[data-backoffice-theme-resolved="dark"] .blog-manual-dialog__command,
  html[data-backoffice-theme-resolved="dark"] .blog-manual-import label,
  html[data-backoffice-theme-resolved="dark"] .blog-manual-import p,
  html[data-backoffice-theme-resolved="dark"] .blog-delete-dialog__intro {
    color: #dceaf3;
  }

  html[data-backoffice-theme-resolved="dark"] .blog-delete-dialog__table-wrap,
  html[data-backoffice-theme-resolved="dark"] .blog-delete-dialog__table th,
  html[data-backoffice-theme-resolved="dark"] .blog-delete-dialog__table td {
    border-color: #35576d;
  }

  html[data-backoffice-theme-resolved="dark"] .blog-delete-dialog__table th {
    color: #dceaf3;
    background: #173247;
  }

  html[data-backoffice-theme-resolved="dark"] .blog-delete-dialog__table td {
    color: #f0f7fb;
    background: #0b1d2b;
  }

  html[data-backoffice-theme-resolved="dark"] .blog-delete-dialog__notice {
    color: #f5d385;
    background: #382f18;
    border-color: #6a5728;
  }

  html[data-backoffice-theme-resolved="dark"] .blog-delete-dialog__notice.is-blocked {
    color: #ffb4ad;
    background: #3b201f;
    border-color: #71413d;
  }

  html[data-backoffice-theme-resolved="dark"] .blog-detail-list dd {
    color: #d7e5ee;
  }

  html[data-backoffice-theme-resolved="dark"] .blog-admin__stat {
    color: #dceaf3;
    background: #0f2536;
    border-color: #35576d;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
  }

  html[data-backoffice-theme-resolved="dark"] .blog-admin__stat strong {
    color: #f0f7fb;
  }

  html[data-backoffice-theme-resolved="dark"] .blog-admin__stat:hover,
  html[data-backoffice-theme-resolved="dark"] .blog-admin__stat.is-active {
    color: #8ed6ff;
    background: #173247;
    border-color: #4c91bb;
  }

  html[data-backoffice-theme-resolved="dark"] .blog-admin__filters,
  html[data-backoffice-theme-resolved="dark"] .blog-admin__pagination {
    color: #dceaf3;
    border-color: #35576d;
  }

  html[data-backoffice-theme-resolved="dark"] .blog-admin__filters label,
  html[data-backoffice-theme-resolved="dark"] .blog-field,
  html[data-backoffice-theme-resolved="dark"] .blog-publish-form label,
  html[data-backoffice-theme-resolved="dark"] .blog-reject-form label {
    color: #c7d9e5;
  }

  html[data-backoffice-theme-resolved="dark"] .blog-admin__pagination a,
  html[data-backoffice-theme-resolved="dark"] .blog-detail-sources h3 a,
  html[data-backoffice-theme-resolved="dark"] .blog-publish-panel .admin-button--ghost {
    color: #8ed6ff;
  }

  html[data-backoffice-theme-resolved="dark"] .blog-publish-panel .admin-button--ghost {
    background: #173247;
    border-color: #45677f;
  }

  html[data-backoffice-theme-resolved="dark"] .blog-readiness--ready {
    color: #8ee0ba;
    background: #10372b;
    border-color: #286449;
  }

  html[data-backoffice-theme-resolved="dark"] .blog-readiness--warning {
    color: #f5d385;
    background: #382f18;
    border-color: #6a5728;
  }

  html[data-backoffice-theme-resolved="dark"] .blog-manual-dialog__status {
    color: #8ee0ba;
  }

  html[data-backoffice-theme-resolved="dark"] .blog-media-grid:empty::after,
  html[data-backoffice-theme-resolved="dark"] .blog-image-picker__grid:empty::after {
    color: #dceaf3;
    background: #0b1d2b;
    border-color: #45677f;
  }
}

@media print {
  html[data-backoffice-theme-resolved="dark"] {
    --backoffice-chart-label: #71829a;
    --backoffice-chart-grid: #dbe7f5;
    --backoffice-chart-point: #ffffff;
    --backoffice-chart-guide: #8aa4c0;
  }
}

/* Backoffice activity logs */
.activity-logs-admin {
  display: grid;
  gap: 24px;
}

.activity-logs-hero,
.activity-log-detail-hero {
  align-items: center;
  justify-content: space-between;
}

.activity-log-admin-badge,
.activity-log-outcome {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}

.activity-log-admin-badge {
  border: 1px solid #a9c9dc;
  background: #eef8fd;
  color: #0b4b70;
}

.activity-log-filter-panel {
  padding: 22px 24px;
}

.activity-log-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.activity-log-section-heading h2 {
  margin: 0;
  color: #102b40;
  font-size: 1.08rem;
}

.activity-log-section-heading p {
  margin: 5px 0 0;
  color: #526b7c;
  font-size: .84rem;
  line-height: 1.45;
}

.activity-log-filter-panel > .activity-log-section-heading {
  margin-bottom: 20px;
}

.activity-log-stream-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.activity-log-stream-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding: 16px 18px;
  color: #17324a;
  background: #ffffff;
  border: 1px solid #cbdbe6;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(7, 37, 61, .06);
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.activity-log-stream-tab:hover,
.activity-log-stream-tab:focus-visible,
.activity-log-stream-tab.is-active {
  border-color: #1779b9;
  box-shadow: 0 10px 28px rgba(23, 121, 185, .14);
  transform: translateY(-1px);
  outline: none;
}

.activity-log-stream-tab.is-active {
  background: #eef8fd;
}

.activity-log-stream-tab > span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.activity-log-stream-tab strong {
  color: #102b40;
  font-size: .94rem;
}

.activity-log-stream-tab small {
  color: #526b7c;
  font-size: .72rem;
  font-weight: 650;
  line-height: 1.4;
}

.activity-log-stream-tab b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 34px;
  padding: 4px 9px;
  color: #0b5684;
  background: #e7f3fa;
  border-radius: 999px;
  font-size: .82rem;
}

.activity-log-filters {
  display: grid;
  gap: 16px;
}

.activity-log-filters__primary,
.activity-log-filters__advanced-grid {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(145px, 1fr));
  gap: 14px;
  align-items: end;
}

.activity-log-filters__advanced-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 16px;
}

.activity-log-filters__advanced {
  border-top: 1px solid #dce7ed;
  padding-top: 14px;
}

.activity-log-filters__advanced summary {
  width: max-content;
  max-width: 100%;
  color: #0b5684;
  cursor: pointer;
  font-size: .84rem;
  font-weight: 800;
}

.activity-log-filters__advanced summary span {
  margin-left: 6px;
  color: #526b7c;
  font-weight: 600;
}

.activity-log-filters__advanced summary:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(22, 125, 192, .35);
  outline-offset: 4px;
}

.activity-log-filters label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #17324a;
  font-size: .78rem;
  font-weight: 800;
}

.activity-log-filters input,
.activity-log-filters select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #bdd0dc;
  border-radius: 10px;
  background: #fff;
  color: #102b40;
  padding: 10px 12px;
  font: inherit;
  font-weight: 600;
}

.activity-log-filters input:focus,
.activity-log-filters select:focus {
  border-color: #167dc0;
  outline: 3px solid rgba(22, 125, 192, .15);
}

.activity-log-clear-filters {
  justify-self: start;
}

.activity-log-overview {
  display: grid;
  gap: 14px;
}

.activity-log-overview__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.activity-log-overview__card {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid #d2e2eb;
  border-radius: 12px;
  background: #fff;
  padding: 16px 18px;
}

.activity-log-overview__card span {
  color: #526b7c;
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.activity-log-overview__card strong {
  color: #102b40;
  font-size: 1.45rem;
  line-height: 1;
}

.activity-log-overview__card--attention {
  border-color: #edc5c5;
  background: #fff7f5;
}

.activity-log-overview__card--attention strong {
  color: #8a2525;
}

.activity-log-result-count {
  color: #526b7c;
  font-size: .82rem;
  white-space: nowrap;
}

.activity-log-result-count strong {
  color: #102b40;
}

.activity-log-table {
  min-width: 840px;
}

.activity-log-table th:first-child,
.activity-log-table td:first-child {
  width: 105px;
}

.activity-log-table th:last-child,
.activity-log-table td:last-child {
  width: 66px;
  text-align: center;
}

.activity-log-table th:nth-child(2) { width: 46%; }
.activity-log-table th:nth-child(3) { width: 24%; }
.activity-log-table th:nth-child(4) { width: 155px; }

.activity-log-day th {
  width: auto !important;
  background: #edf5fa;
  color: #345b72;
  font-size: .75rem;
  letter-spacing: .04em;
  padding: 9px 18px;
  text-align: left !important;
}

.activity-log-row td { vertical-align: middle; }
.activity-log-row--danger td:first-child { box-shadow: inset 3px 0 #c44848; }
.activity-log-row--warning td:first-child { box-shadow: inset 3px 0 #d59520; }

.activity-log-row time {
  color: #17324a;
  font-size: .84rem;
  font-weight: 800;
  white-space: nowrap;
}

.activity-log-actor,
.activity-log-summary {
  display: grid;
  gap: 5px;
}

.activity-log-actor strong,
.activity-log-summary a {
  color: #102b40;
  font-size: .86rem;
  font-weight: 800;
}

.activity-log-summary a {
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
}

.activity-log-summary a:hover,
.activity-log-summary a:focus-visible {
  color: #0066a5;
  text-decoration: underline;
}

.activity-log-actor small,
.activity-log-summary small {
  color: #526b7c;
  font-size: .74rem;
  overflow-wrap: anywhere;
}

.activity-log-classification {
  color: #526b7c;
  font-size: .72rem;
  font-weight: 800;
}

.activity-log-result {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 8px;
}

.activity-log-result .activity-log-http {
  background: transparent;
  padding: 0;
}

.activity-log-outcome--success {
  background: #e8f8f0;
  color: #12613d;
}

.activity-log-outcome--warning {
  background: #fff4d9;
  color: #7a4a00;
}

.activity-log-outcome--danger {
  background: #ffe8e8;
  color: #8a2525;
}

.activity-log-outcome--neutral {
  background: #edf3f6;
  color: #354f61;
}

.activity-log-http {
  display: inline-flex;
  min-width: 40px;
  justify-content: center;
  border-radius: 7px;
  padding: 4px 7px;
  font-size: .74rem;
}

.activity-log-http--ok {
  background: #e8f8f0;
  color: #12613d;
}

.activity-log-http--error {
  background: #ffe8e8;
  color: #8a2525;
}

.activity-log-detail-hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.activity-log-detail-grid,
.activity-log-payload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.activity-log-detail-card,
.activity-log-json,
.activity-log-integrity {
  padding: 22px;
}

.activity-log-detail-card h2,
.activity-log-json h2,
.activity-log-integrity h2 {
  margin: 0 0 18px;
  color: #102b40;
  font-size: 1rem;
}

.activity-log-detail-card dl,
.activity-log-integrity dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.activity-log-detail-card dl > div,
.activity-log-integrity dl > div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  border-top: 1px solid #dce7ed;
  padding: 11px 0;
}

.activity-log-detail-card dt,
.activity-log-integrity dt {
  color: #526b7c;
  font-size: .76rem;
  font-weight: 800;
}

.activity-log-detail-card dd,
.activity-log-integrity dd {
  min-width: 0;
  margin: 0;
  color: #17324a;
  font-size: .84rem;
  overflow-wrap: anywhere;
}

.activity-log-section > .admin-panel__header > strong {
  display: grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #e8f4fb;
  color: #0b5684;
}

.activity-log-change-list {
  display: grid;
  gap: 16px;
  padding: 0 22px 22px;
}

.activity-log-change {
  overflow: hidden;
  border: 1px solid #d4e1e8;
  border-radius: 14px;
  background: #fbfdfe;
}

.activity-log-change > header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #dce7ed;
  padding: 12px 15px;
}

.activity-log-change > header span {
  border-radius: 999px;
  background: #e8f4fb;
  color: #0b5684;
  padding: 5px 8px;
  font-size: .7rem;
  font-weight: 800;
}

.activity-log-change > header strong {
  color: #102b40;
  font-size: .83rem;
}

.activity-log-change > header small {
  margin-left: auto;
  color: #526b7c;
}

.activity-log-change > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.activity-log-change section {
  min-width: 0;
  padding: 15px;
}

.activity-log-change section + section {
  border-left: 1px solid #dce7ed;
}

.activity-log-change h3 {
  margin: 0 0 9px;
  color: #526b7c;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.activity-log-change pre,
.activity-log-json pre {
  max-height: 430px;
  overflow: auto;
  margin: 0;
  border-radius: 10px;
  background: #10283a;
  color: #e7f4fb;
  padding: 13px;
  font: 600 .73rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.activity-log-database-table {
  min-width: 900px;
}

.activity-log-database-table td:last-child {
  min-width: 380px;
}

.activity-log-database-table td:last-child code {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
}

.activity-log-database-table td:last-child small {
  display: block;
  margin-top: 6px;
  color: #526b7c;
}

.activity-log-truncated {
  margin: 0 22px 20px;
  color: #7a4a00;
  font-size: .8rem;
  font-weight: 700;
}

.activity-log-diagnostics {
  --audit-diag-border: #c6d8e5;
  padding: 22px;
  color: #17324a;
  background: #fff;
}

.activity-log-diagnostics h2 {
  margin: 0 0 12px;
  color: #102b40;
  font-size: 1rem;
  font-weight: 800;
}

.activity-log-diagnostics p {
  margin: 0 0 16px;
  color: inherit;
  line-height: 1.6;
}

.activity-log-diagnostics__runtime {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  margin: 0 0 20px;
}

.activity-log-diagnostics__runtime > div {
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--audit-diag-border);
}

.activity-log-diagnostics dt,
.activity-log-diagnostics small {
  display: block;
  color: inherit;
  font-size: .8rem;
}

.activity-log-diagnostics dd {
  margin: 5px 0 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.activity-log-diagnostics__scroll {
  overflow-x: auto;
  margin-bottom: 20px;
}

.activity-log-diagnostics__table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  text-align: left;
}

.activity-log-diagnostics__table caption {
  padding: 0 0 12px;
  text-align: left;
  font-weight: 800;
}

.activity-log-diagnostics__table th,
.activity-log-diagnostics__table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--audit-diag-border);
  vertical-align: top;
}

.activity-log-diagnostics__table small { margin-top: 6px; }
.activity-log-diagnostics summary { padding: 12px 0; cursor: pointer; font-weight: 800; }
.activity-log-diagnostics :focus-visible { outline: 2px solid #0079b5; outline-offset: 3px; }
.activity-log-diagnostics pre { margin: 0; padding: 16px; background: #f2f7fb; color: inherit; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .8rem; }

html[data-backoffice-theme-resolved="dark"] .activity-log-diagnostics {
  --audit-diag-border: #35586d;
  background: #102637;
  color: #dceaf3;
}
html[data-backoffice-theme-resolved="dark"] .activity-log-diagnostics h2 { color: #f0f7fb; }
html[data-backoffice-theme-resolved="dark"] .activity-log-diagnostics pre { background: #081c2a; }
html[data-backoffice-theme-resolved="dark"] .activity-log-diagnostics :focus-visible { outline-color: #7bdcff; }

@media (max-width: 640px) {
  .activity-log-diagnostics { padding: 16px; }
  .activity-log-diagnostics__runtime { grid-template-columns: minmax(0, 1fr); }
}

.activity-log-integrity {
  display: grid;
  grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr);
  gap: 26px;
}

.activity-log-integrity p {
  margin: 0;
  color: #526b7c;
  line-height: 1.6;
}

html[data-backoffice-theme-resolved="dark"] .activity-log-admin-badge,
html[data-backoffice-theme-resolved="dark"] .activity-log-change > header span,
html[data-backoffice-theme-resolved="dark"] .activity-log-section > .admin-panel__header > strong {
  border-color: #315d76;
  background: #123b53;
  color: #dceef8;
}

html[data-backoffice-theme-resolved="dark"] .activity-log-filters label,
html[data-backoffice-theme-resolved="dark"] .activity-log-result-count,
html[data-backoffice-theme-resolved="dark"] .activity-log-actor small,
html[data-backoffice-theme-resolved="dark"] .activity-log-summary small,
html[data-backoffice-theme-resolved="dark"] .activity-log-classification,
html[data-backoffice-theme-resolved="dark"] .activity-log-section-heading p,
html[data-backoffice-theme-resolved="dark"] .activity-log-overview__card span,
html[data-backoffice-theme-resolved="dark"] .activity-log-filters__advanced summary span,
html[data-backoffice-theme-resolved="dark"] .activity-log-detail-card dt,
html[data-backoffice-theme-resolved="dark"] .activity-log-integrity dt,
html[data-backoffice-theme-resolved="dark"] .activity-log-change h3,
html[data-backoffice-theme-resolved="dark"] .activity-log-integrity p,
html[data-backoffice-theme-resolved="dark"] .activity-log-database-table td:last-child small {
  color: #b8cfdd;
}

html[data-backoffice-theme-resolved="dark"] .activity-log-filters input,
html[data-backoffice-theme-resolved="dark"] .activity-log-filters select {
  border-color: #35586d;
  background: #102b3d;
  color: #f0f7fb;
}

html[data-backoffice-theme-resolved="dark"] .activity-log-stream-tab {
  color: #dceaf3;
  background: #132c3e;
  border-color: #35576d;
  box-shadow: none;
}

html[data-backoffice-theme-resolved="dark"] .activity-log-stream-tab:hover,
html[data-backoffice-theme-resolved="dark"] .activity-log-stream-tab:focus-visible,
html[data-backoffice-theme-resolved="dark"] .activity-log-stream-tab.is-active {
  background: #17384d;
  border-color: #58a9d5;
}

html[data-backoffice-theme-resolved="dark"] .activity-log-stream-tab strong,
html[data-backoffice-theme-resolved="dark"] .activity-log-stream-tab b {
  color: #f0f7fb;
}

html[data-backoffice-theme-resolved="dark"] .activity-log-stream-tab small {
  color: #dceaf3;
}

html[data-backoffice-theme-resolved="dark"] .activity-log-stream-tab b {
  background: #204b65;
}

html[data-backoffice-theme-resolved="dark"] .activity-log-result-count strong,
html[data-backoffice-theme-resolved="dark"] .activity-log-actor strong,
html[data-backoffice-theme-resolved="dark"] .activity-log-summary a,
html[data-backoffice-theme-resolved="dark"] .activity-log-section-heading h2,
html[data-backoffice-theme-resolved="dark"] .activity-log-overview__card strong,
html[data-backoffice-theme-resolved="dark"] .activity-log-row time,
html[data-backoffice-theme-resolved="dark"] .activity-log-detail-card h2,
html[data-backoffice-theme-resolved="dark"] .activity-log-json h2,
html[data-backoffice-theme-resolved="dark"] .activity-log-integrity h2,
html[data-backoffice-theme-resolved="dark"] .activity-log-detail-card dd,
html[data-backoffice-theme-resolved="dark"] .activity-log-integrity dd,
html[data-backoffice-theme-resolved="dark"] .activity-log-change > header strong {
  color: #f0f7fb;
}

html[data-backoffice-theme-resolved="dark"] .activity-log-summary a:hover,
html[data-backoffice-theme-resolved="dark"] .activity-log-summary a:focus-visible,
html[data-backoffice-theme-resolved="dark"] .activity-log-filters__advanced summary {
  color: #8ed9ff;
}

html[data-backoffice-theme-resolved="dark"] .activity-log-overview__card {
  border-color: #35586d;
  background: #132c3e;
}

html[data-backoffice-theme-resolved="dark"] .activity-log-overview__card--attention {
  border-color: #85545b;
  background: #35272e;
}

html[data-backoffice-theme-resolved="dark"] .activity-log-overview__card--attention strong {
  color: #ffd0d2;
}

html[data-backoffice-theme-resolved="dark"] .activity-log-filters__advanced {
  border-color: #35586d;
}

html[data-backoffice-theme-resolved="dark"] .activity-log-day th {
  background: #18394d;
  color: #dceaf3;
}

html[data-backoffice-theme-resolved="dark"] .activity-log-change {
  border-color: #35586d;
  background: #0d2637;
}

html[data-backoffice-theme-resolved="dark"] .activity-log-change > header,
html[data-backoffice-theme-resolved="dark"] .activity-log-detail-card dl > div,
html[data-backoffice-theme-resolved="dark"] .activity-log-integrity dl > div,
html[data-backoffice-theme-resolved="dark"] .activity-log-change section + section {
  border-color: #35586d;
}

html[data-backoffice-theme-resolved="dark"] .activity-log-outcome--success,
html[data-backoffice-theme-resolved="dark"] .activity-log-http--ok {
  background: #123f33;
  color: #bff4d9;
}

html[data-backoffice-theme-resolved="dark"] .activity-log-outcome--warning {
  background: #493817;
  color: #ffe5a4;
}

html[data-backoffice-theme-resolved="dark"] .activity-log-outcome--danger,
html[data-backoffice-theme-resolved="dark"] .activity-log-http--error {
  background: #54272b;
  color: #ffd0d2;
}

html[data-backoffice-theme-resolved="dark"] .activity-log-outcome--neutral {
  background: #253e4e;
  color: #dceaf3;
}

@media (max-width: 1300px) {
  .activity-log-filters__primary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .activity-log-filter--search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .activity-log-stream-tabs {
    grid-template-columns: 1fr;
  }

  .activity-log-overview__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-logs-hero,
  .activity-log-detail-hero,
  .activity-log-detail-hero__actions,
  .activity-log-integrity {
    align-items: flex-start;
  }

  .activity-log-detail-grid,
  .activity-log-payload-grid,
  .activity-log-integrity,
  .activity-log-change > div {
    grid-template-columns: 1fr;
  }

  .activity-log-change section + section {
    border-top: 1px solid #dce7ed;
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .activity-log-filters__primary,
  .activity-log-filters__advanced-grid,
  .activity-log-overview__grid {
    grid-template-columns: 1fr;
  }

  .activity-log-filter--search {
    grid-column: auto;
  }

  .activity-log-detail-hero__actions,
  .activity-log-change > header {
    align-items: stretch;
    flex-direction: column;
  }

  .activity-log-detail-card dl > div,
  .activity-log-integrity dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .activity-log-change > header small {
    margin-left: 0;
  }
}

.profile-security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 8px 22px 0;
}

.profile-security-grid > div {
  padding: 14px 0;
  border-bottom: 1px solid #dce7ed;
}

.profile-security-grid > div:nth-child(odd) {
  padding-right: 22px;
}

.profile-security-grid > div:nth-child(even) {
  padding-left: 22px;
  border-left: 1px solid #dce7ed;
}

.profile-security-grid dt {
  color: #52647c;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-security-grid dd {
  margin: 5px 0 0;
  color: #071936;
  font-size: 14px;
  font-weight: 850;
}

.profile-security-card__note {
  margin: 16px 22px 22px;
  padding: 12px 14px;
  color: #1c304c;
  background: #edf6ff;
  border-left: 3px solid #0057ff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.55;
}

.profile-passkey-summary,
.client-profile-passkeys {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 22px 22px;
  padding: 16px 18px;
  color: #17324a;
  background: #f7fbff;
  border: 1px solid #d7e4ef;
  border-radius: 9px;
}

.profile-passkey-summary > div,
.client-profile-passkeys > div { flex: 1; min-width: 0; }
.profile-passkey-summary h3 { margin: 0; color: #071936; font-size: 17px; }
.profile-passkey-summary p,
.client-profile-passkeys small { display: block; margin: 5px 0 0; color: #52647c; font-size: 12px; font-weight: 700; line-height: 1.5; }
.client-profile-passkeys { margin-top: 0; }

.passkey-divider { display: flex; align-items: center; gap: 12px; color: #71839a; font-size: 11px; font-weight: 850; text-transform: uppercase; }
.passkey-divider::before, .passkey-divider::after { flex: 1; height: 1px; content: ""; background: #d7e4ef; }
.passkey-login-button, .passkey-step-up-button { width: 100%; justify-content: center; }
.passkey-feedback { margin: 0; padding: 10px 12px; color: #0b6338; background: #e8f8ef; border-radius: 7px; font-size: 12px; font-weight: 800; }
.passkey-feedback.is-error { color: #9d1c18; background: #fff0ef; }

.passkey-management { overflow: hidden; }
.passkey-register-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px; padding: 20px 22px 22px; }
.passkey-register-form .passkey-feedback { grid-column: 1 / -1; }
.passkey-list { display: grid; }
.passkey-item { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 17px 22px; border-top: 1px solid #dce7ed; }
.passkey-item:first-child { border-top: 0; }
.passkey-item__icon { display: grid; place-items: center; width: 42px; height: 42px; color: #0057ff; background: #eaf3ff; border-radius: 10px; font-size: 24px; font-weight: 900; }
.passkey-item__icon svg { width: 23px; height: 23px; }
.passkey-item strong, .passkey-item span, .passkey-item small { display: block; }
.passkey-item strong { color: #071936; font-size: 14px; }
.passkey-item span { margin-top: 3px; color: #24425d; font-size: 12px; font-weight: 750; }
.passkey-item small { margin-top: 5px; color: #60758c; font-size: 11px; font-weight: 700; }
.passkey-empty { margin: 0; padding: 24px 22px; color: #52647c; font-weight: 750; }

html[data-backoffice-theme-resolved="dark"] .profile-passkey-summary,
html[data-backoffice-theme-resolved="dark"] .client-profile-passkeys,
html[data-backoffice-theme-resolved="dark"] .passkey-register-form { color: #dceaf3; background: #132c3e; border-color: #35576d; }
html[data-backoffice-theme-resolved="dark"] .profile-passkey-summary h3,
html[data-backoffice-theme-resolved="dark"] .passkey-item strong { color: #f0f7fb; }
html[data-backoffice-theme-resolved="dark"] .profile-passkey-summary p,
html[data-backoffice-theme-resolved="dark"] .client-profile-passkeys small,
html[data-backoffice-theme-resolved="dark"] .passkey-item span,
html[data-backoffice-theme-resolved="dark"] .passkey-item small,
html[data-backoffice-theme-resolved="dark"] .passkey-empty { color: #c8dbe7; }
html[data-backoffice-theme-resolved="dark"] .passkey-item { border-color: #35576d; }
html[data-backoffice-theme-resolved="dark"] .passkey-item__icon { color: #8dc9ff; background: #153a54; }
html[data-backoffice-theme-resolved="dark"] .passkey-divider { color: #b7cad7; }
html[data-backoffice-theme-resolved="dark"] .passkey-divider::before,
html[data-backoffice-theme-resolved="dark"] .passkey-divider::after { background: #45677f; }

.profile-security-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 22px 22px;
}

.profile-security-form {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  background: #f7fbff;
  border: 1px solid #d7e4ef;
  border-radius: 9px;
}

.profile-security-form h3 {
  margin: 0;
  color: #071936;
  font-size: 17px;
}

.profile-security-form > div > p {
  margin: 6px 0 0;
  color: #52647c;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.profile-security-form .admin-error {
  margin: 2px 0 0;
  color: #b42318;
}

.profile-password-requirements {
  padding: 13px 14px;
  color: #52647c;
  background: #fff;
  border: 1px solid #d7e4ef;
  border-radius: 8px;
}

.profile-password-requirements > strong {
  display: block;
  color: #071936;
  font-size: 13px;
}

.profile-password-requirements ul {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.profile-password-requirements li {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #52647c;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  transition: color .16s ease;
}

.profile-password-requirements li::before {
  display: grid;
  place-items: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  content: "";
  background: #fff;
  border: 2px solid #9db0be;
  border-radius: 50%;
  box-sizing: border-box;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}

.profile-password-requirements li.is-valid {
  color: #137333;
}

.profile-password-requirements li.is-valid::before {
  content: "✓";
  color: #fff;
  background: #137333;
  border-color: #137333;
  font-size: 11px;
  font-weight: 900;
}

html[data-backoffice-theme-resolved="dark"] .profile-security-form {
  color: #dceaf3;
  background: #132c3e;
  border-color: #35576d;
}

html[data-backoffice-theme-resolved="dark"] .profile-security-form h3 {
  color: #f0f7fb;
}

html[data-backoffice-theme-resolved="dark"] .profile-security-form > div > p {
  color: #dceaf3;
}

html[data-backoffice-theme-resolved="dark"] .profile-security-form .admin-error {
  color: #ffb8b1;
}

html[data-backoffice-theme-resolved="dark"] .profile-password-requirements {
  color: #dceaf3;
  background: #0e2434;
  border-color: #45677f;
}

html[data-backoffice-theme-resolved="dark"] .profile-password-requirements > strong,
html[data-backoffice-theme-resolved="dark"] .profile-password-requirements li {
  color: #dceaf3;
}

html[data-backoffice-theme-resolved="dark"] .profile-password-requirements li::before {
  background: #0e2434;
  border-color: #7794a8;
}

html[data-backoffice-theme-resolved="dark"] .profile-password-requirements li.is-valid {
  color: #75e6a5;
}

html[data-backoffice-theme-resolved="dark"] .profile-password-requirements li.is-valid::before {
  color: #062014;
  background: #75e6a5;
  border-color: #75e6a5;
}

html[data-backoffice-theme-resolved="dark"] .profile-security-grid > div {
  border-color: #35576d;
}

html[data-backoffice-theme-resolved="dark"] .profile-security-grid dt,
html[data-backoffice-theme-resolved="dark"] .profile-security-card__note {
  color: #dceaf3;
}

html[data-backoffice-theme-resolved="dark"] .profile-security-grid dd {
  color: #f0f7fb;
}

html[data-backoffice-theme-resolved="dark"] .profile-security-card__note {
  background: #132c3e;
}

@media (max-width: 640px) {
  .profile-security-grid,
  .profile-security-actions {
    grid-template-columns: 1fr;
  }

  .profile-security-grid > div:nth-child(odd),
  .profile-security-grid > div:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-left: 0;
  }

  .profile-passkey-summary,
  .client-profile-passkeys { align-items: stretch; flex-direction: column; }
  .passkey-register-form { grid-template-columns: 1fr; padding: 16px; }
  .passkey-item { grid-template-columns: 40px minmax(0, 1fr); padding: 16px; }
  .passkey-item form { grid-column: 1 / -1; }
  .passkey-item form .admin-button { width: 100%; }
}

/* Unified Backoffice table page sizes: 20 / 50 / 100 / 500. */
.admin-table-page-size,
.admin-table-client-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  color: #17324a;
  background: #f8fbff;
  border-bottom: 1px solid #e1ebf7;
  font-size: 13px;
  font-weight: 750;
}

.admin-table-page-size label,
.admin-table-client-controls label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-table-page-size label > span,
.admin-table-client-controls label > span {
  color: #17324a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.admin-table-page-size select,
.admin-table-client-controls select {
  min-width: 86px;
  height: 38px;
  padding: 0 34px 0 12px;
  color: #17324a;
  background-color: #ffffff;
  border: 1px solid #c9d9e7;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.admin-table-page-size select:focus,
.admin-table-client-controls select:focus {
  border-color: #1779b9;
  box-shadow: 0 0 0 3px rgba(23, 121, 185, .14);
  outline: none;
}

.admin-table-client-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  color: #17324a;
  background: #ffffff;
  border-top: 1px solid #e1ebf7;
  font-size: 13px;
  font-weight: 800;
}

.admin-table-client-pagination button {
  min-height: 36px;
  padding: 7px 12px;
  color: #0d5d91;
  background: #ffffff;
  border: 1px solid #c9d9e7;
  border-radius: 9px;
  font: inherit;
  cursor: pointer;
}

.admin-table-client-pagination button:hover:not(:disabled),
.admin-table-client-pagination button:focus-visible:not(:disabled) {
  color: #ffffff;
  background: #0d6fae;
  border-color: #0d6fae;
  outline: none;
}

.admin-table-client-pagination button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.admin-table-client-pagination[hidden] {
  display: none !important;
}

.admin-table tr[hidden] {
  display: none;
}

html[data-backoffice-theme-resolved="dark"] .admin-table-page-size,
html[data-backoffice-theme-resolved="dark"] .admin-table-client-controls,
html[data-backoffice-theme-resolved="dark"] .admin-table-client-pagination {
  color: #dceaf3;
  background: #132c3e;
  border-color: #35576d;
}

html[data-backoffice-theme-resolved="dark"] .admin-table-page-size label > span,
html[data-backoffice-theme-resolved="dark"] .admin-table-client-controls label > span,
html[data-backoffice-theme-resolved="dark"] .admin-table-page-size > span,
html[data-backoffice-theme-resolved="dark"] .admin-table-client-summary {
  color: #dceaf3;
}

html[data-backoffice-theme-resolved="dark"] .admin-table-page-size select,
html[data-backoffice-theme-resolved="dark"] .admin-table-client-controls select,
html[data-backoffice-theme-resolved="dark"] .admin-table-client-pagination button {
  color: #f0f7fb;
  background: #0d2536;
  border-color: #52758c;
}

/* Shared native date picker treatment for every Backoffice form, including dynamically added fields. */
.admin-body--backoffice input:is([type="date"], [type="datetime-local"], [type="month"], [type="week"]) {
  padding-inline-end: 48px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b5684' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18M8 14h.01M12 14h.01M16 14h.01M8 18h.01M12 18h.01'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 20px 20px !important;
  cursor: pointer;
}

.admin-body--backoffice input:is([type="date"], [type="datetime-local"], [type="month"], [type="week"])::-webkit-calendar-picker-indicator {
  width: 22px;
  height: 22px;
  margin: 0 -2px 0 0;
  cursor: pointer;
  opacity: 0;
}

.admin-body--backoffice input:is([type="date"], [type="datetime-local"], [type="month"], [type="week"]):disabled,
.admin-body--backoffice input:is([type="date"], [type="datetime-local"], [type="month"], [type="week"])[readonly] {
  cursor: not-allowed;
}

html[data-backoffice-theme-resolved="dark"] .admin-body--backoffice input:is([type="date"], [type="datetime-local"], [type="month"], [type="week"]) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236bc8ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18M8 14h.01M12 14h.01M16 14h.01M8 18h.01M12 18h.01'/%3E%3C/svg%3E") !important;
}

@media (max-width: 640px) {
  .admin-table-page-size,
  .admin-table-client-controls,
  .admin-table-client-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-table-page-size label,
  .admin-table-client-controls label {
    justify-content: space-between;
  }

  .admin-table-client-pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .admin-table-client-pagination span {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
  }
}

@media print {
  .admin-table-page-size,
  .admin-table-client-controls,
  .admin-table-client-pagination {
    display: none !important;
  }
}

/* Google Ads report: dedicated client presentation and hardened portrait print output. */
.workspace-print-report--managerial {
  display: grid;
  gap: 24px;
}

.agency-print-sheet {
  position: relative;
  display: grid;
  align-content: start;
  gap: 18px;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 28px;
  color: #17324a;
  background: #fff;
  border: 1px solid #d7e3ed;
  border-radius: 12px;
  box-shadow: 0 16px 42px rgba(5, 31, 52, .08);
}

.agency-print-sheet .agency-report-head {
  margin: 0;
}

.agency-managerial-intro,
.agency-managerial-block {
  display: grid;
  gap: 14px;
}

.agency-managerial-intro > div:first-child {
  padding: 18px 20px;
  background: #f1f7fc;
  border-left: 4px solid #087fc1;
  border-radius: 8px;
}

.agency-managerial-intro h3,
.agency-managerial-heading h3,
.agency-managerial-methodology h3 {
  margin: 3px 0 7px;
  color: #082e4b;
  font-size: 21px;
  line-height: 1.2;
}

.agency-managerial-intro p,
.agency-managerial-findings p,
.agency-managerial-actions p,
.agency-optimization-note p,
.agency-managerial-methodology li {
  margin: 0;
  color: #334e63;
  font-size: 13px;
  line-height: 1.55;
}

.agency-managerial-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.agency-managerial-kpis article,
.agency-managerial-comparison article {
  display: grid;
  gap: 5px;
  padding: 14px;
  background: #fff;
  border: 1px solid #d7e3ed;
  border-radius: 8px;
}

.agency-managerial-kpis span,
.agency-managerial-comparison span,
.agency-optimization-note span {
  color: #4c6579;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.agency-managerial-kpis strong,
.agency-managerial-comparison strong {
  color: #082e4b;
  font-size: 21px;
  line-height: 1.05;
}

.agency-managerial-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 9px;
  border-bottom: 2px solid #dce8f1;
}

.agency-managerial-heading h3 {
  margin-bottom: 0;
}

.agency-managerial-heading .admin-kicker {
  color: #0b5684;
  background: #edf7fc;
  border-color: #bcdcea;
}

.agency-sample-warning {
  padding: 6px 9px;
  color: #704600;
  background: #fff3d4;
  border: 1px solid #eac979;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.agency-managerial-comparison {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.agency-managerial-comparison small {
  color: #526a7e;
  font-size: 10px;
}

.agency-managerial-comparison b {
  color: #0b5684;
  font-size: 10px;
  line-height: 1.3;
}

.agency-managerial-findings,
.agency-managerial-actions {
  display: grid;
  gap: 9px;
}

.agency-managerial-findings article {
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 15px;
  background: #f7fafc;
  border: 1px solid #dce6ee;
  border-radius: 8px;
}

.agency-managerial-findings article > span {
  width: 5px;
  height: 100%;
  background: #4b94c4;
  border-radius: 999px;
}

.agency-managerial-findings article.is-warning > span { background: #d58a00; }
.agency-managerial-findings article.is-positive > span { background: #198754; }
.agency-managerial-findings strong,
.agency-managerial-actions strong { display: block; margin-bottom: 3px; color: #082e4b; font-size: 14px; }

.agency-managerial-method-note,
.agency-inline-empty {
  margin: 0;
  padding: 11px 13px;
  color: #405c72;
  background: #f4f8fb;
  border: 1px solid #dae5ed;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.45;
}

.agency-print-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  color: #fff;
  background: #081f32;
  border-radius: 8px;
}

.agency-print-page-head img {
  width: auto;
  height: 34px;
}

.agency-print-page-head div {
  flex: 1 1 auto;
  display: grid;
  gap: 3px;
  min-width: 0;
  max-width: 72%;
  text-align: right;
}

.agency-print-page-head span { color: #cbe8fa; font-size: 11px; font-weight: 800; }
.agency-print-page-head strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

.agency-managerial-charts {
  grid-template-columns: minmax(0, 1fr);
  padding: 0;
}

.agency-managerial-table {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  table-layout: fixed;
}

.agency-managerial-table th,
.agency-managerial-table td {
  padding: 9px 8px;
  overflow-wrap: break-word;
  word-break: normal;
}

.agency-managerial-table th:first-child,
.agency-managerial-table td:first-child { width: 29%; }
.agency-managerial-table td:not(:first-child) { white-space: nowrap; }

.agency-managerial-actions article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 13px;
  padding: 13px 15px;
  background: #f7fafc;
  border: 1px solid #dce6ee;
  border-radius: 8px;
}

.agency-managerial-actions article > b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: #087fc1;
  border-radius: 50%;
  font-size: 12px;
}

.agency-optimization-note {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  background: #eaf5fc;
  border: 1px solid #bcdff2;
  border-radius: 8px;
}

.agency-optimization-note > div { display: grid; gap: 4px; }
.agency-optimization-note strong { color: #082e4b; font-size: 25px; }

.agency-managerial-methodology {
  padding: 15px 18px;
  background: #f7fafc;
  border: 1px solid #dce6ee;
  border-radius: 8px;
}

.agency-managerial-methodology h3 { font-size: 16px; }
.agency-managerial-methodology ul { display: grid; gap: 5px; margin: 8px 0 0; padding-left: 19px; }

.agency-print-page-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 10px;
  color: #526a7e;
  border-top: 1px solid #d7e3ed;
  font-size: 10px;
}

.agency-quality.is-unknown {
  color: #526a7e;
  background: #eef3f7;
  border-color: #d3dfe8;
}

.agency-score small {
  color: #dceaf3;
  font-size: 9px;
  line-height: 1.25;
}

@media (max-width: 760px) {
  .agency-print-sheet { padding: 18px; }
  .agency-managerial-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agency-managerial-comparison { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agency-optimization-note { grid-template-columns: 1fr; }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm;
  }

  html,
  body,
  .admin-body--backoffice,
  .admin-dashboard,
  .admin-dashboard__content,
  .admin-dashboard__main,
  .marketing-workspace,
  .marketing-workspace-content,
  .marketing-google-panel,
  .workspace-print-report,
  .workspace-print-report * {
    color-scheme: light !important;
  }

  html,
  body,
  .admin-body--backoffice,
  .admin-dashboard,
  .admin-dashboard__content,
  .admin-dashboard__main,
  .marketing-workspace,
  .marketing-workspace-content,
  .marketing-google-panel,
  .workspace-print-report {
    color: #17324a !important;
    background: #fff !important;
  }

  .admin-topbar,
  .admin-sidebar,
  .marketing-workspace-head,
  .marketing-workspace-tabs,
  .marketing-google-tabs,
  .marketing-period-bar,
  .workspace-print-hide,
  .workspace-report-grid,
  .marketing-workspace > .admin-alert,
  .report-table-tools,
  .report-table-pagination,
  .report-section-toggle,
  .marketing-chart-hint,
  .marketing-chart-tooltip,
  .report-sort-icon {
    display: none !important;
  }

  .workspace-print-report--managerial {
    display: block !important;
  }

  .workspace-print-report--managerial > .agency-print-sheet {
    position: relative;
    display: grid !important;
    align-content: start;
    gap: 3.2mm;
    width: 100% !important;
    height: 279mm;
    min-height: 279mm;
    max-width: none;
    margin: 0 !important;
    padding: 0 0 9mm !important;
    overflow: hidden;
    color: #17324a !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    break-after: page;
    page-break-after: always;
  }

  .workspace-print-report--managerial > .agency-print-sheet:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .workspace-print-report--managerial .agency-report-head {
    margin: 0 !important;
    padding: 4mm !important;
    color: #fff !important;
    background: #081f32 !important;
    border: 0 !important;
  }

  .workspace-print-report--managerial .agency-report-head h3,
  .workspace-print-report--managerial .agency-report-brand strong,
  .workspace-print-report--managerial .agency-report-document-meta strong,
  .workspace-print-report--managerial .agency-report-meta strong {
    color: #fff !important;
  }

  .workspace-print-report--managerial .agency-report-brand small,
  .workspace-print-report--managerial .agency-report-document-meta span,
  .workspace-print-report--managerial .agency-report-account-name,
  .workspace-print-report--managerial .agency-report-meta {
    color: #dceaf3 !important;
  }

  .workspace-print-report--managerial .agency-managerial-intro,
  .workspace-print-report--managerial .agency-managerial-block {
    gap: 2.2mm;
  }

  .workspace-print-report--managerial .agency-managerial-intro > div:first-child {
    padding: 3mm 3.5mm;
  }

  .workspace-print-report--managerial .agency-managerial-intro h3,
  .workspace-print-report--managerial .agency-managerial-heading h3 {
    font-size: 12pt !important;
  }

  .workspace-print-report--managerial .agency-managerial-intro p,
  .workspace-print-report--managerial .agency-managerial-findings p,
  .workspace-print-report--managerial .agency-managerial-actions p,
  .workspace-print-report--managerial .agency-optimization-note p,
  .workspace-print-report--managerial .agency-managerial-methodology li {
    color: #334e63 !important;
    font-size: 8pt !important;
    line-height: 1.4;
  }

  .workspace-print-report--managerial .agency-managerial-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8mm;
  }

  .workspace-print-report--managerial .agency-managerial-kpis article,
  .workspace-print-report--managerial .agency-managerial-comparison article {
    gap: .7mm;
    padding: 2.2mm;
    background: #fff !important;
    border-color: #cbd9e4 !important;
  }

  .workspace-print-report--managerial .agency-managerial-kpis span,
  .workspace-print-report--managerial .agency-managerial-comparison span {
    color: #405c72 !important;
    font-size: 6.8pt !important;
  }

  .workspace-print-report--managerial .agency-managerial-kpis strong,
  .workspace-print-report--managerial .agency-managerial-comparison strong {
    color: #082e4b !important;
    font-size: 13pt !important;
  }

  .workspace-print-report--managerial .agency-managerial-comparison {
    gap: 1.8mm;
  }

  .workspace-print-report--managerial .agency-managerial-comparison small,
  .workspace-print-report--managerial .agency-managerial-comparison b,
  .workspace-print-report--managerial .agency-managerial-method-note {
    color: #405c72 !important;
    font-size: 7pt !important;
  }

  .workspace-print-report--managerial .agency-managerial-findings,
  .workspace-print-report--managerial .agency-managerial-actions {
    gap: 1.5mm;
  }

  .workspace-print-report--managerial .agency-managerial-findings article,
  .workspace-print-report--managerial .agency-managerial-actions article {
    padding: 2.2mm 2.8mm;
    background: #f7fafc !important;
    break-inside: avoid;
  }

  .workspace-print-report--managerial .agency-managerial-findings strong,
  .workspace-print-report--managerial .agency-managerial-actions strong {
    color: #082e4b !important;
    font-size: 8.5pt !important;
  }

  .workspace-print-report--managerial .agency-print-page-head {
    padding: 3mm 4mm;
    color: #fff !important;
    background: #081f32 !important;
    border-radius: 0;
  }

  .workspace-print-report--managerial .agency-print-page-head img { height: 7mm; }
  .workspace-print-report--managerial .agency-print-page-head span { color: #dceaf3 !important; font-size: 7pt; }
  .workspace-print-report--managerial .agency-print-page-head div { flex: 1 1 auto; min-width: 0; max-width: 72%; }
  .workspace-print-report--managerial .agency-print-page-head strong {
    color: #fff !important;
    font-size: 9pt;
    line-height: 1.25;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  .workspace-print-report--managerial .agency-managerial-charts {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 2mm;
    align-items: stretch;
  }

  .workspace-print-report--managerial .marketing-chart-card {
    min-width: 0;
    padding: 2mm;
    overflow: hidden;
    background: #fff !important;
    border-color: #cbd9e4 !important;
  }

  .workspace-print-report--managerial .marketing-chart-heading h3 { color: #082e4b !important; font-size: 9pt !important; }
  .workspace-print-report--managerial .marketing-chart-heading p { margin-top: .5mm; line-height: 1.2; }
  .workspace-print-report--managerial .marketing-chart-heading p,
  .workspace-print-report--managerial .marketing-chart-legend { color: #405c72 !important; font-size: 6.8pt !important; }
  .workspace-print-report--managerial .marketing-chart-card canvas {
    width: 100% !important;
    height: 34mm !important;
  }

  .workspace-print-report--managerial .agency-managerial-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed;
    font-size: 7.5pt !important;
  }

  .workspace-print-report--managerial .agency-managerial-campaigns th:nth-child(1),
  .workspace-print-report--managerial .agency-managerial-campaigns td:nth-child(1) { width: 36%; }
  .workspace-print-report--managerial .agency-managerial-campaigns th:nth-child(2),
  .workspace-print-report--managerial .agency-managerial-campaigns td:nth-child(2) { width: 11%; }
  .workspace-print-report--managerial .agency-managerial-campaigns th:nth-child(3),
  .workspace-print-report--managerial .agency-managerial-campaigns td:nth-child(3) { width: 12%; }
  .workspace-print-report--managerial .agency-managerial-campaigns th:nth-child(4),
  .workspace-print-report--managerial .agency-managerial-campaigns td:nth-child(4) { width: 9%; }
  .workspace-print-report--managerial .agency-managerial-campaigns th:nth-child(5),
  .workspace-print-report--managerial .agency-managerial-campaigns td:nth-child(5) { width: 10%; }
  .workspace-print-report--managerial .agency-managerial-campaigns th:nth-child(6),
  .workspace-print-report--managerial .agency-managerial-campaigns td:nth-child(6) { width: 11%; }
  .workspace-print-report--managerial .agency-managerial-campaigns th:nth-child(7),
  .workspace-print-report--managerial .agency-managerial-campaigns td:nth-child(7) { width: 11%; }

  .workspace-print-report--managerial .agency-managerial-table--devices th:nth-child(1),
  .workspace-print-report--managerial .agency-managerial-table--devices td:nth-child(1) { width: 22%; }
  .workspace-print-report--managerial .agency-managerial-table--devices th:nth-child(2),
  .workspace-print-report--managerial .agency-managerial-table--devices td:nth-child(2) { width: 15%; }
  .workspace-print-report--managerial .agency-managerial-table--devices th:nth-child(3),
  .workspace-print-report--managerial .agency-managerial-table--devices td:nth-child(3) { width: 13%; }
  .workspace-print-report--managerial .agency-managerial-table--devices th:nth-child(4),
  .workspace-print-report--managerial .agency-managerial-table--devices td:nth-child(4) { width: 16%; }
  .workspace-print-report--managerial .agency-managerial-table--devices th:nth-child(5),
  .workspace-print-report--managerial .agency-managerial-table--devices td:nth-child(5) { width: 20%; }
  .workspace-print-report--managerial .agency-managerial-table--devices th:nth-child(6),
  .workspace-print-report--managerial .agency-managerial-table--devices td:nth-child(6) { width: 14%; }

  .workspace-print-report--managerial .agency-managerial-table th {
    color: #17324a !important;
    background: #eaf2f8 !important;
    font-size: 6.8pt !important;
    letter-spacing: 0;
  }

  .workspace-print-report--managerial .agency-managerial-table td {
    color: #17324a !important;
    background: #fff !important;
    font-size: 7.5pt !important;
  }

  .workspace-print-report--managerial .agency-managerial-table small {
    margin-top: .5mm;
    font-size: 6.8pt !important;
    line-height: 1.2;
  }

  .workspace-print-report--managerial .agency-managerial-table strong { line-height: 1.25; }

  .workspace-print-report--managerial .agency-managerial-table th,
  .workspace-print-report--managerial .agency-managerial-table td {
    padding: 1.1mm 1.3mm !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }

  .workspace-print-report--managerial .agency-managerial-heading .admin-kicker {
    margin: 0 0 1mm;
    color: #0b5684 !important;
    background: #edf7fc !important;
    border-color: #bcdcea !important;
  }

  .workspace-print-report--managerial .agency-optimization-note {
    padding: 3mm;
    background: #eaf5fc !important;
  }

  .workspace-print-report--managerial .agency-optimization-note span { color: #405c72 !important; font-size: 6.8pt; }
  .workspace-print-report--managerial .agency-optimization-note strong { color: #082e4b !important; font-size: 15pt; }
  .workspace-print-report--managerial .agency-managerial-methodology { padding: 3mm; background: #f7fafc !important; }

  .workspace-print-report--managerial .agency-print-page-footer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    margin: 0;
    padding-top: 2mm;
    color: #405c72 !important;
    font-size: 7pt;
  }

  .workspace-print-report--specialist,
  .workspace-print-report--specialist .agency-section,
  .workspace-print-report--specialist .agency-table-card,
  .workspace-print-report--specialist .marketing-campaigns,
  .workspace-print-report--specialist .marketing-chart-card,
  .workspace-print-report--specialist .admin-table-wrap {
    color: #17324a !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .workspace-print-report--specialist .agency-specialist-section,
  .workspace-print-report--specialist #report-search,
  .workspace-print-report--specialist #report-creatives {
    break-before: page;
    page-break-before: always;
  }

  .workspace-print-report--specialist .admin-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
    color: #17324a !important;
    background: #fff !important;
    font-size: 7pt !important;
  }

  .workspace-print-report--specialist .admin-table thead {
    display: table-header-group;
  }

  .workspace-print-report--specialist .admin-table th,
  .workspace-print-report--specialist .admin-table td {
    padding: 1.5mm 1.1mm !important;
    color: #17324a !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
    white-space: normal !important;
  }

  .workspace-print-report--specialist .admin-table th {
    background: #eaf2f8 !important;
    font-size: 6.3pt !important;
    letter-spacing: 0 !important;
  }

  .workspace-print-report--specialist .admin-table td > small,
  .workspace-print-report--specialist .admin-table td > a {
    font-size: 6.3pt !important;
  }

  .workspace-print-report--specialist .admin-table th:first-child,
  .workspace-print-report--specialist .admin-table td:first-child {
    width: 23%;
  }

  .workspace-print-report--specialist .agency-report-head {
    color: #fff !important;
    background: #081f32 !important;
    border: 0 !important;
  }

  .workspace-print-report--specialist .agency-report-head h3,
  .workspace-print-report--specialist .agency-report-brand strong,
  .workspace-print-report--specialist .agency-report-document-meta strong,
  .workspace-print-report--specialist .agency-report-meta strong {
    color: #fff !important;
  }

  .workspace-print-report--specialist .agency-report-brand small,
  .workspace-print-report--specialist .agency-report-document-meta span,
  .workspace-print-report--specialist .agency-report-account-name,
  .workspace-print-report--specialist .agency-report-meta,
  .workspace-print-report--specialist .agency-score small {
    color: #dceaf3 !important;
  }

  .workspace-print-report--specialist .agency-score {
    background: #123a58 !important;
    border-color: #3f6b88 !important;
  }

  .workspace-print-report--specialist .agency-score span { color: #dceaf3 !important; }
  .workspace-print-report--specialist .agency-score strong { color: #6bd5ff !important; }

  .workspace-print-report--specialist .agency-executive-summary {
    color: #17324a !important;
    background: #f4f8fc !important;
    border-color: #cbd9e4 !important;
  }

  .workspace-print-report--specialist .agency-executive-copy,
  .workspace-print-report--specialist .agency-executive-kpis article,
  .workspace-print-report--specialist .agency-insight,
  .workspace-print-report--specialist .agency-comparison-card,
  .workspace-print-report--specialist .agency-secondary-kpis article,
  .workspace-print-report--specialist .agency-executive-note {
    color: #17324a !important;
    background: #fff !important;
    border-color: #cbd9e4 !important;
  }

  .workspace-print-report--specialist .agency-executive-copy,
  .workspace-print-report--specialist .agency-executive-copy p,
  .workspace-print-report--specialist .agency-insight p,
  .workspace-print-report--specialist .agency-executive-kpis span,
  .workspace-print-report--specialist .agency-executive-kpis small,
  .workspace-print-report--specialist .agency-comparison-card > span,
  .workspace-print-report--specialist .agency-comparison-card > small,
  .workspace-print-report--specialist .agency-secondary-kpis span,
  .workspace-print-report--specialist .agency-card-heading p,
  .workspace-print-report--specialist .agency-executive-note {
    color: #405c72 !important;
  }

  .workspace-print-report--specialist .agency-executive-copy strong,
  .workspace-print-report--specialist .agency-executive-kpis strong,
  .workspace-print-report--specialist .agency-insight strong,
  .workspace-print-report--specialist .agency-comparison-card > strong,
  .workspace-print-report--specialist .agency-secondary-kpis strong,
  .workspace-print-report--specialist .agency-card-heading h4 {
    color: #082e4b !important;
  }

  .workspace-print-report--specialist .agency-delta {
    color: #17324a !important;
    background: #eaf2f8 !important;
  }
}

/* Company-scoped Smartlook connection. */
.smartlook-company-connection {
  grid-column: 1 / -1;
  scroll-margin-top: 160px;
}

.smartlook-connection-fields .marketing-field,
.smartlook-connection-fields .marketing-toggle,
.smartlook-connection-fields .marketing-field small,
.smartlook-connection-help {
  color: #17324a;
}

.smartlook-connection-help {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
}

.smartlook-connection-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 20px 20px;
}

.smartlook-company-workspace .smartlook-meta-strip strong {
  overflow-wrap: break-word;
}

.smartlook-configuration a {
  width: fit-content;
  color: #17324a;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

html[data-backoffice-theme-resolved="dark"] .smartlook-connection-fields .marketing-field,
html[data-backoffice-theme-resolved="dark"] .smartlook-connection-fields .marketing-toggle,
html[data-backoffice-theme-resolved="dark"] .smartlook-connection-fields .marketing-field small,
html[data-backoffice-theme-resolved="dark"] .smartlook-connection-help,
html[data-backoffice-theme-resolved="dark"] .smartlook-configuration a {
  color: #dceaf3;
}

@media (max-width: 620px) {
  .smartlook-connection-actions {
    justify-content: stretch;
  }

  .smartlook-connection-actions .admin-button {
    width: 100%;
  }
}
.backoffice-filter-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  color: var(--admin-muted, #5f7387);
  font-size: 0.82rem;
  font-weight: 700;
}

.backoffice-filter-results {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.backoffice-filter-status.is-error {
  position: static;
  width: auto;
  height: auto;
  padding: 8px 12px;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  border: 1px solid #f2b8b5;
  border-radius: 10px;
  background: #fff1f0;
  color: #b42318;
}

html[data-backoffice-theme-resolved="dark"] .backoffice-filter-status.is-error {
  color: #ffd5d2;
  background: #401d24;
  border-color: #8f3e48;
}

[data-backoffice-filter-results].is-filter-loading {
  opacity: 0.58;
  pointer-events: none;
  transition: opacity 140ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .client-approval-company-combobox__control > button svg,
  [data-backoffice-filter-results].is-filter-loading {
    transition: none;
  }
}

/* Susedne textove akcie maju v celom Backoffice spolocny rozmer podla najdlhsej akcie. */
.admin-action-group--equal-size {
  align-items: stretch;
  flex-wrap: wrap;
}

.admin-action-group--equal-size > :is(.admin-button, .admin-page-link),
.admin-action-group--equal-size > [data-admin-equal-action-wrapper] {
  /* Flex-basis sleduje hlavnu os: pri stlpci nesmie zo sirky urobit vysku. */
  flex: 0 0 auto;
  width: var(--admin-equal-action-width);
  min-width: var(--admin-equal-action-width);
  min-height: 50px;
}

.admin-action-group--equal-size > [data-admin-equal-action-wrapper] {
  display: flex;
  align-items: stretch;
  margin: 0;
}

.admin-action-group--equal-size > [data-admin-equal-action-wrapper] > :is(.admin-button, .admin-page-link) {
  width: 100%;
  min-height: 50px;
}

@media (max-width: 640px) {
  .admin-action-group--equal-size > :is(.admin-button, .admin-page-link),
  .admin-action-group--equal-size > [data-admin-equal-action-wrapper] {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
  }
}
/* Klientske To Do */
.client-todo-filters {
    display: grid;
    grid-template-columns: minmax(16rem, 1.5fr) repeat(2, minmax(12rem, 1fr)) auto;
    align-items: end;
    gap: 1rem;
    padding: 1.25rem;
}

.client-todo-list .admin-table-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: .45rem;
}

.client-todo-list .admin-table-actions form {
    display: inline-flex;
    margin: 0;
}

.client-todo-tariff {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 800;
}

.client-todo-tariff i {
    width: .75rem;
    height: .75rem;
    flex: 0 0 .75rem;
    border-radius: 999px;
    background: var(--todo-tariff-color, #78909c);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--todo-tariff-color, #78909c) 18%, transparent);
}

.client-todo-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: .38rem .68rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 900;
}

.client-todo-status--warning { color: #8a4c00; background: #fff0c2; }
.client-todo-status--success { color: #067647; background: #d8f7e8; }
.client-todo-status--info { color: #075985; background: #d9f0ff; }

.client-todo-form-panel {
    max-width: 62rem;
}

.client-todo-form {
    padding: 0;
}

.client-todo-form__fields {
    overflow: hidden;
    margin: 20px 24px 0;
    border: 1px solid var(--admin-border, #d7e3ef);
    border-radius: 12px;
}

.client-todo-form__row {
    grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
    align-items: start;
    gap: 6px 22px;
    margin: 0;
    padding: 16px 18px;
    border-bottom: 1px solid var(--admin-border, #d7e3ef);
}

.client-todo-form__row:last-child { border-bottom: 0; }
.client-todo-form__row:nth-child(even) { background: #f7fafc; }
.client-todo-form__row:focus-within { background: #eef7fc; }
.client-todo-form__row > span { grid-column: 1; grid-row: 1; padding-top: 10px; line-height: 1.45; }
.client-todo-form__row > :is(input, select, textarea) { grid-column: 2; grid-row: 1; min-width: 0; }
.client-todo-form__row > small { grid-column: 2; margin: 0; }
.client-todo-form__row > textarea { min-height: 150px; }
.client-todo-form__status { grid-column: 2; grid-row: 1; align-self: center; }

html[data-backoffice-theme-resolved="dark"] .client-todo-form__row:nth-child(even) {
    background: #142d3f;
}
html[data-backoffice-theme-resolved="dark"] .client-todo-form__row:focus-within { background: #173e57; }

.client-todo-form__actions {
    display: flex;
    justify-content: flex-end;
    padding: 18px 24px 22px;
}

.client-todo-request-note { display: grid; gap: 5px; margin: 18px 24px 0; padding: 16px 18px; color: var(--admin-text, #17324a); background: var(--admin-surface-soft, #f3faff); border: 1px solid var(--admin-border, #b7d9ea); border-radius: 12px; }
.client-todo-request-note strong { font-size: .95rem; }
.client-todo-request-note span { color: var(--admin-muted, #63788d); font-size: .78rem; }
.client-todo-request-note p { margin: 4px 0 0; line-height: 1.5; }

html[data-backoffice-theme-resolved="dark"] .client-todo-status--warning { color: #ffe2a2; background: #604313; }
html[data-backoffice-theme-resolved="dark"] .client-todo-status--success { color: #a6f4cf; background: #124a37; }
html[data-backoffice-theme-resolved="dark"] .client-todo-status--info { color: #b9e6fe; background: #164e63; }

@media (max-width: 900px) {
    .client-todo-filters { grid-template-columns: 1fr; }
    .client-todo-filters .admin-button { width: 100%; }
    .client-todo-form__fields { margin: 16px; }
    .client-todo-form__row { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px; }
    .client-todo-form__row > span,
    .client-todo-form__row > :is(input, select, textarea),
    .client-todo-form__status,
    .client-todo-form__row > small { grid-column: 1; grid-row: auto; }
    .client-todo-form__row > span { padding-top: 0; }
    .client-todo-form__actions { padding: 4px 16px 18px; }
    .client-todo-request-note { margin: 16px 16px 0; }
}

/* Firemné To Do v klientskom portáli */
.client-portal-todos__intro { margin: 0; padding: 18px 20px 0; color: var(--admin-muted, #64748b); line-height: 1.55; }
.client-portal-todo-table { min-width: 780px; }
.client-portal-todo-table th:first-child { width: 31%; }
.client-portal-todo-table td { vertical-align: middle; }
.client-portal-todo-table td:first-child { overflow-wrap: anywhere; }
.client-portal-todo-table__title { color: inherit; text-decoration: none; }
.client-portal-todo-table__title:hover { text-decoration: underline; }
.client-portal-todo-table__title:focus-visible { outline: 3px solid #0b84c6; outline-offset: 3px; border-radius: 3px; }
.client-portal-todo-table__description,
.client-portal-todo-table__meta { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.client-portal-todo-table__actions { display: flex; flex-wrap: nowrap; align-items: center; gap: 7px; }
.client-portal-todo-table__actions form { display: inline-flex; margin: 0; }
.client-portal-todo-table .client-todo-tariff { max-width: 100%; overflow-wrap: anywhere; }

.client-portal-todo-detail__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin: .45rem 0; }
.client-portal-todo-detail__facts > div { min-width: 0; padding: .75rem .85rem; border: 1px solid var(--admin-border, #d7e3ef); border-radius: .65rem; background: var(--admin-surface, #fff); }
.client-portal-todo-detail__facts dt { margin-bottom: .35rem; color: var(--admin-muted, #64748b); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.client-portal-todo-detail__facts dd { margin: 0; color: var(--admin-text, #17324a); font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.client-portal-todo-detail__facts .client-todo-tariff { max-width: 100%; overflow-wrap: anywhere; }

.client-portal-todo-form-panel { max-width: 64rem; }
.client-portal-todo-form { display: grid; gap: 1rem; padding: 1.25rem; }
.client-portal-todo-form__actions { display: flex; justify-content: flex-end; padding-top: .25rem; }

.client-portal-todo-detail { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(0, 1.3fr); gap: 1rem; align-items: start; }
.client-portal-todo-detail__facts { padding: 1.25rem; }
.client-portal-todo-detail__body { min-height: 10rem; padding: 1.25rem; color: var(--admin-text, #17324a); line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.client-portal-todo-detail__request { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; padding: 1.25rem; }
.client-portal-todo-detail__request p { max-width: 52rem; margin: 0; color: var(--admin-muted, #64748b); line-height: 1.55; }
.client-portal-todo-detail__request form { flex: 0 0 auto; margin: 0; }

html[data-backoffice-theme-resolved="dark"] .client-portal-todo-detail__facts > div { background: #10283b; border-color: #45677f; }
html[data-backoffice-theme-resolved="dark"] .client-portal-todo-detail__facts dd,
html[data-backoffice-theme-resolved="dark"] .client-portal-todo-detail__body { color: #f0f7fb; }
html[data-backoffice-theme-resolved="dark"] .client-portal-todo-detail__facts dt { color: #b9cedc; }

@media (max-width: 1100px) {
    .client-portal-todo-detail { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 680px) {
    .client-portal-todo-detail__facts { grid-template-columns: minmax(0, 1fr); }
    .client-portal-todo-detail__facts,
    .client-portal-todo-detail__body { padding: 1rem; }
    .client-portal-todo-detail__request { flex-direction: column; align-items: stretch; padding: 1rem; }
    .client-portal-todo-detail__request .admin-button { width: 100%; }
    .client-portal-todo-form { padding: 1rem; }
    .client-portal-todo-form__actions .admin-button { width: 100%; }
}
.work-report-maintenance-panel { margin-top: 18px; }
.work-report-maintenance-form { padding: 20px 22px 22px; }
.work-report-maintenance-link { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--admin-border, #dce6ef); }
.work-report-maintenance-link span, .work-report-maintenance-actions p, .work-report-maintenance-actions span { color: var(--admin-muted, #63788d); font-size: .78rem; }
.work-report-maintenance-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.work-report-maintenance-list { display: grid; gap: 14px; padding: 20px 22px 22px; }
.work-report-maintenance-item { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--admin-border, #dce6ef); border-radius: 12px; background: var(--admin-surface-soft, #f4f8fb); }
.work-report-maintenance-item > p { margin: 0; white-space: pre-wrap; }
.work-report-maintenance-item__heading { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.work-report-maintenance-item__heading > div { display: grid; gap: 5px; min-width: 0; }
.work-report-maintenance-item__heading small { color: var(--admin-muted, #63788d); }
.work-report-maintenance-item .work-report-maintenance-form { padding: 0; }
.work-report-maintenance-item > p { color: var(--admin-text, #17324a); line-height: 1.55; overflow-wrap: anywhere; }
.work-report-maintenance-date-form, .work-report-maintenance-skip-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.work-report-maintenance-date-form .work-report-field, .work-report-maintenance-skip-form .work-report-field { flex: 1 1 220px; }
.work-report-maintenance-occurrences { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: start; }
.work-report-maintenance-occurrence { display: grid; gap: 16px; min-width: 0; padding: 20px; border: 1px solid var(--admin-border, #dce6ef); border-radius: 10px; background: var(--admin-surface, #fff); color: #17324a; }
.work-report-maintenance-occurrence__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.work-report-maintenance-confirm-form, .work-report-maintenance-confirm-fields, .work-report-maintenance-occurrence .work-report-maintenance-skip-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 0; }
.work-report-maintenance-confirm-fields { min-width: 0; padding: 0; border: 0; }
.work-report-maintenance-confirm-fields .work-report-field, .work-report-maintenance-occurrence .work-report-maintenance-skip-form .work-report-field { min-width: 0; margin: 0; }
.work-report-maintenance-confirm-fields .admin-button, .work-report-maintenance-occurrence .work-report-maintenance-skip-form .admin-button { width: 100%; min-width: 0; }
.work-report-maintenance-confirm-fields:disabled .admin-button { background: #e5edf3; border-color: #c7d7e2; color: #365b75; box-shadow: none; cursor: not-allowed; transform: none; opacity: 1; }
.work-report-maintenance-confirm-fields :disabled:not(button) { opacity: 1; cursor: not-allowed; }
.work-report-maintenance-date-notice { margin: 0; padding: 12px; border: 1px solid #b8d4e5; border-radius: 8px; background: #eef6fb; color: #17324a; font-size: .8rem; line-height: 1.6; }
.work-report-maintenance-metrics, .work-report-maintenance-dates { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--admin-text, #17324a); font-size: .85rem; }
.work-report-maintenance-dates span { padding: 6px 9px; border: 1px solid var(--admin-border, #dce6ef); border-radius: 8px; background: var(--admin-surface, #fff); }
.work-report-maintenance-dashboard { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--admin-border, #dce6ef); border-radius: 10px; background: var(--admin-surface-soft, #f4f8fb); }
.work-report-maintenance-dashboard h3 { margin: 0; color: var(--admin-text, #17324a); font-size: .95rem; }
.work-report-maintenance-dashboard > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.work-report-maintenance-dashboard article { display: grid; gap: 4px; min-width: 0; padding: 12px; border: 1px solid var(--admin-border, #dce6ef); border-radius: 8px; background: var(--admin-surface, #fff); color: var(--admin-text, #17324a); }
.work-report-maintenance-dashboard article small { color: var(--admin-muted, #63788d); }
.work-report-maintenance-dashboard article p { margin: 0; line-height: 1.45; overflow-wrap: anywhere; }
html[data-backoffice-theme-resolved="dark"] .work-report-maintenance-item,
html[data-backoffice-theme-resolved="dark"] .work-report-maintenance-occurrence { color: #f0f7fb; }
html[data-backoffice-theme-resolved="dark"] .work-report-maintenance-date-notice { background: #142e40; border-color: #416277; color: #dceaf3; }
html[data-backoffice-theme-resolved="dark"] .work-report-maintenance-confirm-fields:disabled .admin-button { background: #20394b; border-color: #416277; color: #dceaf3; }
@media (max-width: 800px) { .work-report-maintenance-list { padding: 16px; } .work-report-maintenance-form { padding: 16px; } .work-report-maintenance-item, .work-report-maintenance-occurrence { padding: 16px; } }
