/* InCorte v3.8 — unified admin UX layer
   Purpose: one authoritative presentation layer over legacy accumulated rules.
   Core/tenant data remain untouched. */
:root{
  --ui-content:1440px;
  --ui-radius:9px;
  --ui-radius-lg:12px;
  --ui-card:#fffefa;
  --ui-soft:color-mix(in srgb,var(--surface) 88%,var(--canvas) 12%);
  --ui-line:color-mix(in srgb,var(--line) 88%,var(--tenant-primary) 12%);
  --ui-shadow-soft:0 10px 28px rgba(17,24,27,.055);
}

/* Chrome */
.admin-sidebar{
  box-shadow:1px 0 0 rgba(255,255,255,.025);
}
.admin-product{
  min-height:82px;height:auto;padding:16px 18px;justify-content:flex-start;
}
.admin-product img{
  height:auto!important;width:148px!important;max-width:148px!important;max-height:46px!important;
  object-fit:contain;opacity:1!important;filter:none!important;
}
.admin-product small{
  display:none;
}
.admin-nav{
  padding:14px 10px 10px;
}
.admin-nav__group{gap:4px;margin-bottom:18px}
.admin-nav__label{padding:0 10px 8px;font-size:7px;letter-spacing:.15em}
.admin-nav a{
  min-height:42px;border-radius:8px;padding:0 11px;font-size:11px;
  transition:background .16s ease,color .16s ease,transform .16s ease;
}
.admin-nav a:hover{transform:translateX(1px)}
.admin-nav a.is-active{
  box-shadow:inset 3px 0 0 color-mix(in srgb,var(--tenant-on-primary) 52%,transparent);
}
.admin-sidebar__context{
  margin:0 10px 10px;padding:12px 10px;
}
.admin-sidebar__foot{padding:10px 10px 12px}
.admin-sidebar__foot .c-button{min-height:42px}
.admin-version{padding:8px 4px 0;font-size:8px}

.admin-topbar{
  height:68px;padding:0 30px;
}
.admin-topbar__tenant .tenant-mark,
.admin-topbar__tenant .tenant-monogram{width:38px;height:38px}
.admin-topbar__breadcrumb{min-width:110px}
.admin-topbar__account>span{width:34px;height:34px}

.admin-content{
  width:min(calc(100% - 48px),var(--ui-content));
  margin:0 auto;
  padding:30px 0 72px;
}
.admin-heading{
  align-items:center;margin:0 0 28px;min-height:82px;
}
.admin-heading__copy{align-items:flex-start}
.admin-heading__accent{height:54px}
.admin-heading .c-title{font-size:clamp(34px,3.6vw,48px)}
.admin-heading .c-subtitle{font-size:13px;margin-top:6px}
.admin-heading__actions{align-items:center;flex-wrap:wrap}
.admin-heading__actions .c-button{min-width:0}

/* Motion: subtle, never flash the whole workspace */
.module-enter{animation:incorte-module-in .12s ease-out}
@keyframes incorte-module-in{from{opacity:.9;transform:translateY(2px)}to{opacity:1;transform:none}}
.module-loading{min-height:88px;display:flex;align-items:center;padding:20px 4px;color:var(--muted)}
.is-refreshing{opacity:.78!important;filter:none!important}

/* Controls */
.c-button{
  min-height:var(--control);padding:0 14px;border-radius:8px;font-size:12px;font-weight:760;
  box-shadow:none!important;
}
.c-button:hover:not(:disabled){transform:none;filter:brightness(.985)}
.c-button--primary{box-shadow:0 5px 14px color-mix(in srgb,var(--tenant-primary) 18%,transparent)!important}
.c-button--secondary{background:color-mix(in srgb,var(--surface) 96%,var(--canvas) 4%)}
.c-icon-button{width:var(--control);height:var(--control);border-radius:8px}
.c-field{gap:6px}
.c-field>span{font-size:10px}
.c-input{
  min-height:var(--control);padding:8px 11px;border-radius:8px;background:var(--surface);
  border-color:color-mix(in srgb,var(--line) 92%,var(--text) 8%);
}
textarea.c-input{min-height:96px;line-height:1.5}
.c-chip{min-height:25px;padding:0 9px;font-size:9px}
.c-feedback{border-radius:9px}

/* Tabs, segmented controls and filters */
.module-subnav{
  min-height:44px;margin:0 0 24px;gap:24px;
}
.module-subnav button{min-height:44px;font-size:10px}
.c-segment{
  border-radius:10px!important;padding:3px!important;background:color-mix(in srgb,var(--surface) 74%,var(--canvas) 26%)!important;
}
.c-segment button{min-height:var(--control-compact)!important;border-radius:8px!important;font-size:10px!important}
.status-choice{gap:6px}
.status-choice button{min-height:var(--control-compact);padding:0 11px;font-size:9px}

/* Metrics: flatter and more consistent */
.metric-strip,.entity-metrics,.report-kpis,.finance-headline,.commission-metrics{
  border:1px solid var(--ui-line)!important;border-radius:var(--ui-radius-lg);overflow:hidden;
  background:var(--ui-card)!important;margin:0 0 24px!important;
}
.metric-strip .metric,.entity-metrics>div,.report-kpis .metric{
  min-height:86px;padding:15px 17px!important;border-top:0!important;
}
.metric small,.entity-metrics small{font-size:8px;text-transform:uppercase;letter-spacing:.06em}
.metric strong,.entity-metrics strong{font-size:22px}

/* Entity pages */
.entity-toolbar,.catalog-filterbar,.agenda-controlbar,.report-toolbar,.finance-period,.performance-controlbar{
  border:1px solid var(--ui-line);border-radius:var(--ui-radius-lg);background:var(--ui-card);
  padding:12px 14px;margin-bottom:18px;
}
.catalog-filterbar{grid-template-columns:1fr minmax(260px,400px)}
.catalog-grid{
  grid-template-columns:repeat(auto-fill,minmax(310px,390px))!important;
  gap:12px!important;justify-content:start!important;
}
.catalog-record{
  border-radius:var(--ui-radius-lg)!important;background:var(--ui-card);
}
.catalog-record .catalog-item__head{padding:13px 14px 11px 17px}
.catalog-record .catalog-item__body{min-height:62px}
.catalog-record .catalog-item__foot{min-height:46px}
.catalog-record__accent{width:3px}
.client-record{border-radius:var(--ui-radius)!important}

/* Agenda */
.agenda-day{margin-bottom:24px}
.agenda-day>header{
  min-height:38px;padding:0 2px 9px;border-bottom:1px solid var(--line);
}
.appointment-stack{display:grid;gap:8px;padding-top:8px}
.appointment-card{
  min-height:68px;border-radius:var(--ui-radius);padding-right:11px;
  box-shadow:none;background:var(--ui-card);
}
.appointment-card:hover{transform:none;box-shadow:var(--ui-shadow-soft)}
.appointment-card__main span{line-height:1.35}

/* Finance */
.finance-headline{
  display:grid!important;grid-template-columns:1fr 1fr!important;
}
.finance-headline>div{padding:15px 17px!important}
.finance-records{
  gap:8px!important;padding-top:0!important;border-top:0!important;
}
.finance-records article{
  min-height:70px!important;border:1px solid var(--ui-line)!important;border-radius:var(--ui-radius)!important;
  padding:10px 12px 10px 15px!important;background:var(--ui-card)!important;
}
.finance-receivable::before{top:9px!important;bottom:9px!important}
.finance-record__origin strong{
  font-size:10px!important;color:var(--text);letter-spacing:.03em
}
.finance-record__main strong{font-size:11px}
.finance-record__action .c-button{min-width:154px}
.finance-drawer-summary{border-radius:10px!important}
.attendance-reference small,.attendance-reference strong{display:block}

/* Drawers: native-app feel */
.c-drawer-backdrop{
  background:rgba(11,17,20,.42)!important;backdrop-filter:blur(3px)!important;
}
.c-drawer{
  width:min(500px,94vw)!important;box-shadow:-18px 0 48px rgba(8,14,17,.14);
}
.c-drawer__head{padding:18px 20px!important;background:var(--surface)}
.c-drawer__head h2{margin:2px 0 0;font-size:22px;letter-spacing:-.035em}
.c-drawer__body{padding:18px 20px!important}
.c-drawer__foot{
  min-height:68px;padding:12px 20px calc(12px + env(safe-area-inset-bottom))!important;
  background:color-mix(in srgb,var(--surface) 96%,var(--canvas) 4%);
}
.c-drawer__foot .c-button{min-width:108px}

/* Settings */
.settings-section{
  max-width:none!important;padding:0 0 26px;margin:0 0 26px;
}
.settings-section>.section-title-row{margin-bottom:16px}
.switch-row{min-height:56px}
.access-user{border-radius:9px}

