/*
 * R2EVENTOS — sistema visual SaaS 2026
 * Camada carregada apos o CSS legado para modernizar a interface sem alterar
 * estrutura, comportamento ou regras dos modulos existentes.
 */

:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-soft: #f7f7f8;
  --surface-muted: #f4f4f5;
  --surface-hover: #ececee;
  --line: #e5e5e5;
  --line-strong: #d6d6d6;
  --text: #202123;
  --text-soft: #3f4145;
  --muted: #6b6b6b;
  --ink: #171717;
  --graphite: #3f4145;
  --sidebar: #f7f7f8;
  --sidebar-dark: #efeff0;
  --sidebar-hover: #ececee;
  --orange: #087f63;
  --orange-deep: #076b54;
  --green: #087f63;
  --warning-text: #8a5700;
  --danger-text: #b42318;
  --yellow: #b7791f;
  --cyan: #087f63;
  --blue: #667085;
  --danger: #d92d20;
  --link-accent: #076b54;
  --brand-soft: #eaf7f3;
  --success-soft: #eaf7f3;
  --warning-soft: #fff7e8;
  --info-soft: #f4f4f5;
  --neutral-soft: #f4f4f5;
  --shadow: 0 12px 32px rgba(32, 33, 35, 0.06);
  --shadow-soft: 0 4px 14px rgba(32, 33, 35, 0.05);
  --radius: 10px;
  --radius-lg: 14px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --font-body: var(--font);
  --font-num: var(--font);
  --text-xs: 12px;
  --text-sm: 13px;
  --text-md: 14px;
  --text-lg: 16px;
  --text-xl: 22px;
  --text-2xl: 36px;
  --lh-tight: 1.2;
  --lh-copy: 1.55;
  --tracking-label: 0.08em;
  color-scheme: light;
}

html[data-theme="dark"] {
  --green: #62ddb9;
  --warning-text: #f5c76b;
  --danger-text: #ff9a91;
  --bg: #202123;
  --panel: #2b2c31;
  --panel-soft: #27282d;
  --surface-muted: #34353b;
  --surface-hover: #3b3c43;
  --line: #414249;
  --line-strong: #51525a;
  --text: #f5f5f5;
  --text-soft: #dedee3;
  --muted: #a6a6ad;
  --ink: #ffffff;
  --graphite: #dedee3;
  --sidebar: #171719;
  --sidebar-dark: #111113;
  --sidebar-hover: #292a2f;
  --link-accent: #34c99f;
  --brand-soft: rgba(16, 163, 127, 0.16);
  --success-soft: rgba(16, 163, 127, 0.16);
  --warning-soft: rgba(183, 121, 31, 0.18);
  --info-soft: #34353b;
  --neutral-soft: #34353b;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.18);
  color-scheme: dark;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -0.006em;
}

h1,
h2,
h3,
h4,
.page-title,
.page-header__title,
.section-card__head,
.chart-card__title {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
}

button,
a,
input,
select,
textarea,
.card,
.table-card,
.panel-card,
.summary-card,
.form-card,
.section-card,
.kpi-card {
  transition-duration: 180ms;
  transition-timing-function: ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--link-accent);
  outline-offset: 2px;
}

/* Login */
.login-overlay {
  padding: 32px;
  background: var(--panel-soft);
}

.login-panel {
  width: min(980px, 100%);
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.login-panel__brand,
.login-panel__form {
  padding: clamp(32px, 5vw, 56px);
}

.login-panel__brand {
  color: var(--text);
  background: var(--panel-soft);
  border-right: 1px solid var(--line);
}

.login-badge {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(16, 163, 127, 0.18);
  border-radius: 14px;
  background: var(--success-soft);
  box-shadow: none;
}

.login-badge img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0) saturate(100%);
}

.login-kicker,
.login-panel__brand .login-kicker,
.login-panel__form .login-kicker {
  margin-top: 20px;
  color: var(--link-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.login-panel__brand h1 {
  max-width: 440px;
  margin-top: 12px;
  color: var(--text);
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 600;
  line-height: 1.15;
}

.login-panel__brand p,
.login-points {
  color: var(--muted);
  line-height: 1.7;
}

.login-points {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.login-points li {
  position: relative;
  padding-left: 24px;
}

.login-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #087f63;
  font-weight: 700;
}

.login-panel__form {
  background: var(--panel);
}

.login-panel__form h2 {
  margin-top: 8px;
  color: var(--text);
  font-size: 28px;
  font-weight: 600;
}

.login-demo {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
  color: var(--text-soft);
}

.login-demo p {
  margin: 2px 0;
}

/* Estrutura principal */
.platform-header,
.platform-shell.is-collapsed .platform-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 64px;
  grid-template-columns: 276px minmax(0, 1fr);
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  backdrop-filter: blur(14px);
}

.brand-strip,
html[data-theme="light"] .brand-strip {
  gap: 12px;
  padding: 0 16px;
  background: var(--sidebar);
  color: var(--text);
  border-right: 1px solid var(--line);
}

.brand-strip strong img,
html[data-theme="light"] .brand-strip strong img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: grayscale(1) brightness(0.28);
  opacity: 0.92;
}

.brand-strip strong {
  gap: 9px;
}

.brand-name {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.menu-toggle,
html[data-theme="light"] .menu-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--text-soft);
}

.menu-toggle:hover,
html[data-theme="light"] .menu-toggle:hover {
  background: var(--surface-hover);
  border-color: var(--line-strong);
  transform: none;
}

.menu-toggle img,
html[data-theme="light"] .menu-toggle img {
  width: 15px;
  height: 15px;
  filter: grayscale(1) brightness(0.55);
  opacity: 0.9;
}

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
  width: 16px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
}

.menu-toggle__icon {
  position: relative;
  display: block;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle__icon::before {
  top: -5px;
}

.menu-toggle__icon::after {
  top: 5px;
}

html[data-theme="dark"] .brand-strip strong img,
html[data-theme="dark"] .menu-toggle img {
  filter: none;
}

html[data-theme="dark"] .brand-name {
  color: #ffffff;
}

.header-actions {
  gap: 10px;
  padding: 0 22px;
}

.country-chip,
.theme-toggle,
html[data-theme="light"] .country-chip,
html[data-theme="light"] .theme-toggle {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-soft);
  color: var(--muted);
  box-shadow: none;
}

.theme-toggle:hover,
html[data-theme="light"] .theme-toggle:hover {
  background: var(--surface-hover);
  color: var(--text);
  transform: none;
}

.header-user,
html[data-theme="light"] .header-user {
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
}

.platform-body,
.platform-shell.is-collapsed .platform-body {
  grid-template-columns: 276px minmax(0, 1fr);
}

.sidebar,
html[data-theme="light"] .sidebar {
  position: sticky;
  top: 64px;
  align-self: start;
  height: calc(100vh - 64px);
  min-height: calc(100vh - 64px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--sidebar);
  color: var(--text);
  border-right: 1px solid var(--line);
  scrollbar-color: var(--line-strong) transparent;
  scrollbar-width: thin;
}

.profile-card,
html[data-theme="light"] .profile-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 12px;
  padding: 18px 14px 14px;
  background: transparent;
  border-bottom: 1px solid var(--line);
}

.profile-avatar,
.platform-shell.is-collapsed .profile-avatar {
  width: 44px;
  height: 44px;
  margin: 0;
  border: 1px solid rgba(16, 163, 127, 0.18);
  border-radius: 12px;
  background: var(--success-soft);
  color: var(--link-accent);
  box-shadow: none;
  font-size: 15px;
}

