/* ========================================================================
   FTC UI CONTRACT V2.0.1 — CANONICAL RUNTIME
   Authority: storage/system/ui-contract-v2.json
   Purpose: make the V2 contract executable across the platform while legacy
   module CSS is being consolidated. Attendance Runtime 2 remains isolated.
   ======================================================================== */
:root{
  --ftc-v2-page-title:31px;--ftc-v2-page-title-mobile:27px;
  --ftc-v2-section-title:19px;--ftc-v2-subsection-title:15px;--ftc-v2-modal-title:20px;
  --ftc-v2-body:13px;--ftc-v2-control-font:13px;--ftc-v2-label:12px;--ftc-v2-table:12px;
  --ftc-v2-meta:11px;--ftc-v2-micro:10px;--ftc-v2-kpi:26px;
  --ftc-v2-weight-body:400;--ftc-v2-weight-medium:560;--ftc-v2-weight-control:620;
  --ftc-v2-weight-emphasis:650;--ftc-v2-weight-strong:700;
  --ftc-v2-page-top:24px;--ftc-v2-page-x:28px;--ftc-v2-page-bottom:38px;--ftc-v2-page-max:1600px;
  --ftc-v2-card-padding:19px;--ftc-v2-toolbar-padding:10px;
  --ftc-v2-control-h:40px;--ftc-v2-input-h:42px;--ftc-v2-small-h:34px;--ftc-v2-icon-button:38px;
  --ftc-v2-radius-xs:8px;--ftc-v2-radius-sm:10px;--ftc-v2-radius-md:14px;--ftc-v2-radius-lg:18px;--ftc-v2-radius-pill:999px;
  --ftc-v2-tabs-h:45px;--ftc-v2-tabs-gap:22px;
  --ftc-v2-drawer:520px;--ftc-v2-drawer-filter:560px;
  --ftc-v2-modal:520px;--ftc-v2-modal-medium:580px;--ftc-v2-modal-wide:680px;
  --ftc-v2-motion-fast:140ms;--ftc-v2-motion-standard:190ms;--ftc-v2-motion-slow:230ms;
}

/* Typography and page rhythm. The selectors are intentionally scoped to the
   FTC workspace so public/standalone pages keep their own contract. */
body.ftc-ui2:not(.attendance-runtime2-frame){font-size:var(--ftc-v2-body);font-weight:var(--ftc-v2-weight-body);line-height:1.5}
body.ftc-ui2.platform-workspace-frame:not(.attendance-runtime2-frame) .content-shell{width:min(var(--ftc-v2-page-max),100%);padding:var(--ftc-v2-page-top) var(--ftc-v2-page-x) var(--ftc-v2-page-bottom)}
body.ftc-ui2:not(.attendance-runtime2-frame) .page-head{align-items:flex-start;gap:24px;margin-bottom:18px}
body.ftc-ui2:not(.attendance-runtime2-frame) .page-head h1,
body.ftc-ui2:not(.attendance-runtime2-frame) h1{font-size:var(--ftc-v2-page-title);font-weight:var(--ftc-v2-weight-emphasis);line-height:1.08;letter-spacing:-.036em}
body.ftc-ui2:not(.attendance-runtime2-frame) .section-head h2,
body.ftc-ui2:not(.attendance-runtime2-frame) h2{font-size:var(--ftc-v2-section-title);font-weight:var(--ftc-v2-weight-control);line-height:1.2;letter-spacing:-.022em}
body.ftc-ui2:not(.attendance-runtime2-frame) h3{font-size:var(--ftc-v2-subsection-title);font-weight:var(--ftc-v2-weight-control);line-height:1.25;letter-spacing:-.014em}
body.ftc-ui2:not(.attendance-runtime2-frame) .eyebrow{font-size:var(--ftc-v2-micro);font-weight:var(--ftc-v2-weight-emphasis);line-height:1.35;letter-spacing:.095em;text-transform:none;color:var(--ftc-text-muted)}
body.ftc-ui2:not(.attendance-runtime2-frame) .page-head .muted,
body.ftc-ui2:not(.attendance-runtime2-frame) .section-head p{font-size:var(--ftc-v2-body);line-height:1.5}
body.ftc-ui2:not(.attendance-runtime2-frame) .actions{gap:8px}

/* Canonical surfaces. V1 still contains migration shims with !important;
   these V2 declarations deliberately carry the same migration priority until
   the V1 runtime is retired. */
body.ftc-ui2:not(.attendance-runtime2-frame) .card{border-radius:var(--ftc-v2-radius-lg)!important;padding:var(--ftc-v2-card-padding);box-shadow:var(--ftc-shadow-1)!important}
body.ftc-ui2:not(.attendance-runtime2-frame) .compact-card{padding:16px}
body.ftc-ui2:not(.attendance-runtime2-frame) .section-head{align-items:flex-end;gap:16px;margin-bottom:13px}
body.ftc-ui2:not(.attendance-runtime2-frame) .section-head h2{margin:4px 0 0}

