/* GereCar UI 5.0 — Layout reconstruído e coerente por função.
   Um único design system para hierarquia, proporção, ritmo e responsividade.
   Não contém regras de negócio, Firebase ou fluxo operacional. */

:root {
  color-scheme: dark;
  --gc-page: #090c11;
  --gc-surface: #11161d;
  --gc-surface-raised: #171d25;
  --gc-border: #2d3742;
  --gc-text: #f3f5f7;
  --gc-text-muted: #a8b2bc;
  --gc-accent: #d8ad67;
  --gc-accent-strong: #efca88;
  --gc-focus: color-mix(in srgb,var(--gc-accent) 34%,transparent);

  /* aliases de compatibilidade: a paleta interna nasce somente dos tokens acima */
  --gc-bg: var(--gc-page);
  --gc-bg-2: var(--gc-page);
  --gc-panel: var(--gc-surface);
  --gc-panel-2: var(--gc-surface);
  --gc-panel-3: var(--gc-surface-raised);
  --gc-field: color-mix(in srgb,var(--gc-page) 70%,var(--gc-surface) 30%);
  --gc-line: var(--gc-border);
  --gc-line-soft: color-mix(in srgb,var(--gc-border) 54%,transparent);
  --gc-line-strong: color-mix(in srgb,var(--gc-border) 78%,var(--gc-text-muted) 22%);
  --gc-muted: var(--gc-text-muted);
  --gc-muted-2: color-mix(in srgb,var(--gc-text-muted) 76%,transparent);
  --gc-accent-soft: color-mix(in srgb,var(--gc-accent) 13%,var(--gc-surface));
  --gc-blue: var(--gc-accent-strong);
  --gc-danger: #f07882;
  --gc-success: #6cc59f;
  --gc-warning: #e7b35b;
  --gc-info: #7cbce8;
  --gc-shadow: none;
  --gc-shadow-soft: none;
  --gc-radius: 15px;
  --gc-radius-sm: 11px;
  --gc-radius-xs: 8px;
  --gc-sidebar: 252px;
  --gc-control-h: 40px;
  --gc-content: 1460px;
  --gc-space-1: 6px;
  --gc-space-2: 10px;
  --gc-space-3: 14px;
  --gc-space-4: 18px;
  --gc-space-5: 24px;
  --gc-font: Inter, "Segoe UI", Arial, sans-serif;

  --bg-primary: var(--gc-page);
  --bg-secondary: var(--gc-surface);
  --surface: var(--gc-surface);
  --surface-2: var(--gc-surface-raised);
  --panel-bg: var(--gc-surface);
  --panel-strong: var(--gc-surface-raised);
  --field-bg: var(--gc-field);
  --accent-color: var(--gc-accent);
  --accent-2: var(--gc-accent-strong);
  --accent-rgb: 216,173,103;
  --accent-2-rgb: 239,202,136;
  --metal-color: var(--gc-text-muted);
  --metal-rgb: 168,178,188;
  --text-main: var(--gc-text);
  --text-muted: var(--gc-text-muted);
  --border-color: var(--gc-border);
  --nav-bg: var(--gc-surface);
  --danger: var(--gc-danger);
  --success: var(--gc-success);
  --warning: var(--gc-warning);
  --button-ink: #111419;
  --sidebar-width: var(--gc-sidebar);
}

:root[data-theme="ruby"] {
  --gc-page:#09090b; --gc-surface:#141216; --gc-surface-raised:#1d181c; --gc-border:#3b292d;
  --gc-text:#f7f3f4; --gc-text-muted:#bdb2b5; --gc-accent:#f23b42; --gc-accent-strong:#ff7479;
  --accent-rgb:242,59,66; --accent-2-rgb:255,116,121; --button-ink:#fff;
}
:root[data-theme="violet"] {
  --gc-page:#0a0810; --gc-surface:#15111d; --gc-surface-raised:#20172b; --gc-border:#38294a;
  --gc-text:#f6f2fa; --gc-text-muted:#bbb0c8; --gc-accent:#925cff; --gc-accent-strong:#c39cff;
  --accent-rgb:146,92,255; --accent-2-rgb:195,156,255; --button-ink:#fff;
}
:root[data-theme="racing"] {
  --gc-page:#07100d; --gc-surface:#0f1915; --gc-surface-raised:#16231d; --gc-border:#294238;
  --gc-text:#f0f7f4; --gc-text-muted:#a9beb5; --gc-accent:#36b77c; --gc-accent-strong:#85d9b1;
  --accent-rgb:54,183,124; --accent-2-rgb:133,217,177; --button-ink:#07100d;
}
:root[data-theme="titanium"] {
  --gc-page:#091017; --gc-surface:#121b23; --gc-surface-raised:#192630; --gc-border:#2d3d49;
  --gc-text:#eef4f7; --gc-text-muted:#aab8c2; --gc-accent:#78b7df; --gc-accent-strong:#b2d8ef;
  --accent-rgb:120,183,223; --accent-2-rgb:178,216,239; --button-ink:#091017;
}
:root[data-theme="chrome"] {
  --gc-page:#081014; --gc-surface:#0f1a20; --gc-surface-raised:#16242c; --gc-border:#2a3d46;
  --gc-text:#eef6f7; --gc-text-muted:#a9bbc0; --gc-accent:#62bdc6; --gc-accent-strong:#a5d9de;
  --accent-rgb:98,189,198; --accent-2-rgb:165,217,222; --button-ink:#071114;
}
:root[data-theme="pearl"] {
  --gc-page:#0d1116; --gc-surface:#171e25; --gc-surface-raised:#202a33; --gc-border:#35414b;
  --gc-text:#f3f6f7; --gc-text-muted:#b2bbc2; --gc-accent:#d3dde2; --gc-accent-strong:#eef3f5;
  --accent-rgb:211,221,226; --accent-2-rgb:238,243,245; --button-ink:#11171c;
}

* { box-sizing: border-box; }
html, body { margin:0; min-height:100%; }
html { background:var(--gc-page); overflow-x:clip; }
body { overflow-x:clip; }
body:not(.public-catalog-mode) {
  min-height:100dvh;
  display:flex;
  overflow:hidden;
  color:var(--gc-text);
  background:var(--gc-page);
  font: 14px/1.45 var(--gc-font);
  letter-spacing:-.005em;
  -webkit-font-smoothing:antialiased;
}
body:not(.public-catalog-mode)::before { content:none; }
[hidden] { display:none !important; }
button,input,select,textarea { font:inherit; }
button { touch-action:manipulation; }
a { color:inherit; }

