/* BASE — approved visual language. Screen presentation only; no business-state selectors. */
@media screen {
  :root {
    --base-bg:#f5f5f7;--base-surface:#fff;--base-sidebar:#f0f0f3;
    --base-text:#202126;--base-muted:#62656e;--base-line:#e5e5ea;
    --base-accent:#8b202b;--base-accent-soft:#f7e9ec;
    --base-green:#237449;--base-green-soft:#e9f4ed;
    --base-blue:#2666ac;--base-blue-soft:#edf3fc;
    --base-amber:#8a5709;--base-amber-soft:#fff2d9;
    --base-radius:18px;--base-nav-width:246px;--base-shadow:0 2px 8px #1a182006;
  }
  html[data-base-theme="dark"] {
    color-scheme:dark;--base-bg:#191a1e;--base-surface:#24252b;--base-sidebar:#202126;
    --base-text:#f1f1f5;--base-muted:#b2b3bf;--base-line:#393a44;
    --base-accent:#f1a1ac;--base-accent-soft:#452b33;
    --base-green:#8cd3a9;--base-green-soft:#253f32;
    --base-blue:#9ec7f2;--base-blue-soft:#25364e;
    --base-amber:#efc17c;--base-amber-soft:#443820;--base-shadow:none;
  }
  body[data-base-layout] {
    --navy:var(--base-text);--ink:var(--base-text);--muted:var(--base-muted);
    --line:var(--base-line);--purple:var(--base-accent);--mt-accent:var(--base-accent);
    --mt-border:var(--base-line);--mt-muted:var(--base-muted);
    background:var(--base-bg)!important;color:var(--base-text)!important;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif!important;
    font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased;
  }
  body[data-base-layout] :is(button,input,select,textarea) {font-family:inherit}
  body[data-base-layout] [hidden] {display:none!important}
  body[data-base-layout] :is(button,a,summary) {-webkit-tap-highlight-color:transparent}
  body[data-base-layout] :is(button,a,summary,input,select,textarea):focus-visible {outline:3px solid var(--base-blue)!important;outline-offset:3px}
  body[data-base-layout] :is(.app-shell,.dashboard-shell,.obras-page,.dashboard-page,.module-page,.bi-page,.rdo-page,.mt-page) {background:var(--base-bg)!important;color:var(--base-text)}
  body[data-base-layout] :is(h1,h2,h3) {color:var(--base-text);overflow-wrap:break-word}
  body[data-base-layout] h1 {font-size:32px;line-height:1.2;letter-spacing:-.9px;font-weight:700}
  body[data-base-layout] h2 {font-size:20px;line-height:1.3;letter-spacing:-.35px;font-weight:650}
  body[data-base-layout] h3 {line-height:1.4;font-weight:650}
  body[data-base-layout] :is(.eyebrow,.sidebar-label) {font-size:11px;font-weight:600;letter-spacing:1.1px;color:var(--base-muted)!important}
  body[data-base-layout] :is(.modal-description,.section-note,.rdo-demo,.mt-muted,.budget-note,.card-heading p,.module-heading>div>p:last-child,.dashboard-heading>div>p:last-child,.workspace-heading>div>p:last-child) {color:var(--base-muted)!important;font-size:13px;line-height:1.65}
  body[data-base-layout] :is(.dashboard-page,.module-page,.obras-page) {padding:36px 38px;min-width:0}
  body[data-base-layout] :is(.workspace-heading,.dashboard-heading,.module-heading,.page-header,.report-heading) {gap:20px;margin-bottom:26px;align-items:flex-start}
  body[data-base-layout] :is(.report-actions,.medium-actions,.warehouse-actions,.weekly-summary-actions) {gap:8px;flex-wrap:wrap}
  body[data-base-layout] :is(.primary,.submit-button,.save-obra,.save-team,.btn-primary) {
    background:#8b202b!important;color:#fff!important;border:1px solid #8b202b!important;
    border-radius:10px!important;box-shadow:none!important;min-height:40px;padding:10px 16px;font-size:13px;font-weight:600;line-height:1.4;
  }
  body[data-base-layout] :is(.outline-button,.btn,.back-button,.report-actions>button,.medium-actions>button,.area-nav>button) {
    border-radius:10px!important;border:1px solid var(--base-line);background:var(--base-surface);color:var(--base-text);
    box-shadow:none;min-height:40px;padding:9px 14px;font-size:13px;line-height:1.4;font-weight:550;
  }
  body[data-base-layout] :is(.outline-button,.btn,.back-button,.report-actions>button,.medium-actions>button,.area-nav>button):not(.primary):not([aria-pressed=true]) {background:var(--base-surface)!important;color:var(--base-text)!important;border-color:var(--base-line)!important}
  body[data-base-layout] :is(.primary,.outline-button,.btn,.area-nav>button):not(:disabled):hover {filter:brightness(.97)}
  body[data-base-layout] :is(button:disabled,[aria-disabled=true]) {cursor:not-allowed}
  body[data-base-layout] input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]),
  body[data-base-layout] :is(select,textarea) {
    border:1px solid #c6c6cf;border-radius:9px;background:var(--base-surface);color:var(--base-text);
    min-height:42px;padding:10px 12px;font-size:14px;line-height:1.4;box-sizing:border-box;
  }
  body[data-base-layout] input[type=file] {max-width:100%;font-size:13px;color:var(--base-text)}
  body[data-base-layout] input:is([type=checkbox],[type=radio]) {width:18px!important;height:18px!important;min-height:0!important;padding:0!important;flex:none;accent-color:var(--base-accent);vertical-align:middle}
  body[data-base-layout] input[type=range] {accent-color:var(--base-accent)}
  body[data-base-layout] :is(input,select,textarea)[aria-invalid=true] {border-color:#b42332!important}
  body[data-base-layout] :is(.field-grid,.address-grid) {gap:16px}
  body[data-base-layout] label {color:var(--base-muted);line-height:1.5}
  body[data-base-layout] :is(.obra-card,.team-card,.team-module-card,.metric-card,.chart-card,.payment-card,.report-card,.empty-obras,.module-empty,.workspace-module,.card,.rdo-card,.mt-card,.medium-company,.lt-month,.warehouse-card,.restriction-card,.weekly-summary-card,.rv-card) {
    background:var(--base-surface)!important;color:var(--base-text);border-color:var(--base-line)!important;
    border-radius:var(--base-radius)!important;box-shadow:var(--base-shadow)!important;
  }
  body[data-base-layout] :is(.chart-card,.payment-card,.report-card,.rdo-card,.medium-company,.lt-month,.restriction-card,.weekly-summary-card) {padding:24px}
  body[data-base-layout] :is(.workspace-module,.obra-card,.team-module-card) {padding:22px}
  body[data-base-layout] :is(.st-card,.st-stat,.sd-collapse,.report-history,.work-progress,.ava-card,.nb-card,.nb-calendar,.nb-writing,.designer-card,.fvs-card,.fvs-empty,.q-card,.q-empty,.q-kpi,.q-ranking,.wh-card,.wh-metric,.wh-table-scroll,.mt-empty,.mt-services,.fc-card,.bim-details,.bim-metrics span,.users-table-wrap,.bi-donut strong,.ia-help) {background:var(--base-surface)!important;color:var(--base-text);border-color:var(--base-line)!important;border-radius:var(--base-radius);box-shadow:var(--base-shadow)}
  body[data-base-layout] .obra-sidebar::after,body[data-base-layout] .obras-page::before {display:none}
  body[data-base-layout] .workspace-module.selected {border-color:var(--base-accent)!important;background:var(--base-surface)!important}
  body[data-base-layout] .workspace-module strong {font-size:22px;letter-spacing:-.4px}
  body[data-base-layout] .obra-cards {gap:18px}
  body[data-base-layout] :is(.obra-card footer,.workspace-module small) {color:var(--base-accent)}
  body[data-base-layout] :is(.obras-page:before,.obra-sidebar:after,.intro-panel:after) {display:none!important}
  body[data-base-layout] .app-header {height:76px;min-height:76px;background:var(--base-surface)!important;border-bottom:1px solid var(--base-line);box-shadow:none!important;padding:0 32px;gap:14px}
  body[data-base-layout] .profile {gap:10px;color:var(--base-text)}
  body[data-base-layout] .profile strong {color:var(--base-text)!important;font-size:13px;font-weight:600}
  body[data-base-layout] .profile small {color:var(--base-muted)!important;font-size:11px}
  body[data-base-layout] .profile-avatar {width:34px;height:34px;background:var(--base-accent-soft)!important;color:var(--base-accent)!important;font-size:12px}
  body[data-base-layout] :is(.profile-dropdown,.users-dialog) {background:var(--base-surface);color:var(--base-text);border-color:var(--base-line);border-radius:14px}
  body[data-base-layout] .header-work-return {font-size:12px;white-space:nowrap;flex:none;margin-left:auto}
  body[data-base-layout] .base-appearance {display:flex;align-items:center;flex:none;gap:6px}
  body[data-base-layout] .base-theme-button {
    display:inline-flex;align-items:center;justify-content:center;background:transparent!important;color:var(--base-text)!important;
    width:40px;height:40px;min-width:40px;min-height:40px;padding:8px;border:0!important;border-radius:10px;box-shadow:none;
  }
  body[data-base-layout] .base-theme-button:hover {background:var(--base-sidebar)!important}
  body[data-base-layout] .base-icon {width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
  body[data-base-layout] .base-toolbar-crumb {display:flex;align-items:center;gap:12px;font-size:12px;color:var(--base-muted);min-width:0;margin-right:auto}
  body[data-base-layout] .base-toolbar-crumb strong {font-size:12px;font-weight:550;color:var(--base-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:35vw}
  body[data-base-layout] .base-toolbar-crumb span {white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:20vw}
  body[data-base-layout] .base-toolbar-crumb i {font-style:normal;color:var(--base-muted)}
  body[data-base-layout] .base-sidebar-brand {padding:0 8px 22px;min-height:86px;display:flex;align-items:flex-start;justify-content:flex-start}
  body[data-base-layout] .base-sidebar-brand img {width:180px;height:64px;max-width:100%;object-fit:contain}
  body[data-base-layout] .base-work-context {margin:0 8px 22px;padding:12px;background:var(--base-surface);border:1px solid var(--base-line);border-radius:12px;display:flex;align-items:center;gap:10px}
  body[data-base-layout] .base-work-context>span:first-child {display:grid;place-items:center;background:var(--base-accent-soft);color:var(--base-accent);width:32px;height:36px;flex:none;border-radius:8px;font-size:18px;font-weight:600}
  body[data-base-layout] .base-work-context strong {display:block;font-size:13px;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
  body[data-base-layout] .base-work-context small {font-size:10px;color:var(--base-muted)}
  body[data-base-layout] .obra-sidebar {width:var(--base-nav-width);top:0;bottom:0;z-index:30;padding:28px 12px 18px;background:var(--base-sidebar)!important;border-right:1px solid var(--base-line)!important;overflow-y:auto;scrollbar-width:thin}
  body[data-base-layout] .sidebar-label {margin:0 12px 10px;font-size:10px}
  body[data-base-layout] .obra-nav {border-radius:9px!important;min-height:42px;padding:10px 12px;text-align:left;font-size:13px;font-weight:530;line-height:1.4;color:var(--base-muted)!important;border:0;background:transparent;white-space:normal}
  body[data-base-layout] .obra-nav span {margin-left:0}
  body[data-base-layout] .obra-nav.base-adorned {display:flex;align-items:center;gap:10px}
  body[data-base-layout] .obra-nav.active {background:var(--base-accent-soft)!important;color:var(--base-accent)!important;font-weight:650}
  body[data-base-layout] .obra-nav:hover {background:var(--base-surface)!important;color:var(--base-text)!important}
  body[data-base-layout] .obra-nav.active:hover {color:var(--base-accent)!important}
  body[data-base-layout] .obra-planning-group {margin:3px 0}
  body[data-base-layout] .obra-planning-group>summary {padding:11px 12px;min-height:44px;color:var(--base-muted)!important;font-size:13px;font-weight:550;border-radius:9px;list-style:none;display:flex;align-items:center;gap:10px;cursor:pointer}
  body[data-base-layout] .obra-planning-group>summary::-webkit-details-marker {display:none}
  body[data-base-layout] .obra-planning-group>summary::after {content:"⌄";margin-left:auto;font-size:15px;line-height:1;transform:rotate(-90deg)}
  body[data-base-layout] .obra-planning-group[open]>summary::after {transform:none}
  body[data-base-layout] .obra-planning-group>summary:hover {background:var(--base-surface)!important}
  body[data-base-layout] .obra-planning-group:has(.active)>summary {background:transparent!important;color:var(--base-text)!important}
  body[data-base-layout] .obra-planning-children {margin:0 0 6px 22px;padding:0 0 0 12px;border-left:1px solid var(--base-line)}
  body[data-base-layout] .obra-planning-children .obra-nav {font-size:12px;min-height:38px;padding:8px 10px}
  body[data-base-layout] .obra-planning-children .base-icon {width:16px;height:16px}
  body[data-base-layout] .sidebar-divider {border-color:var(--base-line);margin:16px 8px}
  body[data-base-layout] .base-has-sidebar .app-header {margin-left:var(--base-nav-width);width:calc(100% - var(--base-nav-width));box-sizing:border-box}
  body[data-base-layout] .base-has-sidebar .app-header>.app-brand {display:none!important}
  body[data-base-layout] .with-obra-sidebar {margin-left:var(--base-nav-width);width:calc(100% - var(--base-nav-width));max-width:none;min-width:0;box-sizing:border-box}
  body[data-base-layout] .metric-grid {grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}
  body[data-base-layout] .metric-card {padding:21px 22px;min-height:154px}
  body[data-base-layout] .metric-card strong {font-size:28px;font-weight:650;letter-spacing:-.7px;font-variant-numeric:tabular-nums;line-height:1.3}
  body[data-base-layout] .metric-card strong small {font-size:13px;font-weight:450;color:var(--base-muted)}
  body[data-base-layout] .metric-card em {font-size:11px;color:var(--base-muted);line-height:1.5}
  body[data-base-layout] .metric-card>div:nth-child(2)>span {font-size:12px;color:var(--base-muted)}
  body[data-base-layout] .metric-icon {width:30px;height:30px;border-radius:9px;font-size:13px}
  body[data-base-layout] .metric-line {background:var(--base-line);height:5px}
  body[data-base-layout] .metric-line i {background:var(--base-accent)!important}
  body[data-base-layout] .dashboard-content {gap:22px}
  body[data-base-layout] :is(.card-heading h2,.table-title h2) {font-size:18px}
  body[data-base-layout] :is(.payment-row,.team-supervisor,.card-address,.card-stats,.obra-card footer,.team-module-card footer) {border-color:var(--base-line)}
  body[data-base-layout] .payment-row {color:var(--base-muted);font-size:13px}
  body[data-base-layout] .payment-row strong {color:var(--base-text)}
  body[data-base-layout] :is(.paid-text,.financial,.financial strong,.rv-financial,.rv-financial strong,.bi-good) {color:var(--base-green)!important}
  body[data-base-layout] :is(progress.financial,progress.rv-financial) {accent-color:var(--base-green)}
  body[data-base-layout] :is(.report-metrics,.mt-resumo,.bi-kpis) {gap:16px}
  body[data-base-layout] :is(.report-metrics>div,.mt-resumo,.medium-summary>span) {padding:20px;border:1px solid var(--base-line);border-radius:14px;background:var(--base-surface);color:var(--base-muted);font-size:12px}
  body[data-base-layout] :is(.report-metrics strong,.mt-resumo dd,.bi-kpis strong) {font-size:28px;font-weight:650;letter-spacing:-.7px;font-variant-numeric:tabular-nums;color:var(--base-text)}
  body[data-base-layout] :is(.mt-coluna,.mt-column) {background:var(--base-sidebar);border-color:var(--base-line);border-radius:14px;padding:14px}
  body[data-base-layout] :is(.mt-card,.mt-contrato) {border:1px solid var(--base-line);background:var(--base-surface);border-radius:14px;padding:20px}
  body[data-base-layout] :is(.pill,.team-active,.card-status,.service-chip,.chart-period) {border-radius:7px;font-size:11px;padding:5px 8px;line-height:1.4}
  body[data-base-layout] :is(.service-chip,.payment-note,.empty-icon,.building-mark) {background:var(--base-accent-soft)!important;color:var(--base-accent)!important}
  body[data-base-layout] :is(.form-section,.team-members-section,.mt-historico li,.restriction-card,.rv-history-item) {border-color:var(--base-line)}
  body[data-base-layout] :is(.modal-backdrop,.rdo-backdrop) {background:#16172066;backdrop-filter:blur(3px)}
  body[data-base-layout] :is(dialog,.obra-modal,.team-modal,.mt-dialog,.rdo-sheet,.rv-modal,.users-dialog,.restriction-dialog) {background:var(--base-surface);color:var(--base-text);border-color:var(--base-line);border-radius:20px;box-shadow:0 16px 70px #0002}
  body[data-base-layout] dialog::backdrop {background:#16172066;backdrop-filter:blur(3px)}
  body[data-base-layout] :is(.mt-dialog-header,.links-dialog-header) {border-color:var(--base-line);background:var(--base-surface)}
  body[data-base-layout] :is(.report-view-table,.report-edit-table,.short-table,.medium-table,.lt-table,.warehouse-table,.rv-table,.roles-table,.composition-table) {font-size:13px}
  body[data-base-layout] :is(.report-view-table,.report-edit-table,.short-table,.medium-table,.lt-table,.warehouse-table,.rv-table,.roles-table,.composition-table) th {background:var(--base-sidebar)!important;color:var(--base-muted);font-size:12px;font-weight:600;border-color:var(--base-line)}
  body[data-base-layout] :is(.report-view-table,.report-edit-table,.short-table,.medium-table,.lt-table,.warehouse-table,.rv-table,.roles-table,.composition-table) td {border-color:var(--base-line)}
  body[data-base-layout] :is(.report-edit-scroll,.short-scroll,.medium-scroll,.lt-scroll,.warehouse-scroll,.table-scroll,.bi-scroll) {border-radius:12px;scrollbar-width:thin;overscroll-behavior-inline:contain}
  body[data-base-layout] :is(.work-progress,.weekly-summary,.system-messages-disclosure,.restriction-overview,.short-history) summary {font-weight:600}
  body[data-base-layout] :is(.area-nav>button[aria-pressed=true],.mt-tipos [aria-pressed=true]) {background:var(--base-accent-soft)!important;color:var(--base-accent)!important;border-color:var(--base-accent)!important}
  body[data-base-layout] :is(.short-history,.daily-history,.report-history-item,.history-item) {border-radius:14px;border-color:var(--base-line)}
  body[data-base-layout] :is(.report-save-feedback:not(:empty),.report-save-success,[role=alert]:not(:empty)) {line-height:1.6;border-radius:10px}
  body[data-base-layout] .base-tabular {font-variant-numeric:tabular-nums}
  body[data-base-layout] .restrictions-summary {background:var(--base-sidebar);color:var(--base-text);border:1px solid var(--base-line)}
  body[data-base-layout] .restrictions-filters button[aria-pressed=true] {background:var(--base-accent-soft)!important;color:var(--base-accent)!important;border-color:var(--base-accent)!important}
  body[data-base-layout] .restriction-row {border-color:var(--base-line)}
  body[data-base-layout] .restriction-status {background:var(--base-amber-soft);color:var(--base-amber)}
  body[data-base-layout] .restriction-status.resolved {background:var(--base-green-soft);color:var(--base-green)}
  body[data-base-layout] .restriction-status.review {background:var(--base-blue-soft);color:var(--base-blue)}
  body[data-base-layout] .restriction-files a {color:var(--base-blue)}
  body[data-base-layout] .daily-calendar-grid button {background:var(--base-surface)!important;color:var(--base-text)!important;border-color:var(--base-line)!important}
  body[data-base-layout] .daily-calendar-grid button:not([aria-pressed=true]):hover {background:var(--base-sidebar)!important}
  body[data-base-layout] .daily-calendar-grid button[aria-pressed=true] {background:#8b202b!important;color:#fff!important;border-color:#8b202b!important}
  body[data-base-layout] :is(.brand-sidebar) {background:var(--base-sidebar)!important;border-color:var(--base-line)!important;width:246px}
  body[data-base-layout] .brand-sidebar>div:first-child {border-color:var(--base-line)}
  body[data-base-layout] .brand-sidebar nav {padding:20px 14px}
  body[data-base-layout] .brand-sidebar nav button {font-size:13px;line-height:1.4;min-height:44px;padding:11px 12px;border-radius:9px;gap:12px;color:var(--base-muted)!important}
  body[data-base-layout] .brand-sidebar nav button.base-current-nav {background:var(--base-accent-soft)!important;color:var(--base-accent)!important;font-weight:650}
  body[data-base-layout] .brand-sidebar nav button:hover {background:var(--base-surface)!important}
  body[data-base-layout][data-base-module=finance] #root>div {background:var(--base-bg)!important;color:var(--base-text)!important}
  body[data-base-layout][data-base-module=finance] header {background:var(--base-surface)!important;border-color:var(--base-line)}
  body[data-base-layout][data-base-module=finance] .md\:ml-64 {margin-left:246px}
  body[data-base-layout][data-base-module=finance] :is(.bg-white,.bg-card) {background:var(--base-surface)!important;color:var(--base-text);border-color:var(--base-line)}
  body[data-base-layout][data-base-module=finance] aside.brand-sidebar {background:var(--base-sidebar)!important}
  body[data-base-layout][data-base-module=finance] aside.brand-sidebar::after {display:none}
  body[data-base-layout][data-base-module=finance] :is(.rounded-xl,.rounded-2xl,.shadow-sm) {border-color:var(--base-line);box-shadow:var(--base-shadow)}
  body[data-base-layout][data-base-module=finance] h1 {font-size:30px;letter-spacing:-.8px}
  body[data-base-layout][data-base-module=finance] :is(thead,.bg-gray-50,.bg-gray-100) {background:var(--base-sidebar)!important}
  body[data-base-layout][data-base-module=finance] th {font-size:12px;color:var(--base-muted);font-weight:600}
  body[data-base-layout][data-base-module=finance] td {font-size:13px;border-color:var(--base-line)}
  body[data-base-layout][data-base-module=ponto] :is(.topbar,.ponto-navigation-toolbar,.panel,.card,.table-container) {background:var(--base-surface);border-color:var(--base-line);border-radius:14px;color:var(--base-text)}
  body[data-base-layout][data-base-module=ponto] .ponto-integrated.workspace {background:var(--base-bg)!important;color:var(--base-text)}
  body[data-base-layout][data-base-module=ponto] main.main {padding:24px}
  body[data-base-layout][data-base-module=ponto] .ponto-navigation {border-color:var(--base-line);background:var(--base-surface);border-radius:14px;margin-bottom:20px}
  body[data-base-layout][data-base-module=ponto] .ponto-navigation-toolbar {gap:12px}
  body[data-base-layout][data-base-module=ponto] #ponto-navigation-options {border-color:var(--base-line);background:var(--base-surface);border-radius:0 0 14px 14px}
  body[data-base-layout][data-base-module=ponto] .ponto-menu-options button {border-radius:9px;color:var(--base-text)}
  body[data-base-layout][data-base-module=ponto] .ponto-menu-options button.active {color:var(--base-accent);background:var(--base-accent-soft)}
  body[data-base-layout][data-base-module=physical] :is(.top,.toolbar) {gap:14px}
  body[data-base-layout][data-base-module=physical] .progress-card {border:1px solid var(--base-line);background:var(--base-surface);border-radius:18px;box-shadow:var(--base-shadow)}
  body[data-base-layout][data-base-module=physical] :is(.summary,.panel,#apartment-plans) {border-color:var(--base-line);border-radius:16px;background:var(--base-surface);color:var(--base-text)}
  body[data-base-layout][data-base-module=physical] .area-nav {gap:8px;padding:8px 0;border-bottom:1px solid var(--base-line)}
  body[data-base-layout][data-base-module=physical] .area-nav>button {border-radius:9px!important}
  body[data-base-layout][data-base-module=physical] .panel {overflow:hidden}
  body[data-base-layout][data-base-module=physical] :is(thead th,thead th:first-child) {background:var(--base-sidebar)!important;color:var(--base-muted);border-color:var(--base-line)}
  body[data-base-layout][data-base-module=physical] tbody th {background:var(--base-surface)!important;color:var(--base-text);border-color:var(--base-line)}
  body[data-base-layout][data-base-module=physical] .cell input {padding:3px 1px;min-height:32px;border:0;border-radius:0;background:transparent!important}
  body[data-base-layout][data-base-module=physical] .cell.no-measure input:not(:focus) {color:transparent!important}
  body[data-base-layout][data-base-module=physical] .cell.no-measure:focus-within input {color:#202126!important}
  body[data-base-layout][data-base-module=physical] .cell:not(.no-measure) input {color:#202126}
  body[data-base-layout][data-base-module=physical] .delete-grid {padding:0;min-height:24px;border-radius:4px}
  body[data-base-layout][data-base-module=physical] :is(.plan-card,.plan-slot) {border-color:var(--base-line);border-radius:12px;background:var(--base-surface)}
  body[data-base-layout][data-base-module=login] {margin:0;min-height:100vh;display:grid;place-items:center;padding:32px 16px;box-sizing:border-box}
  body[data-base-layout][data-base-module=login]>main {width:min(420px,100%);max-width:420px;margin:0;padding:32px;box-sizing:border-box;border:1px solid var(--base-line);border-radius:20px;background:var(--base-surface);box-shadow:var(--base-shadow)}
  body[data-base-layout][data-base-module=login] h1 {margin:0 0 22px}
  body[data-base-layout][data-base-module=login] p {font-size:14px;color:var(--base-muted)}
  body[data-base-layout][data-base-module=login] label {font-size:13px;font-weight:550}
  body[data-base-layout][data-base-module=login] input {margin:6px 0 16px}
  body[data-base-layout][data-base-module=login] button[type=submit],body[data-base-layout][data-base-module=login] form button {background:#8b202b;border-radius:10px;color:white;min-height:44px;font-size:14px;font-weight:600}
  body[data-base-layout][data-base-module=login]>.base-appearance {position:fixed;right:24px;top:20px}
  html[data-base-theme=dark] body[data-base-layout] :is(.bg-white,.bg-card,.bg-gray-50,.bg-gray-100,.ponto-menu-options,#ponto-navigation-options,.report-history-item,.short-history-item,.daily-history-item) {background:var(--base-surface)!important;border-color:var(--base-line);color:var(--base-text)}
  html[data-base-theme=dark] body[data-base-layout] :is(.text-gray-900,.text-gray-800,.text-gray-700,.text-slate-900,.text-slate-800,[class*="text-[#343330]"]) {color:var(--base-text)!important}
  html[data-base-theme=dark] body[data-base-layout] :is(.text-gray-600,.text-gray-500,.text-slate-600,.text-slate-500) {color:var(--base-muted)!important}
  html[data-base-theme=dark] body[data-base-layout] :is(.border-gray-200,.border-gray-100,.border-slate-200) {border-color:var(--base-line)!important}
  html[data-base-theme=dark] body[data-base-layout] :is(.primary,.submit-button,.btn-primary) {color:#fff!important}
  html[data-base-theme=dark] body[data-base-layout] :is(.base-sidebar-brand img,.app-brand,.intro-panel .brand) {background-color:#f0f0f3!important;border-radius:10px;padding:4px!important}
  html[data-base-theme=dark] body[data-base-layout] .brand-sidebar>div:first-child::after {background-color:#f0f0f3;border-radius:10px}
  html[data-base-theme=dark] body[data-base-layout][data-base-module=login] h1 img {background:#f0f0f3;border-radius:12px;padding:8px;box-sizing:content-box}
  html[data-base-theme=dark] body[data-base-layout] .progress-donut>div {background:var(--base-surface)}
  html[data-base-theme=dark] body[data-base-layout] :is(.short-history,.report-history) {color:var(--base-text)}
  html[data-base-theme=dark] body[data-base-layout] main :is(p,small,label,dt):not([role=alert]):not(.error):not(.form-error):not(.mt-error):not(.financial):not(.rv-financial) {color:var(--base-muted)!important}
  html[data-base-theme=dark] body[data-base-layout] :is(.st-stat,.weekly-summary-card,.restriction-overview) {color:var(--base-text)!important}
  html[data-base-theme=dark] body[data-base-layout] :is(.system-messages-toggle,.system-messages-disclosure summary,.weekly-summary-toggle,.restriction-overview summary) {color:var(--base-text)}
  html[data-base-theme=dark] body[data-base-layout] #system-messages summary>span:last-child {color:var(--base-accent)!important}
  html[data-base-theme=dark] body[data-base-layout] .restriction-feedback {color:#ffb4ab!important}
  @media(min-width:1600px) {body[data-base-layout] :is(.dashboard-page,.module-page,.obras-page) {padding:42px 48px}}
  @media(max-width:1200px) {
    body[data-base-layout] :is(.dashboard-page,.module-page,.obras-page) {padding:28px 24px}
    body[data-base-layout] .metric-card {padding:18px 16px}
    body[data-base-layout] .metric-card strong {font-size:25px}
    body[data-base-layout] .base-toolbar-crumb span {display:none}
  }
  @media(max-width:1000px) {
    body[data-base-layout] .metric-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
    body[data-base-layout] .base-toolbar-crumb {max-width:180px}
    body[data-base-layout] .base-toolbar-crumb strong {font-size:11px}
  }
  @media(max-width:900px) {
    body[data-base-layout] .base-has-sidebar .app-header {margin-left:0;width:100%;padding:12px 16px 12px 70px;flex-wrap:nowrap;height:auto;min-height:72px}
    body[data-base-layout] .base-has-sidebar {position:relative}
    body[data-base-layout] .with-obra-sidebar {margin-left:0;width:100%;max-width:100%;padding:26px 18px calc(80px + env(safe-area-inset-bottom,0px))}
    body[data-base-layout] .mobile-obra-menu {position:absolute;left:14px;top:14px;z-index:50;margin:0;border:0;background:transparent;border-radius:10px}
    body[data-base-layout] .mobile-obra-menu>summary {width:44px;min-height:44px;padding:11px;justify-content:center;border:0;border-radius:10px;color:var(--base-text);background:var(--base-surface)}
    body[data-base-layout] .mobile-obra-menu>summary>span {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
    body[data-base-layout] .mobile-obra-menu[open] {z-index:90}
    body[data-base-layout] .mobile-obra-menu[open]>summary {background:var(--base-accent-soft);color:var(--base-accent)}
    body[data-base-layout] .mobile-obra-menu>.obra-sidebar {display:block;position:absolute;top:52px;left:0;right:auto;bottom:auto;width:min(420px,calc(100vw - 28px));max-height:calc(100vh - 80px);max-height:calc(100dvh - 80px - env(safe-area-inset-bottom,0px));padding:16px 10px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;background:var(--base-sidebar)!important;border:1px solid var(--base-line)!important;border-radius:16px;box-shadow:0 12px 40px #0002}
    body[data-base-layout] .mt-shell:has(.mobile-obra-menu) .mt-menu {display:none!important}
    body[data-base-layout] .mobile-obra-menu .obra-nav {font-size:16px;min-height:48px;line-height:1.5;white-space:normal}
    body[data-base-layout] .mobile-obra-menu .obra-planning-group>summary {font-size:16px;min-height:48px;padding:12px}
    body[data-base-layout] .mobile-obra-menu .obra-planning-children .obra-nav {font-size:15px;min-height:48px}
    body[data-base-layout] .mobile-obra-menu .obra-nav span {display:inline}
    body[data-base-layout] .mobile-obra-menu .sidebar-label {display:block}
    body[data-base-layout] .base-has-sidebar .header-work-return {font-size:0!important;padding:4px;width:40px;min-width:40px;height:40px;margin-left:auto}
    body[data-base-layout] .base-has-sidebar .header-work-return::before {content:"‹";font-size:26px;line-height:1}
    body[data-base-layout] .base-has-sidebar .app-header>.profile {margin-left:0}
    body[data-base-layout] .base-toolbar-crumb {margin-right:auto;min-width:0;max-width:35vw}
    body[data-base-layout] .base-toolbar-crumb i {display:none}
    body[data-base-layout] .dashboard-content {grid-template-columns:minmax(0,1fr)}
    body[data-base-layout] :is(.dashboard-heading,.module-heading,.page-header,.report-heading) {flex-wrap:wrap;gap:16px}
    body[data-base-layout] :is(.dashboard-heading,.module-heading,.page-header,.report-heading)>div {min-width:0}
    body[data-base-layout] :is(.field-grid,.address-grid) {gap:14px}
    body[data-base-layout] .base-sidebar-brand {min-height:80px;padding-bottom:16px}
  }
  @media(max-width:767px) {
    body[data-base-layout][data-base-module=finance] .md\:ml-64 {margin-left:0}
    body[data-base-layout][data-base-module=finance] .brand-sidebar {width:246px}
    body[data-base-layout][data-base-module=finance] main {padding:24px 16px}
  }
  @media(max-width:600px) {
    body[data-base-layout] h1 {font-size:27px;letter-spacing:-.6px}
    body[data-base-layout] h2 {font-size:19px}
    body[data-base-layout] .base-toolbar-crumb {display:none}
    body[data-base-layout] .app-header {padding:0 16px;gap:8px}
    body[data-base-layout] :is(.dashboard-page,.module-page,.obras-page) {padding-left:18px;padding-right:18px}
    body[data-base-layout] :is(.chart-card,.payment-card,.report-card,.rdo-card,.medium-company,.lt-month,.restriction-card,.weekly-summary-card,.card) {padding:18px}
    body[data-base-layout] :is(.workspace-heading,.dashboard-heading,.module-heading,.page-header,.report-heading) {margin-bottom:22px}
    body[data-base-layout] .metric-grid {gap:10px}
    body[data-base-layout] .metric-card {border-radius:14px!important;min-height:140px;padding:16px 14px}
    body[data-base-layout] .metric-card strong {font-size:24px}
    body[data-base-layout] .metric-card em {position:static;display:block;margin-top:10px;font-size:11px}
    body[data-base-layout] .metric-card>div:nth-child(2)>span {font-size:11px}
    body[data-base-layout] :is(.primary,.outline-button,.btn,.report-actions>button,.area-nav>button) {min-height:44px;font-size:13px;padding:10px 13px;max-width:100%}
    body[data-base-layout] input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),body[data-base-layout] :is(textarea,select) {font-size:16px;max-width:100%;min-width:0}
    body[data-base-layout] :is(.report-actions,.medium-toolbar,.medium-actions,.warehouse-actions) {gap:8px}
    body[data-base-layout] .profile strong {font-size:12px}
    body[data-base-layout] .profile small {font-size:10px}
    body[data-base-layout] .profile-avatar {width:32px;height:32px}
    body[data-base-layout] :is(.mt-dialog,.rdo-sheet,.obra-modal,.team-modal) {border-radius:18px}
    body[data-base-layout] .mt-dialog-body {padding:18px}
    body[data-base-layout][data-base-module=physical] :is(.top,.toolbar) {gap:10px}
    body[data-base-layout][data-base-module=login]>main {padding:26px 24px}
    body[data-base-layout][data-base-module=login]>.base-appearance {right:16px;top:12px}
  }
  @media(prefers-reduced-motion:reduce) {body[data-base-layout] *,body[data-base-layout] *::before,body[data-base-layout] *::after {animation:none!important;transition:none!important;scroll-behavior:auto!important}}
}
@media print {
  .base-sidebar-brand,.base-work-context,.base-appearance,.base-toolbar-crumb,.base-layout-skip {display:none!important}
}