/* Controls */
body.ftc-ui2:not(.attendance-runtime2-frame) .btn{min-height:var(--ftc-v2-control-h);padding:0 14px;border-radius:var(--ftc-v2-radius-sm);font-size:var(--ftc-v2-control-font);font-weight:var(--ftc-v2-weight-control);transition:background var(--ftc-v2-motion-fast) var(--ftc-ease),border-color var(--ftc-v2-motion-fast) var(--ftc-ease),color var(--ftc-v2-motion-fast) var(--ftc-ease),transform var(--ftc-v2-motion-fast) var(--ftc-ease)}
body.ftc-ui2:not(.attendance-runtime2-frame) .btn.compact,
body.ftc-ui2:not(.attendance-runtime2-frame) .btn.small{min-height:var(--ftc-v2-small-h);padding:0 12px;font-size:12px;font-weight:var(--ftc-v2-weight-control)}
body.ftc-ui2:not(.attendance-runtime2-frame) .icon-button{width:var(--ftc-v2-icon-button);height:var(--ftc-v2-icon-button);border-radius:var(--ftc-v2-radius-sm)}
body.ftc-ui2:not(.attendance-runtime2-frame) label{gap:6px;font-size:var(--ftc-v2-label);font-weight:var(--ftc-v2-weight-control);color:var(--ftc-text-soft)}
body.ftc-ui2:not(.attendance-runtime2-frame) input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.ftc-ui2:not(.attendance-runtime2-frame) select{min-height:var(--ftc-v2-input-h);border-radius:var(--ftc-v2-radius-sm);font-size:var(--ftc-v2-body)}
body.ftc-ui2:not(.attendance-runtime2-frame) textarea{border-radius:var(--ftc-v2-radius-sm);font-size:var(--ftc-v2-body);line-height:1.5}
body.ftc-ui2:not(.attendance-runtime2-frame) .text-link{font-size:var(--ftc-v2-table);font-weight:var(--ftc-v2-weight-control)}

/* Primary module navigation: one transparent line, no pill/card container. */
body.ftc-ui2:not(.attendance-runtime2-frame) :is(.projects-tabs,.crm-tabs,.content-tabs-primary,.automation-tabs,.finance-tabs,.finance-v08-tabs){
  min-height:var(--ftc-v2-tabs-h);display:flex;align-items:stretch;gap:var(--ftc-v2-tabs-gap);padding:0;margin:0 0 18px;
  border:0;border-bottom:1px solid var(--ftc-border);border-radius:0;background:transparent;box-shadow:none;overflow-x:auto;overflow-y:hidden;
  scrollbar-width:thin;
}
body.ftc-ui2:not(.attendance-runtime2-frame) :is(.projects-tabs,.crm-tabs,.content-tabs-primary,.automation-tabs,.finance-tabs,.finance-v08-tabs)>a,
body.ftc-ui2:not(.attendance-runtime2-frame) :is(.projects-tabs,.crm-tabs,.content-tabs-primary,.automation-tabs,.finance-tabs,.finance-v08-tabs)>.tab{
  position:relative;min-height:var(--ftc-v2-tabs-h);display:inline-flex;align-items:center;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;
  color:var(--ftc-text-muted);font-size:var(--ftc-v2-control-font);font-weight:var(--ftc-v2-weight-medium);text-decoration:none;white-space:nowrap;
}
body.ftc-ui2:not(.attendance-runtime2-frame) :is(.projects-tabs,.crm-tabs,.content-tabs-primary,.automation-tabs,.finance-tabs,.finance-v08-tabs)>a:hover,
body.ftc-ui2:not(.attendance-runtime2-frame) :is(.projects-tabs,.crm-tabs,.content-tabs-primary,.automation-tabs,.finance-tabs,.finance-v08-tabs)>.tab:hover{background:transparent;color:var(--ftc-text)}
body.ftc-ui2:not(.attendance-runtime2-frame) :is(.projects-tabs,.crm-tabs,.content-tabs-primary,.automation-tabs,.finance-tabs,.finance-v08-tabs)>a.active,
body.ftc-ui2:not(.attendance-runtime2-frame) :is(.projects-tabs,.crm-tabs,.content-tabs-primary,.automation-tabs,.finance-tabs,.finance-v08-tabs)>a.is-active,
body.ftc-ui2:not(.attendance-runtime2-frame) :is(.projects-tabs,.crm-tabs,.content-tabs-primary,.automation-tabs,.finance-tabs,.finance-v08-tabs)>.tab.active{
  color:var(--ftc-text);font-weight:var(--ftc-v2-weight-control);background:transparent;box-shadow:none;
}
body.ftc-ui2:not(.attendance-runtime2-frame) :is(.projects-tabs,.crm-tabs,.content-tabs-primary,.automation-tabs,.finance-tabs,.finance-v08-tabs)>a.active::after,
body.ftc-ui2:not(.attendance-runtime2-frame) :is(.projects-tabs,.crm-tabs,.content-tabs-primary,.automation-tabs,.finance-tabs,.finance-v08-tabs)>a.is-active::after,
body.ftc-ui2:not(.attendance-runtime2-frame) :is(.projects-tabs,.crm-tabs,.content-tabs-primary,.automation-tabs,.finance-tabs,.finance-v08-tabs)>.tab.active::after{
  content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;border-radius:2px;background:var(--ftc-text);
}

/* Legacy .tabs bridge. It remains segmented only when explicitly marked as
   status/view control; module navigation receives the primary grammar above. */
body.ftc-ui2:not(.attendance-runtime2-frame) .tabs:not(.automation-tabs){font-size:var(--ftc-v2-control-font)}
body.ftc-ui2:not(.attendance-runtime2-frame) :is(.segmented,.view-switch,.status-switch,.content-view-switch){border-radius:var(--ftc-v2-radius-md);font-size:var(--ftc-v2-table)}

/* Filter / toolbar surface */
body.ftc-ui2:not(.attendance-runtime2-frame) :is(.filters,.projects-toolbar,.projects-management-toolbar,.projects-workflow-toolbar,.crm-task-toolbar,.crm-filter-content,.content-board-toolbar,.content-list-filter,.content-publication-filter,.content-calendar-filterbar,.automation-filter-bar,.finance-filter-bar){
  gap:8px;border-radius:var(--ftc-v2-radius-md);font-size:var(--ftc-v2-body);
}
body.ftc-ui2:not(.attendance-runtime2-frame) :is(.projects-toolbar,.projects-management-toolbar,.projects-workflow-toolbar,.crm-filter-content,.content-board-toolbar,.content-list-filter,.content-publication-filter,.content-calendar-filterbar){padding:var(--ftc-v2-toolbar-padding)}
body.ftc-ui2:not(.attendance-runtime2-frame) details>summary{font-weight:var(--ftc-v2-weight-control)}