/* ---------------- LOGIN ---------------- */
#login-screen {
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  place-items:center;
  padding:22px;
  overflow:auto;
  background:var(--gc-page);
}
#login-screen::after {
  content:"GERECAR";
  position:fixed;
  left:3vw;
  bottom:1vh;
  color:rgba(255,255,255,.018);
  font-size:clamp(6rem,15vw,14rem);
  font-weight:950;
  letter-spacing:-.075em;
  pointer-events:none;
}
.login-box {
  width:min(460px,100%);
  margin:0;
  padding:30px;
  display:grid;
  gap:13px;
  border:1px solid var(--gc-line);
  border-radius:22px;
  background:var(--gc-surface);
  box-shadow:none;
}
.login-box::before {
  content:"";
  display:grid;
  place-items:center;
  width:62px;
  height:62px;
  margin:0 auto 10px;
  border:1px solid color-mix(in srgb,var(--gc-accent),transparent 35%);
  border-radius:18px;
  color:var(--button-ink);
  background:var(--gc-field) url("../brand/gerecar-master.png") center/contain no-repeat;
  padding:7px;
  box-shadow:none;
}
.login-box h2 {
  margin:0;
  text-align:center;
  font-size:24px;
  line-height:1.2;
  letter-spacing:-.035em;
}
.login-box h2::after {
  content:"GESTÃO AUTOMOTIVA · 2026";
  display:block;
  margin-top:8px;
  color:var(--gc-muted);
  font-size:10px;
  font-weight:850;
  letter-spacing:.16em;
}
.login-support-copy { margin:3px 0 4px; text-align:center; color:var(--gc-muted); font-size:13px; }
.login-box input { width:100%; height:48px; padding:0 14px; border:1px solid var(--gc-line); border-radius:12px; background:var(--gc-field); color:var(--gc-text); outline:0; }
.login-box input:focus { border-color:var(--gc-accent); box-shadow:0 0 0 3px var(--gc-focus); }
.login-box button { min-height:48px; border:0; border-radius:12px; background:linear-gradient(135deg,var(--gc-accent),var(--gc-accent-strong)); color:var(--button-ink); font-weight:900; cursor:pointer; }
.login-box button:disabled { cursor:wait; opacity:.68; }
.toggle-auth { margin:10px 0 0; text-align:center; color:var(--gc-muted); font-size:13px; cursor:pointer; }
.toggle-auth b { color:var(--gc-accent-strong); }
.toggle-auth a,.auth-purchase-copy a { text-decoration:none; }
.auth-feedback { display:none; margin:0; color:#ff9da7; font-size:13px; }
.auth-feedback.show { display:block; }
.auth-feedback.success { color:#82d9ad; }
.auth-feedback.warning { color:#ffd08a; }
.login-box button.auth-text-button { min-height:auto; padding:4px; border:0; background:transparent; color:var(--gc-muted); font-size:13px; font-weight:750; }
.login-box button.auth-text-button:hover { color:var(--gc-accent-strong); }
.login-box button.auth-secondary-button { border:1px solid var(--gc-line); background:var(--gc-field); color:var(--gc-text); }
.auth-purchase-copy { margin:0; padding:11px 12px; border:1px solid var(--gc-line); border-radius:12px; color:var(--gc-muted); text-align:center; font-size:12px; line-height:1.5; }
.auth-purchase-copy a { color:var(--gc-accent-strong); font-weight:850; }
.auth-brand-footer { margin:4px 0 0; color:var(--gc-muted); text-align:center; font-size:10px; line-height:1.6; letter-spacing:.03em; }
.auth-brand-footer span { opacity:.78; }
.auth-status-icon { display:grid; place-items:center; width:68px; height:68px; margin:2px auto 5px; border:1px solid var(--gc-line); border-radius:50%; background:var(--gc-field); color:var(--gc-accent-strong); font-size:25px; }
.auth-support-link { display:grid; place-items:center; min-height:46px; padding:10px 14px; border:1px solid var(--gc-line); border-radius:12px; color:var(--gc-text); text-decoration:none; font-size:13px; font-weight:850; }

/* ---------------- SIDEBAR ---------------- */
.mobile-header,.menu-overlay,.mobile-nav-toolbar { display:none; }
#sidebar {
  position:relative;
  z-index:1000;
  flex:0 0 var(--gc-sidebar);
  width:var(--gc-sidebar);
  height:100dvh;
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:14px 10px 12px;
  overflow:auto;
  border-right:1px solid var(--gc-line);
  background:var(--gc-surface);
  box-shadow:none;
  scrollbar-width:thin;
  scrollbar-color:#34404a transparent;
  transition:width .2s ease,flex-basis .2s ease,transform .22s ease;
}
.sidebar-account {
  display:grid;
  grid-template-columns:42px minmax(0,1fr) 34px;
  align-items:center;
  gap:9px;
  min-height:72px;
  margin-bottom:8px;
  padding:10px;
  border:1px solid var(--gc-line);
  border-radius:13px;
  background:var(--gc-surface-raised);
  cursor:pointer;
  overflow:visible;
}
.profile-avatar-wrap,.profile-avatar { width:42px; height:42px; }
.profile-avatar-wrap { position:relative; }
.profile-avatar {
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid color-mix(in srgb,var(--gc-accent),transparent 45%);
  border-radius:14px;
  color:var(--gc-accent-strong);
  background:var(--gc-field);
  font-size:13px;
  font-weight:950;
}
.profile-avatar img { width:100%; height:100%; object-fit:cover; }
.company-seal {
  position:absolute;
  right:-4px;
  bottom:-4px;
  display:grid;
  place-items:center;
  width:18px;
  height:18px;
  overflow:hidden;
  border:2px solid #0d1117;
  border-radius:50%;
  background:var(--gc-accent);
  color:var(--button-ink);
  font-size:8px;
  font-weight:950;
}
.company-seal img { width:100%; height:100%; object-fit:cover; }
.profile-copy { min-width:0; display:grid; align-content:center; gap:2px; padding:1px 0; overflow:hidden; }
.profile-system { display:block; color:var(--gc-accent); font-size:9px; font-weight:900; line-height:1.25; letter-spacing:.14em; text-transform:uppercase; }
.profile-name,.profile-company { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.profile-name { margin:0; font-size:14px; font-weight:800; line-height:1.25; }
.profile-company { margin:0; padding-bottom:1px; color:var(--gc-muted); font-size:12px; line-height:1.25; }
.profile-notification-button,.sidebar-notification-button,.mobile-notification-button {
  position:relative;
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  min-width:34px;
  min-height:34px;
  padding:0;
  margin:0;
  border:1px solid transparent;
  border-radius:11px;
  background:transparent;
  color:var(--gc-text-muted);
  box-shadow:none;
  cursor:pointer;
}
.profile-notification-button:hover { color:var(--gc-accent); background:var(--gc-accent-soft); }
.notification-badge { position:absolute; right:-4px; top:-4px; display:none; min-width:18px; height:18px; padding:0 5px; border:2px solid #0c1016; border-radius:99px; background:var(--gc-danger); color:white; font-size:10px; font-weight:900; line-height:14px; text-align:center; }
.notification-badge.show { display:block; }
.notification-badge[hidden] { display:none !important; }
.nav-group { margin:5px 0; }
.nav-group > summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:32px;
  padding:6px 9px;
  list-style:none;
  color:var(--gc-text-muted);
  font-size:10px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
  cursor:pointer;
  line-height:1.2;
}
.nav-group > summary::-webkit-details-marker { display:none; }
.nav-group > summary::after { content:"⌄"; flex:0 0 auto; color:var(--gc-muted); font-size:12px; opacity:.85; transition:transform .18s ease; }
.nav-group:not([open]) > summary::after { transform:rotate(-90deg); }
.nav-group-body { display:grid; gap:2px; }
#sidebar button {
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  min-height:38px;
  margin:0;
  padding:7px 10px;
  border:1px solid transparent;
  border-radius:10px;
  background:transparent;
  color:var(--gc-muted);
  box-shadow:none;
  cursor:pointer;
  text-align:left;
  font-size:12.5px;
  font-weight:700;
}
#sidebar button i { width:18px; color:#788590; text-align:center; font-size:14px; }
#sidebar button:hover { background:rgba(255,255,255,.055); color:var(--gc-text); }
#sidebar button.active {
  border-color:color-mix(in srgb,var(--gc-accent),transparent 58%);
  background:var(--gc-accent-soft);
  color:var(--gc-text);
  box-shadow:inset 3px 0 0 var(--gc-accent);
}
#sidebar button.active i { color:var(--gc-accent); }
#sidebar .nav-primary-commerce::after { content:""; position:absolute; left:0; top:9px; bottom:9px; width:2px; border-radius:99px; background:var(--gc-accent); opacity:.7; }
#sidebar .logout-button { margin-top:auto; border-color:rgba(240,120,130,.25); color:#ffb6be; }
#sidebar .logout-button:hover { background:rgba(240,120,130,.08); color:#ffd6da; }
#sidebar.collapsed { flex-basis:72px; width:72px; padding-inline:10px; }
#sidebar.collapsed .profile-copy,#sidebar.collapsed .sidebar-notification-button,#sidebar.collapsed .btn-text { display:none; }
#sidebar.collapsed .nav-group > summary { display:none; }
#sidebar.collapsed .nav-group > summary::after { display:none; }
#sidebar.collapsed .sidebar-account { grid-template-columns:46px; justify-content:center; padding:7px; }
#sidebar.collapsed button { justify-content:center; padding-inline:0; }
#sidebar.collapsed button i { width:auto; font-size:16px; }

/* ---------------- CONTEÚDO GLOBAL ---------------- */
body:not(.public-catalog-mode) > main {
  flex:1;
  min-width:0;
  height:100dvh;
  padding:22px clamp(22px,2.8vw,40px) 46px;
  overflow:auto;
  scrollbar-width:thin;
  scrollbar-color:#34404a transparent;
}
.view-section { display:none; width:min(100%,var(--gc-content)); margin:0 auto; }
.view-section.active { display:block; }
.control-bar {
  position:sticky;
  top:-20px;
  z-index:40;
  display:flex;
  align-items:center;
  gap:12px;
  min-height:64px;
  margin:0 0 16px;
  padding:10px 0 11px;
  border-bottom:1px solid var(--gc-line);
  background:var(--gc-page);
}
.page-heading { min-width:0; }
.page-heading > span { display:block; margin-bottom:2px; color:var(--gc-accent); font-size:9px; font-weight:900; letter-spacing:.14em; text-transform:uppercase; }
.control-bar h1 { margin:0; font-size:clamp(22px,2vw,28px); line-height:1.08; letter-spacing:-.038em; }
.control-bar h1::after { content:none; }
.page-heading p { margin:4px 0 0; max-width:72ch; color:var(--gc-muted); font-size:12px; line-height:1.35; }
.btn-toggle-menu {
  flex:0 0 auto;
  min-height:36px;
  padding:7px 10px;
  border:1px solid var(--gc-border);
  border-radius:9px;
  background:var(--gc-surface-raised);
  color:var(--gc-text-muted);
  box-shadow:none;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.btn-toggle-menu:hover { color:var(--gc-text); border-color:var(--gc-accent); }

.section-kicker,.gc-section-kicker,.gc-card-kicker,.catalog-eyebrow,.communication-section-head>div>span,.employee-form-intro span,.finance-section-head>div>span,.premium-kicker {
  display:block;
  margin:0 0 5px;
  color:var(--gc-accent);
  font-size:10px;
  font-weight:950;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.empty-state { padding:16px; color:var(--gc-muted); font-size:13px; }
.field-status { display:block; min-height:0; margin-top:6px; color:var(--gc-muted-2); font-size:11px; line-height:1.35; }
.field-status:empty { display:none; }
.field-status.has-package { color:var(--gc-success); }


body:not(.public-catalog-mode) :where(h1,h2,h3,h4) { color:var(--gc-text); }
body:not(.public-catalog-mode) :where(.page-heading p,.catalog-panel-head p,.finance-section-head p,.communication-section-head p,.gc-card-title-row p,.gc-offer-manager-head p) { color:var(--gc-text-muted); }
body:not(.public-catalog-mode) :where(.view-section,.view-section > *,form,fieldset,.table-container) { min-width:0; }
body:not(.public-catalog-mode) :where(button,input,select,textarea) { max-width:100%; }

/* ---------------- CONTROLES ---------------- */
body:not(.public-catalog-mode) label { color:var(--gc-text-muted); font-size:12px; font-weight:750; }
body:not(.public-catalog-mode) :where(form,.master-filter-panel,.gc-capacity-settings) > div > label:first-child,
body:not(.public-catalog-mode) :where(.employee-field-grid,.settings-fields-grid,.catalog-config-grid,.gc-order-rule-fields) > div > label:first-child { display:block; margin:0 0 5px; }
body:not(.public-catalog-mode) input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body:not(.public-catalog-mode) select,
body:not(.public-catalog-mode) textarea,
.input-busca,.input-vale {
  width:100%;
  min-width:0;
  min-height:var(--gc-control-h);
  padding:8px 11px;
  border:1px solid var(--gc-line);
  border-radius:10px;
  background:var(--gc-field);
  color:var(--gc-text);
  outline:0;
  box-shadow:none;
  transition:border-color .18s,box-shadow .18s,background .18s;
}
body:not(.public-catalog-mode) textarea { min-height:82px; resize:vertical; line-height:1.42; }
body:not(.public-catalog-mode) input::placeholder,body:not(.public-catalog-mode) textarea::placeholder { color:color-mix(in srgb,var(--gc-text-muted) 62%,transparent); }
body:not(.public-catalog-mode) select option { background:var(--gc-surface-raised); color:var(--gc-text); }
body:not(.public-catalog-mode) input:focus,body:not(.public-catalog-mode) select:focus,body:not(.public-catalog-mode) textarea:focus { border-color:var(--gc-accent); box-shadow:0 0 0 3px var(--gc-focus); }
body:not(.public-catalog-mode) input[type="checkbox"],body:not(.public-catalog-mode) input[type="radio"] { width:18px; height:18px; min-width:18px; margin:0; accent-color:var(--gc-accent); }
body:not(.public-catalog-mode) input[type="file"] { max-width:100%; color:var(--gc-muted); font-size:12px; }

body:not(.public-catalog-mode) button:not(.profile-notification-button):not(.sidebar-notification-button):not(.mobile-notification-button):not(.btn-toggle-menu):not(.public-top-cart):not(.public-add-cart) {
  min-height:36px;
  padding:7px 11px;
  border:1px solid var(--gc-line);
  border-radius:9px;
  background:rgba(255,255,255,.045);
  color:var(--gc-text);
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  transition:border-color .16s,background .16s,color .16s;
}
body:not(.public-catalog-mode) button:hover:not(:disabled) { border-color:color-mix(in srgb,var(--gc-accent),transparent 42%); background:var(--gc-accent-soft); }
body:not(.public-catalog-mode) button:disabled { opacity:.46; cursor:not-allowed; transform:none; }
body:not(.public-catalog-mode) :is(.primary,.btn-ok,.form-actions button[type="submit"],.agenda-submit-primary,.catalog-primary-action,.gc-settings-save button,.btn-salvar-vale) {
  border-color:color-mix(in srgb,var(--gc-accent) 70%,var(--gc-border));
  background:linear-gradient(135deg,var(--gc-accent),var(--gc-accent-strong));
  color:var(--button-ink);
  box-shadow:none;
}
body:not(.public-catalog-mode) :is(.btn-delete,.logout-button-danger) {
  border-color:rgba(240,120,130,.40);
  color:#ffc2c8;
  background:rgba(240,120,130,.08);
}
body:not(.public-catalog-mode) :is(.btn-zap,main button[onclick*="Whats"],main button[onclick*="whats"],.modal button[onclick*="Whats"],.modal button[onclick*="whats"]) {
  border-color:rgba(108,197,159,.38);
  background:rgba(108,197,159,.10);
  color:#b9ead4;
}
.form-actions,.service-form-actions,.client-form-actions,.employee-form-actions,.internal-stock-form-actions,.catalog-admin-actions,.catalog-save-bar,.communication-actions,.master-export-actions,.btn-actions,.gc-approval-actions { display:flex; align-items:center; justify-content:flex-end; gap:9px; flex-wrap:wrap; margin-top:12px; }

/* ---------------- PAINÉIS / CARDS / TABELAS ---------------- */
body:not(.public-catalog-mode) :is(.card,.premium-card,.gc-module-card,.gc-settings-card,.internal-stock-card,.payroll-brief-card,.rh-dossier) {
  border:1px solid var(--gc-border);
  border-radius:var(--gc-radius);
  background:var(--gc-surface);
  color:var(--gc-text);
  box-shadow:none;
}
body:not(.public-catalog-mode) :is(.catalog-settings-panel,.catalog-create-panel,.gc-offer-manager-panel,.gc-commission-panel,.communication-section,.gc-communication-card,.master-filter-panel) {
  border:1px solid var(--gc-border);
  border-radius:var(--gc-radius);
  background:var(--gc-surface);
  color:var(--gc-text);
  box-shadow:none;
}
body:not(.public-catalog-mode) :is(.finance-team-section,.day-command-center,.gc-agenda-unificada,.gc-agenda-control,.table-container,.notification-popover,.modal-content) {
  border:1px solid var(--gc-border);
  border-radius:var(--gc-radius);
  background:var(--gc-surface);
  color:var(--gc-text);
  box-shadow:none;
}
.card,.premium-card,.gc-module-card,.gc-settings-card,.gc-company-identity-card,.gc-profile-photo-card,.catalog-settings-panel,.catalog-create-panel,.gc-offer-manager-panel,.gc-commission-panel,.communication-section,.gc-communication-card,.finance-team-section { padding:15px; }
.card h2,.card h3,.premium-card h2,.premium-card h3,.gc-module-card h2,.gc-module-card h3,.communication-section h2,.communication-section h3,.catalog-settings-panel h2,.catalog-settings-panel h3,.gc-settings-card h2,.gc-settings-card h3 { margin:0; letter-spacing:-.025em; }
.card p,.premium-card p,.gc-module-card p,.communication-section p,.catalog-settings-panel p,.gc-settings-card p { color:var(--gc-muted); }

.table-container { overflow:auto; box-shadow:none; }
table { width:100%; border-collapse:separate; border-spacing:0; min-width:760px; }
thead th { position:sticky; top:0; z-index:2; padding:10px 12px; border-bottom:1px solid var(--gc-line); background:#111720; color:#8895a0; font-size:10px; font-weight:900; letter-spacing:.06em; text-align:left; text-transform:uppercase; }
tbody td { padding:10px 12px; border-bottom:1px solid var(--gc-line-soft); color:#dce2e7; font-size:12px; vertical-align:middle; }
tbody tr:last-child td { border-bottom:0; }
tbody tr:hover td { background:rgba(255,255,255,.025); }
.table-header-control,.expense-list-head,.internal-stock-list-head,.employee-roster-head,.finance-section-head,.catalog-panel-head,.communication-section-head,.gc-card-title-row,.gc-offer-manager-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:15px 0 8px;
}
.table-header-control h2,.expense-list-head h2,.internal-stock-list-head h2,.employee-roster-head h2,.finance-section-head h2,.catalog-panel-head h2,.communication-section-head h2 { margin:0; font-size:16px; }

/* ---------------- AGENDA E ATENDIMENTOS ---------------- */
.day-command-center { padding:0; overflow:hidden; margin-bottom:14px; }
.day-command-head { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 16px 8px; }
.day-command-head h2 { margin:0; font-size:17px; letter-spacing:-.025em; color:var(--gc-text); }
.day-command-head p { margin:3px 0 0; color:var(--gc-text-muted); font-size:12px; }
.day-command-summary .day-metrics { padding-top:6px; }
.day-metrics,.metric-strip,.internal-stock-metrics,.payroll-metrics,.rh-summary-grid,.payment-summary-grid,.gc-vitrine-kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(138px,1fr)); gap:8px; padding:10px 16px 14px; }
.day-metric,.metric-mini,.payroll-metric,.gc-vitrine-kpi { min-height:64px; padding:10px 12px; border:1px solid var(--gc-border); border-radius:12px; background:var(--gc-surface-raised); }
.day-metric span,.metric-mini span,.payroll-metric span,.gc-vitrine-kpi span { display:block; color:var(--gc-text-muted); font-size:11px; }
.day-metric strong,.metric-mini strong,.payroll-metric strong,.gc-vitrine-kpi strong { display:block; margin-top:3px; color:var(--gc-text); font-size:18px; line-height:1.15; letter-spacing:-.03em; overflow-wrap:anywhere; }
.day-metric.accent { border-color:color-mix(in srgb,var(--gc-accent),transparent 52%); background:color-mix(in srgb,var(--gc-accent),var(--gc-surface-raised) 90%); }

.gc-agenda-unificada { margin-top:14px; overflow:hidden; }
.gc-agenda-unificada-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; padding:16px; border-bottom:1px solid var(--gc-border); }
.gc-agenda-unificada-copy > span { display:block; margin-bottom:3px; color:var(--gc-accent); font-size:9px; font-weight:900; letter-spacing:.13em; text-transform:uppercase; }
.gc-agenda-unificada-copy h2 { margin:0; color:var(--gc-text); font-size:19px; letter-spacing:-.025em; }
.gc-agenda-unificada-copy p { margin:4px 0 0; max-width:68ch; color:var(--gc-text-muted); font-size:12px; line-height:1.45; }
.gc-agenda-unificada-tools { display:grid; gap:8px; min-width:min(440px,100%); }
.gc-agenda-unificada-search { display:flex; align-items:center; gap:8px; min-width:0; }
.gc-agenda-unificada-search input { width:100%; min-width:0; }
.gc-agenda-unificada-filters { display:flex; gap:6px; max-width:100%; overflow-x:auto; padding:1px 0 4px; scrollbar-width:thin; }
.gc-agenda-unificada-filters button { flex:0 0 auto; min-height:34px; padding:6px 10px; white-space:nowrap; }
.gc-agenda-unificada-filters button.active { border-color:color-mix(in srgb,var(--gc-accent),transparent 42%); background:var(--gc-accent-soft); color:var(--gc-accent-strong); }
.gc-agenda-unificada-list { display:grid; gap:8px; padding:12px; }
.gc-agenda-pagination { display:flex; align-items:center; justify-content:space-between; gap:12px; position:sticky; bottom:8px; z-index:3; margin-top:4px; padding:10px 12px; border:1px solid var(--gc-border); border-radius:12px; background:color-mix(in srgb,var(--gc-surface),transparent 5%); box-shadow:0 10px 28px rgba(0,0,0,.18); backdrop-filter:blur(12px); }
.gc-agenda-pagination.single { position:static; justify-content:center; box-shadow:none; }
.gc-agenda-pagination > span { color:var(--gc-text-muted); font-size:11px; font-weight:700; }
.gc-agenda-pagination > div { display:flex; align-items:center; justify-content:flex-end; gap:8px; }
.gc-agenda-pagination b { color:var(--gc-text); font-size:11px; white-space:nowrap; }
.gc-agenda-pagination button { min-height:34px; padding:7px 10px; }
.gc-agenda-pagination button:disabled { opacity:.42; cursor:not-allowed; }
.gc-agenda-unificada-empty { padding:20px 14px; border:1px dashed var(--gc-border); border-radius:12px; text-align:center; color:var(--gc-text-muted); }
.gc-agenda-unificada-empty b,.gc-agenda-unificada-empty small { display:block; }
.gc-agenda-unificada-empty b { color:var(--gc-text); }
.gc-agenda-unificada-empty small { margin-top:3px; }
.gc-attendance-card { min-width:0; border:1px solid var(--gc-border); border-radius:13px; background:var(--gc-surface-raised); overflow:hidden; }
.gc-attendance-main { display:grid; grid-template-columns:minmax(150px,.8fr) minmax(220px,1.6fr) minmax(170px,.75fr); gap:14px; align-items:center; padding:13px 14px; }
.gc-attendance-when,.gc-attendance-copy,.gc-attendance-meta { min-width:0; }
.gc-attendance-when strong,.gc-attendance-copy b,.gc-attendance-meta b { display:block; color:var(--gc-text); overflow-wrap:anywhere; }
.gc-attendance-when strong { margin-bottom:6px; font-size:13px; }
.gc-attendance-copy b { font-size:14px; }
.gc-attendance-copy span,.gc-attendance-copy small,.gc-attendance-meta small { display:block; margin-top:2px; color:var(--gc-text-muted); font-size:11px; overflow-wrap:anywhere; }
.gc-attendance-copy span { color:var(--gc-text); font-size:12px; }
.gc-attendance-meta { display:grid; justify-items:end; gap:4px; text-align:right; }
.gc-origin-badge.internal { border-color:var(--gc-border); background:transparent; color:var(--gc-text-muted); }
.status-tag.waiting { border-color:rgba(231,179,91,.34); background:rgba(231,179,91,.07); color:#f0cc89; }
.status-tag.confirmed { border-color:rgba(108,197,159,.34); background:rgba(108,197,159,.07); color:#9ee0c1; }
.status-tag.done { border-color:rgba(124,188,232,.30); background:rgba(124,188,232,.06); color:#b8dcf3; }
.status-tag.cancelled { border-color:rgba(240,120,130,.30); background:rgba(240,120,130,.06); color:#ffb8bf; }
.gc-attendance-actions { border-top:1px solid var(--gc-border); }
.gc-attendance-actions > summary { display:flex; align-items:center; justify-content:flex-end; gap:7px; min-height:38px; padding:7px 12px; list-style:none; color:var(--gc-accent-strong); font-size:12px; font-weight:800; cursor:pointer; }
.gc-attendance-actions > summary::-webkit-details-marker { display:none; }
.gc-attendance-actions > summary i { font-size:10px; transition:transform .16s ease; }
.gc-attendance-actions[open] > summary i { transform:rotate(180deg); }
.gc-attendance-actions > div { display:flex; justify-content:flex-end; gap:7px; flex-wrap:wrap; padding:0 12px 12px; }
.gc-attendance-actions > div button { min-height:34px; }
.gc-action-empty { color:var(--gc-text-muted); font-size:11px; }

.gc-agenda-control { margin-bottom:14px; overflow:hidden; box-shadow:none; }
.gc-agenda-control > summary,.package-step > summary,.danger-zone > summary,.history-competence-tool > summary,.gc-master-vitrine-resources>summary,.gc-master-public-experience>summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:46px;
  padding:10px 14px;
  list-style:none;
  color:var(--gc-text);
  font-size:14px;
  font-weight:850;
  cursor:pointer;
}
.gc-agenda-control > summary::-webkit-details-marker,.package-step > summary::-webkit-details-marker { display:none; }
.gc-agenda-control[open] > summary { border-bottom:1px solid var(--gc-line); background:rgba(var(--accent-rgb),.045); }
.gc-agenda-control > summary > :last-child,.gc-master-vitrine-resources > summary > :last-child,.gc-master-public-experience > summary > :last-child { flex:0 0 auto; transition:transform .18s ease; }
.gc-agenda-control[open] > summary > :last-child,.gc-master-vitrine-resources[open] > summary > :last-child,.gc-master-public-experience[open] > summary > :last-child { transform:rotate(45deg); }
.package-step > summary::after { content:"⌄"; flex:0 0 auto; color:var(--gc-muted-2); transition:transform .18s ease; }
.package-step:not([open]) > summary::after { transform:rotate(-90deg); }
.gc-agenda-control-body { padding:13px; }
.gc-capacity-master-toggle,.gc-compact-toggle { display:flex !important; align-items:center !important; justify-content:space-between; gap:14px; padding:13px 14px; border:1px solid var(--gc-line); border-radius:13px; background:rgba(255,255,255,.02); }
.gc-capacity-master-toggle span b,.gc-capacity-master-toggle span small { display:block; }
.gc-capacity-master-toggle span small { margin-top:3px; color:var(--gc-muted); font-weight:500; }
.gc-compact-toggle > span b,.gc-compact-toggle > span small { display:block; }
.gc-compact-toggle > span small { margin-top:2px; color:var(--gc-muted); font-size:11px; font-weight:500; }
.gc-capacity-settings { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-top:12px; }
.gc-capacity-settings > div { min-width:0; }
.gc-capacity-free-note { margin-top:12px; padding:12px 14px; border:1px solid rgba(var(--accent-2-rgb),.20); border-radius:12px; background:rgba(var(--accent-2-rgb),.055); }
.gc-capacity-free-note b,.gc-capacity-free-note span { display:block; }
.gc-capacity-free-note span { margin-top:3px; color:var(--gc-muted); font-size:12px; }
.gc-block-list { grid-column:1/-1; }
.gc-block-chip { display:inline-flex; align-items:center; gap:6px; margin:5px 5px 0 0; padding:6px 8px; border:1px solid var(--gc-line); border-radius:99px; color:var(--gc-muted); background:rgba(255,255,255,.02); font-size:12px; }

.status-tag,.gc-origin-badge,.package-status,.catalog-admin-pill,.catalog-action-badge,.gc-commerce-status,.gc-finance-period-badge { display:inline-flex; align-items:center; min-height:25px; padding:4px 8px; border:1px solid color-mix(in srgb,var(--gc-accent),transparent 60%); border-radius:99px; background:rgba(var(--accent-rgb),.06); color:var(--gc-accent-strong); font-size:11px; font-weight:850; }

/* ---------------- CLIENTES ---------------- */
.client-form-actions { grid-column:1/-1; }
.client-add-vehicle-btn { align-self:end; }
.cliente-veiculos-extras { grid-column:1/-1; display:grid; gap:9px; }
.cliente-veiculos-head { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.cliente-veiculos-head b,.cliente-veiculos-head small { display:block; }
.cliente-veiculos-head small { margin-top:2px; color:var(--gc-muted); font-size:11px; }
.gc-client-vehicle-row { display:grid; grid-template-columns:1.2fr 1fr 1fr auto; gap:9px; align-items:center; padding:10px; border:1px solid var(--gc-line); border-radius:12px; background:rgba(255,255,255,.018); }
.gc-remove-vehicle { min-width:40px; padding:8px; }
.clients-search,.busca-container { margin:16px 0 10px; }
.clients-search input,.busca-container input { max-width:560px; }

/* ---------------- ESTOQUE INTERNO ---------------- */
.internal-stock-form { display:grid; grid-template-columns:minmax(260px,1.8fr) minmax(150px,.55fr) minmax(170px,.65fr) auto; gap:10px; align-items:end; padding:13px; margin-bottom:14px; border:1px solid var(--gc-line); border-radius:var(--gc-radius); background:var(--gc-surface); }
.internal-stock-form-head { grid-column:1/-1; }
.internal-stock-form-head h2 { margin:0; font-size:18px; }
.internal-stock-form-head p { margin:4px 0 0; color:var(--gc-muted); font-size:13px; }
.internal-stock-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:9px; }
.internal-stock-card { display:grid; gap:11px; padding:15px; box-shadow:none; }
.internal-stock-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.internal-stock-card-head span { display:block; color:var(--gc-accent); font-size:10px; font-weight:900; letter-spacing:.1em; }
.internal-stock-card-head h3 { margin:3px 0 0; font-size:16px; }
.internal-stock-card-head > b { font-size:16px; }
.internal-stock-card-head > b small { color:var(--gc-muted); font-size:11px; }
.internal-stock-metrics { padding:0; grid-template-columns:repeat(2,minmax(0,1fr)); }
.internal-stock-metrics > div { min-height:68px; padding:10px; border:1px solid var(--gc-line); border-radius:11px; background:rgba(255,255,255,.018); }
.internal-stock-metrics span,.internal-stock-metrics strong { display:block; }
.internal-stock-metrics span { color:var(--gc-muted); font-size:11px; }
.internal-stock-metrics strong { margin-top:4px; font-size:17px; }
.internal-stock-actions { display:flex; flex-wrap:wrap; gap:7px; }

/* ---------------- EQUIPE ---------------- */
.employee-form-intro { margin-bottom:14px; }
.employee-form-intro h2 { margin:3px 0 0; font-size:19px; }
.employee-form-intro p { margin:4px 0 0; max-width:80ch; color:var(--gc-muted); font-size:12px; }
.employee-field-grid,.settings-fields-grid,.gc-company-fields-grid,.payment-grid,.catalog-settings-grid,.catalog-config-grid,.gc-order-rule-fields { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:10px; }
.employee-field-grid > div,.settings-fields-grid > div,.gc-company-fields-grid > div,.payment-grid > div,.catalog-config-grid > div,.gc-order-rule-fields > div { grid-column:span 4; min-width:0; }
.employee-form-group { margin-top:10px; padding:12px; border:1px solid var(--gc-line); border-radius:12px; background:rgba(255,255,255,.018); }
.employee-form-group-head { display:grid; grid-template-columns:32px minmax(0,1fr); align-items:start; gap:10px; margin-bottom:9px; }
.employee-form-group-head > span { display:grid; place-items:center; width:30px; height:30px; border-radius:9px; background:var(--gc-accent-soft); color:var(--gc-accent); font-size:10px; font-weight:900; }
.employee-form-group-head h3 { margin:0; font-size:16px; }
.employee-form-group-head p { margin:2px 0 0; color:var(--gc-muted); font-size:11px; }
.permission-summary { display:grid; grid-template-columns:minmax(160px,.35fr) minmax(0,1fr); gap:10px; align-items:start; margin-top:10px; padding:10px; border:1px solid var(--gc-line); border-radius:10px; background:rgba(255,255,255,.018); }
.permission-summary p { margin:0; color:var(--gc-muted); font-size:12px; }
.gc-commission-item { display:grid; grid-template-columns:auto minmax(0,1fr) 112px; align-items:center; gap:10px; min-height:56px; padding:9px 10px; border:1px solid var(--gc-line); border-radius:10px; background:rgba(255,255,255,.018); }
.gc-commission-item > span { min-width:0; }
.gc-commission-item > span b { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gc-commission-item > span small { white-space:normal; }
.gc-commission-item input[type="number"] { width:100%; min-width:0; }
.gc-commission-panel { margin-top:12px; padding:16px; border-radius:16px; box-shadow:none; }
.gc-commission-panel[hidden] { display:none !important; }
.gc-commission-panel.open { display:block; }
.gc-commission-panel-head { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin-bottom:12px; }
.gc-commission-panel-head > div:last-child { min-width:180px; }
.gc-commission-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.employee-roster-section { margin-top:18px; padding:16px; border:1px solid var(--gc-border); border-radius:var(--gc-radius); background:var(--gc-surface); }
.employee-roster-head { margin:0 0 12px; padding:0 2px 12px; border-bottom:1px solid var(--gc-line-soft); }
.employee-roster-table { overflow:auto; margin-top:0; border:1px solid var(--gc-line); border-radius:12px; }

/* ---------------- FINANCEIRO ---------------- */
.financial-filter-bar { display:flex; align-items:flex-end; gap:10px; flex-wrap:wrap; margin-bottom:14px; padding:11px; border:1px solid var(--gc-line); border-radius:12px; background:rgba(255,255,255,.018); }
.financial-filter-presets { display:flex; gap:7px; flex-wrap:wrap; }
.financial-filter-status { margin-left:auto; color:var(--gc-muted); font-size:12px; }
.dashboard-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:12px; margin-bottom:14px; }
.dashboard-grid .card { min-height:100px; padding:14px; border-radius:14px; }
.dashboard-grid .card h3 { margin:0; color:var(--gc-muted); font-size:11px; font-weight:700; }
.dashboard-grid .card p,.dashboard-grid .card .total,.dashboard-grid .card strong { display:block; margin:6px 0 0; color:var(--gc-text); font-size:clamp(18px,2vw,22px); font-weight:850; line-height:1.15; letter-spacing:-.04em; overflow-wrap:anywhere; }
.finance-team-section { margin-top:18px; padding:16px; overflow:hidden; }
#finance-period-composition { margin-top:0; }
#finance-period-composition summary { min-height:52px; align-items:center; }
#finance-period-composition .gc-agenda-control-body { padding-top:14px; }
.finance-section-head { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; margin:0 0 12px; padding:2px 2px 12px; border-bottom:1px solid var(--gc-line); }
.finance-section-head .btn-view { display:inline-flex; align-items:center; gap:8px; white-space:nowrap; }
.finance-team-table { overflow:hidden; width:100%; margin:0; border-radius:12px; }
.finance-team-table table { width:100%; min-width:0; table-layout:fixed; }
.finance-team-table thead { display:none; }
.finance-team-table tbody,.finance-team-table tr,.finance-team-table td { display:block; width:100%; min-width:0; }
.finance-team-table td { padding:0; border:0; }
.finance-empty-state { padding:20px; color:var(--gc-muted); }

/* ---------------- WHATSAPP / PIX ---------------- */
.gc-communication-hero,.communication-page-head { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:14px; align-items:center; margin-bottom:12px; padding:14px 16px; border:1px solid var(--gc-line); border-radius:var(--gc-radius); background:var(--gc-surface); }
.communication-page-copy h2 { margin:2px 0 0; font-size:19px; letter-spacing:-.03em; }
.communication-page-copy p { margin:5px 0 0; color:var(--gc-muted); font-size:13px; }
.communication-token-help { position:relative; margin-bottom:10px; border:1px solid var(--gc-line); border-radius:10px; background:rgba(255,255,255,.018); }
.communication-token-help > summary { min-height:38px; padding:8px 11px; list-style:none; cursor:pointer; color:var(--gc-muted); font-size:12px; font-weight:800; }
.communication-token-help > p,.communication-token-help > .template-token-list { margin:0; padding:0 11px 9px; }
.communication-section { display:grid; grid-template-columns:200px minmax(0,1fr); gap:14px; margin-bottom:12px; padding:14px; }
.communication-section-head { display:flex; gap:12px; align-items:flex-start; }
.communication-section-icon,.message-template-icon { display:grid; place-items:center; flex:0 0 40px; width:40px; height:40px; border:1px solid rgba(56,211,124,.25); border-radius:12px; background:rgba(56,211,124,.07); color:#64d996; font-size:17px; }
.communication-section-head h3 { margin:3px 0 0; font-size:17px; }
.communication-section-head p { margin:4px 0 0; color:var(--gc-muted); font-size:12px; }
.pix-fields-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.pix-fields-grid > div { padding:9px; border:1px solid var(--gc-line); border-radius:10px; background:rgba(255,255,255,.018); }
.gc-message-head { display:flex; align-items:flex-start; gap:9px; }
.gc-message-head b { display:block; font-size:14px; }
.gc-message-head small { display:block; margin-top:2px; color:var(--gc-muted); font-size:11px; }
.gc-message-template-workspace { display:grid; grid-template-columns:minmax(280px,.72fr) minmax(0,1.55fr); gap:14px; align-items:start; }
.gc-message-sidebar { display:grid; gap:12px; align-content:start; }
.gc-message-template-picker { display:grid; gap:7px; padding:12px; border:1px solid var(--gc-border); border-radius:12px; background:var(--gc-surface-raised); }
.gc-message-template-picker > span { color:var(--gc-accent); font-size:10px; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.gc-pix-compact-card { display:block; min-width:0; margin:0; padding:14px; border-radius:14px; }
.gc-pix-compact-card .communication-section-head { display:grid; grid-template-columns:auto minmax(0,1fr); align-items:start; gap:12px; margin-bottom:12px; }
.gc-pix-compact-card .pix-fields-grid { grid-template-columns:1fr; gap:10px; }
.gc-message-editor { display:grid; gap:10px; min-width:0; padding:13px; border:1px solid var(--gc-border); border-radius:12px; background:var(--gc-surface-raised); }
.gc-message-editor-head { display:block; padding-bottom:9px; border-bottom:1px solid var(--gc-border); }
.gc-message-editor-head span { color:var(--gc-accent); font-size:9px; font-weight:900; letter-spacing:.12em; }
.gc-message-editor-head h3 { margin:3px 0 0; color:var(--gc-text); font-size:17px; }
.gc-message-editor-head p { margin:4px 0 0; color:var(--gc-text-muted); font-size:12px; }
.gc-message-required { display:grid; gap:7px; }
.gc-message-required > b { color:var(--gc-text); font-size:11px; }
.gc-message-editor textarea { width:100%; min-height:360px; max-height:520px; resize:vertical; color:var(--gc-text); background:var(--gc-surface); border:1px solid var(--gc-border); }

/* ---------------- CENTRAL DA VITRINE ---------------- */
.catalog-hub { display:block; margin-bottom:14px; padding:18px 2px 20px; border:0; border-bottom:1px solid var(--gc-border); border-radius:0; background:transparent; }
.catalog-hub-main { display:grid; gap:16px; }
.gc-vitrine-hub-copy { display:grid; gap:9px; }
.catalog-hub-main > .catalog-eyebrow { margin-bottom:4px; }
.catalog-hub-main > h2,.gc-vitrine-hub-copy > h2 { max-width:none; margin:0; font-size:clamp(32px,4vw,50px); line-height:.98; letter-spacing:-.052em; }
.gc-vitrine-hub-lead { max-width:72ch; margin:0; color:var(--gc-text); font-size:15px; line-height:1.55; }
.gc-vitrine-base-summary { width:max-content; max-width:100%; padding:9px 12px; border:1px solid var(--gc-border); border-radius:11px; background:var(--gc-surface-raised); color:var(--gc-text-muted); font-size:12px; line-height:1.4; }
.gc-vitrine-hub-status-strip { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.gc-vitrine-hub-status-strip small { color:var(--gc-text-muted); font-size:12px; }
.catalog-hub-status,.catalog-hub-guide { padding:14px; border:1px solid var(--gc-line); border-radius:var(--gc-radius); background:var(--gc-surface); }
.catalog-hub-status h2 { margin:3px 0 0; font-size:19px; }
.catalog-hub-status p { margin:5px 0 0; color:var(--gc-muted); font-size:13px; }
.gc-vitrine-hub-status { display:grid; align-content:center; gap:10px; }
.gc-vitrine-hub-status > small { color:var(--gc-muted); font-size:11px; line-height:1.45; }
.catalog-hub-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:0; }
.catalog-hub-actions > button { min-height:44px; }
.catalog-hub-step { display:grid; grid-template-columns:26px minmax(0,1fr); gap:8px; align-items:start; padding:7px 0; border-bottom:1px solid var(--gc-line-soft); }
.catalog-hub-step:last-child { border-bottom:0; }
.catalog-hub-step > i { display:grid; place-items:center; width:26px; height:26px; border-radius:8px; background:var(--gc-accent-soft); color:var(--gc-accent); font-size:11px; }
.catalog-hub-step > span { display:block; min-width:0; }
.catalog-hub-step > span b { display:block; font-size:12px; }
.catalog-hub-step > span small { display:block; margin-top:2px; color:var(--gc-muted); font-size:10px; }
.catalog-workspace-switcher,.gc-offer-manager-tabs { display:inline-flex; gap:4px; margin:0 0 10px; padding:4px; border:1px solid var(--gc-border); border-radius:10px; background:var(--gc-surface); }
.catalog-workspace-switcher button,.gc-offer-manager-tabs button { min-height:36px; padding:7px 11px; border-color:transparent; background:transparent; color:var(--gc-text-muted); }
.catalog-workspace-switcher button > span,.catalog-workspace-switcher button b,.catalog-workspace-switcher button small { display:block; }
.catalog-workspace-switcher button small { margin-top:1px; color:inherit; font-size:10px; font-weight:600; }
.catalog-workspace-switcher button.active,.gc-offer-manager-tabs button.active { border-color:color-mix(in srgb,var(--gc-accent),transparent 55%); background:var(--gc-surface-raised); color:var(--gc-text); }
.gc-vitrine-sections {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  width:100%;
  margin:0 0 14px;
  padding:6px;
  gap:6px;
  border:1px solid var(--gc-border);
  border-radius:12px;
  background:var(--gc-surface);
}
.gc-vitrine-sections button {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:9px;
  min-width:0;
  min-height:56px;
  padding:10px 12px;
  border:1px solid transparent;
  border-radius:9px;
  text-align:left;
}
.gc-vitrine-sections button > i { display:grid; place-items:center; flex:0 0 28px; width:28px; height:28px; border-radius:8px; background:var(--gc-surface-raised); color:var(--gc-accent); }
.gc-vitrine-sections button > span { min-width:0; }
.gc-vitrine-sections button b { color:var(--gc-text); font-size:12px; }
.gc-vitrine-sections button small { margin-top:1px; color:var(--gc-text-muted); font-size:10px; }
.gc-vitrine-sections button b,.gc-vitrine-sections button small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gc-vitrine-sections button.active { border-color:color-mix(in srgb,var(--gc-accent),transparent 45%); background:var(--gc-surface-raised); }
.gc-vitrine-sections button.active > i { background:color-mix(in srgb,var(--gc-accent),transparent 86%); color:var(--gc-accent-strong); }
.gc-vitrine-section-panel { display:none; min-width:0; }
.gc-vitrine-section-panel.active { display:block; }
.catalog-settings-panel.gc-vitrine-section-panel { padding:14px; box-shadow:none; }
.gc-vitrine-publication-state { display:inline-grid; gap:2px; margin-top:12px; padding:8px 10px; border:1px solid var(--gc-border); border-radius:10px; background:var(--gc-surface); }
.gc-vitrine-publication-state small { color:var(--gc-text-muted); font-size:10px; }
.gc-vitrine-publication-state b { color:var(--gc-text); font-size:12px; }
.catalog-settings-grid,.catalog-config-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.catalog-wide { grid-column:1/-1; }
.catalog-cover-workbench,.gc-cover-workbench { padding:11px; border:1px solid var(--gc-line); border-radius:12px; background:rgba(255,255,255,.018); }
.gc-cover-adjuster-grid { display:grid; grid-template-columns:minmax(260px,1.2fr) minmax(220px,.8fr); gap:14px; }
.gc-cover-stage,.catalog-cover-preview { min-height:220px; overflow:hidden; border:1px solid var(--gc-line); border-radius:14px; background:#080b10; }
.gc-cover-stage img,.catalog-cover-preview img { width:100%; height:100%; object-fit:cover; }
.catalog-admin-layout { display:grid; gap:10px; }
.catalog-admin-items,.gc-commerce-card-grid,.gc-module-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:9px; }
.catalog-admin-card,.gc-commerce-card { display:grid; gap:10px; padding:13px; border:1px solid var(--gc-line); border-radius:14px; background:rgba(255,255,255,.018); }
.catalog-admin-card { grid-template-columns:92px minmax(0,1fr); align-items:start; }
.catalog-admin-thumb { width:92px; height:82px; overflow:hidden; border-radius:11px; background:#090d12; }
.catalog-admin-thumb img { width:100%; height:100%; object-fit:cover; }
.catalog-admin-copy { min-width:0; }
.catalog-admin-head { display:flex; justify-content:space-between; gap:10px; }
.catalog-admin-head h4,.gc-commerce-card-head h4 { margin:0; font-size:15px; }
.catalog-admin-meta,.gc-commerce-card-meta { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:5px; color:var(--gc-muted); font-size:12px; }
.catalog-admin-actions { grid-column:1/-1; justify-content:flex-start; }
.catalog-empty-premium,.gc-commerce-empty { padding:18px; border:1px dashed var(--gc-line); border-radius:14px; color:var(--gc-muted); text-align:center; }
.catalog-empty-premium b,.catalog-empty-premium small,.gc-commerce-empty b,.gc-commerce-empty small { display:block; }
.catalog-empty-premium small,.gc-commerce-empty small { margin-top:3px; font-size:11px; }
.gc-vitrine-catalog-head { margin:0 0 12px; padding:0 2px; }
.gc-vitrine-visual-card { display:grid; grid-template-columns:minmax(240px,.62fr) minmax(0,1fr); gap:18px; padding:0; border:0; border-radius:0; background:transparent; }
.gc-vitrine-visual-copy { display:grid; align-content:start; align-self:start; gap:10px; padding:16px; border:1px solid var(--gc-border); border-radius:16px; background:rgba(255,255,255,.015); }
.gc-vitrine-visual-copy > span { display:block; color:var(--gc-accent); font-size:10px; font-weight:950; letter-spacing:.12em; }
.gc-vitrine-visual-copy h3 { margin:0; font-size:clamp(24px,2.6vw,34px); line-height:1.08; letter-spacing:-.03em; }
.gc-vitrine-visual-copy p { margin:0; color:var(--gc-text); font-size:13px; line-height:1.55; }
.gc-vitrine-visual-fields { display:grid; align-content:start; align-self:start; min-width:0; padding:16px; border:1px solid var(--gc-border); border-radius:16px; background:rgba(255,255,255,.015); }
.gc-vitrine-visual-fields label { display:grid; gap:8px; }
.gc-vitrine-visual-fields input { min-height:52px; font-size:15px; }
.gc-vitrine-visual-fields small,.gc-vitrine-cover-upload > small { display:block; margin-top:5px; color:var(--gc-muted); font-size:11px; }
.gc-vitrine-cover-upload { display:grid; grid-template-columns:minmax(180px,.45fr) minmax(0,1fr); gap:12px; align-items:start; padding:16px; border:1px solid var(--gc-border); border-radius:16px; background:rgba(255,255,255,.015); }
.gc-vitrine-cover-upload > label { grid-column:1/-1; }
.gc-vitrine-cover-upload .gc-upload-control { align-self:start; }
.gc-vitrine-cover-upload .gc-cover-workbench { min-height:230px; padding:0; overflow:hidden; }
.gc-vitrine-cover-upload .gc-cover-stage { position:relative; min-height:230px; height:230px; overflow:hidden; border:1px solid var(--gc-border); border-radius:14px; background:#080a0d; }
.gc-vitrine-cover-upload .catalog-cover-preview { position:absolute; inset:0; min-height:0; height:100%; border:0; border-radius:0; background:#080a0d; }
.gc-vitrine-cover-upload .catalog-cover-preview img { width:100%; height:100%; object-fit:cover; object-position:var(--gc-cover-pos-x,50%) var(--gc-cover-pos-y,50%); transform:scale(var(--gc-cover-scale,1)); transform-origin:var(--gc-cover-pos-x,50%) var(--gc-cover-pos-y,50%); transition:transform .18s ease,object-position .18s ease; }
.gc-cover-public-shade { position:absolute; inset:0; z-index:1; pointer-events:none; background:linear-gradient(90deg,rgba(4,6,9,.94) 0%,rgba(4,6,9,.76) 42%,rgba(4,6,9,.25) 76%,rgba(4,6,9,.45) 100%),linear-gradient(0deg,rgba(4,6,9,.88),transparent 62%); }
.gc-cover-public-copy { position:absolute; z-index:2; left:18px; right:18px; bottom:16px; display:grid; gap:3px; pointer-events:none; }
.gc-cover-public-copy span { color:#e6b96e; font-size:9px; font-weight:900; letter-spacing:.1em; }
.gc-cover-public-copy strong { max-width:85%; color:#fff; font-size:clamp(20px,2.4vw,30px); line-height:1; letter-spacing:-.04em; overflow-wrap:anywhere; }
.gc-cover-public-copy small { color:#bac2c8; font-size:10px; }
.gc-vitrine-cover-upload > small { grid-column:1/-1; }
.gc-vitrine-release-bar { align-items:center; justify-content:space-between; padding:14px 16px; border:1px solid var(--gc-line); border-radius:14px; background:var(--gc-surface-raised); }
.gc-vitrine-release-bar > div:first-child { display:grid; gap:3px; min-width:0; }
.gc-vitrine-release-bar b { color:var(--gc-text); }
.gc-vitrine-release-bar small { color:var(--gc-muted); line-height:1.4; }
.gc-vitrine-release-actions { display:flex; align-items:center; justify-content:flex-end; flex-wrap:wrap; gap:9px; }
.gc-vitrine-release-actions button { white-space:nowrap; }
.gc-offer-card { grid-template-columns:76px minmax(0,1fr); align-items:start; }
.gc-offer-card .gc-offer-thumb { display:grid; place-items:center; grid-row:span 3; width:76px; height:76px; overflow:hidden; border:1px solid var(--gc-line); border-radius:12px; background:var(--gc-field); color:var(--gc-accent); font-size:22px; }
.gc-offer-card .gc-offer-thumb img { width:100%; height:100%; object-fit:cover; }
.gc-offer-card .gc-commerce-card-actions { grid-column:1/-1; padding-top:2px; border-top:1px solid var(--gc-line-soft); }
.catalog-service-form,.catalog-sale-product-form,.catalog-visual-only-form { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:10px; }
.catalog-service-form > div:not(.catalog-wide),.catalog-sale-product-form > div:not(.catalog-wide),.catalog-visual-only-form > div:not(.catalog-wide) { grid-column:span 4; min-width:0; }
.catalog-upload,.gc-master-media-upload { padding:11px; border:1px dashed var(--gc-line-strong); border-radius:12px; background:rgba(255,255,255,.016); }
.gc-upload-control { position:relative; display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:8px; border:1px dashed var(--gc-line-strong); border-radius:10px; background:rgba(255,255,255,.016); }
.gc-upload-control input[type="file"] { position:absolute; width:1px; height:1px; overflow:hidden; opacity:0; pointer-events:none; }
.gc-upload-button { display:inline-flex; align-items:center; gap:7px; min-height:34px; padding:7px 10px; border:1px solid var(--gc-line); border-radius:9px; background:rgba(255,255,255,.04); color:var(--gc-text); font-size:11px; font-weight:850; cursor:pointer; }
.gc-upload-control > span { color:var(--gc-muted); font-size:11px; }
.gc-gallery-grid,.gc-demo-gallery-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.gc-gallery-thumb,.gc-demo-thumb { position:relative; min-height:100px; overflow:hidden; border-radius:12px; background:#080b10; }
.gc-gallery-thumb img,.gc-demo-thumb img { width:100%; height:100px; object-fit:cover; }
.gc-vitrine-kpis { padding:0; grid-template-columns:repeat(6,minmax(0,1fr)); }
.gc-vitrine-kpi { min-height:78px; }

/* ---------------- PERFIL / CONFIGURAÇÕES ---------------- */
.gc-settings-hero,.gc-settings-hero-compact { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:12px; padding:14px 16px; border:1px solid var(--gc-line); border-radius:var(--gc-radius); background:var(--gc-surface-raised); }
.gc-settings-hero h2 { margin:2px 0 0; font-size:19px; }
.gc-settings-hero p { margin:5px 0 0; color:var(--gc-muted); font-size:13px; }
.gc-profile-settings-v3 { display:grid; grid-template-columns:1fr; gap:10px; }
.gc-company-identity-card,.gc-profile-photo-card,.settings-theme-studio { padding:14px; box-shadow:none; }
.gc-company-identity-body { display:grid; grid-template-columns:220px minmax(0,1fr); gap:13px; align-items:start; }
.gc-profile-photo-body { display:grid; grid-template-columns:auto minmax(0,1fr); gap:13px; align-items:center; }
.gc-company-logo-box { display:grid; align-content:start; justify-items:center; gap:10px; min-height:auto; padding:12px; border:1px solid var(--gc-line); border-radius:12px; background:rgba(255,255,255,.018); }
.gc-company-logo-copy label,.gc-company-logo-copy small { display:block; text-align:center; }
.gc-company-logo-copy small { margin-top:2px; color:var(--gc-muted); font-size:10px; }
.gc-logo-preview { display:grid; place-items:center; width:92px; height:92px; margin-inline:auto; overflow:hidden; border:1px solid var(--gc-line); border-radius:16px; background:var(--gc-field); color:var(--gc-accent); font-weight:950; object-fit:cover; }
.gc-logo-preview img { display:block; width:100%; height:100%; object-fit:cover; }
#gc-logo-toolbar,.gc-media-toolbar { width:100%; display:flex; flex-direction:column; align-items:center; gap:8px; }
#gc-logo-toolbar .btn-cancel,.gc-media-toolbar .btn-cancel { width:100%; max-width:180px; }
#gc-logo-state,.gc-media-state { text-align:center; }
.gc-company-logo-box .gc-upload-control { width:100%; justify-content:center; }
.gc-company-logo-copy h3 { margin:0; font-size:17px; }
.gc-company-logo-copy p { margin:4px 0 0; color:var(--gc-muted); font-size:12px; }
.gc-theme-grid-v3 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.theme-choice-card { min-height:68px; padding:9px; border:1px solid var(--gc-line); border-radius:11px; background:rgba(255,255,255,.018); cursor:pointer; }
.theme-choice-card:has(input:checked),.theme-choice-card.active { border-color:var(--gc-accent); background:var(--gc-accent-soft); box-shadow:0 0 0 3px rgba(var(--accent-rgb),.08); }
.theme-choice-card .theme-swatch { display:block; width:100%; height:24px; margin-bottom:7px; border:1px solid rgba(255,255,255,.12); border-radius:7px; box-shadow:inset 0 1px rgba(255,255,255,.18); }
.theme-choice-card.graphite .theme-swatch { background:linear-gradient(90deg,#b98b46,#efca88); }
.theme-choice-card.ruby .theme-swatch { background:linear-gradient(90deg,#9f1119,#f23b42 58%,#ff7479); }
.theme-choice-card.violet .theme-swatch { background:linear-gradient(90deg,#4d277d,#925cff 58%,#c39cff); }
.theme-choice-card.racing .theme-swatch { background:linear-gradient(90deg,#0e4f36,#36b77c 58%,#85d9b1); }
.theme-choice-card.titanium .theme-swatch { background:linear-gradient(90deg,#4d7085,#78b7df,#b2d8ef); }
.theme-choice-card.chrome .theme-swatch { background:linear-gradient(90deg,#2c6872,#62bdc6,#a5d9de); }
.theme-choice-card.pearl .theme-swatch { background:linear-gradient(90deg,#9aa9b1,#d3dde2,#eef3f5); }
.gc-settings-save { grid-column:1/-1; }

/* ---------------- MASTER ---------------- */
.master-page-intro { margin:-5px 0 12px; color:var(--gc-muted); font-size:12px; }
.metric-strip { padding:0; grid-template-columns:repeat(6,minmax(0,1fr)); margin-bottom:10px; }
.metric-mini { min-height:70px; }
.master-filter-panel { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:9px; padding:12px; box-shadow:none; }
.master-filter-panel > div:not(.master-field-picker):not(.master-export-actions) { grid-column:span 3; min-width:0; }
.master-field-picker { grid-column:1/-1; }
.master-field-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:6px; margin-top:6px; }
.master-field-grid label { display:flex; align-items:center; gap:6px; min-height:34px; padding:6px 8px; border:1px solid var(--gc-line); border-radius:9px; background:rgba(255,255,255,.016); }
.master-field-presets { display:flex; gap:7px; flex-wrap:wrap; margin-top:8px; }
.master-export-actions { grid-column:1/-1; }
.master-location-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; margin:12px 0; }
.master-location-card { display:grid; gap:5px; min-height:64px; padding:12px 14px; border:1px solid var(--gc-line); border-radius:12px; background:rgba(255,255,255,.018); }
.master-location-card span { color:var(--gc-text-muted); font-size:11px; }
.master-location-card strong { color:var(--gc-text); font-size:20px; line-height:1; }
.gc-master-vitrine-resources { margin:14px 0; overflow:hidden; border:1px solid var(--gc-border); border-radius:var(--gc-radius); background:var(--gc-surface); }
.gc-master-resource-body { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; padding:16px; border-top:1px solid var(--gc-line); }
.gc-master-resource-body > div { min-width:0; }
.gc-master-resource-body .catalog-check { margin-top:8px; }
.gc-master-video-preview { width:100%; max-height:220px; border-radius:12px; background:#06080b; }
.gc-master-intel-tools { display:flex; align-items:center; gap:9px; flex-wrap:wrap; margin-top:11px; }
.gc-filter-pills { display:flex; flex-wrap:wrap; gap:6px; }

/* ---------------- HISTÓRICO ---------------- */
.history-control-bar { flex-wrap:wrap; }
.history-competence-tool,.danger-zone { margin-left:auto; border:1px solid var(--gc-line); border-radius:12px; background:rgba(255,255,255,.025); }
.history-competence-tool > summary,.danger-zone > summary { min-height:40px; padding:8px 11px; font-size:12px; }
.history-competence-body,.danger-zone-body { display:flex; align-items:flex-end; gap:10px; flex-wrap:wrap; min-width:310px; padding:12px; border-top:1px solid var(--gc-line); }
.history-competence-body small { flex:1 1 100%; color:var(--gc-muted); font-size:11px; }

/* ---------------- MODAIS / NOTIFICAÇÕES ---------------- */
.notification-popover { position:fixed; z-index:5000; left:276px; top:16px; width:min(390px,calc(100vw - 300px)); max-height:calc(100dvh - 32px); overflow:auto; padding:0; box-shadow:none; }
.notification-popover-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:15px 16px; border-bottom:1px solid var(--gc-line); }
.notification-popover-head span { color:var(--gc-accent); font-size:9px; font-weight:900; letter-spacing:.14em; }
.notification-popover-head h2 { margin:2px 0 0; font-size:17px; }
.notification-popover-close { width:34px; min-width:34px; height:34px; padding:0; }
.notification-popover-meta { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 16px; color:var(--gc-muted); font-size:11px; }
.notification-popover-list { display:grid; gap:7px; padding:0 10px 10px; }
.notice-card { padding:12px; border:1px solid var(--gc-line); border-radius:12px; background:rgba(255,255,255,.02); }
.notice-card-head { display:flex; justify-content:space-between; gap:10px; }
.notice-type { color:var(--gc-accent); font-size:10px; font-weight:900; }
.notice-card p { margin:5px 0 0; color:var(--gc-muted); font-size:12px; }
.modal { position:fixed; inset:0; z-index:6000; display:none; place-items:center; padding:18px; background:rgba(2,4,7,.76); }
.modal.show,.modal.open { display:grid; }
.modal-content { width:min(760px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); overflow:auto; padding:20px; box-shadow:none; }
.gc-approval-dialog { width:min(590px,calc(100vw - 28px)); padding:0; color:var(--gc-text); }
.gc-approval-dialog::backdrop { background:rgba(2,4,7,.76); }
.gc-approval-dialog form { padding:20px; }
.gc-approval-head span { color:var(--gc-accent); font-size:10px; font-weight:900; letter-spacing:.12em; }
.gc-approval-head h2 { margin:4px 0 0; font-size:22px; }
.gc-approval-head p { color:var(--gc-muted); }
.gc-approval-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }

/* ---------------- COMPONENTES AUXILIARES ---------------- */
.package-step { margin-top:10px; border:1px solid var(--gc-line); border-radius:13px; background:rgba(255,255,255,.018); overflow:hidden; }
.package-step[open] > summary { border-bottom:1px solid var(--gc-line); background:rgba(var(--accent-rgb),.04); }
.package-step-number { display:grid; place-items:center; width:28px; height:28px; border:1px solid color-mix(in srgb,var(--gc-accent),transparent 55%); border-radius:9px; color:var(--gc-accent); font-size:11px; font-weight:900; }
.package-step-copy b,.package-step-copy small { display:block; }
.package-step-copy b { font-size:14px; }
.package-step-copy small { margin-top:2px; color:var(--gc-muted); font-size:11px; }
.package-step-content { padding:14px; }
.package-services-builder,.package-exclusive-builder { padding:12px; border:1px solid var(--gc-line); border-radius:12px; background:rgba(0,0,0,.10); }
.package-service-list,.package-exclusive-list { display:grid; gap:8px; }
.package-service-item,.package-exclusive-row { display:grid; grid-template-columns:minmax(0,1fr) 110px 110px auto; gap:8px; align-items:center; padding:9px; border:1px solid var(--gc-line); border-radius:11px; background:rgba(255,255,255,.018); }
.package-logic-note,.gc-mode-detail,.gc-modelo-vitrine-status,.closing-note { margin:8px 0; padding:10px 12px; border:1px solid color-mix(in srgb,var(--gc-accent),transparent 66%); border-radius:11px; background:rgba(var(--accent-rgb),.04); color:var(--gc-muted); font-size:12px; }
.package-logic-note b,.package-logic-note small { display:block; }
.package-logic-note b { color:var(--gc-text); }
.package-logic-note small { margin-top:3px; line-height:1.4; }
.package-progress { overflow:hidden; height:7px; border-radius:99px; background:rgba(255,255,255,.07); }
.package-progress-bar { height:100%; border-radius:inherit; background:var(--gc-accent); }

.payroll-card-row { display:grid; width:100%; gap:9px; }
.payroll-card-row + .payroll-card-row { margin-top:10px; }
.payroll-brief-card { width:100%; min-width:0; overflow:hidden; padding:0; border-color:color-mix(in srgb,var(--gc-accent),var(--gc-border) 72%) !important; background:linear-gradient(145deg,var(--gc-surface),color-mix(in srgb,var(--gc-surface-raised),#000 8%)) !important; }
.payroll-card-head,.rh-dossier-head { display:flex; align-items:center; justify-content:space-between; gap:18px; padding:16px 18px; border-bottom:1px solid var(--gc-line); background:rgba(255,255,255,.015); }
.payroll-person { display:flex; min-width:0; gap:12px; align-items:center; }
.payroll-avatar { display:grid; flex:0 0 auto; place-items:center; width:48px; height:48px; border:1px solid color-mix(in srgb,var(--gc-accent),transparent 60%); border-radius:14px; background:var(--gc-accent-soft); color:var(--gc-accent-strong); font-size:14px; font-weight:950; }
.payroll-person-copy b,.payroll-person-copy small { display:block; }
.payroll-person-copy { min-width:0; }
.payroll-person-copy b { overflow:hidden; color:var(--gc-text); font-size:15px; text-overflow:ellipsis; white-space:nowrap; }
.payroll-person-copy small { margin-top:3px; color:var(--gc-muted); font-size:11px; }
.payroll-due { display:grid; flex:0 0 auto; justify-items:end; gap:4px; }
.payroll-due span:first-child { padding:4px 7px; border:1px solid rgba(230,185,110,.25); border-radius:99px; background:rgba(230,185,110,.06); font-size:9px; font-weight:900; text-transform:uppercase; }
.payroll-due .accent { font-size:11px; font-weight:850; }
.payroll-metrics,.rh-summary-grid { padding:14px 18px; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.payroll-metrics-archived { grid-template-columns:repeat(5,minmax(0,1fr)); }
.payroll-metric { min-width:0; min-height:92px; padding:13px 14px; }
.payroll-metric strong { font-size:clamp(18px,2vw,23px); }
.payroll-metric small { display:block; margin-top:6px; color:var(--gc-muted); font-size:10px; line-height:1.4; }
.payroll-metric-highlight { border-color:color-mix(in srgb,var(--gc-accent),transparent 55%); background:color-mix(in srgb,var(--gc-accent-soft),var(--gc-surface-raised) 72%); }
.payroll-card-actions,.payroll-main-actions,.rh-dossier-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.payroll-card-actions { display:grid; grid-template-columns:minmax(280px,.72fr) minmax(300px,1fr); padding:14px 18px 16px; border-top:1px solid var(--gc-line); background:rgba(0,0,0,.08); }
.payroll-card-actions-readonly { display:block; }
.payroll-vale-box { display:grid; grid-template-columns:minmax(150px,1fr) auto; align-items:center; gap:8px; margin:0; padding:8px; }
.payroll-vale-box input { min-width:0; }
.payroll-main-actions button { min-height:40px; }
.modal-content:has(.rh-dossier) { width:min(1040px,calc(100vw - 32px)); padding:0; overflow:hidden; }
.rh-dossier { max-height:calc(100dvh - 32px); overflow:auto; border:0 !important; border-radius:inherit; background:var(--gc-surface) !important; }
.rh-dossier-head { position:sticky; z-index:3; top:0; padding:20px 24px; background:color-mix(in srgb,var(--gc-surface-raised),#000 4%); }
.rh-dossier-title > span { color:var(--gc-accent); font-size:9px; font-weight:950; letter-spacing:.16em; }
.rh-dossier-title h2 { margin:4px 0 2px; font-size:24px; }
.rh-dossier-title p { margin:0; color:var(--gc-muted); font-size:11px; }
.rh-dossier-person { display:flex; align-items:center; gap:11px; min-width:0; }
.rh-dossier-avatar { display:grid; flex:0 0 auto; place-items:center; width:46px; height:46px; border:1px solid color-mix(in srgb,var(--gc-accent),transparent 55%); border-radius:14px; background:var(--gc-accent-soft); color:var(--gc-accent-strong); font-size:15px; font-weight:950; }
.rh-dossier-person > div { min-width:0; }
.rh-dossier-person b,.rh-dossier-person small,.rh-dossier-person em { display:block; }
.rh-dossier-person b { overflow:hidden; max-width:320px; font-size:15px; text-overflow:ellipsis; white-space:nowrap; }
.rh-dossier-person small { margin-top:2px; color:var(--gc-muted); font-size:11px; }
.rh-dossier-person em { margin-top:3px; color:var(--gc-accent); font-size:10px; font-style:normal; font-weight:850; text-transform:uppercase; }
.rh-filter-panel { display:grid; grid-template-columns:minmax(150px,1fr) minmax(150px,1fr) auto auto; align-items:end; gap:9px; margin:0; padding:16px 24px; border-bottom:1px solid var(--gc-line); }
.rh-filter-panel > div { min-width:0; }
.rh-filter-panel label { display:block; margin-bottom:5px; color:var(--gc-muted); font-size:10px; font-weight:850; text-transform:uppercase; }
.rh-filter-panel button { min-height:43px; }
#rh-dossier-body { display:grid; gap:14px; padding:18px 24px 12px; }
.rh-period-title { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 13px; border:1px solid var(--gc-line); border-radius:12px; background:rgba(255,255,255,.018); }
.rh-period-title b { color:var(--gc-text); font-size:12px; letter-spacing:0; text-transform:none; }
.rh-summary-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:9px; padding:0; }
.rh-summary-grid > div,.rh-current-balance > div { min-width:0; padding:13px 14px; border:1px solid var(--gc-line); border-radius:12px; background:rgba(255,255,255,.018); }
.rh-summary-grid span,.rh-current-balance span { display:block; color:var(--gc-muted); font-size:10px; line-height:1.35; }
.rh-summary-grid strong { display:block; margin-top:7px; color:var(--gc-text); font-size:20px; }
.rh-current-balance { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; font-weight:850; }
.rh-current-balance b { display:block; margin-top:7px; font-size:18px; }
.rh-current-balance .rh-balance-total { border-color:color-mix(in srgb,var(--gc-accent),transparent 55%); background:var(--gc-accent-soft); }
.rh-current-balance .rh-balance-total b { color:var(--gc-accent-strong); }
.rh-ledger-wrap { overflow:auto; border:1px solid var(--gc-line); border-radius:13px; }
.rh-ledger { width:100%; min-width:720px; border-collapse:collapse; table-layout:fixed; }
.rh-ledger .rh-col-date { width:130px; }
.rh-ledger .rh-col-type { width:180px; }
.rh-ledger .rh-col-value { width:125px; }
.rh-ledger th { padding:11px 13px; border-bottom:1px solid var(--gc-line); color:var(--gc-muted); font-size:9px; font-weight:900; letter-spacing:.09em; text-align:left; text-transform:uppercase; }
.rh-ledger td { padding:13px; border-bottom:1px solid var(--gc-line-soft); vertical-align:top; }
.rh-ledger tbody tr:last-child td { border-bottom:0; }
.rh-ledger td b,.rh-ledger td small { display:block; }
.rh-ledger td b { overflow-wrap:anywhere; font-size:12px; }
.rh-ledger td small { margin-top:4px; color:var(--gc-muted); font-size:10px; line-height:1.4; }
.rh-event-type { display:inline-flex; padding:5px 8px; border:1px solid var(--gc-line); border-radius:99px; color:var(--gc-text); font-size:9px; font-weight:850; }
.rh-event-type.service,.rh-event-type.payment { border-color:rgba(108,197,159,.28); background:rgba(108,197,159,.06); color:#9ee0c0; }
.rh-event-type.appointment { border-color:color-mix(in srgb,var(--gc-accent),transparent 60%); background:var(--gc-accent-soft); color:var(--gc-accent-strong); }
.rh-event-type.vale,.rh-event-value.negative,.rh-event-type.absence { color:#ffc0c6; }
.rh-event-value { font-size:12px; font-weight:900; white-space:nowrap; }
.rh-history-note { margin:0; padding:0 2px; line-height:1.5; }
.rh-dossier-actions { position:sticky; z-index:3; bottom:0; padding:13px 24px; border-top:1px solid var(--gc-line); background:color-mix(in srgb,var(--gc-surface-raised),#000 4%); }

.fidelity-scroll { overflow:auto; }
.fidelity-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; padding:10px; border-bottom:1px solid var(--gc-line-soft); }
.fidelity-empty,.employee-empty-state,.internal-stock-empty { padding:16px; border:1px dashed var(--gc-line); border-radius:12px; color:var(--gc-muted); text-align:center; }
.fidelity-empty b,.fidelity-empty small,.employee-empty-state b,.employee-empty-state small,.internal-stock-empty b,.internal-stock-empty small { display:block; }
.fidelity-empty small,.employee-empty-state small,.internal-stock-empty small { margin-top:3px; font-size:11px; }

#view-historico .gc5-event-history table { color:var(--gc-text); }
#view-historico .gc5-event-history th { color:var(--gc-text); }
#view-historico .gc5-event-history td { color:var(--gc-text); vertical-align:top; }
#view-historico .gc5-event-history td small { display:inline-block; margin-top:2px; color:var(--gc-text-muted); }

/* ---------------- ISOLAMENTO PÚBLICO ---------------- */
body:not(.public-catalog-mode) #public-catalog-screen { display:none !important; }
body.public-catalog-mode > #login-screen,
body.public-catalog-mode > .mobile-header,
body.public-catalog-mode > .menu-overlay,
body.public-catalog-mode > #sidebar,
body.public-catalog-mode > main,
body.public-catalog-mode > .notification-popover,
.notification-master-source,body.public-catalog-mode > .notification-master-source { display:none !important; }

/* ---------------- RESPONSIVO ---------------- */

/* Galerias da fonte comercial: o cadastro de Serviço/Pacote/Produto é a única edição de mídia. */
.gc-source-media-previews { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:8px; min-width:0; }
.gc-source-gallery-item { display:grid; gap:6px; min-width:0; padding:7px; border:1px solid var(--gc-border); border-radius:11px; background:var(--gc-surface); }
.gc-source-gallery-item.is-cover { border-color:color-mix(in srgb,var(--gc-accent),transparent 40%); }
.gc-source-gallery-item img { display:block; width:100%; aspect-ratio:3/2; object-fit:cover; border-radius:8px; background:var(--gc-page); }
.gc-source-gallery-meta { display:flex; align-items:center; justify-content:space-between; gap:6px; color:var(--gc-text-muted); font-size:10px; }
.gc-source-gallery-actions { display:flex; flex-wrap:wrap; gap:5px; }
.gc-source-gallery-actions button { flex:1 1 auto; min-width:34px; min-height:32px; padding:5px 7px; }
.gc-source-gallery-empty { grid-column:1/-1; padding:11px; border:1px dashed var(--gc-border); border-radius:10px; color:var(--gc-text-muted); font-size:11px; text-align:center; }

@media (max-width:1180px) {
  .catalog-admin-items,.gc-commerce-card-grid,.gc-module-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .master-location-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); }
  .metric-strip,.gc-vitrine-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .master-filter-panel { grid-template-columns:repeat(6,minmax(0,1fr)); }
}

@media (max-width:768px) {
  #sidebar { position:fixed; left:0; top:0; width:min(86vw,var(--gc-sidebar)); transform:translateX(-102%); box-shadow:none; }
  #sidebar.open,#sidebar.mobile-open,.menu-open #sidebar,body.menu-open #sidebar,body.menu-mobile-open #sidebar { transform:translateX(0); }
  .mobile-header { display:flex; position:fixed; z-index:900; left:0; right:0; top:0; height:62px; align-items:center; justify-content:space-between; gap:10px; padding:10px 14px; border-bottom:1px solid var(--gc-line); background:var(--gc-surface); }
  .mobile-brand { display:flex; align-items:center; gap:10px; }
  .mobile-brand-mark { display:grid; place-items:center; width:38px; height:38px; border-radius:12px; background:var(--gc-accent); color:var(--button-ink); font-weight:950; }
  .mobile-brand-image { object-fit:contain; padding:3px; background:var(--gc-field); border:1px solid var(--gc-line); }
  .mobile-brand-copy b,.mobile-brand-copy small { display:block; }
  .mobile-brand-copy small { color:var(--gc-muted); font-size:10px; }
  .mobile-header-actions { display:flex; gap:7px; }
  .mobile-nav-toolbar { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:7px; }
  .menu-overlay { position:fixed; z-index:950; inset:0; background:rgba(2,4,7,.62); }
  .menu-overlay.open,.menu-overlay.show,.menu-overlay.active { display:block; }
  body:not(.public-catalog-mode) > main { width:100%; height:calc(100dvh - 62px); margin-top:62px; padding:18px 14px 36px; overflow:auto; }
  .control-bar { position:sticky; top:0; z-index:80; min-height:58px; margin:0 0 14px; padding:8px 0 10px; background:var(--gc-page); box-shadow:none; }
  .btn-toggle-menu { display:none !important; }
  .control-bar h1 { font-size:24px; }
  .gc-profile-settings-v3,.communication-section,.catalog-hub,.gc-cover-adjuster-grid { grid-template-columns:1fr; }
  .communication-section { gap:13px; }
  .gc-company-identity-card { order:0; }
  .catalog-hub-guide { order:2; }
  .employee-field-grid,.settings-fields-grid,.gc-company-fields-grid,.catalog-settings-grid,.catalog-config-grid,.gc-order-rule-fields { grid-template-columns:repeat(6,minmax(0,1fr)); }
  .employee-field-grid > div,.settings-fields-grid > div,.gc-company-fields-grid > div,.payment-grid > div,.catalog-config-grid > div,.gc-order-rule-fields > div { grid-column:span 3; }
  .master-filter-panel { grid-template-columns:repeat(6,minmax(0,1fr)); }
  .master-field-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .notification-popover { left:14px; right:14px; top:72px; width:auto; max-height:calc(100dvh - 86px); }
}

@media (max-width:680px) {
  body:not(.public-catalog-mode) { font-size:14px; }
  body:not(.public-catalog-mode) > main { padding-inline:12px; }
  .control-bar h1 { font-size:22px; }
  .page-heading p { font-size:11px; }
  .day-metrics,.metric-strip,.gc-vitrine-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); padding-inline:14px; }
  .employee-field-grid,.settings-fields-grid,.gc-company-fields-grid,.payment-grid,.catalog-settings-grid,.catalog-config-grid,.gc-order-rule-fields,.pix-fields-grid,.catalog-service-form,.catalog-sale-product-form,.catalog-visual-only-form,.gc-commission-list,.permission-summary,.contract-grid,.access-grid,.gc-master-resource-body,.master-filter-panel,.master-location-summary,.rh-filter-panel { grid-template-columns:1fr; }
  .employee-field-grid > div,.settings-fields-grid > div,.gc-company-fields-grid > div,.payment-grid > div,.catalog-config-grid > div,.gc-order-rule-fields > div,.catalog-service-form > div:not(.catalog-wide),.catalog-sale-product-form > div:not(.catalog-wide),.catalog-visual-only-form > div:not(.catalog-wide),.master-filter-panel > div:not(.master-field-picker):not(.master-export-actions) { grid-column:1/-1; }
  .catalog-admin-items,.gc-commerce-card-grid,.gc-module-grid,.gc-gallery-grid,.gc-demo-gallery-grid { grid-template-columns:1fr; }
  .payroll-metrics,.rh-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .payroll-metrics-archived { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .payroll-card-actions { grid-template-columns:1fr; }
  .finance-team-section { padding:10px; }
  .finance-team-table table { min-width:0; }
  .finance-team-table thead { display:none; }
  .finance-team-table tbody,.finance-team-table tr,.finance-team-table td { display:block; width:100%; }
  .finance-team-table td { padding:0; border:0; }
  .internal-stock-form { grid-template-columns:1fr; }
  .internal-stock-form-head { grid-column:auto; }
  .internal-stock-grid { grid-template-columns:1fr; }
  .dashboard-grid { grid-template-columns:1fr 1fr; }
  .dashboard-grid .card { min-height:78px; }
  .gc-client-vehicle-row,.package-service-item,.package-exclusive-row { grid-template-columns:1fr; }
  .catalog-admin-card { grid-template-columns:78px minmax(0,1fr); }
  .catalog-admin-thumb { width:78px; height:70px; }
  .gc-theme-grid-v3 { grid-template-columns:1fr 1fr; }
  .gc-company-identity-body,.gc-profile-photo-body { grid-template-columns:1fr; }
  .master-field-grid { grid-template-columns:1fr 1fr; }
  .history-competence-tool,.danger-zone { margin-left:0; width:100%; }
  .history-competence-body,.danger-zone-body { min-width:0; }
  .gc-agenda-unificada-head { align-items:stretch; flex-direction:column; }
  .gc-agenda-unificada-tools { width:100%; min-width:0; }
  .gc-attendance-main { grid-template-columns:1fr; gap:9px; }
  .gc-attendance-meta { justify-items:start; text-align:left; }
  .gc-attendance-actions > summary,.gc-attendance-actions > div { justify-content:flex-start; }
  .gc-attendance-actions > div button { flex:1 1 180px; }
}

@media (max-width:440px) {
  .gc-attendance-actions > div button { flex:1 1 100%; width:100%; }
  .gc-agenda-unificada-list { padding:8px; }
  .gc-agenda-pagination { align-items:stretch; flex-direction:column; position:static; }
  .gc-agenda-pagination > div { justify-content:space-between; }

  .login-box { padding:23px 18px; }
  .day-metrics,.metric-strip,.dashboard-grid,.payroll-metrics,.rh-summary-grid,.gc-vitrine-kpis { grid-template-columns:1fr; }
  .master-field-grid { grid-template-columns:1fr; }
  .form-actions > button,.service-form-actions > button,.employee-form-actions > button,.communication-actions > button { flex:1 1 100%; }
}

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

/* ---------------- COBERTURA DE COMPONENTES FUNCIONAIS ---------------- */
/* Modificadores de botão usados em várias rotinas */
.btn-view,.btn-edit,.btn-print,.btn-reminder,.btn-cancel,.btn-modal-print,.btn-modal-download,.btn-modal-whatsapp,.btn-close-month,.btn-toggle-columns,.catalog-agenda-action,.gc-upload-button {
  min-height:36px;
  padding:7px 10px;
  font-size:12px;
}
.btn-view,.btn-edit { background:var(--gc-surface-raised); }
.btn-print,.btn-modal-print,.btn-modal-download { border-color:rgba(124,188,232,.34); color:#b8dcf3; background:rgba(124,188,232,.07); }
.btn-reminder,.btn-modal-whatsapp { border-color:rgba(56,211,124,.34); color:#aef1c9; background:rgba(56,211,124,.07); }
.btn-cancel { color:var(--gc-text-muted); }
.btn-close-month { border-color:rgba(231,179,91,.35); color:#f0cc89; background:rgba(231,179,91,.07); }

/* Agenda: campos especiais e cabeçalho da listagem */

/* Clientes */
.cliente-veiculos-wide { grid-column:1/-1; }
.compact-field { max-width:230px; }

/* Catálogo / Vitrine administrativa */
.catalog-brand-grid { display:grid; grid-template-columns:220px minmax(0,1fr); gap:14px; }
.catalog-brand-studio,.catalog-config-block,.catalog-editor-panel { padding:14px; border:1px solid var(--gc-line); border-radius:14px; background:rgba(255,255,255,.018); }
.catalog-create-panel { margin:12px 0; padding:0; overflow:hidden; box-shadow:none; }
.catalog-create-panel > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:58px; padding:12px 14px; list-style:none; color:var(--gc-text); cursor:pointer; }
.catalog-create-panel > summary::-webkit-details-marker,.catalog-create-panel > summary::marker { display:none; content:''; }
.catalog-create-panel > summary > span { display:flex; flex:1 1 auto; align-items:center; gap:8px; min-width:0; }
.catalog-create-panel > summary > span > span,.catalog-create-panel > summary b,.catalog-create-panel > summary small { display:block; }
.catalog-create-panel > summary small { margin-top:2px; color:var(--gc-muted); font-size:10px; }
.catalog-create-panel > summary > i:last-child { flex:0 0 auto; color:var(--gc-muted-2); transition:transform .18s ease; }
.catalog-create-panel[open] > summary { border-bottom:1px solid var(--gc-line); background:rgba(var(--accent-rgb),.045); }
.catalog-create-panel[open] > summary > i:last-child { transform:rotate(180deg); }
.catalog-create-panel-body { padding:14px; }
.catalog-page-header-note { margin:-6px 0 14px; color:var(--gc-muted); font-size:13px; }
.catalog-admin-badges { display:flex; align-items:center; justify-content:flex-end; gap:6px; flex-wrap:wrap; }
.catalog-admin-thumb-empty { display:grid; place-items:center; width:100%; height:100%; color:var(--gc-muted); font-size:11px; text-align:center; }
.catalog-item-photo-preview { width:100%; max-height:230px; object-fit:cover; border-radius:12px; }
.catalog-check,.catalog-publish-toggle { display:flex; align-items:center; gap:9px; min-height:44px; padding:9px 10px; border:1px solid var(--gc-line); border-radius:11px; background:rgba(255,255,255,.018); }
.catalog-check > span,.catalog-publish-toggle > span,.gc-commission-item > span { min-width:0; }
.catalog-check > span > b,.catalog-check > span > small,.catalog-publish-toggle > span > b,.catalog-publish-toggle > span > small,.gc-commission-item > span > b,.gc-commission-item > span > small { display:block; }
.catalog-check > span > small,.catalog-publish-toggle > span > small,.gc-commission-item > span > small { margin-top:2px; color:var(--gc-muted); font-size:11px; line-height:1.35; font-weight:500; }
.catalog-request-actions { display:flex; align-items:center; justify-content:flex-end; gap:7px; flex-wrap:wrap; }
.catalog-sale-form-head { grid-column:1/-1; }
.catalog-sale-form-head h3 { margin:0; font-size:17px; }
.catalog-sale-form-head p { margin:3px 0 0; color:var(--gc-muted); font-size:12px; }
.catalog-status { display:inline-flex; align-items:center; min-height:25px; padding:4px 8px; border:1px solid var(--gc-line); border-radius:99px; color:var(--gc-muted); font-size:11px; font-weight:850; }
.catalog-status.online,.catalog-admin-pill.status-online { color:#9ee0c0; border-color:rgba(108,197,159,.28); background:rgba(108,197,159,.06); }
.catalog-admin-pill.highlight,.highlight { color:#f3cf91; border-color:rgba(230,185,110,.36); background:rgba(230,185,110,.08); }
.catalog-request-actions button { flex:0 0 auto; }

/* Editor de imagem e galeria administrativa */
.gc-cover-adjuster { display:grid; gap:11px; }
.gc-cover-adjuster-head,.gc-gallery-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.gc-cover-adjuster-head h3,.gc-gallery-head h3 { margin:0; font-size:16px; }
.gc-cover-adjuster-head p,.gc-gallery-head p { margin:3px 0 0; color:var(--gc-muted); font-size:12px; }
.gc-cover-adjuster-actions,.gc-gallery-actions { display:flex; gap:7px; flex-wrap:wrap; }
.gc-gallery-input { display:grid; gap:8px; }
.gc-gallery-order,.gc-gallery-status,.gc-media-state,.gc-master-media-state { color:var(--gc-muted); font-size:12px; }
.gc-demo-gallery-note { padding:10px 11px; border:1px solid rgba(var(--accent-rgb),.18); border-radius:11px; background:rgba(var(--accent-rgb),.04); }
.gc-demo-gallery-note b,.gc-demo-gallery-note small { display:block; }
.gc-demo-gallery-note small { margin-top:2px; color:var(--gc-muted); font-size:11px; }
.gc-demo-badge { position:absolute; right:6px; bottom:6px; padding:3px 6px; border-radius:99px; background:var(--gc-accent); color:var(--button-ink); font-size:9px; font-weight:900; }

/* Oferta comercial */
.gc-commerce-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.gc-commerce-card-head span { display:block; color:var(--gc-accent); font-size:10px; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.gc-commerce-card-actions { display:flex; flex-wrap:wrap; gap:7px; }
.gc-commerce-status.internal { border-color:var(--gc-line); color:var(--gc-muted); background:rgba(255,255,255,.02); }
.gc-order-flow,.gc-order-rules { display:grid; gap:9px; }
.gc-order-rule { padding:12px; border:1px solid var(--gc-line); border-radius:12px; background:rgba(255,255,255,.018); }
.gc-order-rule-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.gc-order-rule-head h4 { margin:0; font-size:14px; }
.gc-order-rule-note,.gc-order-hours { color:var(--gc-muted); font-size:12px; }
.gc-order-group-badge { color:var(--gc-accent-strong); font-weight:850; }

/* Serviços e pacotes */
.service-choice-check { display:flex; align-items:center; gap:9px; }
.service-choice-copy b,.service-choice-copy small { display:block; }
.service-choice-copy small { color:var(--gc-muted); font-size:11px; }
.service-selected-config { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin-top:9px; }
.service-price-controls { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.service-final-price { color:var(--gc-accent-strong); font-weight:900; }
.service-vitrine-toggle,.service-vitrine-upload { display:flex; align-items:center; gap:8px; }
.service-vitrine-upload { padding:9px; border:1px dashed var(--gc-line-strong); border-radius:11px; }
.servicos-header-toggle { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.package-workspace { display:grid; gap:10px; }
.package-builder-title { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.package-service-choice { display:flex; align-items:center; gap:8px; }
.package-service-field,.package-unit-field { min-width:0; }
.package-unit-value { color:var(--gc-accent-strong); font-weight:850; }
.package-use-hint,.package-service-balance,.pay-cycle-note,.rh-history-note { color:var(--gc-muted); font-size:11px; }
.gc-package-visual { margin-left:5px; }
.package-status.paid,.paid { color:#9ee0c0; border-color:rgba(108,197,159,.28); background:rgba(108,197,159,.06); }
.package-status.closed,.closed { color:#aeb8c0; border-color:var(--gc-line); background:rgba(255,255,255,.02); }
.package-status.overdue,.overdue { color:#ffc0c6; border-color:rgba(240,120,130,.3); background:rgba(240,120,130,.07); }

/* Equipe / RH */
.employee-password-reset { margin-top:7px; }
.employee-roster-count,.master-result-count { color:var(--gc-muted); font-size:12px; }
.payroll-brief-card-archived,.payroll-card-row-archived { opacity:.68; }
.payroll-due { color:var(--gc-warning); }
.payroll-readonly { color:var(--gc-muted); }
.payroll-vale-box { border:1px solid rgba(240,120,130,.22); border-radius:11px; background:rgba(240,120,130,.045); }
.pay-cycle-badge { display:inline-flex; margin-top:4px; padding:3px 6px; border:1px solid var(--gc-line); border-radius:99px; color:var(--gc-muted); font-size:10px; }
.rh-dossier-person { min-width:0; }
.rh-period-title { color:var(--gc-accent); font-size:11px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }

/* Financeiro / despesas */
.finance-audit-toolbar { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:13px 15px; border-bottom:1px solid var(--gc-line); }
.finance-audit-danger { border-color:rgba(240,120,130,.24); }
.finance-detail-section { padding:0; }
.finance-empty-row td { padding:22px; color:var(--gc-muted); text-align:center; }
.financial-custom-range { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.despesa { color:#ffc0c6; }
.lucro { color:#9ee0c0; }
.receipt-complete-status { color:#9ee0c0; font-weight:850; }

/* Comunicação */
.whatsapp-settings-form { display:grid; gap:12px; }
.communication-pix-section,.communication-message-section { min-width:0; }
.communication-section { display:block; padding:16px; }
.communication-section-head { justify-content:flex-start; margin:0 0 14px; }
.communication-section-head > div { min-width:0; }
.communication-pix-section:not(.gc-pix-compact-card) { display:grid; grid-template-columns:minmax(250px,.78fr) minmax(0,2fr); gap:18px; align-items:center; }
.communication-pix-section:not(.gc-pix-compact-card) .communication-section-head { margin:0; }
.pix-symbol { display:inline-flex; align-items:center; justify-content:center; gap:6px; flex:0 0 auto; min-width:58px; height:48px; padding:0 10px; border:1px solid rgba(55,211,151,.32); border-radius:14px; background:rgba(55,211,151,.08); color:#62dfa9; }
.pix-symbol > i { font-size:22px; line-height:1; }
.pix-symbol b { font-size:13px; letter-spacing:-.03em; }
.pix-fields-grid { grid-template-columns:minmax(150px,.7fr) minmax(210px,1.15fr) minmax(210px,1.15fr); }
.template-token-list { display:flex; flex-wrap:wrap; gap:6px; }
.template-token-list code,.template-required-note { padding:4px 7px; border:1px solid var(--gc-line); border-radius:8px; background:rgba(255,255,255,.02); color:var(--gc-muted); font-size:11px; }
.template-required { color:var(--gc-warning); }

/* Perfil / temas */
.settings-profile-copy h3 { margin:0; font-size:16px; }
.settings-profile-copy p,.profile-cloud-note,.gc-platform-experience-note { margin:4px 0 0; color:var(--gc-muted); font-size:12px; }
.settings-theme-studio,.gc-theme-studio-v3,.gc-settings-box { padding:14px; border:1px solid var(--gc-line); border-radius:14px; background:rgba(255,255,255,.018); }
.gc-theme-title-row { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.gc-color-pair { display:flex; gap:5px; }
.gc-color-pair i { width:18px; height:18px; border-radius:50%; border:1px solid rgba(255,255,255,.16); }
.gc-settings-hero-status { color:var(--gc-muted); font-size:12px; }
.theme-picker-inline.gc-theme-grid-v3 { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:8px; }

/* Master */
.master-company { min-width:0; }
.master-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.master-detail-grid > div { padding:10px; border:1px solid var(--gc-line); border-radius:11px; background:rgba(255,255,255,.018); }
.master-notification-message { grid-column:1/-1; }
.gc-master-resource-actions { display:flex; justify-content:flex-end; gap:7px; flex-wrap:wrap; }
.gc-master-range { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; align-items:center; }
.gc-master-resource-company { color:var(--gc-muted); font-size:12px; }
.gc-master-resource-summary b,.gc-master-resource-summary small { display:block; }
.gc-master-resource-summary small { color:var(--gc-muted); font-size:11px; }
.gc-master-switch { display:flex !important; align-items:center !important; gap:8px; }

/* Histórico / documentos */
.history-admin-actions { align-self:center; }
.document-brand-copy b,.document-brand-copy small,.document-brand-meta b,.document-brand-meta small { display:block; }
.document-brand-copy small,.document-brand-meta small { color:var(--gc-muted); font-size:11px; }
.btn-modal-group { display:flex; justify-content:flex-end; gap:8px; flex-wrap:wrap; }
.fidelity-controls { display:grid; grid-template-columns:1fr 1fr auto; gap:8px; align-items:end; }
.modal-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.notice-delete-mini { width:32px !important; min-width:32px !important; height:32px !important; padding:0 !important; }

/* Paginação */
.pagination-bar {
  display:none;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:12px;
  margin:12px 0 18px;
  padding:10px 12px;
  border:1px solid var(--gc-line);
  border-radius:12px;
  background:rgba(255,255,255,.018);
}
.pagination-bar.show { display:grid; }
.pagination-info,.pagination-size { color:var(--gc-muted); font-size:12px; }
.pagination-size { width:auto !important; min-height:32px !important; padding:5px 28px 5px 9px !important; }
.pagination-actions,.gc-compact-pagination,#gc-catalog-pagination { display:flex; align-items:center; justify-content:center; gap:7px; }
.pagination-actions { margin:0; }
.pagination-actions button,.gc-compact-pagination > button { width:32px; min-width:32px; height:32px; min-height:32px !important; padding:0 !important; border-radius:9px !important; font-size:12px !important; }
.pagination-bar.single-page .pagination-actions,.pagination-bar.single-page .pagination-size { display:none; }
.gc-compact-pagination,#gc-catalog-pagination { margin-top:12px; padding:10px 12px; border:1px solid var(--gc-line); border-radius:12px; background:rgba(255,255,255,.018); }
.gc-compact-pagination > span { min-width:92px; color:var(--gc-muted); font-size:11px; text-align:center; }
.gc-compact-pagination > span b,.gc-compact-pagination > span small { display:block; }
#gc-catalog-pagination { justify-content:space-between; margin-bottom:14px; }
#gc-catalog-pagination small { color:var(--gc-muted); font-size:11px; text-align:center; }

@media (max-width:920px) {
  .catalog-brand-grid { grid-template-columns:1fr; }
  .service-selected-config { grid-template-columns:1fr 1fr; }
  .fidelity-controls { grid-template-columns:1fr 1fr; }
  .fidelity-controls button { grid-column:1/-1; }
}
@media (max-width:680px) {
  .catalog-brand-grid,.service-selected-config,.service-price-controls,.financial-custom-range,.master-detail-grid,.modal-form-grid,.fidelity-controls { grid-template-columns:1fr; }
  .catalog-admin-badges { justify-content:flex-start; }
  .gc-cover-adjuster-head,.gc-gallery-head,.servicos-header-toggle { flex-direction:column; align-items:flex-start; }
  .pagination-bar { grid-template-columns:minmax(0,1fr) auto; }
  .pagination-actions { grid-column:1/-1; justify-content:flex-start; }
  #gc-catalog-pagination { flex-wrap:wrap; }
  #gc-catalog-pagination small { order:-1; width:100%; }
}

/* ---------------- COBERTURA FINAL SEM CAMADAS PARALELAS ---------------- */
.col-opcional { color:var(--gc-muted); font-size:11px; font-weight:650; }
.gc-address-street { grid-column:span 8; }
.gc-extra-vehicle-label { color:var(--gc-muted); font-size:12px; }
.gc-extra-vehicle-model,.gc-extra-vehicle-plate { min-width:0; }
.internal-stock-form-compact { grid-template-columns:minmax(260px,1.8fr) minmax(150px,.55fr) minmax(170px,.65fr) auto; }
.painel-retratil-comissoes { border:1px solid var(--gc-line); border-radius:14px; background:rgba(255,255,255,.018); }
.painel-retratil-comissoes > summary { padding:12px 14px; cursor:pointer; font-weight:850; }
.menu-toggle,.mobile-nav-close {
  min-height:40px !important;
  padding:8px 11px !important;
  border:1px solid var(--gc-line) !important;
  border-radius:11px !important;
  background:rgba(255,255,255,.04) !important;
  color:var(--gc-text) !important;
  box-shadow:none !important;
  font-size:12px !important;
  font-weight:850 !important;
}
.mobile-nav-close { width:38px; min-width:38px; padding:0 !important; font-size:19px !important; }
@media (max-width:680px) {
  .gc-address-street { grid-column:auto; }
  .internal-stock-form-compact { grid-template-columns:1fr; }
  .theme-picker-inline.gc-theme-grid-v3 { grid-template-columns:1fr 1fr; }
}
@media (min-width:681px) and (max-width:920px) {
  .gc-address-street { grid-column:1/-1; }
}

/* ---------------- FORMULÁRIOS PRINCIPAIS POR FUNÇÃO ---------------- */
#form-cliente,
#form-funcionario,
#form-despesa {
  margin-bottom:14px;
  padding:13px;
  border:1px solid var(--gc-line);
  border-radius:var(--gc-radius);
  background:var(--gc-surface);
  box-shadow:none;
}
#form-cliente {
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:10px;
}
#form-cliente > div { min-width:0; }
#form-cliente > div:not(.cliente-veiculos-wide):not(.client-form-actions) { grid-column:span 3; }
#form-cliente > div:nth-of-type(1),#form-cliente > div:nth-of-type(3),#form-cliente > div:nth-of-type(5) { grid-column:span 4; }
#form-cliente > div:nth-of-type(2),#form-cliente > div:nth-of-type(4),#form-cliente > div:nth-of-type(6) { grid-column:span 2; }
#form-cliente .cliente-veiculos-wide,
#form-cliente .client-form-actions { grid-column:1/-1; }
#form-funcionario { display:grid; gap:13px; }
#form-funcionario > .employee-form-intro,
#form-funcionario > .employee-form-group,
#form-funcionario > .gc-compact-toggle,
#form-funcionario > .gc-commission-panel,
#form-funcionario > .employee-form-actions { width:100%; }
#form-despesa {
  display:grid;
  grid-template-columns:minmax(260px,1.8fr) minmax(160px,.6fr) auto;
  gap:10px;
  align-items:end;
}
#form-despesa > div { min-width:0; }
#form-despesa > button { min-width:150px; }
#form-pacote {
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(180px,.6fr);
  gap:12px;
  margin-bottom:16px;
  padding-bottom:16px;
  border-bottom:1px solid var(--gc-line);
}
#form-pacote > div { min-width:0; }
#form-pacote > div:nth-of-type(3),#form-pacote > .package-services-builder,#form-pacote > .form-actions { grid-column:1/-1; }
#form-pacote > .form-actions { margin-top:2px; padding-top:12px; border-top:1px solid var(--gc-line-soft); }
#aviso-faturamento-concluido {
  margin:-8px 0 14px;
  padding:10px 12px;
  border-left:3px solid var(--gc-accent);
  color:var(--gc-muted);
  background:rgba(var(--accent-rgb),.035);
  border-radius:0 10px 10px 0;
  font-size:12px;
}

@media (max-width:920px) {
  .gc-vitrine-sections { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .gc-commission-item { grid-template-columns:auto minmax(0,1fr); }
  .gc-commission-item input[type="number"] { grid-column:1/-1; }
  .gc-vitrine-visual-card { grid-template-columns:1fr; }
  #form-cliente { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #form-cliente > div:not(.cliente-veiculos-wide):not(.client-form-actions),#form-cliente > div:nth-of-type(n) { grid-column:span 1; }
  #form-cliente .cliente-veiculos-wide,#form-cliente .client-form-actions { grid-column:1/-1; }
  #form-despesa { grid-template-columns:1fr 1fr; }
  #form-despesa > button { grid-column:1/-1; justify-self:end; }
}
@media (max-width:680px) {
  .gc-vitrine-sections { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .finance-section-head { flex-direction:column; }
  .payroll-card-head { align-items:flex-start; flex-direction:column; padding:14px; }
  .payroll-due { justify-items:start; }
  .payroll-metrics { padding:12px 14px; }
  .payroll-card-actions { padding:12px 14px 14px; }
  .payroll-vale-box { grid-template-columns:1fr; }
  .payroll-main-actions { display:grid; grid-template-columns:1fr 1fr; width:100%; }
  .payroll-main-actions button { width:100%; }
  #btn-imprimir-folha-geral { width:100%; justify-content:center; }
  .gc-vitrine-sections button { min-height:48px; padding:7px 8px; }
  .gc-vitrine-sections button small { display:none; }
  .gc-vitrine-cover-upload { grid-template-columns:1fr; }
  .gc-vitrine-release-bar { align-items:stretch; }
  .gc-vitrine-release-actions { display:grid; grid-template-columns:1fr; width:100%; }
  .gc-vitrine-release-actions button { width:100%; justify-content:center; }
  #form-cliente,#form-despesa,#form-pacote { grid-template-columns:1fr; padding:14px; }
  #form-cliente > div:not(.cliente-veiculos-wide):not(.client-form-actions),#form-cliente > div:nth-of-type(n),#form-cliente .cliente-veiculos-wide,#form-cliente .client-form-actions,#form-despesa > button { grid-column:auto; }
  #form-pacote > div:nth-of-type(3),#form-pacote > .package-services-builder,#form-pacote > .form-actions { grid-column:auto; }
  #form-despesa > button { width:100%; }
}

/* ---------------- GERECAR 5.0: ESQUELETO POR FUNÇÃO ---------------- */
/* Cada bloco usa a largura do seu conteúdo; nenhum campo depende de margem
   corretiva para parecer proporcional. */
.gc5-sale-desk {
  margin:0 0 14px;
  overflow:hidden;
  border:1px solid var(--gc-line);
  border-radius:var(--gc-radius);
  background:var(--gc-surface);
  box-shadow:none;
}
.gc5-sale-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:15px 17px;
  border-bottom:1px solid var(--gc-line);
  background:var(--gc-surface-raised);
}
.gc5-sale-head span,.gc5-employee-catalog header span,.gc5-client-dossier header span {
  display:block;
  color:var(--gc-accent);
  font-size:9px;
  font-weight:950;
  letter-spacing:.13em;
}
.gc5-sale-head h2,.gc5-employee-catalog h2,.gc5-client-dossier h2 { margin:3px 0 0; font-size:18px; line-height:1.2; }
.gc5-sale-head p,.gc5-employee-catalog header p,.gc5-client-dossier header p { margin:4px 0 0; color:var(--gc-muted); font-size:12px; }
.gc5-sale-source { flex:0 0 auto; display:flex; align-items:center; gap:7px; padding:7px 9px; border:1px solid rgba(var(--accent-rgb),.28); border-radius:99px; color:var(--gc-accent-strong); background:var(--gc-accent-soft); font-size:11px; font-weight:850; }
.gc5-sale-form {
  display:grid;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:10px;
  align-items:end;
  padding:15px 17px;
}
.gc5-sale-form > div { grid-column:span 2; min-width:0; }
.gc5-sale-form > .gc5-field-client { grid-column:span 3; }
.gc5-sale-form > .gc5-field-item { grid-column:span 4; }
.gc5-sale-form > .gc5-field-note { grid-column:span 5; }
.gc5-sale-form label { min-height:17px; }
.gc5-sale-summary {
  grid-column:span 4;
  min-height:64px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-content:center;
  gap:2px 12px;
  padding:10px 13px;
  border:1px solid color-mix(in srgb,var(--gc-accent),transparent 54%);
  border-radius:12px;
  background:var(--gc-accent-soft);
}
.gc5-sale-summary span,.gc5-sale-summary small { color:var(--gc-muted); font-size:11px; }
.gc5-sale-summary strong { grid-row:1/3; grid-column:2; align-self:center; font-size:21px; letter-spacing:-.04em; }
.gc5-sale-summary small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gc5-sale-submit { grid-column:span 3; min-height:64px; border-color:var(--gc-accent); background:linear-gradient(135deg,var(--gc-accent),var(--gc-accent-strong)); color:var(--button-ink); font-size:13px; }
.gc5-commission-rule { margin:0 0 12px; padding:10px 12px; border-left:3px solid var(--gc-accent); border-radius:10px; color:var(--gc-text-muted); background:rgba(255,255,255,.025); font-size:12px; line-height:1.5; }
.gc5-commission-rule b { color:var(--gc-text); }

.gc5-employee-catalog { margin-bottom:14px; padding:15px; border:1px solid var(--gc-line); border-radius:var(--gc-radius); background:var(--gc-surface); }
.gc5-employee-catalog-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:8px; margin-top:12px; }
.gc5-employee-catalog-grid article { min-width:0; padding:11px 12px; border:1px solid var(--gc-line); border-radius:11px; background:rgba(255,255,255,.02); }
.gc5-employee-catalog-grid article > span { color:var(--gc-accent); font-size:9px; font-weight:900; letter-spacing:.1em; }
.gc5-employee-catalog-grid article > b { display:block; margin:4px 0 9px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.gc5-employee-catalog-grid article > div { display:flex; align-items:end; justify-content:space-between; gap:8px; }
.gc5-employee-catalog-grid small { color:var(--gc-muted); }

.gc5-document-header { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:18px; align-items:start; margin:-2px 0 18px; padding:0 0 14px; border-bottom:2px solid var(--gc-line-strong); color:var(--gc-text); }
.gc5-document-header span { color:var(--gc-accent); font-size:9px; font-weight:900; letter-spacing:.15em; }
.gc5-document-header h2 { margin:3px 0; font-size:19px; }
.gc5-document-header p { margin:0; color:var(--gc-muted); font-size:11px; }
.gc5-document-header > div:last-child { display:grid; gap:2px; text-align:right; }
.gc5-document-header small { color:var(--gc-muted); font-size:10px; }
.gc5-document-body { color:var(--gc-text); }
.gc5-document-total { display:flex; align-items:center; justify-content:space-between; font-size:18px; }
.gc5-document-actions { display:flex; justify-content:flex-end; gap:8px; flex-wrap:wrap; margin-top:18px; }
.gc5-client-dossier { color:var(--gc-text); }
.gc5-client-dossier > header { display:flex; align-items:start; justify-content:space-between; gap:16px; }
.gc5-client-status { padding:6px 9px; border:1px solid var(--gc-line-strong); border-radius:99px; font-size:11px; }
.gc5-client-metrics { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:7px; margin:13px 0; }
.gc5-client-metrics > div { padding:9px; border:1px solid var(--gc-line); border-radius:9px; background:rgba(255,255,255,.025); }
.gc5-client-metrics span,.gc5-client-metrics b { display:block; }
.gc5-client-metrics span { color:var(--gc-muted); font-size:10px; }
.gc5-client-events { display:grid; gap:6px; }
.gc5-client-events article { display:grid; grid-template-columns:130px minmax(0,1fr) auto; gap:12px; align-items:center; padding:9px 0; border-bottom:1px solid var(--gc-line-soft); }
.gc5-client-events time,.gc5-client-events small { color:var(--gc-muted); font-size:10px; }
.gc5-client-events span,.gc5-client-events b,.gc5-client-events small { display:block; }

.gc5-event-history { margin-bottom:14px; overflow:hidden; border:1px solid var(--gc-line); border-radius:var(--gc-radius); background:var(--gc-surface); }
.gc5-event-history > header { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:13px 15px; border-bottom:1px solid var(--gc-line); }
.gc5-event-history > header span { color:var(--gc-accent); font-size:9px; font-weight:950; letter-spacing:.13em; }
.gc5-event-history > header h2 { margin:3px 0 0; font-size:17px; }
.gc5-event-history > header p { margin:3px 0 0; color:var(--gc-muted); font-size:11px; }
.gc5-event-filters { display:grid; grid-template-columns:160px 160px minmax(220px,1fr); gap:8px; padding:10px 15px; border-bottom:1px solid var(--gc-line-soft); }
.gc5-event-history .table-container { border:0; border-radius:0; }

/* Master enxuto: indicadores baixos e filtros com tamanhos semânticos. */
#view-master .metric-strip { grid-template-columns:repeat(6,minmax(100px,1fr)); padding:0; margin-bottom:10px; }
#view-master .metric-mini { min-height:58px; padding:9px 10px; }
#view-master .metric-mini strong { font-size:17px; }
#view-master .master-filter-panel { display:grid; grid-template-columns:2fr repeat(6,minmax(105px,1fr)); gap:8px; padding:11px; }
#view-master .master-field-picker,#view-master .master-export-actions { grid-column:1/-1; }
#view-master .master-field-picker { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; padding-top:9px; border-top:1px solid var(--gc-line-soft); }
#view-master .master-field-picker > label { margin:0; white-space:nowrap; }
#view-master .master-field-grid { display:flex; align-items:center; gap:7px 12px; flex-wrap:wrap; }
#view-master .master-field-grid label { display:flex; align-items:center; gap:5px; margin:0; color:var(--gc-muted); font-size:11px; }
#view-master .master-field-presets { display:flex; gap:5px; flex-wrap:wrap; }
#view-master .master-export-actions { margin-top:0; padding-top:9px; border-top:1px solid var(--gc-line-soft); }
#view-master .master-location-summary { gap:7px; margin:9px 0; }

/* Respiro obrigatório nas bordas e ações consistentes. */
.sidebar-account { min-height:76px; padding-block:11px; }
.profile-company { min-height:17px; padding:0 0 2px; }
.form-actions,.service-form-actions,.employee-form-actions,.catalog-save-bar { padding-bottom:2px; }
.view-section > :last-child { margin-bottom:8px; }

@media (max-width:1180px) {
  .gc5-sale-form > div { grid-column:span 3; }
  .gc5-sale-form > .gc5-field-client,.gc5-sale-form > .gc5-field-item,.gc5-sale-form > .gc5-field-note { grid-column:span 6; }
  .gc5-sale-summary { grid-column:span 7; }
  .gc5-sale-submit { grid-column:span 5; }
  #view-master .metric-strip { grid-template-columns:repeat(3,minmax(0,1fr)); }
  #view-master .master-filter-panel { grid-template-columns:repeat(3,minmax(0,1fr)); }
  #view-master .master-filter-panel > div:first-child { grid-column:span 2; }
}
@media (max-width:768px) {
  body:not(.public-catalog-mode) > main { padding-inline:13px; overflow-x:clip; }
  .catalog-hub-main > h2,.gc-vitrine-hub-copy > h2 { font-size:clamp(27px,8.8vw,38px); line-height:1.02; }
  .gc-vitrine-base-summary { width:100%; }
  .employee-roster-section,.finance-team-section { padding:13px; }
  .gc-vitrine-cover-upload .gc-cover-stage { min-height:190px; height:190px; }
  .gc-cover-public-copy { left:14px; right:14px; bottom:13px; }
  .gc-cover-public-copy strong { max-width:100%; font-size:22px; }
  .view-section,.view-section > * { min-width:0; }
  .modal { padding:12px; }
  .modal-content { width:100%; max-height:calc(100dvh - 24px); padding:15px; border-radius:13px; }
  .modal-content:has(.rh-dossier) { width:100%; padding:0; }
  .rh-dossier-head { position:static; align-items:flex-start; padding:17px; }
  .rh-dossier-person { max-width:55%; }
  .rh-filter-panel { grid-template-columns:1fr 1fr; padding:14px 17px; }
  .rh-filter-panel button { width:100%; }
  #rh-dossier-body { padding:15px 17px 10px; }
  .rh-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rh-current-balance { grid-template-columns:1fr; }
  .rh-ledger-wrap { overflow:visible; border:0; }
  .rh-ledger { display:block; min-width:0; }
  .rh-ledger colgroup,.rh-ledger thead { display:none; }
  .rh-ledger tbody { display:grid; gap:9px; }
  .rh-ledger tr { display:block; padding:10px 12px; border:1px solid var(--gc-line); border-radius:12px; background:rgba(255,255,255,.015); }
  .rh-ledger td { display:grid; grid-template-columns:minmax(88px,.32fr) minmax(0,1fr); gap:10px; width:100%; padding:6px 0; border:0; }
  .rh-ledger td::before { content:attr(data-label); color:var(--gc-muted); font-size:9px; font-weight:900; letter-spacing:.06em; text-transform:uppercase; }
  .rh-ledger td.empty-state { display:block; text-align:center; }
  .rh-ledger td.empty-state::before { content:none; }
  .rh-event-value { white-space:normal; }
  .rh-dossier-actions { padding:12px 17px; }
  .gc5-document-actions { justify-content:stretch; }
  .gc5-document-actions > button { flex:1 1 140px; }
  .gc-message-template-workspace { grid-template-columns:1fr; }
  .gc-message-editor textarea { min-height:180px; max-height:none; }
  .gc5-sale-head { align-items:flex-start; }
  .gc5-sale-source { display:none; }
  .gc5-sale-form { grid-template-columns:repeat(2,minmax(0,1fr)); padding:13px; }
  .gc5-sale-form > div,.gc5-sale-form > .gc5-field-client,.gc5-sale-form > .gc5-field-item,.gc5-sale-form > .gc5-field-note { grid-column:span 1; }
  .gc5-sale-form > .gc5-field-client,.gc5-sale-form > .gc5-field-item,.gc5-sale-form > .gc5-field-note,.gc5-sale-summary,.gc5-sale-submit { grid-column:1/-1; }
  .gc5-sale-submit { min-height:48px; }
  .gc5-offer-media { grid-template-columns:1fr; }
  .gc5-offer-media > label:first-child,.gc5-offer-media > input[type="file"],.gc5-offer-media > .catalog-check { grid-column:1; grid-row:auto; }
  .gc-source-media-head { align-items:flex-start; flex-direction:column; gap:3px; }
  .gc-source-media-head > small { text-align:left; }
  .communication-pix-section:not(.gc-pix-compact-card) { grid-template-columns:1fr; gap:14px; }
  .pix-fields-grid { grid-template-columns:1fr; }
  .communication-pix-section:not(.gc-pix-compact-card) .communication-section-head { margin-bottom:0; }
  #form-pacote { grid-template-columns:1fr; }
  #form-pacote > div:not(.catalog-wide):not(.package-services-builder):not(.form-actions):not(.gc5-offer-media):not(.gc5-package-reference),#form-pacote > .package-services-builder,#form-pacote > .gc5-offer-media,#form-pacote > .gc5-package-reference,#form-pacote > .form-actions { grid-column:1; }
  .gc5-client-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .gc5-client-events article { grid-template-columns:1fr auto; }
  .gc5-client-events time { grid-column:1/-1; }
  .gc5-event-filters { grid-template-columns:1fr 1fr; }
  .gc5-event-filters .wide { grid-column:1/-1; }
  #view-historico .gc5-event-history .table-container { overflow:visible; }
  #view-historico .gc5-event-history table { display:block; min-width:0; }
  #view-historico .gc5-event-history thead { display:none; }
  #view-historico .gc5-event-history tbody { display:grid; gap:10px; padding:10px; }
  #view-historico .gc5-event-history tr { display:block; padding:10px 12px; border:1px solid var(--gc-line); border-radius:12px; background:rgba(255,255,255,.015); }
  #view-historico .gc5-event-history td { display:grid; grid-template-columns:minmax(82px,.34fr) minmax(0,1fr); gap:10px; width:100%; padding:6px 0; border:0; background:none; }
  #view-historico .gc5-event-history td::before { content:attr(data-label); color:var(--gc-text-muted); font-size:9px; font-weight:900; letter-spacing:.06em; text-transform:uppercase; }
  #view-historico .gc5-event-history td.empty-state { display:block; text-align:center; }
  #view-historico .gc5-event-history td.empty-state::before { content:none; }
  #view-master .master-field-picker { grid-template-columns:1fr; align-items:start; }
}
@media (max-width:520px) {
  .gc-source-media-previews { grid-template-columns:1fr; }


  body:not(.public-catalog-mode) :is(.form-actions,.service-form-actions,.client-form-actions,.employee-form-actions,.internal-stock-form-actions,.catalog-save-bar,.communication-actions,.master-export-actions,.gc-approval-actions) { width:100%; align-items:stretch; }
  body:not(.public-catalog-mode) :is(.form-actions,.service-form-actions,.client-form-actions,.employee-form-actions,.internal-stock-form-actions,.catalog-save-bar,.communication-actions,.master-export-actions,.gc-approval-actions) > button { width:100%; flex:1 1 100%; }
  body:not(.public-catalog-mode) .catalog-hub-actions { display:grid; grid-template-columns:1fr; }
  body:not(.public-catalog-mode) .catalog-hub-actions > button { width:100%; }
  .gc5-sale-form { grid-template-columns:1fr; }
  .gc5-sale-form > div { grid-column:1; }
  .gc5-client-metrics { grid-template-columns:1fr 1fr; }
  .gc5-document-header { grid-template-columns:1fr; }
  .gc5-document-header > div:last-child { text-align:left; }
  .gc5-client-dossier > header { align-items:flex-start; flex-direction:column; }
  .gc5-event-history > header { align-items:flex-start; flex-direction:column; }
  .gc5-event-filters { grid-template-columns:1fr; }
  .gc5-event-filters .wide { grid-column:1; }
  .rh-dossier-head { flex-direction:column; }
  .rh-dossier-person { width:100%; max-width:none; }
  .rh-filter-panel,.rh-summary-grid { grid-template-columns:1fr; }
  .rh-period-title { align-items:flex-start; flex-direction:column; }
  #view-master .metric-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #view-master .master-filter-panel { grid-template-columns:1fr; }
  #view-master .master-filter-panel > div:first-child { grid-column:1; }
}

@media print {
  body * { visibility:hidden !important; }
  #modal-comprovante,#conteudo-comprovante,#rh-dossier-print,#rh-dossier-print * { visibility:visible !important; }
  #modal-comprovante { position:absolute !important; inset:0 !important; display:block !important; padding:0 !important; background:#fff !important; }
  #conteudo-comprovante:has(.rh-dossier) { width:100% !important; max-height:none !important; overflow:visible !important; padding:0 !important; border:0 !important; background:#fff !important; color:#111 !important; }
  .rh-dossier { max-height:none !important; overflow:visible !important; background:#fff !important; color:#111 !important; }
  .rh-dossier-head,.rh-dossier-actions { position:static !important; background:#fff !important; }
  .rh-dossier-head,.rh-filter-panel,.rh-period-title,.rh-summary-grid > div,.rh-current-balance > div,.rh-ledger-wrap,.rh-ledger th,.rh-ledger td { border-color:#d7d7d7 !important; }
  .rh-dossier-title p,.rh-dossier-person small,.rh-summary-grid span,.rh-current-balance span,.rh-ledger td small,.rh-history-note { color:#555 !important; }
  .rh-dossier-person b,.rh-period-title b,.rh-summary-grid strong,.rh-current-balance b,.rh-ledger td b,.rh-ledger th,.rh-event-value { color:#111 !important; }
  .rh-summary-grid,.rh-current-balance { break-inside:avoid; }
  .rh-ledger { min-width:0 !important; }
  .rh-ledger tr { break-inside:avoid; }
  .no-print { display:none !important; }
}

/* ---------------- ACABAMENTO RESPONSIVO 2026-09-21 ----------------
   Mantém o conteúdo legível sem aumentar a largura dos cards.  No celular,
   tabelas de gestão viram cartões e as mídias de identidade preservam o
   enquadramento inteiro da marca. */
@media screen {
  html {
    -webkit-text-size-adjust:100%;
    text-size-adjust:100%;
    touch-action:manipulation;
  }

  body:not(.public-catalog-mode) {
    font-size:15px;
    touch-action:manipulation;
  }

  body:not(.public-catalog-mode) label {
    font-size:13px;
    line-height:1.35;
  }

  body:not(.public-catalog-mode) :where(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),select,textarea) {
    font-size:14px;
    line-height:1.35;
  }

  body:not(.public-catalog-mode) button:not(.profile-notification-button):not(.sidebar-notification-button):not(.mobile-notification-button):not(.btn-toggle-menu):not(.public-top-cart):not(.public-add-cart) {
    font-size:13px;
  }

  body:not(.public-catalog-mode) :where(.section-kicker,.gc-section-kicker,.gc-card-kicker,.catalog-eyebrow,.communication-section-head>div>span,.employee-form-intro span,.finance-section-head>div>span,.premium-kicker) {
    font-size:11px;
  }

  .page-heading p,
  body:not(.public-catalog-mode) :where(.field-status,.profile-cloud-note,.gc-platform-experience-note) {
    font-size:13px;
    line-height:1.45;
  }

  .field-hint,
  .employee-password-help {
    display:block;
    max-width:32rem;
    margin-top:6px;
    color:var(--gc-muted);
    font-size:12px;
    line-height:1.4;
    overflow-wrap:anywhere;
  }

  .employee-password-reset {
    display:block;
    width:max-content;
    max-width:100%;
    margin-top:8px;
  }

  /* A marca é apresentada inteira na configuração, sem o corte de cover. */
  .gc-company-logo-box {
    width:100%;
    min-width:0;
    padding:16px;
    gap:11px;
  }

  .gc-company-logo-copy {
    width:100%;
  }

  .gc-company-logo-copy label {
    font-size:13px;
    font-weight:850;
  }

  .gc-company-logo-copy small {
    font-size:11px;
  }

  .gc-logo-preview {
    width:min(100%,166px);
    height:126px;
    padding:10px;
    border-radius:18px;
    background:linear-gradient(145deg,rgba(255,255,255,.07),var(--gc-field));
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.025);
  }

  .gc-logo-preview img {
    width:100%;
    height:100%;
    padding:3px;
    border-radius:10px;
    object-fit:contain;
    object-position:center;
  }

  .profile-avatar.company-avatar img,
  .company-seal.has-logo img {
    padding:3px;
    object-fit:contain;
    object-position:center;
  }

  .gc-commerce-card {
    min-width:0;
  }

  .gc-commerce-card-head,
  .gc-commerce-card-meta,
  .gc-commerce-card-actions {
    min-width:0;
  }

  .gc-commerce-card-head h4,
  .gc-commerce-card-meta > *,
  .gc-commerce-card p {
    overflow-wrap:anywhere;
  }

  .gc-commerce-card-head > div {
    flex:1 1 auto;
    min-width:0;
  }

  .gc-commerce-card-head h4 {
    line-height:1.25;
  }

  .gc-commerce-card-head > .gc-commerce-status {
    flex:0 1 auto;
    max-width:100%;
    line-height:1.25;
    white-space:normal;
  }

  .gc-commerce-card p {
    margin:0;
    line-height:1.45;
  }

  .catalog-service-form label,
  .catalog-sale-product-form label,
  .catalog-visual-only-form label {
    min-width:0;
    line-height:1.35;
    overflow-wrap:anywhere;
  }

  .gc-source-media-head,
  .gc-source-media-head > * {
    min-width:0;
  }

  .gc-source-media-head > small {
    line-height:1.4;
    overflow-wrap:anywhere;
  }

  .gc-commerce-card-meta {
    row-gap:5px;
    line-height:1.35;
  }

  #view-historico .gc5-event-history,
  #view-historico .gc5-event-history .table-container {
    max-width:100%;
  }

  #view-historico .gc5-event-history td {
    min-width:0;
    overflow-wrap:anywhere;
  }
}

@media screen and (max-width:680px) {
  .page-heading p {
    font-size:13px;
  }

  .gc-company-logo-box {
    padding:15px;
  }

  .gc-logo-preview {
    width:min(100%,220px);
    height:140px;
  }

  .gc-commerce-card {
    gap:9px;
    padding:14px;
  }

  .gc-commerce-card-head {
    align-items:flex-start;
    flex-direction:column;
    gap:7px;
  }

  .gc-commerce-card-head > .gc-commerce-status {
    align-self:flex-start;
  }

  .gc-commerce-card-actions {
    width:100%;
    align-items:stretch;
  }

  .gc-commerce-card-actions > button {
    flex:1 1 120px;
    min-height:42px;
  }

  /* A equipe não força mais uma tabela horizontal no celular. */
  #view-funcionarios .employee-roster-table {
    overflow:visible;
    border:0;
    background:transparent;
  }

  #view-funcionarios .employee-roster-table table {
    display:block;
    min-width:0;
  }

  #view-funcionarios .employee-roster-table thead {
    display:none;
  }

  #view-funcionarios .employee-roster-table tbody {
    display:grid;
    gap:10px;
  }

  #view-funcionarios .employee-roster-table tr {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    padding:13px;
    border:1px solid var(--gc-line);
    border-radius:14px;
    background:var(--gc-surface);
  }

  #view-funcionarios .employee-roster-table td {
    display:grid;
    gap:4px;
    min-width:0;
    padding:0;
    border:0;
    color:var(--gc-text);
    font-size:13px;
    line-height:1.4;
    overflow-wrap:anywhere;
  }

  #view-funcionarios .employee-roster-table td::before {
    color:var(--gc-muted);
    font-size:10px;
    font-weight:900;
    letter-spacing:.07em;
    text-transform:uppercase;
  }

  #view-funcionarios .employee-roster-table td:nth-child(1) {
    grid-column:1/-1;
    padding-bottom:9px;
    border-bottom:1px solid var(--gc-line-soft);
  }

  #view-funcionarios .employee-roster-table td:nth-child(1)::before { content:"Colaborador"; }
  #view-funcionarios .employee-roster-table td:nth-child(2)::before { content:"Acesso"; }
  #view-funcionarios .employee-roster-table td:nth-child(3)::before { content:"Contrato"; }
  #view-funcionarios .employee-roster-table td:nth-child(4)::before { content:"Salário fixo"; }
  #view-funcionarios .employee-roster-table td:nth-child(5)::before { content:"Comissão"; }

  #view-funcionarios .employee-roster-table td:nth-child(6) {
    grid-column:1/-1;
    padding-top:2px;
  }

  #view-funcionarios .employee-roster-table td:nth-child(6)::before { content:"Ações"; }
  #view-funcionarios .employee-roster-table .btn-actions {
    justify-content:stretch;
    width:100%;
    margin-top:0;
  }

  #view-funcionarios .employee-roster-table .btn-actions > button {
    flex:1 1 132px;
    min-height:42px;
  }

  #view-funcionarios .employee-roster-table td.empty-state {
    display:block;
    grid-column:1/-1;
    padding:8px;
    text-align:center;
  }

  #view-funcionarios .employee-roster-table td.empty-state::before {
    content:none;
  }
}

@media screen and (max-width:440px) {
  .gc-commerce-card-actions > button,
  #view-funcionarios .employee-roster-table .btn-actions > button {
    flex-basis:100%;
    width:100%;
  }

  .gc-logo-preview {
    height:132px;
  }
}