.profile-avatar img,
html[data-theme="light"] .profile-avatar img {
  width: 22px;
  height: 22px;
  filter: grayscale(1) brightness(0.42);
}

html[data-theme="dark"] .profile-avatar img {
  filter: grayscale(1) brightness(0) invert(1);
}

.profile-meta {
  min-width: 0;
  align-self: center;
}

.profile-meta h2,
html[data-theme="light"] .profile-meta h2 {
  margin: 0 0 2px;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-meta p,
html[data-theme="light"] .profile-meta p {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 32px);
  gap: 6px;
  margin-top: 12px;
}

.mini-action-icon,
html[data-theme="light"] .mini-action-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  box-shadow: none;
}

.mini-action-icon:hover,
html[data-theme="light"] .mini-action-icon:hover {
  border-color: var(--line-strong);
  background: var(--surface-hover);
  color: var(--text);
}

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

.sidebar-nav {
  gap: 1px;
  padding: 8px 10px 28px;
}

.nav-section-label {
  margin: 18px 10px 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.2;
}

.nav-section-label:first-child {
  margin-top: 8px;
}

.nav-button,
html[data-theme="light"] .nav-button {
  min-height: 40px;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 9px;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
}

.nav-button strong {
  overflow: hidden;
  font-weight: 550;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-button::before {
  display: none;
}

.nav-button:hover,
.nav-button.is-open,
.nav-button.has-active-child,
html[data-theme="light"] .nav-button:hover,
html[data-theme="light"] .nav-button.is-open,
html[data-theme="light"] .nav-button.has-active-child {
  background: var(--surface-hover);
  color: var(--text);
}

.nav-button.is-active,
html[data-theme="light"] .nav-button.is-active {
  background: var(--success-soft);
  color: var(--link-accent);
  box-shadow: none;
}

.nav-icon,
.nav-button:hover .nav-icon,
.nav-button.is-open .nav-icon,
.nav-button.is-active .nav-icon,
html[data-theme="light"] .nav-icon,
html[data-theme="light"] .nav-button:hover .nav-icon,
html[data-theme="light"] .nav-button.is-open .nav-icon,
html[data-theme="light"] .nav-button.is-active .nav-icon {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: currentColor;
  font-size: 12px;
}

.app-icon {
  width: 17px;
  height: 17px;
  display: block;
}

.nav-icon img,
html[data-theme="light"] .nav-icon img,
html[data-theme="light"] .nav-button.is-active .nav-icon img {
  width: 15px;
  height: 15px;
  filter: grayscale(1) brightness(0.48);
  opacity: 0.78;
}

.nav-button.is-active .nav-icon img {
  filter: grayscale(1) sepia(1) saturate(4) hue-rotate(105deg) brightness(0.72);
  opacity: 1;
}

html[data-theme="dark"] .nav-icon img {
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 0.72;
}

.nav-label,
html[data-theme="light"] .nav-label,
.nav-chevron,
html[data-theme="light"] .nav-chevron {
  color: var(--muted);
}

.nav-chevron {
  display: inline-grid;
  place-items: center;
}

.nav-chevron-icon {
  width: 15px;
  height: 15px;
  display: block;
}

.nav-count,
.nav-count--green,
.nav-count--orange,
.nav-count--gray,
.nav-count--cyan {
  min-width: 20px;
  padding: 2px 6px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 10px;
}

.nav-button.is-active .nav-count {
  background: rgba(16, 163, 127, 0.15);
  color: var(--link-accent);
}

.nav-sub,
html[data-theme="light"] .nav-sub {
  margin: 2px 0 8px 31px;
  padding: 3px 3px 3px 8px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.nav-sub-item,
html[data-theme="light"] .nav-sub-item {
  min-height: 34px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  white-space: normal;
}

.nav-sub-item:hover,
.nav-sub-item.is-active,
html[data-theme="light"] .nav-sub-item:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.nav-sub-item.is-active,
html[data-theme="light"] .nav-sub-item.is-active {
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(20, 20, 22, 0.05);
}

.nav-sub-item::before,
.nav-sub-item.is-active::before {
  display: none;
}

.platform-shell.is-collapsed .platform-header,
.platform-shell.is-collapsed .platform-body {
  grid-template-columns: 76px minmax(0, 1fr);
}

.platform-shell.is-collapsed .profile-card {
  display: block;
  padding: 14px 10px;
}

.platform-shell.is-collapsed .profile-avatar {
  margin: 0 auto;
}

.platform-shell.is-collapsed .profile-actions,
.platform-shell.is-collapsed .mini-action-icon,
.platform-shell.is-collapsed .profile-meta,
.platform-shell.is-collapsed .nav-section-label,
.platform-shell.is-collapsed .nav-button strong,
.platform-shell.is-collapsed .nav-chevron,
.platform-shell.is-collapsed .nav-count,
.platform-shell.is-collapsed .brand-strip strong,
.platform-shell.is-collapsed .nav-sub {
  display: none;
}

.platform-shell.is-collapsed .nav-button {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 8px;
}

/* Conteudo */
.workspace,
html[data-theme="light"] .workspace {
  min-width: 0;
  padding: 24px clamp(20px, 3vw, 40px) 48px;
  background: var(--bg);
}

.workspace-top,
.shortcut-panel,
.view-shell {
  width: 100%;
  max-width: 1360px;
  margin-right: auto;
  margin-left: auto;
}

.workspace-top {
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.page-kicker,
html[data-theme="light"] .page-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.page-title,
html[data-theme="light"] .page-title {
  margin-top: 6px;
  color: var(--text);
  font-size: clamp(28px, 2.5vw, 32px);
  font-weight: 600;
  line-height: 1.18;
}

.shortcut-row {
  gap: 8px;
}

.btn,
.btn--add,
.btn--export,
.btn--print,
.btn--outline,
.btn--danger,
.action-btn {
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.btn:hover,
.btn--add:hover,
.btn--export:hover,
.btn--print:hover,
.btn--outline:hover,
.action-btn:hover {
  transform: none;
  box-shadow: none;
}

.btn--primary,
.btn--success,
.btn--teal,
.btn--add,
.action-btn--primary {
  border-color: #087f63;
  background: #087f63;
  color: #ffffff;
}

.btn--primary:hover,
.btn--success:hover,
.btn--teal:hover,
.btn--add:hover,
.action-btn--primary:hover {
  border-color: #076b54;
  background: #076b54;
  color: #ffffff;
}

.btn--ghost,
.btn--outline,
.btn--dark,
.btn--info,
.btn--warning,
.btn--export,
.btn--print,
.action-btn--info {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text-soft);
}

.btn--ghost:hover,
.btn--outline:hover,
.btn--dark:hover,
.btn--info:hover,
.btn--warning:hover,
.btn--export:hover,
.btn--print:hover,
.action-btn--info:hover {
  border-color: var(--line-strong);
  background: var(--panel-soft);
  color: var(--text);
}

.btn--danger,
.action-btn--danger {
  border-color: var(--danger-text);
  background: #d92d20;
  color: #ffffff;
}

.shortcut-row .btn,
html[data-theme="light"] .shortcut-row .btn {
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--text-soft);
  box-shadow: none;
}

.shortcut-row .btn:hover,
html[data-theme="light"] .shortcut-row .btn:hover {
  border-color: var(--line-strong);
  background: var(--panel-soft);
  color: var(--text);
}

.shortcut-row .btn--success,
html[data-theme="light"] .shortcut-row .btn--success {
  border-color: #087f63;
  background: #087f63;
  color: #ffffff;
}

.shortcut-row .btn--success:hover,
html[data-theme="light"] .shortcut-row .btn--success:hover {
  border-color: #076b54;
  background: #076b54;
  color: #ffffff;
}

.shortcut-panel,
html[data-theme="light"] .shortcut-panel {
  gap: 8px;
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
  box-shadow: none;
}

.shortcut-link,
html[data-theme="light"] .shortcut-link {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
}

.shortcut-link:hover,
html[data-theme="light"] .shortcut-link:hover {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
  transform: none;
}

.view-shell {
  gap: 16px;
  color: var(--text);
}

.page-header,
.view-shell .page-header,
html[data-theme="light"] .view-shell .page-header {
  min-height: 46px;
  padding: 0 2px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-header__group {
  gap: 10px;
}

.page-header__icon,
.view-shell .page-header__icon,
html[data-theme="light"] .view-shell .page-header__icon {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: var(--success-soft);
  color: var(--link-accent);
  box-shadow: none;
}

.page-header__icon img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(37%) sepia(28%) saturate(1451%) hue-rotate(114deg) brightness(93%) contrast(91%);
}

.page-header__eyebrow,
.view-shell .page-header__eyebrow {
  margin-bottom: 1px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.page-header__title,
.view-shell .page-header__title {
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}

/* Cartoes, secoes e metricas */
.view-shell .card,
.view-shell .table-card,
.view-shell .panel-card,
.view-shell .summary-card,
.view-shell .form-card,
.view-shell .hero-card,
.view-shell .chart-card,
.view-shell .perf-mini,
.view-shell .section-card,
.view-shell .alert-collapse,
.view-shell .filter-bar,
.view-shell .info-row,
.view-shell .agenda-sidebar,
.view-shell .calendar-grid-wrap,
.view-shell .list-item,
.view-shell .timeline-row,
.view-shell .team-link-box,
.view-shell .permission-field,
.view-shell .permission-option,
.view-shell .kpi-card,
.card,
.table-card,
.panel-card,
.summary-card,
.form-card,
.hero-card,
.chart-card,
.section-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  box-shadow: none;
}

.card:hover,
.table-card:hover,
.panel-card:hover,
.summary-card:hover,
.view-shell .card:hover,
.view-shell .table-card:hover,
.view-shell .panel-card:hover,
.view-shell .summary-card:hover {
  border-color: var(--line-strong);
  box-shadow: none;
  transform: none;
}

.summary-grid {
  gap: 12px;
}

.kpi-card,
.summary-card {
  min-height: 112px;
  padding: 16px;
  border-radius: 12px;
  box-shadow: none;
}

.kpi-card::after {
  display: none;
}

.kpi-label,
.summary-card__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}

.kpi-value,
.summary-card strong,
.summary-card__value,
.stat-value,
.big-number {
  color: var(--text);
  font-family: var(--font-num);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.3;
  white-space: normal;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.kpi-card--green .kpi-value {
  color: var(--link-accent);
}

.table-card__head,
.form-card__head,
.panel-card__head,
.section-card__head,
.agenda-sidebar__head,
.view-shell .table-card__head,
.view-shell .form-card__head,
.view-shell .panel-card__head,
.view-shell .section-card__head,
.view-shell .agenda-sidebar__head,
html[data-theme="light"] .view-shell .table-card__head,
html[data-theme="light"] .view-shell .form-card__head,
html[data-theme="light"] .view-shell .panel-card__head,
html[data-theme="light"] .view-shell .section-card__head,
html[data-theme="light"] .view-shell .agenda-sidebar__head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  border-radius: 12px 12px 0 0;
  background: var(--panel);
}

.table-card__head h3,
.form-card__head h3,
.panel-card__head h3,
.agenda-sidebar__head h3,
.view-shell .table-card__head h3,
.view-shell .form-card__head h3,
.view-shell .panel-card__head h3 {
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
}

.table-card__body,
.panel-card__body,
.form-card__body {
  padding: 18px;
}

.hero-card {
  background-image: none;
}

/* Tabelas */
.view-shell table {
  border-collapse: separate;
  border-spacing: 0;
}

.view-shell th {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.view-shell td {
  padding: 13px 14px;
  border-bottom-color: var(--line);
  color: var(--text-soft);
  font-size: 13px;
}

.view-shell tbody tr:last-child td {
  border-bottom: 0;
}

.view-shell tbody tr:hover {
  background: var(--panel-soft);
}

/* Refinamento da listagem de categorias do estoque */
.inventory-category-card .table-wrap {
  overflow-x: auto;
}

.inventory-category-table {
  min-width: 720px;
  table-layout: fixed;
}

.inventory-category-table th:nth-child(1) { width: 30%; }
.inventory-category-table th:nth-child(2) { width: 42%; }
.inventory-category-table th:nth-child(3) { width: 16%; }
.inventory-category-table th:nth-child(4) { width: 12%; }

.inventory-category-table th,
.inventory-category-table td {
  vertical-align: middle;
}

.inventory-category-table td {
  padding-top: 14px;
  padding-bottom: 14px;
}

.inventory-category-row td:first-child {
  border-left: 3px solid transparent;
  transition: border-color 0.16s ease;
}

.inventory-category-row:hover td:first-child {
  border-left-color: var(--category-color);
}

.inventory-category-name-cell .cat-drill-btn {
  width: 100%;
  gap: 11px;
  padding: 2px 0;
  color: var(--text);
  background: transparent;
  border-radius: 9px;
}

.inventory-category-name-cell .cat-drill-btn:hover {
  background: transparent;
}

.inventory-category-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--category-color) 22%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--category-color) 13%, transparent);
  color: var(--category-color);
  font-size: 17px;
  line-height: 1;
}

