/* TrairiObras 3.36.24.93.37 · 9369
   Camada cumulativa: responsividade real, contraste legado global, ícones SVG e integração visual de portal/reconstrução. */

/* SVGs funcionais usam a mesma linguagem de traço em todo o painel. */
.metric-svg-9369,.search-svg-9369,.portal-ready-icon-9369 svg,.reconstruction-icon-9369 svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.metric-icon-9366 .metric-svg-9369{width:22px;height:22px}.section-symbol-9366 .metric-svg-9369{width:18px;height:18px}.search-svg-9369{width:15px;height:15px}

/* Normalização de superfícies antigas que ainda continham branco literal. */
html[data-theme] .cl-card,html[data-theme] .sd-card,html[data-theme] .archive,
html[data-theme] .assistant-rule-grid>div,html[data-theme] .coming,
html[data-theme] .report-kpi,html[data-theme] .report-mini-row,html[data-theme] .report-table-wrap,
html[data-theme] .config-hub-card,html[data-theme] .reconstruction-side-9369,
html[data-theme] .portal-feature-grid-9369>article{background:var(--surface-1)!important;color:var(--text-1)!important;border-color:var(--stroke)!important}
html[data-theme] .cl-card p,html[data-theme] .sd-card p,html[data-theme] .archive .muted,
html[data-theme] .assistant-rule-grid span,html[data-theme] .coming p,
html[data-theme] .report-kpi span,html[data-theme] .report-kpi small,
html[data-theme] .report-mini-row strong,html[data-theme] .config-hub-card p{color:var(--text-2)!important}
html[data-theme] .assistant-rule-grid b,html[data-theme] .cl-card b,html[data-theme] .sd-card b{color:var(--text-1)!important}
html[data-theme] .assistant-rule-grid>div{background:var(--surface-2)!important}
html[data-theme] .assistant-answer{background:var(--surface-2)!important;border-color:var(--stroke)!important;color:var(--text-1)!important}
html[data-theme] .assistant-text{color:var(--text-1)!important}.assistant-answer-head,.assistant-sources{border-color:var(--stroke)!important}
html[data-theme] .assistant-form textarea{background:var(--surface-2)!important;color:var(--text-1)!important;border-color:var(--stroke)!important}