/* Commission: one operational canvas, creation/history in drawers */
.commission-config-card{
  display:flex;justify-content:space-between;align-items:center;gap:22px;
  padding:18px 20px;margin-bottom:14px;border:1px solid var(--ui-line);border-radius:var(--ui-radius-lg);
  background:linear-gradient(110deg,color-mix(in srgb,var(--tenant-primary) 5%,var(--surface)),var(--surface) 46%);
}
.commission-config-card h2{margin:2px 0 4px;font-size:18px;letter-spacing:-.025em}
.commission-config-card p:not(.c-eyebrow){margin:0;color:var(--muted);font-size:10px}
.commission-config-card__actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.commission-filterbar .finance-period{margin:0!important;border:0!important;padding:0!important;background:transparent!important}
.commission-metrics{
  display:grid;grid-template-columns:repeat(4,1fr);
}
.commission-metrics>div{
  min-height:92px;padding:16px 18px;border-right:1px solid var(--line);
}
.commission-metrics>div:last-child{border-right:0}
.commission-metrics small,.commission-metrics strong{display:block}
.commission-metrics small{font-size:8px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted)}
.commission-metrics strong{margin-top:8px;font-size:22px;letter-spacing:-.035em}
.commission-metrics .is-highlight strong{color:var(--tenant-primary)}
.commission-history{
  padding:20px 0 24px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)
}
.commission-occurrence-list{display:grid;gap:7px;margin-top:14px}
.commission-occurrence-list article{
  display:grid;grid-template-columns:92px minmax(220px,1fr) 130px 120px;gap:16px;align-items:center;
  min-height:70px;padding:10px 12px;border:1px solid var(--ui-line);border-radius:var(--ui-radius);background:var(--ui-card)
}
.commission-occurrence-list__date{font-size:9px;color:var(--muted)}
.commission-occurrence-list__main strong,.commission-occurrence-list__main span,.commission-occurrence-list__main small{display:block}
.commission-occurrence-list__main strong{font-size:11px}
.commission-occurrence-list__main span{margin-top:3px;font-size:9px}
.commission-occurrence-list__main small{margin-top:3px;color:var(--muted);font-size:8px}
.commission-occurrence-list__base small,.commission-occurrence-list__base strong,.commission-occurrence-list__value strong,.commission-occurrence-list__value span{display:block}
.commission-occurrence-list__base small,.commission-occurrence-list__value span{font-size:8px;color:var(--muted)}
.commission-occurrence-list__base strong,.commission-occurrence-list__value strong{margin-top:4px;font-size:13px}
.commission-occurrence-list__value{text-align:right}
.commission-bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:18px}
.commission-panel{
  min-height:190px;padding:16px;border:1px solid var(--ui-line);border-radius:var(--ui-radius-lg);background:var(--ui-card)
}
.commission-panel .section-title-row{align-items:center;padding-bottom:14px;border-bottom:1px solid var(--line)}
.commission-panel .section-title-row h2{font-size:15px}
.drawer-segment{
  display:flex;gap:4px;padding:4px;margin:0 0 14px;border:1px solid var(--line);border-radius:10px;background:var(--ui-soft)
}
.drawer-segment button{
  flex:1;min-height:36px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:10px;font-weight:760;cursor:pointer
}
.drawer-segment button.is-active{background:var(--surface);color:var(--text);box-shadow:0 1px 4px rgba(18,24,26,.06)}
.drawer-segment button span{margin-left:4px;color:var(--muted)}
.commission-rule-manager{display:grid;gap:8px}
.commission-rule-card{
  display:grid;grid-template-columns:minmax(0,1fr) 110px auto;gap:12px;align-items:center;
  padding:12px;border:1px solid var(--ui-line);border-radius:9px;background:var(--surface)
}
.commission-rule-card__main small,.commission-rule-card__main strong,.commission-rule-card__main span,
.commission-rule-card__value strong{display:block}
.commission-rule-card__main small{font-size:8px;text-transform:uppercase;letter-spacing:.06em;color:var(--tenant-accent)}
.commission-rule-card__main strong{margin-top:3px;font-size:12px}
.commission-rule-card__main span{margin-top:3px;font-size:9px;color:var(--muted)}
.commission-rule-card__value strong{margin-bottom:5px;font-size:13px}


.commission-settlement-list{display:grid;gap:7px;margin-top:12px}
.commission-settlement-list article{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;
  padding:10px 0;border-bottom:1px solid var(--line)
}
.commission-settlement-list article:last-child{border-bottom:0}
.commission-settlement-list strong,.commission-settlement-list span,.commission-settlement-list small{display:block}
.commission-settlement-list span,.commission-settlement-list small{margin-top:3px;font-size:8px;color:var(--muted)}
.commission-settlement-list>article>div:last-child{text-align:right}

/* Reports */
.report-toolbar{margin-bottom:18px}
.report-table article{padding:11px 12px;border:1px solid var(--ui-line);border-radius:8px;margin-bottom:7px;background:var(--ui-card)}

/* Tablet/mobile */
@media(max-width:900px){
  .admin-content{width:auto;margin:0;padding:20px 14px 96px}
  .admin-topbar{height:64px;padding:0 12px}
  .admin-heading{min-height:0;align-items:flex-start}
  .admin-heading .c-title{font-size:36px}
  .admin-heading__actions{width:100%;justify-content:flex-start}
  .admin-heading__actions .c-button{flex:0 1 auto}
  .entity-toolbar,.catalog-filterbar,.agenda-controlbar,.report-toolbar,.finance-period,.performance-controlbar{padding:11px}
  .catalog-grid{grid-template-columns:1fr!important}
  .commission-config-card{align-items:flex-start;display:grid}
  .commission-config-card__actions{justify-content:flex-start}
  .commission-metrics{grid-template-columns:1fr 1fr}
  .commission-metrics>div:nth-child(2){border-right:0}
  .commission-metrics>div:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .commission-bottom-grid{grid-template-columns:1fr}
  .commission-occurrence-list article{grid-template-columns:72px 1fr auto}
  .commission-occurrence-list__base{grid-column:2}
  .commission-occurrence-list__value{grid-column:3;grid-row:1/3}
}
@media(max-width:560px){
  .admin-content{padding:18px 12px 94px}
  .admin-heading{margin-bottom:20px}
  .admin-heading .c-title{font-size:32px}
  .admin-heading .c-subtitle{font-size:12px;line-height:1.45}
  .admin-heading__actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}
  .admin-heading__actions .c-button{width:100%;min-width:0}
  .admin-heading__actions .c-button:only-child{grid-column:1/-1}
  .module-subnav{gap:19px;margin-bottom:18px}
  .entity-toolbar,.catalog-filterbar,.agenda-controlbar,.report-toolbar,.performance-controlbar{display:grid!important;grid-template-columns:1fr!important}
  .catalog-filterbar .catalog-search{width:100%}
  .status-choice{overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px}
  .appointment-card{
    grid-template-columns:58px 1fr auto!important;gap:9px!important;min-height:82px!important;padding:10px 10px 10px 0!important
  }
  .appointment-card__value{grid-column:2}
  .appointment-card__status{grid-column:3;grid-row:1}
  .appointment-card__chevron{display:none}
  .finance-headline{grid-template-columns:1fr!important}
  .finance-records article{
    display:grid!important;grid-template-columns:58px minmax(0,1fr)!important;gap:9px!important;min-height:0!important;padding:11px 12px 12px 15px!important
  }
  .finance-record__state{grid-column:2!important;grid-row:auto!important;justify-self:start}
  .finance-record__amount{grid-column:2!important}
  .finance-record__action{grid-column:1/-1!important}
  .finance-record__action .c-button{width:100%;min-width:0}
  .c-drawer{
    width:100%!important;height:min(92dvh,860px)!important;border-radius:16px 16px 0 0!important;
  }
  .c-drawer__foot{display:grid;grid-template-columns:1fr 1fr}
  .c-drawer__foot .c-button{width:100%;min-width:0}
  .c-drawer__foot .c-button:only-child{grid-column:1/-1}
  .commission-config-card__actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .commission-config-card__actions .c-button{width:100%}
  #commission-view-rules{grid-column:1/-1}
  .commission-metrics{grid-template-columns:1fr 1fr}
  .commission-metrics>div{min-height:84px;padding:13px!important}
  .commission-metrics strong{font-size:19px}
  .commission-occurrence-list article{
    grid-template-columns:1fr auto!important;padding:11px!important
  }
  .commission-occurrence-list__date{grid-column:1/-1}
  .commission-occurrence-list__main{grid-column:1}
  .commission-occurrence-list__base{grid-column:1}
  .commission-occurrence-list__value{grid-column:2;grid-row:2/4}
  .commission-rule-card{grid-template-columns:1fr auto}
  .commission-rule-card__main{grid-column:1}
  .commission-rule-card__value{grid-column:2;grid-row:1}
  .commission-rule-card>.c-button{grid-column:1/-1;width:100%}
  .commission-panel{padding:13px}
}

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


/* v3.8.1 — appointment / walk-in flow */
.form-help{margin:-4px 0 2px;color:var(--muted);font-size:12px;line-height:1.45}
.walkin-success--payment{margin-bottom:16px}
.walkin-payment-form{padding-top:4px}


/* ==========================================================================
   v3.13.0 — Premium Mobile-First UI Refinement
   - flat surfaces, subtle borders, no decorative heavy shadows
   - tighter typography hierarchy
   - tactile mobile feedback
   - generous but controlled spacing
   ========================================================================== */

/* Typography hierarchy */
.c-title{
  letter-spacing:-.045em!important;
  line-height:1.02!important;
  font-weight:780!important;
}
.c-subtitle{
  max-width:66ch;
  margin-top:6px!important;
  color:var(--muted)!important;
  font-size:11px!important;
  line-height:1.55!important;
}
.c-eyebrow{
  font-size:8px!important;
  font-weight:800!important;
  letter-spacing:.12em!important;
  text-transform:uppercase;
  color:color-mix(in srgb,var(--muted) 88%,var(--text) 12%)!important;
}

/* Buttons: flat, border-led, premium */
.c-button{
  min-height:40px!important;
  padding:0 14px!important;
  border-radius:9px!important;
  box-shadow:none!important;
  font-size:11px!important;
  font-weight:750!important;
  letter-spacing:-.01em;
  transition:
    transform .14s ease,
    background-color .14s ease,
    border-color .14s ease,
    color .14s ease,
    opacity .14s ease!important;
}
.c-button:hover:not(:disabled){
  transform:none!important;
  filter:none!important;
}
.c-button--primary{
  box-shadow:none!important;
}
.c-button--secondary,
.c-button--ghost{
  border-color:color-mix(in srgb,var(--line) 88%,transparent)!important;
}
.c-icon-button{
  border-color:color-mix(in srgb,var(--line) 88%,transparent)!important;
  box-shadow:none!important;
  transition:transform .14s ease,background-color .14s ease,border-color .14s ease!important;
}

/* Forms */
.c-field{gap:6px!important}
.c-field>span{
  font-size:9px!important;
  font-weight:700!important;
  color:color-mix(in srgb,var(--muted) 92%,var(--text) 8%)!important;
}
.c-input{
  min-height:42px!important;
  padding:9px 12px!important;
  border:1px solid color-mix(in srgb,var(--line) 88%,transparent)!important;
  border-radius:9px!important;
  box-shadow:none!important;
  background:var(--surface)!important;
  font-size:12px!important;
  transition:border-color .14s ease,background-color .14s ease!important;
}
.c-input:focus{
  outline:none!important;
  border-color:color-mix(in srgb,var(--tenant-primary) 46%,var(--line))!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--tenant-primary) 7%,transparent)!important;
}

/* Neutral surfaces */
.metric-strip,
.entity-metrics,
.report-kpis,
.finance-headline,
.commission-metrics,
.entity-toolbar,
.catalog-filterbar,
.agenda-controlbar,
.report-toolbar,
.finance-period,
.performance-controlbar,
.commission-config-card,
.performance-panel,
.report-panel,
.finance-drawer-summary,
.goal-card,
.commission-settlement-card{
  box-shadow:none!important;
  border-color:color-mix(in srgb,var(--line) 88%,transparent)!important;
}