/* Tables and status */
body.ftc-ui2:not(.attendance-runtime2-frame) .table-wrap{border-radius:var(--ftc-v2-radius-md)}
body.ftc-ui2:not(.attendance-runtime2-frame) th{padding:13px 14px;font-size:var(--ftc-v2-micro);font-weight:var(--ftc-v2-weight-emphasis);letter-spacing:.06em}
body.ftc-ui2:not(.attendance-runtime2-frame) td{padding:13px 14px;font-size:var(--ftc-v2-table);font-weight:var(--ftc-v2-weight-body)}
body.ftc-ui2:not(.attendance-runtime2-frame) .badge{min-height:24px;padding:3px 8px;border-radius:var(--ftc-v2-radius-pill);font-size:var(--ftc-v2-micro);font-weight:var(--ftc-v2-weight-control)}
body.ftc-ui2:not(.attendance-runtime2-frame) :is(.metric .value,.kpi-value,.ftc-kpi-value){font-size:var(--ftc-v2-kpi);font-weight:var(--ftc-v2-weight-emphasis);letter-spacing:-.035em}

/* Drawers / overlays */
body.ftc-ui2:not(.attendance-runtime2-frame) .drawer{width:min(var(--ftc-v2-drawer),100%);background:var(--ftc-surface-raised)!important;transition:transform var(--ftc-v2-motion-slow) var(--ftc-ease)}
body.ftc-ui2:not(.attendance-runtime2-frame) .drawer-head{padding:19px 21px}
body.ftc-ui2:not(.attendance-runtime2-frame) .drawer-head h2{font-size:var(--ftc-v2-modal-title);font-weight:var(--ftc-v2-weight-emphasis);line-height:1.2}
body.ftc-ui2:not(.attendance-runtime2-frame) .drawer-body{padding:18px 21px;gap:16px}
body.ftc-ui2:not(.attendance-runtime2-frame) .drawer-foot{padding:12px 21px calc(12px + env(safe-area-inset-bottom));gap:8px;background:var(--ftc-surface-raised)!important}
body.ftc-ui2:not(.attendance-runtime2-frame) .drawer-backdrop{backdrop-filter:blur(2px);transition:opacity var(--ftc-v2-motion-standard) var(--ftc-ease)}

/* Feedback and communication hierarchy */
body.ftc-ui2:not(.attendance-runtime2-frame) :is(.alert,.context-note){border-radius:var(--ftc-v2-radius-md);font-size:var(--ftc-v2-body);line-height:1.5}
body.ftc-ui2:not(.attendance-runtime2-frame) .context-note{padding:12px 14px}
body.ftc-ui2:not(.attendance-runtime2-frame) .empty-state{border-radius:var(--ftc-v2-radius-md)}
body.ftc-ui2:not(.attendance-runtime2-frame) .empty-state strong{font-weight:var(--ftc-v2-weight-emphasis)}

/* Accessible motion and compact layouts */
@media(max-width:720px){
  body.ftc-ui2.platform-workspace-frame:not(.attendance-runtime2-frame) .content-shell{padding:18px 14px 24px}
  body.ftc-ui2:not(.attendance-runtime2-frame) .page-head{flex-direction:column;gap:12px}
  body.ftc-ui2:not(.attendance-runtime2-frame) .page-head h1,
  body.ftc-ui2:not(.attendance-runtime2-frame) h1{font-size:var(--ftc-v2-page-title-mobile)}
  body.ftc-ui2:not(.attendance-runtime2-frame) :is(.projects-tabs,.crm-tabs,.content-tabs-primary,.automation-tabs,.finance-tabs,.finance-v08-tabs){gap:18px}
  body.ftc-ui2:not(.attendance-runtime2-frame) .drawer{width:100%}
}
@media(prefers-reduced-motion:reduce){
  body.ftc-ui2:not(.attendance-runtime2-frame) *,body.ftc-ui2:not(.attendance-runtime2-frame) *::before,body.ftc-ui2:not(.attendance-runtime2-frame) *::after{
    animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important;
  }
}



html[data-ftc-effective-theme="dark"] body.ftc-ui2:not(.attendance-runtime2-frame){color:var(--ftc-text)}
html[data-ftc-effective-theme="dark"] body.ftc-ui2:not(.attendance-runtime2-frame) .text-link{color:var(--ftc-text-soft)!important}
html[data-ftc-effective-theme="dark"] body.ftc-ui2:not(.attendance-runtime2-frame) .text-link:hover{color:var(--ftc-text)!important}

html[data-ftc-effective-theme="dark"] body.ftc-ui2:not(.attendance-runtime2-frame) :is(.projects-tabs,.crm-tabs,.content-tabs-primary,.automation-tabs,.finance-tabs,.finance-v08-tabs)>a,
html[data-ftc-effective-theme="dark"] body.ftc-ui2:not(.attendance-runtime2-frame) :is(.projects-tabs,.crm-tabs,.content-tabs-primary,.automation-tabs,.finance-tabs,.finance-v08-tabs)>.tab{color:var(--ftc-text-muted)!important;background:transparent!important}
html[data-ftc-effective-theme="dark"] body.ftc-ui2:not(.attendance-runtime2-frame) :is(.projects-tabs,.crm-tabs,.content-tabs-primary,.automation-tabs,.finance-tabs,.finance-v08-tabs)>a.active,
html[data-ftc-effective-theme="dark"] body.ftc-ui2:not(.attendance-runtime2-frame) :is(.projects-tabs,.crm-tabs,.content-tabs-primary,.automation-tabs,.finance-tabs,.finance-v08-tabs)>a.is-active,
html[data-ftc-effective-theme="dark"] body.ftc-ui2:not(.attendance-runtime2-frame) :is(.projects-tabs,.crm-tabs,.content-tabs-primary,.automation-tabs,.finance-tabs,.finance-v08-tabs)>.tab.active{color:var(--ftc-text)!important}
html[data-ftc-effective-theme="dark"] body.ftc-ui2:not(.attendance-runtime2-frame) :is(.projects-tabs,.crm-tabs,.content-tabs-primary,.automation-tabs,.finance-tabs,.finance-v08-tabs)>a.active::after,
html[data-ftc-effective-theme="dark"] body.ftc-ui2:not(.attendance-runtime2-frame) :is(.projects-tabs,.crm-tabs,.content-tabs-primary,.automation-tabs,.finance-tabs,.finance-v08-tabs)>a.is-active::after,
html[data-ftc-effective-theme="dark"] body.ftc-ui2:not(.attendance-runtime2-frame) :is(.projects-tabs,.crm-tabs,.content-tabs-primary,.automation-tabs,.finance-tabs,.finance-v08-tabs)>.tab.active::after{background:var(--ftc-text)!important}