/* Portal: estado reservado coerente, sem falsa ativação. */
.portal-ready-9369{max-width:980px;margin:8vh auto 18px!important;display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:18px;align-items:center;padding:28px!important}
.portal-ready-icon-9369{width:58px;height:58px;border-radius:16px;display:grid;place-items:center;background:var(--accent-soft);color:var(--signal)}
.portal-ready-9369 h2{margin:5px 0 7px!important;font-size:22px!important}.portal-ready-9369 p{margin:0!important;line-height:1.6!important;max-width:720px}.portal-ready-actions-9369{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.portal-feature-grid-9369{max-width:980px;margin:0 auto;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.portal-feature-grid-9369>article{border:1px solid var(--stroke);border-radius:13px;padding:16px}.portal-feature-grid-9369 strong,.portal-feature-grid-9369 span{display:block}.portal-feature-grid-9369 strong{font-size:13px}.portal-feature-grid-9369 span{font-size:11px;color:var(--text-2);margin-top:5px;line-height:1.45}

/* Reconstrução documental integrada ao shell. */
.reconstruction-hero-9369{display:grid;grid-template-columns:58px minmax(0,1fr);gap:16px;align-items:center}.reconstruction-icon-9369{width:54px;height:54px;border-radius:15px;display:grid;place-items:center;background:var(--accent-soft);color:var(--signal)}.reconstruction-hero-9369 h2{margin:4px 0 5px!important}.reconstruction-hero-9369 p{margin:0!important}.reconstruction-grid-9369{grid-template-columns:minmax(0,1fr) 330px}.reconstruction-side-9369 ol{margin:10px 0 0;padding-left:20px;color:var(--text-2);line-height:1.7}.reconstruction-review-9369{max-width:1050px}.reconstruction-score-9369{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border:1px solid var(--stroke);border-radius:12px;background:var(--surface-2);margin-bottom:14px}.reconstruction-score-9369 strong{font-size:17px}.reconstruction-score-9369 span{color:var(--text-2);font-size:12px}.reconstruction-score-9369.level-verde strong{color:var(--success)}.reconstruction-score-9369.level-amarelo strong{color:var(--warning)}.reconstruction-score-9369.level-vermelho strong{color:var(--danger)}.reconstruction-table-9369{overflow:auto;border:1px solid var(--stroke);border-radius:12px;margin-bottom:14px}.reconstruction-table-9369 table{margin:0}.reconstruction-table-9369 th{width:32%;min-width:180px}.reconstruction-table-9369 td.missing{color:var(--danger)!important;font-weight:800}

/* ===== RESPONSIVIDADE REAL =====
   1100px cobre inclusive navegadores móveis que solicitam viewport ~980px. */
@media (max-width:1100px){
  html,body{width:100%;max-width:100%;overflow-x:hidden!important;-webkit-text-size-adjust:100%;text-size-adjust:100%}
  .app-shell.refined-shell-9366{display:block!important;width:100%!important;min-width:0!important;overflow-x:hidden!important}
  .sidebar.refined-sidebar-9366{position:fixed!important;z-index:10050!important;inset:0 auto 0 0!important;width:min(320px,88vw)!important;min-width:0!important;max-width:88vw!important;height:100dvh!important;transform:translateX(-105%)!important;transition:transform .22s ease!important;overflow-y:auto!important;overflow-x:hidden!important;box-shadow:18px 0 45px rgba(0,0,0,.38)!important}
  .sidebar.refined-sidebar-9366.mobile-open{transform:translateX(0)!important}
  .mobile-menu-toggle{display:flex!important;position:fixed!important;z-index:10060!important;top:10px!important;left:10px!important;align-items:center!important;gap:6px!important;min-height:42px!important;padding:8px 10px!important;border:1px solid var(--stroke)!important;border-radius:10px!important;background:var(--surface-1)!important;color:var(--text-1)!important;font-weight:800!important;box-shadow:var(--shadow-card)!important}
  .mobile-nav-backdrop{display:block!important;position:fixed!important;z-index:10040!important;inset:0!important;background:rgba(4,10,14,.58)!important;backdrop-filter:blur(2px)!important}.mobile-nav-backdrop[hidden]{display:none!important}
  .main.refined-main-9366{margin:0!important;width:100%!important;max-width:100%!important;min-width:0!important;padding:0!important;padding-top:0!important}
  .refined-topbar-9366{position:relative!important;min-height:88px!important;padding:12px 12px 12px 64px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;overflow:visible!important}
  .topbar-heading{min-width:0!important;max-width:none!important}.topbar-heading h1{font-size:20px!important;line-height:1.08!important;white-space:normal!important;overflow:visible!important}.topbar-heading p{font-size:10px!important;line-height:1.3!important;white-space:normal!important}
  .refined-top-actions-9366{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;min-width:0!important;max-width:none!important;width:auto!important;overflow:visible!important;padding:0!important;flex-wrap:nowrap!important}
  .refined-global-search-9366,.municipal-header-9366{display:none!important}.theme-current-9366{min-width:44px!important;width:44px!important;padding:0!important}.theme-current-9366 [data-theme-current-label],.theme-current-9366 .theme-chevron{display:none!important}
  .page-actions-9366{display:flex!important;gap:6px!important}.page-actions-9366 .action-soft-9366{display:none!important}.page-actions-9366 .action-primary-9366{display:inline-flex!important;white-space:nowrap!important;font-size:10px!important;padding:8px 10px!important}
  .compact-actions-9369{position:relative;display:block}.compact-actions-9369>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:center;min-height:42px;border:1px solid var(--stroke);border-radius:10px;background:var(--surface-2);color:var(--text-1);font-size:11px;font-weight:800;padding:0 10px}.compact-actions-9369>summary::-webkit-details-marker{display:none}.compact-actions-menu-9369{position:absolute;right:0;top:calc(100% + 7px);z-index:1200;width:min(290px,82vw);padding:8px;border:1px solid var(--stroke);border-radius:12px;background:var(--surface-1);box-shadow:var(--shadow-card);display:grid;gap:6px}.compact-actions-menu-9369>*{width:100%!important;max-width:none!important;margin:0!important;justify-content:flex-start!important}.compact-actions-menu-9369 form button{width:100%!important}
  .content.refined-content-9366{width:100%!important;max-width:100%!important;min-width:0!important;padding:14px 12px 34px!important;margin:0!important}
  .panel{max-width:100%!important}.grid-two,.grid-main-side,.form-grid,.cards.four,.cards.three{grid-template-columns:1fr!important}.span2{grid-column:auto!important}
  .process-workspace-9366{grid-template-columns:1fr!important}.process-side-9366{position:static!important;grid-template-columns:1fr!important}.process-metrics-9366{grid-template-columns:repeat(2,minmax(0,1fr))!important}.process-filterbar-9366{grid-template-columns:1fr 1fr!important}.process-filterbar-9366 .filter-search-9366{grid-column:1/-1!important}.quick-search-9366{width:100%!important;max-width:none!important}.section-head-9366{flex-direction:column!important;align-items:stretch!important}.section-tools-9366{width:100%!important}.process-table-wrap-9366{overflow-x:auto!important;-webkit-overflow-scrolling:touch}.process-table-9366{min-width:820px!important}
  .technical-work-grid,.work-grid,.sheet-grid,.split-page,.project-layout,.cl-grid,.sd-grid,.report-grid,.config-hub-grid,.assistant-grid,.reconstruction-grid-9369,.portal-feature-grid-9369{grid-template-columns:1fr!important}
  .assistant-status{position:static!important}.report-filter{grid-template-columns:1fr 1fr!important}.report-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}.portal-ready-9369{margin:20px auto!important;grid-template-columns:54px minmax(0,1fr)!important}.portal-ready-actions-9369{grid-column:1/-1;justify-content:flex-start!important}
  .work-toolbar,.search-row,.filters,.upload-row{max-width:100%!important;flex-wrap:wrap!important}.work-toolbar>*{min-width:0}.work-project-grid{grid-template-columns:1fr!important}
  .map-immersive-page .refined-topbar-9366{padding-left:64px!important}.map-immersive-page .content.refined-content-9366{padding:0!important}.map-immersive-page .ml2-shell{width:100%!important;min-width:0!important}.map-immersive-page .top-actions{overflow-x:auto!important;max-width:65vw!important;justify-content:flex-start!important}
}