.inventory-category-name {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.inventory-category-description {
  color: var(--text-soft) !important;
  font-size: 13px !important;
  line-height: 1.45;
}

.inventory-category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.inventory-category-actions-cell {
  padding-right: 16px !important;
}

.inventory-category-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  white-space: nowrap;
}

.category-action {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.category-action:hover {
  transform: translateY(-1px);
}

.category-action--view:hover {
  border-color: rgba(16, 163, 127, 0.24);
  background: var(--success-soft);
  color: var(--link-accent);
}

.category-action--delete:hover {
  border-color: rgba(220, 38, 38, 0.22);
  background: rgba(220, 38, 38, 0.08);
  color: #dc2626;
}

.category-action-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.cell-name-link,
.task-item__link,
.link-button,
.ed-link-btn {
  color: var(--link-accent);
}

/* Formularios */
input,
select,
textarea,
.view-shell input,
.view-shell select,
.view-shell textarea {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  box-shadow: none;
}

textarea,
.view-shell textarea {
  min-height: 112px;
}

input::placeholder,
textarea::placeholder,
.view-shell input::placeholder,
.view-shell textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 78%, transparent);
}

input:focus,
select:focus,
textarea:focus,
.view-shell input:focus,
.view-shell select:focus,
.view-shell textarea:focus {
  outline: none;
  border-color: #087f63;
  box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.12);
}

.login-form span,
.form-grid span,
.filter-bar label,
.field-label {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 500;
}

/* Abas, filtros e estados */
.tab-nav,
.evt-tabs,
.inv-bar__tabs,
.edit-item-tabs,
.ed-cron-date-tabs,
.inv-novo-tabs-bar {
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
}

.tab-btn,
.evt-tab,
.inv-tab,
.filter-chip,
.cal-btn,
.perf-month-btn,
.view-shell .tab-btn,
.view-shell .filter-chip,
.view-shell .cal-btn {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-size: 12px;
  font-weight: 500;
}