html[data-ftc-effective-theme="dark"] body.ftc-ui2.platform-workspace-frame:not(.attendance-runtime2-frame) .empty-state{background:var(--ftc-surface-soft)!important;border-color:var(--ftc-border-strong)!important;color:var(--ftc-text)!important;box-shadow:none!important}
html[data-ftc-effective-theme="dark"] body.ftc-ui2.platform-workspace-frame:not(.attendance-runtime2-frame) .empty-state strong{color:var(--ftc-text)!important}
html[data-ftc-effective-theme="dark"] body.ftc-ui2.platform-workspace-frame:not(.attendance-runtime2-frame) .empty-state span{color:var(--ftc-text-muted)!important}
html[data-ftc-effective-theme="dark"] body.ftc-ui2.platform-workspace-frame:not(.attendance-runtime2-frame) .list-row{background:var(--ftc-surface-soft)!important;border-color:var(--ftc-border)!important;color:var(--ftc-text)!important}
html[data-ftc-effective-theme="dark"] body.ftc-ui2.platform-workspace-frame:not(.attendance-runtime2-frame) .list-row:hover{background:var(--ftc-surface-raised)!important}
html[data-ftc-effective-theme="dark"] body.ftc-ui2.platform-workspace-frame:not(.attendance-runtime2-frame) .list-title{color:var(--ftc-text)!important}
html[data-ftc-effective-theme="dark"] body.ftc-ui2.platform-workspace-frame:not(.attendance-runtime2-frame) .list-meta{color:var(--ftc-text-muted)!important}

html[data-ftc-effective-theme="dark"] body.ftc-ui2:not(.attendance-runtime2-frame) :is(.context-note.warning,.alert.warning){background:var(--ftc-warning-soft)!important;border-color:color-mix(in srgb,var(--ftc-warning) 34%,var(--ftc-border))!important;color:var(--ftc-text-soft)!important}
html[data-ftc-effective-theme="dark"] body.ftc-ui2:not(.attendance-runtime2-frame) :is(.context-note.warning,.alert.warning) strong{color:var(--ftc-warning)!important}

/* Shell controls must belong to the same dark surface hierarchy. */
html[data-ftc-effective-theme="dark"] body.ftc-ui2.platform-shell-body .app-topbar{background:color-mix(in srgb,var(--ftc-surface) 94%,transparent)!important;border-bottom-color:var(--ftc-border)!important;box-shadow:0 1px 0 rgba(255,255,255,.025)!important}
html[data-ftc-effective-theme="dark"] body.ftc-ui2.platform-shell-body .topbar-title{color:var(--ftc-text-faint)!important}
html[data-ftc-effective-theme="dark"] body.ftc-ui2.platform-shell-body .topbar-title strong{color:var(--ftc-text)!important}
html[data-ftc-effective-theme="dark"] body.ftc-ui2.platform-shell-body .icon-button,
html[data-ftc-effective-theme="dark"] body.ftc-ui2.platform-shell-body .user-chip,
html[data-ftc-effective-theme="dark"] body.ftc-ui2.platform-shell-body .ftc-command-trigger,
html[data-ftc-effective-theme="dark"] body.ftc-ui2.platform-shell-body .ftc-client-context{background:var(--ftc-surface-raised)!important;border-color:var(--ftc-border-strong)!important;color:var(--ftc-text-soft)!important;box-shadow:var(--ftc-shadow-1)!important}
html[data-ftc-effective-theme="dark"] body.ftc-ui2.platform-shell-body .icon-button:hover{background:color-mix(in srgb,var(--ftc-surface-raised) 82%,var(--ftc-text) 6%)!important;color:var(--ftc-text)!important}
html[data-ftc-effective-theme="dark"] body.ftc-ui2.platform-shell-body .avatar{background:var(--ftc-surface-soft)!important;color:var(--ftc-text-soft)!important}
html[data-ftc-effective-theme="dark"] body.ftc-ui2.platform-shell-body .user-meta strong,
html[data-ftc-effective-theme="dark"] body.ftc-ui2.platform-shell-body .ftc-client-context strong{color:var(--ftc-text)!important}
html[data-ftc-effective-theme="dark"] body.ftc-ui2.platform-shell-body .user-meta small,
html[data-ftc-effective-theme="dark"] body.ftc-ui2.platform-shell-body .ftc-client-context button{color:var(--ftc-text-muted)!important}
html[data-ftc-effective-theme="dark"] body.ftc-ui2.platform-shell-body .ftc-command-trigger kbd{background:var(--ftc-surface-soft)!important;border-color:var(--ftc-border-strong)!important;color:var(--ftc-text-muted)!important}
html[data-ftc-effective-theme="dark"] body.ftc-ui2.platform-shell-body .ftc-sidebar-collapse-control{background:var(--ftc-surface-raised)!important;border-color:var(--ftc-border-strong)!important;color:var(--ftc-text-soft)!important;box-shadow:var(--ftc-shadow-1)!important}
html[data-ftc-effective-theme="dark"] body.ftc-ui2.platform-shell-body .ftc-sidebar-collapse-control:hover{color:var(--ftc-text)!important}