/* Cards */
.appointment-card,
.catalog-record,
.client-record,
.finance-receivable,
.finance-payment,
.report-team-list article,
.report-service-list article,
.demand-peak-cards article,
.goals-list article{
  box-shadow:none!important;
  border-color:color-mix(in srgb,var(--line) 88%,transparent)!important;
}

/* Drawer: remove floating-panel effect, keep structure */
.c-drawer{
  box-shadow:none!important;
  border-left:1px solid color-mix(in srgb,var(--line) 90%,transparent)!important;
}
.c-drawer__head{
  border-bottom:1px solid color-mix(in srgb,var(--line) 88%,transparent)!important;
}
.c-drawer__head h2{
  letter-spacing:-.04em!important;
  font-weight:780!important;
}
.c-drawer__body{line-height:1.5}
.c-drawer__foot{
  border-top:1px solid color-mix(in srgb,var(--line) 88%,transparent)!important;
  box-shadow:none!important;
}

/* Menus and popovers: border instead of shadow */
.appointment-more__menu{
  box-shadow:none!important;
  border-color:color-mix(in srgb,var(--line) 88%,transparent)!important;
}
.c-toast{
  box-shadow:none!important;
  border:1px solid color-mix(in srgb,var(--line) 84%,transparent)!important;
}

/* Compact chips */
.c-chip{
  min-height:24px!important;
  padding:0 8px!important;
  border-radius:999px!important;
  font-size:8px!important;
  font-weight:760!important;
  box-shadow:none!important;
}

/* Tactile feedback */
@media (hover:hover){
  .c-button:hover:not(:disabled),
  .c-icon-button:hover:not(:disabled),
  .module-subnav button:hover,
  .c-segment button:hover{
    background-color:color-mix(in srgb,var(--surface) 93%,var(--text) 7%);
  }
}
@media (pointer:coarse){
  .c-button:active:not(:disabled),
  .c-icon-button:active:not(:disabled),
  .module-subnav button:active,
  .c-segment button:active,
  .settings-rail button:active,
  .appointment-card:active,
  .catalog-record:active,
  .client-record:active,
  .admin-mobilebar a:active{
    transform:scale(.98)!important;
  }
}


/* v3.13.1 — White-label aliases
   Existing components can continue using --tenant-primary while new work uses --brand-primary. */
:root{
  /* tokens.css defines brand-primary; reversing the tenant alias creates a cycle. */
  --brand-primary-light:color-mix(in srgb,var(--brand-primary) 14%,transparent);
}


/* v3.14.0 — Native Mobile PWA surfaces */
body.c-drawer-open{overflow:hidden;overscroll-behavior:none}
.c-drawer__body{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}

/* Clients keep a dense row on desktop while exposing semantic groups for mobile cards. */
.client-record__identity{display:contents}
.client-record__details{display:contents}
.client-record__action span{display:none}

/* Mobile/tablet below lg: drawers become app-like bottom sheets. */
@media(max-width:1023px){
  .c-drawer-backdrop{touch-action:none}
  .c-drawer{
    top:auto!important;right:0!important;bottom:0!important;left:0!important;
    width:100%!important;max-width:none!important;height:90dvh!important;max-height:90dvh!important;
    border:1px solid var(--line)!important;border-bottom:0!important;border-radius:20px 20px 0 0!important;
    box-shadow:0 -18px 48px rgba(8,14,17,.16)!important;
    transform:translate3d(0,102%,0)!important;
    transition:transform var(--normal) var(--ease)!important;
    overflow:hidden;will-change:transform;
  }
  .c-drawer.is-open{transform:translate3d(0,0,0)!important}
  .c-drawer__head{flex:0 0 auto;padding-top:20px!important;position:relative}
  .c-drawer__head:before{
    content:\"\";position:absolute;top:7px;left:50%;width:42px;height:4px;
    transform:translateX(-50%);border-radius:999px;background:color-mix(in srgb,var(--muted) 28%,transparent);
  }
  .c-drawer__body{min-height:0;overflow-y:auto}
  .c-drawer__foot{flex:0 0 auto}
}

/* Filters stay on one native-feeling horizontal rail on narrow screens. */
@media(max-width:767px){
  .agenda-statusbar,.status-choice{
    display:flex!important;flex-wrap:nowrap!important;align-items:center;gap:8px;
    width:100%;max-width:100%;overflow-x:auto!important;overflow-y:hidden;
    white-space:nowrap;scroll-snap-type:x proximity;scroll-behavior:smooth;
    scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-inline:contain;
    padding-bottom:4px;
  }
  .agenda-statusbar::-webkit-scrollbar,.status-choice::-webkit-scrollbar{display:none}
  .agenda-statusbar button,.status-choice button{
    flex:0 0 auto!important;scroll-snap-align:start;white-space:nowrap;
  }

  /* Client rows become stacked cards instead of compressed desktop rows. */
  .entity-list{gap:10px}
  .client-record{
    display:flex!important;flex-direction:column;align-items:stretch!important;gap:12px!important;
    min-height:0!important;padding:14px!important;border-radius:12px!important;overflow:hidden;
  }
  .client-record__identity{display:flex;align-items:center;gap:11px;min-width:0}
  .client-record__identity .list-row__primary{min-width:0;flex:1}
  .client-record__identity .list-row__primary strong{font-size:13px}
  .client-record__identity .list-row__primary small{margin-top:3px}
  .client-record__details{
    display:flex;align-items:center;justify-content:space-between;gap:10px;
    width:100%;padding-top:10px;border-top:1px solid var(--line);
  }
  .client-record__details .list-row__meta{
    min-width:0;max-width:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  }
  .client-record__status{flex:0 0 auto}
  .client-record__action{
    display:flex!important;align-items:center;justify-content:space-between;gap:10px;
    width:100%;padding-top:10px;border-top:1px solid var(--line);color:var(--muted);
    font-size:9px;font-weight:760;
  }
  .client-record__action span{display:inline}
  .client-record__action img{opacity:.55}

  /* Team cards become explicit vertical stacks under 768px. */
  .catalog-grid{grid-template-columns:1fr!important;gap:10px}
  .catalog-record{display:flex;flex-direction:column;min-width:0}
  .catalog-record .catalog-item__head{
    display:flex!important;align-items:center;gap:11px;padding:14px 14px 12px 16px!important;
  }
  .catalog-record__identity{flex:1;min-width:0}
  .catalog-record__status{flex:0 0 auto;margin-left:auto}
  .catalog-record .catalog-item__body{min-height:0!important;padding:12px 14px 13px 16px!important}
  .catalog-record .catalog-item__foot{
    display:flex!important;flex-direction:column;align-items:stretch!important;gap:9px!important;
    padding:11px 14px 13px 16px!important;
  }
  .catalog-item__actions{display:flex;width:100%;gap:7px}
  .catalog-item__actions .c-button{flex:1;min-width:0}
}


/* =====================================================================
   InCorte v3.19.0 — Interaction & Fluidity Layer
   Frontend-only. No business semantics, contracts or data authority here.
   ===================================================================== */
:root{
  --motion-fast:120ms;
  --motion-ui:170ms;
  --motion-sheet:220ms;
  --motion-ease:cubic-bezier(.22,.8,.2,1);
  --focus-ring:0 0 0 3px color-mix(in srgb,var(--tenant-primary) 18%,transparent);
}

/* Global navigation feedback without replacing the current workspace. */
html:before{
  content:"";
  position:fixed;
  z-index:300;
  top:0;left:0;
  width:0;height:2px;
  pointer-events:none;
  background:var(--tenant-primary);
  opacity:0;
  transition:width .28s var(--motion-ease),opacity .16s ease;
}
html.is-route-pending:before{width:68%;opacity:1}
html:not(.is-route-pending):before{width:100%;opacity:0}