.tab-btn:hover,
.evt-tab:hover,
.inv-tab:hover,
.filter-chip:hover,
.cal-btn:hover,
.perf-month-btn:hover {
  background: var(--panel);
  color: var(--text);
}

.tab-btn.is-active,
.evt-tab.is-active,
.inv-tab.is-active,
.filter-chip.is-active,
.perf-month-btn.is-active,
.cal-btn--today,
.view-shell .tab-btn.is-active,
.view-shell .perf-month-btn.is-active,
.view-shell .cal-btn--today {
  border-color: rgba(16, 163, 127, 0.16);
  background: var(--success-soft);
  color: var(--link-accent);
  box-shadow: none;
}

.badge,
.status-badge,
.tab-count {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.filter-bar,
.evt-filtro-panel,
.inv-filter-panel,
.proposal-filter-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
  box-shadow: none;
}

/* Agenda e graficos */
.calendar-week-header,
html[data-theme="light"] .calendar-week-header {
  background: var(--panel-soft);
  border-bottom-color: var(--line);
}

.cal-cell,
.calendar-day,
.agenda-sidebar__list {
  border-color: var(--line);
  background: var(--panel);
}

.cal-cell:hover,
.calendar-day:hover {
  background: var(--panel-soft);
}

.cal-cell.is-today,
.calendar-day.is-today {
  border-color: rgba(16, 163, 127, 0.35);
  background: var(--success-soft);
}

.chart-card svg,
.dashboard-chart svg {
  filter: saturate(0.72);
}

.dchart-line,
.chart-line {
  stroke: #087f63;
}

.dchart-dot,
.chart-dot {
  fill: #087f63;
}

/* Componentes especializados ainda possuem regras antigas com !important.
   Estes ajustes os trazem para os mesmos tokens do restante do produto. */
.view-shell .ed-card,
.view-shell .ed-personalizar-item,
.view-shell .ed-topbar,
.view-shell .ed-section-nav,
.view-shell .ed-section-content,
.view-shell .ed-quickbar,
.view-shell .ed-client-card,
.view-shell .ed-date-card,
.view-shell .ed-venue-card,
.view-shell .ed-info-panel,
.view-shell .ed-cron-item,
.view-shell .ed-org-node,
.view-shell .ed-ad-row,
.view-shell .evt-detalhe-header,
.view-shell .evt-secao-body,
.view-shell .evt-checklist-item,
.view-shell .evt-cron-item,
.view-shell .inv-bar,
.view-shell .inv-panel,
.view-shell .inv-card,
.view-shell .inv-filter-panel,
.view-shell .inv-novo-card,
.view-shell .inv-qr-modal,
.view-shell .edit-sidebar-card,
.view-shell .edit-section,
.view-shell .modal-box,
.view-shell .ed-modal-box {
  border-color: var(--line) !important;
  background: var(--panel) !important;
  color: var(--text) !important;
  box-shadow: none !important;
}

.view-shell .ed-client-row-item,
.view-shell .ed-date-info,
.view-shell .ed-date-label,
.view-shell .ed-date-horario strong,
.view-shell .ed-section-label,
.view-shell .ed-venue-name,
.view-shell .ed-secao-title,
.view-shell .ed-file-name,
.view-shell .ed-tl-desc,
.view-shell .ed-history-nota,
.view-shell .ed-ad-dates,
.view-shell .ed-org-info strong,
.view-shell .evt-detalhe-titulo,
.view-shell .evt-check-text,
.view-shell .evt-cron-body,
.view-shell .inv-novo-card__title strong,
.view-shell .team-create-form__info-box span,
.view-shell .cat-card__count,
.view-shell .kit-item-qty {
  color: var(--text) !important;
}

.view-shell .ed-date-type,
.view-shell .ed-termino-empty,
.view-shell .ed-termino-note,
.view-shell .ed-venue-addr,
.view-shell .ed-evento-num,
.view-shell .ed-hint,
.view-shell .ed-stat-lbl,
.view-shell .ed-stat-sub,
.view-shell .ed-tl-meta,
.view-shell .ed-history-meta,
.view-shell .ed-ad-time,
.view-shell .ed-org-info span,
.view-shell .ed-org-status,
.view-shell .evt-detalhe-meta,
.view-shell .evt-cron-body p,
.view-shell .inv-novo-card__title p,
.view-shell .inv-filter-label,
.view-shell .inv-novo-label,
.view-shell .field-note,
.view-shell .cell-subtle {
  color: var(--muted) !important;
}