/* Core settings/dashboard surfaces observed in runtime R1. */
html[data-ftc-effective-theme="dark"] body.ftc-ui2[data-ftc-route="configuracoes"] :is(.core046-settings-hero,.core-settings-card){background:var(--ftc-surface)!important;border-color:var(--ftc-border)!important;color:var(--ftc-text)!important}
html[data-ftc-effective-theme="dark"] body.ftc-ui2[data-ftc-route="configuracoes"] :is(.core046-settings-hero,.core-settings-card) :is(strong,h2){color:var(--ftc-text)!important}
html[data-ftc-effective-theme="dark"] body.ftc-ui2[data-ftc-route="configuracoes"] :is(.core046-settings-hero,.core-settings-card) p{color:var(--ftc-text-muted)!important}
html[data-ftc-effective-theme="dark"] body.ftc-ui2[data-ftc-route="configuracoes"] .core046-settings-search input{background:var(--ftc-surface)!important;border-color:var(--ftc-border-strong)!important;color:var(--ftc-text)!important}
html[data-ftc-effective-theme="dark"] body.ftc-ui2[data-ftc-route="configuracoes"] .core046-settings-search input::placeholder{color:var(--ftc-text-faint)!important}
html[data-ftc-effective-theme="dark"] body.ftc-ui2[data-ftc-route="configuracoes"] .core-settings-icon{background:var(--ftc-surface-soft)!important;border-color:var(--ftc-border)!important;color:var(--ftc-text-soft)!important}
html[data-ftc-effective-theme="dark"] body.ftc-ui2[data-ftc-route="configuracoes"] .core046-progress{background:var(--ftc-surface-soft)!important}



body.ftc-ui2.platform-workspace-frame:not(.attendance-runtime2-frame) .ftc-page-scaffold{
  display:flex!important;align-items:flex-start!important;justify-content:space-between!important;
  gap:24px!important;min-height:0!important;margin:0 0 20px!important;padding:0!important;
  border:0!important;background:transparent!important;box-shadow:none!important;
}
body.ftc-ui2.platform-workspace-frame:not(.attendance-runtime2-frame) .ftc-page-scaffold>div:first-child{min-width:0;max-width:820px}
body.ftc-ui2.platform-workspace-frame:not(.attendance-runtime2-frame) .ftc-page-scaffold .eyebrow{margin:0 0 4px!important}
body.ftc-ui2.platform-workspace-frame:not(.attendance-runtime2-frame) .ftc-page-scaffold h1{
  margin:0!important;font-size:var(--ftc-v2-page-title)!important;font-weight:var(--ftc-v2-weight-emphasis)!important;
  line-height:1.08!important;letter-spacing:-.036em!important;color:var(--ftc-text)!important;
}
body.ftc-ui2.platform-workspace-frame:not(.attendance-runtime2-frame) .ftc-page-scaffold :is(p,.muted){
  max-width:760px;margin:8px 0 0!important;color:var(--ftc-text-muted)!important;
  font-size:var(--ftc-v2-body)!important;font-weight:var(--ftc-v2-weight-body)!important;line-height:1.5!important;
}
body.ftc-ui2.platform-workspace-frame:not(.attendance-runtime2-frame) .ftc-page-scaffold>.actions,
body.ftc-ui2.platform-workspace-frame:not(.attendance-runtime2-frame) .ftc-page-scaffold>[class*="head-actions"]{
  display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;
  flex:0 0 auto!important;flex-wrap:wrap!important;margin:0!important;padding:0!important;
}
body.ftc-ui2.platform-workspace-frame:not(.attendance-runtime2-frame) .ftc-page-scaffold+.ftc-primary-nav,
body.ftc-ui2.platform-workspace-frame:not(.attendance-runtime2-frame) .ftc-page-scaffold+:is(.projects-module-header-tabs,.crm-module-bar,.content-subnav-shell,.automation-tabs,.finance-navigation-shell){margin-top:0!important}
body.ftc-ui2.platform-workspace-frame:not(.attendance-runtime2-frame) .ftc-primary-nav{margin-bottom:18px!important}
@media(max-width:720px){
 body.ftc-ui2.platform-workspace-frame:not(.attendance-runtime2-frame) .ftc-page-scaffold{display:grid!important;grid-template-columns:1fr!important;gap:12px!important;margin-bottom:16px!important}
 body.ftc-ui2.platform-workspace-frame:not(.attendance-runtime2-frame) .ftc-page-scaffold h1{font-size:var(--ftc-v2-page-title-mobile)!important}
 body.ftc-ui2.platform-workspace-frame:not(.attendance-runtime2-frame) .ftc-page-scaffold>.actions,
 body.ftc-ui2.platform-workspace-frame:not(.attendance-runtime2-frame) .ftc-page-scaffold>[class*="head-actions"]{justify-content:flex-start!important;width:100%!important}
}



:root{
  --ftc-v2-page-header-bottom:18px;
  --ftc-v2-primary-nav-bottom:18px;
  --ftc-v2-page-header-min-h:79px;
}

/* One canvas geometry in full shell and workspace frame. */
body.ftc-ui2:not(.attendance-runtime2-frame) .content-shell{
  width:100%!important;
  max-width:var(--ftc-v2-page-max)!important;
  margin:0 auto!important;
  padding:var(--ftc-v2-page-top) var(--ftc-v2-page-x) var(--ftc-v2-page-bottom)!important;
  box-sizing:border-box!important;
}
body.ftc-ui2.platform-workspace-frame:not(.attendance-runtime2-frame) .platform-frame-content{
  width:100%!important;
  max-width:var(--ftc-v2-page-max)!important;
  margin:0 auto!important;
  padding:var(--ftc-v2-page-top) var(--ftc-v2-page-x) var(--ftc-v2-page-bottom)!important;
  box-sizing:border-box!important;
}