@media (max-width:700px){
  .refined-topbar-9366{grid-template-columns:minmax(0,1fr) auto!important;min-height:78px!important}.topbar-heading h1{font-size:18px!important}.topbar-heading p{font-size:9px!important}.content.refined-content-9366{padding:12px 10px 30px!important}
  .process-metrics-9366{grid-template-columns:1fr!important}.metric-card-9366{min-height:84px!important}.process-filterbar-9366,.report-filter{grid-template-columns:1fr!important}.process-tabs-9366{overflow-x:auto!important;flex-wrap:nowrap!important}.process-tab-9366{flex:0 0 auto!important}.process-side-9366{display:grid!important}.context-summary-9366,.context-actions-grid-9366{grid-template-columns:1fr!important}
  .report-kpis{grid-template-columns:1fr 1fr!important}.report-table{min-width:980px!important}.report-mini-row{grid-template-columns:1fr!important}
  .cl-doc,.sd-proc{align-items:flex-start!important;flex-direction:column!important}.cl-actions,.sd-proc .actions{width:100%!important;display:flex!important;gap:7px!important;flex-wrap:wrap!important}
  .technical-work-item{grid-template-columns:1fr!important}.technician-card{align-items:flex-start!important;flex-direction:column!important;gap:10px!important}.technician-card-actions{width:100%!important;justify-content:flex-start!important;margin-left:0!important}.technical-work-item>*{min-width:0!important}.work-card-actions{flex-wrap:wrap!important}.work-card-actions>*{flex:1 1 auto!important}
  .portal-ready-9369{grid-template-columns:1fr!important;text-align:left!important;padding:20px!important}.portal-ready-actions-9369{grid-column:auto}.portal-ready-actions-9369 .btn{width:100%!important}.reconstruction-hero-9369{grid-template-columns:44px minmax(0,1fr)}.reconstruction-icon-9369{width:44px;height:44px}.reconstruction-score-9369{align-items:flex-start;flex-direction:column}
  .assistant-rule-grid{grid-template-columns:1fr!important}
  .config-hub-card{grid-template-columns:42px minmax(0,1fr)!important}.config-hub-card>b{grid-column:2!important}
}

@media (max-width:520px){
  .refined-topbar-9366{padding-left:58px!important;padding-right:8px!important}.topbar-heading p{display:none!important}.theme-current-9366{width:40px!important;min-width:40px!important}.page-actions-9366 .action-primary-9366{max-width:128px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.report-kpis{grid-template-columns:1fr!important}
  .metric-card-9366{grid-template-columns:38px minmax(0,1fr)!important}.metric-icon-9366{width:38px!important;height:38px!important}.metric-card-9366 strong{font-size:24px!important}
}