.view-shell .ed-btn-todos,
.view-shell .ed-btn-form,
.view-shell .ed-btn-share,
.view-shell .ed-btn-green,
.view-shell .ed-btn-save,
.view-shell .ed-add-client-btn,
.view-shell .ed-duplicate-btn,
.view-shell .ed-share-btn,
.view-shell .ed-arquivo-label,
.view-shell .ed-planta-upload-btn,
.view-shell .evt-info-btn--teal,
.view-shell .evt-info-btn--blue,
.view-shell .inv-novo-btn-consultar,
.view-shell .inv-qr-btn--blue,
.view-shell .inv-qr-btn--teal,
.view-shell .kit-list-btn--teal,
.view-shell .inv-action-btn--teal,
.view-shell .ed-iact-green,
.view-shell .ed-iact-blue {
  border-color: #087f63 !important;
  background: #087f63 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.view-shell .ed-btn-todos:hover,
.view-shell .ed-btn-form:hover,
.view-shell .ed-btn-share:hover,
.view-shell .ed-btn-green:hover,
.view-shell .ed-btn-save:hover,
.view-shell .ed-add-client-btn:hover,
.view-shell .ed-duplicate-btn:hover,
.view-shell .ed-share-btn:hover,
.view-shell .evt-info-btn--teal:hover,
.view-shell .evt-info-btn--blue:hover,
.view-shell .inv-novo-btn-consultar:hover,
.view-shell .inv-qr-btn--blue:hover,
.view-shell .inv-qr-btn--teal:hover,
.view-shell .kit-list-btn--teal:hover,
.view-shell .inv-action-btn--teal:hover {
  border-color: #076b54 !important;
  background: #076b54 !important;
}

.view-shell .ed-btn-imprimir,
.view-shell .ed-print-btn,
.view-shell .ed-kbtn,
.view-shell .ed-personalizar-btn,
.view-shell .ed-dias-add-btn,
.view-shell .ed-etiqueta-add-btn,
.view-shell .evt-secao-tab,
.view-shell .evt-confirm-btn--no,
.view-shell .ed-cron-tab,
.view-shell .inv-novo-tab-btn {
  border-color: var(--line) !important;
  background: var(--panel) !important;
  color: var(--text-soft) !important;
  box-shadow: none !important;
}

.view-shell .evt-secao-tab.is-active,
.view-shell .evt-tab.is-active,
.view-shell .ed-cron-tab.is-active,
.view-shell .inv-novo-tab-btn.is-active,
.view-shell .ed-toggle-switch input:checked + .ed-toggle-slider {
  border-color: rgba(16, 163, 127, 0.18) !important;
  border-bottom-color: rgba(16, 163, 127, 0.18) !important;
  background: var(--success-soft) !important;
  color: var(--link-accent) !important;
  box-shadow: none !important;
}

.view-shell .evt-tab.is-active .evt-badge {
  background: rgba(16, 163, 127, 0.14) !important;
  color: var(--link-accent) !important;
}

.view-shell .ed-avatar,
.view-shell .ed-card-progress,
.view-shell .ed-toggle-slider,
.view-shell .ed-planta-item img,
.view-shell .ed-arquivo-drop,
.view-shell .ed-hint,
.view-shell .ed-status-tag,
.view-shell .ed-etiqueta-chip,
.view-shell .ed-ad-tag,
.view-shell .ed-insc-badge--off,
.view-shell .ed-badge-gray,
.view-shell .ed-badge-count,
.view-shell .evt-check-resp,
.view-shell .tipo-badge--baixa_manual {
  border-color: var(--line) !important;
  background: var(--surface-muted) !important;
}

.view-shell .ed-card:hover,
.view-shell .ed-personalizar-item:hover,
.view-shell .ed-kbtn:hover,
.view-shell .ed-print-btn:hover,
.view-shell .filter-chip:hover,
.view-shell .inv-pre-btn--qr:hover,
.view-shell .inv-pre-btn--sub:hover,
.view-shell .evt-row:hover td,
.view-shell .client-list-table tbody tr:hover td,
.view-shell .evt-table tbody tr:hover td {
  border-color: var(--line-strong) !important;
  background: var(--panel-soft) !important;
  box-shadow: none !important;
}

/* Modais e mensagens */
.modal,
.modal-card,
.dialog,
.ed-modal-box,
.inv-qr-modal,
.inv-sub-modal {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
}

.ed-modal-head,
.modal-head,
.modal-header,
.inv-qr-modal__head {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.ed-modal-overlay,
.modal-overlay {
  background: rgba(20, 20, 22, 0.42);
  backdrop-filter: blur(3px);
}

.toast {
  border: 1px solid var(--line);
  border-left: 3px solid #087f63;
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
}

/* Refinamento global: aplica o mesmo nivel de acabamento em todos os modulos */
.view-shell > *,
.view-shell .content-grid > *,
.view-shell .summary-grid > *,
.view-shell .form-grid > * {
  min-width: 0;
}

.view-shell .content-grid,
.view-shell .content-grid--two,
.view-shell .dashboard-bottom,
.view-shell .summary-grid,
.view-shell .kpi-grid {
  gap: 16px;
}

.view-shell .table-card,
.view-shell .form-card,
.view-shell .panel-card,
.view-shell .section-card {
  overflow: hidden;
}

.view-shell .table-card:hover,
.view-shell .form-card:hover,
.view-shell .panel-card:hover,
.view-shell .section-card:hover {
  border-color: var(--line);
  box-shadow: none;
}

.view-shell .table-card__head,
.view-shell .form-card__head,
.view-shell .panel-card__head,
.view-shell .section-card__head,
.view-shell .agenda-sidebar__head {
  min-height: 64px;
  padding: 15px 18px;
}

.view-shell .table-card__head h3,
.view-shell .form-card__head h3,
.view-shell .panel-card__head h3,
.view-shell .agenda-sidebar__head h3,
.view-shell .me-casting-create-head h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: -0.018em;
}

.view-shell .table-card__head p,
.view-shell .form-card__head p,
.view-shell .panel-card__head p,
.view-shell .me-casting-create-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.view-shell .table-card__body,
.view-shell .panel-card__body,
.view-shell .form-card__body {
  padding: 18px;
}

.view-shell .table-wrap,
.view-shell .inv-table-wrap,
.view-shell .evt-table-wrap {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.view-shell .table-wrap::-webkit-scrollbar,
.view-shell .inv-table-wrap::-webkit-scrollbar,
.view-shell .evt-table-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.view-shell .table-wrap::-webkit-scrollbar-thumb,
.view-shell .inv-table-wrap::-webkit-scrollbar-thumb,
.view-shell .evt-table-wrap::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--line-strong);
  background-clip: padding-box;
}

.view-shell table {
  width: 100%;
}

.view-shell th {
  height: 42px;
  padding: 10px 14px;
  white-space: nowrap;
  line-height: 1.25;
}

.view-shell td {
  min-height: 58px;
  padding: 13px 14px;
  vertical-align: middle;
  line-height: 1.45;
}

.view-shell tbody tr {
  transition: background-color 160ms ease;
}

.view-shell .client-list-table,
.view-shell .proposal-table,
.view-shell .inv-table,
.view-shell .evt-table {
  min-width: 640px;
}

.view-shell .cell-main {
  gap: 10px;
}

.view-shell .cell-avatar,
.view-shell .avatar-sm {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-muted);
  color: var(--text-soft);
  box-shadow: none;
}

.view-shell .cell-avatar--teal,
.view-shell .cell-avatar--green {
  border-color: rgba(16, 163, 127, 0.2);
  background: var(--success-soft);
  color: var(--link-accent);
}

.view-shell .cell-avatar--orange {
  border-color: rgba(183, 121, 31, 0.2);
  background: var(--warning-soft);
  color: var(--warning-text);
}

.view-shell .cell-name-link {
  color: var(--text) !important;
  font-weight: 600;
}

.view-shell .action-bar,
.view-shell .action-row,
.view-shell .task-actions,
.view-shell .kit-vincular-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.view-shell .action-bar {
  margin-bottom: 16px;
}

.view-shell .action-btn {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.view-shell .action-btn--edit,
.view-shell .action-btn--dark,
.view-shell .action-btn--info,
.view-shell .action-btn--warning {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text-soft);
}

.view-shell .action-btn--edit:hover,
.view-shell .action-btn--dark:hover,
.view-shell .action-btn--info:hover,
.view-shell .action-btn--warning:hover {
  border-color: rgba(16, 163, 127, 0.24);
  background: var(--success-soft);
  color: var(--link-accent);
}

.view-shell .action-btn--success {
  border-color: #087f63;
  background: #087f63;
  color: #ffffff;
}

.view-shell .action-btn--success:hover {
  border-color: #076b54;
  background: #076b54;
}

.view-shell .action-btn--danger {
  border-color: rgba(217, 45, 32, 0.2);
  background: rgba(217, 45, 32, 0.08);
  color: var(--danger-text);
}

.view-shell .action-btn--danger:hover {
  border-color: rgba(217, 45, 32, 0.32);
  background: rgba(217, 45, 32, 0.14);
}

.view-shell .btn--block-orange {
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid rgba(183, 121, 31, 0.2);
  border-radius: 9px;
  background: var(--warning-soft);
  color: var(--warning-text);
  font-size: 13px;
  font-weight: 600;
}

.view-shell .me-btn {
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--text-soft);
  box-shadow: none;
  font-size: 13px;
  font-weight: 600;
}

.view-shell .me-btn:hover {
  border-color: var(--line-strong);
  background: var(--panel-soft);
}

.view-shell .me-btn--submit {
  border-color: #087f63;
  background: #087f63;
  color: #ffffff;
}

.view-shell .me-btn--submit:hover {
  border-color: #076b54;
  background: #076b54;
}

.view-shell .status,
.view-shell .status-badge,
.view-shell .status-pill,
.view-shell .evt-badge,
.view-shell .inv-badge,
.view-shell .inv-status-chip,
.view-shell .cat-badge {
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.view-shell .tab-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
}

.view-shell .tab-count--blue,
.view-shell .tab-count--dark,
.view-shell .tab-count--gray {
  background: var(--surface-muted);
  color: var(--text-soft);
}

.view-shell .tab-count--green,
.view-shell .tab-count--teal {
  background: var(--success-soft);
  color: var(--link-accent);
}

.view-shell .tab-count--orange {
  background: var(--warning-soft);
  color: var(--warning-text);
}

.view-shell .tab-count--red {
  background: rgba(217, 45, 32, 0.1);
  color: var(--danger-text);
}