/* Canonical module landing header. */
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-page-scaffold{
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:24px!important;
  min-height:var(--ftc-v2-page-header-min-h)!important;
  margin:0 0 var(--ftc-v2-page-header-bottom)!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-page-scaffold>div:first-child{
  min-width:0!important;
  max-width:820px!important;
}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-page-scaffold .eyebrow{
  margin:0 0 4px!important;
  font-size:var(--ftc-v2-micro)!important;
  font-weight:var(--ftc-v2-weight-emphasis)!important;
  line-height:1.35!important;
  letter-spacing:.095em!important;
  color:var(--ftc-text-muted)!important;
}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-page-scaffold h1{
  margin:0!important;
  font-size:var(--ftc-v2-page-title)!important;
  font-weight:var(--ftc-v2-weight-emphasis)!important;
  line-height:1.08!important;
  letter-spacing:-.036em!important;
  color:var(--ftc-text)!important;
}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-page-scaffold :is(p,.muted){
  max-width:760px!important;
  margin:8px 0 0!important;
  font-size:var(--ftc-v2-body)!important;
  font-weight:var(--ftc-v2-weight-body)!important;
  line-height:1.5!important;
  color:var(--ftc-text-muted)!important;
}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-page-scaffold>.actions,
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-page-scaffold>[class*="head-actions"],
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-page-scaffold>.btn{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  flex:0 0 auto!important;
  flex-wrap:wrap!important;
  margin:0!important;
  padding-top:0!important;
}

/* Canonical primary module navigation. */
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-primary-nav{
  position:relative!important;
  top:auto!important;
  display:flex!important;
  align-items:stretch!important;
  gap:var(--ftc-v2-tabs-gap)!important;
  width:100%!important;
  height:var(--ftc-v2-tabs-h)!important;
  min-height:var(--ftc-v2-tabs-h)!important;
  margin:0 0 var(--ftc-v2-primary-nav-bottom)!important;
  padding:0!important;
  border:0!important;
  border-bottom:1px solid var(--ftc-border)!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none!important;
  box-sizing:border-box!important;
}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-primary-nav::-webkit-scrollbar{display:none!important}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-primary-nav>:is(a,.tab,.projects-tab,.content-tab){
  position:relative!important;
  display:inline-flex!important;
  align-items:center!important;
  flex:0 0 auto!important;
  width:auto!important;
  height:var(--ftc-v2-tabs-h)!important;
  min-height:var(--ftc-v2-tabs-h)!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--ftc-text-muted)!important;
  font-size:var(--ftc-v2-control-font)!important;
  font-weight:var(--ftc-v2-weight-medium)!important;
  line-height:1!important;
  white-space:nowrap!important;
  text-decoration:none!important;
}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-primary-nav>:is(a,.tab,.projects-tab,.content-tab):hover{
  color:var(--ftc-text)!important;
}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-primary-nav>:is(a,.tab,.projects-tab,.content-tab).active{
  color:var(--ftc-text)!important;
  font-weight:var(--ftc-v2-weight-control)!important;
}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-primary-nav>:is(a,.tab,.projects-tab,.content-tab)::after{
  content:""!important;
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:-1px!important;
  height:2px!important;
  border-radius:2px 2px 0 0!important;
  background:transparent!important;
}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-primary-nav>:is(a,.tab,.projects-tab,.content-tab).active::after{
  background:var(--ftc-text)!important;
}

/* Projects still carries an older Core structural padding shim. Neutralize it. */
body.ftc-ui2[data-ftc-route="projects"]:not(.attendance-runtime2-frame) .projects-module-shell{
  margin:0 0 var(--ftc-v2-primary-nav-bottom)!important;
  padding:0!important;
  border:0!important;
}
body.ftc-ui2[data-ftc-route="projects"]:not(.attendance-runtime2-frame) .projects-module-shell .page-head.projects-head.ftc-page-scaffold{
  min-height:var(--ftc-v2-page-header-min-h)!important;
  margin:0 0 var(--ftc-v2-page-header-bottom)!important;
  padding:0!important;
}
body.ftc-ui2[data-ftc-route="projects"]:not(.attendance-runtime2-frame) .projects-module-shell .projects-tabs.ftc-primary-nav{
  margin:0!important;
}