/* Focus treatment is consistent across keyboard-operable controls. */
:where(
  .c-button,.c-icon-button,.module-subnav button,.c-segment button,
  .status-choice button,.agenda-statusbar button,.admin-nav a,.admin-mobilebar a,
  .quick-grid a,.appointment-card,[data-open],.public-tabs a,.public-text-link,
  .public-inline-cta,.public-person__book,.public-service__book,.public-rail-button
):focus-visible{
  outline:2px solid color-mix(in srgb,var(--tenant-primary) 68%,#fff)!important;
  outline-offset:3px!important;
}
.c-input:focus-visible{
  outline:none!important;
  border-color:color-mix(in srgb,var(--tenant-primary) 58%,var(--line))!important;
  box-shadow:var(--focus-ring)!important;
}
.c-field:focus-within>span{
  color:color-mix(in srgb,var(--tenant-primary) 78%,var(--text))!important;
}
.c-input:user-invalid:not(:focus){
  border-color:color-mix(in srgb,var(--danger) 46%,var(--line))!important;
}

/* Buttons: stable geometry, clearer press feedback and no layout shift while loading. */
.c-button,.c-icon-button{
  -webkit-tap-highlight-color:transparent;
  transition:
    background-color var(--motion-ui) ease,
    border-color var(--motion-ui) ease,
    color var(--motion-ui) ease,
    transform var(--motion-fast) ease,
    opacity var(--motion-fast) ease!important;
}
.c-button:active:not(:disabled),.c-icon-button:active:not(:disabled){
  transform:scale(.985)!important;
}
.c-button.is-loading{
  min-width:var(--loading-width,auto);
  cursor:wait!important;
}
.c-button.is-loading:after{
  width:14px;height:14px;
  border-width:1.8px;
}
.c-button--secondary.is-loading:after,
.c-button--ghost.is-loading:after{
  color:var(--tenant-primary)!important;
}

/* Text loaders become compact visual progress indicators. */
.module-loading,.public-boot{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-size:11px;
}
.module-loading:before,.public-boot>span{
  content:"";
  flex:0 0 auto;
  width:15px;height:15px;
  border:1.8px solid color-mix(in srgb,var(--tenant-primary) 26%,var(--line));
  border-top-color:var(--tenant-primary);
  border-radius:50%;
  animation:incorte-spin .72s linear infinite;
}
.module-loading--compact{min-height:48px!important;padding:12px 2px!important}
.public-boot{
  min-height:100dvh;
  justify-content:center;
  background:var(--canvas);
}
@keyframes incorte-spin{to{transform:rotate(360deg)}}

/* Refresh existing content without flashing or collapsing it. */
.is-refreshing{
  opacity:.72!important;
  transition:opacity var(--motion-ui) ease!important;
}
[aria-busy="true"]{cursor:progress}

/* Navigational and operational rows respond primarily with border/surface, not jumpy elevation. */
.appointment-card,.catalog-record,.client-record,.finance-records article,
.quick-grid a,.access-user,.commission-settlement-card,.goal-card{
  transition:
    border-color var(--motion-ui) ease,
    background-color var(--motion-ui) ease,
    transform var(--motion-fast) ease,
    opacity var(--motion-fast) ease!important;
}
@media(hover:hover){
  .appointment-card:hover,.catalog-record:hover,.client-record:hover,
  .finance-records article:hover,.quick-grid a:hover{
    border-color:color-mix(in srgb,var(--tenant-primary) 24%,var(--line))!important;
  }
}

/* Tabs/segments keep the eye anchored during state changes. */
.module-subnav button,.c-segment button,.status-choice button,.agenda-statusbar button,
.c-tab,.cash-history__row,button.client-record{
  transition:
    background-color var(--motion-ui) ease,
    color var(--motion-ui) ease,
    border-color var(--motion-ui) ease,
    transform var(--motion-fast) ease!important;
}

/* Shared interaction contract: reuse feedback without changing each control's layout. */
:is(.module-subnav button,.c-segment button,.status-choice button,.agenda-statusbar button,.c-tab,.cash-history__row,button.client-record):focus-visible{
  outline:2px solid color-mix(in srgb,var(--tenant-primary) 68%,#fff)!important;
  outline-offset:3px!important;
}
:is(.module-subnav button,.c-segment button,.status-choice button,.agenda-statusbar button,.c-tab,.cash-history__row,button.client-record):active:not(:disabled):not([aria-disabled="true"]){
  transform:scale(.985)!important;
}
:is(.module-subnav button,.c-segment button,.status-choice button,.agenda-statusbar button,.c-tab,.cash-history__row,button.client-record):is(:disabled,[aria-disabled="true"]){
  opacity:.46;cursor:not-allowed;transform:none!important;
}
@media(hover:hover){
  .admin-shell #module :is(.module-subnav button,.c-segment button,.status-choice button,.agenda-statusbar button,.c-tab):hover:not(:disabled):not([aria-disabled="true"]){
    border-color:var(--tenant-primary)!important;
    background:var(--brand-primary-light)!important;
  }
  :is(.cash-history__row,button.client-record):hover:not(:disabled):not([aria-disabled="true"]){
    border-color:color-mix(in srgb,var(--tenant-primary) 24%,var(--line))!important;
  }
}

/* Drawer / bottom sheet: accessible focus target, calmer backdrop and predictable motion. */
.c-drawer-backdrop{
  opacity:1;
  transition:opacity var(--motion-ui) ease,backdrop-filter var(--motion-ui) ease!important;
}
.c-drawer{
  transition:transform var(--motion-sheet) var(--motion-ease)!important;
}
.c-drawer:focus{outline:none}
.c-drawer__body{
  scrollbar-gutter:stable;
}
.c-drawer__foot{
  backdrop-filter:saturate(1.04) blur(8px);
}
body.c-drawer-open{
  touch-action:none;
}

/* Toasts: animated, actionable and accessible without becoming modal. */
.c-toast-region{
  pointer-events:none;
}
.c-toast{
  pointer-events:auto;
  opacity:0;
  transform:translateY(7px) scale(.985);
  cursor:pointer;
  transition:
    opacity var(--motion-ui) ease,
    transform var(--motion-ui) var(--motion-ease),
    border-color var(--motion-ui) ease!important;
}
.c-toast.is-visible{
  opacity:1;
  transform:none;
}
.c-toast.is-leaving{
  opacity:0;
  transform:translateY(4px) scale(.99);
}
.c-toast:focus-visible{
  outline:2px solid color-mix(in srgb,var(--tenant-primary) 60%,#fff);
  outline-offset:2px;
}

/* Horizontal controls preserve momentum and show that content continues without a heavy scrollbar. */
.agenda-statusbar,.status-choice,.module-subnav,.c-tabs{
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
}

/* Mobile app ergonomics. */
@media(max-width:1023px){
  .c-drawer{
    height:90dvh!important;
    max-height:90dvh!important;
  }
  .c-drawer__foot{
    position:relative;
    z-index:2;
  }
}
@media(max-width:767px){
  .admin-mobilebar a,.c-button,.c-icon-button{
    -webkit-tap-highlight-color:transparent;
  }
  .admin-mobilebar a.is-active{
    background:color-mix(in srgb,var(--tenant-primary) 10%,var(--surface))!important;
  }
  .agenda-statusbar,.status-choice{
    scroll-padding-inline:4px;
  }
}
@media(max-width:560px){
  .c-button{min-height:44px!important}
  .c-icon-button{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}
  .c-input{min-height:44px!important}
  .c-drawer__foot .c-button{min-height:46px!important}
  .admin-mobilebar a{min-height:46px!important}
}

/* Reduced motion is a first-class state, not an afterthought. */
@media(prefers-reduced-motion:reduce){
  html:before{display:none!important}
  .module-enter,.module-loading:before,.public-boot>span,.c-button.is-loading:after{animation:none!important}
  .c-button,.c-icon-button,.module-subnav button,.c-segment button,
  .status-choice button,.agenda-statusbar button,.appointment-card,.catalog-record,
  .client-record,button.client-record,.finance-records article,.quick-grid a,.c-drawer,.c-drawer-backdrop,
  .c-tab,.cash-history__row,.goal-card,.c-toast,.is-refreshing{
    transition:none!important;
    scroll-behavior:auto!important;
  }
  :is(.c-button,.c-icon-button,.module-subnav button,.c-segment button,.status-choice button,.agenda-statusbar button,.c-tab,.cash-history__row,button.client-record):is(:active,:hover):not(:disabled):not([aria-disabled="true"]){transform:none!important}
}


/* v3.19.1 — MVP interaction contrast hardening */
/* Colored actions must retain their semantic fill and computed foreground. */
.c-button--primary{
  background:var(--tenant-primary)!important;
  border-color:var(--tenant-primary)!important;
  color:var(--tenant-on-primary)!important;
}
@media(hover:hover){
  .c-button--primary:hover:not(:disabled){
    background:var(--tenant-primary)!important;
    border-color:var(--tenant-primary)!important;
    color:var(--tenant-on-primary)!important;
    opacity:.92;
  }
}
.c-button--primary:active:not(:disabled){
  background:var(--tenant-primary)!important;
  border-color:var(--tenant-primary)!important;
  color:var(--tenant-on-primary)!important;
  opacity:.88;
}
.c-button--primary.is-loading{
  background:var(--tenant-primary)!important;
  color:transparent!important;
}
.c-button--primary.is-loading:after{
  color:var(--tenant-on-primary)!important;
}

/* Mobile selected navigation uses the full brand color, never a pale mix with
   foreground contrast calculated for the solid primary. */
@media(max-width:767px){
  .admin-mobilebar a.is-active{
    background:var(--tenant-primary)!important;
    color:var(--tenant-on-primary)!important;
  }
}

/* UI/UX vNext — foundation administrativa; contratos e telas públicas preservados. */
.admin-shell{
  overflow-x:clip;
  --sidebar:240px;
  --ui-radius:12px;
  --ui-radius-lg:12px;
  --ui-shadow-soft:0 2px 8px rgba(17,24,27,.035);
}
.admin-shell .admin-product{min-height:72px;padding:12px 20px}
.admin-shell .admin-sidebar{background:var(--ink-950);color:var(--bone-50)}
.admin-shell .admin-nav a{font-size:12px;min-height:44px}
.admin-shell .admin-nav__label{font-size:9px}
.admin-shell .admin-nav__group > .admin-nav__finance{margin:0;gap:0}
.admin-shell .admin-topbar{height:64px;padding:0 24px}
.admin-shell .admin-content{width:min(calc(100% - 48px),var(--ui-content));padding:24px 0 64px}
.admin-shell .admin-heading{min-height:64px;margin-bottom:24px;gap:16px}
.admin-shell .admin-heading__accent{height:40px}
.admin-shell .admin-heading .c-title{font-size:30px;line-height:1.15}
.admin-shell .admin-heading .c-subtitle{font-size:12px;line-height:1.5}
.admin-shell .c-button,.admin-shell .c-input{border-radius:10px!important}
.admin-shell .c-chip{font-size:10px!important;line-height:1.3}
.admin-shell .c-drawer[aria-hidden="true"]{display:none}
.admin-shell .c-chip--scheduled,.admin-shell .c-chip--pending{background:#eaf1fb;color:#254e87;border-color:#d2e0f4}
.admin-shell .c-chip--completed,.admin-shell .c-chip--active{background:#e7f4eb;color:#20633f;border-color:#cbe5d2}
.admin-shell .workspace-hero{
  min-height:176px;margin:0 0 16px;padding:24px;align-items:center;border-radius:12px;
  background:var(--bone-100);isolation:isolate;
  border-color:var(--ui-line);
}
.admin-shell .workspace-hero__image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 60%;z-index:-2}
.admin-shell .workspace-hero:after{display:block;inset:0;width:auto;height:auto;border:0;transform:none;background:linear-gradient(100deg,var(--bone-100) 0%,var(--bone-100) 42%,rgba(244,240,232,.94) 50%,rgba(244,240,232,.1) 78%);z-index:-1}
.admin-shell .workspace-hero__copy{max-width:52%}
.admin-shell .workspace-hero__copy h1{font-size:clamp(28px,3.2vw,40px);line-height:1.1;margin:8px 0}
.admin-shell .workspace-hero__copy .c-eyebrow{color:var(--brass-600);font-size:10px}
.admin-shell .workspace-hero__copy>p:last-child{font-size:13px;line-height:1.5}
.admin-shell .workspace-hero__actions{flex-direction:column;flex:0 0 auto;align-self:flex-end}
/* Métricas de cadastro reutilizáveis, sem alterar a foundation do Início. */
.admin-shell .entity-metrics--cards{border:0!important;background:none!important;gap:16px;margin-bottom:16px!important;overflow:visible}
.admin-shell .entity-metrics--cards>.entity-metric{display:flex;align-items:center;gap:12px;padding:16px!important;border:1px solid var(--ui-line);border-radius:12px;background:var(--surface);min-width:0}
.admin-shell .entity-metric{--metric-color:var(--info);--metric-surface:#edf3f8}
.admin-shell .entity-metric--success{--metric-color:var(--success);--metric-surface:#e7f4eb}
.admin-shell .entity-metric--neutral{--metric-color:var(--muted);--metric-surface:#eef0ef}
.admin-shell .entity-metric--brand{--metric-color:var(--brass-600);--metric-surface:#fbf2df}
.admin-shell .entity-metric__icon{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:var(--metric-surface);flex:0 0 auto}
.admin-shell .entity-metric__icon:before{content:"";width:22px;height:22px;background:var(--metric-color);mask:var(--metric-icon) center/contain no-repeat}
.admin-shell .entity-metric__body{min-width:0}
.admin-shell .entity-metric small{color:var(--text)!important;font-size:12px;font-weight:700;text-transform:none;letter-spacing:0!important}
.admin-shell .entity-metric strong{font-size:28px;line-height:1.2;font-variant-numeric:tabular-nums;margin:4px 0}
.admin-shell .entity-metric__body>span{font-size:11px;color:var(--muted);line-height:1.4}
.admin-shell #catalog-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
.admin-shell .catalog-filterbar{padding:var(--space-4);gap:var(--space-4)}
.admin-shell #catalog-feedback:not(:empty){margin-bottom:var(--space-4)}
.admin-shell #catalog-feedback .c-feedback{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);flex-wrap:wrap}
.admin-shell #catalog-status button{font-size:12px;min-height:44px}
.admin-shell .catalog-search>span{font-size:12px}
.admin-shell #module:has(#catalog) .c-subtitle{font-size:12px!important}
.admin-shell #catalog{grid-template-columns:repeat(3,minmax(0,1fr))!important;align-items:stretch}
.admin-shell .catalog-record{display:flex;flex-direction:column;padding:0;border-radius:12px}
.admin-shell .catalog-record .catalog-item__head{display:grid!important;grid-template-columns:44px minmax(0,1fr) auto;gap:var(--space-3);padding:var(--space-4)!important}
.admin-shell .catalog-record__identity>small{font-size:11px}
.admin-shell .catalog-record__identity>strong{font-size:16px;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
.admin-shell .catalog-record .list-row__meta{font-size:12px!important;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
.admin-shell .catalog-record--service .list-row__meta{font-size:14px!important;font-weight:700;color:var(--text)!important}
.admin-shell .catalog-record .c-chip{font-size:12px}
.admin-shell .catalog-record .catalog-item__body{padding:var(--space-3) var(--space-4)!important;min-height:0;flex:1;margin:0}
.admin-shell .catalog-record .record-facts{grid-template-columns:1fr;gap:var(--space-2)}
.admin-shell .catalog-record .record-facts small{font-size:11px}
.admin-shell .catalog-record .record-facts strong{font-size:12px;white-space:normal;overflow-wrap:anywhere;line-height:1.5}
.admin-shell .catalog-record .record-description{font-size:12px;line-height:1.5;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.admin-shell .catalog-record .catalog-item__foot{padding:var(--space-3) var(--space-4)!important;margin:0;gap:var(--space-2)}
.admin-shell .catalog-record__hint{display:none}
.admin-shell .catalog-item__actions{width:100%;justify-content:flex-end;gap:var(--space-2)}
.admin-shell .catalog-item__actions .c-button,.admin-shell .catalog-item__actions .c-icon-button{min-height:44px;font-size:12px}
.admin-shell .catalog-item__actions .c-icon-button{width:44px;min-width:44px;height:44px}
.catalog-drawer{width:min(540px,92vw)!important}
.catalog-drawer .c-drawer__head,.catalog-drawer .c-drawer__foot{flex-shrink:0}
.catalog-drawer .c-drawer__body{min-height:0;overflow-x:hidden}
.catalog-drawer .c-field>span,.catalog-drawer .c-field>small,.catalog-drawer .form-section__head small{font-size:12px}
.catalog-drawer .c-input{font-size:14px}
.catalog-drawer .module-subnav{position:sticky;top:-20px;z-index:1;background:var(--surface);display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;gap:var(--space-2);max-width:100%;padding:var(--space-2) 0;white-space:nowrap}
.catalog-drawer .module-subnav button{flex:0 0 auto;min-height:44px;font-size:12px}
.catalog-drawer .form-section__head{flex-wrap:wrap;gap:var(--space-2)}
.catalog-drawer .schedule-row{grid-template-columns:80px minmax(0,1fr)}
.catalog-drawer .schedule-period{min-width:0}
.catalog-drawer .schedule-period input[type="time"]{min-width:0}
.catalog-drawer .schedule-period>small,.catalog-drawer .schedule-period label>span{font-size:12px}
.catalog-drawer .schedule-tools{flex-wrap:wrap}
.catalog-drawer .check-list label{min-height:44px}
.catalog-drawer .check-list small,.catalog-drawer .block-list small{font-size:12px}
.catalog-drawer .block-list article,.catalog-drawer .switch-row{min-width:0;overflow-wrap:anywhere}
@media(max-width:767px){
  .catalog-drawer .form-grid,.catalog-drawer .block-datetime-grid{grid-template-columns:1fr}
  .catalog-drawer .c-input{font-size:16px}
  .catalog-drawer .schedule-row{grid-template-columns:1fr}
  .catalog-drawer .schedule-period{grid-template-columns:1fr 1fr}
  .catalog-drawer .schedule-period>small{grid-column:1/-1}
  .catalog-drawer .block-list article{flex-wrap:wrap;gap:var(--space-2)}
  .catalog-drawer .c-drawer__foot .c-button{flex:1;min-width:0;white-space:normal}
}
@media(max-width:767px){
  .admin-shell #catalog-metrics{grid-template-columns:1fr}
  .admin-shell #catalog-metrics .entity-metric__icon{width:40px;height:40px}
  .admin-shell #catalog-metrics .entity-metric small{font-size:12px}
  .admin-shell #catalog-metrics .entity-metric__body>span{font-size:11px}
  .admin-shell .catalog-record .catalog-item__head{grid-template-columns:44px minmax(0,1fr);align-items:start}
  .admin-shell .catalog-record__status{grid-column:2;justify-self:start;margin:0}
}
@media(min-width:768px) and (max-width:1279px){.admin-shell #catalog{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:767px){.admin-shell #catalog{grid-template-columns:1fr!important}}
.admin-shell .entity-list-head{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1.5fr) 100px 32px;gap:16px;padding:12px 16px;font-size:10px;color:var(--muted)}
.admin-shell #client-list .client-record{grid-template-columns:minmax(0,2fr) minmax(0,1.5fr) 100px 32px;gap:16px;min-height:72px;padding:12px 16px!important}
.admin-shell #client-list .client-record__identity{display:flex;align-items:center;gap:12px;min-width:0}
.admin-shell #client-list .client-initial{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--bone-100);color:var(--brass-600);font-size:15px;font-weight:700;flex:0 0 auto}
.admin-shell #client-list .list-row__primary{min-width:0}
.admin-shell #client-list .list-row__primary strong{font-size:14px;overflow-wrap:anywhere}
.admin-shell #client-list .list-row__primary small,.admin-shell #client-list .list-row__meta{font-size:12px!important}
.admin-shell #client-list .list-row__meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.admin-shell #client-list .client-record__action{justify-content:center}
@media(max-width:1023px){
  .admin-shell .entity-metrics--cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
}
@media(max-width:767px){
  .admin-shell .entity-metrics--cards{gap:8px}
  .admin-shell .entity-metrics--cards>.entity-metric{padding:12px!important;gap:8px}
  .admin-shell .entity-metric__icon{width:28px;height:28px;border-radius:8px}
  .admin-shell .entity-metric__icon:before{width:18px;height:18px}
  .admin-shell .entity-metric small{font-size:11px}
  .admin-shell .entity-metric strong{font-size:24px}
  .admin-shell .entity-metric__body>span{font-size:10px}
  .admin-shell .entity-list-head{display:none}
  .admin-shell #client-list .client-record{display:grid!important;grid-template-columns:minmax(0,1fr) 20px;gap:8px!important;padding:12px!important}
  .admin-shell #client-list .client-record__identity{grid-column:1;gap:10px}
  .admin-shell #client-list .client-record__details{grid-column:1;gap:8px;padding:0;border:0;min-width:0}
  .admin-shell #client-list .client-record__action{grid-column:2;grid-row:1 / span 2;border:0;padding:0;width:auto}
  .admin-shell #client-list .client-record__action span{display:none}
}
.admin-shell .home-metrics{border:0;gap:16px;margin-bottom:16px}
.admin-shell .home-metrics--proposal{grid-template-columns:repeat(4,minmax(0,1fr))}
.admin-shell .home-metric{
  display:flex;align-items:flex-start;gap:12px;min-width:0;padding:16px;text-decoration:none;
  border:1px solid var(--ui-line);border-radius:12px;background:var(--surface);
}
.admin-shell .home-metric+.home-metric{padding:16px}
.admin-shell .home-metric{--metric-color:var(--info);--metric-surface:#edf3f8}
.admin-shell .home-metric--1{--metric-color:#95600e;--metric-surface:#fbf2df}
.admin-shell .home-metric--2,.admin-shell .home-metric--3{--metric-color:#52625d;--metric-surface:#eef2ef}
.admin-shell .home-metric--4{--metric-color:#95600e;--metric-surface:#fbf2df}
.admin-shell .home-metric__icon{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:var(--metric-surface);flex:0 0 auto}
.admin-shell .home-metric__icon:before{content:"";width:22px;height:22px;background:var(--metric-color);mask:var(--metric-icon) center/contain no-repeat}
.admin-shell .home-metric__body{flex:1;min-width:0}
.admin-shell .home-metric small{font-size:12px;color:var(--text);font-weight:700;line-height:1.4}
.admin-shell .home-metric strong{font-size:28px;line-height:1.15;font-variant-numeric:tabular-nums;margin-top:6px}
.admin-shell .home-metric__body>span{font-size:11px;line-height:1.4;margin-top:4px}
.admin-shell .home-metric__chevron{width:14px;height:14px;opacity:.5;margin-top:3px}
.admin-shell .home-metric:hover{border-color:var(--tenant-primary)}
.admin-shell .home-metric:focus-visible{outline:2px solid var(--tenant-primary);outline-offset:3px}
.admin-shell .home-grid{grid-template-columns:minmax(0,1.35fr) minmax(320px,1fr);gap:16px}
.admin-shell .home-side{gap:16px}
.admin-shell .home-panel{padding:16px;border:1px solid var(--ui-line);border-radius:12px}
.admin-shell .home-panel__head{align-items:center;margin-bottom:12px}
.admin-shell .home-panel__head h2{font-size:18px}
.admin-shell .home-panel__head a{font-size:11px}
.admin-shell .home-panel__title{display:flex;align-items:center;gap:12px}
.admin-shell .home-panel__title>img{width:36px;height:36px;padding:8px;border-radius:10px;background:#fbf2df}
.admin-shell .home-panel__title p{font-size:11px;color:var(--muted);margin:4px 0 0;line-height:1.4}
.admin-shell .home-agenda{gap:0}
.admin-shell .home-appointment{
  min-height:60px;padding:10px 0;border:0;border-top:1px solid var(--line);
  border-radius:0;background:transparent;grid-template-columns:44px 32px minmax(0,1fr) 64px auto 12px;gap:10px;
}
.admin-shell .home-appointment__avatar{width:32px;height:32px;display:grid!important;place-items:center;background:var(--bone-100);border-radius:50%;font-size:10px;font-weight:700}
.admin-shell .home-appointment__professional{font-size:11px;color:var(--muted)}
.admin-shell .home-appointment__chevron{width:12px;height:12px;opacity:.5}
.admin-shell .home-appointment span strong{font-size:12px}
.admin-shell .home-appointment span small{font-size:11px;line-height:1.4}
.admin-shell .quick-grid{gap:8px;grid-template-columns:1fr 1fr}
.admin-shell .quick-grid a{min-height:68px;padding:12px;border-radius:10px}
.admin-shell .quick-grid strong{font-size:12px}
.admin-shell .quick-grid small{font-size:10px;line-height:1.4}
.admin-shell .quick-grid img{width:20px;height:20px;flex:0 0 auto}
.admin-shell .home-brand-panel h2{font-size:20px}
.admin-shell .home-brand-panel>p:last-child{font-size:12px}
.admin-shell .agenda-controlbar{padding:16px;margin-bottom:16px;gap:16px;align-items:end}
.admin-shell .agenda-controlbar--refined .agenda-controlbar__filters{grid-template-columns:minmax(180px,1fr) minmax(150px,.6fr) auto;gap:12px}
.admin-shell .agenda-context{margin:16px 0 0;gap:8px}
.admin-shell .agenda-context span{font-size:12px}
.admin-shell .agenda-statusbar{padding:12px 0 16px;margin-bottom:16px;flex-wrap:nowrap}
.admin-shell .agenda-statusbar button{font-size:11px}
.admin-shell .agenda-days{gap:16px}
.admin-shell .agenda-day{margin:0}
.admin-shell .agenda-day>header h3{font-size:14px}
.admin-shell .agenda-day>header span{font-size:11px}
.admin-shell .appointment-card{min-height:72px;gap:12px;grid-template-columns:72px minmax(0,1fr) 88px 120px 16px;border-radius:10px}
.admin-shell .appointment-card--scheduled,.admin-shell .appointment-card--pending{--appointment-state:#315f70}
.admin-shell .appointment-card--completed{--appointment-state:var(--success)}
.admin-shell .appointment-card__main strong{font-size:13px}
.admin-shell .appointment-card__main small{font-size:11px;line-height:1.4}
.admin-shell .appointment-card__main span,.admin-shell .appointment-card__time small{font-size:10px;line-height:1.4}
.admin-shell .appointment-card__value{font-size:12px;white-space:nowrap}
.admin-shell .appointment-card{border-left-color:var(--appointment-state)!important}
@media(max-width:1200px){
  .admin-shell .home-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-shell .home-grid{grid-template-columns:minmax(0,1fr)}
  .admin-shell .home-side{grid-template-columns:1fr 1fr}
  .admin-shell .agenda-controlbar--refined{grid-template-columns:1fr}
}
@media(max-width:900px){
  .admin-shell .admin-main{margin-left:0}
  .admin-shell .admin-topbar{padding:0 16px}
  .admin-shell .admin-content{width:auto;margin:0;padding:16px 16px 104px}
  .admin-shell .admin-heading{min-height:0;margin-bottom:16px}
  .admin-shell .admin-heading .c-title{font-size:28px}
  .admin-shell .admin-mobilebar{left:0!important;right:0!important;bottom:0!important;border-radius:0!important;border-width:1px 0 0!important;padding:4px 8px calc(4px + env(safe-area-inset-bottom))!important;box-shadow:none}
  .admin-shell .admin-mobilebar:not(.is-professional):not(.is-restricted){grid-template-columns:repeat(5,minmax(0,1fr))}
  .admin-shell .admin-mobilebar{background:var(--ink-950);border-color:#303438!important}
  .admin-shell .admin-mobilebar a{color:var(--bone-200);position:relative}
  .admin-shell .admin-mobilebar a img{filter:brightness(0) invert(1)}
  .admin-shell .admin-mobilebar a.is-active{background:transparent!important;color:#e3b46d!important}
  .admin-shell .admin-mobilebar a.is-active:before{content:"";position:absolute;top:-4px;left:30%;right:30%;height:3px;background:var(--tenant-primary);border-radius:0 0 3px 3px}
  .admin-shell .workspace-hero{min-height:0;padding:20px;align-items:stretch}
  .admin-shell .workspace-hero__actions{flex-direction:row}
}
@media(max-width:639px){
  .admin-shell .home-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .admin-shell .home-metric,.admin-shell .home-metric+.home-metric{padding:12px;min-height:108px;gap:8px}
  .admin-shell .home-metric__icon{width:28px;height:28px;border-radius:8px}
  .admin-shell .home-metric__icon:before{width:18px;height:18px}
  .admin-shell .home-metric__chevron{display:none}
  .admin-shell .home-metric small{font-size:11px}
  .admin-shell .home-metric__body>span{font-size:10px}
  .admin-shell .home-metric strong{font-size:24px}
  .admin-shell .home-side{grid-template-columns:1fr}
  .admin-shell .workspace-hero{gap:16px;min-height:144px;padding:16px}
  .admin-shell .workspace-hero__copy{max-width:76%}
  .admin-shell .workspace-hero__copy h1{font-size:26px}
  .admin-shell .workspace-hero:after{background:linear-gradient(100deg,var(--bone-100),rgba(244,240,232,.94) 55%,rgba(244,240,232,.12) 100%)}
  .admin-shell .workspace-hero__copy>p:last-child{font-size:12px}
  .admin-shell .workspace-hero__actions{display:none}
  .admin-shell .workspace-hero__actions .c-button{flex:1}
  .admin-shell .home-panel__head a{max-width:82px;text-align:right;line-height:1.4}
  .admin-shell .home-appointment{gap:8px;grid-template-columns:40px 28px minmax(0,1fr) auto 10px}
  .admin-shell .home-appointment__avatar{width:28px;height:28px}
  .admin-shell .home-appointment__professional{display:none}
  .admin-shell .home-appointment span small{font-size:10px}
  .admin-shell .agenda-controlbar--refined .agenda-controlbar__filters{grid-template-columns:minmax(0,1fr) auto;gap:8px}
  .admin-shell .agenda-search{grid-column:1/-1}
  .admin-shell .agenda-clear{width:auto;align-self:end;padding:0 10px}
  .admin-shell .agenda-context{align-items:flex-start;flex-direction:column}
  .admin-shell .appointment-card{grid-template-columns:44px minmax(0,1fr) auto!important;gap:8px!important;min-height:84px!important;padding:12px 8px!important}
  .admin-shell .appointment-card__time{padding-left:0;align-self:start;grid-column:1;grid-row:1}
  .admin-shell .appointment-card__main{min-width:0;grid-column:2;grid-row:1}
  .admin-shell .appointment-card__main strong{overflow-wrap:anywhere}
  .admin-shell .appointment-card__status{grid-column:3;grid-row:1;justify-self:end;align-self:start}
  .admin-shell .appointment-card__main span{display:none}
  .admin-shell .appointment-card__value,.admin-shell .appointment-card__chevron{display:none}
}
@media(max-width:359px){
  .admin-shell .home-metric,.admin-shell .home-metric+.home-metric{flex-direction:column;min-height:120px;padding:12px}
  .admin-shell .home-appointment__avatar{display:none!important}
  .admin-shell .home-appointment{grid-template-columns:36px minmax(0,1fr) auto 10px;gap:6px}
}

.admin-shell .home-summary-status{font-size:12px;color:var(--muted);margin:0 0 16px}
/* Rodada financeira: componentes existentes, escopo restrito aos módulos. */
.admin-shell #module:is([data-route-module="financeiro"],[data-route-module="relatorios"]) .module-subnav{flex-wrap:nowrap;overflow-x:auto;max-width:100%;white-space:nowrap}
.admin-shell #module:is([data-route-module="financeiro"],[data-route-module="relatorios"]) .module-subnav button{flex:0 0 auto;min-height:44px;font-size:13px}
.admin-shell .financial-empty{display:grid;justify-items:center;gap:8px;padding:32px 16px!important;text-align:center}
.admin-shell .financial-empty strong{font-size:16px}.admin-shell .financial-empty p{margin:0;font-size:13px;max-width:48ch}
.admin-shell .financial-feedback{display:grid;gap:12px;margin-bottom:16px}.admin-shell .financial-feedback .c-button{justify-self:start}
.admin-shell .financial-list-head{display:grid;grid-template-columns:92px minmax(0,1.4fr) minmax(0,.7fr) 110px 154px;gap:16px;padding:8px 16px;color:var(--muted);font-size:12px}
.admin-shell #module[data-route-module="financeiro"] .finance-period{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:12px 16px!important}
.admin-shell #module[data-route-module="financeiro"] .finance-period .c-field{flex:0 1 190px;min-width:0}
.admin-shell #module[data-route-module="financeiro"] .finance-headline{margin-bottom:16px;gap:12px;border:0!important;background:none!important;overflow:visible}
.admin-shell #module[data-route-module="financeiro"] .finance-headline>div{border:1px solid var(--line);border-radius:12px;background:var(--surface);min-width:0}
.admin-shell #module[data-route-module="financeiro"] .finance-headline small{font-size:12px;text-transform:none;letter-spacing:0}
.admin-shell #module[data-route-module="financeiro"] .finance-headline strong{font-size:24px;font-variant-numeric:tabular-nums}
.admin-shell #module[data-route-module="financeiro"]>.module-subnav{border:0!important;background:none!important;gap:10px;padding:0!important}
.admin-shell #module[data-route-module="financeiro"]>.module-subnav button{display:flex;align-items:center;gap:9px;padding:12px 16px!important;border:1px solid var(--line)!important;background:var(--surface)!important;border-radius:12px;font-size:13px!important}
.admin-shell #module[data-route-module="financeiro"]>.module-subnav button.is-active{background:var(--brand-primary-light)!important;color:var(--tenant-primary);border-color:var(--brand-primary-light)}
.admin-shell #module[data-route-module="financeiro"]>.module-subnav img{width:20px;height:20px}
.admin-shell #module[data-route-module="financeiro"] .finance-tab-short{display:none}
.admin-shell #module[data-route-module="financeiro"]>.module-subnav button.is-active{border-color:var(--tenant-primary)!important;box-shadow:inset 0 -2px var(--tenant-primary);color:var(--text)}
.admin-shell #module[data-route-module="financeiro"] .finance-period-title{flex-basis:100%;grid-column:1/-1;font-size:14px;font-weight:700;margin:0 0 -6px}
.admin-shell #module[data-route-module="financeiro"] :is(.finance-period,.finance-empty) .c-button{font-size:13px!important;min-width:150px;min-height:44px}
.admin-shell #module[data-route-module="financeiro"] .finance-headline span{font-size:12px}
.admin-shell #module[data-route-module="financeiro"] .finance-headline{gap:0;border:1px solid var(--line)!important;background:var(--surface)!important;border-radius:12px;overflow:hidden}
.admin-shell #module[data-route-module="financeiro"] .finance-headline>div{position:relative;border:0;border-radius:0;background:none;padding:20px 18px 20px 94px!important}
.admin-shell #module[data-route-module="financeiro"] .finance-headline>div+div{border-left:1px solid var(--line)}
.admin-shell #module[data-route-module="financeiro"] .finance-headline>div::before{content:"";position:absolute;left:18px;top:50%;transform:translateY(-50%);width:56px;height:56px;background:var(--success);mask:url('/assets/icons/money.svg') center/30px no-repeat;z-index:1}
.admin-shell #module[data-route-module="financeiro"] .finance-headline>div::after{content:"";position:absolute;left:18px;top:50%;transform:translateY(-50%);width:56px;height:56px;border-radius:12px;background:color-mix(in srgb,var(--success) 10%,transparent)}
.admin-shell #module[data-route-module="financeiro"] .finance-headline>div+div::after{background:var(--brand-primary-light)}
.admin-shell #module[data-route-module="financeiro"] .finance-headline>div+div::before{background:var(--tenant-primary);mask-image:url('/assets/icons/calendar.svg')}
.admin-shell #module[data-route-module="financeiro"] .finance-headline>div+div strong{font-size:clamp(16px,1.6vw,22px)}
.admin-shell #module[data-route-module="financeiro"] .finance-empty{min-height:260px;border-style:dashed;background:var(--surface);align-content:center;gap:12px}
.admin-shell #module[data-route-module="financeiro"] .finance-empty>img{width:58px;height:58px;opacity:.25}
.admin-shell #module[data-route-module="financeiro"] .finance-empty>strong{color:var(--text);font-size:18px}
@media(max-width:600px){
 .admin-shell #module[data-route-module="financeiro"]>.module-subnav{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;overflow:visible;align-items:stretch}
 .admin-shell #module[data-route-module="financeiro"]>.module-subnav button{justify-content:center;gap:0;padding:8px 6px!important;min-width:0;height:44px;white-space:nowrap!important;font-size:12px!important;line-height:1.2}
 .admin-shell #module[data-route-module="financeiro"]>.module-subnav img,.admin-shell #module[data-route-module="financeiro"] .finance-tab-label{display:none}
 .admin-shell #module[data-route-module="financeiro"] .finance-tab-short{display:inline}
 .admin-shell #module[data-route-module="financeiro"] .finance-headline>div{padding:16px 12px 16px 68px!important}
 .admin-shell #module[data-route-module="financeiro"] .finance-headline>div::before{left:12px;width:42px;height:42px;mask-size:26px}
 .admin-shell #module[data-route-module="financeiro"] .finance-headline>div::after{left:12px;width:42px;height:42px}
 .admin-shell #module[data-route-module="financeiro"] .finance-headline>div+div{border-left:0;border-top:1px solid var(--line)}
 .admin-shell #module[data-route-module="financeiro"] .finance-empty{min-height:230px}
}
.admin-shell #module[data-route-module="financeiro"] .finance-records article{grid-template-columns:92px minmax(0,1.4fr) minmax(0,.7fr) 110px 154px;gap:16px;min-width:0}
.admin-shell #module[data-route-module="financeiro"] .finance-record__main{min-width:0}
.admin-shell #module[data-route-module="financeiro"] .finance-record__main strong{font-size:14px;overflow-wrap:anywhere}
.admin-shell #module[data-route-module="financeiro"] .finance-record__main :is(span,small){font-size:12px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.admin-shell #module[data-route-module="financeiro"] .finance-record__amount{text-align:right;font-variant-numeric:tabular-nums}
.admin-shell #module[data-route-module="financeiro"] .finance-record__amount strong{font-size:18px;white-space:nowrap}
.admin-shell #module[data-route-module="financeiro"] .finance-record__amount :is(small,span){font-size:12px}
.admin-shell #module[data-route-module="financeiro"] .finance-record__action .c-button{min-width:0;width:100%;font-size:12px}
.admin-shell #module[data-route-module="relatorios"] #report-toolbar{display:grid!important;grid-template-columns:repeat(2,minmax(110px,.7fr)) repeat(2,minmax(140px,1fr)) minmax(100px,.6fr) auto;gap:12px;align-items:end;padding:12px 16px!important}
.admin-shell #module[data-route-module="relatorios"] #report-toolbar .c-field{min-width:0}
.admin-shell #module[data-route-module="relatorios"] #report-toolbar [hidden]{display:none!important}
.admin-shell #module[data-route-module="relatorios"] :is(.report-primary-metrics,.report-client-metrics){gap:12px;border:0;background:none;overflow:visible;margin-bottom:16px}
.admin-shell #module[data-route-module="relatorios"] :is(.report-primary-metrics,.report-client-metrics)>article{min-width:0;border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:14px}
.admin-shell #module[data-route-module="relatorios"] :is(.report-primary-metrics,.report-client-metrics) small{font-size:12px;letter-spacing:0;text-transform:none;color:var(--text)}
.admin-shell #module[data-route-module="relatorios"] :is(.report-primary-metrics,.report-client-metrics) strong{font-size:23px;line-height:1.3;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--text)}
.admin-shell #module[data-route-module="relatorios"] :is(.report-primary-metrics,.report-client-metrics) span{font-size:12px;line-height:1.5}
.admin-shell #module[data-route-module="relatorios"] .report-primary-metrics--operation strong{font-size:22px}
.admin-shell #module[data-route-module="relatorios"] .report-section{margin-top:20px}
.admin-shell #module[data-route-module="relatorios"] :is(.report-panel,.intelligence-peaks,.intelligence-goals-section){padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.admin-shell #module[data-route-module="relatorios"] :is(.report-team-list,.report-service-list) article{min-width:0;gap:12px;grid-template-columns:minmax(0,1.4fr) repeat(4,minmax(0,.8fr))}
.admin-shell #module[data-route-module="relatorios"] .report-service-list article{grid-template-columns:minmax(0,1.4fr) repeat(3,minmax(0,.8fr))}
.admin-shell #module[data-route-module="relatorios"] :is(.report-team-list,.report-service-list,.report-comparison-grid,.report-status-grid,.demand-peak-cards,.goals-list) :is(small,span){font-size:12px;line-height:1.5}
.admin-shell #module[data-route-module="relatorios"] .goal-card{grid-template-columns:minmax(0,1.5fr) repeat(2,minmax(0,.7fr)) minmax(0,.8fr) auto auto}
.admin-shell #module[data-route-module="relatorios"] .goal-card>*{min-width:0;overflow-wrap:anywhere}
@media(max-width:1100px){
 .admin-shell #module[data-route-module="relatorios"] .goal-card{grid-template-columns:repeat(3,minmax(0,1fr))}
 .admin-shell #module[data-route-module="relatorios"] .goal-card__identity{grid-column:1/-1}
 .admin-shell #module[data-route-module="relatorios"] .goal-card__progress{grid-column:1}
 .admin-shell #module[data-route-module="relatorios"] .goal-card>[data-goal-open]{grid-column:3;width:100%}
}
@media(max-width:600px){
 .admin-shell #module[data-route-module="relatorios"] .goal-card{grid-template-columns:repeat(2,minmax(0,1fr))}
 .admin-shell #module[data-route-module="relatorios"] .goal-card__progress,.admin-shell #module[data-route-module="relatorios"] .goal-card>[data-goal-open]{grid-column:1/-1}
}
.admin-shell #module[data-route-module="relatorios"] :is(.report-team-list,.report-service-list) strong{font-size:14px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.admin-shell #module[data-route-module="relatorios"] :is(.report-team-list,.report-service-list) article>div:not(:first-child){text-align:right}
.admin-shell #module[data-route-module="relatorios"] :is(.report-overview-head,.section-title-row,.intelligence-summary-head,.intelligence-goals-intro) p{font-size:13px;line-height:1.5}
.admin-shell #module[data-route-module="relatorios"] :is(.report-payment-methods,.report-quality,.demand-toplist) :is(span,small){font-size:12px}
.admin-shell #module[data-route-module="relatorios"] .report-series-list{grid-template-columns:1fr;gap:0;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--surface)}
.admin-shell #module[data-route-module="relatorios"] .report-series-list article{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;gap:12px;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:12px 16px}
.admin-shell #module[data-route-module="relatorios"] .report-series-list :is(span,small){font-size:12px}.admin-shell #module[data-route-module="relatorios"] .report-series-list strong{font-size:14px;text-align:right;font-variant-numeric:tabular-nums}
.admin-shell #module[data-route-module="relatorios"] .report-series-list small{text-align:right}
@media(max-width:1100px){
 .admin-shell #module[data-route-module="relatorios"] #report-toolbar{grid-template-columns:repeat(3,minmax(0,1fr))}
 .admin-shell #module[data-route-module="relatorios"] .report-primary-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
 .admin-shell #module[data-route-module="financeiro"] .finance-records article{grid-template-columns:80px minmax(0,1fr) minmax(0,.6fr);gap:12px}
 .admin-shell #module[data-route-module="financeiro"] .finance-record__state{grid-column:2;grid-row:2}
 .admin-shell #module[data-route-module="financeiro"] .finance-record__action{grid-column:3;grid-row:2}
 .admin-shell .financial-list-head{display:none}
}
@media(max-width:768px){
 .admin-shell #module[data-route-module="relatorios"] :is(.report-team-list,.report-service-list) article{grid-template-columns:repeat(2,minmax(0,1fr))}
 .admin-shell #module[data-route-module="relatorios"] :is(.report-team-list__identity,.report-service-list__identity){grid-column:1/-1}
 .admin-shell #module[data-route-module="relatorios"] .report-two-columns{grid-template-columns:1fr}
}
.admin-shell #module[data-route-module="financeiro"] .commission-filterbar{display:block}
.admin-shell #module[data-route-module="financeiro"] .commission-filterbar .finance-period{display:grid;grid-template-columns:repeat(2,minmax(120px,180px)) minmax(180px,230px) minmax(110px,150px);max-width:788px}
.admin-shell #module[data-route-module="financeiro"] .commission-filterbar :is(.c-field,.c-button){min-width:0}
@media(max-width:900px){
 .admin-shell #module[data-route-module="financeiro"] .commission-filterbar .finance-period{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
 .admin-shell #module[data-route-module="financeiro"] .finance-period{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .admin-shell #module[data-route-module="financeiro"] .commission-professional-filter{grid-column:1/-1}
 .admin-shell #module[data-route-module="financeiro"] .finance-period .c-button{grid-column:1/-1}
 .admin-shell #module[data-route-module="financeiro"] .finance-headline{grid-template-columns:1fr!important}
 .admin-shell #module[data-route-module="financeiro"] .finance-records article{grid-template-columns:minmax(0,1fr) auto!important;padding:14px!important;gap:10px!important}
 .admin-shell #module[data-route-module="financeiro"] .finance-record__origin{grid-column:1;grid-row:1}
 .admin-shell #module[data-route-module="financeiro"] .finance-record__state{grid-column:2!important;grid-row:1!important;justify-self:end}
 .admin-shell #module[data-route-module="financeiro"] .finance-record__main{grid-column:1/-1;grid-row:2}
 .admin-shell #module[data-route-module="financeiro"] .finance-record__amount{grid-column:1/-1!important;grid-row:3;text-align:left}
 .admin-shell #module[data-route-module="financeiro"] .finance-record__action{grid-column:1/-1!important;grid-row:4}
 .admin-shell #module[data-route-module="relatorios"] #report-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .admin-shell #module[data-route-module="relatorios"] #report-toolbar :is(.report-filter-professional,.report-filter-service,.report-filter-granularity,#report-refresh){grid-column:1/-1}
 .admin-shell #module[data-route-module="relatorios"] :is(.report-primary-metrics,.report-client-metrics){grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .admin-shell #module[data-route-module="relatorios"] :is(.report-primary-metrics,.report-client-metrics)>article{padding:12px}
 .admin-shell #module[data-route-module="relatorios"] :is(.report-primary-metrics,.report-client-metrics) strong{font-size:20px;white-space:normal;overflow-wrap:anywhere}
 .admin-shell #module[data-route-module="relatorios"] .report-comparison-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .admin-shell #module[data-route-module="relatorios"] .report-series-list article{grid-template-columns:1fr auto}
 .admin-shell #module[data-route-module="relatorios"] .report-series-list small{grid-column:2}
 .admin-shell #module:is([data-route-module="financeiro"],[data-route-module="relatorios"]) .c-input{font-size:16px;min-height:44px}
}
@media(min-width:561px){
 .admin-shell #module[data-route-module="relatorios"] #report-extra-filters,
 .admin-shell #module[data-route-module="relatorios"] #report-extra-filters[hidden]{display:contents!important}
 .admin-shell #module[data-route-module="relatorios"] #report-more-filters{display:none}
}
@media(max-width:560px){
 .admin-shell #module[data-route-module="relatorios"] #report-extra-filters{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:1fr;gap:12px}
 .admin-shell #module[data-route-module="relatorios"] #report-extra-filters[hidden]{display:none!important}
 .admin-shell #module[data-route-module="relatorios"] #report-toolbar #report-more-filters{grid-column:1;grid-row:2}
 .admin-shell #module[data-route-module="relatorios"] #report-toolbar #report-refresh{grid-column:2;grid-row:2}
}
/* Meu desempenho: projeção Core, quatro indicadores e leitura compacta. */
.performance-workspace .performance-controlbar{display:flex!important;align-items:center;gap:12px;flex-wrap:wrap}
.performance-workspace #performance-refresh{margin-left:auto;min-height:44px!important}
.performance-workspace .performance-controlbar .c-segment{display:flex;min-width:0}
.performance-workspace .performance-controlbar .c-segment button{min-height:44px!important;min-width:44px!important}
.performance-workspace .performance-range{width:max-content;margin:0;padding:5px 6px;gap:8px}
.performance-workspace .performance-range .c-icon-button{min-height:44px!important;min-width:44px!important}
.performance-workspace .performance-range__label{height:44px;min-height:44px;min-width:150px;padding:0 10px;border:4px solid transparent;background-clip:padding-box}
.performance-workspace .performance-range[hidden],.performance-workspace .performance-custom-range[hidden]{display:none!important}
.performance-workspace .performance-custom-range{display:grid;grid-template-columns:150px 150px auto;gap:8px;align-items:end}
.performance-workspace .performance-custom-range label{display:grid;gap:4px;font-size:12px;min-width:0}
.performance-workspace .performance-custom-range input{width:100%;min-width:0;min-height:44px}
.performance-workspace #performance-date-feedback{grid-column:1/-1;color:var(--danger);font-size:12px}
.performance-workspace .performance-head{padding:16px 0;border-bottom:0;align-items:center;gap:12px}
.performance-workspace .performance-head h2{font-size:20px}
.performance-workspace .performance-head p,.performance-workspace .performance-attendance span{font-size:12px;line-height:1.5}
.performance-workspace .performance-attendance strong{font-size:15px;line-height:1.4;margin:0 0 4px}
.performance-workspace .performance-main-grid--professional{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;border:0;background:none;overflow:visible;margin:0 0 16px}
.performance-workspace .performance-main-grid--professional article{grid-column:auto;border:1px solid var(--line);border-radius:var(--radius-md,14px);padding:16px;background:var(--surface);min-width:0}
.performance-workspace .performance-main-grid small{font-size:12px;letter-spacing:0;text-transform:none;color:var(--text)}
.performance-workspace .performance-main-grid strong{font-size:24px;font-variant-numeric:tabular-nums;line-height:1.25;margin:8px 0}
.performance-workspace .performance-main-grid span{font-size:12px;line-height:1.4}
.performance-workspace .performance-columns{gap:12px;align-items:start}
.performance-workspace .performance-panel{padding:16px}
.performance-workspace .performance-panel h2{font-size:17px}
.performance-workspace .performance-panel .section-title-row{margin-bottom:12px}
.performance-workspace .performance-panel p{font-size:12px;line-height:1.4}
.performance-workspace .performance-commission-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.performance-workspace .performance-commission-grid>div{padding:12px 4px 0;border-bottom:0;min-width:0}
.performance-workspace .performance-commission-grid small{font-size:12px}
.performance-workspace .performance-commission-grid strong{font-size:18px;font-variant-numeric:tabular-nums}
.performance-workspace .performance-methods{grid-template-columns:1fr}
.performance-workspace .performance-methods>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0}
.performance-workspace .performance-methods small{font-size:13px;overflow-wrap:anywhere}
.performance-workspace .performance-methods strong{font-size:15px;white-space:nowrap;margin:0;font-variant-numeric:tabular-nums}
.owner-profile h2{margin:0;font-size:20px;overflow-wrap:anywhere}
.owner-profile p{color:var(--muted);overflow-wrap:anywhere}
.owner-activation{display:grid;gap:8px}
.owner-activation p{margin:0;font-size:13px}
@media(max-width:900px){
  .performance-workspace .performance-main-grid--professional{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  .performance-workspace .performance-controlbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px;padding:10px}
  .catalog-drawer:has(.owner-profile):not(:has(.module-subnav)){height:auto!important;max-height:90dvh!important;top:auto!important;bottom:0}
  .performance-workspace .performance-controlbar .c-segment{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
  .performance-workspace .performance-controlbar .c-segment button{width:100%;padding:8px 2px;font-size:12px}
  .admin-shell #module.performance-workspace #performance-refresh{margin:0;padding:0;width:44px;height:44px;min-width:44px;font-size:0!important}
  .performance-workspace #performance-refresh::before{content:'↻';font-size:22px}
  .performance-workspace #performance-refresh.is-loading::before{display:none}
  .performance-workspace .performance-range{grid-column:1/-1;grid-row:2;justify-content:center;justify-self:start;min-width:0;max-width:100%}
  .performance-workspace .performance-custom-range{grid-column:1/-1;grid-row:2;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
  .performance-workspace #performance-apply{grid-column:1/-1;min-height:44px}
  .performance-workspace .performance-head{display:grid;gap:8px;padding:12px 0}
  .performance-workspace .performance-attendance{text-align:left}
  .performance-workspace .performance-main-grid--professional{gap:8px}
  .performance-workspace .performance-main-grid--professional article{padding:12px 10px}
  .performance-workspace .performance-main-grid strong{font-size:clamp(17px,5.1vw,22px);white-space:nowrap}
  .performance-workspace .performance-main-grid small{font-size:12px}
  .performance-workspace .performance-main-grid span{font-size:11px}
  .performance-workspace .performance-columns{grid-template-columns:1fr}
  .performance-workspace .performance-panel{padding:12px}
  .performance-workspace .performance-commission-grid strong{font-size:15px;white-space:nowrap}
}