.view-shell .tab-nav,
.view-shell .evt-tabs,
.view-shell .inv-bar__tabs,
.view-shell .edit-item-tabs,
.view-shell .ed-cron-date-tabs,
.view-shell .inv-novo-tabs-bar {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.view-shell .tab-nav::-webkit-scrollbar,
.view-shell .evt-tabs::-webkit-scrollbar,
.view-shell .inv-bar__tabs::-webkit-scrollbar,
.view-shell .edit-item-tabs::-webkit-scrollbar {
  display: none;
}

.view-shell .filter-bar,
.view-shell .evt-filtro-panel,
.view-shell .inv-filter-panel,
.view-shell .proposal-filter-panel {
  gap: 12px;
  padding: 12px;
  background: var(--panel-soft);
}

.view-shell .filter-bar label,
.view-shell .inv-filter-group {
  display: grid;
  gap: 6px;
}

.view-shell .search-wrap {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
  box-shadow: none;
}

.view-shell .search-wrap input {
  min-height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.view-shell .form-grid {
  gap: 14px;
}

.view-shell .form-grid label,
.view-shell .edit-field,
.view-shell .evt-form-row,
.view-shell .inv-filter-group {
  min-width: 0;
}

.view-shell .form-grid label > span,
.view-shell .edit-field__label,
.view-shell .evt-form-label,
.view-shell .inv-novo-label,
.view-shell .ed-label,
.view-shell .team-create-form__label,
.view-shell .team-create-form__section-title {
  display: block;
  margin: 0 0 6px;
  color: var(--text-soft) !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

.view-shell input[type="checkbox"],
.view-shell input[type="radio"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  padding: 0;
  accent-color: #087f63;
  box-shadow: none;
}

.view-shell input[type="checkbox"] {
  border-radius: 4px;
}

.view-shell input[type="radio"] {
  border-radius: 50%;
}

.view-shell .permission-field {
  padding: 13px;
  border-radius: 10px;
}

.view-shell .permission-option {
  min-height: 38px;
  padding: 9px 10px;
  border-radius: 8px;
}

.view-shell .stack-list,
.view-shell .timeline,
.view-shell .attachment-list {
  gap: 8px;
}

.view-shell .list-item,
.view-shell .info-row,
.view-shell .timeline-row,
.view-shell .team-link-box {
  margin-bottom: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
  box-shadow: none;
}

.view-shell .list-item strong {
  margin-bottom: 3px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.view-shell .list-item p,
.view-shell .team-link-box p {
  font-size: 12px;
  line-height: 1.5;
}

.view-shell .module-empty,
.view-shell .section-card__empty,
.view-shell .ed-empty-msg,
.view-shell .agenda-empty-state,
.view-shell .cal-empty-msg {
  padding: 28px 18px;
  color: var(--muted) !important;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

.view-shell .legend-box,
.view-shell .note-box,
.view-shell .ed-hint {
  border: 1px solid var(--line) !important;
  border-radius: 10px;
  background: var(--panel-soft) !important;
  color: var(--muted) !important;
  box-shadow: none;
}

.view-shell .me-casting-create-card,
.view-shell .me-casting-section-card,
.view-shell .funnel-col,
.view-shell .evt-form-section,
.view-shell .ed-add-form,
.view-shell .ei-panel,
.view-shell .ed-stat-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: none;
}

.view-shell .me-casting-create-head {
  padding: 16px 18px 8px;
}

.view-shell .ed-modal-box,
.view-shell .modal-card,
.view-shell .inv-qr-modal,
.view-shell .inv-sub-modal {
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.view-shell .ed-modal-head,
.view-shell .modal-head,
.view-shell .modal-header,
.view-shell .inv-qr-modal__head {
  min-height: 56px;
  padding: 14px 18px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.view-shell .ed-modal-head button,
.view-shell .modal-close {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
}

.view-shell .ed-modal-body-inner,
.view-shell .modal-body {
  padding: 18px;
}

.view-shell .ed-modal-foot,
.view-shell .modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: var(--panel-soft);
}

/* Estoque: barra, listagens e acoes no mesmo padrao das categorias */
.view-shell .inventory-category-table {
  min-width: 720px;
}

.view-shell .inv-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: none;
}

.view-shell .inv-bar__tabs {
  min-width: 0;
  padding: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.view-shell .inv-tab {
  min-height: 36px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.view-shell .inv-tab.is-active {
  border-color: rgba(16, 163, 127, 0.16);
  background: var(--success-soft);
  color: var(--link-accent);
  font-weight: 600;
}

.view-shell .inv-badge {
  min-width: 20px;
  min-height: 20px;
  padding: 3px 6px;
  border: 0;
  background: var(--surface-muted);
  color: var(--text-soft);
}

.view-shell .inv-tab.is-active .inv-badge {
  background: rgba(16, 163, 127, 0.14);
  color: var(--link-accent);
}

.view-shell .inv-bar__actions {
  gap: 7px;
  padding: 9px 10px;
  border-left: 1px solid var(--line);
  background: var(--panel-soft);
}

.view-shell .inv-btn-add,
.view-shell .inv-btn-filter {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: none;
}

.view-shell .inv-btn-add:hover {
  background: #076b54;
  transform: none;
}

.view-shell .inv-search-box {
  min-width: 230px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--panel);
}

.view-shell .inv-search-box input {
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.view-shell .inv-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: none;
}

.view-shell .inv-table th {
  padding: 10px 12px;
}

.view-shell .inv-table td {
  padding: 11px 12px;
}

.view-shell .inv-thumb-cell {
  width: 104px;
}

.view-shell .inv-thumb-wrap {
  gap: 7px;
}

.view-shell .inv-pre-btns {
  gap: 5px;
}

.view-shell .inv-pre-btn,
.view-shell .inv-action-btn,
.view-shell .kit-list-btn {
  width: 30px;
  height: 30px;
  margin: 0 3px 0 0;
  padding: 0;
  border: 1px solid var(--line) !important;
  border-radius: 8px;
  background: var(--panel) !important;
  color: var(--muted) !important;
  box-shadow: none;
  opacity: 1;
  transform: none;
}

.view-shell .inv-pre-btn:hover,
.view-shell .inv-action-btn--green:hover,
.view-shell .inv-action-btn--teal:hover,
.view-shell .inv-action-btn--orange:hover,
.view-shell .kit-list-btn--teal:hover,
.view-shell .kit-list-btn--orange:hover {
  border-color: rgba(16, 163, 127, 0.24) !important;
  background: var(--success-soft) !important;
  color: var(--link-accent) !important;
  opacity: 1;
  transform: translateY(-1px);
}

.view-shell .inv-action-btn--yellow:hover,
.view-shell .inv-action-btn--red:hover,
.view-shell .kit-list-btn--red:hover {
  border-color: rgba(217, 45, 32, 0.24) !important;
  background: rgba(217, 45, 32, 0.08) !important;
  color: #d92d20 !important;
  opacity: 1;
  transform: translateY(-1px);
}

.view-shell .inv-thumb,
.view-shell .inv-thumb-empty {
  width: 44px;
  height: 44px;
  border-radius: 9px;
}

.view-shell .inv-item-link {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.view-shell .inv-item-link:hover {
  color: var(--link-accent);
  text-decoration: none;
}

.view-shell .inv-cat-badge {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-muted) !important;
  color: var(--text-soft) !important;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.view-shell .inv-count {
  margin: -12px 0 0;
  padding: 0 4px;
  text-align: right;
}

/* Eventos e edicao: acoes recorrentes ficam discretas e ganham cor no hover */
.view-shell .evt-list-head {
  gap: 10px;
  margin-bottom: 14px;
}

.view-shell .evt-search-row {
  gap: 8px;
}

.view-shell .evt-search-input {
  width: min(240px, 100%);
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 9px;
}

.view-shell .evt-table td {
  vertical-align: middle;
}

.view-shell .evt-acoes-cell {
  white-space: normal;
}

.view-shell .evt-info-btn,
.view-shell .evt-info-btn--teal,
.view-shell .evt-info-btn--blue {
  min-height: 30px;
  margin: 2px 4px 2px 0;
  padding: 5px 8px;
  border: 1px solid var(--line) !important;
  border-radius: 7px;
  background: var(--panel) !important;
  color: var(--text-soft) !important;
  font-size: 10px;
  font-weight: 600;
  box-shadow: none !important;
}

.view-shell .evt-info-btn:hover,
.view-shell .evt-info-btn--teal:hover,
.view-shell .evt-info-btn--blue:hover {
  border-color: rgba(16, 163, 127, 0.24) !important;
  background: var(--success-soft) !important;
  color: var(--link-accent) !important;
}

.view-shell .evt-pending-badge {
  background: rgba(217, 45, 32, 0.1);
  color: var(--danger-text);
}

.view-shell .evt-participantes-badge {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-muted);
}

.view-shell .ed-cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.view-shell .ed-card {
  min-height: 112px;
  padding: 14px 12px;
  border-radius: 12px;
}

.view-shell .ed-card-svg {
  width: 48px;
  height: 48px;
}

.view-shell .ed-card-label {
  color: var(--text) !important;
  font-size: 12px;
  font-weight: 600;
}

.view-shell .ed-card-progress {
  width: 100%;
  height: 4px;
}

.view-shell .ed-iact-green,
.view-shell .ed-iact-yellow,
.view-shell .ed-iact-dark,
.view-shell .ed-iact-blue,
.view-shell .ed-iact-yellow2 {
  min-height: 32px;
  padding: 6px 10px !important;
  border: 1px solid var(--line) !important;
  border-radius: 8px;
  background: var(--panel) !important;
  color: var(--text-soft) !important;
  font-size: 11px !important;
  font-weight: 600;
  box-shadow: none !important;
}

.view-shell .ed-iact-green:hover,
.view-shell .ed-iact-blue:hover,
.view-shell .ed-iact-dark:hover {
  border-color: rgba(16, 163, 127, 0.24) !important;
  background: var(--success-soft) !important;
  color: var(--link-accent) !important;
}

.view-shell .ed-iact-yellow:hover,
.view-shell .ed-iact-yellow2:hover {
  border-color: rgba(183, 121, 31, 0.24) !important;
  background: var(--warning-soft) !important;
  color: var(--warning-text) !important;
}

.view-shell .status--success,
.view-shell .inv-status-chip--ok {
  border-color: rgba(16, 163, 127, 0.16);
  background: var(--success-soft);
  color: var(--link-accent);
}

.view-shell .status--warning,
.view-shell .inv-status-chip--low {
  border-color: rgba(183, 121, 31, 0.16);
  background: var(--warning-soft);
  color: var(--warning-text);
}

.view-shell .status--info,
.view-shell .status--neutral,
.view-shell .status--muted,
.view-shell .inv-status-chip--reserved,
.view-shell .inv-status-chip--manut {
  border-color: var(--line);
  background: var(--surface-muted);
  color: var(--text-soft);
}

.view-shell .status--danger,
.view-shell .inv-status-chip--empty {
  border-color: rgba(217, 45, 32, 0.16);
  background: rgba(217, 45, 32, 0.1);
  color: var(--danger-text);
}

/* Tema escuro */
html[data-theme="dark"] .brand-strip,
html[data-theme="dark"] .sidebar {
  background: var(--sidebar);
}

html[data-theme="dark"] .nav-button.is-active {
  color: #62ddb9;
}

html[data-theme="dark"] .login-panel__brand {
  background: var(--panel-soft);
}

html[data-theme="dark"] .login-badge img {
  filter: none;
}

html[data-theme="dark"] .login-kicker,
html[data-theme="dark"] .cell-name-link,
html[data-theme="dark"] .task-item__link,
html[data-theme="dark"] .link-button,
html[data-theme="dark"] .ed-link-btn {
  color: #62ddb9;
}

html[data-theme="dark"] .login-panel__form .login-kicker,
html[data-theme="dark"] .mini-action-icon:hover,
html[data-theme="dark"] .page-header__icon,
html[data-theme="dark"] .kpi-card--green .kpi-value,
html[data-theme="dark"] .category-action--view:hover,
html[data-theme="dark"] .cell-name-link,
html[data-theme="dark"] .action-btn--edit:hover,
html[data-theme="dark"] .action-btn--dark:hover,
html[data-theme="dark"] .action-btn--info:hover,
html[data-theme="dark"] .action-btn--warning:hover,
html[data-theme="dark"] .tab-count--green,
html[data-theme="dark"] .tab-count--teal,
html[data-theme="dark"] .inv-tab.is-active,
html[data-theme="dark"] .inv-tab.is-active .inv-badge,
html[data-theme="dark"] .inv-pre-btn:hover,
html[data-theme="dark"] .inv-action-btn--green:hover,
html[data-theme="dark"] .inv-action-btn--teal:hover,
html[data-theme="dark"] .inv-action-btn--orange:hover,
html[data-theme="dark"] .kit-list-btn--teal:hover,
html[data-theme="dark"] .kit-list-btn--orange:hover,
html[data-theme="dark"] .inv-item-link:hover,
html[data-theme="dark"] .evt-info-btn:hover,
html[data-theme="dark"] .evt-info-btn--teal:hover,
html[data-theme="dark"] .evt-info-btn--blue:hover,
html[data-theme="dark"] .ed-iact-green:hover,
html[data-theme="dark"] .ed-iact-blue:hover,
html[data-theme="dark"] .ed-iact-dark:hover {
  color: #62ddb9 !important;
}


/* Leitura, ações e formulários compartilhados */
.view-shell .evt-form-section-title { color: var(--link-accent); font-size: 13px; }
.view-shell--propostas .proposal-info-cell { display: grid; gap: 6px; }
.view-shell--propostas .proposal-info-cell > strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.view-shell .evt-search-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.view-shell .evt-search-bar > input { flex: 1 1 220px; }

.view-shell .summary-card p,
.view-shell .summary-card__label,
.view-shell .cal-empty-msg { color: var(--muted); }
.view-shell .kpi-card--orange .kpi-value { color: var(--warning-text); }
.view-shell .kpi-card--orange .kpi-badge { color: var(--warning-text); background: var(--warning-soft); }
.view-shell .kpi-card--red .kpi-value { color: var(--danger-text); }
.view-shell .kpi-card--red .kpi-badge { color: var(--danger-text); background: rgba(217,45,32,.1); }
.view-shell .status--danger { color: var(--danger-text); }
.view-shell > .action-bar, .view-shell > .tab-nav { margin: 0; }
.view-shell > .filter-bar { margin-top: 0 !important; }
.view-shell .records-layout { grid-template-columns: minmax(0,1fr); }
.view-shell--equipe > .content-grid,
.view-shell--clientes > .content-grid { grid-template-columns: minmax(0,1fr); }
.view-shell--equipe .client-list-table td { vertical-align: top; }
.cell-money { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.row-notes { margin-top: 6px; font-size: 12px; color: var(--muted); }
.row-notes p { max-width: 36ch; white-space: normal; }
.row-notes summary, .chart-data summary { cursor: pointer; color: var(--link-accent); }
.disclosure-panel, .create-panel { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.disclosure-panel > summary, .create-panel > summary { padding: 14px 16px; cursor: pointer; color: var(--text-soft); font-weight: 600; }
.disclosure-panel[open] > summary, .create-panel[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.disclosure-panel > .summary-grid, .disclosure-panel > .content-grid { margin: 16px; }
.create-panel { scroll-margin-top: 80px; }
.create-panel .form-card__head { display: none; }
.create-panel .form-card__body { max-width: 900px; }
.chart-data { font-size: 13px; margin: 10px 16px; }
.chart-data dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.chart-data dd { margin: 0; font-variant-numeric: tabular-nums; }
.required-mark { color: var(--danger-text); }
.client-relations { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: 12px; }
.view-shell .form-section-title { margin: 20px 0 4px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 16px; }
.view-shell--clientes .team-create-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.view-shell--clientes .team-create-form__row { display: flex; flex-direction: column; align-items: stretch; gap: 6px; margin: 0; }
.view-shell--clientes .team-create-form__row > input,
.view-shell--clientes .team-create-form__row > select,
.view-shell--clientes .team-create-form__row > textarea { width: 100%; max-width: none; }
.view-shell--clientes .team-create-form__section-title,
.view-shell--clientes .team-create-form__divider,
.view-shell--clientes .form-section-title,
.view-shell--clientes .team-create-form__submit,
.view-shell--clientes .team-create-form__row--notes { grid-column: 1 / -1; }
.view-shell .team-create-form__submit { position: sticky; bottom: 0; z-index: 2; padding: 12px; background: var(--panel); border-top: 1px solid var(--line); }
.view-shell .cal-event-title, .view-shell .cal-event-meta { white-space: normal; overflow-wrap: anywhere; }
.view-shell .cal-event-badge { color: white; }
.view-shell .inv-action-btn { min-width: 32px; min-height: 32px; }
.view-shell .table-wrap:focus-visible, .view-shell .inv-table-wrap:focus-visible { outline: 2px solid var(--link-accent); outline-offset: 2px; }
summary:focus-visible { outline: 3px solid var(--link-accent); outline-offset: 2px; }
@media (max-width: 1100px) {
  .summary-grid, .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .view-shell .content-grid, .view-shell .content-grid--two { grid-template-columns: minmax(0,1fr) !important; }
  .view-shell--clientes .team-create-form { grid-template-columns: minmax(0,1fr); }
  .view-shell .agenda-layout { display: flex; flex-direction: column; }
  .view-shell .agenda-cal .calendar-grid-wrap, .view-shell .agenda-cal .cal-legend { display: none; }
  .view-shell .agenda-sidebar { width: 100%; }
  .calendar-month-title { font-size: 20px; }
  input, select, textarea { font-size: 16px; }
  .view-shell .inv-action-btn, .view-shell .action-btn { min-height: 40px; }
}
@media (max-width: 520px) {
  .summary-grid, .kpi-grid { grid-template-columns: minmax(0,1fr); }
  .page-title, html[data-theme="light"] .page-title { font-size: 26px; overflow-wrap: anywhere; }
  .shortcut-row { flex: 0 0 auto; }
}


@media print {
  .platform-header, .sidebar, .shortcut-row, .shortcut-panel, .action-bar, .create-panel { display: none !important; }
  .platform-body { display: block; }
  .workspace { padding: 0 !important; }
  .table-wrap { overflow: visible !important; }
  .agenda-cal .calendar-grid-wrap, .agenda-cal .cal-legend { display: block !important; }
}
/* Responsividade */
@media (max-width: 1180px) {
  .workspace {
    padding: 28px 24px 52px;
  }
}

@media (max-width: 980px) {
  .platform-header,
  .platform-shell.is-collapsed .platform-header {
    height: 64px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .platform-body,
  .platform-shell.is-collapsed .platform-body {
    grid-template-columns: 1fr;
  }

  .brand-strip {
    min-width: 0;
    height: 64px;
  }

  .header-actions {
    padding: 0 12px;
  }

  .header-user {
    display: none;
  }

  .sidebar,
  html[data-theme="light"] .sidebar {
    display: none;
    position: fixed;
    top: 64px;
    bottom: 0;
    left: 0;
    z-index: 29;
    width: min(300px, 88vw);
    height: calc(100vh - 64px);
    min-height: 0;
    background: var(--sidebar);
    box-shadow: 18px 0 40px rgba(0, 0, 0, 0.14);
  }

  .platform-shell.is-collapsed::after {
    content: "";
    position: fixed;
    inset: 64px 0 0;
    z-index: 28;
    background: rgba(20, 20, 22, 0.26);
    backdrop-filter: blur(2px);
  }

  .platform-shell.is-collapsed .sidebar {
    display: block;
  }

  .platform-shell.is-collapsed .profile-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 18px 14px 14px;
  }

  .platform-shell.is-collapsed .profile-avatar {
    margin: 0;
  }

  .platform-shell.is-collapsed .profile-meta,
  .platform-shell.is-collapsed .profile-actions,
  .platform-shell.is-collapsed .mini-action-icon,
  .platform-shell.is-collapsed .nav-section-label,
  .platform-shell.is-collapsed .nav-button strong,
  .platform-shell.is-collapsed .nav-chevron,
  .platform-shell.is-collapsed .nav-count,
  .platform-shell.is-collapsed .brand-strip strong {
    display: initial;
  }

  .platform-shell.is-collapsed .nav-section-label {
    display: block;
  }

  .platform-shell.is-collapsed .profile-actions {
    display: grid;
  }

  .platform-shell.is-collapsed .nav-button {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    justify-items: stretch;
    padding: 8px 10px;
  }

  .platform-shell.is-collapsed .nav-sub {
    display: grid;
  }

  .view-shell .inv-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .view-shell .inv-bar__actions {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .workspace {
    padding: 24px 16px 40px;
  }

  .workspace-top {
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }

  .page-title {
    font-size: 30px;
  }

  .shortcut-row {
    display: grid;
    grid-template-columns: 1fr;
    width: auto;
  }

  .shortcut-row .btn {
    width: 100%;
  }

  .page-header {
    align-items: flex-start;
  }

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

  .table-card__body,
  .panel-card__body,
  .form-card__body {
    padding: 14px;
  }

  .view-shell .table-card__head,
  .view-shell .form-card__head,
  .view-shell .panel-card__head,
  .view-shell .section-card__head,
  .view-shell .agenda-sidebar__head {
    min-height: 0;
    padding: 14px;
  }

  .view-shell .filter-bar > label,
  .view-shell .filter-bar > input,
  .view-shell .filter-bar > select,
  .view-shell .filter-bar > button {
    flex: 1 1 190px;
  }

  .view-shell .action-bar > button,
  .view-shell .action-bar > .btn {
    flex: 1 1 auto;
  }

  .view-shell .team-create-form__row,
  .view-shell .team-create-form__row--split,
  .view-shell .team-create-form__row--half,
  .view-shell .team-create-form__row--half-wide {
    grid-template-columns: minmax(0, 1fr);
  }

  .view-shell .team-create-form__row--notes .team-create-form__label {
    padding-top: 0;
  }
}

@media (max-width: 520px) {
  .login-overlay {
    padding: 12px;
  }

  .login-panel {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
  }

  .login-panel__brand,
  .login-panel__form {
    padding: 28px 22px;
  }

  .login-panel__brand {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .login-points {
    display: none;
  }

  .country-chip {
    display: none;
  }

  .shortcut-row,
  .summary-grid,
  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .page-header__icon {
    display: none;
  }

  .kpi-card,
  .summary-card {
    min-height: 104px;
  }
}

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