/* CRM uses an outer historical module bar. It must not add another layer. */
body.ftc-ui2[data-ftc-route="crm"]:not(.attendance-runtime2-frame) .crm-module-bar{
  position:static!important;
  top:auto!important;
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  margin:0 0 var(--ftc-v2-primary-nav-bottom)!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
body.ftc-ui2[data-ftc-route="crm"]:not(.attendance-runtime2-frame) .crm-module-bar .crm-tabs.ftc-primary-nav{
  margin:0!important;
}

/* Content landing page: root must consume the same canvas as every module. */
body.ftc-ui2[data-ftc-route="conteudo"]:not(.attendance-runtime2-frame) .content-module,
body.ftc-ui2[data-ftc-route="conteudo"]:not(.attendance-runtime2-frame) .content-scaffold-home{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}
body.ftc-ui2[data-ftc-route="conteudo"]:not(.attendance-runtime2-frame) .content-scaffold-home .content-subnav-shell{
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body.ftc-ui2[data-ftc-route="conteudo"]:not(.attendance-runtime2-frame) .content-scaffold-home .content-tabs-primary.ftc-primary-nav{
  margin:0 0 var(--ftc-v2-primary-nav-bottom)!important;
}

/* Finance navigation owns tabs + controls; only the tab band follows the 45px rule. */
body.ftc-ui2[data-ftc-route="financeiro"]:not(.attendance-runtime2-frame) .finance-v08-tabs.ftc-primary-nav{
  margin:0 0 var(--ftc-v2-primary-nav-bottom)!important;
}

/* Automations navigation is already a direct sibling of the scaffold. */
body.ftc-ui2[data-ftc-route="automacoes"]:not(.attendance-runtime2-frame) .automation-tabs.ftc-primary-nav{
  margin:0 0 var(--ftc-v2-primary-nav-bottom)!important;
}

@media(max-width:1100px){
  body.ftc-ui2:not(.attendance-runtime2-frame) .content-shell,
  body.ftc-ui2.platform-workspace-frame:not(.attendance-runtime2-frame) .platform-frame-content{
    padding:20px 20px 32px!important;
  }
}
@media(max-width:760px){
  body.ftc-ui2:not(.attendance-runtime2-frame) .content-shell,
  body.ftc-ui2.platform-workspace-frame:not(.attendance-runtime2-frame) .platform-frame-content{
    padding:18px 14px 24px!important;
  }
  body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-page-scaffold{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:12px!important;
    min-height:0!important;
    margin-bottom:16px!important;
  }
  body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-page-scaffold h1{
    font-size:var(--ftc-v2-page-title-mobile)!important;
  }
  body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-page-scaffold>.actions,
  body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-page-scaffold>[class*="head-actions"],
  body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-page-scaffold>.btn{
    justify-content:flex-start!important;
    width:100%!important;
  }
  body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-primary-nav{
    gap:18px!important;
    margin-bottom:14px!important;
  }
}

/* Defense against legacy module styles that targeted the document body. */
body.ftc-ui2[data-ftc-route="conteudo"]:not(.attendance-runtime2-frame){
  margin:0!important;
  padding:0!important;
  display:block!important;
  place-items:normal!important;
  min-height:100%!important;
}


/* Canonical visually-hidden utility. Required by all shared form primitives. */
body.ftc-ui2:not(.attendance-runtime2-frame) .sr-only{
  position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;
  overflow:hidden!important;clip:rect(0,0,0,0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important;
}

/* R5/R8 — Core owns search, filters and toolbar geometry. */
:root{
  --ftc-v2-filter-control-h:42px;
  --ftc-v2-filter-field-w:220px;
  --ftc-v2-filter-context-w:320px;
  --ftc-v2-filter-popover-w:440px;
  --ftc-v2-search-w:360px;
}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-filter-toolbar{
  position:relative;display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;width:100%;margin:0 0 14px;padding:0;background:transparent;border:0;
}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-filter-field{
  flex:0 1 var(--ftc-v2-filter-field-w);width:min(var(--ftc-v2-filter-field-w),100%);max-width:var(--ftc-v2-filter-field-w);min-width:160px;
}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-context-filter{
  flex:0 1 var(--ftc-v2-filter-context-w);width:min(var(--ftc-v2-filter-context-w),100%);max-width:var(--ftc-v2-filter-context-w);
}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-filter-field>span:not(.sr-only),
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-context-filter>span:not(.sr-only){
  display:block;margin:0 0 5px;color:var(--ftc-text-muted);font-size:var(--ftc-v2-label);font-weight:var(--ftc-v2-weight-control);
}
body.ftc-ui2:not(.attendance-runtime2-frame) :is(.ftc-filter-field,.ftc-context-filter)>:is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select){height:var(--ftc-v2-filter-control-h);min-height:var(--ftc-v2-filter-control-h);width:100%;}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-search-field{
  position:relative;display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;gap:8px;
  width:min(var(--ftc-v2-search-w),100%);max-width:var(--ftc-v2-search-w);height:var(--ftc-v2-filter-control-h);min-height:var(--ftc-v2-filter-control-h);
  padding:0 12px;border:1px solid var(--ftc-border);border-radius:var(--ftc-v2-radius-sm);background:var(--ftc-surface);color:var(--ftc-text);
}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-search-field:focus-within{border-color:var(--ftc-border-strong);box-shadow:0 0 0 2px color-mix(in srgb,var(--ftc-focus) 22%,transparent)}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-search-field :is(.ftc-field-icon,.projects-search-icon,.ftc-search-icon){display:grid;place-items:center;width:18px;height:18px;color:var(--ftc-text-muted);line-height:0}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-search-field :is(.ftc-field-icon,.projects-search-icon,.ftc-search-icon) svg{display:block;width:17px;height:17px;stroke-width:1.8}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-search-field input{
  width:100%;min-width:0;height:100%;min-height:0;margin:0;padding:0;border:0;background:transparent;box-shadow:none;color:var(--ftc-text);font-size:var(--ftc-v2-body);line-height:1.25;outline:0;appearance:none;
}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-search-field input::placeholder{color:var(--ftc-text-faint)}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-filter-disclosure{position:relative;display:inline-block;width:auto;max-width:100%;margin:0 0 14px;overflow:visible;border:0;background:transparent}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-filter-disclosure>summary{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;width:auto;min-width:92px;height:var(--ftc-v2-filter-control-h);min-height:var(--ftc-v2-filter-control-h);padding:0 12px;list-style:none;cursor:pointer;
  border:1px solid var(--ftc-border);border-radius:var(--ftc-v2-radius-sm);background:var(--ftc-surface);color:var(--ftc-text);font-size:var(--ftc-v2-body);font-weight:var(--ftc-v2-weight-control);
}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-filter-disclosure>summary::-webkit-details-marker{display:none}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-filter-disclosure>summary small{font-size:var(--ftc-v2-micro);color:var(--ftc-text-muted)}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-filter-popover{
  position:absolute;z-index:120;top:calc(100% + 8px);left:0;display:grid;grid-template-columns:1fr;gap:9px;
  width:min(var(--ftc-v2-filter-popover-w),calc(100vw - 40px));max-height:min(70vh,620px);overflow:auto;margin:0;padding:12px;
  border:1px solid var(--ftc-border);border-radius:var(--ftc-v2-radius-md);background:var(--ftc-surface-overlay);box-shadow:var(--ftc-shadow-3);
}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-filter-popover.ftc-filter-popover-end{left:auto;right:0}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-filter-popover[hidden]{display:none!important}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-filter-popover .ftc-search-field{width:100%;max-width:none}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-filter-disclosure:not([open])>.ftc-filter-popover{display:none}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-filter-disclosure>.ftc-filter-popover>:is(select,input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),.search,.ftc-search-field,.btn){width:100%;max-width:none;min-width:0}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-filter-disclosure>.ftc-filter-popover .ftc-search-field{max-width:none}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-filter-actions{display:flex;gap:8px;justify-content:flex-end;align-items:center;padding-top:3px}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-filter-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:var(--ftc-surface-soft);color:var(--ftc-text-muted);font-size:10px}


/* R6 — canonical filter/search invariants */
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-filter-toolbar>.ftc-filter-disclosure{margin:0}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-filter-disclosure>.ftc-filter-popover :is(.ftc-filter-field,.ftc-context-filter){width:100%;max-width:none;min-width:0;flex:1 1 auto}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-filter-disclosure>.ftc-filter-popover :is(.ftc-filter-field,.ftc-context-filter)>:is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),select){width:100%;max-width:none}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-search-field>input{align-self:stretch;display:block;box-sizing:border-box}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-filter-toolbar>.ftc-filter-count{align-self:center}

/* Bridges: módulos podem manter nomes históricos, mas não a geometria. */
body.ftc-ui2:not(.attendance-runtime2-frame) :is(.ftc-clients-filters,.projects-context-filter){display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap}
body.ftc-ui2[data-ftc-route="projects"] .projects-context-filter .projects-context-field{width:min(var(--ftc-v2-filter-context-w),100%);max-width:var(--ftc-v2-filter-context-w);margin:0}
body.ftc-ui2[data-ftc-route="projects"] .projects-context-filter .projects-context-field>span{display:none}
body.ftc-ui2[data-ftc-route="projects"] .projects-context-filter select{height:42px;min-height:42px;width:100%}
body.ftc-ui2[data-ftc-route="crm"] .crm-filter-panel.ftc-filter-disclosure{margin:0 0 14px;border:0;border-radius:0;background:transparent;overflow:visible}
body.ftc-ui2[data-ftc-route="crm"] .crm-filter-panel.ftc-filter-disclosure>summary{display:inline-flex;min-height:var(--ftc-v2-filter-control-h);height:var(--ftc-v2-filter-control-h);padding:0 12px;border:1px solid var(--ftc-border);border-radius:var(--ftc-v2-radius-sm);background:var(--ftc-surface)}
body.ftc-ui2[data-ftc-route="crm"] .crm-filter-panel.ftc-filter-disclosure[open]>summary{border-bottom:1px solid var(--ftc-border)}
body.ftc-ui2[data-ftc-route="crm"] .crm-filter-panel.ftc-filter-disclosure>.crm-filter-content.ftc-filter-popover{display:grid;position:absolute;padding:12px;background:var(--ftc-surface-overlay)}
body.ftc-ui2[data-ftc-route="crm"] .crm-filter-panel.ftc-filter-disclosure:not([open])>.crm-filter-content.ftc-filter-popover{display:none}
body.ftc-ui2[data-ftc-route="crm"] .crm-filter-panel.ftc-filter-disclosure>.crm-filter-content.ftc-filter-popover :is(select,input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"])){height:42px;min-height:42px;width:100%;max-width:none}
body.ftc-ui2[data-ftc-route="crm"] .crm-filter-panel.ftc-filter-disclosure>.crm-filter-content.ftc-filter-popover .search{width:100%;min-width:0}

/* R8 — density ownership for toolbar-only controls. */
body.ftc-ui2:not(.attendance-runtime2-frame) [data-ftc-geometry-toolbar] [data-ftc-toolbar-action]{height:var(--ftc-v2-filter-control-h);min-height:var(--ftc-v2-filter-control-h);align-self:flex-end}
body.ftc-ui2:not(.attendance-runtime2-frame) [data-ftc-segmented]{display:flex;align-items:center;min-height:var(--ftc-v2-filter-control-h);padding:4px;border:1px solid var(--ftc-border);border-radius:var(--ftc-v2-radius-sm);background:var(--ftc-surface)}
body.ftc-ui2:not(.attendance-runtime2-frame) [data-ftc-segmented]>*{min-height:32px;display:inline-flex;align-items:center;justify-content:center;padding:0 12px;border-radius:calc(var(--ftc-v2-radius-sm) - 4px)}
body.ftc-ui2:not(.attendance-runtime2-frame) [data-ftc-segmented]>.active{background:var(--ftc-surface-overlay);color:var(--ftc-text);box-shadow:var(--ftc-shadow-1)}

/* Overlay invariant: blur só existe enquanto há overlay aberto. */
body.ftc-ui2:not(.attendance-runtime2-frame) .drawer-backdrop:not(.open),
body.ftc-ui2:not(.attendance-runtime2-frame) [data-drawer-backdrop]:not(.open){opacity:0;pointer-events:none;backdrop-filter:none}

@media(max-width:720px){
  body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-filter-toolbar{display:grid;grid-template-columns:1fr auto;align-items:end}
  body.ftc-ui2:not(.attendance-runtime2-frame) :is(.ftc-filter-field,.ftc-context-filter,.ftc-search-field){width:100%;max-width:none}
  body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-search-field{grid-column:1/-1}
  body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-filter-disclosure{width:100%}
  body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-filter-disclosure>summary{width:100%;justify-content:space-between}
  body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-filter-popover{position:fixed;left:12px;right:12px;bottom:12px;top:auto;width:auto;max-height:72vh;border-radius:18px}
}

/* Search child cannot redraw the canonical surface. */
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-search-field>input{
  width:100%!important;min-width:0!important;height:100%!important;min-height:0!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:var(--ftc-text)!important;
  font-size:var(--ftc-v2-body)!important;font-weight:var(--ftc-v2-weight-body)!important;line-height:1.25!important;outline:0!important;appearance:none!important;
}
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-search-field>input::-webkit-search-decoration,
body.ftc-ui2:not(.attendance-runtime2-frame) .ftc-search-field>input::-webkit-search-cancel-button{appearance:none}
