* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Administração de usuários e perfis */
.app.admin-workspace .module-view[data-module-view="admin"].active{width:min(1480px,100%);grid-template-columns:minmax(0,1fr);gap:16px}
.app.admin-workspace .module-view[data-module-view="admin"]>.access-overview,.app.admin-workspace .admin-users-card,.app.admin-workspace .admin-nav-card,.app.admin-workspace .admin-tool-card{grid-column:1;grid-row:auto;margin:0}
.admin-user-summary{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.admin-summary-card{--summary-color:#2563eb;min-height:92px;display:flex!important;align-items:center;gap:12px;padding:16px!important;border:1px solid color-mix(in srgb,var(--summary-color) 20%,var(--ui-border,#dbe3ec))!important;border-radius:12px!important;background:linear-gradient(145deg,color-mix(in srgb,var(--summary-color) 7%,var(--ui-surface,#fff)),var(--ui-surface,#fff))!important;box-shadow:0 8px 24px rgba(20,40,70,.06)}
.admin-summary-card.green{--summary-color:#16a34a}.admin-summary-card.slate{--summary-color:#64748b}.admin-summary-card.purple{--summary-color:#7c3aed}.admin-summary-card.orange{--summary-color:#ea580c}.admin-summary-card.cyan{--summary-color:#0891b2}
.admin-summary-card>.material-symbols-outlined{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;color:var(--summary-color);background:color-mix(in srgb,var(--summary-color) 11%,transparent);font-size:22px}.admin-summary-card>span:last-child{display:grid;gap:3px}.admin-summary-card small{color:var(--ui-text-soft,#64748b);font-size:10px;font-weight:700}.admin-summary-card strong{color:var(--ui-text,#172033);font-size:24px;line-height:1}
.admin-section-eyebrow{display:block;margin-bottom:4px;color:var(--ui-primary,#2563eb);font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.admin-users-heading-actions button{width:auto!important;height:38px!important;display:flex!important;gap:7px;padding:0 13px!important;color:#fff!important;border:0!important;border-radius:8px!important;background:var(--ui-primary,#2563eb)!important;font-size:10px;font-weight:800}.admin-users-heading-actions button .material-symbols-outlined{font-size:17px}
.admin-user-filters{grid-template-columns:minmax(260px,1fr) minmax(180px,.45fr) minmax(180px,.45fr);gap:10px;margin:18px 0 12px}.admin-user-search{position:relative}.admin-user-search>.material-symbols-outlined{position:absolute;z-index:1;top:10px;left:11px;color:var(--ui-text-soft,#64748b);font-size:18px}.admin-user-search input{padding-left:38px!important}.admin-user-filters input,.admin-user-filters select{height:42px;border-color:var(--ui-border,#dbe3ec)!important;border-radius:8px!important;color:var(--ui-text,#172033)!important;background:var(--ui-surface-soft,#f8fafc)!important;outline:0}.admin-user-filters input:focus,.admin-user-filters select:focus{border-color:var(--ui-primary,#2563eb)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--ui-primary,#2563eb) 12%,transparent)}
.admin-user-list{gap:0;overflow:visible;margin-top:0;border:1px solid var(--ui-border,#dbe3ec);border-radius:10px;background:var(--ui-surface,#fff)}.admin-user-table-head,.app.admin-workspace .admin-user-row{display:grid;grid-template-columns:minmax(230px,1.35fr) minmax(150px,.8fr) minmax(165px,.85fr) 100px 130px 56px;gap:12px;align-items:center}.admin-user-table-head{min-height:42px;padding:0 14px;border-bottom:1px solid var(--ui-border,#dbe3ec);color:var(--ui-text-soft,#64748b);background:var(--ui-surface-soft,#f8fafc);font-size:9px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.app.admin-workspace .admin-user-row{min-height:66px;padding:10px 14px!important;border-bottom:1px solid var(--ui-border,#e5ebf2);transition:background .16s}.app.admin-workspace .admin-user-row:last-child{border-bottom:0}.app.admin-workspace .admin-user-row:hover{background:color-mix(in srgb,var(--ui-primary,#2563eb) 3%,var(--ui-surface,#fff))}.admin-user-row>span{min-width:0}.admin-user-identity{display:flex;align-items:center;gap:10px}.admin-user-identity>span:last-child,.admin-user-row>span:nth-child(3){min-width:0;display:grid;gap:4px}.admin-user-avatar{flex:0 0 auto;border-radius:10px!important;color:#fff!important;background:linear-gradient(145deg,#2563eb,#0ea5e9)!important}.app.admin-workspace .admin-user-row strong{color:var(--ui-text,#172033);font-size:12px}.app.admin-workspace .admin-user-row small{overflow:hidden;color:var(--ui-text-soft,#64748b);font-size:9px;text-overflow:ellipsis;white-space:nowrap}
.admin-badge,.admin-status-badge{width:max-content;max-width:100%;display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:750;white-space:nowrap}.admin-badge{overflow:hidden;color:#334155;background:#eef2f7;text-overflow:ellipsis}.admin-badge .material-symbols-outlined{font-size:13px}.admin-secretariat-badge{color:#075985;background:#e0f2fe}.admin-profile-badge{color:#5b21b6;background:#ede9fe}.admin-status-badge{color:#9f1239;background:#ffe4e6}.admin-status-badge.active{color:#166534;background:#dcfce7}.admin-status-badge i{width:6px;height:6px;border-radius:50%;background:currentColor}.admin-last-access{color:var(--ui-text-soft,#64748b);font-size:10px}
.admin-user-action-menu{position:relative;justify-self:end}.admin-user-action-menu summary{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--ui-border,#dbe3ec);border-radius:8px;color:var(--ui-text-soft,#64748b);background:var(--ui-surface,#fff);cursor:pointer;list-style:none}.admin-user-action-menu summary::-webkit-details-marker{display:none}.admin-user-action-menu[open] summary{color:var(--ui-primary,#2563eb);border-color:var(--ui-primary,#2563eb)}.admin-user-action-menu>div{position:absolute;z-index:30;top:39px;right:0;width:190px;display:grid;gap:2px;padding:6px;border:1px solid var(--ui-border,#dbe3ec);border-radius:10px;background:var(--ui-surface,#fff);box-shadow:0 16px 35px rgba(15,23,42,.18)}.admin-user-action-menu button{min-height:34px;display:flex;align-items:center;gap:8px;padding:0 9px;border:0;border-radius:6px;color:var(--ui-text,#172033);background:transparent;font-size:10px;text-align:left;cursor:pointer}.admin-user-action-menu button:hover{color:var(--ui-primary,#2563eb);background:var(--ui-surface-soft,#f8fafc)}.admin-user-action-menu button .material-symbols-outlined{font-size:16px}.admin-user-empty{min-height:180px;display:grid;place-items:center;align-content:center;gap:5px;color:var(--ui-text-soft,#64748b)}.admin-user-empty>.material-symbols-outlined{font-size:32px}.admin-user-empty strong{font-size:12px}.admin-user-empty small{font-size:10px}
.admin-profile-permissions{gap:18px}.admin-profile-card{overflow:hidden;padding:0!important;border:1px solid var(--ui-border,#dbe3ec)!important;border-radius:12px!important;background:var(--ui-surface,#fff);box-shadow:0 8px 24px rgba(20,40,70,.05)}.admin-profile-card>header{grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;margin:0!important;padding:16px 18px;border-bottom:1px solid var(--ui-border,#dbe3ec);background:var(--ui-surface-soft,#f8fafc)}.admin-profile-icon{width:39px;height:39px;display:grid;place-items:center;border-radius:10px;color:#6d28d9;background:#ede9fe}.admin-profile-card>header>span:nth-child(2){display:grid;gap:3px}.admin-profile-card>header strong{color:var(--ui-text,#172033);font-size:14px}.admin-profile-card>header small{color:var(--ui-text-soft,#64748b);font-size:10px}.admin-profile-card>header>b{padding:6px 9px;border-radius:999px;color:#075985;background:#e0f2fe;font-size:9px}.admin-permission-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px}.admin-profile-permissions fieldset{display:block;margin:0!important;padding:0 12px 12px!important;border:1px solid var(--ui-border,#dbe3ec)!important;border-radius:10px}.admin-profile-permissions legend{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 0;color:var(--ui-text,#172033)}.admin-profile-permissions legend>span{display:flex;align-items:center;gap:5px;font-size:10px;font-weight:800}.admin-profile-permissions legend .material-symbols-outlined{color:var(--ui-primary,#2563eb);font-size:16px}.admin-profile-permissions legend b{min-width:19px;padding:2px 5px;border-radius:999px;color:var(--ui-text-soft,#64748b);background:var(--ui-surface-soft,#f1f5f9);font-size:8px;text-align:center}.admin-profile-permissions legend button{min-height:25px;padding:0 7px!important;border:1px solid var(--ui-border,#dbe3ec)!important;color:var(--ui-primary,#2563eb)!important;background:transparent!important;font-size:8px}.admin-profile-permissions fieldset>label{min-height:42px;margin-top:6px;padding:7px 8px;border-radius:7px;background:var(--ui-surface-soft,#f8fafc)}.admin-profile-permissions fieldset>label>span{display:grid;gap:2px}.admin-profile-permissions fieldset label strong{color:var(--ui-text,#172033);font-size:9px}.admin-profile-permissions fieldset label small{color:var(--ui-text-soft,#64748b);font-family:monospace;font-size:8px}.admin-profile-permissions input{width:16px;height:16px;accent-color:var(--ui-primary,#2563eb)}.admin-module-empty{display:block;padding:10px;color:var(--ui-text-soft,#64748b);font-size:9px}.admin-profile-card>footer{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:12px 16px;border-top:1px solid var(--ui-border,#dbe3ec)}.admin-profile-card>footer>span{margin-right:auto;font-size:9px}.admin-profile-card>footer>span.success{color:#16a34a}.admin-profile-card>footer>span.error{color:#e11d48}.admin-profile-card>footer>span.saving{color:#0284c7}.admin-profile-card>footer>button{display:flex;align-items:center;gap:6px}.admin-profile-card button:disabled,.admin-profile-card input:disabled{opacity:.48;cursor:not-allowed}
.admin-access-denied{min-height:320px;display:grid;place-items:center;align-content:center;gap:8px;padding:30px;text-align:center}.admin-access-denied>.material-symbols-outlined{width:54px;height:54px;display:grid;place-items:center;border-radius:50%;color:#b45309;background:#fef3c7;font-size:27px}.admin-access-denied strong{color:var(--ui-text,#172033);font-size:16px}.admin-access-denied p{max-width:360px;margin:0;color:var(--ui-text-soft,#64748b);font-size:11px}.admin-access-denied button{margin-top:7px;padding:9px 13px;border:0;border-radius:7px;color:#fff;background:var(--ui-primary,#2563eb);cursor:pointer}
.user-dialog{width:min(660px,calc(100vw - 28px))}.user-dialog .user-form-grid{gap:14px}.user-dialog .user-form-grid label:nth-child(-n+2){grid-column:1/-1}.user-form-grid input,.user-form-grid select{border-radius:7px!important}.user-form-grid input:valid,.user-form-grid select:valid{border-color:color-mix(in srgb,#16a34a 42%,var(--ui-border,#dbe3ec))}.user-form-grid input:focus,.user-form-grid select:focus{border-color:var(--ui-primary,#2563eb)!important}.user-form-grid.was-validated input:invalid,.user-form-grid.was-validated select:invalid,#user-form.was-validated input:invalid,#user-form.was-validated select:invalid{border-color:#e11d48!important;box-shadow:0 0 0 3px rgba(225,29,72,.08)}
@media(max-width:1180px){.admin-user-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-user-table-head,.app.admin-workspace .admin-user-row{grid-template-columns:minmax(210px,1.2fr) minmax(140px,.8fr) minmax(150px,.8fr) 90px 52px}.admin-user-table-head>span:nth-child(5),.admin-last-access{display:none}.admin-permission-groups{grid-template-columns:1fr}}
@media(max-width:820px){.admin-user-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-user-filters{grid-template-columns:1fr 1fr}.admin-user-search{grid-column:1/-1}.admin-user-table-head{display:none}.app.admin-workspace .admin-user-row{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px}.admin-user-row>span:nth-child(2),.admin-user-row>span:nth-child(3),.admin-user-row>span:nth-child(4){grid-column:1}.admin-user-action-menu{grid-column:2;grid-row:1/4}.admin-users-heading-actions button>span:last-child{display:none}.user-dialog .user-form-grid{grid-template-columns:1fr}.user-dialog .user-form-grid label{grid-column:1!important}}

/* Fiscalizações · hierarquia tipográfica e alto contraste para uso em campo */
@media screen {
  :root {
    --inspection-font-title: 28px;
    --inspection-font-section: 22px;
    --inspection-font-card-title: 18px;
    --inspection-text-strong: #14293a;
    --inspection-text-body: #263f53;
    --inspection-text-muted: #465f73;
    --inspection-warning-text: #512f00;
    --inspection-warning-border: #9a5a00;
    --inspection-warning-bg: #fff1b8;
    --inspection-success-text: #0b4f2d;
    --inspection-success-border: #187443;
    --inspection-success-bg: #d9f4e3;
  }

  .module-view[data-module-view="inspections"] {
    color: var(--inspection-text-body);
    font-size: var(--inspection-font-body);
    line-height: 1.5;
  }

  .module-view[data-module-view="inspections"] h1 {
    color: var(--inspection-text-strong);
    font-size: var(--inspection-font-title);
    line-height: 1.2;
  }

  .module-view[data-module-view="inspections"] h2 {
    color: var(--inspection-text-strong);
    font-size: var(--inspection-font-section);
    line-height: 1.3;
  }

  .module-view[data-module-view="inspections"] h3,
  .module-view[data-module-view="inspections"] article strong {
    color: var(--inspection-text-strong);
    font-size: var(--inspection-font-card-title);
    line-height: 1.4;
  }

  .module-view[data-module-view="inspections"] :is(p, label, input, select, textarea, button, dd) {
    font-size: var(--inspection-font-body);
  }

  .module-view[data-module-view="inspections"] :is(small, dt, time, em),
  .module-view[data-module-view="inspections"] .inspection-field-hint,
  .module-view[data-module-view="inspections"] .inspection-photo-status {
    color: var(--inspection-text-muted);
    font-size: var(--inspection-font-help) !important;
    line-height: 1.45;
  }

  .module-view[data-module-view="inspections"] :is(.inspection-status, .environmental-process-status, .dirty-lot-status, .inspection-overdue-badge) {
    min-height: 32px;
    align-items: center;
    padding: 6px 10px;
    border: 2px solid currentColor;
    font-size: var(--inspection-font-help) !important;
    font-weight: 900;
    line-height: 1.25;
    text-transform: none;
  }

  .module-view[data-module-view="inspections"] :is(
    .inspection-status.demand-in_progress,
    .inspection-status.draft,
    .inspection-status.demand-draft,
    .environmental-process-status.status-irregular_notification_pending,
    .environmental-process-status.status-notification_issued,
    .environmental-process-status.status-external_system_pending,
    .environmental-process-status.status-awaiting_delivery_receipt,
    .environmental-process-status.status-awaiting_regularization,
    .environmental-process-status.status-return_pending,
    .dirty-lot-status.return_scheduled,
    .inspection-overdue-badge
  ) {
    color: var(--inspection-warning-text) !important;
    border-color: var(--inspection-warning-border) !important;
    background: var(--inspection-warning-bg) !important;
  }

  .module-view[data-module-view="inspections"] :is(
    .inspection-status.demand-completed,
    .inspection-status.submitted,
    .environmental-process-status.status-regular_closed,
    .environmental-process-status.status-regularized_closed,
    .environmental-process-status.status-closed,
    .dirty-lot-status:not(.deadline_expired):not(.not_regularized):not(.return_scheduled)
  ) {
    color: var(--inspection-success-text) !important;
    border-color: var(--inspection-success-border) !important;
    background: var(--inspection-success-bg) !important;
  }

  .module-view[data-module-view="inspections"] .inspection-urgent-alerts {
    color: var(--inspection-warning-text);
    border: 2px solid var(--inspection-warning-border);
    background: var(--inspection-warning-bg);
  }

  .module-view[data-module-view="inspections"] .inspection-urgent-alerts > div > span {
    color: var(--inspection-warning-text);
    border-color: #ad7318;
    background: #fffaf0;
    font-weight: 800;
  }

  .module-view[data-module-view="inspections"] .inspection-urgent-alerts > div strong {
    color: #713f00;
  }

  .module-view[data-module-view="inspections"] :is(.inspection-review-ready, .inspection-message.success, .inspection-profile-status) {
    color: var(--inspection-success-text) !important;
    border: 2px solid var(--inspection-success-border) !important;
    background: var(--inspection-success-bg) !important;
    font-weight: 800;
  }

  :is(
    #inspection-form,
    #inspection-type-dialog,
    #inspection-detail-dialog,
    #environmental-return-request-dialog,
    #environmental-external-launch-dialog,
    #environmental-administrative-decision-dialog,
    #environmental-appeal-register-dialog,
    #environmental-appeal-judgment-dialog,
    #environmental-post-dialog,
    #inspection-camera-dialog,
    #dirty-lot-return-dialog,
    #inspection-history-dialog
  ) :is(p, label, input, select, textarea, button, dd) {
    font-size: var(--inspection-font-body);
  }

  :is(
    #inspection-form,
    #inspection-type-dialog,
    #inspection-detail-dialog,
    #environmental-return-request-dialog,
    #environmental-external-launch-dialog,
    #environmental-administrative-decision-dialog,
    #environmental-appeal-register-dialog,
    #environmental-appeal-judgment-dialog,
    #environmental-post-dialog,
    #inspection-camera-dialog,
    #dirty-lot-return-dialog,
    #inspection-history-dialog
  ) :is(small, dt, time, .inspection-field-hint, .inspection-photo-status) {
    color: var(--inspection-text-muted) !important;
    font-size: var(--inspection-font-help) !important;
    line-height: 1.45;
  }
}

@media screen and (max-width: 820px) {
  :root { --inspection-font-title: 25px; --inspection-font-section: 21px; }
  .module-view[data-module-view="inspections"] .inspection-profile-dashboard { gap: 18px; }
  .module-view[data-module-view="inspections"] .inspection-action-tile { min-height: 104px !important; }
  .module-view[data-module-view="inspections"] :is(.inspection-urgent-alerts, .inspection-review-card, .inspection-demand-item, .inspection-record-card) { box-shadow: 0 3px 10px rgba(20,41,58,.12); }
}

:root {
  --inspection-font-body: 16px;
  --inspection-font-help: 14px;
  --inspection-control-height: 48px;
  --inspection-field-control-height: 56px;
  --inspection-card-padding: 20px;
  --gw-topbar: 68px;
}

/* FUNDO GERAL */
body {
  height: 100vh;
  overflow: hidden;
  background: #0b1220;
}

/* =========================================================
   GEOWEB MUNICIPAL 2026 · workspace cartográfico
   Camada visual modular; preserva os componentes funcionais.
========================================================= */
@media not all {
:root {
  --gw-bg: #eef3f8; --gw-surface: rgba(255,255,255,.96); --gw-surface-2: #f7f9fc;
  --gw-border: #d8e1eb; --gw-text: #182536; --gw-muted: #66768a;
  --gw-primary: #1769e0; --gw-accent: #00a88f; --gw-hover: #e9f2ff;
  --gw-shadow: 0 12px 34px rgba(28,54,86,.14); --gw-topbar: 68px;
}
body[data-theme="dark"] {
  color-scheme: dark; --gw-bg: #0b111b; --gw-surface: rgba(18,27,40,.97); --gw-surface-2: #151f2d;
  --gw-border: #2a394b; --gw-text: #e7eef7; --gw-muted: #95a6ba;
  --gw-primary: #54a2ff; --gw-accent: #36d5bb; --gw-hover: #1c3047;
  --gw-shadow: 0 14px 38px rgba(0,0,0,.34);
}
body, button, input, select, textarea { font-family: Inter, "Segoe UI", Arial, sans-serif; }
body[data-theme] { background: var(--gw-bg); color: var(--gw-text); }
.app { grid-template-columns: 76px 0 minmax(0,1fr); background: var(--gw-bg); }
.app.panel-open { grid-template-columns: 76px minmax(340px,400px) minmax(0,1fr); }
.platform-rail, .sidebar, body[data-theme] .platform-rail { width:76px; min-width:76px; color:#cad6e4; background:#122033; border-color:#28394d; box-shadow:none; }
.platform-rail:hover { width:76px; }
.platform-module-btn { width:48px; height:43px; color:#91a5bb; border-radius:10px; }
.platform-module-btn:hover { color:#fff; background:#203650; }
.platform-module-btn.active { color:#fff; border-left-color:#38bdf8; background:linear-gradient(135deg,#1e6bd6,#118b91); box-shadow:0 6px 16px rgba(0,112,200,.25); }
.logo.platform-module-btn { background:linear-gradient(135deg,#087f74,#1769e0); }
.rail-account { border-color:#28394d; }
.platform-panel, body[data-theme] .platform-panel { color:var(--gw-text); background:var(--gw-bg); border-color:var(--gw-border); box-shadow:var(--gw-shadow); }
.platform-panel-header, body[data-theme] .platform-panel-header { height:68px; color:var(--gw-text); background:var(--gw-surface); border-color:var(--gw-border); }
.platform-panel-header h1, body[data-theme] .platform-panel-header h1 { color:var(--gw-text); }
.platform-panel-header span, body[data-theme] .platform-panel-header span { color:var(--gw-primary); }
.platform-panel-close, body[data-theme] .platform-panel-close { color:var(--gw-muted); background:var(--gw-surface-2); border-color:var(--gw-border); }
.module-card, .metric-card, .card, body[data-theme] .module-card, body[data-theme] .metric-card, body[data-theme] .card { color:var(--gw-text); background:var(--gw-surface); border-color:var(--gw-border); box-shadow:0 5px 15px rgba(24,50,80,.05); }
.module-card h2, .metric-card strong, .card strong, body[data-theme] .module-card h2, body[data-theme] .metric-card strong, body[data-theme] .card strong { color:var(--gw-text); }
.metric-card { position:relative; overflow:hidden; min-height:104px; border-radius:14px; }
.metric-card::after { content:""; position:absolute; inset:auto -18px -28px auto; width:72px; height:72px; border-radius:50%; background:color-mix(in srgb,var(--gw-primary) 9%,transparent); }
.map-container { min-width:0; background:#dce5e9; }
#map { position:absolute; inset:var(--gw-topbar) 0 0; width:100%; height:auto; }
.geoweb-topbar { position:absolute; inset:0 0 auto; z-index:20; height:var(--gw-topbar); display:grid; grid-template-columns:auto minmax(240px,680px) auto; align-items:center; gap:clamp(12px,2vw,28px); padding:0 18px; color:var(--gw-text); background:var(--gw-surface); border-bottom:1px solid var(--gw-border); box-shadow:0 3px 15px rgba(29,55,82,.08); backdrop-filter:blur(18px); }
.topbar-title { display:flex; align-items:center; gap:10px; white-space:nowrap; }
.topbar-title>.material-symbols-outlined { width:38px; height:38px; display:grid; place-items:center; color:#fff; background:linear-gradient(135deg,#087f74,#1769e0); border-radius:11px; }
.topbar-title strong,.topbar-title small { display:block; }.topbar-title strong { font-size:14px; }.topbar-title small { margin-top:2px; color:var(--gw-muted); font-size:9px; letter-spacing:.04em; text-transform:uppercase; }
.global-search { height:42px; display:flex; align-items:center; gap:9px; padding:0 11px; color:var(--gw-muted); background:var(--gw-surface-2); border:1px solid var(--gw-border); border-radius:11px; transition:.18s; }
.global-search:focus-within { border-color:var(--gw-primary); box-shadow:0 0 0 3px color-mix(in srgb,var(--gw-primary) 14%,transparent); }
.global-search input { min-width:0; flex:1; color:var(--gw-text); background:transparent; border:0; outline:0; font-size:12px; }
.global-search kbd { padding:3px 6px; color:var(--gw-muted); background:var(--gw-surface); border:1px solid var(--gw-border); border-radius:5px; font-size:9px; }
.topbar-actions { display:flex; align-items:center; gap:5px; }
.topbar-actions button { min-width:38px; height:38px; display:flex; align-items:center; justify-content:center; gap:6px; padding:0 9px; color:var(--gw-muted); background:transparent; border:0; border-radius:9px; cursor:pointer; }
.topbar-actions button:hover { color:var(--gw-primary); background:var(--gw-hover); }.topbar-actions .material-symbols-outlined { font-size:20px; }
.topbar-actions button>span:last-child:not(.material-symbols-outlined) { font-size:11px; font-weight:700; }
.topbar-actions .topbar-avatar { width:36px; min-width:36px; height:36px; padding:0; color:#fff; background:linear-gradient(135deg,#1769e0,#00a88f); border-radius:50%; font-size:10px; font-weight:800; }
.toolbar { top:calc(var(--gw-topbar) + 14px); left:50%; z-index:12; transform:translateX(-50%); gap:2px; padding:5px; background:var(--gw-surface); border:1px solid var(--gw-border); border-radius:12px; box-shadow:var(--gw-shadow); backdrop-filter:blur(16px); }
.toolbar .tool-btn, .map-tool-extensions .tool-btn { min-height:36px; padding:0 10px; color:var(--gw-text); background:transparent; border:0; border-radius:8px; font-size:11px; }
.toolbar .tool-btn:hover,.toolbar .tool-btn.active,.map-tool-extensions .tool-btn:hover { color:var(--gw-primary); background:var(--gw-hover); }
.toolbar .map-geolocation-button { display:flex;align-items:center;gap:5px; }
.toolbar .map-geolocation-button .material-symbols-outlined { font-size:18px; }
.toolbar .map-geolocation-button.active { color:#fff;background:#0284c7;box-shadow:0 0 0 3px rgba(14,165,233,.22); }
.map-geolocation-status { position:absolute;top:calc(var(--gw-topbar) + 63px);left:50%;z-index:11;max-width:min(420px,calc(100vw - 24px));padding:8px 12px;transform:translateX(-50%);border:1px solid var(--gw-border);border-radius:9px;color:var(--gw-text);background:var(--gw-surface);box-shadow:var(--gw-shadow);font-size:13px;font-weight:700;text-align:center; }
.map-geolocation-status.active { border-color:rgba(14,165,233,.5); }
.map-geolocation-status.hidden { display:none; }
.map-user-location-marker { position:relative;width:22px;height:22px;border:4px solid #fff;border-radius:50%;background:#0284c7;box-shadow:0 0 0 3px rgba(2,132,199,.3),0 3px 10px rgba(15,23,42,.42);pointer-events:none; }
.map-user-location-marker::after { content:"";position:absolute;inset:-8px;border:2px solid rgba(14,165,233,.7);border-radius:50%;animation:map-location-pulse 1.8s ease-out infinite; }
@keyframes map-location-pulse { 0%{transform:scale(.55);opacity:1} 100%{transform:scale(1.65);opacity:0} }
.map-tool-extensions { position:absolute; top:calc(var(--gw-topbar) + 61px); left:50%; z-index:11; display:flex; gap:2px; padding:5px; background:var(--gw-surface); border:1px solid var(--gw-border); border-radius:11px; box-shadow:var(--gw-shadow); transform:translateX(-50%); }
.map-tool-extensions .tool-btn { display:flex; align-items:center; gap:5px; cursor:pointer; }.map-tool-extensions .material-symbols-outlined { font-size:18px; }
.basemap-control { top:calc(var(--gw-topbar) + 14px); right:14px; z-index:13; background:var(--gw-surface); border-color:var(--gw-border); box-shadow:var(--gw-shadow); }
.basemap-btn { color:var(--gw-muted); }.basemap-btn.active { color:#fff; background:var(--gw-primary); }
.map-statusbar { position:absolute; right:14px; bottom:12px; z-index:10; display:flex; gap:14px; padding:7px 10px; color:var(--gw-muted); background:var(--gw-surface); border:1px solid var(--gw-border); border-radius:8px; box-shadow:var(--gw-shadow); font-size:9px; font-weight:600; backdrop-filter:blur(14px); }
.popup { top:calc(var(--gw-topbar) + 14px); right:14px; width:min(370px,calc(100vw - 28px)); color:var(--gw-text); background:var(--gw-surface); border:1px solid var(--gw-border); border-radius:14px; box-shadow:var(--gw-shadow); animation:contextIn .2s ease; }
@keyframes contextIn { from{ opacity:0; transform:translateX(18px) } }
body[data-theme="dark"] .ol-zoom button,body[data-theme="dark"] .ol-attribution { color:var(--gw-text); background:var(--gw-surface); }
@media (max-width:1100px){ .topbar-title small,.topbar-actions button>span:last-child:not(.material-symbols-outlined){display:none}.geoweb-topbar{grid-template-columns:auto 1fr auto}.basemap-control{display:none} }
@media (max-width:760px){ :root{--gw-topbar:58px}.app,.app.panel-open{grid-template-columns:1fr}.platform-rail{position:fixed; inset:auto 0 0; z-index:40; width:100%; min-width:100%; height:58px}.platform-rail .sidebar-top,.rail-account{display:none}.platform-menu{height:58px; flex-direction:row; justify-content:space-around; padding:5px; overflow-x:auto}.platform-menu .platform-module-btn:nth-child(n+7){display:none}.platform-panel{position:fixed; inset:58px 0 58px; z-index:35; height:auto}.app:not(.panel-open) .platform-panel{pointer-events:none}.map-container{grid-column:1}.geoweb-topbar{padding:0 8px;gap:7px}.topbar-title div{display:none}.global-search kbd{display:none}.topbar-actions button{display:none}.topbar-actions #theme-toggle,.topbar-actions .topbar-avatar{display:flex}.toolbar{top:calc(var(--gw-topbar) + 9px);max-width:calc(100vw - 16px);overflow-x:auto;justify-content:flex-start;transform:translateX(-50%)}.map-tool-extensions{top:auto;bottom:72px;max-width:calc(100vw - 18px);overflow-x:auto}.tool-btn{white-space:nowrap}.map-statusbar{right:8px;bottom:65px}.map-statusbar span:first-child,.map-statusbar span:last-child{display:none}#map{bottom:58px}.inspection-map-summary{display:none} }
@media (max-width:760px){.map-geolocation-status{top:calc(var(--gw-topbar) + 58px)}}
}

.network-status { position: fixed; top: max(10px, env(safe-area-inset-top)); left: 50%; z-index: 10000; max-width: calc(100vw - 24px); display: grid; grid-template-columns: auto auto; align-items: center; gap: 2px 7px; padding: 9px 13px; border: 1px solid rgba(251, 191, 36, .35); border-radius: 9px; color: #fde68a; background: rgba(69, 26, 3, .96); box-shadow: 0 12px 32px rgba(0, 0, 0, .35); transform: translateX(-50%); }
.network-status[hidden] { display: none; }
.network-status .material-symbols-outlined { grid-row: 1 / 3; color: #fbbf24; font-size: 21px; }
.network-status strong { font-size: 11px; }
.network-status small { overflow: hidden; max-width: 360px; color: #d6b985; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

/* LAYOUT PRINCIPAL */
.app {
  display: grid;
  grid-template-columns: auto 1fr 360px;
  min-height: 100vh;
  align-items: stretch;
}

/* =========================
   GLASS SIDEBAR ESQUERDA
========================= */
.sidebar {
  width: 70px;
  min-width: 70px;
  height: 100vh;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  border-right: 1px solid rgba(255,255,255,0.06);
  color: white;
  display: flex;
  flex-direction: column;
  transition: width 0.25s ease;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

/* EXPANSÃƒO NO HOVER */
.sidebar:hover {
  width: 240px;
}

/* LOGO */
.sidebar-top {
  padding: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo {
  font-size: 22px;
}

/* MENU */
.menu {
  display: flex;
  flex-direction: column;
  padding: 6px;
  gap: 4px;
}

/* ITEM */
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
  justify-content: flex-start;
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
}

.menu-item:hover {
  background: rgba(59, 130, 246, 0.15);
}

.menu-item.active {
  background: rgba(59, 130, 246, 0.25);
  border-left: 3px solid #3b82f6;
}

.sidebar:not(:hover) .menu-item {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.sidebar:not(:hover) .menu-item.active {
  border-left: none;
}

/* ÃCONE */
.menu-item span[aria-hidden="true"] {
  font-size: 18px;
  min-width: 30px;
  text-align: center;
}

/* TEXTO SOME QUANDO FECHADO */
.menu-item span:not([aria-hidden="true"]) {
  display: inline-block;
  width: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateX(-5px);
  transition: width 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.sidebar:hover .menu-item span:not([aria-hidden="true"]) {
  width: auto;
  opacity: 1;
  transform: translateX(0);
}

/* GRUPOS */
.menu-group {
  font-size: 10px;
  color: #64748b;
  margin: 10px 8px 4px;
  letter-spacing: 1px;
  opacity: 0;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, height 0.2s ease;
}

.sidebar:hover .menu-group {
  opacity: 1;
  visibility: visible;
  height: auto;
}

/* BOTÃ•ES */
.btn {
  width: 100%;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  background: rgba(31, 41, 55, 0.6);
  color: white;
  transition: 0.2s;
}

.btn:hover {
  background: rgba(51, 65, 85, 0.8);
}

.btn-primary {
  background: rgba(37, 99, 235, 0.7);
}

.btn-primary:hover {
  background: rgba(29, 78, 216, 0.9);
}

/* =========================
   MAPA
========================= */
.map-container {
  position: relative;
  min-height: 100vh;
}

#map {
  width: 100%;
  height: 100%;
}

/* =========================
   TOOLBAR FLUTUANTE GLASS
========================= */
.toolbar {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 8px;

  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);

  padding: 8px;
  border-radius: 12px;
}

.tool-btn {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(31, 41, 55, 0.6);
  color: white;
  cursor: pointer;
  font-size: 12px;
}

.tool-btn:hover {
  background: rgba(51, 65, 85, 0.8);
}

.measure-panel {
  position: absolute;
  top: 62px;
  left: 12px;
  display: flex;
  gap: 8px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 12px;
  padding: 8px;
  z-index: 3;
}

.measure-panel.hidden {
  display: none;
}

.measure-btn {
  min-width: 68px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(31, 41, 55, 0.65);
  color: #e5e7eb;
  cursor: pointer;
  font-size: 12px;
}

.measure-btn:hover,
.measure-btn.active {
  background: rgba(249, 115, 22, 0.28);
  border-color: rgba(249, 115, 22, 0.6);
  color: #fff7ed;
}

.search-panel {
  position: absolute;
  top: 62px;
  left: 12px;
  width: min(460px, calc(100% - 24px));
  max-height: calc(100% - 86px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: 12px;
  padding: 10px;
  z-index: 4;
}

.search-panel.hidden {
  display: none;
}

.search-row {
  display: grid;
  grid-template-columns: 120px 120px 1fr auto;
  gap: 8px;
}

.search-row select,
.search-row input,
.search-row button {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.78);
  color: #e5e7eb;
  padding: 8px 9px;
  font-size: 12px;
}

.search-row button {
  cursor: pointer;
  background: rgba(14, 165, 233, 0.25);
  border-color: rgba(56, 189, 248, 0.45);
}

@media (max-width: 720px) {
  .search-row {
    grid-template-columns: 1fr 1fr;
  }
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.search-result {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(31, 41, 55, 0.62);
  color: #e5e7eb;
  cursor: pointer;
  padding: 9px;
  text-align: left;
}

.search-result:hover {
  background: rgba(34, 211, 238, 0.16);
  border-color: rgba(34, 211, 238, 0.4);
}

.search-result strong,
.search-result span,
.search-empty {
  display: block;
  font-size: 12px;
}

.search-result span,
.search-empty {
  color: #94a3b8;
  margin-top: 4px;
}

.basemap-control {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  gap: 6px;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 7px;
  z-index: 3;
}

.basemap-btn {
  min-width: 58px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(31, 41, 55, 0.68);
  color: #e5e7eb;
  cursor: pointer;
  font-size: 12px;
  padding: 7px 9px;
}

.basemap-btn:hover,
.basemap-btn.active {
  background: rgba(56, 189, 248, 0.24);
  border-color: rgba(56, 189, 248, 0.55);
  color: #f8fafc;
}

.basemap-divider {
  align-self: stretch;
  width: 1px;
  margin: 1px 2px;
  background: rgba(148, 163, 184, 0.35);
}

.basemap-overlay-btn {
  min-width: 126px;
  font-weight: 650;
}

.basemap-overlay-btn.active {
  background: rgba(22, 163, 74, 0.9);
  border-color: rgba(21, 128, 61, 0.95);
  color: #fff;
}

.basemap-overlay-btn[hidden],
.basemap-divider[hidden] {
  display: none;
}

/* =========================
   POPUP DE INFORMAÃ‡Ã•ES
========================= */
.popup {
  position: absolute;
  top: 20px;
  right: 20px;
  width: min(340px, calc(100% - 40px));
  max-height: calc(100% - 40px);
  background: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  overflow-y: auto;
  z-index: 10;
}

.popup.hidden {
  display: none;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 18px;
  line-height: 0;
  cursor: pointer;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-title {
  margin: 0;
  font-size: 18px;
  color: #38bdf8;
}

.panel-badge {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.15);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.panel-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.attribute-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.attribute-actions span {
  font-size: 12px;
  color: #94a3b8;
}

.attribute-actions button {
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  background: rgba(14, 165, 233, 0.18);
  color: #e0f2fe;
  cursor: pointer;
  font-size: 12px;
  padding: 7px 9px;
}

.attribute-actions button:hover {
  background: rgba(14, 165, 233, 0.3);
}

.attribute-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.attribute-table tr + tr {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.attribute-table th,
.attribute-table td {
  padding: 8px 0;
  text-align: left;
  vertical-align: top;
  font-size: 12px;
}

.attribute-table th {
  width: 38%;
  color: #94a3b8;
  font-weight: 600;
  padding-right: 10px;
  word-break: break-word;
}

.attribute-table td {
  color: #e5e7eb;
  word-break: break-word;
}

/* CARDS GLASS */
.card {
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
}

/* LAYER ITEM COM CHECKBOX */
.layer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(31, 41, 55, 0.4);
  color: white;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-size: 13px;
}

.layer-item:hover {
  background: rgba(31, 41, 55, 0.6);
  border-color: rgba(59, 130, 246, 0.4);
}

.layer-item.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.6);
}

.layer-checkbox {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #38bdf8;
}

.layer-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layer-info {
  flex: 1;
  min-width: 0;
}

.layer-info .layer-name {
  display: block;
}

.layer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
}

.layer-tags span {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.44);
  color: #94a3b8;
  font-size: 10px;
  line-height: 1;
  padding: 3px 5px;
}

.layer-favorite-btn {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
}

.layer-favorite-btn:hover,
.layer-favorite-btn.active {
  color: #facc15;
  background: rgba(250, 204, 21, 0.1);
}

.layer-toggle-btn {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s ease;
}

.layer-toggle-btn:hover {
  background: rgba(59, 130, 246, 0.3);
  color: #38bdf8;
}

.layer-card.disabled .layer-name {
  opacity: 0.5;
  text-decoration: line-through;
}

.layers-controls {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-secondary {
  background: rgba(100, 116, 139, 0.4);
}

.btn-secondary:hover {
  background: rgba(100, 116, 139, 0.6);
}

/* RIGHT SIDEBAR */
.rightbar {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-height: 100vh;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  border-left: 1px solid rgba(255,255,255,0.06);
  color: white;
  padding: 18px;
  overflow: hidden;
  z-index: 1;
}

.rightbar-header {
  flex: 0 0 auto;
}

.rightbar .panel-header {
  margin-bottom: 16px;
}

.rightbar .panel-title {
  font-size: 18px;
}

.layer-filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.layer-filter span {
  font-size: 11px;
  color: #94a3b8;
}

.layer-filter input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
  padding: 8px 10px;
  outline: none;
}

.layer-filter input:focus {
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.12);
}

.layers-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.55) rgba(15, 23, 42, 0.45);
}

.layers-list::-webkit-scrollbar {
  width: 8px;
}

.layers-list::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.45);
  border-radius: 999px;
}

.layers-list::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.55);
  border-radius: 999px;
}

.layer-card {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(51, 65, 85, 0.5);
  color: white;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.layer-card:hover {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
}

.layer-card.active {
  border-color: rgba(59, 130, 246, 0.7);
}

.layer-card + .layer-card {
  margin-top: 0;
}

.layer-card .layer-item {
  width: 100%;
  border: none;
  background: transparent;
  color: white;
  text-align: left;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  transition: none;
}

.layer-card .layer-item:hover {
  background: transparent;
  transform: none;
}

.layer-legend-swatch {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 2px solid var(--layer-stroke);
  border-radius: 4px;
  background: var(--layer-fill);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.layer-action-btn,
.layer-order-btn {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.55);
  color: #cbd5e1;
  cursor: pointer;
  font-size: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.layer-action-btn::before,
.layer-order-btn::before {
  font-size: 15px;
  line-height: 1;
}

.layer-settings-btn::before {
  content: "\2699";
  font-size: 16px;
}

.layer-card.expanded .layer-settings-btn::before {
  content: "\2212";
}

.layer-order-btn[data-order="1"]::before {
  content: "\2191";
}

.layer-order-btn[data-order="-1"]::before {
  content: "\2193";
}

.layer-settings-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  color: white;
}

.layer-order-btn:hover {
  background: rgba(59, 130, 246, 0.25);
  color: white;
}

.layer-settings {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.layer-card.expanded .layer-settings {
  display: flex;
}

.layer-settings-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.layer-settings-meta > div {
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.3);
}

.layer-settings-meta dt {
  margin-bottom: 4px;
  color: #94a3b8;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.layer-settings-meta dd {
  margin: 0;
  overflow: hidden;
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layer-settings-meta .layer-visibility-tag {
  display: flex;
  align-items: center;
  gap: 3px;
}

.layer-settings-meta .layer-visibility-tag .material-symbols-outlined {
  font-size: 13px;
}

.census-population-legend {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 7px;
  background: rgba(15, 23, 42, 0.35);
}

.census-population-legend > strong,
.census-population-legend > small {
  color: #e2e8f0;
  font-size: 11px;
}

.census-population-legend > small {
  color: #94a3b8;
  font-size: 9px;
}

.census-population-legend > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
}

.census-population-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #cbd5e1;
  font-size: 10px;
}

.census-population-legend i {
  width: 15px;
  height: 11px;
  flex: 0 0 auto;
  border: 1px solid rgba(30, 64, 175, 0.78);
  border-radius: 2px;
  background: var(--legend-color);
}

.household-thematic-legend > label { display:grid; gap:6px; color:#e2e8f0; font-size:11px; }
.household-thematic-legend select { width:100%; min-width:0; padding:7px; color:#e2e8f0; background:#0f172a; border:1px solid rgba(148,163,184,.4); border-radius:6px; }
.household-thematic-legend i { border-color:rgba(15,118,110,.82); }

.layer-settings label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.layer-settings label span {
  font-size: 11px;
  color: #94a3b8;
}

.layer-settings input,
.layer-settings select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
  padding: 7px 8px;
}

.layer-settings input[type="range"] {
  padding: 0;
  accent-color: #38bdf8;
}

.layer-settings input[type="color"] {
  height: 34px;
  padding: 3px;
}

.setting-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.layer-color-setting {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.layer-settings input[type="color"]:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.layer-transparent-check {
  gap: 5px !important;
}

.layer-transparent-check span {
  color: #cbd5e1 !important;
}

.layer-label-shadow-check {
  align-self: end;
  min-height: 34px;
  padding-bottom: 7px;
}

.setting-check {
  flex-direction: row !important;
  align-items: center;
}

.setting-check input {
  width: 16px;
  height: 16px;
  accent-color: #38bdf8;
}

.card span {
  display: block;
  font-size: 12px;
  color: #94a3b8;
}

.card strong {
  font-size: 14px;
  color: #e5e7eb;
}

/* =========================
   PLATFORM MANAGEMENT SIDEBAR
========================= */
.app {
  grid-template-columns: 66px 0 minmax(0, 1fr);
  transition: grid-template-columns 0.22s ease;
}

.app.panel-open {
  grid-template-columns: 66px minmax(320px, 390px) minmax(0, 1fr);
}

.platform-rail {
  width: 66px;
  min-width: 66px;
  background: #111827;
  border-right: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: none;
  z-index: 5;
}

.platform-rail:hover {
  width: 66px;
}

.platform-rail .sidebar-top {
  padding: 10px 8px 8px;
}

.platform-menu {
  align-items: center;
  gap: 3px;
  overflow-y: auto;
  padding: 4px 6px 12px;
  scrollbar-width: none;
}

.platform-menu::-webkit-scrollbar {
  display: none;
}

.platform-module-btn {
  width: 46px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.platform-module-btn:hover {
  background: rgba(59, 130, 246, 0.16);
  color: #e5e7eb;
}

.platform-module-btn.active {
  background: rgba(56, 189, 248, 0.16);
  border-left-color: #38bdf8;
  color: #f8fafc;
}

.notification-module-button { position: relative; }
.notification-module-button b { position: absolute; top: 3px; right: 3px; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; border: 2px solid #111827; border-radius: 999px; color: #fff; background: #ef4444; font-size: 8px; }
.notification-module-button b[hidden] { display: none; }

.platform-module-btn .material-symbols-outlined,
.logo .material-symbols-outlined {
  font-size: 23px;
  line-height: 1;
}

.logo.platform-module-btn {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  color: white;
  border-left-color: transparent;
}

.platform-panel {
  min-width: 0;
  height: 100vh;
  overflow: hidden;
  background: #0f172a;
  color: #e5e7eb;
  border-right: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 14px 0 28px rgba(0, 0, 0, 0.22);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 4;
}

.app.panel-open .platform-panel {
  opacity: 1;
  transform: translateX(0);
}

.platform-panel-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.platform-panel-header span {
  display: block;
  color: #38bdf8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platform-panel-header h1 {
  margin: 3px 0 0;
  color: #f8fafc;
  font-size: 18px;
  letter-spacing: 0;
}

.platform-panel-close {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.7);
  color: #cbd5e1;
  cursor: pointer;
}

.platform-panel-close:hover {
  background: rgba(30, 41, 59, 0.9);
  color: #fff;
}

.platform-panel-actions { display:flex; align-items:center; gap:7px; }
.workspace-map-toggle { min-height:34px; display:flex; align-items:center; gap:6px; padding:0 10px; border:1px solid rgba(56,189,248,.24); border-radius:8px; color:#bae6fd; background:rgba(14,165,233,.09); cursor:pointer; }
.workspace-map-toggle:hover { border-color:rgba(56,189,248,.48); background:rgba(14,165,233,.17); }
.platform-panel-header .workspace-map-toggle .material-symbols-outlined { color:#38bdf8; font-size:18px; letter-spacing:0; text-transform:none; }
.platform-panel-header .workspace-map-toggle span:last-child { color:#bae6fd; font-size:9px; font-weight:800; letter-spacing:0; text-transform:none; }

.platform-panel-body {
  height: calc(100vh - 72px);
  overflow-y: auto;
  padding: 14px;
}

.module-view {
  display: none;
}

.module-view.active {
  display: block;
  animation: moduleFade 0.16s ease;
}

@keyframes moduleFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.metric-card,
.module-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
}

.metric-card {
  min-height: 102px;
  padding: 12px;
}

.metric-card .material-symbols-outlined {
  color: #38bdf8;
  font-size: 22px;
}

.metric-card small,
.module-muted {
  display: block;
  margin-top: 8px;
  color: #94a3b8;
  font-size: 12px;
}

.metric-card strong {
  display: block;
  margin-top: 4px;
  color: #f8fafc;
  font-size: 24px;
}

.module-card {
  margin-top: 12px;
  padding: 14px;
}

.module-card h2 {
  margin: 0 0 12px;
  color: #e0f2fe;
  font-size: 14px;
}

.module-view[data-module-view="analytics"] > .module-card:not(.analytics-chart-card):not(.analytics-map-card):not(.analytics-summary-card) {
  display: none;
}

.analytics-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(34, 197, 94, 0.1));
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.18);
  padding: 14px;
}

.analytics-hero span,
.analytics-hero small {
  display: block;
  color: #94a3b8;
  font-size: 12px;
}

.analytics-hero strong {
  display: block;
  margin: 5px 0;
  color: #f8fafc;
  font-size: 19px;
  line-height: 1.12;
}

.analytics-hero button {
  flex-shrink: 0;
  min-height: 34px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 8px;
  background: rgba(14, 165, 233, 0.14);
  color: #e0f2fe;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  padding: 7px 9px;
}

.analytics-hero button:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(14, 165, 233, 0.24);
}

.analytics-dashboard-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.analytics-dashboard-tabs button {
  min-height: 30px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.56);
  color: #cbd5e1;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 9px;
}

.analytics-dashboard-tabs button:hover,
.analytics-dashboard-tabs button.active {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(14, 165, 233, 0.18);
  color: #e0f2fe;
}

.analytics-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.analytics-metrics div {
  min-height: 92px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.72);
  padding: 10px;
}

.analytics-metrics .material-symbols-outlined {
  color: #38bdf8;
  font-size: 20px;
}

.analytics-metrics small,
.analytics-metrics strong {
  display: block;
}

.analytics-metrics small {
  margin-top: 7px;
  color: #94a3b8;
  font-size: 11px;
}

.analytics-metrics strong {
  margin-top: 4px;
  color: #f8fafc;
  font-size: 22px;
}

.analytics-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.analytics-bar-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.analytics-bar-label strong,
.analytics-bar-label span {
  display: block;
}

.analytics-bar-label strong {
  overflow: hidden;
  color: #f8fafc;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-bar-label span {
  margin-top: 2px;
  color: #94a3b8;
  font-size: 10px;
}

.analytics-bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
}

.analytics-bar-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #22c55e);
}

.analytics-layer-table {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.analytics-attribute-summary {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.analytics-attribute-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.42);
  padding: 8px;
}

.analytics-attribute-row span,
.analytics-attribute-row strong,
.analytics-attribute-row small {
  display: block;
}

.analytics-attribute-row strong {
  overflow: hidden;
  color: #f8fafc;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-attribute-row small {
  margin-top: 3px;
  color: #94a3b8;
  font-size: 10px;
}

.analytics-attribute-row > span:last-child {
  max-width: 132px;
  text-align: right;
}

.analytics-layer-row {
  width: 100%;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.42);
  color: #e5e7eb;
  cursor: pointer;
  padding: 8px;
  text-align: left;
}

.analytics-layer-row:hover {
  border-color: rgba(56, 189, 248, 0.38);
  background: rgba(14, 165, 233, 0.12);
}

.analytics-layer-main,
.analytics-layer-main strong,
.analytics-layer-main small,
.analytics-layer-kpis,
.analytics-layer-kpis small,
.analytics-layer-kpis strong {
  display: block;
}

.analytics-layer-main {
  min-width: 0;
}

.analytics-layer-main strong {
  overflow: hidden;
  color: #f8fafc;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-layer-main small,
.analytics-layer-kpis small {
  margin-top: 3px;
  color: #94a3b8;
  font-size: 10px;
}

.analytics-layer-kpis {
  text-align: right;
}

.analytics-layer-kpis strong {
  color: #bae6fd;
  font-size: 13px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.activity-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.09);
  padding-bottom: 8px;
  color: #cbd5e1;
  font-size: 12px;
}

.activity-list time {
  color: #38bdf8;
  white-space: nowrap;
}

.project-list,
.module-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.project-dashboard {
  display: grid;
  gap: 10px;
  padding: 1px;
}

.project-hero,
.project-stats div,
.project-actions {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.78));
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.18);
}

.project-hero {
  position: relative;
  overflow: hidden;
  padding: 15px;
}

.project-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #38bdf8, #22c55e);
}

.project-hero::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.28), transparent 68%);
  pointer-events: none;
}

.project-hero span,
.project-hero small,
.project-stats span {
  display: block;
  color: #94a3b8;
  font-size: 12px;
}

.project-hero strong {
  display: block;
  margin: 5px 0;
  color: #f8fafc;
  font-size: 21px;
  line-height: 1.12;
}

.project-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.project-stats div {
  min-width: 0;
  padding: 10px;
}

.project-stats strong {
  display: block;
  color: #e0f2fe;
  font-size: 19px;
}

.project-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
}

.project-actions button {
  min-height: 36px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 8px;
  background: rgba(14, 165, 233, 0.13);
  color: #dbeafe;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.project-actions button:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: rgba(56, 189, 248, 0.42);
  transform: translateY(-1px);
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.project-card-header h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 14px;
  line-height: 1.2;
}

.project-section-note {
  display: block;
  margin-top: 3px;
  color: #94a3b8;
  font-size: 11px;
}

.project-layer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.project-layer-actions button {
  min-height: 28px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 7px;
  background: rgba(14, 165, 233, 0.1);
  color: #dbeafe;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 8px;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.project-layer-actions button:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: rgba(56, 189, 248, 0.42);
}

.project-layer-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.project-editor-mode {
  width: fit-content;
  display: block;
  margin-top: 3px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.1);
  color: #38bdf8;
  font-size: 11px;
  padding: 2px 7px;
}

.project-form {
  display: grid;
  gap: 10px;
}

.project-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-form label span {
  color: #94a3b8;
  font-size: 11px;
}

.project-form input,
.project-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.24);
  color: #e5e7eb;
  font: inherit;
  padding: 8px 10px;
  outline: none;
  resize: vertical;
}

.project-form input:focus,
.project-form textarea:focus {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.12);
}

.project-layer-search {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.project-layer-search span {
  color: #94a3b8;
  font-size: 11px;
}

.project-layer-search input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.24);
  color: #e5e7eb;
  padding: 8px 10px;
  outline: none;
}

.project-layer-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.project-layer-option {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.42);
  cursor: pointer;
  padding: 8px;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.project-layer-option:hover {
  border-color: rgba(56, 189, 248, 0.36);
  background: rgba(14, 165, 233, 0.11);
  transform: translateX(2px);
}

.project-layer-option.selected {
  border-color: rgba(34, 197, 94, 0.42);
  background: rgba(21, 128, 61, 0.13);
}

.project-layer-option input {
  flex-shrink: 0;
  accent-color: #38bdf8;
}

.project-layer-copy {
  min-width: 0;
}

.project-layer-copy strong,
.project-layer-copy small {
  display: block;
}

.project-layer-copy strong {
  overflow: hidden;
  color: #f8fafc;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-layer-copy small {
  margin-top: 3px;
  color: #94a3b8;
  font-size: 10px;
}

.project-item,
.module-grid button,
.module-primary,
.layer-chips button {
  min-height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.62);
  color: #e5e7eb;
  cursor: pointer;
  text-align: left;
  padding: 9px 10px;
}

.project-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.project-item:hover,
.module-grid button:hover,
.module-primary:hover,
.layer-chips button:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(14, 165, 233, 0.14);
}

.project-item:hover {
  transform: translateX(2px);
}

.project-item.active {
  border-color: rgba(56, 189, 248, 0.68);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(34, 197, 94, 0.1));
}

.project-avatar {
  width: 38px;
  height: 38px;
  display: grid !important;
  place-items: center;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 8px;
  background: rgba(14, 165, 233, 0.14);
  color: #e0f2fe !important;
  font-size: 12px !important;
  font-weight: 800;
  margin: 0 !important;
}

.project-content {
  min-width: 0;
}

.project-title-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 !important;
}

.project-status {
  flex-shrink: 0;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.56);
  color: #94a3b8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 !important;
  padding: 2px 6px;
  text-transform: uppercase;
}

.project-status.active {
  border-color: rgba(34, 197, 94, 0.36);
  background: rgba(34, 197, 94, 0.16);
  color: #bbf7d0;
}

.project-item .project-title {
  margin-top: 0;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
}

.project-item .project-description {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 5px;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.project-meta {
  display: flex !important;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px !important;
}

.project-meta span {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.45);
  color: #bae6fd;
  font-size: 10px;
  padding: 3px 6px;
}

.module-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.module-grid button {
  text-align: center;
}

.layer-tools {
  position: sticky;
  top: -14px;
  z-index: 2;
  margin: -14px -14px 10px;
  padding: 14px;
  background: #0f172a;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.layer-summary-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.layer-summary-panel div {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.7);
  padding: 9px;
}

.layer-summary-panel strong,
.layer-summary-panel span {
  display: block;
}

.layer-summary-panel strong {
  color: #f8fafc;
  font-size: 20px;
}

.layer-summary-panel span {
  margin-top: 2px;
  color: #94a3b8;
  font-size: 11px;
}

.layer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.layer-chips button {
  min-height: 28px;
  padding: 5px 8px;
  color: #cbd5e1;
  font-size: 11px;
}

.layer-chips button.active {
  border-color: rgba(56, 189, 248, 0.62);
  background: rgba(14, 165, 233, 0.18);
  color: #e0f2fe;
}

.platform-panel .layers-list {
  max-height: none;
  padding-right: 4px;
}

.platform-panel .layers-controls {
  position: sticky;
  bottom: -14px;
  margin: 10px -14px -14px;
  padding: 12px 14px;
  background: #0f172a;
}

.rightbar {
  display: none;
}

@media (max-width: 900px) {
  .app.panel-open {
    grid-template-columns: 66px minmax(270px, 340px) minmax(0, 1fr);
  }

  .app.inspection-workspace,
  .app.inspection-workspace.panel-open {
    grid-template-columns: 66px minmax(330px, 42vw) minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .app,
  .app.panel-open {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .platform-rail,
  .platform-rail:hover {
    width: 58px;
    min-width: 58px;
  }

  .platform-panel {
    position: absolute;
    left: 58px;
    top: 0;
    width: min(330px, calc(100vw - 58px));
  }

  .app:not(.panel-open) .platform-panel {
    pointer-events: none;
  }

  .platform-module-btn {
    width: 42px;
  }
}

/* Authentication */
.app-auth-pending {
  visibility: hidden;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  color: #e8edf5;
  background-color: #0f172a;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  overflow: auto;
}

.login-screen.authenticated {
  display: none;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px clamp(24px, 5vw, 72px);
}

.login-brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #082f49;
  background: #38bdf8;
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(56, 189, 248, .2);
}

.login-brand-mark .material-symbols-outlined { font-size: 26px; }
.login-brand > div:last-child { display: grid; gap: 2px; }
.login-brand strong { font-size: 17px; letter-spacing: 0; }
.login-brand > div:last-child span { color: #7f91aa; font-size: 11px; }

.login-content {
  width: min(1180px, calc(100% - 48px));
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: clamp(56px, 10vw, 140px);
  align-items: center;
  padding: 32px 0 56px;
}

.login-intro { max-width: 620px; }
.login-eyebrow { color: #38bdf8; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.login-intro h1 { margin-top: 18px; color: #f6f8fb; font-size: clamp(44px, 5vw, 68px); line-height: 1.05; font-weight: 700; letter-spacing: 0; }
.login-intro h1 em { color: #38bdf8; font-style: normal; }
.login-intro p { max-width: 520px; margin-top: 24px; color: #9cabc0; font-size: 17px; line-height: 1.65; }
.login-status { display: flex; align-items: center; gap: 9px; margin-top: 40px; color: #7f91aa; font-size: 12px; }
.login-status span { width: 8px; height: 8px; border-radius: 50%; background: #38bdf8; box-shadow: 0 0 0 5px rgba(56,189,248,.1); }

.login-card {
  padding: 32px;
  background: #111827;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, .34);
}

.login-card-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.login-card-heading > .material-symbols-outlined { width: 44px; height: 44px; display: grid; place-items: center; color: #38bdf8; background: rgba(56,189,248,.12); border-radius: 6px; }
.login-card h2 { color: #f6f8fb; font-size: 20px; letter-spacing: 0; }
.login-card-heading p { margin-top: 4px; color: #7f91aa; font-size: 12px; }
.login-field { display: grid; gap: 8px; margin-top: 18px; }
.login-field > span { color: #b8c3d2; font-size: 12px; font-weight: 700; }
.login-field > div { height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: #0f172a; border: 1px solid #334155; border-radius: 5px; transition: border-color .2s, box-shadow .2s; }
.login-field > div:focus-within { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56,189,248,.1); }
.login-field .material-symbols-outlined { color: #687b95; font-size: 19px; }
.login-field input { min-width: 0; flex: 1; border: 0; outline: 0; color: #edf2f7; background: transparent; font-size: 14px; }
.login-field input::placeholder { color: #53657d; }
.mobile-server-field small { color: #7f91aa; font-size: 10px; }
.login-field button { display: grid; place-items: center; border: 0; color: #7f91aa; background: transparent; cursor: pointer; }
.login-options { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; color: #8fa0b5; font-size: 11px; }
.login-options label { display: flex; align-items: center; gap: 7px; }
.login-options input { accent-color: #38bdf8; }
.login-options button { border: 0; color: #38bdf8; background: transparent; font-size: 11px; cursor: pointer; }
.login-error { min-height: 18px; margin-top: 12px; color: #fb7185; font-size: 12px; }
.login-error.success { color: #38bdf8; }
.login-submit { width: 100%; height: 48px; display: flex; justify-content: center; align-items: center; gap: 12px; border: 0; border-radius: 5px; color: #082f49; background: #38bdf8; font-weight: 800; cursor: pointer; transition: background .2s, transform .2s; }
.login-submit:hover { background: #7dd3fc; transform: translateY(-1px); }
.login-submit:disabled { opacity: .6; cursor: wait; transform: none; }
.login-submit .material-symbols-outlined { font-size: 19px; }
.login-register { width: 100%; height: 42px; display: flex; justify-content: center; align-items: center; gap: 9px; margin-top: 9px; border: 1px solid #34465f; border-radius: 5px; color: #b7c4d4; background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.login-register:hover { color: #38bdf8; border-color: #38bdf8; background: rgba(56,189,248,.06); }
.login-register .material-symbols-outlined { font-size: 17px; }
.login-demo { padding-top: 22px; margin-top: 22px; border-top: 1px solid #253348; }
.login-demo > span { display: block; margin-bottom: 10px; color: #687b95; font-size: 10px; text-transform: uppercase; }
.login-demo > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.login-demo button { min-width: 0; padding: 8px 4px; border: 1px solid #334155; border-radius: 4px; color: #9babc0; background: #0f172a; font-size: 10px; cursor: pointer; }
.login-demo button:hover { color: #38bdf8; border-color: #38bdf8; }
.login-screen footer { display: flex; justify-content: space-between; padding: 20px clamp(24px, 5vw, 72px); border-top: 1px solid rgba(255,255,255,.06); color: #5d7089; font-size: 10px; }

.rail-account { margin-top: auto; display: grid; justify-items: center; gap: 6px; padding: 10px 0 14px; border-top: 1px solid rgba(255,255,255,.08); }
.rail-account button { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 5px; color: #94a3b8; background: transparent; cursor: pointer; }
.rail-account button:hover { color: #fff; background: rgba(255,255,255,.08); }
#user-menu-button { color: #082f49; background: #38bdf8; font-size: 11px; font-weight: 800; }
#user-menu-button:hover { color: #082f49; background: #7dd3fc; }
.access-hidden { display: none !important; }
.access-readonly { opacity: .45; pointer-events: none; }

.access-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.access-overview > div { min-width: 0; display: grid; gap: 5px; padding: 14px 10px; border: 1px solid #2a3950; border-radius: 6px; background: #111d2d; }
.access-overview .material-symbols-outlined { color: #38bdf8; font-size: 21px; }
.access-overview strong { color: #e7edf5; font-size: 11px; }
.access-overview small { color: #71839b; font-size: 9px; line-height: 1.4; }
.access-count { min-width: 30px; height: 26px; display: grid; place-items: center; border-radius: 4px; color: #082f49; background: #38bdf8; font-size: 12px; font-weight: 800; }
.admin-user-list { display: grid; gap: 2px; margin-top: 14px; }
.admin-user-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 4px 9px; align-items: center; padding: 9px 5px; border-bottom: 1px solid rgba(255,255,255,.06); }
.admin-user-avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 4px; color: #082f49; background: #38bdf8; font-size: 9px; font-weight: 800; }
.admin-user-row > .admin-user-avatar { grid-row: 1 / 3; }
.admin-user-row > span:nth-child(2) { min-width: 0; display: grid; grid-column: 2; grid-row: 1; gap: 2px; }
.admin-user-row strong, .admin-user-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-user-row strong { color: #dce5ef; font-size: 10px; }
.admin-user-row small { color: #6f829b; font-size: 8px; }
.admin-role { grid-column: 3; grid-row: 1; padding: 4px 6px; border-radius: 3px; color: #9fb0c4; background: #1c2a3c; font-size: 8px; }
.admin-role-admin { color: #f8cc78; background: rgba(245, 158, 11, .1); }
.admin-role-analyst { color: #78b8ff; background: rgba(59, 130, 246, .1); }
.admin-user-state { grid-column: 2; grid-row: 2; color: #71839b; font-size: 8px; }
.admin-user-state.active { color: #38bdf8; }
.admin-users-heading-actions { display: flex; align-items: center; gap: 6px; }
.admin-users-heading-actions button, .admin-user-actions button { display: grid; place-items: center; border: 1px solid #2b3a50; border-radius: 4px; color: #91a3b9; background: #142033; cursor: pointer; }
.admin-users-heading-actions button { width: 28px; height: 28px; color: #38bdf8; }
.admin-users-heading-actions .material-symbols-outlined { font-size: 17px; }
.admin-user-actions { grid-column: 3; grid-row: 2; display: flex; gap: 3px; }
.admin-user-actions button { width: 22px; height: 22px; }
.admin-user-actions button:hover, .admin-users-heading-actions button:hover { color: #fff; border-color: #38bdf8; }
.admin-user-actions .material-symbols-outlined { font-size: 13px; }

.user-dialog { width: min(470px, calc(100vw - 28px)); max-width: none; padding: 0; border: 1px solid rgba(148, 163, 184, .18); border-radius: 7px; color: #e5e7eb; background: #111827; box-shadow: 0 28px 80px rgba(0,0,0,.55); }
.user-dialog::backdrop { background: rgba(2, 8, 18, .76); backdrop-filter: blur(3px); }
.user-dialog form { padding: 24px; }
.user-dialog header { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid #26354a; }
.user-dialog header > div { display: grid; gap: 4px; }
.user-dialog header div > span { color: #38bdf8; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.user-dialog h2 { color: #f0f4f8; font-size: 19px; letter-spacing: 0; }
.user-dialog header button { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 4px; color: #8798ad; background: transparent; cursor: pointer; }
.user-dialog header button:hover { color: #fff; background: #1c2a3d; }
.user-dialog header .material-symbols-outlined { font-size: 19px; }
.user-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.admin-user-filters{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px;margin:12px 0}.admin-user-filters input,.admin-user-filters select{min-height:38px;padding:0 10px;border:1px solid var(--ui-border,#334155);border-radius:5px;background:var(--ui-surface-soft,#0f172a);color:inherit}.admin-profile-permissions{display:grid;gap:16px}.admin-profile-permissions>section{padding:16px;border:1px solid var(--ui-border,#334155);border-radius:8px}.admin-profile-permissions header{display:grid;margin-bottom:12px}.admin-profile-permissions fieldset{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;border:0;border-top:1px solid var(--ui-border,#334155);margin:12px 0;padding:12px 0}.admin-profile-permissions label{display:flex;gap:8px;align-items:center}.admin-profile-permissions button{padding:9px 14px;border:0;border-radius:5px;background:var(--ui-primary,#2563eb);color:#fff;cursor:pointer}
.user-form-grid label, .reset-password-field { min-width: 0; display: grid; gap: 7px; }
.user-form-grid label:nth-child(-n+2) { grid-column: 1 / -1; }
.user-form-grid label > span, .reset-password-field > span { color: #a9b7c8; font-size: 10px; font-weight: 700; }
.user-form-grid input, .user-form-grid select, .reset-password-field input { width: 100%; height: 40px; padding: 0 11px; outline: 0; border: 1px solid #334155; border-radius: 4px; color: #e5e7eb; background: #0f172a; font-size: 12px; }
.user-form-grid input:focus, .user-form-grid select:focus, .reset-password-field input:focus { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56,189,248,.09); }
.user-active-field { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: #a9b7c8; font-size: 11px; }
.user-active-field input { accent-color: #38bdf8; }
.user-form-error { min-height: 17px; margin-top: 10px; color: #fb7185; font-size: 10px; }
.user-form-error.success { color: #38bdf8; }
.user-dialog footer { display: flex; justify-content: flex-end; gap: 8px; padding-top: 18px; margin-top: 4px; border-top: 1px solid #26354a; }
.user-dialog footer button { min-height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border: 1px solid #2b3a50; border-radius: 4px; color: #a9b7c8; background: #142033; cursor: pointer; }
.user-dialog footer button[type="submit"] { border-color: #38bdf8; color: #082f49; background: #38bdf8; font-weight: 800; }
.user-dialog footer button:disabled { opacity: .55; cursor: wait; }
.user-dialog footer .material-symbols-outlined { font-size: 16px; }
.reset-password-dialog p { margin-bottom: 18px; color: #8798ad; font-size: 11px; }
.access-dialog { width: min(760px, calc(100vw - 28px)); }
.access-dialog form { max-height: min(86vh, 820px); overflow-y: auto; }
.access-user-summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 14px; border-left: 3px solid #38bdf8; background: rgba(56,189,248,.08); }
.access-user-summary > .material-symbols-outlined { color: #38bdf8; font-size: 22px; }
.access-user-summary > span:last-child { min-width: 0; display: grid; gap: 2px; }
.access-user-summary strong { color: #f8fafc; font-size: 12px; }
.access-user-summary small { overflow: hidden; color: #94a3b8; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.access-form-section { padding: 14px 0; border-bottom: 1px solid rgba(148,163,184,.14); }
.access-form-section > div:first-child { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.access-form-section h3 { color: #e5e7eb; font-size: 12px; letter-spacing: 0; }
.access-form-section small { color: #71839b; font-size: 9px; }
.access-all-toggle, .access-capabilities label, .access-option-grid label { display: flex; align-items: center; gap: 7px; color: #a9b7c8; font-size: 10px; }
.access-all-toggle input, .access-capabilities input, .access-option-grid input { accent-color: #38bdf8; }
.access-capabilities { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.access-capabilities label, .access-option-grid label { min-width: 0; min-height: 34px; padding: 7px 9px; border: 1px solid rgba(148,163,184,.14); border-radius: 4px; background: #0f172a; }
.access-option-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
.access-option-grid label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.access-option-grid input:disabled + span { opacity: .45; }
.access-layer-options { max-height: 185px; overflow-y: auto; padding-right: 4px; }
.register-dialog { width: min(520px, calc(100vw - 28px)); }
.register-intro { margin: -4px 0 20px; color: #8798ad; font-size: 11px; line-height: 1.55; }
.register-terms { display: flex; align-items: flex-start; gap: 8px; margin-top: 18px; color: #93a3b7; font-size: 10px; line-height: 1.45; }
.register-terms input { margin-top: 1px; accent-color: #38bdf8; }
.register-form-grid [data-register-employee][hidden] { display: none; }
.register-message { margin-top: 12px; }
.development-action { width: 100%; min-height: 36px; margin-top: 8px; border: 1px dashed #38bdf8; border-radius: 4px; color: #38bdf8; background: rgba(56,189,248,.06); font-size: 10px; font-weight: 700; cursor: pointer; }
.development-action:hover { background: rgba(56,189,248,.12); }
.development-action:disabled { opacity: .55; cursor: wait; }
.recovery-fields label { grid-column: 1 / -1; }
.admin-user-state.pending { color: #f8cc78; }
.module-view[data-module-view="admin"] .module-grid button.active { color: #e0f2fe; border-color: #38bdf8; background: rgba(56,189,248,.14); }
.admin-tool-card { min-height: 150px; }
.admin-tool-panel { display: grid; gap: 14px; }
.admin-tool-header { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid rgba(148,163,184,.14); }
.admin-tool-header > .material-symbols-outlined { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 5px; color: #38bdf8; background: rgba(56,189,248,.12); font-size: 19px; }
.admin-tool-header > div { min-width: 0; display: grid; gap: 2px; }
.admin-tool-header h2 { color: #f8fafc; font-size: 13px; letter-spacing: 0; }
.admin-tool-header small { overflow: hidden; color: #71839b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.admin-tool-loading, .admin-tool-error, .admin-empty { padding: 18px 4px; color: #71839b; font-size: 10px; text-align: center; }
.admin-tool-error { color: #fb7185; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(148,163,184,.14); border-radius: 5px; overflow: hidden; }
.admin-stat-grid > div { min-width: 0; display: grid; gap: 3px; padding: 11px 8px; border-right: 1px solid rgba(148,163,184,.12); text-align: center; }
.admin-stat-grid > div:last-child { border-right: 0; }
.admin-stat-grid strong { color: #f8fafc; font-size: 17px; }
.admin-stat-grid span { color: #71839b; font-size: 8px; text-transform: uppercase; }
.admin-group-list, .admin-event-list, .admin-component-list, .admin-session-list { display: grid; }
.admin-group-list > div, .admin-event-list > div, .admin-session-list > div { min-width: 0; display: grid; align-items: center; gap: 9px; padding: 9px 3px; border-bottom: 1px solid rgba(148,163,184,.1); }
.admin-group-list > div { grid-template-columns: 28px minmax(0,1fr) auto; }
.admin-group-list .material-symbols-outlined { color: #38bdf8; font-size: 19px; }
.admin-group-list > div > span:nth-child(2), .admin-event-list > div > span:nth-child(2), .admin-session-list > div > span:first-child { min-width: 0; display: grid; gap: 2px; }
.admin-group-list strong, .admin-event-list strong, .admin-session-list strong { overflow: hidden; color: #dce5ef; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.admin-group-list small, .admin-event-list small, .admin-session-list small { overflow: hidden; color: #71839b; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.admin-group-list b, .admin-session-list b { color: #38bdf8; font-size: 11px; }
.admin-profile-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.admin-profile-list > div { min-width: 0; display: grid; justify-items: start; gap: 5px; padding: 10px 8px; border: 1px solid rgba(148,163,184,.14); border-radius: 5px; }
.admin-profile-list strong { color: #f8fafc; font-size: 16px; }
.admin-profile-list small { color: #71839b; font-size: 8px; }
.admin-permission-table { display: grid; overflow: hidden; border: 1px solid rgba(148,163,184,.14); border-radius: 5px; }
.admin-permission-table > div { display: grid; grid-template-columns: minmax(0,1fr) 38px 38px 38px; align-items: center; min-height: 31px; padding: 0 7px; border-bottom: 1px solid rgba(148,163,184,.1); }
.admin-permission-table > div:last-child { border-bottom: 0; }
.admin-permission-table strong, .admin-permission-head span { color: #a9b7c8; font-size: 8px; }
.admin-permission-table .material-symbols-outlined { justify-self: center; color: #475569; font-size: 14px; }
.admin-permission-table .material-symbols-outlined.allowed { color: #38bdf8; }
.admin-event-list > div { grid-template-columns: 8px minmax(0,1fr); }
.admin-event-dot { width: 6px; height: 6px; border-radius: 50%; background: #38bdf8; }
.admin-component-list > div { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; align-items: center; min-height: 34px; border-bottom: 1px solid rgba(148,163,184,.1); }
.admin-component-list span { color: #dce5ef; font-size: 9px; }
.admin-component-list strong { max-width: 115px; overflow: hidden; color: #94a3b8; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.admin-component-list b { color: #22c55e; font-size: 8px; }
.admin-session-list > div { grid-template-columns: minmax(0,1fr) 24px 26px; }
.admin-session-list button { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid rgba(148,163,184,.18); border-radius: 4px; color: #94a3b8; background: #0f172a; cursor: pointer; }
.admin-session-list button:hover { color: #f8fafc; border-color: #38aaf8; }
.admin-session-list button:disabled { opacity: .3; cursor: default; }
.admin-session-list .material-symbols-outlined { font-size: 14px; }

.admin-workflow-card {
  display: grid;
  gap: 10px;
  padding: 14px 14px 12px;
  background: #0f172a;
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 10px;
}
.admin-workflow-card > div:first-child {
  display: grid;
  gap: 4px;
}
.admin-workflow-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-workflow-actions button,
.admin-workflow-actions .status-active,
.admin-workflow-actions .status-inactive {
  min-height: 30px;
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 8px;
  padding: 0 10px;
  font-size: 11px;
  color: #cbd5e1;
  background: #111827;
}
.admin-workflow-actions .status-active { color: #22c55e; border-color: rgba(34,197,94,.3); }
.admin-workflow-actions .status-inactive { color: #f8fafc; opacity: .75; }
.admin-workflow-actions button { cursor: pointer; background: transparent; }
.admin-workflow-actions button:hover { background: rgba(56,189,248,.08); border-color: rgba(56,189,248,.15); color: #e2e8f0; }

.workflow-form { display: grid; gap: 14px; }
.workflow-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.workflow-form-grid label,
.workflow-step-grid label { display: grid; gap: 4px; }
.workflow-form-grid input,
.workflow-form-grid select,
.workflow-form-grid textarea,
.workflow-step-grid input,
.workflow-step-grid select,
.workflow-step-grid textarea { width: 100%; min-height: 34px; padding: 10px 12px; border: 1px solid rgba(148,163,184,.16); border-radius: 8px; background: #0f172a; color: #e2e8f0; }
.workflow-form-grid select { min-height: 38px; }
.workflow-form-grid textarea { resize: vertical; }
.workflow-condition-editor{margin:3px 0 0;padding:12px!important;border:1px solid var(--ui-border,#dbe3ec)!important;border-radius:10px;background:var(--ui-surface-soft,#f8fafc)}.workflow-condition-editor legend{display:flex;align-items:center;gap:6px;padding:0 7px;color:var(--ui-primary,#2563eb);font-size:10px;font-weight:800}.workflow-condition-editor legend span{font-size:17px}.workflow-condition-editor>div{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:9px}.workflow-condition-editor>small{display:block;margin-top:8px;color:var(--ui-text-soft,#64748b);font-size:9px}
.workflow-step-grid .workflow-notify-toggle{display:flex;align-items:center;align-self:end;min-height:38px;gap:8px;padding:0 10px;border:1px solid var(--ui-border,#dbe3ec);border-radius:8px;background:var(--ui-surface-soft,#f8fafc)}.workflow-step-grid .workflow-notify-toggle input{width:16px;height:16px;min-height:0;padding:0;accent-color:var(--ui-primary,#2563eb)}.workflow-step-grid .workflow-notify-toggle span{font-size:10px;color:var(--ui-text,#172033)}

/* Mapa interativo de workflows (somente super administrador) */
.workflow-map-toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px;padding:14px 16px;border:1px solid rgba(56,189,248,.16);border-radius:14px;background:rgba(15,23,42,.55)}
.workflow-map-toolbar label{display:grid;gap:6px;min-width:min(420px,55%)}.workflow-map-toolbar label span{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#94a3b8;font-weight:800}.workflow-map-toolbar select{min-height:42px;border:1px solid rgba(148,163,184,.2);border-radius:10px;background:#0f172a;color:#e2e8f0;padding:0 12px}
.workflow-map-toolbar>div{display:flex;align-items:center;gap:7px}.workflow-map-toolbar button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;border:1px solid rgba(148,163,184,.22);border-radius:9px;background:rgba(30,41,59,.8);color:#e2e8f0;cursor:pointer;padding:0 11px}.workflow-map-toolbar button:hover{border-color:#38bdf8;color:#7dd3fc}.workflow-map-toolbar b{min-width:48px;text-align:center;font-size:12px;color:#cbd5e1}
.workflow-map-toolbar-actions{flex-wrap:wrap;justify-content:flex-end}.workflow-map-toolbar button.primary{border-color:var(--ui-primary,#2563eb)!important;color:#fff!important;background:var(--ui-primary,#2563eb)!important}.workflow-map-toolbar button .material-symbols-outlined{font-size:17px}
.workflow-map-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:14px;align-items:start}.workflow-map-layout>section{min-width:0;border:1px solid rgba(56,189,248,.14);border-radius:16px;background:linear-gradient(145deg,rgba(15,23,42,.86),rgba(2,6,23,.76));overflow:hidden}
.workflow-map-meta{display:flex;gap:8px;align-items:center;padding:12px 14px;border-bottom:1px solid rgba(148,163,184,.12)}.workflow-map-meta span{font-size:11px;padding:5px 8px;border-radius:999px;background:rgba(51,65,85,.6);color:#cbd5e1}.workflow-map-meta .active{background:rgba(34,197,94,.12);color:#86efac}.workflow-map-meta .inactive{background:rgba(248,113,113,.12);color:#fca5a5}
.workflow-map-stage-index{display:flex;flex-wrap:wrap;gap:6px;padding:11px 14px;border-bottom:1px solid var(--ui-border,#dbe3ec);background:var(--ui-surface,#fff)}.workflow-map-stage-index button{min-height:30px;display:flex;align-items:center;gap:6px;padding:4px 8px;border:1px solid var(--ui-border,#dbe3ec);border-radius:999px;color:var(--ui-text-soft,#64748b);background:var(--ui-surface-soft,#f8fafc);font-size:9px;cursor:pointer}.workflow-map-stage-index button b{width:17px;height:17px;display:grid;place-items:center;border-radius:50%;color:var(--ui-primary,#2563eb);background:color-mix(in srgb,var(--ui-primary,#2563eb) 10%,transparent);font-size:8px}.workflow-map-stage-index button:hover,.workflow-map-stage-index button.active{border-color:var(--ui-primary,#2563eb);color:var(--ui-primary,#2563eb);background:color-mix(in srgb,var(--ui-primary,#2563eb) 6%,var(--ui-surface,#fff))}.workflow-map-stage-index button.active{box-shadow:0 0 0 2px color-mix(in srgb,var(--ui-primary,#2563eb) 10%,transparent)}
.workflow-map-canvas{--workflow-scale:1;min-height:300px;overflow:auto;padding:38px 34px;background-image:radial-gradient(rgba(148,163,184,.16) 1px,transparent 1px);background-size:22px 22px;scrollbar-color:#334155 transparent}.workflow-map-track{display:flex;align-items:center;width:max-content;min-width:100%;transform:scale(var(--workflow-scale));transform-origin:left center;transition:transform .18s ease}
.workflow-map-canvas.graph-mode{min-height:470px;padding:15px}.workflow-graph{position:relative;transform:scale(var(--workflow-scale));transform-origin:left top;transition:transform .18s ease}.workflow-graph>svg{position:absolute;inset:0;overflow:visible;pointer-events:none}.workflow-graph-edge path{fill:none;stroke:var(--ui-primary,#2563eb);stroke-width:2}.workflow-graph-edge.yes path{stroke:#16a34a}.workflow-graph-edge.no path{stroke:#e11d48;stroke-dasharray:6 4}.workflow-graph-edge marker path{fill:var(--ui-primary,#2563eb);stroke:none}.workflow-graph-edge text{fill:var(--ui-text-soft,#64748b);font-size:10px;font-weight:900;text-anchor:middle;paint-order:stroke;stroke:var(--ui-surface,#fff);stroke-width:4px}.workflow-graph-edge.yes text{fill:#15803d}.workflow-graph-edge.no text{fill:#be123c}.workflow-graph-node{position:absolute!important;margin:0!important}.workflow-graph-node::after,.workflow-graph-node>i{display:none!important}.workflow-graph-node em{white-space:normal;line-height:1.25}.workflow-graph-node.conditional{border-width:2px!important;border-color:#d97706!important;background:color-mix(in srgb,#f59e0b 7%,var(--ui-surface,#fff))!important}
.workflow-map-node{position:relative;display:flex;align-items:center;gap:10px;width:190px;min-height:90px;padding:12px;text-align:left;border:1px solid rgba(56,189,248,.25);border-radius:14px;background:linear-gradient(145deg,#172033,#0f172a);color:#e2e8f0;box-shadow:0 12px 28px rgba(2,6,23,.25);cursor:pointer;transition:.18s ease}.workflow-map-node:not(:last-child){margin-right:58px}.workflow-map-node:not(:last-child)>i{position:absolute;right:-47px;top:32px;color:#38bdf8;font-style:normal}.workflow-map-node:not(:last-child)::after{content:"";position:absolute;right:-35px;top:44px;width:34px;height:1px;background:linear-gradient(90deg,#38bdf8,rgba(56,189,248,.3))}.workflow-map-node:hover{transform:translateY(-3px);border-color:#38bdf8}.workflow-map-node.selected{border-color:#22d3ee;box-shadow:0 0 0 3px rgba(34,211,238,.12),0 16px 32px rgba(2,6,23,.4)}.workflow-map-node.start{border-color:rgba(34,197,94,.5)}.workflow-map-node.end{border-color:rgba(168,85,247,.5)}.workflow-map-node-icon{display:grid;place-items:center;flex:0 0 36px;height:36px;border-radius:10px;background:rgba(56,189,248,.12);color:#7dd3fc}.workflow-map-node.start .workflow-map-node-icon{color:#86efac;background:rgba(34,197,94,.12)}.workflow-map-node.end .workflow-map-node-icon{color:#d8b4fe;background:rgba(168,85,247,.12)}.workflow-map-node>span:nth-child(2){display:grid;gap:3px;min-width:0}.workflow-map-node small{font-size:9px;text-transform:uppercase;letter-spacing:.1em;color:#64748b}.workflow-map-node strong{font-size:13px;line-height:1.25}.workflow-map-node em{font-size:10px;color:#94a3b8;font-style:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workflow-map-hint{display:flex;align-items:center;gap:6px;padding:0 14px 13px;color:#64748b}.workflow-map-hint span{font-size:16px}
.workflow-map-detail{border:1px solid rgba(56,189,248,.17);border-radius:16px;background:rgba(15,23,42,.78);padding:17px;display:grid;gap:14px}.workflow-map-detail header{display:flex;align-items:center;gap:11px}.workflow-map-detail header>span{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:rgba(14,165,233,.13);color:#7dd3fc}.workflow-map-detail header small{color:#64748b;font-size:9px;text-transform:uppercase;letter-spacing:.1em}.workflow-map-detail h3{margin:2px 0 0;font-size:15px;color:#f8fafc}.workflow-map-detail>p,.workflow-map-instructions p{margin:0;color:#94a3b8;font-size:12px;line-height:1.55}.workflow-map-detail dl{display:grid;gap:7px;margin:0}.workflow-map-detail dl div{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid rgba(148,163,184,.1);font-size:11px}.workflow-map-detail dt{color:#64748b}.workflow-map-detail dd{margin:0;color:#cbd5e1;text-align:right}.workflow-map-fields{display:grid;gap:7px}.workflow-map-fields>strong,.workflow-map-instructions>strong{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#94a3b8}.workflow-map-fields span{display:flex;align-items:center;gap:7px;padding:8px 9px;border-radius:8px;background:rgba(30,41,59,.55);color:#cbd5e1;font-size:11px}.workflow-map-fields i{font-style:normal;font-size:15px;color:#38bdf8}

/* Integração com os temas claro e escuro do console */
.app.admin-workspace .workflow-map-toolbar{border-color:var(--ui-border,#dbe3ec);background:var(--ui-surface-soft,#f8fafc)}
.app.admin-workspace .workflow-map-toolbar label span{color:var(--ui-text-soft,#64748b)}
.app.admin-workspace .workflow-map-toolbar select{border-color:var(--ui-border,#dbe3ec);color:var(--ui-text,#172033);background:var(--ui-surface,#fff)}
.app.admin-workspace .workflow-map-toolbar button{border-color:var(--ui-border,#dbe3ec);color:var(--ui-text,#172033);background:var(--ui-surface,#fff)}
.app.admin-workspace .workflow-map-toolbar button:hover{border-color:var(--ui-primary,#2563eb);color:var(--ui-primary,#2563eb);background:color-mix(in srgb,var(--ui-primary,#2563eb) 6%,var(--ui-surface,#fff))}
.app.admin-workspace .workflow-map-toolbar b{color:var(--ui-text-soft,#64748b)}
.app.admin-workspace .workflow-map-layout>section{border-color:var(--ui-border,#dbe3ec);background:var(--ui-surface,#fff);box-shadow:0 8px 24px rgba(20,40,70,.05)}
.app.admin-workspace .workflow-map-meta{border-color:var(--ui-border,#dbe3ec);background:var(--ui-surface-soft,#f8fafc)}
.app.admin-workspace .workflow-map-meta span{color:var(--ui-text-soft,#64748b);background:color-mix(in srgb,var(--ui-text-soft,#64748b) 9%,transparent)}
.app.admin-workspace .workflow-map-meta .active{color:#166534;background:#dcfce7}.app.admin-workspace .workflow-map-meta .inactive{color:#9f1239;background:#ffe4e6}
.app.admin-workspace .workflow-map-canvas{background-color:var(--ui-surface,#fff);background-image:radial-gradient(color-mix(in srgb,var(--ui-text-soft,#64748b) 24%,transparent) 1px,transparent 1px);scrollbar-color:var(--ui-border,#dbe3ec) transparent}
.app.admin-workspace .workflow-map-node{border-color:color-mix(in srgb,var(--ui-primary,#2563eb) 28%,var(--ui-border,#dbe3ec));color:var(--ui-text,#172033);background:var(--ui-surface,#fff);box-shadow:0 8px 20px rgba(20,40,70,.08)}
.app.admin-workspace .workflow-map-node:hover{border-color:var(--ui-primary,#2563eb);box-shadow:0 12px 25px rgba(37,99,235,.12)}
.app.admin-workspace .workflow-map-node.selected{border-color:var(--ui-primary,#2563eb);background:color-mix(in srgb,var(--ui-primary,#2563eb) 5%,var(--ui-surface,#fff));box-shadow:0 0 0 3px color-mix(in srgb,var(--ui-primary,#2563eb) 12%,transparent),0 12px 25px rgba(20,40,70,.09)}
.app.admin-workspace .workflow-map-node.start{border-color:color-mix(in srgb,#16a34a 48%,var(--ui-border,#dbe3ec))}.app.admin-workspace .workflow-map-node.end{border-color:color-mix(in srgb,#7c3aed 42%,var(--ui-border,#dbe3ec))}
.app.admin-workspace .workflow-map-node-icon{color:var(--ui-primary,#2563eb);background:color-mix(in srgb,var(--ui-primary,#2563eb) 10%,transparent)}
.app.admin-workspace .workflow-map-node small,.app.admin-workspace .workflow-map-node em,.app.admin-workspace .workflow-map-hint{color:var(--ui-text-soft,#64748b)}
.app.admin-workspace .workflow-map-node:not(:last-child)>i{color:var(--ui-primary,#2563eb)}.app.admin-workspace .workflow-map-node:not(:last-child)::after{background:linear-gradient(90deg,var(--ui-primary,#2563eb),color-mix(in srgb,var(--ui-primary,#2563eb) 20%,transparent))}
.app.admin-workspace .workflow-map-detail{border-color:var(--ui-border,#dbe3ec);color:var(--ui-text,#172033);background:var(--ui-surface,#fff);box-shadow:0 8px 24px rgba(20,40,70,.05)}
.app.admin-workspace .workflow-map-detail header>span{color:var(--ui-primary,#2563eb);background:color-mix(in srgb,var(--ui-primary,#2563eb) 10%,transparent)}
.app.admin-workspace .workflow-map-detail header small,.app.admin-workspace .workflow-map-detail>p,.app.admin-workspace .workflow-map-instructions p,.app.admin-workspace .workflow-map-detail dt,.app.admin-workspace .workflow-map-fields>strong,.app.admin-workspace .workflow-map-instructions>strong{color:var(--ui-text-soft,#64748b)}
.app.admin-workspace .workflow-map-detail h3,.app.admin-workspace .workflow-map-detail dd{color:var(--ui-text,#172033)}
.app.admin-workspace .workflow-map-detail dl div{border-color:var(--ui-border,#dbe3ec)}
.app.admin-workspace .workflow-map-fields span{color:var(--ui-text,#172033);background:var(--ui-surface-soft,#f8fafc)}.app.admin-workspace .workflow-map-fields i{color:var(--ui-primary,#2563eb)}
.workflow-map-condition-icon{position:absolute;top:7px;right:7px;color:#d97706;font-size:16px}.app.admin-workspace .workflow-map-node.conditional{border-style:dashed}.workflow-map-condition{display:flex;align-items:flex-start;gap:9px;padding:10px;border:1px solid #fcd34d;border-radius:9px;color:#92400e;background:#fffbeb}.workflow-map-condition>span{font-size:20px}.workflow-map-condition>div{display:grid;gap:3px}.workflow-map-condition strong{font-size:10px;text-transform:uppercase}.workflow-map-condition p{margin:0!important;color:#78350f!important;font-size:11px!important}.workflow-map-condition small{color:#a16207;font-size:9px}body[data-theme="dark"] .workflow-map-condition{border-color:rgba(245,158,11,.3);color:#fbbf24;background:rgba(245,158,11,.08)}body[data-theme="dark"] .workflow-map-condition p{color:#fde68a!important}body[data-theme="dark"] .workflow-map-condition small{color:#d6a84c}
.workflow-map-inline-editor label{display:grid;gap:5px}.workflow-map-inline-editor label>span,.workflow-map-inline-editor legend{color:var(--ui-text-soft,#64748b);font-size:9px;font-weight:800;text-transform:uppercase}.workflow-map-inline-editor input,.workflow-map-inline-editor select,.workflow-map-inline-editor textarea{width:100%;min-height:38px;padding:8px 9px;border:1px solid var(--ui-border,#dbe3ec);border-radius:8px;color:var(--ui-text,#172033);background:var(--ui-surface,#fff);font-size:11px}.workflow-map-inline-editor textarea{resize:vertical}.workflow-map-editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.workflow-map-inline-editor fieldset{display:grid;gap:8px;padding:10px;border:1px solid var(--ui-border,#dbe3ec);border-radius:9px;background:var(--ui-surface-soft,#f8fafc)}.workflow-map-inline-editor legend{padding:0 5px}.workflow-map-editor-check{display:flex!important;grid-template-columns:auto 1fr;align-items:center}.workflow-map-editor-check input{width:16px;min-height:16px;accent-color:var(--ui-primary,#2563eb)}.workflow-map-editor-actions{display:flex;flex-wrap:wrap;gap:6px}.workflow-map-editor-actions button{min-height:34px;display:flex;align-items:center;gap:4px;padding:0 8px;border:1px solid var(--ui-border,#dbe3ec);border-radius:7px;color:var(--ui-text,#172033);background:var(--ui-surface-soft,#f8fafc);font-size:9px;cursor:pointer}.workflow-map-editor-actions button:disabled{opacity:.45;cursor:not-allowed}.workflow-map-editor-actions button.danger{margin-left:auto;color:#be123c;border-color:#fecdd3;background:#fff1f2}.workflow-map-editor-actions .material-symbols-outlined{font-size:15px}
body[data-theme="dark"] .app.admin-workspace .workflow-map-meta .active{color:#86efac;background:rgba(34,197,94,.14)}body[data-theme="dark"] .app.admin-workspace .workflow-map-meta .inactive{color:#fda4af;background:rgba(244,63,94,.14)}
@media(max-width:1050px){.workflow-map-layout{grid-template-columns:1fr}.workflow-map-detail{grid-template-columns:repeat(2,minmax(0,1fr))}.workflow-map-detail header,.workflow-map-detail>p{grid-column:1/-1}}
@media(max-width:680px){.workflow-map-toolbar{align-items:stretch;flex-direction:column}.workflow-map-toolbar label{min-width:0}.workflow-map-layout{display:block}.workflow-map-detail{margin-top:12px;grid-template-columns:1fr}.workflow-map-detail>*{grid-column:1!important}.workflow-map-canvas{min-height:270px;padding:28px 20px}.workflow-map-node{width:165px}.workflow-map-node:not(:last-child){margin-right:48px}}
@media(max-width:680px){.workflow-condition-editor>div{grid-template-columns:1fr}}
.workflow-steps-section { display: grid; gap: 12px; padding: 14px; border: 1px solid rgba(148,163,184,.14); border-radius: 10px; background: #09101b; }
.project-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.project-card-header h2,
.project-card-header h3 { margin: 0; color: #f8fafc; font-size: 14px; }
.project-card-header span { color: #94a3b8; font-size: 11px; }
.workflow-step-row { display: grid; gap: 12px; padding: 12px; border: 1px solid rgba(148,163,184,.12); border-radius: 10px; background: #111827; }
.workflow-step-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.workflow-step-grid label.inspection-wide { grid-column: 1 / -1; }
.workflow-step-grid textarea { min-height: 72px; }
.workflow-remove-step { align-self: start; border: 1px solid rgba(248,250,252,.12); border-radius: 8px; padding: 8px 10px; background: transparent; color: #f8fafc; cursor: pointer; }
.workflow-remove-step:hover { background: rgba(248,250,252,.08); }
.admin-tool-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.admin-tool-actions button { min-height: 38px; padding: 0 16px; }
.admin-empty { padding: 18px; }

/* Field inspections workspace */
.app.inspection-workspace,
.app.inspection-workspace.panel-open,
.app.analytics-workspace,
.app.analytics-workspace.panel-open,
.app.dashboard-workspace,
.app.dashboard-workspace.panel-open,
.app.projects-workspace,
.app.projects-workspace.panel-open {
  grid-template-columns: 66px minmax(720px, 64vw) minmax(220px, 1fr);
}

.app.inspection-workspace.map-collapsed,
.app.inspection-workspace.map-collapsed.panel-open { grid-template-columns:66px minmax(0,1fr) 0; }
.app.inspection-workspace .map-container { min-width:0; overflow:hidden; opacity:1; transition:opacity .18s ease, visibility .18s ease; }
.app.inspection-workspace.map-collapsed .map-container { visibility:hidden; opacity:0; pointer-events:none; }

.app.inspection-workspace .platform-panel {
  position: relative;
  inset: auto;
  width: auto;
  min-width: 0;
  opacity: 1;
  transform: none;
  border-right: 0;
  box-shadow: none;
}

.app.analytics-workspace .platform-panel {
  position: relative;
  inset: auto;
  width: auto;
  min-width: 0;
  opacity: 1;
  transform: none;
  border-right: 0;
  box-shadow: none;
}

.app.dashboard-workspace .platform-panel {
  position: relative;
  inset: auto;
  width: auto;
  min-width: 0;
  opacity: 1;
  transform: none;
  border-right: 0;
  box-shadow: none;
}

.app.projects-workspace .platform-panel {
  position:relative;
  inset:auto;
  width:auto;
  min-width:0;
  opacity:1;
  transform:none;
  border-right:0;
  box-shadow:none;
}
.app.projects-workspace .platform-panel-body { padding:14px 16px 32px; }
.app.projects-workspace .module-view[data-module-view="projects"].active { width:100%; margin:0; }
.app.projects-workspace .project-dashboard { gap:14px; }
.app.projects-workspace .project-hero { min-height:112px; padding:22px 24px; border-color:var(--gw-border,#dbe3ec); border-radius:13px; background:radial-gradient(circle at 90% 0,color-mix(in srgb,var(--gw-primary,#2563eb) 12%,transparent),transparent 35%),var(--gw-surface,#fff); box-shadow:0 10px 28px rgba(20,40,70,.06); }
.app.projects-workspace .project-hero::before { background:var(--gw-primary,#2563eb); }
.app.projects-workspace .project-hero span,
.app.projects-workspace .project-hero small,
.app.projects-workspace .project-stats span { color:var(--gw-muted,#64748b); font-size:11px; }
.app.projects-workspace .project-hero strong { color:var(--gw-text,#172033); font-size:25px; }
.app.projects-workspace .project-stats { gap:10px; }
.app.projects-workspace .project-stats div { min-height:76px; padding:15px; border-color:var(--gw-border,#dbe3ec); border-radius:11px; background:var(--gw-surface,#fff); box-shadow:0 5px 15px rgba(20,40,70,.04); }
.app.projects-workspace .project-stats strong { color:var(--gw-text,#172033); font-size:23px; }
.app.projects-workspace .project-actions { gap:10px; padding:12px; border-color:var(--gw-border,#dbe3ec); border-radius:11px; background:var(--gw-surface,#fff); box-shadow:0 5px 15px rgba(20,40,70,.04); }
.app.projects-workspace .project-actions button,
.app.projects-workspace .project-layer-actions button { min-height:38px; padding:8px 13px; border-color:color-mix(in srgb,var(--gw-primary,#2563eb) 28%,var(--gw-border,#dbe3ec)); color:var(--gw-primary,#2563eb); background:color-mix(in srgb,var(--gw-primary,#2563eb) 7%,var(--gw-surface,#fff)); }
.app.projects-workspace .module-card { padding:18px; border-color:var(--gw-border,#dbe3ec); border-radius:12px; background:var(--gw-surface,#fff); box-shadow:0 6px 18px rgba(20,40,70,.05); }
.app.projects-workspace .project-card-header h2 { color:var(--gw-text,#172033); font-size:16px; }
.app.projects-workspace .project-section-note,
.app.projects-workspace .project-card-header span,
.app.projects-workspace .project-form label span,
.app.projects-workspace .project-layer-search span { color:var(--gw-muted,#64748b); }
.app.projects-workspace .project-editor-mode { border-color:color-mix(in srgb,var(--gw-primary,#2563eb) 25%,transparent); color:var(--gw-primary,#2563eb)!important; background:color-mix(in srgb,var(--gw-primary,#2563eb) 8%,transparent); }
.app.projects-workspace .project-form { grid-template-columns:repeat(2,minmax(0,1fr)); gap:13px; }
.app.projects-workspace .project-form label:nth-child(2) { grid-column:1/-1; }
.app.projects-workspace .project-form input,
.app.projects-workspace .project-form textarea,
.app.projects-workspace .project-layer-search input { min-height:42px; border-color:var(--gw-border,#dbe3ec); color:var(--gw-text,#172033); background:var(--gw-surface-2,#f8fafc); }
.app.projects-workspace .project-layer-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; max-height:390px; }
.app.projects-workspace .project-layer-option,
.app.projects-workspace .project-item { border-color:var(--gw-border,#dbe3ec); color:var(--gw-text,#172033); background:var(--gw-surface,#fff); box-shadow:0 4px 12px rgba(20,40,70,.035); }
.app.projects-workspace .project-layer-option:hover,
.app.projects-workspace .project-item:hover { border-color:var(--gw-primary,#2563eb); background:color-mix(in srgb,var(--gw-primary,#2563eb) 5%,var(--gw-surface,#fff)); }
.app.projects-workspace .project-layer-option.selected,
.app.projects-workspace .project-item.active { border:2px solid var(--gw-primary,#2563eb); background:color-mix(in srgb,var(--gw-primary,#2563eb) 6%,var(--gw-surface,#fff)); box-shadow:0 0 0 3px color-mix(in srgb,var(--gw-primary,#2563eb) 10%,transparent); }
.app.projects-workspace .project-layer-copy strong,
.app.projects-workspace .project-item .project-title { color:var(--gw-text,#172033); }
.app.projects-workspace .project-layer-copy small,
.app.projects-workspace .project-item .project-description { color:var(--gw-muted,#64748b); }
.app.projects-workspace .project-list { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.app.projects-workspace .project-item { min-height:92px; padding:13px; border-radius:11px; }
.app.projects-workspace .project-avatar { color:var(--gw-primary,#2563eb)!important; background:color-mix(in srgb,var(--gw-primary,#2563eb) 10%,transparent); }
.app.projects-workspace .project-status { color:var(--gw-muted,#64748b); background:var(--gw-surface-2,#f8fafc); }
.app.projects-workspace .project-status.active { color:#15803d; border-color:#86efac; background:#dcfce7; }
.app.projects-workspace .project-meta span { color:var(--gw-primary,#2563eb); border-color:var(--gw-border,#dbe3ec); background:var(--gw-surface-2,#f8fafc); }

.app.dashboard-workspace .platform-panel-body { padding:14px 16px 32px; }
.app.dashboard-workspace .module-view[data-module-view="dashboard"].active { width:100%; margin:0; }
.app.dashboard-workspace .profile-dashboard { gap:16px; }
.app.dashboard-workspace .profile-dashboard-hero { min-height:118px; padding:24px 26px; }
.app.dashboard-workspace .profile-dashboard-hero h1 { font-size:28px; }
.app.dashboard-workspace .profile-dashboard-hero p { font-size:12px; }
.app.dashboard-workspace .profile-dashboard-badge { padding:9px 14px; font-size:10px; }
.app.dashboard-workspace .profile-dashboard-cards { grid-template-columns:repeat(auto-fit,minmax(175px,1fr)); gap:11px; }
.app.dashboard-workspace .profile-dashboard-card { min-height:88px; padding:16px; }
.app.dashboard-workspace .profile-dashboard-card>.material-symbols-outlined { width:42px; height:42px; font-size:21px; }
.app.dashboard-workspace .profile-dashboard-card small { font-size:11px; line-height:1.35; white-space:normal; }
.app.dashboard-workspace .profile-dashboard-card strong { font-size:26px; line-height:1.1; }
.app.dashboard-workspace .profile-dashboard-layout { gap:14px; }
.app.dashboard-workspace .profile-dashboard-panel>header { min-height:70px; padding:14px 17px; }
.app.dashboard-workspace .profile-dashboard-panel h2 { font-size:17px; }
.app.dashboard-workspace .profile-dashboard-panel header small { font-size:11px; }
.app.dashboard-workspace .profile-dashboard-action strong,
.app.dashboard-workspace .profile-dashboard-notification strong,
.app.dashboard-workspace .profile-dashboard-movement strong { font-size:13px; }
.app.dashboard-workspace .profile-dashboard-action small,
.app.dashboard-workspace .profile-dashboard-notification p,
.app.dashboard-workspace .profile-dashboard-movement p { font-size:11px; }
.app.dashboard-workspace .profile-dashboard-movement small,
.app.dashboard-workspace .profile-dashboard-notification small { font-size:10px; }
.app.dashboard-workspace .profile-dashboard-priority { font-size:9px; }
.app.dashboard-workspace .profile-dashboard-chart h3 { font-size:13px; }
.app.dashboard-workspace .profile-dashboard-chart>div>span,
.app.dashboard-workspace .profile-dashboard-chart>div>strong { font-size:11px; }
.app.dashboard-workspace .profile-dashboard-shortcuts button { min-height:38px; padding:9px 13px; font-size:10px; }

.app.analytics-workspace .platform-panel-body { padding: 14px 16px 32px; }
.app.analytics-workspace .module-view[data-module-view="analytics"].active { width:100%; margin:0; }
.app.analytics-workspace .analytics-hero { min-height:104px; padding:20px 22px; border-radius:13px; }
.app.analytics-workspace .analytics-hero strong { font-size:22px; }
.app.analytics-workspace .analytics-hero button { min-height:40px; padding:9px 14px; }
.app.analytics-workspace .analytics-hero-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; }
.app.analytics-workspace #analytics-reset-map { color:var(--gw-text,#172033); border-color:var(--gw-border,#dbe3ec); background:var(--gw-surface,#fff); }
.app.analytics-workspace .analytics-dashboard-tabs { gap:9px; margin-top:14px; }
.app.analytics-workspace .analytics-dashboard-tabs button { min-height:38px; padding:8px 14px; }
.app.analytics-workspace .analytics-dashboard-tabs button.unavailable:not(.active) { opacity:.55; border-style:dashed; }
.app.analytics-workspace .analytics-scope-note { margin:10px 0 0; padding:10px 12px; border-left:3px solid var(--gw-primary,#2563eb); border-radius:0 8px 8px 0; color:var(--gw-muted,#64748b); background:color-mix(in srgb,var(--gw-primary,#2563eb) 6%,var(--gw-surface,#fff)); font-size:11px; line-height:1.5; }
.app.analytics-workspace .analytics-metrics { grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:14px; }
.app.analytics-workspace .analytics-metrics div { min-height:104px; padding:14px; border-radius:11px; }
.app.analytics-workspace .analytics-metrics .material-symbols-outlined { font-size:23px; }
.app.analytics-workspace .analytics-metrics strong { font-size:24px; }
.app.analytics-workspace .analytics-hero,
.app.analytics-workspace .analytics-metrics div,
.app.analytics-workspace .module-card { border-color:var(--gw-border,#dbe3ec); color:var(--gw-text,#172033); background:var(--gw-surface,#fff); box-shadow:0 6px 18px rgba(20,40,70,.05); }
.app.analytics-workspace .analytics-hero { background:radial-gradient(circle at 90% 0,color-mix(in srgb,var(--gw-primary,#2563eb) 12%,transparent),transparent 35%),var(--gw-surface,#fff); }
.app.analytics-workspace .analytics-hero strong,
.app.analytics-workspace .analytics-metrics strong,
.app.analytics-workspace .analytics-bar-label strong,
.app.analytics-workspace .analytics-attribute-row strong,
.app.analytics-workspace .analytics-layer-main strong { color:var(--gw-text,#172033); }
.app.analytics-workspace .analytics-hero span,
.app.analytics-workspace .analytics-hero small,
.app.analytics-workspace .analytics-metrics small,
.app.analytics-workspace .analytics-bar-label span,
.app.analytics-workspace .analytics-attribute-row small,
.app.analytics-workspace .analytics-layer-main small,
.app.analytics-workspace .analytics-layer-kpis small { color:var(--gw-muted,#64748b); }
.app.analytics-workspace .analytics-dashboard-tabs button,
.app.analytics-workspace .analytics-attribute-row,
.app.analytics-workspace .analytics-layer-row { border-color:var(--gw-border,#dbe3ec); color:var(--gw-text,#172033); background:var(--gw-surface,#fff); }
.app.analytics-workspace .analytics-dashboard-tabs button:hover,
.app.analytics-workspace .analytics-dashboard-tabs button.active { border-color:var(--gw-primary,#2563eb); color:var(--gw-primary,#2563eb); background:color-mix(in srgb,var(--gw-primary,#2563eb) 8%,var(--gw-surface,#fff)); }
.app.analytics-workspace .analytics-bar-track { background:var(--gw-surface-2,#eef2f7); }
.app.analytics-workspace .analytics-layer-row:hover { border-color:var(--gw-primary,#2563eb); background:color-mix(in srgb,var(--gw-primary,#2563eb) 5%,var(--gw-surface,#fff)); }
.app.analytics-workspace .analytics-layer-kpis strong { color:var(--gw-primary,#2563eb); }

.app.inspection-workspace .map-container { display: block; }
.app.inspection-workspace .platform-panel-body { padding: 14px 16px 32px; }
.app.inspection-workspace .module-view[data-module-view="inspections"].active,
.app.inspection-workspace .module-view[data-module-view="inspection_records"].active,
.app.inspection-workspace .module-view[data-module-view="work_inbox"].active { width: 100%; margin: 0; }

.inspection-records-hero { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:14px; padding:22px; border:1px solid rgba(56,189,248,.2); border-radius:15px; background:radial-gradient(circle at 90% 0,rgba(14,165,233,.15),transparent 38%),linear-gradient(135deg,#111d30,#0d2638); }
.inspection-records-hero > .material-symbols-outlined { width:48px; height:48px; display:grid; place-items:center; border-radius:12px; color:#7dd3fc; background:rgba(14,165,233,.12); font-size:26px; }
.inspection-records-hero small { color:#38bdf8; font-size:9px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.inspection-records-hero h1 { margin:3px 0; color:#f8fafc; font-size:22px; }
.inspection-records-hero p { margin:0; color:#91a3b8; font-size:11px; }
.inspection-records-hero button { min-height:38px; display:flex; align-items:center; gap:6px; padding:0 12px; border:1px solid rgba(56,189,248,.28); border-radius:8px; color:#e0f2fe; background:rgba(14,165,233,.1); font-size:10px; font-weight:800; cursor:pointer; }
.inspection-records-hero button:hover { background:rgba(14,165,233,.2); }
.inspection-records-hero button .material-symbols-outlined { font-size:17px; }
.inspection-records-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; margin-top:12px; }
.inspection-records-metrics article { --record-accent:#38bdf8; display:flex; align-items:center; gap:10px; min-width:0; padding:14px; border:1px solid color-mix(in srgb,var(--record-accent) 22%,transparent); border-radius:11px; background:rgba(15,23,42,.72); }
.inspection-records-metrics article.is-draft { --record-accent:#fbbf24; }.inspection-records-metrics article.is-review { --record-accent:#a78bfa; }.inspection-records-metrics article.is-complete { --record-accent:#4ade80; }
.inspection-records-metrics article > .material-symbols-outlined { width:34px; height:34px; display:grid; place-items:center; flex:0 0 auto; border-radius:9px; color:var(--record-accent); background:color-mix(in srgb,var(--record-accent) 11%,transparent); font-size:19px; }
.inspection-records-metrics article div { display:grid; gap:2px; }.inspection-records-metrics small { color:#8192a8; font-size:9px; text-transform:uppercase; }.inspection-records-metrics strong { color:#f8fafc; font-size:21px; }
.inspection-records-filters { display:grid; grid-template-columns:minmax(0,1fr) 190px; gap:9px; margin-top:12px; padding:12px; border:1px solid rgba(148,163,184,.13); border-radius:11px; background:rgba(9,17,31,.84); }
.inspection-records-filters label { position:relative; }.inspection-records-filters label .material-symbols-outlined { position:absolute; top:10px; left:10px; color:#64748b; font-size:18px; }
.inspection-records-filters input,.inspection-records-filters select { width:100%; height:38px; border:1px solid rgba(148,163,184,.17); border-radius:8px; color:#e2e8f0; background:#0e1828; outline:0; font-size:10px; }
.inspection-records-filters input { padding:0 10px 0 36px; }.inspection-records-filters select { padding:0 10px; }.inspection-records-filters input:focus,.inspection-records-filters select:focus { border-color:#38bdf8; box-shadow:0 0 0 3px rgba(56,189,248,.08); }
.inspection-records-list-card { margin-top:12px; }.inspection-records-list-card .project-section-note b { color:#7dd3fc; font-weight:700; }

.app.inspection-workspace .inspection-operation-main strong { font-size:10px; }
.app.inspection-workspace .inspection-operation-meta small { font-size:9px; }
.app.inspection-workspace .inspection-operation-meta strong { font-size:11px; }
.app.inspection-workspace .inspection-operation-evidence span { font-size:9px; }
.app.inspection-workspace .inspection-operation-progress b { font-size:10px; }
.app.inspection-workspace .inspection-demand-actions button { font-size:10px; }

.inspection-map-summary {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 3;
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(56, 189, 248, .28);
  border-radius: 9px;
  color: #e0f2fe;
  background: rgba(15, 23, 42, .9);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
  transform: translateX(-50%);
  pointer-events: none;
}
.app.inspection-workspace .inspection-map-summary { display: flex; }
.inspection-map-summary > .material-symbols-outlined { color: #38bdf8; font-size: 22px; }
.inspection-map-summary > div { display: grid; gap: 2px; }
.inspection-map-summary strong { font-size: 11px; white-space: nowrap; }
.inspection-map-summary small { color: #94a3b8; font-size: 9px; white-space: nowrap; }

.inspection-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(56, 189, 248, .25);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(14, 116, 144, .28), rgba(37, 99, 235, .12));
}
.inspection-hero > div { min-width: 0; display: grid; gap: 3px; }
.inspection-hero .inspection-hero-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.inspection-hero .inspection-hero-actions button:first-child { background: #7c3aed; }
.inspection-hero .inspection-hero-actions .inspection-environmental-button { color: #ecfdf5; background: #047857; }
.inspection-hero .inspection-hero-actions .inspection-environmental-button:hover { background: #065f46; }
.inspection-hero span { color: #38bdf8; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.inspection-hero strong { color: #f8fafc; font-size: 23px; }
.inspection-hero small { color: #a9b7c8; font-size: 12px; }
.inspection-hero button, .inspection-form-actions button, .inspection-location button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #0284c7;
  font-weight: 700;
  cursor: pointer;
}
.inspection-hero button .material-symbols-outlined { color: inherit; font-size: 18px; letter-spacing: 0; }
.inspection-hero button { display: flex; align-items: center; gap: 5px; padding: 0 17px; }
.inspection-hero button:hover, .inspection-form-actions button:hover, .inspection-location button:hover { background: #0369a1; }
.inspection-hero button:disabled, .inspection-form-actions button:disabled, .inspection-location button:disabled { opacity: .55; cursor: wait; }

/* Centro de Operações de Fiscalização */
.inspection-ops-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; border: 1px solid rgba(56,189,248,.2); border-radius: 16px; background: radial-gradient(circle at 85% 10%, rgba(14,165,233,.18), transparent 32%), linear-gradient(135deg, rgba(15,23,42,.98), rgba(10,37,57,.92)); box-shadow: 0 18px 48px rgba(2,6,23,.28); }
.inspection-ops-hero::after { position: absolute; right: -45px; bottom: -70px; width: 220px; height: 220px; border: 1px solid rgba(56,189,248,.1); border-radius: 50%; content: ''; }
.inspection-ops-identity { position: relative; z-index: 1; min-width: 0; display: flex; align-items: center; gap: 15px; }
.inspection-ops-identity > .material-symbols-outlined { width: 52px; height: 52px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(125,211,252,.2); border-radius: 14px; color: #7dd3fc; background: linear-gradient(145deg, rgba(14,165,233,.2), rgba(14,116,144,.08)); font-size: 28px; }
.inspection-ops-identity small { color: #38bdf8; font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.inspection-ops-identity h1 { margin: 3px 0 4px; color: #f8fafc; font-size: clamp(22px, 2vw, 30px); line-height: 1; }
.inspection-ops-identity p { margin: 0; color: #9fb0c5; font-size: 11px; }
.inspection-hero-daily { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(72px, 1fr)); gap: 6px; }
.inspection-hero-daily > div { min-width: 74px; display: grid; gap: 3px; padding: 10px 12px; border: 1px solid rgba(148,163,184,.11); border-radius: 10px; background: rgba(15,23,42,.5); }
.inspection-hero-daily span { color: #7f91a8; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.inspection-hero-daily strong { color: #e0f2fe; font-size: 18px; }
.inspection-hero-daily .is-danger strong { color: #fda4af; }
.inspection-hero-daily .is-success strong { color: #86efac; }
.inspection-ops-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.inspection-ops-kpis article { --kpi:#38bdf8; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid color-mix(in srgb, var(--kpi) 22%, transparent); border-radius: 12px; background: linear-gradient(145deg, color-mix(in srgb, var(--kpi) 8%, #111c2e), #101a2a); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.inspection-ops-kpis article > .material-symbols-outlined { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; color: var(--kpi); background: color-mix(in srgb, var(--kpi) 12%, transparent); font-size: 19px; }
.inspection-ops-kpis article > div { min-width: 0; display: grid; gap: 1px; }
.inspection-ops-kpis small { overflow: hidden; color: #8fa0b5; font-size: 8px; font-weight: 700; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.inspection-ops-kpis strong { color: #f8fafc; font-size: 21px; line-height: 1.1; }
.inspection-ops-kpis em { overflow: hidden; color: #607188; font-size: 7px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.inspection-ops-kpis .kpi-field { --kpi:#22d3ee; }.inspection-ops-kpis .kpi-overdue { --kpi:#fb7185; }.inspection-ops-kpis .kpi-success { --kpi:#4ade80; }.inspection-ops-kpis .kpi-draft { --kpi:#fbbf24; }.inspection-ops-kpis .kpi-sync { --kpi:#a78bfa; }
.inspection-action-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.inspection-action-grid article { --action:#38bdf8; min-width: 0; min-height: 170px; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 16px; border: 1px solid color-mix(in srgb, var(--action) 24%, transparent); border-radius: 13px; background: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--action) 13%, transparent), transparent 43%), rgba(15,23,42,.78); transition: border-color .2s, transform .2s, box-shadow .2s; }
.inspection-action-grid article:hover { border-color: color-mix(in srgb, var(--action) 52%, transparent); box-shadow: 0 13px 30px rgba(2,6,23,.24); transform: translateY(-2px); }
.inspection-action-grid .action-demand { --action:#a78bfa; }.inspection-action-grid .action-environmental { --action:#34d399; }.inspection-action-grid .action-general { --action:#38bdf8; }.inspection-action-grid .action-route { --action:#fbbf24; }
.inspection-action-grid article > .material-symbols-outlined { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: var(--action); background: color-mix(in srgb, var(--action) 12%, transparent); font-size: 22px; }
.inspection-action-grid h2 { margin: 0 0 5px; color: #edf4fc; font-size: 13px; }.inspection-action-grid p { margin: 0; color: #7f91a8; font-size: 9px; line-height: 1.45; }
.inspection-action-grid button { min-height: 36px; padding: 0 11px; border: 1px solid color-mix(in srgb, var(--action) 35%, transparent); border-radius: 8px; color: color-mix(in srgb, var(--action) 70%, white); background: color-mix(in srgb, var(--action) 11%, transparent); font-size: 9px; font-weight: 800; cursor: pointer; }
.inspection-action-grid button:hover { background: color-mix(in srgb, var(--action) 20%, transparent); }
.inspection-filter-console { position: sticky; top: -14px; z-index: 4; display: grid; grid-template-columns: minmax(220px,1fr) auto; gap: 10px 14px; margin-top: 12px; padding: 14px; border: 1px solid rgba(148,163,184,.14); border-radius: 13px; background: rgba(9,17,31,.96); box-shadow: 0 12px 28px rgba(2,6,23,.24); backdrop-filter: blur(16px); }
.inspection-filter-heading { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.inspection-filter-heading > div { display: flex; align-items: center; gap: 7px; color: #dbeafe; }.inspection-filter-heading .material-symbols-outlined { color: #38bdf8; font-size: 18px; }.inspection-filter-heading strong { font-size: 10px; text-transform: uppercase; }
.inspection-filter-heading button { display: flex; align-items: center; gap: 4px; border: 0; color: #71839a; background: transparent; font-size: 8px; cursor: pointer; }
.inspection-filter-console .inspection-dashboard-search { position: relative; display: block; }.inspection-filter-console .inspection-dashboard-search > .material-symbols-outlined { position: absolute; top: 10px; left: 10px; z-index: 1; color: #64748b; font-size: 18px; }
.inspection-filter-console input, .inspection-filter-console select { width: 100%; height: 38px; padding: 0 10px; border: 1px solid rgba(148,163,184,.16); border-radius: 8px; color: #e2e8f0; background: #0e1828; outline: 0; font-size: 9px; }.inspection-filter-console input:focus,.inspection-filter-console select:focus { border-color:#38bdf8; box-shadow:0 0 0 3px rgba(56,189,248,.08); }
.inspection-filter-console .inspection-dashboard-search input { padding-left: 36px; }
.inspection-quick-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }.inspection-quick-filters button { min-height: 30px; padding: 0 10px; border: 1px solid rgba(148,163,184,.13); border-radius: 999px; color: #7f91a8; background: rgba(15,23,42,.6); font-size: 8px; cursor: pointer; }.inspection-quick-filters button.active,.inspection-quick-filters button:hover { color:#e0f2fe; border-color:rgba(56,189,248,.4); background:rgba(14,165,233,.13); }
.inspection-filter-selects { grid-column:1/-1; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; }.inspection-filter-selects label { display:grid; gap:4px; }.inspection-filter-selects label > span { color:#71839a; font-size:7px; font-weight:700; text-transform:uppercase; }
.inspection-journey-panel { margin-top:12px; padding:15px; border:1px solid rgba(56,189,248,.15); border-radius:13px; background:linear-gradient(145deg,rgba(15,23,42,.86),rgba(12,26,43,.72)); }
.inspection-journey-empty { min-height:70px; display:flex; align-items:center; justify-content:center; gap:10px; color:#71839a; text-align:left; }.inspection-journey-empty > .material-symbols-outlined { color:#38bdf8; font-size:26px; }.inspection-journey-empty div { display:grid; gap:2px; }.inspection-journey-empty strong { color:#cbd5e1; font-size:11px; }.inspection-journey-empty small { font-size:9px; }
.inspection-journey-heading { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }.inspection-journey-heading div { display:grid; gap:3px; }.inspection-journey-heading small { color:#38bdf8; font-size:8px; font-weight:800; }.inspection-journey-heading strong { color:#f1f5f9; font-size:12px; }.inspection-journey-heading span { color:#94a3b8; font-size:9px; }
.inspection-journey-progress { min-width:150px; display:grid; gap:5px; text-align:right; }.inspection-journey-progress b { color:#7dd3fc; font-size:13px; }.inspection-journey-progress i { height:5px; overflow:hidden; border-radius:999px; background:#1e293b; }.inspection-journey-progress i::after { width:var(--progress); height:100%; display:block; border-radius:inherit; content:''; background:linear-gradient(90deg,#0284c7,#34d399); }
.inspection-journey-steps { display:grid; grid-template-columns:repeat(8,minmax(72px,1fr)); gap:0; margin-top:16px; overflow-x:auto; }.inspection-journey-step { position:relative; min-width:76px; display:grid; justify-items:center; gap:6px; color:#5f7085; text-align:center; }.inspection-journey-step::before { position:absolute; top:14px; left:-50%; width:100%; height:2px; content:''; background:#263449; }.inspection-journey-step:first-child::before{display:none}.inspection-journey-step .material-symbols-outlined { position:relative; z-index:1; width:29px; height:29px; display:grid; place-items:center; border:2px solid #263449; border-radius:50%; background:#111c2e; font-size:14px; }.inspection-journey-step span:last-child { font-size:7px; font-weight:700; line-height:1.25; }.inspection-journey-step.complete { color:#86efac; }.inspection-journey-step.complete::before{background:#22c55e}.inspection-journey-step.complete .material-symbols-outlined{color:#4ade80;border-color:#22c55e;background:#0d2c24}.inspection-journey-step.current{color:#fde68a}.inspection-journey-step.current .material-symbols-outlined{color:#fbbf24;border-color:#f59e0b;background:#33250d}
.environmental-lot-selection { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; margin-top: 10px; padding: 12px 14px; border: 1px solid rgba(52, 211, 153, .3); border-radius: 10px; background: linear-gradient(135deg, rgba(6, 95, 70, .24), rgba(15, 23, 42, .8)); }
.inspection-journey-steps { grid-template-columns:repeat(9,minmax(72px,1fr)); }
.inspection-journey-step.pending .material-symbols-outlined { opacity:.72; }
.inspection-journey-step.overdue { color:#fecaca; }
.inspection-journey-step.overdue .material-symbols-outlined { color:#f87171; border-color:#ef4444; background:#38151b; box-shadow:0 0 0 4px rgba(239,68,68,.1); }
.environmental-lot-selection.access-hidden { display: none; }
.environmental-lot-selection > .material-symbols-outlined { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: #6ee7b7; background: rgba(16, 185, 129, .13); }
.environmental-lot-selection > div { min-width: 0; display: grid; gap: 2px; }
.environmental-lot-selection strong { color: #ecfdf5; font-size: 11px; }
.environmental-lot-selection small { color: #94a3b8; font-size: 9px; }
.environmental-lot-selection button { min-height: 34px; padding: 0 11px; border: 1px solid rgba(148, 163, 184, .2); border-radius: 7px; color: #cbd5e1; background: rgba(15, 23, 42, .6); cursor: pointer; }
.map.environmental-lot-pick, .map-container:has(.environmental-lot-pick) { cursor: crosshair; }

.inspection-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 12px; }
.inspection-metrics > div { display: grid; gap: 2px; padding: 12px; border: 1px solid rgba(148, 163, 184, .14); border-radius: 8px; background: rgba(15, 23, 42, .72); }
.inspection-metrics strong { color: #f8fafc; font-size: 20px; }
.inspection-metrics span { color: #94a3b8; font-size: 10px; text-transform: uppercase; }

.inspection-dashboard-toolbar { position: sticky; top: -14px; z-index: 4; display: grid; grid-template-columns: minmax(190px, 1.4fr) minmax(112px, .7fr) minmax(135px, .9fr) auto; gap: 8px; margin: 12px 0 0; padding: 10px; border: 1px solid rgba(148, 163, 184, .14); border-radius: 10px; background: rgba(11, 19, 34, .96); box-shadow: 0 8px 22px rgba(0, 0, 0, .14); backdrop-filter: blur(12px); }
.inspection-dashboard-toolbar label { min-width: 0; display: grid; gap: 4px; }
.inspection-dashboard-toolbar label > span:not(.material-symbols-outlined) { color: #8292a8; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.inspection-dashboard-toolbar input, .inspection-dashboard-toolbar select { min-width: 0; width: 100%; height: 36px; padding: 0 9px; border: 1px solid rgba(148, 163, 184, .17); border-radius: 7px; outline: 0; color: #e2e8f0; background: #0f172a; font: inherit; font-size: 10px; }
.inspection-dashboard-toolbar input:focus, .inspection-dashboard-toolbar select:focus { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56, 189, 248, .08); }
.inspection-dashboard-toolbar .inspection-dashboard-search { position: relative; align-self: end; display: block; }
.inspection-dashboard-search .material-symbols-outlined { position: absolute; top: 9px; left: 9px; z-index: 1; color: #64748b; font-size: 18px; }
.inspection-dashboard-search input { padding-left: 34px; }
.inspection-dashboard-toolbar > button { align-self: end; height: 36px; display: flex; align-items: center; gap: 4px; padding: 0 10px; border: 1px solid rgba(148, 163, 184, .16); border-radius: 7px; color: #94a3b8; background: #111c2e; font-size: 9px; cursor: pointer; }
.inspection-dashboard-toolbar > button:hover { color: #e0f2fe; border-color: #38bdf8; }
.inspection-dashboard-toolbar > button .material-symbols-outlined { font-size: 16px; }

.inspection-management-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.inspection-management-metrics article { min-width: 0; display: flex; align-items: center; gap: 10px; padding: 13px; border: 1px solid rgba(148, 163, 184, .13); border-radius: 10px; background: linear-gradient(145deg, rgba(15, 23, 42, .9), rgba(17, 28, 46, .72)); }
.inspection-management-metrics article > .material-symbols-outlined { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 8px; color: #38bdf8; background: rgba(14, 165, 233, .1); font-size: 19px; }
.inspection-management-metrics article > div { min-width: 0; display: grid; gap: 1px; }
.inspection-management-metrics strong { font-size: 19px; line-height: 1; }
.inspection-management-metrics span { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.inspection-management-metrics small { overflow: hidden; color: #64748b; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.inspection-management-metrics .metric-warning > .material-symbols-outlined { color: #fbbf24; background: rgba(245, 158, 11, .11); }
.inspection-management-metrics .metric-warning strong { color: #fde68a; }
.inspection-management-metrics .metric-success > .material-symbols-outlined { color: #4ade80; background: rgba(34, 197, 94, .1); }

.inspection-fiscal-home { display: grid; gap: 10px; margin-top: 12px; }
.inspection-fiscal-welcome { display: flex; align-items: center; gap: 11px; padding: 14px; border: 1px solid rgba(56, 189, 248, .17); border-radius: 10px; background: linear-gradient(135deg, rgba(14, 116, 144, .16), rgba(15, 23, 42, .8)); }
.inspection-fiscal-welcome > .material-symbols-outlined { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; color: #7dd3fc; background: rgba(14, 165, 233, .12); }
.inspection-fiscal-welcome > div { display: grid; gap: 2px; }
.inspection-fiscal-welcome > div { min-width: 0; flex: 1; }
.inspection-fiscal-welcome small { color: #38bdf8; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.inspection-fiscal-welcome strong { color: #f1f5f9; font-size: 15px; }
.inspection-fiscal-welcome span { color: #8292a8; font-size: 9px; }
.inspection-fiscal-welcome > button { min-height: 36px; display: flex; align-items: center; gap: 5px; padding: 0 10px; border: 1px solid rgba(56, 189, 248, .22); border-radius: 7px; color: #bae6fd; background: rgba(14, 165, 233, .09); font-size: 8px; font-weight: 700; cursor: pointer; }
.inspection-fiscal-welcome > button .material-symbols-outlined { font-size: 16px; }
.inspection-fiscal-queue-metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.inspection-fiscal-queue-metrics button { min-width: 0; min-height: 66px; display: grid; align-content: center; gap: 3px; padding: 8px; border: 1px solid rgba(148, 163, 184, .13); border-radius: 9px; color: inherit; background: #111c2e; text-align: left; cursor: pointer; }
.inspection-fiscal-queue-metrics button:hover { border-color: #38bdf8; transform: translateY(-1px); }
.inspection-fiscal-queue-metrics strong { color: #f8fafc; font-size: 18px; }
.inspection-fiscal-queue-metrics span { overflow: hidden; color: #8292a8; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.inspection-fiscal-queue-metrics .is-danger strong { color: #fb7185; }
.inspection-fiscal-queue-metrics .is-warning strong { color: #fbbf24; }
.inspection-fiscal-return-card { padding:13px; border:1px solid rgba(245,158,11,.2); border-radius:10px; background:rgba(15,23,42,.72); }
.inspection-fiscal-return-card .project-card-header { margin-bottom:5px; }
.inspection-fiscal-return-card .project-card-header > .material-symbols-outlined { color:#fbbf24; }
.inspection-fiscal-return-list { display:grid; gap:7px; }
.inspection-fiscal-return-item { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px; padding:11px; border:1px solid rgba(245,158,11,.16); border-radius:8px; background:rgba(30,41,59,.62); }
.inspection-fiscal-return-item > div { min-width:0; display:grid; gap:3px; }
.inspection-fiscal-return-item span { color:#fbbf24; font-size:8px; font-weight:800; }
.inspection-fiscal-return-item strong { overflow:hidden; color:#f1f5f9; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.inspection-fiscal-return-item small,.inspection-fiscal-return-item time { color:#94a3b8; font-size:8px; }
.inspection-fiscal-return-item button { min-height:34px; display:flex; align-items:center; gap:5px; padding:0 10px; border:1px solid rgba(245,158,11,.3); border-radius:7px; color:#fde68a; background:rgba(245,158,11,.1); font-size:8px; font-weight:800; cursor:pointer; }
.inspection-fiscal-return-item button .material-symbols-outlined { font-size:15px; }

.inspection-dashboard-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 10px; margin-top: 10px; }
.inspection-dashboard-grid .module-card { min-width: 0; margin: 0; padding: 14px; }
.inspection-dashboard-grid .inspection-team-card { grid-column: 1 / -1; }
.inspection-analytics-card .project-card-header { margin-bottom: 12px; }
.inspection-card-icon { color: #38bdf8; font-size: 20px; }
.inspection-evolution-chart { min-height: 150px; display: grid; grid-template-rows: auto 1fr; gap: 10px; }
.inspection-chart-legend { display: flex; justify-content: flex-end; gap: 12px; color: #8292a8; font-size: 8px; }
.inspection-chart-legend span { display: flex; align-items: center; gap: 4px; }
.inspection-chart-legend i { width: 7px; height: 7px; border-radius: 2px; background: #38bdf8; }
.inspection-chart-legend i.completed { background: #4ade80; }
.inspection-chart-plot { min-height: 115px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; border-bottom: 1px solid rgba(148, 163, 184, .12); background: repeating-linear-gradient(to bottom, transparent 0, transparent 37px, rgba(148, 163, 184, .055) 38px); }
.inspection-chart-month { min-width: 0; display: grid; grid-template-rows: minmax(90px, 1fr) 18px; gap: 4px; text-align: center; }
.inspection-chart-bars { height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.inspection-chart-bars i { position: relative; width: min(13px, 35%); min-height: 2px; border-radius: 3px 3px 1px 1px; background: linear-gradient(#38bdf8, #0284c7); transition: height .25s ease; }
.inspection-chart-bars i.completed { background: linear-gradient(#4ade80, #16a34a); }
.inspection-chart-bars b { position: absolute; top: -12px; left: 50%; color: #cbd5e1; font-size: 7px; font-style: normal; transform: translateX(-50%); }
.inspection-chart-month > span { color: #64748b; font-size: 8px; text-transform: uppercase; }
.inspection-status-breakdown { display: grid; gap: 6px; }
.inspection-status-breakdown button { width: 100%; min-width: 0; display: grid; grid-template-columns: 25px minmax(0, 1fr); align-items: center; gap: 7px; padding: 6px; border: 0; border-radius: 7px; color: inherit; background: transparent; text-align: left; cursor: pointer; }
.inspection-status-breakdown button:hover { background: rgba(56, 189, 248, .06); }
.inspection-status-breakdown button > .material-symbols-outlined { color: #64748b; font-size: 17px; }
.inspection-status-breakdown button > div { min-width: 0; display: grid; gap: 3px; }
.inspection-status-breakdown div > span { display: flex; justify-content: space-between; gap: 5px; }
.inspection-status-breakdown strong { color: #cbd5e1; font-size: 9px; }
.inspection-status-breakdown b { color: #f8fafc; font-size: 9px; }
.inspection-status-breakdown i { height: 4px; overflow: hidden; border-radius: 999px; background: rgba(148, 163, 184, .1); }
.inspection-status-breakdown em { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #0284c7, #38bdf8); }
.inspection-status-breakdown small { color: #64748b; font-size: 7px; }
.inspection-team-workload { display: grid; }
.inspection-team-workload > button { min-width: 0; display: grid; grid-template-columns: 30px minmax(120px, 1fr) 48px 48px 54px; align-items: center; gap: 8px; padding: 9px 3px; border: 0; border-bottom: 1px solid rgba(148, 163, 184, .1); color: inherit; background: transparent; text-align: left; cursor: pointer; }
.inspection-team-workload > button:hover { background: rgba(56, 189, 248, .04); }
.inspection-team-avatar { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #bae6fd; background: rgba(14, 165, 233, .14); font-size: 8px; font-weight: 800; }
.inspection-team-workload button > div { min-width: 0; display: grid; gap: 5px; }
.inspection-team-workload button > div strong { overflow: hidden; color: #dbe6f3; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.inspection-team-workload button > div > span { height: 3px; overflow: hidden; border-radius: 999px; background: rgba(148, 163, 184, .1); }
.inspection-team-workload button > div i { height: 100%; display: block; background: #38bdf8; }
.inspection-team-workload b, .inspection-team-workload em, .inspection-team-workload time { display: grid; gap: 1px; color: #e2e8f0; font-size: 10px; font-style: normal; font-weight: 700; text-align: right; }
.inspection-team-workload small { color: #64748b; font-size: 7px; font-weight: 500; white-space: nowrap; }
.inspection-team-workload .has-overdue { color: #fbbf24; }
.inspection-empty.compact { padding: 18px 10px; }

.inspection-form { margin-top: 12px; padding: 18px; border: 1px solid rgba(56, 189, 248, .35); border-radius: 12px; background: #111c2e; box-shadow: 0 18px 45px rgba(0, 0, 0, .22); }
.inspection-demand-form { border-color: rgba(168, 85, 247, .4); }
.inspection-demand-location { border-color: rgba(168, 85, 247, .2); background: rgba(126, 34, 206, .05); }
#map.inspection-pick-location { cursor: crosshair !important; }
.inspection-form-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.inspection-form-header > div { display: grid; gap: 2px; }
.inspection-form-header > div > span { color: #38bdf8; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.inspection-form-header h2 { margin: 0; color: #f8fafc; font-size: 18px; }
.inspection-form-header button, .inspection-icon-button, .inspection-item > button { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(148, 163, 184, .18); border-radius: 8px; color: #cbd5e1; background: #0f172a; cursor: pointer; }
.inspection-form-header button:hover, .inspection-icon-button:hover, .inspection-item > button:hover { color: #fff; border-color: #38bdf8; }
.inspection-form-progress { display: grid; gap: 6px; margin: -4px 0 16px; padding: 11px 12px; border: 1px solid rgba(56, 189, 248, .14); border-radius: 8px; background: rgba(14, 165, 233, .04); }
.inspection-form-progress > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.inspection-form-progress > div:first-child span { color: #94a3b8; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.inspection-form-progress > div:first-child strong { color: #38bdf8; font-size: 12px; }
.inspection-progress-track { height: 5px; overflow: hidden; border-radius: 999px; background: rgba(148, 163, 184, .15); }
.inspection-progress-track > span { width: 0; height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #0284c7, #38bdf8); transition: width .2s ease; }
.inspection-progress-track.complete > span { background: linear-gradient(90deg, #16a34a, #4ade80); }
.inspection-form-progress small { color: #8292a8; font-size: 10px; }
.inspection-progress-checklist { display:flex; flex-wrap:wrap; gap:5px; margin-top:4px; }
.inspection-progress-checklist span { display:flex; align-items:center; gap:3px; padding:4px 7px; border-radius:999px; color:#71839a; background:rgba(15,23,42,.55); font-size:7px; }
.inspection-progress-checklist span::before { width:5px; height:5px; border-radius:50%; content:''; background:#475569; }
.inspection-progress-checklist span.complete { color:#86efac; background:rgba(34,197,94,.08); }
.inspection-progress-checklist span.complete::before { background:#22c55e; }
.inspection-progress-checklist span.attention { color:#fde68a; }.inspection-progress-checklist span.attention::before { background:#f59e0b; }
.inspection-local-backup { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 9px; margin: -4px 0 16px; padding: 10px 11px; border: 1px solid rgba(245, 158, 11, .25); border-radius: 8px; background: rgba(245, 158, 11, .07); }
.inspection-local-backup > .material-symbols-outlined { color: #fbbf24; font-size: 21px; }
.inspection-local-backup > div { min-width: 0; display: grid; gap: 2px; }
.inspection-local-backup strong { color: #fde68a; font-size: 11px; }
.inspection-local-backup small { overflow: hidden; color: #a89b82; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.inspection-local-backup button { min-height: 30px; padding: 0 9px; border: 1px solid rgba(245, 158, 11, .22); border-radius: 6px; color: #fcd34d; background: rgba(120, 53, 15, .24); font-size: 10px; cursor: pointer; }
.inspection-local-backup button:last-child { border-color: transparent; color: #94a3b8; background: transparent; }
.inspection-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.inspection-form-grid + .inspection-form-grid { margin-top: 12px; }
.inspection-form-grid label { min-width: 0; display: grid; gap: 6px; }
.inspection-form-grid label > span { color: #a9b7c8; font-size: 11px; font-weight: 600; }
.inspection-form-grid input, .inspection-form-grid select, .inspection-form-grid textarea {
  width: 100%; min-height: 44px; padding: 10px 11px; border: 1px solid rgba(148, 163, 184, .2); border-radius: 7px; outline: none; color: #e5edf7; background: #0b1322; font: inherit;
}
.inspection-form-grid textarea { min-height: 92px; resize: vertical; }
.inspection-form-grid input:focus, .inspection-form-grid select:focus, .inspection-form-grid textarea:focus { border-color: #38bdf8; box-shadow: 0 0 0 3px rgba(56, 189, 248, .1); }
.inspection-wide { grid-column: 1 / -1; }
.inspection-conditional-hidden { display: none !important; }
.inspection-photos { margin: 16px 0 0; padding: 14px; border: 1px solid rgba(148, 163, 184, .16); border-radius: 9px; }
.inspection-photos legend { padding: 0 6px; color: #94a3b8; font-size: 10px; text-transform: uppercase; }
.inspection-photos legend b,.inspection-documents legend b { margin-left:6px; padding:3px 6px; border-radius:999px; color:#7dd3fc; background:rgba(14,165,233,.1); font-size:7px; }
.inspection-photos > input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.inspection-photo-capture { width:100%; min-height: 58px; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px dashed rgba(56, 189, 248, .38); border-radius: 8px; color: #cbd5e1; background: rgba(14, 116, 144, .08); text-align:left; cursor: pointer; }
.inspection-photo-capture:hover { border-color: #38bdf8; background: rgba(14, 116, 144, .15); }
.inspection-photo-capture > .material-symbols-outlined { color: #38bdf8; font-size: 28px; }
.inspection-photo-capture > span:last-child { display: grid; gap: 2px; }
.inspection-photo-capture strong { color: #e5edf7; font-size: 12px; }
.inspection-photo-capture small, .inspection-photo-status { color: #8292a8; font-size: 10px; }
.inspection-photo-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 10px; }
.inspection-photo-item { position: relative; min-width: 0; aspect-ratio: 4 / 3; margin: 0; overflow: hidden; border: 1px solid rgba(148, 163, 184, .18); border-radius: 8px; background: #080f1c; }
.inspection-photo-item img { width: 100%; height: 100%; display: block; object-fit: cover; }
.inspection-photo-item button { position: absolute; top: 5px; right: 5px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: rgba(15, 23, 42, .82); cursor: pointer; }
.inspection-photo-item button:hover { background: #be123c; }
.inspection-photo-item button .material-symbols-outlined { font-size: 17px; }
.inspection-photo-item > small { position: absolute; left: 5px; bottom: 5px; padding: 3px 6px; border-radius: 999px; color: #fff; background: rgba(15, 23, 42, .78); font-size: 8px; text-transform: uppercase; }
.inspection-photo-status { display: block; margin-top: 8px; }
.inspection-photos>input[type="file"]{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.inspection-camera-dialog{width:min(720px,96vw)}.inspection-camera-dialog>form{overflow:hidden}.inspection-camera-stage{position:relative;display:grid;place-items:center;min-height:360px;overflow:hidden;background:#020617}.inspection-camera-stage video{width:100%;max-height:68vh;display:block;object-fit:contain;background:#020617}.inspection-camera-stage canvas{display:none}.inspection-camera-stage>div{position:absolute;inset:0;display:grid;place-items:center;align-content:center;gap:6px;color:#7c8ca0;text-align:center;background:#07101e}.inspection-camera-stage>div.hidden{display:none}.inspection-camera-stage>div .material-symbols-outlined{color:#38bdf8;font-size:42px}.inspection-camera-stage>div strong{color:#dce8f4;font-size:13px}.inspection-camera-stage>div small{font-size:9px}.inspection-camera-status{padding:9px 14px;border-top:1px solid rgba(148,163,184,.12);color:#93a4b8;background:#0c1625;font-size:9px}.inspection-camera-dialog footer{display:flex;justify-content:flex-end;gap:7px}.inspection-camera-dialog footer button{display:flex;align-items:center;gap:5px}.inspection-camera-dialog footer .material-symbols-outlined{font-size:17px}.inspection-camera-dialog footer .inspection-camera-shot{min-width:130px;justify-content:center;color:#ecfeff;border-color:rgba(34,211,238,.4);background:rgba(8,145,178,.22)}
.inspection-documents { margin: 12px 0 0; padding: 14px; border: 1px solid rgba(148, 163, 184, .16); border-radius: 9px; }
.inspection-documents legend { padding: 0 6px; color: #94a3b8; font-size: 10px; text-transform: uppercase; }
.inspection-documents > input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.inspection-document-capture { min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px dashed rgba(139, 92, 246, .34); border-radius: 8px; color: #cbd5e1; background: rgba(139, 92, 246, .06); cursor: pointer; }
.inspection-document-capture > .material-symbols-outlined { color: #a78bfa; font-size: 23px; }
.inspection-document-capture > span:last-child { display: grid; gap: 2px; }
.inspection-document-capture strong { color: #e2e8f0; font-size: 11px; }
.inspection-document-capture small { color: #64748b; font-size: 9px; }
.inspection-document-list { display: grid; margin-top: 7px; }
.inspection-document-list article { display: grid; grid-template-columns: 24px minmax(0, 1fr) 28px; align-items: center; gap: 7px; padding: 7px 2px; border-bottom: 1px solid rgba(148, 163, 184, .1); }
.inspection-document-list article > .material-symbols-outlined { color: #a78bfa; font-size: 19px; }
.inspection-document-list article > div { min-width: 0; display: grid; gap: 2px; }
.inspection-document-list strong { overflow: hidden; color: #dbe6f3; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.inspection-document-list small { color: #64748b; font-size: 8px; }
.inspection-document-list button { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 5px; color: #94a3b8; background: transparent; cursor: pointer; }
.inspection-document-list button:hover { color: #fb7185; background: rgba(244, 63, 94, .1); }
.inspection-document-list button .material-symbols-outlined { font-size: 16px; }
.inspection-location { display: flex; align-items: center; gap: 14px; margin: 16px 0 0; padding: 14px; border: 1px solid rgba(148, 163, 184, .16); border-radius: 9px; }
.inspection-location legend { padding: 0 6px; color: #94a3b8; font-size: 10px; text-transform: uppercase; }
.inspection-location > div { min-width: 0; flex: 1; display: flex; align-items: center; gap: 10px; }
.inspection-location .material-symbols-outlined { color: #38bdf8; }
.inspection-location > div > span:last-child { min-width: 0; display: grid; gap: 2px; }
.inspection-location strong { color: #e5edf7; font-size: 12px; }
.inspection-location small { overflow: hidden; color: #8292a8; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.inspection-location button { padding: 0 14px; }
.inspection-location-actions { flex:0 0 auto !important; display:flex !important; gap:6px !important; }
.inspection-location-actions button { min-width:112px; display:flex; align-items:center; justify-content:center; gap:5px; }
.inspection-location-actions button.secondary { border:1px solid rgba(148,163,184,.18); color:#94a3b8; background:transparent; }
.inspection-location-actions button:disabled { opacity:.4; cursor:not-allowed; }.inspection-location-actions .material-symbols-outlined{font-size:16px}
.inspection-environmental-notice { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px; margin-top:14px; padding:15px; border:1px solid rgba(52,211,153,.24); border-radius:11px; background:linear-gradient(135deg,rgba(6,95,70,.14),rgba(15,23,42,.65)); }
.inspection-environmental-notice.access-hidden{display:none}.inspection-environmental-notice > .material-symbols-outlined{width:40px;height:40px;display:grid;place-items:center;border-radius:10px;color:#6ee7b7;background:rgba(16,185,129,.12)}
.inspection-environmental-notice > div{display:grid;gap:3px}.inspection-environmental-notice small{color:#34d399;font-size:7px;font-weight:800;text-transform:uppercase}.inspection-environmental-notice h3{margin:0;color:#ecfdf5;font-size:12px}.inspection-environmental-notice p{margin:0;color:#8292a8;font-size:8px;line-height:1.4}
.inspection-environmental-notice dl{display:flex;flex-wrap:wrap;gap:5px;margin:5px 0 0}.inspection-environmental-notice dl span{padding:3px 6px;border-radius:5px;color:#a7f3d0;background:rgba(16,185,129,.08);font-size:7px}.inspection-environmental-notice button{min-height:36px;padding:0 11px;border:1px solid rgba(52,211,153,.3);border-radius:7px;color:#d1fae5;background:rgba(5,150,105,.16);font-size:8px;font-weight:800;cursor:pointer}
.inspection-form-workspace .inspection-environmental-notice { border:2px solid #7f9cad;background:#fff !important;box-shadow:0 4px 12px rgba(20,41,58,.1); }
.inspection-form-workspace .inspection-environmental-notice > .material-symbols-outlined { color:#fff;background:#1769aa; }
.inspection-form-workspace .inspection-environmental-notice :is(small,h3,p,dl span) { color:#183247 !important; }
.inspection-form-workspace .inspection-environmental-notice small { font-weight:900; }
.inspection-form-workspace .inspection-environmental-notice dl span { border:1px solid #9eb4c3;background:#eef4f7; }
.inspection-message { min-height: 20px; padding-top: 10px; color: #94a3b8; font-size: 11px; }
.inspection-message.success { color: #4ade80; }
.inspection-message.error { color: #fb7185; }
.inspection-form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 4px; }
.inspection-form-actions button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 16px; }
.inspection-form-actions #inspection-save-draft { border: 1px solid rgba(148, 163, 184, .22); color: #cbd5e1; background: #182235; }
.inspection-prefilled-source textarea, .inspection-prefilled-source input { color: #a7f3d0 !important; border-color: rgba(16, 185, 129, .2) !important; background: rgba(6, 78, 59, .12) !important; }
.inspection-prefilled-source textarea { min-height: 150px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; line-height: 1.45; }
.environmental-inspection-form { border-color: rgba(16, 185, 129, .28); box-shadow: 0 14px 36px rgba(6, 78, 59, .12); }
.environmental-form-intro { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid rgba(16, 185, 129, .2); border-radius: 8px; background: linear-gradient(135deg, rgba(6, 95, 70, .17), rgba(15, 23, 42, .5)); }
.environmental-form-intro > .material-symbols-outlined { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; color: #6ee7b7; background: rgba(16, 185, 129, .12); }
.environmental-form-intro > div { display: grid; gap: 3px; }
.environmental-form-intro strong { color: #d1fae5; font-size: 11px; }
.environmental-form-intro small { color: #94a3b8; font-size: 9px; line-height: 1.4; }
.environmental-form-intro b { color: #6ee7b7; }

.inspection-list-card { padding: 16px; }
.inspection-list { display: grid; margin-top: 5px; }
.inspection-item { min-width: 0; display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; gap: 12px; padding: 12px 3px; border-bottom: 1px solid rgba(148, 163, 184, .12); }
.inspection-item:last-child { border-bottom: 0; }
.inspection-record-card { grid-template-columns:auto minmax(0,1fr) auto;gap:11px;margin:8px 0;padding:13px;border:1px solid rgba(148,163,184,.12) !important;border-radius:11px;background:rgba(15,23,42,.62);transition:border-color .2s,background .2s}.inspection-record-card:hover{border-color:rgba(56,189,248,.3) !important;background:rgba(17,28,46,.82)}.inspection-record-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:9px;color:#7dd3fc;background:rgba(14,165,233,.1);font-size:20px}.inspection-record-heading{display:flex;align-items:center;gap:6px}.inspection-record-heading b{color:#c4b5fd;font-size:7px;text-transform:uppercase}.inspection-record-heading time{margin-left:auto;color:#5f7085;font-size:7px}.inspection-record-evidence{display:flex;flex-wrap:wrap;gap:5px;margin-top:3px}.inspection-record-evidence span{display:flex;align-items:center;gap:3px;color:#71839a;font-size:7px}.inspection-record-evidence span.ready{color:#86efac}.inspection-record-evidence i{font-size:12px}
.inspection-item > div { min-width: 0; display: grid; gap: 3px; }
.inspection-item strong, .inspection-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inspection-item strong { color: #e5edf7; font-size: 12px; }
.inspection-item small { color: #7f8fa5; font-size: 10px; }
.inspection-item .inspection-item-coordinates { display: flex; align-items: center; gap: 3px; color: #38bdf8; }
.inspection-item-coordinates .material-symbols-outlined { font-size: 13px; }
.inspection-demand-list-card { border-color: rgba(168, 85, 247, .18); }
.inspection-demand-item { display: grid; gap: 6px; padding: 12px 3px; border-bottom: 1px solid rgba(148, 163, 184, .12); }
.inspection-demand-item:last-child { border-bottom: 0; }
.inspection-operation-card { position:relative; gap:12px; margin:9px 0; padding:16px; border:1px solid rgba(148,163,184,.13) !important; border-radius:13px; background:linear-gradient(145deg,rgba(17,28,46,.88),rgba(12,22,37,.82)); box-shadow:0 8px 22px rgba(2,6,23,.13); transition:border-color .2s,transform .2s,box-shadow .2s; cursor:pointer; }
.inspection-operation-card:hover,.inspection-operation-card.is-selected { border-color:rgba(56,189,248,.38) !important; box-shadow:0 14px 30px rgba(2,6,23,.22); transform:translateY(-1px); }.inspection-operation-card.is-selected::before { position:absolute; top:13px; bottom:13px; left:-1px; width:3px; border-radius:0 4px 4px 0; content:''; background:#38bdf8; }
.inspection-operation-main { display:grid; grid-template-columns:minmax(0,1fr); }.inspection-operation-main > div { min-width:0; display:flex; align-items:flex-start; gap:10px; }.inspection-operation-main > div > div{min-width:0;display:grid;gap:4px}.inspection-operation-icon { width:40px;height:40px;display:grid;place-items:center;flex:0 0 auto;border-radius:10px;color:#7dd3fc;background:rgba(14,165,233,.1);font-size:22px}.inspection-operation-main strong{color:#7dd3fc;font-size:8px;text-transform:uppercase}.inspection-operation-main h3{margin:0;overflow-wrap:anywhere;color:#f1f5f9;font-size:13px;font-weight:700}
.inspection-operation-meta { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px }.inspection-operation-meta > span{min-width:0;display:grid;grid-template-columns:auto 1fr;gap:1px 6px;padding:9px;border:1px solid rgba(148,163,184,.09);border-radius:8px;background:rgba(15,23,42,.4)}.inspection-operation-meta i{grid-row:1/3;align-self:center;color:#64748b;font-size:16px}.inspection-operation-meta small{color:#64748b;font-size:7px;text-transform:uppercase}.inspection-operation-meta strong{overflow:hidden;color:#cbd5e1;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.inspection-operation-meta strong.danger{color:#fda4af}
.inspection-operation-evidence{display:flex;flex-wrap:wrap;gap:5px}.inspection-operation-evidence span{display:flex;align-items:center;gap:3px;padding:4px 7px;border-radius:999px;color:#7f91a8;background:rgba(100,116,139,.09);font-size:7px}.inspection-operation-evidence span.is-ready{color:#86efac;background:rgba(34,197,94,.08)}.inspection-operation-evidence i{font-size:12px}
.inspection-operation-progress{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px}.inspection-operation-progress > span{height:4px;overflow:hidden;border-radius:999px;background:#1e293b}.inspection-operation-progress i{height:100%;display:block;border-radius:inherit;background:linear-gradient(90deg,#0284c7,#22c55e)}.inspection-operation-progress b{color:#7dd3fc;font-size:8px}
.inspection-status.demand-overdue{color:#fecdd3;background:rgba(244,63,94,.17)}
.inspection-demand-item-heading { display: flex; align-items: center; gap: 7px; }
.inspection-demand-item-heading b { color: #c4b5fd; font-size: 9px; text-transform: uppercase; }
.inspection-os-number { color: #7dd3fc; font-size: 9px; font-weight: 800; letter-spacing: .03em; }
.inspection-demand-item-heading time { margin-left: auto; display: flex; align-items: center; gap: 3px; color: #94a3b8; font-size: 9px; white-space: nowrap; }
.inspection-demand-item-heading time .material-symbols-outlined { font-size: 14px; }
.inspection-overdue-badge { display: flex; align-items: center; gap: 2px; padding: 3px 6px; border-radius: 999px; color: #fcd34d; background: rgba(245, 158, 11, .12); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.inspection-overdue-badge .material-symbols-outlined { font-size: 12px; }
.inspection-route-distance { display: flex; align-items: center; gap: 2px; color: #7dd3fc; font-size: 8px; font-weight: 700; }
.inspection-route-distance .material-symbols-outlined { font-size: 12px; }
.inspection-demand-item.is-overdue { margin: 0 -9px; padding-right: 9px; padding-left: 9px; border-left: 2px solid #ef4444; background: linear-gradient(90deg, rgba(239, 68, 68, .065), transparent 45%); }
.inspection-demand-item > strong { color: #f1f5f9; font-size: 13px; }
.inspection-demand-item > small { color: #8292a8; font-size: 10px; }
.inspection-demand-item > p { margin: 2px 0; overflow-wrap: anywhere; color: #b8c5d6; font-size: 11px; line-height: 1.45; }
.inspection-demand-links { display: flex; flex-wrap: wrap; gap: 5px; }
.inspection-demand-links span { padding: 3px 6px; border-radius: 4px; color: #a5b4fc; background: rgba(99, 102, 241, .09); }
.inspection-demand-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.inspection-demand-actions button { min-height: 34px; display: flex; align-items: center; gap: 5px; padding: 0 11px; border: 1px solid rgba(168, 85, 247, .3); border-radius: 7px; color: #ede9fe; background: rgba(126, 34, 206, .2); font-size: 9px; font-weight: 700; cursor: pointer; }
.inspection-demand-actions button:hover { background: rgba(126, 34, 206, .38); }
.inspection-demand-actions button.secondary { color: #94a3b8; border-color: rgba(148, 163, 184, .17); background: transparent; }
.inspection-demand-actions button.danger { color: #fda4af; border-color: rgba(244, 63, 94, .2); }
.inspection-demand-actions button.field-action { color: #bae6fd; border-color: rgba(56, 189, 248, .28); background: rgba(14, 165, 233, .1); }
.inspection-demand-actions button.environmental-action { color: #fde68a; border-color: rgba(245, 158, 11, .3); background: rgba(245, 158, 11, .1); }
.inspection-demand-actions button .material-symbols-outlined { font-size: 16px; }
.inspection-status.demand-assigned { color: #bfdbfe; background: rgba(59, 130, 246, .18); }
.inspection-status.demand-accepted { color: #bae6fd; background: rgba(14, 165, 233, .16); }
.inspection-status.demand-in_progress { color: #fde68a; background: rgba(245, 158, 11, .16); }
.inspection-status.demand-pending_review { color: #c4b5fd; background: rgba(139, 92, 246, .18); }
.inspection-status.demand-returned { color: #fecdd3; background: rgba(244, 63, 94, .14); }
.inspection-status.demand-reopened { color: #fdba74; background: rgba(249, 115, 22, .15); }
.inspection-status.demand-completed { color: #86efac; background: rgba(34, 197, 94, .16); }
.inspection-status.demand-cancelled { color: #cbd5e1; background: rgba(100, 116, 139, .18); }
.inspection-status.demand-forwarded { color: #a5b4fc; background: rgba(99, 102, 241, .16); }
.inspection-status.demand-draft { color:#cbd5e1; background:rgba(100,116,139,.18); }
.inspection-status.demand-submitted { color:#c4b5fd; background:rgba(139,92,246,.18); }

.inspection-review-card { margin-top: 10px; padding: 15px; border-color: rgba(139, 92, 246, .22); }
.inspection-review-count { min-width: 26px; height: 26px; display: grid; place-items: center; border-radius: 999px; color: #ddd6fe; background: rgba(139, 92, 246, .2); font-size: 10px; font-weight: 800; }
.inspection-review-list { display: grid; }
.inspection-review-group { display:grid; margin-top:8px; padding:0 10px; border:1px solid rgba(148,163,184,.12); border-radius:9px; background:rgba(15,23,42,.42); }
.inspection-review-group > header { min-height:38px; display:flex; align-items:center; gap:7px; border-bottom:1px solid rgba(148,163,184,.1); }
.inspection-review-group > header .material-symbols-outlined { color:#a78bfa; font-size:17px; }
.inspection-review-group > header strong { flex:1; color:#e2e8f0; font-size:9px; }
.inspection-review-group > header b { min-width:21px; height:21px; display:grid; place-items:center; border-radius:999px; color:#ddd6fe; background:rgba(139,92,246,.18); font-size:8px; }
.inspection-review-group-post > header .material-symbols-outlined { color:#38bdf8; }.inspection-review-group-post > header b { color:#bae6fd; background:rgba(14,165,233,.15); }
.inspection-review-group-infraction > header .material-symbols-outlined { color:#fb7185; }.inspection-review-group-infraction > header b { color:#fecdd3; background:rgba(244,63,94,.15); }
.inspection-review-group-appeal > header .material-symbols-outlined { color:#fbbf24; }.inspection-review-group-appeal > header b { color:#fde68a; background:rgba(245,158,11,.15); }
.inspection-review-group-return-request > header .material-symbols-outlined { color:#34d399; }.inspection-review-group-return-request > header b { color:#a7f3d0; background:rgba(16,185,129,.15); }
.inspection-review-group-empty { padding:12px 2px; color:#64748b; font-size:8px; }
.environmental-return-request-dialog { width:min(680px,calc(100vw - 24px)); }
.environmental-return-request-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:16px 18px; }
.environmental-return-request-grid label { min-width:0; display:grid; gap:5px; }
.environmental-return-request-grid label > span { color:#94a3b8; font-size:9px; font-weight:700; }
.environmental-return-request-grid input,.environmental-return-request-grid select,.environmental-return-request-grid textarea { width:100%; padding:10px; border:1px solid rgba(148,163,184,.2); border-radius:8px; color:#e2e8f0; background:#0f172a; font:inherit; }
.environmental-return-request-grid .environmental-wide { grid-column:1 / -1; }
.inspection-review-list article { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 2px; border-bottom: 1px solid rgba(148, 163, 184, .1); }
.inspection-review-list article > div:first-child { min-width: 0; display: grid; gap: 3px; }
.inspection-review-list article > div:first-child span { color: #a78bfa; font-size: 8px; font-weight: 800; }
.inspection-review-list article strong { overflow: hidden; color: #e2e8f0; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.inspection-review-list article small { color: #64748b; font-size: 8px; }
.inspection-review-actions { display: flex; gap: 5px; }
.inspection-review-actions button { min-height: 32px; padding: 0 9px; border: 1px solid rgba(148, 163, 184, .16); border-radius: 6px; color: #cbd5e1; background: #111c2e; font-size: 8px; cursor: pointer; }
.inspection-review-actions button.approve { display: flex; align-items: center; color: #bbf7d0; border-color: rgba(34, 197, 94, .25); background: rgba(34, 197, 94, .1); }
.inspection-review-actions .material-symbols-outlined { font-size: 15px; }

.inspection-history-dialog { width: min(680px, calc(100vw - 28px)); }
.inspection-history-dialog form { max-height: min(84vh, 760px); overflow-y: auto; }
.inspection-history-body { position: relative; display: grid; padding-left: 8px; }
.inspection-history-body::before { position: absolute; top: 18px; bottom: 18px; left: 21px; width: 1px; content: ''; background: rgba(56, 189, 248, .2); }
.inspection-history-event { position: relative; z-index: 1; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 10px 0; }
.inspection-history-event > .material-symbols-outlined { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(56, 189, 248, .22); border-radius: 50%; color: #38bdf8; background: #0f172a; font-size: 15px; }
.inspection-history-event > div { display: grid; gap: 3px; padding-top: 3px; }
.inspection-history-event strong { color: #e2e8f0; font-size: 10px; }
.inspection-history-event p { margin: 0; color: #9aa9bc; font-size: 9px; line-height: 1.4; }
.inspection-history-event small { color: #64748b; font-size: 8px; }

/* Central de Notificações · identidade e usabilidade PIT */
.pit-notifications-view {
  --notification-surface: var(--pit-surface, #fff);
  --notification-surface-soft: var(--pit-surface-soft, #f7f9fa);
  --notification-border: var(--pit-border, #d7e0e3);
  --notification-ink: var(--pit-navy, #001b2a);
  --notification-text: var(--pit-text, #294752);
  --notification-muted: var(--pit-muted, #607d8b);
  display: none;
  color: var(--notification-text);
  font-size: 16px;
  line-height: 1.5;
}
.pit-notifications-view.active { display: block; }
.pit-notifications { display: grid; gap: 14px; }
.pit-notifications-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: var(--pit-radius-lg, 16px);
  color: #fff;
  background:
    radial-gradient(circle at 96% 5%, rgba(139, 195, 74, .24), transparent 34%),
    linear-gradient(135deg, var(--pit-navy, #001b2a), var(--pit-petrol, #006d7a));
  box-shadow: var(--pit-shadow-soft, 0 8px 24px rgba(0, 27, 42, .08));
}
.pit-notifications-identity {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}
.pit-notifications-identity > .material-symbols-outlined {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 13px;
  color: #d8ef8e;
  background: rgba(255, 255, 255, .1);
  font-size: 27px;
}
.pit-notifications-identity > div { min-width: 0; display: grid; gap: 3px; }
.pit-notifications-identity small {
  color: #d8ef8e;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pit-notifications-identity h2 {
  margin: 0;
  color: #fff;
  font-size: 23px;
  line-height: 1.25;
}
.pit-notifications-identity p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, .84);
  font-size: 14px;
  line-height: 1.5;
}
.pit-notifications-hero > button {
  position: relative;
  z-index: 1;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 9px;
  color: #fff;
  background: rgba(255, 255, 255, .09);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.pit-notifications-hero > button:hover { background: rgba(255, 255, 255, .17); }
.pit-notifications-hero > button:disabled { cursor: wait; opacity: .72; }
.pit-notifications-hero > button.is-loading .material-symbols-outlined { animation: spin 1s linear infinite; }

.pit-notification-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.pit-notification-summary > button {
  min-width: 0;
  min-height: 96px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 10px 6px;
  border: 1px solid var(--notification-border);
  border-radius: var(--pit-radius-md, 10px);
  color: var(--notification-text);
  background: var(--notification-surface);
  box-shadow: var(--pit-shadow-sm, 0 2px 8px rgba(0, 27, 42, .07));
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.pit-notification-summary > button:hover {
  border-color: var(--pit-petrol-300, #80b6bc);
  background: var(--pit-petrol-050, #eff8f8);
}
.pit-notification-summary > button.active {
  color: #fff;
  border-color: var(--pit-petrol, #006d7a);
  background: linear-gradient(145deg, var(--pit-petrol-700, #005964), var(--pit-petrol, #006d7a));
  box-shadow: 0 8px 18px rgba(0, 109, 122, .18);
}
.pit-notification-summary > button > .material-symbols-outlined {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--pit-petrol, #006d7a);
  background: var(--pit-petrol-100, #dff1f2);
  font-size: 21px;
}
.pit-notification-summary > button[data-notification-filter="unread"] > .material-symbols-outlined {
  color: var(--pit-green, #2e7d32);
  background: var(--pit-green-100, #e7f3e5);
}
.pit-notification-summary > button[data-notification-filter="deadlines"] > .material-symbols-outlined {
  color: var(--pit-warning, #a35f00);
  background: var(--pit-signal-yellow-bg, #fff5dc);
}
.pit-notification-summary > button.active > .material-symbols-outlined {
  color: #d8ef8e;
  background: rgba(255, 255, 255, .12);
}
.pit-notification-summary > button > span:last-child { min-width: 0; display: grid; gap: 1px; }
.pit-notification-summary strong { color: inherit; font-size: 22px; line-height: 1.05; }
.pit-notification-summary small { color: inherit; font-size: 14px; font-weight: 700; line-height: 1.3; }

.pit-notification-center.module-card {
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 1px solid var(--notification-border);
  border-radius: var(--pit-radius-lg, 16px);
  color: var(--notification-text);
  background: var(--notification-surface);
  box-shadow: var(--pit-shadow-sm, 0 2px 8px rgba(0, 27, 42, .07));
}
.pit-notification-center-header {
  display: grid;
  gap: 13px;
  padding: 17px;
  border-bottom: 1px solid var(--notification-border);
  background: linear-gradient(180deg, var(--notification-surface), var(--notification-surface-soft));
}
.pit-notification-center-header > div { display: grid; gap: 3px; }
.pit-notification-center-header > div > small {
  color: var(--pit-petrol, #006d7a);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.pit-notification-center-header h3 {
  margin: 0;
  color: var(--notification-ink);
  font-size: 19px;
  line-height: 1.3;
}
.pit-notification-center-header p {
  margin: 0;
  color: var(--notification-muted);
  font-size: 14px;
  line-height: 1.45;
}
.pit-notification-center-header > button {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid var(--pit-petrol-300, #80b6bc);
  border-radius: 9px;
  color: var(--pit-petrol-700, #005964);
  background: var(--pit-petrol-050, #eff8f8);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}
.pit-notification-center-header > button:hover:not(:disabled) { color: #fff; border-color: var(--pit-petrol, #006d7a); background: var(--pit-petrol, #006d7a); }
.pit-notification-center-header > button:disabled { color: var(--notification-muted); border-color: var(--notification-border); background: var(--notification-surface-soft); cursor: default; opacity: .76; }

.pit-notification-search {
  position: relative;
  display: block;
  margin: 16px 16px 10px;
}
.pit-notification-search > .material-symbols-outlined {
  position: absolute;
  z-index: 1;
  top: 15px;
  left: 14px;
  color: var(--notification-muted);
  font-size: 22px;
  pointer-events: none;
}
.pit-notification-search input {
  width: 100%;
  min-height: 52px;
  padding: 10px 13px 10px 45px;
  border: 1px solid var(--notification-border);
  border-radius: 10px;
  color: var(--notification-ink);
  background: var(--notification-surface-soft);
  font: inherit;
  font-size: 16px;
  outline: 0;
}
.pit-notification-search input::placeholder { color: var(--notification-muted); opacity: 1; }
.pit-notification-search input:focus {
  border-color: var(--pit-petrol, #006d7a);
  background: var(--notification-surface);
  box-shadow: var(--pit-focus, 0 0 0 3px rgba(0, 109, 122, .18));
}
.pit-notification-results {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 16px 13px;
  border-bottom: 1px solid var(--notification-border);
}
.pit-notification-results > div { min-width: 0; display: grid; gap: 2px; }
.pit-notification-results strong { color: var(--notification-ink); font-size: 15px; line-height: 1.35; }
.pit-notification-results small { color: var(--notification-muted); font-size: 14px; line-height: 1.35; }
.pit-notification-results > button {
  min-height: 48px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid var(--notification-border);
  border-radius: 8px;
  color: var(--pit-petrol-700, #005964);
  background: var(--notification-surface);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}
.pit-notification-results > button[hidden] { display: none; }

.pit-notification-center .notification-list { display: grid; gap: 0; margin: 0; }
.pit-notification-group { display: grid; }
.pit-notification-group > h4 {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 10px 16px;
  color: var(--notification-text);
  background: var(--notification-surface-soft);
  font-size: 16px;
}
.pit-notification-group > h4::after { height: 1px; flex: 1; background: var(--notification-border); content: ""; }
.pit-notification-group > h4 > b {
  order: 3;
  min-width: 26px;
  min-height: 26px;
  display: grid;
  place-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--pit-petrol-700, #005964);
  background: var(--pit-petrol-100, #dff1f2);
  font-size: 14px;
}
.pit-notification-group > div { display: grid; gap: 10px; padding: 10px; }
.pit-notification-card {
  --notification-accent: var(--pit-petrol, #006d7a);
  --notification-accent-soft: var(--pit-petrol-050, #eff8f8);
  overflow: hidden;
  border: 1px solid var(--notification-border);
  border-left: 4px solid transparent;
  border-radius: 11px;
  background: var(--notification-surface);
  box-shadow: 0 3px 10px rgba(0, 27, 42, .055);
}
.pit-notification-card.tone-warning { --notification-accent: var(--pit-warning, #a35f00); --notification-accent-soft: var(--pit-signal-yellow-bg, #fff5dc); }
.pit-notification-card.tone-green { --notification-accent: var(--pit-green, #2e7d32); --notification-accent-soft: var(--pit-green-100, #e7f3e5); }
.pit-notification-card.tone-neutral { --notification-accent: var(--pit-slate, #607d8b); --notification-accent-soft: #edf2f3; }
.pit-notification-card.unread {
  border-left-color: var(--notification-accent);
  background: linear-gradient(100deg, var(--notification-accent-soft), var(--notification-surface) 72%);
}
.pit-notification-card > button {
  width: 100%;
  min-height: 128px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 15px;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pit-notification-card > button:hover { background: color-mix(in srgb, var(--notification-accent) 5%, transparent); }
.pit-notification-card > button:disabled { cursor: wait; opacity: .68; }
.pit-notification-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--notification-accent);
  background: var(--notification-accent-soft);
  font-size: 23px;
}
.pit-notification-content { min-width: 0; display: grid; gap: 7px; }
.pit-notification-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pit-notification-meta > span {
  color: var(--notification-accent);
  font-size: 14px;
  font-weight: 800;
}
.pit-notification-meta > b {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--notification-accent);
  background: var(--notification-accent-soft);
  font-size: 14px;
  line-height: 1.25;
}
.pit-notification-meta > b.read { color: var(--notification-muted); background: var(--notification-surface-soft); }
.pit-notification-content > strong {
  color: var(--notification-ink);
  font-size: 17px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.pit-notification-message {
  color: var(--notification-text);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.pit-notification-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 3px;
  border-top: 1px solid color-mix(in srgb, var(--notification-border) 72%, transparent);
}
.pit-notification-footer time,
.pit-notification-action {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--notification-muted);
  font-size: 14px;
  line-height: 1.3;
}
.pit-notification-footer .material-symbols-outlined { font-size: 17px; }
.pit-notification-action { color: var(--notification-accent); font-weight: 800; }

.pit-notification-state {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 26px 18px;
  color: var(--notification-muted);
  text-align: center;
}
.pit-notification-state > .material-symbols-outlined {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--pit-petrol, #006d7a);
  background: var(--pit-petrol-100, #dff1f2);
  font-size: 30px;
}
.pit-notification-state.loading > .material-symbols-outlined { animation: spin 1s linear infinite; }
.pit-notification-state.success > .material-symbols-outlined { color: var(--pit-green, #2e7d32); background: var(--pit-green-100, #e7f3e5); }
.pit-notification-state.error > .material-symbols-outlined { color: var(--pit-danger, #b4233a); background: var(--pit-signal-red-bg, #fcecef); }
.pit-notification-state > strong { color: var(--notification-ink); font-size: 18px; line-height: 1.35; }
.pit-notification-state > small { max-width: 300px; color: var(--notification-muted); font-size: 14px; line-height: 1.5; }
.pit-notification-state > button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  padding: 0 15px;
  border: 1px solid var(--pit-petrol, #006d7a);
  border-radius: 8px;
  color: #fff;
  background: var(--pit-petrol, #006d7a);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}

.pit-notifications-view :is(button, input):focus-visible {
  outline: 3px solid var(--pit-petrol, #006d7a);
  outline-offset: 3px;
  box-shadow: var(--pit-focus, 0 0 0 3px rgba(0, 109, 122, .18));
}
.app.notifications-workspace .workflow-notification-bell { display: none; }

body[data-theme="dark"] .pit-notifications-view {
  --notification-surface: #102b36;
  --notification-surface-soft: #163743;
  --notification-border: #35505a;
  --notification-ink: #f1f7f8;
  --notification-text: #d1e1e5;
  --notification-muted: #9cb3ba;
}
body[data-theme="dark"] .pit-notification-summary > button { background: var(--notification-surface); }
body[data-theme="dark"] .pit-notification-summary > button:hover { background: var(--notification-surface-soft); }
body[data-theme="dark"] .pit-notification-summary > button.active { background: linear-gradient(145deg, #005964, #007b88); }
body[data-theme="dark"] .pit-notification-card.tone-neutral { --notification-accent-soft: #253f49; }
body[data-theme="dark"] .pit-notification-card.unread { background: color-mix(in srgb, var(--notification-accent) 10%, var(--notification-surface)); }
body[data-theme="dark"] .pit-notification-search input { color: var(--notification-ink); }

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

@media (max-width: 420px) {
  .pit-notifications-hero { padding: 16px; }
  .pit-notification-summary { gap: 6px; }
  .pit-notification-summary > button { min-height: 92px; padding-inline: 3px; }
  .pit-notification-summary > button > .material-symbols-outlined { width: 34px; height: 34px; }
  .pit-notification-summary strong { font-size: 20px; }
  .pit-notification-center-header { padding: 15px; }
  .pit-notification-search { margin-inline: 12px; }
  .pit-notification-results { align-items: flex-start; flex-direction: column; padding-inline: 12px; }
  .pit-notification-results > button { width: 100%; justify-content: center; }
  .pit-notification-group > h4 { padding-inline: 12px; }
  .pit-notification-group > div { padding: 8px; }
  .pit-notification-card > button { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 13px 11px; }
  .pit-notification-icon { width: 40px; height: 40px; }
  .pit-notification-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
  .pit-notification-footer { align-items: flex-start; flex-direction: column; }
}
.inspection-item-actions { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.inspection-item-actions button { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 7px; color: #94a3b8; background: transparent; cursor: pointer; }
.inspection-item-actions button:hover { color: #e2e8f0; background: rgba(148, 163, 184, .12); }
.inspection-item-actions button[data-inspection-delete]:hover { color: #fb7185; background: rgba(244, 63, 94, .12); }
.inspection-item-actions .material-symbols-outlined { font-size: 18px; }
.inspection-view-button { justify-self: end; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(56, 189, 248, .2); border-radius: 7px; color: #38bdf8; background: rgba(14, 165, 233, .08); cursor: pointer; }
.inspection-view-button:hover { border-color: #38bdf8; color: #e0f2fe; background: rgba(14, 165, 233, .18); }
.inspection-view-button .material-symbols-outlined { font-size: 19px; }
.inspection-status { padding: 5px 7px; border-radius: 999px; font-size: 9px; font-weight: 700; text-align: center; text-transform: uppercase; }
.inspection-status.draft { color: #fbbf24; background: rgba(245, 158, 11, .14); }
.inspection-status.submitted { color: #4ade80; background: rgba(34, 197, 94, .14); }
.inspection-done { justify-self: center; color: #22c55e; }
.inspection-empty { display: grid; justify-items: center; gap: 5px; padding: 34px 12px; color: #8292a8; text-align: center; }
.inspection-empty .material-symbols-outlined { color: #38bdf8; font-size: 34px; }
.inspection-empty strong { color: #cbd5e1; font-size: 13px; }
.inspection-empty small { font-size: 11px; }
.inspection-detail-dialog { width: min(820px, calc(100vw - 28px)); }
.inspection-detail-dialog form { max-height: min(86vh, 820px); overflow-y: auto; }
.inspection-detail-body { display: grid; gap: 16px; }
.inspection-detail-loading { min-height: 180px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #94a3b8; }
.inspection-detail-loading .material-symbols-outlined { color: #38bdf8; animation: inspection-spin 1s linear infinite; }
@keyframes inspection-spin { to { transform: rotate(360deg); } }
.inspection-detail-summary { display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid rgba(34, 197, 94, .18); border-radius: 8px; background: rgba(34, 197, 94, .06); }
.inspection-detail-summary > div { min-width: 0; display: grid; gap: 2px; }
.inspection-detail-summary small, .inspection-detail-location small { color: #8292a8; font-size: 10px; }
.inspection-detail-summary strong { overflow-wrap: anywhere; color: #f1f5f9; font-size: 13px; }
.inspection-detail-meta, .inspection-detail-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.inspection-detail-meta > div, .inspection-detail-answers > div { min-width: 0; padding: 11px; border: 1px solid rgba(148, 163, 184, .14); border-radius: 7px; background: rgba(15, 23, 42, .55); }
.inspection-detail-meta dt, .inspection-detail-answers dt { margin-bottom: 4px; color: #8292a8; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.inspection-detail-meta dd, .inspection-detail-answers dd { margin: 0; overflow-wrap: anywhere; color: #dbe6f3; font-size: 12px; white-space: pre-wrap; }
.inspection-detail-section { display: grid; gap: 9px; }
.inspection-detail-section h3 { margin: 0; color: #cbd5e1; font-size: 11px; text-transform: uppercase; }
.inspection-detail-location { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid rgba(56, 189, 248, .16); border-radius: 7px; background: rgba(14, 165, 233, .05); }
.inspection-detail-location > .material-symbols-outlined { color: #38bdf8; }
.inspection-detail-location > div { display: grid; gap: 2px; }
.inspection-detail-location strong { color: #dbeafe; font-size: 12px; }
.inspection-detail-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.inspection-detail-photos a { aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid rgba(148, 163, 184, .16); border-radius: 7px; background: #080f1c; }
.inspection-detail-photos img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .2s ease; }
.inspection-detail-photos a:hover img { transform: scale(1.04); }
.inspection-detail-photo-message { grid-column: 1 / -1; padding: 18px; color: #8292a8; font-size: 11px; text-align: center; }
.inspection-detail-photo-message.error { color: #fb7185; }
.inspection-detail-documents { display: grid; gap: 6px; }
.inspection-detail-documents a { display: flex; align-items: center; gap: 8px; padding: 9px; border: 1px solid rgba(148, 163, 184, .14); border-radius: 7px; color: inherit; background: rgba(15, 23, 42, .45); text-decoration: none; }
.inspection-detail-documents a > .material-symbols-outlined { color: #a78bfa; }
.inspection-detail-documents a > span:last-child { display: grid; gap: 2px; }
.inspection-detail-documents strong { color: #dbe6f3; font-size: 10px; }
.inspection-detail-documents small { color: #64748b; font-size: 8px; }
.inspection-detail-providence { padding:12px;border:1px solid rgba(167,139,250,.18);border-radius:8px;background:rgba(139,92,246,.05) }.inspection-detail-providence p{margin:0;color:#aebdd0;font-size:10px;line-height:1.5}.inspection-detail-providence button{justify-self:start;display:flex;align-items:center;gap:5px;min-height:32px;padding:0 9px;border:1px solid rgba(167,139,250,.25);border-radius:6px;color:#ddd6fe;background:rgba(139,92,246,.1);font-size:8px;cursor:pointer}.inspection-detail-providence .material-symbols-outlined{font-size:14px}
.inspection-detail-notification { padding:12px;border:1px solid rgba(52,211,153,.2);border-radius:8px;background:rgba(16,185,129,.05) }.inspection-detail-notification > div{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px}.inspection-detail-notification .material-symbols-outlined{color:#34d399}.inspection-detail-notification p{display:grid;gap:2px;margin:0}.inspection-detail-notification p strong{color:#d1fae5;font-size:10px}.inspection-detail-notification p small{color:#71839a;font-size:8px}.inspection-detail-notification em{color:#6ee7b7;font-size:7px;font-style:normal;text-transform:uppercase}
.inspection-report-signature { display: grid; justify-items: center; gap: 6px; margin-top: 30px; padding-top: 8px; border-top: 1px solid rgba(148, 163, 184, .3); color: #64748b; font-size: 9px; }
.inspection-report-signature strong { color: #cbd5e1; font-size: 11px; }
.environmental-post-dialog { width: min(940px, calc(100vw - 28px)); }
.environmental-post-dialog form { max-height: min(90vh, 900px); overflow-y: auto; }
.environmental-post-rule { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid rgba(245, 158, 11, .22); border-radius: 8px; background: rgba(245, 158, 11, .07); }
.environmental-post-rule > .material-symbols-outlined { color: #fbbf24; }
.environmental-post-rule > div { display: grid; gap: 2px; }
.environmental-post-rule strong { color: #fef3c7; font-size: 12px; }
.environmental-post-rule small { color: #94a3b8; font-size: 9px; }
.environmental-post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.environmental-post-grid label, .environmental-notes { display: grid; gap: 5px; }
.environmental-post-grid label > span, .environmental-notes > span { color: #a7b6c9; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.environmental-post-grid input, .environmental-post-grid select, .environmental-notes textarea { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid rgba(148, 163, 184, .2); border-radius: 7px; color: #e5edf7; background: #101a2b; outline: none; }
.environmental-post-grid input:focus, .environmental-post-grid select:focus, .environmental-notes textarea:focus { border-color: #f59e0b; box-shadow: 0 0 0 2px rgba(245, 158, 11, .1); }
.environmental-post-grid .environmental-wide { grid-column: 1 / -1; }
.environmental-infractions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 16px 0 0; padding: 13px; border: 1px solid rgba(148, 163, 184, .15); border-radius: 8px; }
.environmental-infractions legend { padding: 0 6px; color: #94a3b8; font-size: 9px; text-transform: uppercase; }
.environmental-infractions label { display: flex; align-items: flex-start; gap: 7px; padding: 8px; border-radius: 6px; background: rgba(15, 23, 42, .5); cursor: pointer; }
.environmental-infractions input { margin-top: 2px; accent-color: #f59e0b; }
.environmental-infractions label > span { display: grid; gap: 2px; color: #9aa9bc; font-size: 9px; line-height: 1.35; }
.environmental-infractions strong { color: #e5edf7; font-size: 10px; }
.environmental-infractions b { color: #fbbf24; font-size: 8px; font-weight: 700; }
.environmental-post-options { align-items: end; }
.environmental-check { min-height: 58px; display: flex !important; align-items: center; grid-template-columns: auto 1fr; gap: 9px !important; padding: 10px; border: 1px solid rgba(34, 197, 94, .18); border-radius: 7px; background: rgba(34, 197, 94, .05); }
.environmental-check input { width: auto; accent-color: #22c55e; }
.environmental-check > span { display: grid; gap: 2px; color: #d1fae5 !important; text-transform: none !important; }
.environmental-check small { color: #8292a8; font-weight: 400; }
.environmental-calculation { margin-top: 14px; padding: 14px; border: 1px solid rgba(56, 189, 248, .2); border-radius: 8px; background: linear-gradient(135deg, rgba(14, 165, 233, .09), rgba(245, 158, 11, .06)); }
.environmental-calculation > div { display: grid; gap: 3px; }
.environmental-calculation span { color: #7dd3fc; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.environmental-calculation strong { color: #f8fafc; font-size: 20px; }
.environmental-calculation small { color: #94a3b8; font-size: 10px; }
.environmental-calculation dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 12px 0 0; }
.environmental-calculation dl > div { padding-top: 7px; border-top: 1px solid rgba(148, 163, 184, .13); }
.environmental-calculation dt { color: #64748b; font-size: 8px; text-transform: uppercase; }
.environmental-calculation dd { margin: 3px 0 0; color: #cbd5e1; font-size: 10px; }
.environmental-calculation > header { display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:2px solid #9eb4c3; }
.environmental-calculation > header span { color:#1e4f70;font-size:14px;font-weight:900;text-transform:none; }
.environmental-calculation > header strong { color:#173147;font-size:14px;line-height:1.4;text-align:right; }
.environmental-calculation-results { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px; }
.environmental-calculation-results article { display:grid;align-content:start;gap:5px;min-height:112px;padding:14px;border:2px solid #8daabc;border-radius:9px;background:#fff; }
.environmental-calculation-results article span { color:#38576d;font-size:14px;font-weight:900;text-transform:none; }
.environmental-calculation-results article strong { color:#0f3f5e;font-size:21px;line-height:1.25; }
.environmental-calculation-results article small { color:#465f73;font-size:14px;line-height:1.35; }
.environmental-calculation-memory { display:grid;gap:6px;margin:12px 0 0;padding:12px 12px 12px 30px;border:1px solid #a9bdca;border-radius:8px;background:#f7fafc; }
.environmental-calculation-memory li { color:#263f53;font-size:14px;line-height:1.45; }
.environmental-calculation-memory strong { color:#173147;font-size:14px; }
.environmental-calculation aside { margin-top:12px;padding:11px 13px;color:#512f00;border:2px solid #9a5a00;border-radius:8px;background:#fff1b8;font-size:14px;line-height:1.45; }
.environmental-calculation aside strong { color:#512f00;font-size:14px; }
.environmental-notes { margin-top: 14px; }
.environmental-notes textarea { min-height: 84px; resize: vertical; }
.environmental-print-document { margin-top: 16px; padding: 24px 28px; color: #172033; border-radius: 8px; background: #fff; font-family: Arial, sans-serif; }
.environmental-print-document:empty { display: none; }
.environmental-print-document > header { display: grid; justify-items: center; gap: 5px; padding: 0 0 14px; border-bottom: 2px solid #172033; color: #172033; text-align: center; }
.environmental-print-document > header small { color: #475569; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.environmental-print-document > header h1 { margin: 0; color: #111827; font-size: 20px; text-transform: uppercase; }
.environmental-print-document > header strong { color: #111827; font-size: 11px; }
.environmental-print-document > section { margin-top: 16px; }
.environmental-print-document h2 { margin: 0 0 7px; color: #334155; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.environmental-print-document p, .environmental-print-document li, .environmental-print-document dd { color: #1f2937; font-size: 10px; line-height: 1.5; }
.environmental-print-document p { margin: 6px 0; text-align: justify; }
.environmental-print-document dl { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 0; }
.environmental-print-document dl > div { padding: 8px; border: 1px solid #dbe2ea; }
.environmental-print-document dt { color: #64748b; font-size: 8px; font-weight: 700; text-transform: uppercase; }
.environmental-print-document dd { margin: 3px 0 0; }
.environmental-print-document ul { margin: 7px 0; padding-left: 18px; }
.environmental-print-document table { width: 100%; border-collapse: collapse; font-size: 9px; }
.environmental-print-document th, .environmental-print-document td { padding: 7px; border: 1px solid #cbd5e1; color: #1f2937; text-align: left; }
.environmental-print-document th { color: #475569; background: #f1f5f9; }
.environmental-document-notice { padding: 9px; border: 1px solid #f59e0b; background: #fffbeb; font-size: 9px; line-height: 1.45; }
.environmental-print-document > footer { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; margin-top: 40px; padding: 0; color: #111827; background: transparent; }
.environmental-print-document > footer > p { grid-column: 1 / -1; text-align: left; }
.environmental-print-document > footer > div { display: grid; gap: 4px; padding-top: 7px; border-top: 1px solid #334155; text-align: center; }
.environmental-print-document > footer span { font-size: 10px; }
.environmental-print-document > footer small { color: #64748b; font-size: 8px; }
.environmental-print-document > header > div { width:100%;display:flex;align-items:center;justify-content:center;gap:20px;padding-top:8px;border-top:1px solid #334155; }
.environmental-print-document > header > div b { margin-left:auto;padding:6px 10px;border:1px solid #334155;font-size:12px; }
.environmental-model-block { border:1px solid #334155; }
.environmental-model-block > h2 { margin:0;padding:6px 8px;color:#111827;background:#e5e7eb;border-bottom:1px solid #334155;text-align:center; }
.environmental-model-block dl { gap:0; }
.environmental-model-block dl > div { border:0;border-right:1px solid #94a3b8;border-bottom:1px solid #94a3b8; }
.environmental-law-heading,.environmental-model-command { margin-top:10px!important;padding:8px;border:1px solid #334155;color:#111827;font-size:9px;font-weight:800;line-height:1.35;text-align:justify; }
.environmental-ufml { padding:6px 8px;border-bottom:1px solid #334155;font-size:9px; }
.environmental-infraction-table th { color:#111827;background:#e5e7eb;text-align:center; }
.environmental-infraction-table td { padding:5px;font-size:8px;vertical-align:top; }
.environmental-infraction-table .environmental-mark { width:22px;text-align:center;font-weight:900; }
.environmental-model-facts { display:grid;gap:0; }
.environmental-model-facts p { margin:0;padding:5px 8px;border-top:1px solid #94a3b8; }
.environmental-model-evidence { display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,.6fr);gap:10px; }
.environmental-model-evidence > div { min-height:190px;padding:10px;border:1px solid #334155; }
.environmental-print-photos { display:grid;grid-template-columns:repeat(2,1fr);gap:5px; }
.environmental-print-photos img { width:100%;height:165px;object-fit:cover;border:1px solid #64748b; }
.environmental-print-photos span { grid-column:1/-1;display:grid;place-items:center;min-height:155px;color:#475569;font-size:9px; }
.environmental-document-notice { padding:8px;border:2px solid #111827;color:#111827!important;background:#f3f4f6;font-size:9px;line-height:1.35;text-align:justify; }
.environmental-print-slogan,.environmental-print-address { grid-column:1/-1!important;margin:0!important;text-align:center!important;font-weight:800; }
.environmental-print-address { padding-top:6px;border-top:1px solid #64748b;font-size:8px!important;font-weight:500; }
.environmental-print-document { overflow:hidden;border:1px solid #c7d4df;box-shadow:0 10px 30px rgba(15,41,60,.12); }
.environmental-print-document > header { padding:14px;color:#fff;background:linear-gradient(135deg,#123e5b,#176b87);border:0;border-radius:7px 7px 0 0; }
.environmental-print-document > header :is(strong,h1) { color:#fff!important; }
.environmental-print-document > header > div { border-top-color:rgba(255,255,255,.55); }
.environmental-print-document > header > div b { color:#fff!important;border-color:#fff; }
.environmental-print-page { min-height:720px;margin:28px -28px -24px!important;padding:28px;color:#172033;background:#fff; }
.environmental-print-page > header { display:grid;justify-items:center;gap:6px;padding:18px;color:#fff;background:linear-gradient(135deg,#123e5b,#176b87);border-radius:8px;text-align:center; }
.environmental-print-page > header :is(h1,span,small) { margin:0;color:#fff!important; }
.environmental-print-page > header h1 { font-size:24px; }
.environmental-print-page > header span { font-size:14px;font-weight:900;text-transform:uppercase; }
.environmental-print-page > header small { font-size:12px!important; }
.environmental-print-verso { display:grid;align-content:start;gap:16px; }
.environmental-verso-intro { padding:12px;border-left:5px solid #176b87;background:#eef7fa;font-weight:700; }
.environmental-print-verso > section { padding:16px;border:1px solid #b6c8d3;border-radius:8px; }
.environmental-print-verso h2 { color:#123e5b;font-size:17px;text-transform:none; }
.environmental-print-verso ol { display:grid;gap:9px;margin:12px 0 0;padding-left:24px; }
.environmental-print-verso li { color:#263f53;font-size:14px;line-height:1.45;text-align:justify; }
.environmental-print-verso aside { padding:14px;color:#512f00;border:2px solid #9a5a00;border-radius:8px;background:#fff1b8;font-size:14px;font-weight:900;line-height:1.45;text-align:center; }
.environmental-verso-contact { background:#f7fafc; }
.environmental-verso-contact p { margin:5px 0; }
.environmental-print-verso > footer { padding:16px;color:#fff;background:#123e5b;border-radius:8px;font-size:14px;font-weight:900;line-height:1.45;text-align:center; }
.environmental-print-label-page { display:grid;align-content:start;gap:24px; }
.environmental-mail-sender,.environmental-mail-recipient { display:grid;gap:7px;padding:20px;border:2px solid #355b70;border-radius:10px;background:#fff; }
.environmental-mail-sender h2,.environmental-mail-recipient h2 { margin:0;color:#176b87;font-size:14px;text-transform:uppercase; }
.environmental-mail-sender strong,.environmental-mail-recipient strong { color:#102f43;font-size:17px; }
.environmental-mail-sender span,.environmental-mail-recipient span,.environmental-mail-sender address,.environmental-mail-recipient address { color:#263f53;font-size:14px;line-height:1.5;font-style:normal; }
.environmental-mail-labels { display:grid;grid-template-columns:1fr 1fr;gap:18px; }
.environmental-mail-recipient { min-height:245px;align-content:start; }
.environmental-mail-recipient > b { justify-self:start;padding:5px 9px;color:#fff;background:#176b87;border-radius:999px;font-size:12px; }
.environmental-mail-recipient small { color:#465f73!important;font-size:12px!important;font-weight:800; }
.environmental-pdf-export-stage { position:fixed;left:-12000px;top:0;z-index:-1;width:794px;background:#fff;pointer-events:none; }
.environmental-pdf-export-page { width:794px!important;min-height:1123px!important;margin:0!important;padding:38px 45px!important;border:0!important;border-radius:0!important;box-shadow:none!important;box-sizing:border-box;background:#fff!important;overflow:hidden; }
.environmental-pdf-export-page.environmental-print-page { display:grid!important; }
.environmental-process-status { display:inline-flex;align-items:center;padding:4px 8px;border:1px solid rgba(14,165,233,.28);border-radius:999px;color:#bae6fd;background:rgba(14,165,233,.1);font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.03em; }
.environmental-process-status.status-regular_closed,.environmental-process-status.status-regularized_closed,.environmental-process-status.status-closed { color:#bbf7d0;border-color:rgba(34,197,94,.3);background:rgba(34,197,94,.1); }
.environmental-process-status.status-direct_infraction,.environmental-process-status.status-infraction_issued,.environmental-process-status.status-not_regularized,.environmental-process-status.status-deadline_expired { color:#fecaca;border-color:rgba(239,68,68,.3);background:rgba(239,68,68,.1); }
.environmental-process-status.status-irregular_notification_pending,.environmental-process-status.status-notification_issued,.environmental-process-status.status-external_system_pending,.environmental-process-status.status-awaiting_delivery_receipt,.environmental-process-status.status-awaiting_regularization,.environmental-process-status.status-return_pending { color:#fde68a;border-color:rgba(245,158,11,.3);background:rgba(245,158,11,.1); }
.environmental-deadline-counter { display:inline-flex;margin-top:6px;color:#fbbf24;font-size:10px;font-weight:800;text-transform:uppercase; }
.environmental-deadline-counter.expired { color:#f87171; }
@media (max-width: 620px) {
  .inspection-detail-dialog form { padding: 16px; }
  .inspection-detail-meta, .inspection-detail-answers { grid-template-columns: 1fr; }
  .inspection-local-backup { grid-template-columns: auto minmax(0, 1fr); }
  .inspection-local-backup button { width: 100%; }
  .environmental-post-grid, .environmental-infractions { grid-template-columns: 1fr; }
  .environmental-post-grid .environmental-wide { grid-column: 1; }
  .environmental-calculation dl { grid-template-columns: 1fr 1fr; }
  .environmental-calculation-results { grid-template-columns:1fr; }
  .environmental-calculation > header { display:grid; }
  .environmental-calculation > header strong { text-align:left; }
  .environmental-model-evidence { grid-template-columns:1fr; }
}

.environmental-pdf-export-page .environmental-model-evidence { grid-template-columns:minmax(0,1.4fr) minmax(0,.6fr); }

/* Administration workspace */
.app.admin-workspace,
.app.admin-workspace.panel-open {
  grid-template-columns: 66px minmax(0, 1fr) 0;
}

.app.admin-workspace .platform-panel {
  position: relative;
  inset: auto;
  width: auto;
  min-width: 0;
  opacity: 1;
  transform: none;
  border-right: 0;
  box-shadow: none;
}

.app.admin-workspace .map-container {
  display: none;
}

.app.admin-workspace .platform-panel-body {
  padding: 20px clamp(18px, 2.5vw, 38px) 32px;
}

.app.admin-workspace .module-view[data-module-view="admin"].active {
  width: min(1500px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(520px, 1.25fr) minmax(380px, .75fr);
  gap: 16px;
  align-items: start;
}

.app.admin-workspace .module-view[data-module-view="admin"] > .access-overview {
  grid-column: 1 / -1;
}

.app.admin-workspace .admin-users-card {
  grid-column: 1;
  grid-row: 2 / 4;
  margin: 0;
}

.app.admin-workspace .admin-nav-card {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
}

.app.admin-workspace .admin-tool-card {
  grid-column: 2;
  grid-row: 3;
  margin: 0;
}

.app.admin-workspace .module-view[data-module-view="admin"].organization-mode { grid-template-columns:minmax(0,1fr); }
.app.admin-workspace .module-view[data-module-view="admin"].organization-mode > .access-overview,
.app.admin-workspace .module-view[data-module-view="admin"].organization-mode > .admin-users-card { display:none; }
.app.admin-workspace .module-view[data-module-view="admin"].organization-mode > .admin-nav-card { grid-column:1; grid-row:1; }
.app.admin-workspace .module-view[data-module-view="admin"].organization-mode > .admin-tool-card { grid-column:1; grid-row:2; padding:0; overflow:hidden; }
.app.admin-workspace .module-view[data-module-view="admin"].organization-mode .admin-nav-card .module-grid { grid-template-columns:repeat(9,minmax(0,1fr)); }

.org-console { min-width:0; color:#dce7f3; }
.org-hero { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:14px; padding:22px; border-bottom:1px solid rgba(56,189,248,.17); background:radial-gradient(circle at 88% 0,rgba(14,165,233,.18),transparent 36%),linear-gradient(135deg,#111e32,#0c2638); }
.org-hero > .material-symbols-outlined { width:50px; height:50px; display:grid; place-items:center; border-radius:13px; color:#7dd3fc; background:rgba(14,165,233,.13); font-size:28px; }
.org-hero small { color:#38bdf8; font-size:9px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }.org-hero h2 { margin:3px 0; color:#f8fafc; font-size:22px; }.org-hero p { margin:0; color:#93a5ba; font-size:11px; }
.org-hero button,.org-toolbar > button { min-height:37px; display:flex; align-items:center; justify-content:center; gap:6px; padding:0 12px; border:1px solid rgba(56,189,248,.25); border-radius:8px; color:#dff6ff; background:rgba(14,165,233,.1); font-size:9px; font-weight:800; cursor:pointer; }.org-hero button:hover,.org-toolbar > button:hover { background:rgba(14,165,233,.2); }.org-hero button .material-symbols-outlined,.org-toolbar button .material-symbols-outlined { font-size:16px; }
.org-kpi-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:8px; padding:14px; background:#0d1727; }
.org-kpi { --org-color:#38bdf8; min-width:0; display:flex; align-items:center; gap:9px; padding:12px; border:1px solid color-mix(in srgb,var(--org-color) 22%,transparent); border-radius:10px; background:color-mix(in srgb,var(--org-color) 5%,#111c2d); }.org-kpi.org-cyan{--org-color:#22d3ee}.org-kpi.org-green{--org-color:#4ade80}.org-kpi.org-purple{--org-color:#a78bfa}.org-kpi.org-orange{--org-color:#fb923c}
.org-kpi > .material-symbols-outlined { width:31px; height:31px; display:grid; place-items:center; flex:0 0 auto; border-radius:8px; color:var(--org-color); background:color-mix(in srgb,var(--org-color) 11%,transparent); font-size:18px; }.org-kpi div{min-width:0;display:grid;gap:2px}.org-kpi small{overflow:hidden;color:#8294aa;font-size:7px;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.org-kpi strong{color:#f8fafc;font-size:20px}
.org-tabs { display:flex; gap:5px; overflow-x:auto; padding:0 14px 12px; background:#0d1727; scrollbar-width:thin; }.org-tabs button { min-width:max-content; min-height:36px; display:flex; align-items:center; gap:5px; padding:0 11px; border:1px solid rgba(148,163,184,.12); border-radius:8px; color:#8192a8; background:#111c2d; font-size:9px; font-weight:750; cursor:pointer; }.org-tabs button.active{color:#e0f2fe;border-color:rgba(56,189,248,.4);background:rgba(14,165,233,.14)}.org-tabs .material-symbols-outlined{font-size:15px}
.org-toolbar { display:grid; grid-template-columns:minmax(240px,1fr) auto auto; gap:8px; padding:12px 14px; border-top:1px solid rgba(148,163,184,.09); border-bottom:1px solid rgba(148,163,184,.1); background:#0f1a2a; }.org-toolbar label{position:relative}.org-toolbar label .material-symbols-outlined{position:absolute;top:10px;left:10px;color:#64748b;font-size:17px}.org-toolbar input{width:100%;height:37px;padding:0 10px 0 35px;border:1px solid rgba(148,163,184,.15);border-radius:8px;color:#e5edf6;background:#0b1524;outline:0;font-size:10px}.org-toolbar input:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.08)}
.org-content { display:grid; grid-template-columns:minmax(0,1fr); min-height:360px; background:#0c1625; }.org-content:has(.org-editor){grid-template-columns:minmax(0,1fr) 360px}.org-entity-grid{min-width:0;display:grid;grid-template-columns:repeat(3,minmax(240px,1fr));gap:10px;align-content:start;padding:14px}.org-entity-card{min-width:0;display:grid;align-content:start;gap:9px;padding:14px;border:1px solid rgba(148,163,184,.12);border-radius:11px;background:linear-gradient(145deg,rgba(18,30,49,.94),rgba(12,23,39,.9));box-shadow:0 8px 20px rgba(2,6,23,.12)}.org-entity-card.inactive{opacity:.58}.org-entity-card header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px}.org-entity-card header>.material-symbols-outlined{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;color:#7dd3fc;background:rgba(14,165,233,.1);font-size:19px}.org-entity-card header div{min-width:0}.org-entity-card header small{color:#64748b;font-size:7px;text-transform:uppercase}.org-entity-card h3{margin:2px 0 0;overflow:hidden;color:#edf5fd;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.org-entity-card header b{padding:3px 6px;border-radius:999px;color:#86efac;background:rgba(34,197,94,.1);font-size:7px;text-transform:uppercase}.org-entity-card header b.inactive{color:#cbd5e1;background:rgba(100,116,139,.14)}.org-entity-card p{margin:0;color:#91a2b7;font-size:9px;line-height:1.45}.org-card-facts,.org-card-tags{display:flex;flex-wrap:wrap;gap:5px}.org-card-facts span{color:#a9b7c8;font-size:8px}.org-card-facts span:not(:last-child)::after{margin-left:5px;color:#405169;content:'•'}.org-card-tags span{padding:3px 6px;border-radius:5px;color:#bae6fd;background:rgba(14,165,233,.09);font-size:7px}.org-entity-card footer{display:flex;gap:5px;margin-top:auto;padding-top:4px}.org-entity-card footer button{min-height:29px;display:flex;align-items:center;gap:4px;padding:0 8px;border:1px solid rgba(56,189,248,.2);border-radius:6px;color:#bae6fd;background:rgba(14,165,233,.07);font-size:8px;font-weight:750;cursor:pointer}.org-entity-card footer button:hover{background:rgba(14,165,233,.16)}.org-entity-card footer button.danger{margin-left:auto;padding:0 6px;color:#fda4af;border-color:rgba(244,63,94,.18);background:transparent}.org-entity-card footer .material-symbols-outlined{font-size:13px}
.org-editor{min-width:0;border-left:1px solid rgba(56,189,248,.16);background:#101b2b;box-shadow:-12px 0 30px rgba(2,6,23,.18)}.org-editor form{position:sticky;top:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;max-height:calc(100vh - 190px)}.org-editor header{display:flex;align-items:center;justify-content:space-between;padding:15px;border-bottom:1px solid rgba(148,163,184,.12)}.org-editor header small{color:#38bdf8;font-size:8px;text-transform:uppercase}.org-editor h3{margin:2px 0 0;color:#f8fafc;font-size:15px}.org-editor header button{width:30px;height:30px;display:grid;place-items:center;border:1px solid rgba(148,163,184,.14);border-radius:7px;color:#94a3b8;background:transparent;cursor:pointer}.org-editor header .material-symbols-outlined{font-size:17px}.org-editor-fields{display:grid;gap:10px;overflow-y:auto;padding:15px}.org-editor-fields>label:not(.org-checkbox){display:grid;gap:5px}.org-editor-fields label>span{color:#9aacbf;font-size:9px;font-weight:700}.org-editor-fields input:not([type="checkbox"]),.org-editor-fields select,.org-editor-fields textarea{width:100%;min-height:36px;padding:8px;border:1px solid rgba(148,163,184,.16);border-radius:7px;color:#e5edf6;background:#0b1524;outline:0;font-size:9px}.org-editor-fields textarea{min-height:76px;resize:vertical}.org-editor-fields select[multiple]{min-height:105px}.org-editor-fields input:focus,.org-editor-fields select:focus,.org-editor-fields textarea:focus{border-color:#38bdf8;box-shadow:0 0 0 3px rgba(56,189,248,.07)}.org-checkbox{display:flex;align-items:center;gap:8px;padding:8px;border:1px solid rgba(148,163,184,.1);border-radius:7px;background:rgba(15,23,42,.35)}.org-checkbox input{accent-color:#38bdf8}.org-editor>form>footer{display:flex;justify-content:flex-end;gap:7px;padding:12px 15px;border-top:1px solid rgba(148,163,184,.12)}.org-editor>form>footer button{min-height:34px;display:flex;align-items:center;gap:5px;padding:0 11px;border:1px solid rgba(148,163,184,.17);border-radius:7px;color:#cbd5e1;background:#142035;font-size:9px;font-weight:800;cursor:pointer}.org-editor>form>footer button[type="submit"]{color:#e0f2fe;border-color:rgba(56,189,248,.3);background:rgba(14,165,233,.16)}.org-editor>form>footer .material-symbols-outlined{font-size:15px}.org-signature-placeholder{display:flex;align-items:center;gap:9px;padding:11px;border:1px dashed rgba(167,139,250,.25);border-radius:8px;color:#c4b5fd;background:rgba(139,92,246,.06)}.org-signature-placeholder>.material-symbols-outlined{font-size:21px}.org-signature-placeholder div{display:grid;gap:2px}.org-signature-placeholder strong{font-size:9px}.org-signature-placeholder small{color:#7f8da0;font-size:7px}
.org-permission-matrix{grid-column:1/-1;min-width:760px;overflow:hidden;border:1px solid rgba(148,163,184,.12);border-radius:10px}.org-permission-matrix>div{display:grid;grid-template-columns:minmax(180px,1fr) repeat(6,minmax(86px,.55fr));align-items:center;min-height:38px;border-bottom:1px solid rgba(148,163,184,.09)}.org-permission-matrix>div:last-child{border-bottom:0}.org-permission-matrix>div>*{padding:7px;text-align:center}.org-permission-matrix>div>strong{text-align:left;color:#b9c7d7;font-size:9px}.org-permission-head{background:#142136}.org-permission-head span{color:#8fa1b6;font-size:7px;font-weight:800;text-transform:uppercase}.org-permission-matrix .material-symbols-outlined{color:#46566c;font-size:15px}.org-permission-matrix .material-symbols-outlined.allowed{color:#4ade80}.org-empty{grid-column:1/-1;min-height:220px;display:grid;place-items:center;align-content:center;gap:6px;color:#64748b;text-align:center}.org-empty .material-symbols-outlined{font-size:34px}.org-empty strong{color:#b8c5d5;font-size:12px}.org-empty small{font-size:9px}
.org-permission-matrix>div { grid-template-columns:minmax(180px,1fr) repeat(var(--profile-count),minmax(86px,.55fr)); }

.inspection-analyst-home { display:grid; grid-template-columns:minmax(190px,1.35fr) repeat(4,minmax(110px,1fr)); gap:8px; margin-top:12px; }.inspection-analyst-home.access-hidden{display:none}.inspection-analyst-home>div,.inspection-analyst-home article{min-width:0;display:flex;align-items:center;gap:9px;padding:12px;border:1px solid rgba(56,189,248,.14);border-radius:10px;background:rgba(15,23,42,.65)}.inspection-analyst-home>div>.material-symbols-outlined{width:32px;height:32px;display:grid;place-items:center;border-radius:8px;color:#7dd3fc;background:rgba(14,165,233,.1);font-size:18px}.inspection-analyst-home>div>span:last-child{min-width:0;display:grid;gap:2px}.inspection-analyst-home small{color:#74869d;font-size:8px;text-transform:uppercase}.inspection-analyst-home strong{overflow:hidden;color:#e5edf6;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.inspection-analyst-home article{display:grid;gap:3px}.inspection-analyst-home article strong{font-size:20px}.inspection-analyst-home article.warning strong{color:#fbbf24}.inspection-analyst-home article.danger strong{color:#fb7185}
.action-dirty-lot{border-color:rgba(132,204,22,.25)!important;background:linear-gradient(145deg,rgba(54,83,20,.28),rgba(15,23,42,.82))!important}.action-dirty-lot>.material-symbols-outlined{color:#a3e635!important;background:rgba(132,204,22,.12)!important}.action-dirty-lot button{border-color:rgba(132,204,22,.35)!important;color:#ecfccb!important;background:rgba(101,163,13,.2)!important}
.dirty-lot-dashboard{display:grid;gap:10px;margin-top:12px;padding:14px;border:1px solid rgba(132,204,22,.16);border-radius:13px;background:linear-gradient(145deg,rgba(19,35,26,.91),rgba(10,21,31,.96));box-shadow:0 14px 32px rgba(2,6,23,.18)}.dirty-lot-dashboard>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.dirty-lot-dashboard>header>div{display:flex;align-items:center;gap:9px}.dirty-lot-dashboard>header>div>.material-symbols-outlined{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;color:#bef264;background:rgba(132,204,22,.11)}.dirty-lot-dashboard h2{margin:2px 0;color:#f1f5f9;font-size:15px}.dirty-lot-dashboard header small{color:#84cc16;font-size:8px;text-transform:uppercase}.dirty-lot-dashboard nav{display:flex;gap:6px}.dirty-lot-dashboard button{min-height:33px;padding:0 10px;border:1px solid rgba(132,204,22,.2);border-radius:7px;color:#d9f99d;background:rgba(101,163,13,.08);font-size:8px;font-weight:800;cursor:pointer}.dirty-lot-dashboard button:hover{background:rgba(101,163,13,.16)}
.dirty-lot-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.dirty-lot-kpis button{min-width:0;display:grid;justify-items:start;gap:2px;padding:10px;text-align:left}.dirty-lot-kpis strong{color:#f8fafc;font-size:20px}.dirty-lot-kpis span{overflow:hidden;color:#829487;font-size:7px;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.dirty-lot-kpis .danger strong{color:#fb7185}.dirty-lot-kpis .warning strong{color:#fbbf24}.dirty-lot-kpis .success strong{color:#86efac}.dirty-lot-list-heading{display:flex;align-items:center;justify-content:space-between;padding-top:4px;border-top:1px solid rgba(148,163,184,.08)}.dirty-lot-list-heading>div{display:grid;gap:2px}.dirty-lot-list-heading strong{color:#e5edf6;font-size:11px}.dirty-lot-list-heading small{color:#6f8279;font-size:8px}.dirty-lot-list-heading button{width:32px;padding:0}.dirty-lot-list-heading .material-symbols-outlined{font-size:16px}
.dirty-lot-process-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.dirty-lot-card{min-width:0;display:grid;gap:9px;padding:12px;border:1px solid rgba(148,163,184,.12);border-radius:10px;background:rgba(15,23,42,.58)}.dirty-lot-card>header{display:flex;align-items:start;justify-content:space-between;gap:8px}.dirty-lot-card header>div{min-width:0;display:grid;gap:2px}.dirty-lot-card header small{color:#84cc16;font-size:7px}.dirty-lot-card h3{margin:0;overflow:hidden;color:#edf5ee;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.dirty-lot-status{padding:4px 7px;border-radius:999px;color:#d9f99d;background:rgba(101,163,13,.12);font-size:7px;font-weight:800;white-space:nowrap}.dirty-lot-status.deadline_expired,.dirty-lot-status.not_regularized{color:#fecdd3;background:rgba(244,63,94,.12)}.dirty-lot-status.return_scheduled{color:#fde68a;background:rgba(245,158,11,.12)}.dirty-lot-card dl{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0}.dirty-lot-card dl div{min-width:0;display:grid;gap:1px}.dirty-lot-card dt{color:#64748b;font-size:7px;text-transform:uppercase}.dirty-lot-card dd{margin:0;overflow:hidden;color:#aebdad;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.dirty-lot-card>footer{display:flex;flex-wrap:wrap;gap:5px}.dirty-lot-card>footer button{min-height:28px;padding:0 8px}.dirty-lot-deadline{color:#facc15!important}.dirty-lot-deadline.expired{color:#fb7185!important}
.dirty-lot-dialog{width:min(760px,94vw)}.dirty-lot-dialog-body{display:grid;gap:12px;max-height:68vh;overflow:auto;padding:16px}.dirty-lot-detail-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:12px;border:1px solid rgba(132,204,22,.16);border-radius:10px;background:rgba(101,163,13,.05)}.dirty-lot-detail-summary>div{display:grid;gap:3px}.dirty-lot-detail-summary small{color:#84cc16;font-size:8px}.dirty-lot-detail-summary strong{color:#f1f5f9;font-size:14px}.dirty-lot-detail-summary span{color:#91a497;font-size:9px}.dirty-lot-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.dirty-lot-detail-grid div{display:grid;gap:2px;padding:9px;border:1px solid rgba(148,163,184,.1);border-radius:8px;background:rgba(15,23,42,.42)}.dirty-lot-detail-grid small{color:#64748b;font-size:7px;text-transform:uppercase}.dirty-lot-detail-grid strong{color:#cbd8ce;font-size:9px}.dirty-lot-notification-document{display:grid;gap:10px;padding:18px;border:1px solid rgba(148,163,184,.16);border-radius:9px;color:#263328;background:#f8faf7}.dirty-lot-notification-document header{text-align:center}.dirty-lot-notification-document h3{margin:3px 0;color:#17251a;font-size:16px}.dirty-lot-notification-document p,.dirty-lot-notification-document li{font-size:9px;line-height:1.55}.dirty-lot-notification-document .verification{display:flex;justify-content:space-between;gap:8px;padding-top:8px;border-top:1px solid #ccd7ce;font-size:8px}.dirty-lot-dialog footer{display:flex;flex-wrap:wrap;gap:6px}.dirty-lot-dialog footer button.primary{color:#ecfccb;border-color:rgba(132,204,22,.35);background:rgba(101,163,13,.2)}.dirty-lot-dialog footer button.danger{color:#fecdd3;border-color:rgba(244,63,94,.3);background:rgba(244,63,94,.08)}
.dirty-lot-return-dialog{width:min(620px,94vw)}.dirty-lot-return-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:16px}.dirty-lot-return-fields>label{display:grid;gap:5px}.dirty-lot-return-fields span,.dirty-lot-return-fields legend{color:#9aacbf;font-size:9px;font-weight:700}.dirty-lot-return-fields select,.dirty-lot-return-fields textarea{width:100%;padding:9px;border:1px solid rgba(148,163,184,.16);border-radius:7px;color:#e5edf6;background:#0b1524}.dirty-lot-return-fields textarea{min-height:90px;resize:vertical}.dirty-lot-wide{grid-column:1/-1}.dirty-lot-return-fields fieldset{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:11px;border:1px solid rgba(148,163,184,.13);border-radius:8px}.dirty-lot-return-fields fieldset div{display:grid;gap:2px}.dirty-lot-return-fields fieldset small{color:#718279;font-size:8px}.dirty-lot-return-fields fieldset button,.dirty-lot-return-fields fieldset label{display:flex;align-items:center;gap:5px;padding:8px;border:1px solid rgba(132,204,22,.25);border-radius:7px;color:#d9f99d;background:rgba(101,163,13,.08);cursor:pointer}.dirty-lot-return-fields input[type=file]{display:none}.dirty-lot-checklist{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:11px;border:1px solid rgba(132,204,22,.14);border-radius:9px;background:rgba(101,163,13,.035)}.dirty-lot-checklist>strong{grid-column:1/-1;color:#bef264;font-size:9px;text-transform:uppercase}.dirty-lot-check{display:flex!important;align-items:center;gap:8px!important;padding:9px!important;border:1px solid rgba(148,163,184,.1);border-radius:7px;background:rgba(15,23,42,.4)}.dirty-lot-check input{accent-color:#84cc16}.dirty-lot-check span{color:#c3d0c5!important;font-size:9px!important}
.dirty-lot-return-fields fieldset .dirty-lot-return-photo-actions{display:flex;flex-wrap:wrap;gap:8px}.dirty-lot-return-photo-actions button,.dirty-lot-return-photo-actions label{min-height:48px;justify-content:center;font-size:14px!important;font-weight:800}.inspection-analyst-recipient{padding:14px;border:1px solid rgba(14,165,233,.24);border-radius:10px;background:rgba(14,165,233,.06)}.inspection-analyst-recipient small{color:#64748b;font-size:14px}

/* Fiscalização de retorno: formulário de campo claro, táctil e orientado por etapas. */
.dirty-lot-return-dialog{width:min(760px,96vw);max-height:94vh;border:0;border-radius:20px;background:#f6f9fc;color:#173147;box-shadow:0 28px 80px rgba(15,36,54,.35)}
.dirty-lot-return-dialog>form{max-height:94vh;overflow:auto}
.dirty-lot-return-header{position:sticky;top:0;z-index:3;padding:20px 24px!important;background:linear-gradient(135deg,#123b55,#176b72)!important;color:#fff}
.dirty-lot-return-header h2{margin:3px 0 4px;font-size:24px}.dirty-lot-return-header>div>span{color:#9ee7d5!important;font-size:11px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.dirty-lot-return-header small{color:#d5eef0;font-size:13px}.dirty-lot-return-header>button{color:#fff!important;background:rgba(255,255,255,.12)!important;border:1px solid rgba(255,255,255,.2)!important}
.dirty-lot-return-progress{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:14px 22px;background:#fff;border-bottom:1px solid #dce7ed}.dirty-lot-return-progress span{display:flex;align-items:center;gap:8px;color:#526b80;font-size:12px;font-weight:800}.dirty-lot-return-progress b{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#e3f3ef;color:#087765}
.dirty-lot-return-fields{display:grid;grid-template-columns:1fr;gap:16px;padding:22px}.dirty-lot-return-fields>label{display:grid;gap:7px}.dirty-lot-return-fields span,.dirty-lot-return-fields legend{color:#36566d;font-size:12px;font-weight:850}.dirty-lot-return-control select,.dirty-lot-return-control textarea{width:100%;padding:13px 14px;border:1px solid #b9ccd7;border-radius:11px;color:#173147;background:#fff;font-size:15px;outline:none;transition:.18s}.dirty-lot-return-control select:focus,.dirty-lot-return-control textarea:focus{border-color:#087765;box-shadow:0 0 0 3px rgba(8,119,101,.12)}.dirty-lot-return-control textarea{min-height:118px;resize:vertical}.dirty-lot-return-control>small{color:#6b8191;font-size:11px}
.dirty-lot-return-fields fieldset.dirty-lot-return-evidence{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;padding:17px;border:1px solid #c8d8e1;border-radius:14px;background:#fff}.dirty-lot-return-evidence legend{display:flex;align-items:center;gap:6px;padding:0 7px;color:#173147;font-size:13px}.dirty-lot-return-status{display:flex!important;grid-template-columns:none!important;flex-direction:row;align-items:center;gap:11px!important}.dirty-lot-return-status>.material-symbols-outlined{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;color:#087765;background:#e3f3ef;font-size:22px}.dirty-lot-return-status div{display:grid;gap:3px}.dirty-lot-return-status strong{font-size:14px}.dirty-lot-return-status small{color:#6b8191!important;font-size:11px!important}.dirty-lot-return-evidence>button{min-height:46px;padding:10px 15px!important;color:#075e52!important;border:1px solid #8bc9bd!important;background:#edfaf7!important;font-weight:850}
.dirty-lot-return-fields fieldset.dirty-lot-return-photo-panel{grid-template-columns:1fr}.dirty-lot-return-photo-panel>p{margin:0;color:#5f7788;font-size:12px}.dirty-lot-return-photo-actions{display:grid!important;grid-template-columns:1.35fr 1fr;gap:10px!important}.dirty-lot-return-photo-actions button,.dirty-lot-return-photo-actions label{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:11px!important;min-height:66px!important;padding:12px 15px!important;border:1px solid #bfd1da!important;border-radius:12px!important;color:#24475d!important;background:#f7fafc!important;cursor:pointer}.dirty-lot-return-photo-actions .dirty-lot-camera-primary{color:#fff!important;border-color:#087765!important;background:linear-gradient(135deg,#087765,#0c927d)!important;box-shadow:0 8px 18px rgba(8,119,101,.2)}.dirty-lot-return-photo-actions>.dirty-lot-camera-primary .material-symbols-outlined{font-size:29px}.dirty-lot-return-photo-actions span>strong,.dirty-lot-return-photo-actions span>small{display:block;color:inherit!important}.dirty-lot-return-photo-actions span>small{margin-top:2px;font-size:10px!important;font-weight:600!important;opacity:.82}.dirty-lot-return-photo-panel>#dirty-lot-return-photo-count{color:#526b80!important;font-size:11px!important}
.dirty-lot-return-photo-preview{display:grid;gap:9px}.dirty-lot-return-photo-preview article{display:grid;grid-template-columns:64px minmax(0,1fr) 38px;align-items:center;gap:11px;padding:8px;border:1px solid #d4e1e7;border-radius:11px;background:#f8fbfc}.dirty-lot-return-photo-preview img{width:64px;height:54px;border-radius:8px;object-fit:cover;background:#dce7ed}.dirty-lot-return-photo-preview article div{display:grid;gap:3px;min-width:0}.dirty-lot-return-photo-preview strong{overflow:hidden;color:#24475d;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.dirty-lot-return-photo-preview small{color:#688092!important;font-size:10px!important}.dirty-lot-return-photo-preview button{display:grid;place-items:center;width:34px;height:34px;padding:0!important;border:0!important;border-radius:9px!important;color:#b42318!important;background:#feeceb!important}
.dirty-lot-return-dialog footer{position:sticky;bottom:0;z-index:3;padding:14px 22px!important;border-top:1px solid #d7e3e9;background:rgba(255,255,255,.96)!important;backdrop-filter:blur(8px)}.dirty-lot-return-dialog footer button[type=submit]{min-height:46px;padding:10px 18px!important;border-radius:10px!important;background:#087765!important;color:#fff!important;font-weight:850}
.inspection-grp-summary{grid-column:1/-1;margin-top:14px;padding:14px;border:1px solid #a9d9ce;border-radius:12px;background:linear-gradient(135deg,#f0fbf8,#f7fbfd)}.inspection-grp-summary>header{display:flex;align-items:center;gap:10px;margin-bottom:12px}.inspection-grp-summary>header>.material-symbols-outlined{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;color:#087765;background:#d9f3ec}.inspection-grp-summary>header div{display:grid;gap:2px}.inspection-grp-summary>header strong{color:#174d48;font-size:14px}.inspection-grp-summary>header small{color:#607b83;font-size:10px}.inspection-grp-summary>dl{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.inspection-grp-summary>dl>div{padding:9px 10px!important;border:1px solid #d5e6e2!important;border-radius:8px!important;background:rgba(255,255,255,.8)!important}.inspection-grp-summary dt{color:#668078!important;font-size:9px!important}.inspection-grp-summary dd{color:#173147!important;font-size:12px!important;font-weight:750}
.environmental-correspondence-card{display:grid;gap:12px;padding:14px;border:1px solid #8fc8bc;border-radius:12px;background:#f1faf8}.environmental-correspondence-card>header{display:flex;align-items:center;gap:10px}.environmental-correspondence-card>header>.material-symbols-outlined{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;color:#087765;background:#d8f2eb}.environmental-correspondence-card>header div{display:grid;gap:2px}.environmental-correspondence-card>header strong{color:#174d48}.environmental-correspondence-card>header small{color:#607b83;font-size:11px}.environmental-correspondence-grid{display:grid;grid-template-columns:2fr .65fr 1.2fr .8fr 1fr;gap:9px}.environmental-correspondence-grid label{display:grid;gap:5px}.environmental-correspondence-grid input{width:100%;min-width:0}.environmental-correspondence-card>.inspection-message{margin:0;padding:8px 10px;font-size:11px}.environmental-correspondence-card>.inspection-message.success{color:#087765;background:#e1f5ef}.environmental-correspondence-card>.inspection-message.error{color:#a33a2b;background:#fff0ed}@media(max-width:800px){.environmental-correspondence-grid{grid-template-columns:1fr 1fr}.environmental-correspondence-grid label:first-child,.environmental-correspondence-grid label:last-child{grid-column:1/-1}}
.environmental-correspondence-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.environmental-correspondence-options[hidden]{display:none}.environmental-correspondence-alert{display:flex;grid-column:1/-1;align-items:center;gap:9px;padding:10px 12px;border:1px solid #e7c66a;border-radius:9px;color:#75570c;background:#fff8dc;font-size:12px}.environmental-correspondence-alert .material-symbols-outlined{font-size:20px}.environmental-correspondence-options>button{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;min-height:68px;padding:10px 12px;border:1px solid #c9d9d5;border-radius:10px;color:#294b4a;text-align:left;background:#fff;cursor:pointer}.environmental-correspondence-options>button:hover{border-color:#69aa9c;background:#f7fcfa}.environmental-correspondence-options>button.selected{border:2px solid #087765;background:#e8f7f3}.environmental-correspondence-options>button>span:nth-child(2){display:grid;gap:4px;min-width:0}.environmental-correspondence-options>button strong{font-size:12px}.environmental-correspondence-options>button small{overflow:hidden;color:#617b78;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.environmental-correspondence-options>button>i{color:#087765;opacity:0}.environmental-correspondence-options>button.selected>i{opacity:1}@media(max-width:650px){.environmental-correspondence-options{grid-template-columns:1fr}}
@media(max-width:600px){.dirty-lot-return-dialog{width:100vw;max-width:none;height:100dvh;max-height:none;border-radius:0}.dirty-lot-return-dialog>form{max-height:100dvh}.dirty-lot-return-header{padding:17px!important}.dirty-lot-return-header small{display:none}.dirty-lot-return-progress{padding:11px 14px}.dirty-lot-return-progress span{font-size:10px}.dirty-lot-return-fields{padding:16px}.dirty-lot-return-fields fieldset.dirty-lot-return-evidence{grid-template-columns:1fr}.dirty-lot-return-evidence>button{width:100%;justify-content:center}.dirty-lot-return-photo-actions{grid-template-columns:1fr!important}.dirty-lot-return-dialog footer{display:grid!important;grid-template-columns:1fr 1.5fr;padding:12px 16px!important}}
.inspection-analyst-recipient{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:12px;margin:12px 0}.inspection-analyst-recipient>.material-symbols-outlined{color:#0284c7;font-size:28px}.inspection-analyst-recipient label{display:grid;gap:6px}.inspection-analyst-recipient select{min-height:48px;padding:0 12px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#172033;font-size:16px}
.inspection-field-hint{display:block;margin-top:4px;color:#6f8299;font-size:8px;line-height:1.35}
.inspection-review-readonly{padding:5px 8px;border-radius:6px;color:#fbbf24;background:rgba(245,158,11,.09);font-size:8px;font-weight:700}

.app.admin-workspace .admin-user-row {
  grid-template-columns: 42px minmax(220px, 1fr) auto;
  padding: 12px 6px;
}

.app.admin-workspace .admin-user-avatar {
  width: 36px;
  height: 36px;
  font-size: 10px;
}

.app.admin-workspace .admin-user-row strong {
  font-size: 11px;
}

.app.admin-workspace .admin-user-row small,
.app.admin-workspace .admin-user-state,
.app.admin-workspace .admin-role {
  font-size: 9px;
}

.app.admin-workspace .admin-user-actions button {
  width: 26px;
  height: 26px;
}

.app.admin-workspace .admin-user-actions .material-symbols-outlined {
  font-size: 15px;
}

.app.admin-workspace .access-overview strong {
  font-size: 13px;
}

.app.admin-workspace .access-overview small {
  font-size: 11px;
}

.app.admin-workspace .admin-users-card h2,
.app.admin-workspace .admin-nav-card h2 {
  font-size: 15px;
}

.app.admin-workspace .project-section-note {
  font-size: 11px;
}

.app.admin-workspace .admin-nav-card .module-grid button {
  font-size: 12px;
}

.app.admin-workspace .admin-user-row strong {
  font-size: 13px;
}

.app.admin-workspace .admin-user-row small,
.app.admin-workspace .admin-user-state,
.app.admin-workspace .admin-role {
  font-size: 11px;
}

.app.admin-workspace .admin-tool-header h2 {
  font-size: 15px;
}

.app.admin-workspace .admin-tool-header small,
.app.admin-workspace .admin-stat-grid span,
.app.admin-workspace .admin-profile-list small,
.app.admin-workspace .admin-group-list small,
.app.admin-workspace .admin-event-list small,
.app.admin-workspace .admin-session-list small {
  font-size: 10px;
}

.app.admin-workspace .admin-group-list strong,
.app.admin-workspace .admin-event-list strong,
.app.admin-workspace .admin-session-list strong,
.app.admin-workspace .admin-component-list span {
  font-size: 12px;
}

.app.admin-workspace .admin-permission-table strong,
.app.admin-workspace .admin-permission-head span,
.app.admin-workspace .admin-component-list strong,
.app.admin-workspace .admin-component-list b {
  font-size: 10px;
}

@media (max-width: 1050px) {
  .app.inspection-workspace,
  .app.inspection-workspace.panel-open,
  .app.analytics-workspace,
  .app.analytics-workspace.panel-open,
  .app.dashboard-workspace,
  .app.dashboard-workspace.panel-open,
  .app.projects-workspace,
  .app.projects-workspace.panel-open { grid-template-columns: 66px minmax(620px, 68vw) minmax(0, 1fr); }
  .inspection-dashboard-toolbar { position: static; grid-template-columns: 1fr 1fr; }
  .inspection-dashboard-search { grid-column: 1 / -1; }
  .inspection-management-metrics { grid-template-columns: 1fr 1fr; }
  .inspection-dashboard-grid { grid-template-columns: 1fr; }
  .inspection-dashboard-grid .inspection-team-card { grid-column: 1; }
  .inspection-ops-hero { align-items:flex-start; flex-direction:column; }
  .inspection-hero-daily { width:100%; }
  .inspection-ops-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .inspection-action-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .inspection-operation-meta { grid-template-columns:1fr 1fr; }
  .inspection-records-metrics { grid-template-columns:1fr 1fr; }
  .org-kpi-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .org-entity-grid { grid-template-columns:repeat(2,minmax(230px,1fr)); }
  .org-content:has(.org-editor) { grid-template-columns:minmax(0,1fr) 320px; }
  .app.admin-workspace .module-view[data-module-view="admin"].organization-mode .admin-nav-card .module-grid { grid-template-columns:repeat(5,minmax(0,1fr)); }
  .app.admin-workspace .module-view[data-module-view="admin"].active {
    grid-template-columns: minmax(0, 1fr);
  }

  .app.admin-workspace .module-view[data-module-view="admin"] > .access-overview,
  .app.admin-workspace .admin-users-card,
  .app.admin-workspace .admin-nav-card,
  .app.admin-workspace .admin-tool-card {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 820px) {
  .login-content { grid-template-columns: 1fr; width: min(430px, calc(100% - 32px)); gap: 30px; }
  .login-intro { text-align: center; }
  .login-intro h1 { font-size: 38px; }
  .login-intro p, .login-status { display: none; }
  .login-card { padding: 26px; }
  .login-screen footer span:nth-child(2) { display: none; }
  .access-overview { grid-template-columns: 1fr; }
  .user-form-grid { grid-template-columns: 1fr; }
  .user-form-grid label { grid-column: 1 / -1; }
  .access-option-grid, .access-capabilities { grid-template-columns: 1fr; }
  .app.admin-workspace,
  .app.admin-workspace.panel-open { grid-template-columns: 58px minmax(0, 1fr) 0; }
  .app.inspection-workspace,
  .app.inspection-workspace.panel-open,
  .app.analytics-workspace,
  .app.analytics-workspace.panel-open,
  .app.dashboard-workspace,
  .app.dashboard-workspace.panel-open,
  .app.projects-workspace,
  .app.projects-workspace.panel-open { grid-template-columns: 58px minmax(0, 1fr); }
  .app.inspection-workspace .platform-panel,
  .app.analytics-workspace .platform-panel,
  .app.dashboard-workspace .platform-panel,
  .app.projects-workspace .platform-panel {
    position: absolute;
    left: 58px;
    top: 0;
    width: calc(100vw - 58px);
  }
  .app.inspection-workspace .map-container { grid-column: 2; }
  .app.admin-workspace .platform-panel-body, .app.inspection-workspace .platform-panel-body, .app.analytics-workspace .platform-panel-body, .app.dashboard-workspace .platform-panel-body, .app.projects-workspace .platform-panel-body { padding: 12px; }
  .app.analytics-workspace .analytics-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .app.dashboard-workspace .profile-dashboard-layout { grid-template-columns:1fr; }
  .app.projects-workspace .project-form,
  .app.projects-workspace .project-layer-list,
  .app.projects-workspace .project-list { grid-template-columns:1fr; }
  .platform-panel-header .workspace-map-toggle span:last-child { display:none; }
  .workspace-map-toggle { width:34px; padding:0; justify-content:center; }
  .inspection-hero { align-items: flex-start; padding: 15px; }
  .inspection-ops-hero { padding:16px; }
  .inspection-ops-identity > .material-symbols-outlined { width:42px;height:42px;font-size:23px; }
  .inspection-ops-identity p { display:none; }
  .inspection-hero-daily { grid-template-columns:1fr 1fr; }
  .inspection-ops-kpis { grid-template-columns:1fr 1fr; }
  .inspection-ops-kpis article { padding:10px; }
  .inspection-action-grid { grid-template-columns:1fr; }
  .inspection-action-grid article { min-height:145px; }
  .inspection-filter-console { position:static;grid-template-columns:1fr; }
  .inspection-filter-console .inspection-dashboard-search,.inspection-quick-filters { grid-column:1; }
  .inspection-filter-selects { grid-template-columns:1fr 1fr; }
  .inspection-records-hero { grid-template-columns:auto minmax(0,1fr); padding:16px; }
  .inspection-records-hero > button { grid-column:1/-1; justify-content:center; }
  .inspection-records-filters { grid-template-columns:1fr; }
  .org-hero { grid-template-columns:auto minmax(0,1fr);padding:16px }.org-hero>button{grid-column:1/-1}.org-kpi-grid{grid-template-columns:1fr 1fr}.org-toolbar{grid-template-columns:1fr}.org-entity-grid{grid-template-columns:1fr;padding:10px}.org-content:has(.org-editor){grid-template-columns:1fr}.org-editor{border-top:1px solid rgba(56,189,248,.16);border-left:0}.org-editor form{position:relative;max-height:none}.org-editor-fields{max-height:none}.app.admin-workspace .module-view[data-module-view="admin"].organization-mode .admin-nav-card .module-grid{grid-template-columns:1fr 1fr}
  .dirty-lot-dashboard>header{align-items:stretch;flex-direction:column}.dirty-lot-dashboard nav{display:grid;grid-template-columns:1fr 1fr}.dirty-lot-kpis{grid-template-columns:1fr 1fr}.dirty-lot-process-list{grid-template-columns:1fr}.dirty-lot-detail-grid{grid-template-columns:1fr 1fr}.dirty-lot-return-fields{grid-template-columns:1fr}.dirty-lot-wide{grid-column:1}.dirty-lot-checklist{grid-template-columns:1fr}
  .inspection-journey-heading { flex-direction:column; }.inspection-journey-progress{width:100%;text-align:left}
  .inspection-operation-meta { grid-template-columns:1fr 1fr; }
  .inspection-environmental-notice { grid-template-columns:auto 1fr; }.inspection-environmental-notice button{grid-column:1/-1;min-height:42px}
  .inspection-location-actions { width:100%;display:grid !important;grid-template-columns:1fr 1fr; }
  .inspection-hero { flex-direction: column; }
  .inspection-hero .inspection-hero-actions { width: 100%; }
  .inspection-hero .inspection-hero-actions button { flex: 1; }
  .environmental-lot-selection { grid-template-columns: auto 1fr; }
  .environmental-lot-selection button { grid-column: 1 / -1; min-height: 42px; }
  .inspection-hero small { display: none; }
  .inspection-hero strong { font-size: 19px; }
  .inspection-dashboard-toolbar { position: static; grid-template-columns: 1fr 1fr; }
  .inspection-dashboard-search { grid-column: 1 / -1; }
  .inspection-dashboard-toolbar > button { justify-content: center; }
  .inspection-metrics { gap: 6px; }
  .inspection-metrics > div { padding: 9px; }
  .inspection-management-metrics { grid-template-columns: 1fr 1fr; }
  .inspection-management-metrics article { padding: 10px; }
  .inspection-fiscal-queue-metrics { grid-template-columns: repeat(2, 1fr); }
  .inspection-fiscal-welcome { align-items: stretch; flex-wrap: wrap; }
  .inspection-fiscal-welcome > button { width: 100%; min-height: 44px; justify-content: center; }
  .inspection-fiscal-queue-metrics button { min-height: 74px; }
  .inspection-fiscal-queue-metrics button:first-child { grid-column: 1 / -1; }
  .inspection-dashboard-grid { grid-template-columns: 1fr; }
  .inspection-dashboard-grid .inspection-team-card { grid-column: 1; }
  .inspection-team-workload > button { grid-template-columns: 30px minmax(90px, 1fr) 40px 40px; }
  .inspection-team-workload time { display: none; }
  .inspection-form { padding: 14px; }
  .inspection-form-grid { grid-template-columns: 1fr; }
  .inspection-form-grid label, .inspection-wide { grid-column: 1; }
  .inspection-location { align-items: stretch; flex-direction: column; }
  .inspection-location button { width: 100%; }
  .inspection-form-actions { flex-direction: column-reverse; }
  .inspection-form-actions button { width: 100%; }
  .inspection-item { grid-template-columns: minmax(0, 1fr) 72px; gap: 8px; }
  .inspection-item .inspection-status { grid-column: 1 / -1; justify-self: start; }
  .inspection-demand-item-heading { flex-wrap: wrap; }
  .inspection-demand-item-heading time { width: 100%; margin-left: 0; }
  .inspection-demand-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .inspection-demand-actions button { min-height: 46px; justify-content: center; font-size: 10px; }
  .inspection-review-list article { grid-template-columns: 1fr; }
  .inspection-review-actions { display: grid; grid-template-columns: auto 1fr 1fr; }
  .inspection-review-actions button { min-height: 42px; }
  .inspection-record-card { grid-template-columns:auto minmax(0,1fr); }
  .inspection-record-card > .inspection-item-actions { grid-column:1/-1; justify-content:flex-end; }
}

.report-hero { display: flex; gap: 12px; padding: 16px; border: 1px solid rgba(56,189,248,.25); border-radius: 10px; background: linear-gradient(135deg, rgba(14,165,233,.2), rgba(16,185,129,.11)); }
.report-hero > .material-symbols-outlined { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: #e0f2fe; background: rgba(14,165,233,.25); }
.report-hero small, .report-hero p, .confrontation-step small, .confrontation-selected-lot small { display: block; color: #94a3b8; font-size: 11px; }
.report-hero h2 { margin: 2px 0 5px; color: #f8fafc; font-size: 17px; }
.report-hero p { margin: 0; line-height: 1.45; }
.confrontation-card { display: grid; gap: 14px; }
.confrontation-step { display: flex; align-items: center; gap: 10px; }
.confrontation-step b { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 999px; color: #082f49; background: #38bdf8; font-size: 12px; }
.confrontation-step strong, .confrontation-selected-lot strong { display: block; color: #e0f2fe; font-size: 13px; }
.confrontation-search label { display: block; margin-bottom: 6px; color: #cbd5e1; font-size: 11px; font-weight: 700; }
.confrontation-search > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; }
.confrontation-search input { min-width: 0; height: 39px; padding: 0 10px; border: 1px solid rgba(148,163,184,.24); border-radius: 7px; color: #f8fafc; background: rgba(2,6,23,.45); outline: none; }
.confrontation-search input:focus { border-color: #38bdf8; box-shadow: 0 0 0 2px rgba(56,189,248,.12); }
.confrontation-search button, .confrontation-primary { display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 0; border-radius: 7px; color: #fff; background: #0284c7; cursor: pointer; font-weight: 700; }
.confrontation-search button { padding: 0 10px; }
.confrontation-search .material-symbols-outlined, .confrontation-primary .material-symbols-outlined { font-size: 18px; }
.confrontation-results { display: grid; gap: 6px; }
.confrontation-result { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 9px 10px; border: 1px solid rgba(148,163,184,.17); border-radius: 7px; color: #cbd5e1; background: rgba(30,41,59,.58); cursor: pointer; text-align: left; }
.confrontation-result:hover { border-color: #38bdf8; background: rgba(14,165,233,.12); }
.confrontation-result small { color: #64748b; }
.confrontation-selection { display: grid; gap: 11px; padding-top: 12px; border-top: 1px solid rgba(148,163,184,.14); }
.confrontation-selected-lot { display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 7px; background: rgba(34,197,94,.08); }
.confrontation-selected-lot > span { color: #4ade80; }
.confrontation-type-field { display:grid; gap:6px; padding:12px 13px; border:1px solid rgba(56,189,248,.24); border-radius:9px; background:rgba(14,165,233,.08); }
.confrontation-type-field>span { color:#7dd3fc; font-size:10px; font-weight:800; text-transform:uppercase; }
.confrontation-type-field select { width:100%; min-height:41px; padding:0 10px; border:1px solid rgba(148,163,184,.24); border-radius:7px; color:#f8fafc; background:#172235; }
.confrontation-admin-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:13px; border:1px solid rgba(148,163,184,.16); border-radius:9px; background:rgba(15,23,42,.26); }
.confrontation-admin-fields label { display:grid; gap:5px; color:#94a3b8; font-size:10px; font-weight:700; }
.confrontation-admin-fields input { width:100%; min-height:39px; padding:0 10px; border:1px solid rgba(148,163,184,.24); border-radius:7px; color:#f8fafc; background:rgba(2,6,23,.38); outline:none; }
.confrontation-admin-fields input:focus { border-color:#38bdf8; box-shadow:0 0 0 2px rgba(56,189,248,.12); }
.confrontation-primary { min-height: 42px; padding: 8px 12px; }
.confrontation-status { min-height: 18px; color: #94a3b8; font-size: 11px; line-height: 1.4; }
.confrontation-status.error { color: #fca5a5; }
.reports-certificate-content [hidden] { display:none !important; }
.property-value-card,.property-value-review { display:grid; gap:20px; }
.property-value-card { color:#17242f; }
.property-value-hero { padding:20px; border:1px solid #b9c9d6; border-radius:12px; background:linear-gradient(135deg,#fff,#edf6fb); box-shadow:0 8px 22px rgba(23,49,71,.06); }
.property-value-hero>span { color:#fff; background:#176b87; }
.property-value-hero small { color:#176b87; font-size:14px; }
.property-value-hero h2 { color:#173147; font-size:22px; }
.property-value-hero p { color:#415c72; font-size:16px; line-height:1.5; }
.property-value-base-settings { overflow:hidden; border:1px solid #c6d4de; border-radius:12px; background:#fff; }
.property-value-base-settings>summary { min-height:64px; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:12px; padding:14px 16px; color:#173147; background:#f4f8fa; cursor:pointer; list-style:none; }
.property-value-base-settings>summary::-webkit-details-marker { display:none; }
.property-value-base-settings>summary>.material-symbols-outlined:first-child { width:38px; height:38px; display:grid; place-items:center; border-radius:9px; color:#176b87; background:#dceef4; }
.property-value-base-settings>summary>span:nth-child(2) { display:grid; gap:3px; }
.property-value-base-settings>summary strong { font-size:16px; }
.property-value-base-settings>summary small { color:#526b80; font-size:14px; line-height:1.35; }
.property-value-settings-chevron { color:#526b80; transition:transform .2s ease; }
.property-value-base-settings[open] .property-value-settings-chevron { transform:rotate(180deg); }
.property-value-base-settings-body { display:grid; gap:14px; padding:18px; border-top:1px solid #d8e1e8; }
.property-value-base-settings-body>p { margin:0; padding:11px 13px; border-radius:8px; color:#24536a; background:#edf6fb; font-size:14px; font-weight:700; }
.property-value-base-values { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.property-value-base-values>section { min-width:0; padding:14px; border:1px solid #d8e1e8; border-radius:10px; background:#f9fbfc; }
.property-value-base-values h3 { margin:0 0 10px; color:#173147; font-size:16px; }
.property-value-base-values section>div { display:grid; gap:8px; }
.property-value-base-values label { display:grid; grid-template-columns:minmax(100px,1fr) minmax(145px,.9fr); align-items:center; gap:10px; color:#314b60; font-size:14px; font-weight:700; }
.property-value-base-input { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; overflow:hidden; border:1px solid #becbd6; border-radius:8px; background:#fff; }
.property-value-base-input small { padding:0 8px; color:#526b80; font-size:13px; }
.property-value-base-input input { width:100%; min-width:0; min-height:42px; padding:8px; border:0; border-left:1px solid #d8e1e8; border-right:1px solid #d8e1e8; color:#17242f; background:#fff; font:inherit; text-align:right; outline:none; }
.property-value-base-input input:focus { box-shadow:inset 0 0 0 2px #176b87; }
.property-value-base-input input:disabled { color:#526b80; background:#eef3f6; }
.property-value-base-status { min-height:20px; color:#526b80; font-size:14px; }
.property-value-base-status.error { color:#a52a2a; }
.property-value-base-status.success { color:#176243; }
.property-value-base-settings #property-value-base-save { justify-self:end; min-height:44px; display:inline-flex; align-items:center; gap:8px; color:#fff; background:#176b87; }
.property-value-base-settings #property-value-base-save[hidden] { display:none; }
.property-value-card .confrontation-step { gap:12px; }
.property-value-card .confrontation-step b { color:#fff; background:#176b87; }
.property-value-card .confrontation-step strong { color:#173147; font-size:17px; }
.property-value-card .confrontation-step small { color:#526b80; font-size:14px; line-height:1.45; }
.property-value-card .confrontation-search label { color:#314b60; font-size:14px; }
.property-value-card .confrontation-search input { min-height:48px; border-color:#becbd6; color:#17242f; background:#fff; font-size:16px; }
.property-value-card .confrontation-search input::placeholder { color:#718291; }
.property-value-card .confrontation-search button { min-height:48px; color:#fff; background:#176b87; }
.property-value-card .confrontation-search button:hover { background:#12556c; }
.property-value-card .confrontation-status { min-height:20px; color:#526b80; font-size:14px; }
.property-value-card .confrontation-status.error { color:#a52a2a; }
.property-value-alerts { display:grid; gap:10px; }
.property-value-alerts>div { display:flex; align-items:flex-start; gap:9px; padding:12px 14px; border:1px solid #e0bd71; border-radius:10px; color:#6f4b0c; background:#fff8e8; font-size:14px; line-height:1.5; }
.property-value-alerts>div.ok { border-color:#9ac9b1; color:#176243; background:#effaf4; }
.property-value-alerts .material-symbols-outlined { font-size:20px; }
.property-value-source-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.property-value-source-summary article { display:grid; gap:5px; min-width:0; padding:16px; border:1px solid #d8e1e8; border-radius:10px; background:#fff; }
.property-value-source-summary small { color:#176b87; font-size:14px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.property-value-source-summary strong { overflow-wrap:anywhere; color:#173147; font-size:16px; }
.property-value-source-summary span { overflow-wrap:anywhere; color:#526b80; font-size:14px; line-height:1.45; }
.property-value-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; padding:20px; border:1px solid #aac2d3; border-radius:12px; background:#f7fbfd; }
.property-value-fields label { display:grid; align-content:start; gap:7px; color:#314b60; font-size:14px; font-weight:700; }
.property-value-fields .property-value-wide { grid-column:1/-1; }
.property-value-fields input,.property-value-fields select,.property-value-fields textarea { width:100%; min-height:48px; padding:10px 12px; border:1px solid #becbd6; border-radius:8px; color:#17242f; background:#fff; outline:none; font:inherit; font-size:16px; }
.property-value-fields textarea { min-height:88px; resize:vertical; }
.property-value-fields input:focus,.property-value-fields select:focus,.property-value-fields textarea:focus,.property-value-card .confrontation-search input:focus { border-color:#176b87; box-shadow:0 0 0 3px rgba(23,107,135,.16); }
.property-value-fields input:disabled { color:#526b80; background:#eef3f6; }
.property-value-confirmation { display:flex; align-items:flex-start; gap:10px; padding:14px; border:1px solid #e0bd71; border-radius:10px; color:#6f4b0c; background:#fff8e8; font-size:14px; line-height:1.5; }
.property-value-confirmation input { margin-top:2px; }
.property-value-emission-mode { display:grid; gap:10px; margin:0; padding:16px; border:1px solid #aac2d3; border-radius:12px; background:#f7fbfd; }
.property-value-emission-mode legend { padding:0 6px; color:#173147; font-size:16px; font-weight:800; }
.property-value-emission-mode label { display:flex; align-items:flex-start; gap:10px; padding:12px; border:1px solid #d8e1e8; border-radius:9px; color:#314b60; background:#fff; cursor:pointer; }
.property-value-emission-mode label:has(input:checked) { border-color:#176b87; box-shadow:0 0 0 2px rgba(23,107,135,.12); background:#edf6fb; }
.property-value-emission-mode input { margin-top:3px; accent-color:#176b87; }
.property-value-emission-mode span { display:grid; gap:3px; }
.property-value-emission-mode strong { color:#173147; font-size:16px; }
.property-value-emission-mode small { color:#526b80; font-size:14px; line-height:1.4; }
.property-value-card #property-value-issue { min-height:48px; padding:10px 18px; color:#fff; background:#176b87; }
.property-value-card #property-value-issue:hover { background:#12556c; }
.property-value-certificate .official-certificate-title { margin-top:18px; font-size:25px; font-weight:700; }
.property-value-certificate .official-certificate-body { padding-top:24px; font-size:15px; line-height:1.55; }
.property-value-certificate .official-certificate-body>p:first-child { text-indent:0; }
.property-value-certificate .property-value-words { text-transform:lowercase; }
.property-value-certificate .property-value-guide { margin-top:42px; font-weight:700; }
.property-value-certificate .property-value-date { margin-top:58px; font-weight:700; }
.property-value-signature { margin:8px auto 10px; }
.confrontation-certificate > .property-value-certificate + .property-value-certificate { margin-top:20px; border-top:2px solid #d8e1e8; }
.confrontation-dialog { width: min(820px, calc(100vw - 28px)); }
.confrontation-dialog form { max-height: min(900px, calc(100vh - 28px)); overflow: auto; }
.confrontation-dialog > form > footer { flex-wrap:wrap; }
.confrontation-dialog #confrontation-govbr-sign { display:inline-flex;align-items:center;gap:7px;border:0;border-radius:8px;padding:10px 14px;color:#fff;background:#168821;font-weight:800;cursor:pointer; }
.confrontation-dialog #confrontation-govbr-sign:disabled { opacity:.55;cursor:wait; }
.confrontation-dialog #confrontation-manual-download { display:inline-flex;align-items:center;gap:7px;border:1px solid #6b7785;border-radius:8px;padding:10px 14px;color:#243746;background:#fff;font-weight:800;cursor:pointer; }
.confrontation-dialog #confrontation-manual-download[hidden] { display:none!important; }
.confrontation-dialog #confrontation-manual-download:hover { border-color:#334e62;background:#f2f5f7; }
.confrontation-dialog #confrontation-manual-download:disabled { opacity:.48;cursor:wait; }
.confrontation-dialog #confrontation-print:disabled { opacity:.48;cursor:not-allowed; }
.app.reports-workspace,
.app.reports-workspace.panel-open { grid-template-columns:66px minmax(720px,64vw) minmax(220px,1fr); }
.confrontation-review-dialog[open] { position:fixed;z-index:2500;inset:0 auto 0 66px;width:max(720px,64vw);height:100vh;max-width:calc(100vw - 286px);max-height:100vh;margin:0;border-radius:0; }
.confrontation-review-dialog form { max-height:100vh;overflow:auto; }
.confrontation-review-dialog::backdrop { display:none;background:transparent;backdrop-filter:none; }
.confrontation-review-content { display:grid;gap:16px;color:var(--ui-text,#172033); }
.confrontation-review-summary { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
.confrontation-review-summary article { min-width:0;display:grid;gap:5px;padding:14px;border:1px solid var(--ui-border,#dbe3ec);border-radius:9px;background:var(--ui-surface-soft,#f8fafc); }
.confrontation-review-summary small,.confrontation-review-side>header small { color:var(--ui-primary,#176b87);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em; }
.confrontation-review-summary strong { overflow-wrap:anywhere;font-size:15px; }
.confrontation-review-summary span { overflow-wrap:anywhere;color:var(--ui-text-soft,#52647a);font-size:13px;line-height:1.45; }
.confrontation-review-front { display:flex;align-items:flex-start;gap:10px;padding:13px 14px;border:1px solid #9ac9b1;border-radius:9px;color:#176243;background:#effaf4; }
.confrontation-review-front .material-symbols-outlined { font-size:21px; }
.confrontation-review-front span:last-child { display:grid;gap:3px; }
.confrontation-review-front small { color:#39735a; }
.confrontation-review-front.needs-confirmation { border-color:#e0bd71;color:#6f4b0c;background:#fff8e8; }
.confrontation-review-front.needs-confirmation small { color:#76510d;line-height:1.4; }
.confrontation-review-front.needs-confirmation label { display:grid;gap:5px;margin-top:7px;color:#6f4b0c;font-size:12px;font-weight:800; }
.confrontation-review-front.needs-confirmation select { width:100%;min-height:38px;padding:7px 9px;border:1px solid #d1a34f;border-radius:7px;color:var(--ui-text,#172033);background:var(--ui-surface,#fff);font:13px Arial,sans-serif; }
.confrontation-review-front.needs-confirmation select:focus { outline:0;border-color:var(--ui-primary,#176b87);box-shadow:0 0 0 3px rgba(23,107,135,.14); }
.confrontation-review-front .confrontation-review-front-confirm { grid-template-columns:auto minmax(0,1fr);align-items:start;padding:9px;border:1px solid #e0bd71;border-radius:7px;background:#fff;cursor:pointer;font-weight:700;line-height:1.4; }
.confrontation-review-front-confirm input { width:17px;height:17px;margin:1px 0 0;accent-color:var(--ui-primary,#176b87); }
.confrontation-review-sides { display:grid;grid-template-columns:1fr;gap:12px;align-items:start; }
.confrontation-review-side { min-width:0;display:grid;gap:10px;padding:13px;border:1px solid var(--ui-border,#dbe3ec);border-radius:10px;background:var(--ui-surface,#fff); }
.confrontation-review-side>header { display:flex;justify-content:space-between;align-items:center;margin:0;padding:0 0 9px;border-bottom:1px solid var(--ui-border,#dbe3ec); }
.confrontation-review-side>header strong { font-size:15px; }
.confrontation-review-side-list { display:grid;gap:8px; }
.confrontation-review-item { display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 8px;padding:10px;border:1px solid var(--ui-border,#dbe3ec);border-radius:8px;background:var(--ui-surface-soft,#f8fafc); }
.confrontation-review-item>span { min-width:0;display:grid;gap:3px; }
.confrontation-review-item strong,.confrontation-review-item small { overflow-wrap:anywhere; }
.confrontation-review-item small { color:var(--ui-text-soft,#52647a);line-height:1.35; }
.confrontation-review-item em { width:max-content;padding:2px 6px;border-radius:999px;color:#176243;background:#dff4e8;font:700 9px Arial,sans-serif;text-transform:uppercase; }
.confrontation-review-item em.manual { color:#76510d;background:#fff0c7; }
.confrontation-review-item button { width:30px;height:30px;display:grid;place-items:center;border:1px solid #efb5b5;border-radius:6px;color:#a52a2a;background:#fff;cursor:pointer; }
.confrontation-review-item button .material-symbols-outlined { font-size:18px; }
.confrontation-review-empty { margin:0;padding:10px;border:1px dashed #d1a34f;border-radius:7px;color:#76510d;background:#fff8e8;font-size:12px;line-height:1.4; }
.confrontation-review-add { display:grid;gap:6px;padding-top:4px; }
.confrontation-review-add label { color:var(--ui-text-soft,#52647a);font-size:11px;font-weight:700; }
.confrontation-review-add textarea { width:100%;min-height:66px;padding:8px;border:1px solid var(--ui-border,#cbd5e1);border-radius:7px;color:var(--ui-text,#172033);background:var(--ui-surface,#fff);font:13px Arial,sans-serif;resize:vertical; }
.confrontation-review-add textarea:focus { outline:0;border-color:var(--ui-primary,#176b87);box-shadow:0 0 0 3px rgba(23,107,135,.14); }
.confrontation-review-add button { min-height:34px;display:flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:7px;color:#fff;background:var(--ui-primary,#176b87);font-weight:800;cursor:pointer; }
.confrontation-review-add button .material-symbols-outlined { font-size:17px; }
.confrontation-review-warnings { display:grid;gap:7px; }
.confrontation-review-warnings p { margin:0;padding:9px 11px;border:1px solid #e0bd71;border-radius:7px;color:#6f4b0c;background:#fff8e8;font-size:12px;line-height:1.4; }
.confrontation-review-status { min-height:20px;margin-top:10px;color:var(--ui-text-soft,#52647a);font-size:13px; }
.confrontation-review-status.error { color:#a52a2a; }
.confrontation-review-dialog #confrontation-review-confirm { color:#fff;border-color:var(--ui-primary,#176b87);background:var(--ui-primary,#176b87);font-weight:800; }
.govbr-signature-result-dialog { width:min(560px,calc(100vw - 28px)); }
.govbr-signature-result-content { display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;align-items:start;padding:22px; }
.govbr-signature-result-content>span { display:grid;place-items:center;width:48px;height:48px;border-radius:50%;color:#fff;background:#168821;font-size:28px; }
.govbr-signature-result-content strong { display:block;color:#172033;font-size:18px; }
.govbr-signature-result-content p { margin:7px 0 0;color:#52647a;line-height:1.5; }
.govbr-signature-result-content a { display:inline-block;margin-top:10px;color:#1351b4;font-weight:700; }
.govbr-signature-download { display:inline-flex;align-items:center;gap:7px;border-radius:8px;padding:10px 14px;color:#fff;background:#168821;text-decoration:none;font-weight:800; }
.confrontation-certificate { padding: 32px 38px; color: #111827; background: #fff; font-family: Georgia, 'Times New Roman', serif; }
.certificate-heading { padding-bottom: 18px; border-bottom: 2px solid #111827; text-align: center; }
.certificate-heading small { display: block; margin-bottom: 7px; color: #475569; font: 700 10px Arial,sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.certificate-heading h1 { margin: 0; font-size: 22px; text-transform: uppercase; }
.certificate-number { margin: 9px 0 0; font: 12px Arial,sans-serif; color: #475569; }
.certificate-body { margin-top: 24px; font-size: 15px; line-height: 1.7; text-align: justify; }
.certificate-body strong { color: #111827; }
.certificate-table { width: 100%; margin: 22px 0; border-collapse: collapse; font: 13px Arial,sans-serif; }
.certificate-table th, .certificate-table td { padding: 10px 12px; border: 1px solid #cbd5e1; text-align: left; vertical-align: top; }
.certificate-table th { width: 25%; color: #334155; background: #f1f5f9; }
.certificate-property-table { margin-bottom: 28px; }
.certificate-section-title { margin: 26px 0 -8px; color: #111827; font: 700 15px Arial,sans-serif; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.certificate-note { color: #475569; font: 11px/1.5 Arial,sans-serif; }
.certificate-signature { width: 280px; margin: 70px auto 10px; padding-top: 8px; border-top: 1px solid #111827; text-align: center; font: 12px Arial,sans-serif; }
.official-certificate { min-height:1040px; display:flex; flex-direction:column; color:#090909; font-family:'Times New Roman',Times,serif; }
.official-certificate-header { display:grid; grid-template-columns:86px minmax(0,1fr) 86px; align-items:center; text-align:center; }
.official-certificate-header img { width:72px; height:auto; justify-self:center; }
.official-certificate-header div { grid-column:2; }
.official-certificate-header h1,.official-certificate-header h2,.official-certificate-header h3 { margin:0; color:#000; line-height:1.12; }
.official-certificate-header h1 { font-size:22px; }
.official-certificate-header h2 { font-size:17px; }
.official-certificate-header h3 { margin-top:3px; font-size:14px; font-style:italic; }
.official-certificate-header strong { display:block; margin-top:2px; font-size:13px; }
.official-certificate-title { width:max-content; max-width:100%; margin:25px auto 22px; border-bottom:1px solid #000; color:#000; font-size:17px; font-weight:400; text-align:center; }
.official-certificate-body { flex:1; font-size:15px; line-height:1.72; text-align:justify; }
.official-certificate-body p { margin:0 0 9px; }
.official-certificate-body>p:first-child { text-indent:28px; }
.official-certificate-body em { font-weight:700; text-transform:uppercase; }
.official-certificate-body b { font-style:italic; }
.official-certificate-administration { display:flex; justify-content:space-between; gap:20px; margin:30px 0 8px; }
.official-certificate-signature { width:320px; display:grid; justify-items:center; gap:1px; margin:54px auto 16px; text-align:center; }
.official-certificate-signature span { min-height:18px; font-style:italic; }
.official-certificate-signature small { min-height:15px; font-size:12px; font-style:italic; }
.official-certificate-signature strong { margin-top:5px; color:#000; font-size:15px; }
.official-certificate-authenticity { display:grid; grid-template-columns:76px minmax(0,1fr); align-items:center; gap:12px; margin:12px 0 14px; padding:8px 10px; border:1px solid #aaa; border-radius:4px; font-family:Arial,sans-serif; text-align:left; }
.official-certificate-authenticity img { width:76px; height:76px; }
.official-certificate-authenticity div { display:grid; gap:5px; }
.official-certificate-authenticity strong { color:#111; font-size:11px; text-transform:uppercase; }
.official-certificate-authenticity span { color:#222; font-size:9px; line-height:1.35; }
.official-certificate-authenticity small { color:#111; font-size:9px; font-weight:700; letter-spacing:.03em; }
.certificate-pdf-export-stage { position:fixed; top:0; left:-10000px; width:794px; pointer-events:none; background:#fff; }
.certificate-pdf-export-page { box-sizing:border-box; width:794px; min-height:1123px; padding:45px 68px 38px; overflow:hidden; background:#fff; }
.certificate-pdf-export-page .official-certificate { width:100%; min-height:1040px; }
.property-value-batch-preview-notice { display:flex; align-items:flex-start; gap:14px; margin:18px auto; padding:18px; max-width:760px; border:1px solid #aac2d3; border-radius:12px; color:#173147; background:#edf6fb; }
.property-value-batch-preview-notice .material-symbols-outlined { color:#176b87; font-size:30px; }
.property-value-batch-preview-notice strong { display:block; margin-bottom:4px; font-size:17px; }
.property-value-batch-preview-notice p { margin:0; color:#405d73; line-height:1.5; }
.official-certificate-footer { display:grid; grid-template-columns:56px minmax(0,1fr) 56px; align-items:end; margin-top:auto; padding:0 0 5px; border-bottom:1px solid #000; text-align:center; }
.official-certificate-footer img { width:50px; grid-column:1; justify-self:center; margin-bottom:-17px; }
.official-certificate-footer span { grid-column:2; font-size:10px; font-style:italic; }
.confrontation-certificate .official-certificate-header { display:grid; align-items:center; padding:0; margin:0; border:0; }
.confrontation-certificate .official-certificate-header h1 { color:#000; font-size:22px; }
.confrontation-certificate .official-certificate-header h2 { color:#000; font-size:17px; }
.confrontation-certificate .official-certificate-header h3 { color:#000; font-size:14px; }
.confrontation-certificate .official-certificate-title { color:#000; font-size:17px; letter-spacing:0; }
.confrontation-certificate .official-certificate-footer { display:grid; justify-content:initial; gap:0; padding:0 0 5px; margin-top:auto; border-top:0; border-bottom:1px solid #000; }
.location-only-certificate .official-certificate-body>p:nth-child(2) { margin-top:24px; }
@media(max-width:1006px){.app.reports-workspace,.app.reports-workspace.panel-open{grid-template-columns:66px minmax(0,1fr) 0}.confrontation-review-dialog[open]{right:0;width:auto;max-width:none}}
@media(max-width:780px){.confrontation-review-summary{grid-template-columns:1fr}}
@media(max-width:720px){.app.reports-workspace,.app.reports-workspace.panel-open{grid-template-columns:58px minmax(0,1fr)}.confrontation-review-dialog[open]{inset:0 0 58px 58px;width:auto;height:auto;max-width:none;max-height:calc(100vh - 58px)}.confrontation-review-dialog form{max-height:calc(100vh - 58px)}}
@media(max-width:620px){.confrontation-admin-fields,.property-value-fields,.property-value-source-summary,.property-value-base-values{grid-template-columns:1fr}.property-value-fields .property-value-wide{grid-column:auto}.property-value-base-settings>summary{align-items:start}.property-value-base-values label{grid-template-columns:1fr}.confrontation-dialog>form>footer>button,.confrontation-review-dialog>form>footer>button{flex:1 1 100%;justify-content:center}.official-certificate-header{grid-template-columns:60px minmax(0,1fr)}.official-certificate-header img{width:52px}.official-certificate-header h1{font-size:17px}.official-certificate-title{font-size:14px}.official-certificate-body{font-size:13px}.official-certificate-authenticity{grid-template-columns:64px minmax(0,1fr)}.official-certificate-authenticity img{width:64px;height:64px}}

@media print {
  @page { size:A4 portrait; margin:0; }
  body:has(#confrontation-dialog[open]) > :not(#confrontation-dialog) { display: none !important; }
  #confrontation-dialog[open] { position: static; width: 100%; max-width: none; height: auto; max-height: none; display: block; margin: 0; border: 0; background: #fff; }
  #confrontation-dialog::backdrop, #confrontation-dialog > form > header, #confrontation-dialog > form > footer { display: none !important; }
  #confrontation-dialog form { max-height: none; overflow: visible; background: #fff; }
  #confrontation-dialog .confrontation-certificate { padding: 12mm 18mm 10mm; }
  #confrontation-dialog .official-certificate { min-height:275mm; }
  #confrontation-dialog .property-value-certificate + .property-value-certificate { margin-top:0; border-top:0; break-before:page; page-break-before:always; }
  body:has(#inspection-detail-dialog[open]) > :not(#inspection-detail-dialog) { display: none !important; }
  body:has(#confrontation-dialog[open]) > #confrontation-dialog { display: block !important; }
  #inspection-detail-dialog[open] { position: static; width: 100%; max-width: none; height: auto; max-height: none; display: block; margin: 0; border: 0; color: #111827; background: #fff; }
  #inspection-detail-dialog::backdrop, #inspection-detail-dialog header button, #inspection-detail-dialog footer { display: none !important; }
  #inspection-detail-dialog form { max-height: none; overflow: visible; color: #111827; background: #fff; }
  #inspection-detail-dialog header h2, #inspection-detail-dialog strong, #inspection-detail-dialog dd { color: #111827 !important; }
  #inspection-detail-dialog .inspection-detail-meta > div, #inspection-detail-dialog .inspection-detail-answers > div { border-color: #d1d5db; background: #fff; }
  #inspection-detail-dialog .inspection-detail-photos { grid-template-columns: repeat(3, 1fr); }
  body:has(#environmental-post-dialog[open]) > :not(#environmental-post-dialog) { display: none !important; }
  #environmental-post-dialog[open] { position: static; width: 100%; max-width: none; height: auto; max-height: none; display: block; margin: 0; border: 0; color: #111827; background: #fff; }
  #environmental-post-dialog::backdrop, #environmental-post-dialog header button, #environmental-post-dialog > form > footer, #environmental-post-dialog .inspection-message { display: none !important; }
  #environmental-post-dialog form { max-height: none; overflow: visible; color: #111827; background: #fff; }
  #environmental-post-dialog form > :not(.environmental-print-document) { display: none !important; }
  #environmental-post-dialog .environmental-print-document { display: block; margin: 0; padding: 10mm 12mm; }
  #environmental-post-dialog .environmental-print-document :is(p,li,dd,span,strong,b) { font-size:9px !important;line-height:1.35; }
  #environmental-post-dialog .environmental-print-document :is(small,dt,time) { color:#334155 !important;font-size:8px !important;line-height:1.3; }
  #environmental-post-dialog .environmental-print-document h1 { font-size:18px !important; }
  #environmental-post-dialog .environmental-print-document h2 { font-size:9px !important; }
  #environmental-post-dialog .environmental-print-document { break-inside:avoid; }
  #environmental-post-dialog .environmental-print-document { print-color-adjust:exact;-webkit-print-color-adjust:exact; }
  #environmental-post-dialog .environmental-print-page { min-height:277mm;margin:10mm -12mm -10mm!important;padding:10mm 12mm;break-before:page;page-break-before:always;print-color-adjust:exact;-webkit-print-color-adjust:exact; }
  #environmental-post-dialog .environmental-print-page > header { display:grid!important; }
  #environmental-post-dialog .environmental-print-verso > footer { display:block!important; }
  #environmental-post-dialog .environmental-mail-labels { grid-template-columns:1fr 1fr; }
  #environmental-post-dialog input, #environmental-post-dialog select, #environmental-post-dialog textarea { color: #111827; border-color: #cbd5e1; background: #fff; }
  #environmental-post-dialog strong, #environmental-post-dialog b, #environmental-post-dialog dd { color: #111827 !important; }
}

/* =========================================================
   TEMA CLARO — WebGeo
   Paleta: azul cívico, ciano, verde ambiental e neutros frios
========================================================= */
:root {
  color-scheme: light;
  --light-bg: #f4f7fb;
  --light-surface: #ffffff;
  --light-surface-soft: #f8fafc;
  --light-surface-blue: #f0f7ff;
  --light-border: #dbe4ef;
  --light-border-strong: #c7d4e3;
  --light-text: #172033;
  --light-text-soft: #52647a;
  --light-text-muted: #718198;
  --light-primary: #2563eb;
  --light-primary-hover: #1d4ed8;
  --light-primary-soft: #e8f1ff;
  --light-cyan: #0284c7;
  --light-green: #059669;
  --light-shadow: 0 10px 30px rgba(30, 64, 105, .09);
}

@media screen {
  html, body { background: var(--light-bg); color: var(--light-text); }
  body { scrollbar-color: #b8c7d9 #eef3f8; }

  .platform-rail,
  .sidebar { color: #42546a; background: rgba(255,255,255,.97); border-color: var(--light-border); box-shadow: 4px 0 20px rgba(30,64,105,.06); }
  .platform-module-btn { color: #64748b; }
  .platform-module-btn:hover { color: var(--light-primary); background: var(--light-primary-soft); }
  .platform-module-btn.active { color: #1d4ed8; border-left-color: var(--light-primary); background: #eaf2ff; }
  .notification-module-button b { border-color: #fff; }
  .menu-group { color: #8493a7; }

  .platform-panel,
  .panel,
  .panel-content { color: var(--light-text); background: var(--light-bg); border-color: var(--light-border); box-shadow: none; }
  .platform-panel-header { border-color: var(--light-border); background: rgba(255,255,255,.88); backdrop-filter: blur(16px); }
  .platform-panel-header h1,
  .panel-title,
  .module-card h2 { color: var(--light-text); }
  .platform-panel-header span { color: var(--light-primary); }
  .platform-panel-close { color: #52647a; border-color: var(--light-border); background: #f8fafc; }
  .platform-panel-close:hover { color: #1d4ed8; background: #eaf2ff; }
  .workspace-map-toggle { color: #1d4ed8; border-color: #bfdbfe; background: #eff6ff; }
  .platform-panel-header .workspace-map-toggle span:last-child,
  .platform-panel-header .workspace-map-toggle .material-symbols-outlined { color: #1d4ed8; }

  .metric-card,
  .module-card,
  .card,
  .analytics-card,
  .project-card,
  .access-overview,
  .admin-tool-card,
  .inspection-dashboard-grid .module-card,
  .inspection-list-card,
  .inspection-review-card { color: var(--light-text); border-color: var(--light-border); background: var(--light-surface); box-shadow: 0 5px 18px rgba(30,64,105,.055); }
  .metric-card strong,
  .card strong,
  .module-card strong,
  .admin-stat-grid strong,
  .admin-profile-list strong { color: var(--light-text); }
  .metric-card small,
  .module-muted,
  .card span,
  .project-section-note { color: var(--light-text-muted); }
  .module-grid button { color: #41546b; border-color: var(--light-border); background: #f8fafc; }
  .module-grid button:hover,
  .module-view[data-module-view="admin"] .module-grid button.active { color: #1d4ed8; border-color: #93c5fd; background: #eff6ff; }

  .login-screen { color: var(--light-text); background: radial-gradient(circle at 12% 18%, rgba(37,99,235,.11), transparent 31%), radial-gradient(circle at 84% 80%, rgba(5,150,105,.08), transparent 34%), #f5f8fc; }
  .login-screen::before { opacity: .22; }
  .login-intro h1,
  .login-card h2 { color: #132238; }
  .login-intro p,
  .login-card-heading p,
  .login-status,
  .login-options { color: #66768b; }
  .login-card { border-color: #d9e3ef; background: rgba(255,255,255,.92); box-shadow: 0 25px 70px rgba(31,72,122,.13); backdrop-filter: blur(20px); }
  .login-field > span { color: #40536a; }
  .login-field > div,
  .login-demo button { color: #334155; border-color: #d7e1ec; background: #f8fafc; }
  .login-field input { color: #172033; }
  .login-field input::placeholder { color: #9aa8b9; }
  .login-register { color: #40536a; border-color: #cbd7e5; }
  .login-demo { border-color: #e1e8f0; }
  .login-screen footer { color: #7b899b; border-color: #dfe7f0; }
  .login-submit { color: #fff; background: var(--light-primary); box-shadow: 0 8px 20px rgba(37,99,235,.2); }
  .login-submit:hover { background: var(--light-primary-hover); }

  .user-dialog { color: var(--light-text); border-color: var(--light-border); background: #fff; box-shadow: 0 28px 80px rgba(37,61,92,.2); }
  .user-dialog::backdrop { background: rgba(42,57,78,.35); backdrop-filter: blur(4px); }
  .user-dialog header,
  .user-dialog footer { border-color: var(--light-border); }
  .user-dialog h2,
  .user-dialog strong { color: var(--light-text); }
  .user-dialog header button { color: #64748b; }
  .user-dialog header button:hover { color: #1d4ed8; background: #eff6ff; }
  .user-dialog footer button { color: #40536a; border-color: var(--light-border); background: #f8fafc; }
  .user-dialog footer button[type="submit"] { color: #fff; border-color: var(--light-primary); background: var(--light-primary); }
  .user-form-grid input,
  .user-form-grid select,
  .user-form-grid textarea,
  .reset-password-field input,
  .environmental-post-grid input,
  .environmental-post-grid select,
  .environmental-notes textarea,
  .inspection-form-grid input,
  .inspection-form-grid select,
  .inspection-form-grid textarea,
  .dirty-lot-return-fields input,
  .dirty-lot-return-fields select,
  .dirty-lot-return-fields textarea { color: #172033; border-color: #cfdbe8; background: #fff; }
  input::placeholder, textarea::placeholder { color: #94a3b8; }
  select option { color: #172033; background: #fff; }

  .access-capabilities label,
  .access-option-grid label,
  .admin-session-list button,
  .admin-users-heading-actions button,
  .admin-user-actions button { color: #52647a; border-color: var(--light-border); background: #f8fafc; }
  .admin-user-row,
  .admin-group-list > div,
  .admin-event-list > div,
  .admin-session-list > div,
  .admin-component-list > div { border-color: #e5ebf2; }
  .admin-user-row strong,
  .admin-group-list strong,
  .admin-event-list strong,
  .admin-session-list strong,
  .admin-component-list span,
  .admin-tool-header h2 { color: #24344a; }
  .admin-user-row small,
  .admin-group-list small,
  .admin-event-list small,
  .admin-session-list small,
  .admin-tool-header small { color: #718198; }
  .admin-role { color: #52647a; background: #eef2f7; }
  .admin-stat-grid,
  .admin-profile-list > div,
  .admin-permission-table { border-color: var(--light-border); }

  .inspection-ops-hero,
  .inspection-records-hero { border-color: #cfe0f2; background: radial-gradient(circle at 88% 8%, rgba(37,99,235,.1), transparent 34%), linear-gradient(135deg,#fff,#eef6ff); box-shadow: var(--light-shadow); }
  .inspection-ops-identity h1,
  .inspection-records-hero h1,
  .inspection-hero strong { color: #172033; }
  .inspection-ops-identity p,
  .inspection-records-hero p,
  .inspection-hero small { color: #63748a; }
  .inspection-ops-identity small,
  .inspection-records-hero small,
  .inspection-hero span { color: #2563eb; }
  .inspection-ops-identity > .material-symbols-outlined,
  .inspection-records-hero > .material-symbols-outlined { color: #2563eb; border-color: #bfdbfe; background: #eaf2ff; }
  .inspection-hero-daily > div { border-color: #dce6f1; background: rgba(255,255,255,.74); }
  .inspection-hero-daily span { color: #718198; }
  .inspection-hero-daily strong { color: #24344a; }

  .inspection-ops-kpis article,
  .inspection-records-metrics article,
  .inspection-management-metrics article,
  .inspection-metrics > div { border-color: color-mix(in srgb,var(--kpi,#3b82f6) 20%,#dbe4ef); background: linear-gradient(145deg,color-mix(in srgb,var(--kpi,#3b82f6) 5%,#fff),#fff); box-shadow: 0 4px 15px rgba(30,64,105,.055); }
  .inspection-ops-kpis strong,
  .inspection-records-metrics strong,
  .inspection-management-metrics strong,
  .inspection-metrics strong { color: #1e293b; }
  .inspection-ops-kpis small,
  .inspection-records-metrics small,
  .inspection-management-metrics span,
  .inspection-metrics span { color: #66768b; }
  .inspection-ops-kpis em { color: #8997a9; }

  .inspection-action-grid article { border-color: color-mix(in srgb,var(--action) 26%,#dbe4ef); background: radial-gradient(circle at 100% 0,color-mix(in srgb,var(--action) 10%,transparent),transparent 45%),#fff; box-shadow: 0 5px 18px rgba(30,64,105,.06); }
  .inspection-action-grid article:hover { box-shadow: 0 14px 30px rgba(30,64,105,.12); }
  .inspection-action-grid h2 { color: #203148; }
  .inspection-action-grid p { color: #68788d; }
  .inspection-action-grid button { color: color-mix(in srgb,var(--action) 78%,#172033); background: color-mix(in srgb,var(--action) 9%,#fff); }

  .inspection-filter-console,
  .inspection-dashboard-toolbar,
  .inspection-records-filters { border-color: var(--light-border); background: rgba(255,255,255,.94); box-shadow: 0 10px 26px rgba(30,64,105,.08); }
  .inspection-filter-console input,
  .inspection-filter-console select,
  .inspection-dashboard-toolbar input,
  .inspection-dashboard-toolbar select,
  .inspection-records-filters input,
  .inspection-records-filters select { color: #24344a; border-color: #d5e0ec; background: #f8fafc; }
  .inspection-filter-heading > div { color: #2b3e55; }
  .inspection-quick-filters button,
  .inspection-dashboard-toolbar > button { color: #5f7085; border-color: #dbe4ef; background: #f8fafc; }
  .inspection-quick-filters button.active,
  .inspection-quick-filters button:hover { color: #1d4ed8; border-color: #93c5fd; background: #eff6ff; }

  .inspection-journey-panel,
  .inspection-fiscal-welcome,
  .environmental-lot-selection { border-color: #cfe0ef; background: linear-gradient(145deg,#fff,#f1f7fd); }
  .inspection-journey-empty strong,
  .inspection-journey-heading strong,
  .inspection-fiscal-welcome strong,
  .environmental-lot-selection strong { color: #26384e; }
  .inspection-journey-empty,
  .inspection-journey-heading span,
  .inspection-fiscal-welcome span,
  .environmental-lot-selection small { color: #6d7d91; }
  .inspection-journey-progress i { background: #dce6f1; }
  .inspection-journey-step .material-symbols-outlined { border-color: #cbd7e5; background: #fff; }
  .inspection-journey-step::before { background: #d6e0eb; }
  .inspection-fiscal-queue-metrics button { color: #334155; border-color: var(--light-border); background: #fff; }
  .inspection-fiscal-queue-metrics strong { color: #1e293b; }
  .inspection-fiscal-queue-metrics span { color: #6b7b90; }

  .inspection-form,
  .inspection-demand-form,
  .inspection-operation-card,
  .inspection-demand-item,
  .inspection-record-card,
  .dirty-lot-card { color: var(--light-text); border-color: var(--light-border); background: #fff; box-shadow: 0 5px 18px rgba(30,64,105,.055); }
  .inspection-form-header,
  .inspection-demand-item header,
  .dirty-lot-card header { border-color: #e2e8f0; }
  .inspection-form-header h2,
  .inspection-demand-item h3,
  .inspection-operation-main h3,
  .inspection-record-card h3,
  .dirty-lot-card h3 { color: #1e293b; }
  .inspection-form-header button,
  .inspection-icon-button,
  .inspection-item > button { color: #52647a; border-color: var(--light-border); background: #f8fafc; }
  .inspection-photos,
  .inspection-documents,
  .inspection-location,
  .environmental-infractions { color: #40536a; border-color: #d8e2ed; background: #fbfdff; }
  .inspection-photo-capture,
  .inspection-document-capture,
  .environmental-infractions label { color: #334155; border-color: #dbe4ef; background: #fff; }
  .inspection-operation-meta span,
  .inspection-operation-evidence span,
  .inspection-detail-meta > div,
  .inspection-detail-answers > div { border-color: #e0e8f1; background: #f8fafc; }
  .inspection-operation-meta strong,
  .inspection-detail-meta dd,
  .inspection-detail-answers dd { color: #293b52; }
  .inspection-operation-meta small,
  .inspection-detail-meta dt,
  .inspection-detail-answers dt { color: #718198; }
  .inspection-operation-progress > span { background: #e1e8f0; }
  .inspection-operation-main strong { color: #2563eb; }
  .inspection-operation-progress b { color: #2563eb; }
  .inspection-item strong,
  .inspection-demand-item > strong,
  .inspection-review-list article strong,
  .inspection-history-event strong,
  .inspection-detail-summary strong { color: #26384e; }
  .inspection-form-grid label > span,
  .dirty-lot-return-fields span,
  .dirty-lot-return-fields legend { color: #52647a; }
  .inspection-photo-capture strong,
  .inspection-document-capture strong,
  .inspection-location strong { color: #293b52; }
  .inspection-record-card:hover { border-color: #93c5fd !important; background: #f7fbff; }
  .inspection-progress-checklist span { color: #64748b; background: #eef2f7; }
  .inspection-form-actions #inspection-save-draft { color: #40536a; border-color: #cbd7e5; background: #f8fafc; }
  .inspection-demand-actions button { color: #5b21b6; border-color: #ddd6fe; background: #f5f3ff; }
  .inspection-demand-actions button.environmental-action { color: #9a5a05; border-color: #fcd991; background: #fffbeb; }
  .inspection-review-actions button,
  .inspection-history-event > .material-symbols-outlined { color: #52647a; border-color: var(--light-border); background: #f8fafc; }
  .inspection-detail-documents a { color: #334155; border-color: var(--light-border); background: #f8fafc; }

  .environmental-post-rule { color: #334155; border-color: #bfdbfe; background: #eff6ff; }
  .environmental-post-rule strong { color: #1e3a5f; }
  .environmental-post-rule small,
  .environmental-post-grid label > span,
  .environmental-notes > span { color: #63748a; }
  .environmental-check { border-color: #bbf7d0; background: #f0fdf4; }
  .environmental-check > span { color: #166534 !important; }
  .environmental-calculation { border-color: #bae6fd; background: linear-gradient(135deg,#effaff,#fff9ed); }
  .environmental-calculation strong,
  .environmental-calculation dd { color: #203148; }

  .dirty-lot-dashboard { border-color: #cfe0ef; background: #fff; box-shadow: var(--light-shadow); }
  .action-dirty-lot { border-color:#d9e9bd !important; background:linear-gradient(145deg,#fbfff5,#fff) !important; }
  .action-dirty-lot button { color:#3f6212 !important; border-color:#bef264 !important; background:#f7fee7 !important; }
  .dirty-lot-dashboard h2,
  .dirty-lot-list-heading strong,
  .dirty-lot-kpis strong,
  .dirty-lot-detail-summary strong,
  .dirty-lot-detail-grid strong { color:#26384e; }
  .dirty-lot-kpis button,
  .dirty-lot-detail-grid > div { color: #334155; border-color: var(--light-border); background: #f8fafc; }
  .dirty-lot-card dd { color:#52647a; }
  .dirty-lot-return-fields fieldset,
  .dirty-lot-checklist,
  .dirty-lot-check { border-color:#dbe4ef; background:#f8fafc; }
  .dirty-lot-return-fields fieldset button,
  .dirty-lot-return-fields fieldset label { color:#3f6212; border-color:#bef264; background:#f7fee7; }

  .org-hero { border-color:#cfe0ef; background:linear-gradient(135deg,#fff,#eef6ff); }
  .org-hero h2 { color:#172033; }
  .org-hero p { color:#66768b; }
  .org-kpi-grid,
  .org-tabs { background:#f5f8fc; }
  .org-kpi { border-color:color-mix(in srgb,var(--org-color) 22%,#dbe4ef); background:color-mix(in srgb,var(--org-color) 5%,#fff); }
  .org-kpi strong { color:#1e293b; }
  .org-tabs button { color:#52647a; border-color:var(--light-border); background:#fff; }
  .org-tabs button.active { color:#1d4ed8; border-color:#93c5fd; background:#eff6ff; }
  .org-toolbar { border-color:var(--light-border); background:#fff; }
  .org-toolbar input { color:#172033; border-color:#cfdbe8; background:#f8fafc; }
  .org-content { background:#f4f7fb; }
  .org-entity-card { border-color:var(--light-border); background:linear-gradient(145deg,#fff,#f8fbff); box-shadow:0 8px 20px rgba(30,64,105,.07); }
  .org-entity-card h3 { color:#203148; }
  .org-entity-card p { color:#68788d; }
  .org-card-facts span { color:#52647a; }
  .org-card-tags span { color:#1d4ed8; background:#eff6ff; }
  .org-entity-card footer button { color:#1d4ed8; border-color:#bfdbfe; background:#eff6ff; }
  .org-editor { border-color:#cfe0ef; background:#fff; box-shadow:-12px 0 30px rgba(30,64,105,.09); }
  .org-editor header,
  .org-editor > form > footer { border-color:var(--light-border); }
  .org-editor h3 { color:#172033; }
  .org-editor-fields label > span { color:#52647a; }
  .org-editor-fields input:not([type="checkbox"]),
  .org-editor-fields select,
  .org-editor-fields textarea { color:#172033; border-color:#cfdbe8; background:#f8fafc; }
  .org-checkbox { border-color:var(--light-border); background:#f8fafc; }
  .org-editor > form > footer button { color:#40536a; border-color:var(--light-border); background:#f8fafc; }
  .org-editor > form > footer button[type="submit"] { color:#fff; border-color:#2563eb; background:#2563eb; }
  .org-permission-matrix { border-color:var(--light-border); }
  .org-permission-matrix > div { border-color:#e5ebf2; }
  .org-permission-matrix > div > strong { color:#334155; }
  .org-permission-head { background:#eef3f8; }
  .org-permission-head span { color:#52647a; }
  .org-empty strong { color:#40536a; }
  .inspection-analyst-home > div,
  .inspection-analyst-home article { border-color:var(--light-border); background:#fff; }
  .inspection-analyst-home strong { color:#26384e; }

  .report-hero { border-color: #bae6fd; background: linear-gradient(135deg,#eff8ff,#f0fdf4); }
  .report-hero h2,
  .confrontation-step strong,
  .confrontation-selected-lot strong { color: #203148; }
  .report-hero p,
  .report-hero small,
  .confrontation-step small,
  .confrontation-selected-lot small { color: #68788d; }
  .confrontation-search label { color: #40536a; }
  .confrontation-search input { color: #172033; border-color: #cfdbe8; background: #fff; }
  .confrontation-result { color: #334155; border-color: var(--light-border); background: #fff; }
  .confrontation-result:hover { background: #eff8ff; }
  .confrontation-selected-lot { background: #ecfdf5; }
  .confrontation-type-field { border-color:#bae6fd; background:#eff8ff; }
  .confrontation-type-field>span { color:#0369a1; }
  .confrontation-type-field select,
  .confrontation-admin-fields input { color:#172033; border-color:#cfdbe8; background:#fff; }
  .confrontation-admin-fields { border-color:#dbe7f1; background:#f8fafc; }
  .confrontation-admin-fields label { color:#52647a; }

  .inspection-map-summary { color: #1e3a5f; border-color: #bfdbfe; background: rgba(255,255,255,.94); box-shadow: var(--light-shadow); }
  .inspection-map-summary small { color: #64748b; }
  .ol-control button { color: #334155 !important; background: rgba(255,255,255,.94) !important; }
  .ol-control button:hover { color: #1d4ed8 !important; background: #eff6ff !important; }
  .ol-attribution { color: #52647a !important; background: rgba(255,255,255,.9) !important; }

  .network-status { color: #854d0e; border-color: #fcd34d; background: rgba(255,251,235,.97); box-shadow: 0 12px 32px rgba(120,81,20,.14); }
  .network-status small { color: #a16207; }
}

/* Fiscalizações · Etapa Visual 2 · cards operacionais simplificados */
@media screen {
  .inspection-operation-card {
    gap: 16px;
  }

  .inspection-operation-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
  }

  .inspection-operation-summary > span {
    min-width: 0;
    display: grid;
    gap: 3px;
    padding: 12px 14px;
    color: #243e55;
    border: 1px solid #c5d2dc;
    border-radius: 9px;
    background: #f7fafc;
    font-size: var(--inspection-font-body);
    overflow-wrap: anywhere;
  }

  .inspection-operation-summary b {
    color: #526b80;
    font-size: var(--inspection-font-help);
    text-transform: uppercase;
  }

  .inspection-demand-actions,
  .inspection-review-actions {
    align-items: flex-start;
  }

  .inspection-demand-actions > .inspection-card-primary,
  .inspection-review-actions > button.approve {
    min-width: min(100%, 240px);
    justify-content: center;
    color: #fff;
    border-color: #1769aa;
    background: #1769aa;
  }

  .inspection-demand-actions > .inspection-card-primary.environmental-action {
    color: #fff;
    border-color: #146c43;
    background: #146c43;
  }

  .inspection-card-more-actions {
    position: relative;
    min-width: 160px;
    color: #243e55;
    font-size: var(--inspection-font-body);
  }

  .inspection-card-more-actions > summary {
    min-height: var(--inspection-control-height);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid #9fb2c2;
    border-radius: 8px;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
  }

  .inspection-card-more-actions > summary::-webkit-details-marker {
    display: none;
  }

  .inspection-card-more-actions > summary::after {
    margin-left: 8px;
    content: '▾';
    font-size: 18px;
  }

  .inspection-card-more-actions[open] > summary::after {
    content: '▴';
  }

  .inspection-card-more-actions > summary:focus-visible {
    outline: 4px solid #0b6ee8;
    outline-offset: 3px;
  }

  .inspection-card-more-actions > div {
    display: grid;
    gap: 8px;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid #b8c7d3;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(27, 48, 63, .13);
  }

  .inspection-card-more-actions > div button {
    width: 100%;
    min-height: var(--inspection-control-height);
    justify-content: flex-start;
    color: #243e55;
    border: 1px solid #c5d2dc;
    background: #f7fafc;
    text-align: left;
  }

  .inspection-card-more-actions > div button.danger {
    color: #8b1e2d;
    border-color: #e1a3ad;
    background: #fff1f2;
  }

  .inspection-review-list article {
    padding: var(--inspection-card-padding) 0;
  }

  .inspection-review-list article > div:first-child {
    gap: 7px;
  }

  .inspection-review-actions {
    min-width: 230px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .inspection-review-actions > button,
  .inspection-review-actions > .inspection-card-more-actions {
    width: 100%;
  }
}

@media screen and (max-width: 820px) {
  .inspection-operation-summary {
    grid-template-columns: 1fr;
  }

  .inspection-demand-actions,
  .inspection-review-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .inspection-demand-actions > .inspection-card-primary,
  .inspection-review-actions > button.approve,
  .inspection-card-more-actions,
  .inspection-review-actions {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}

/* Fiscalização Ambiental · Etapa Visual 4 · V4 guiado por etapas */
@media screen {
  #inspection-form.inspection-guided-active { --guided-accent:#1769aa; }
  #inspection-form.inspection-guided-active .inspection-step-hidden,
  #inspection-form.inspection-guided-active .inspection-final-action-hidden { display:none !important; }

  #inspection-form.inspection-guided-active .inspection-stepper {
    display:grid;
    gap:14px;
    margin:0 0 20px;
    padding:16px;
    border:1px solid #b9cbd8;
    border-radius:12px;
    background:#f7fafc;
  }
  .inspection-stepper.access-hidden { display:none !important; }
  .inspection-progress { display:grid; gap:7px; }
  .inspection-progress > span { color:#29475f;font-size:var(--inspection-font-body);font-weight:800; }
  .inspection-progress > div { height:10px;overflow:hidden;border-radius:999px;background:#dce6ed; }
  .inspection-progress i { height:100%;display:block;border-radius:inherit;background:var(--guided-accent);transition:width .2s ease; }
  .inspection-stepper > div:last-child { display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px; }
  .inspection-step {
    min-height:56px!important;display:flex;align-items:center;justify-content:center;gap:6px;padding:8px!important;
    color:#36546b;border:1px solid #b5c6d2;border-radius:9px;background:#fff;font-size:var(--inspection-font-help)!important;font-weight:700;
  }
  .inspection-step .material-symbols-outlined { font-size:20px; }
  .inspection-step b { width:26px;height:26px;display:grid;place-items:center;border-radius:999px;background:#dce6ed; }
  .inspection-step-active { color:#fff;background:var(--guided-accent);border-color:var(--guided-accent); }
  .inspection-step-active b { color:var(--guided-accent);background:#fff; }
  .inspection-step-complete { color:#17663f;border-color:#75b994;background:#effaf4; }
  .inspection-step-complete b { color:#fff;background:#208653; }
  .inspection-step-disabled { color:#718394;background:#eef2f5;opacity:.75; }

  #inspection-form.inspection-guided-active > .inspection-form-grid[data-inspection-step="1"],
  #inspection-form.inspection-guided-active .inspection-step-panel,
  #inspection-form.inspection-guided-active [data-inspection-step="4"],
  #inspection-form.inspection-guided-active [data-inspection-step="5"] { width:100%;grid-template-columns:1fr; }
  #inspection-form.inspection-guided-active .inspection-form-grid { grid-template-columns:1fr; }
  .inspection-step-panel { display:grid;gap:18px; }
  .inspection-step-title { margin:0;color:#173147;font-size:24px;line-height:1.25; }
  .inspection-evidence-heading { display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px;border:1px solid #b7cad7;border-radius:11px;background:#f7fbfd; }
  .inspection-evidence-heading p { margin:4px 0 0;color:#526b80;font-size:var(--inspection-font-help); }
  .inspection-evidence-heading>span { padding:8px 11px;color:#17663f;border:1px solid #8bc5a7;border-radius:999px;background:#effaf4;font-size:var(--inspection-font-help);font-weight:700; }
  .inspection-condition-category { display:grid;gap:10px;padding:16px;border:1px solid #c5d3dd;border-radius:11px;background:#fff; }
  .inspection-condition-category .inspection-step-title { font-size:19px; }

  .inspection-property-summary { display:grid;gap:14px;padding:var(--inspection-card-padding);border:1px solid #aac2d3;border-radius:12px;background:#f7fbfd; }
  .inspection-property-summary h2,.inspection-review-card h2 { margin:0;color:#173147;font-size:22px; }
  .inspection-property-summary dl,.inspection-review-card dl { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }
  .inspection-property-summary dl>div,.inspection-review-card dl>div { padding:12px;border:1px solid #c9d5de;border-radius:8px;background:#fff; }
  .inspection-property-summary dt,.inspection-review-card dt { color:#526b80;font-size:var(--inspection-font-help);font-weight:800;text-transform:uppercase; }
  .inspection-property-summary dd,.inspection-review-card dd { margin:4px 0 0;color:#173147;font-size:var(--inspection-font-body);overflow-wrap:anywhere; }
  .inspection-property-details { border:1px solid #b8c9d5;border-radius:10px;background:#fff; }
  .inspection-property-details>summary { min-height:56px;display:flex;align-items:center;padding:0 16px;color:#24506e;font-size:var(--inspection-font-body);font-weight:800;cursor:pointer; }
  .inspection-property-details>div { padding:0 16px 16px; }

  .inspection-segment-source { position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;opacity:.01!important; }
  .inspection-segment { display:grid;grid-template-columns:1fr 1fr;gap:10px; }
  #inspection-form.inspection-guided-active .inspection-segment button { min-height:56px;color:#29475f;border:2px solid #aebfcb;border-radius:9px;background:#fff;font-size:var(--inspection-font-body);font-weight:800; }
  #inspection-form.inspection-guided-active .inspection-segment button.inspection-segment-active { color:#fff;border-color:var(--guided-accent);background:var(--guided-accent); }
  .inspection-result-segment { grid-template-columns:1fr; }
  #inspection-form.inspection-guided-active .inspection-result-segment button { justify-content:flex-start;text-align:left;padding:0 18px; }

  .inspection-review-card { display:grid;gap:16px;padding:var(--inspection-card-padding);border:1px solid #adc3d2;border-radius:12px;background:#f8fbfd; }
  .inspection-review-warning { display:grid;gap:8px;padding:14px;color:#7a3f09;border:2px solid #d49435;border-radius:9px;background:#fff8e8; }
  .inspection-review-warning strong { color:#713b08!important;font-size:var(--inspection-font-body); }
  .inspection-review-warning ul { display:grid;gap:6px;margin:0;padding-left:20px; }
  .inspection-review-warning button { min-height:40px!important;padding:4px!important;color:#78420d;border:0;background:transparent;text-align:left;text-decoration:underline; }
  .inspection-review-ready { padding:14px;color:#166534;border:2px solid #55a971;border-radius:9px;background:#f0fdf4; }
  .inspection-field-invalid,.inspection-field-invalid+ .inspection-segment { outline:3px solid #c83b4d;outline-offset:2px; }
  .inspection-field-error { display:block;margin-top:7px;color:#9f2033!important;font-size:var(--inspection-font-help)!important;font-weight:800; }

  #inspection-form.inspection-guided-active .inspection-sticky-footer { display:flex;align-items:center;justify-content:flex-end;gap:10px; }
  #inspection-form.inspection-guided-active #inspection-step-previous { margin-right:auto; }
  #inspection-form.inspection-guided-active #inspection-step-next { color:#fff;background:var(--guided-accent); }
}

@media screen and (max-width:820px) {
  .inspection-stepper > div:last-child { grid-template-columns:1fr; }
  .inspection-step { justify-content:flex-start; }
  .inspection-property-summary dl,.inspection-review-card dl { grid-template-columns:1fr; }
  #inspection-form.inspection-guided-active .inspection-sticky-footer { display:grid;grid-template-columns:1fr; }
  #inspection-form.inspection-guided-active #inspection-step-previous { margin-right:0; }
}

/* Fiscalizações · Etapa Visual 3 · dashboard por perfil */
@media screen {
  .inspection-profile-hidden { display: none !important; }

  .inspection-profile-dashboard {
    display: grid;
    gap: 20px;
  }

  .inspection-profile-dashboard.access-hidden { display: none !important; }

  .inspection-admin-secretariat-shell { display:grid; gap:12px; padding:16px; border:1px solid #d8e4ed; border-radius:14px; background:#fff; box-shadow:0 8px 22px rgba(23,49,71,.06); }
  .inspection-admin-secretariat-shell[hidden] { display:none; }
  .inspection-admin-secretariat-shell > header { display:flex; align-items:center; justify-content:space-between; gap:14px; }
  .inspection-admin-secretariat-shell > header small { color:#1769aa; font-size:10px; font-weight:800; text-transform:uppercase; }
  .inspection-admin-secretariat-shell > header h2 { margin:3px 0 0; color:#173147; font-size:18px; }
  .inspection-admin-domain-tabs,.inspection-admin-secretariat-tabs { display:flex; gap:7px; overflow-x:auto; scrollbar-width:thin; }
  .inspection-admin-domain-tabs button,.inspection-admin-secretariat-tabs button { flex:0 0 auto; border:1px solid #d6e1e9; border-radius:9px; color:#415c72; background:#f7fafc; font-weight:750; cursor:pointer; }
  .inspection-admin-domain-tabs button { padding:8px 12px; }
  .inspection-admin-secretariat-tabs button { display:flex; align-items:center; gap:8px; min-height:42px; padding:8px 11px; }
  .inspection-admin-secretariat-tabs button b { min-width:23px; padding:3px 6px; border-radius:999px; color:#52697b; background:#e8eef3; font-size:10px; text-align:center; }
  .inspection-admin-domain-tabs button.active,.inspection-admin-secretariat-tabs button.active { color:#fff; border-color:#176b87; background:#176b87; }
  .inspection-admin-secretariat-tabs button.active b { color:#176b87; background:#fff; }

  .inspection-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    border: 1px solid #b9c9d6;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff, #edf6fb);
    box-shadow: 0 10px 28px rgba(31, 67, 91, .08);
  }

  .inspection-profile-header > div { display: grid; gap: 5px; }
  .inspection-profile-header small { color: #1769aa; font-weight: 800; text-transform: uppercase; }
  .inspection-profile-header h1 { margin: 0; color: #173147; font-size: 28px; line-height: 1.2; }
  .inspection-profile-header p { margin: 0; color: #415c72; font-size: var(--inspection-font-body); }

  .inspection-profile-status {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    color: #17663f;
    border: 1px solid #87c7a6;
    border-radius: 999px;
    background: #effaf4;
    font-weight: 700;
  }

  .inspection-main-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .inspection-action-tile {
    min-height: 112px !important;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 18px !important;
    color: #173147;
    border: 2px solid #aac2d3;
    border-radius: 13px;
    background: #fff;
    text-align: left;
  }

  .inspection-action-tile.primary { color: #fff; border-color: #1769aa; background: #1769aa; }
  .inspection-action-tile.manager-action { color: #fff; border-color: #26704d; background: #26704d; }
  .inspection-action-tile:hover { border-color: #1769aa; box-shadow: 0 8px 20px rgba(23, 105, 170, .14); transform: translateY(-1px); }
  .inspection-action-tile:disabled { opacity: .65; cursor: not-allowed; }
  .inspection-action-tile > .material-symbols-outlined { font-size: 34px; }
  .inspection-action-tile > span:last-child { display: grid; gap: 3px; }
  .inspection-action-tile strong { color: inherit; font-size: 18px; }
  .inspection-action-tile small { color: inherit !important; opacity: .88; }

  .inspection-urgent-alerts {
    display: grid;
    gap: 12px;
    padding: var(--inspection-card-padding);
    border: 1px solid #e2bf73;
    border-radius: 12px;
    background: #fff9e9;
  }

  .inspection-urgent-alerts h2,
  .inspection-profile-section-heading h2 { margin: 0; color: #243e55; font-size: 21px; }
  .inspection-urgent-alerts > div { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
  .inspection-urgent-alerts > div > span { display: grid; gap: 3px; padding: 13px; color: #60491b; border: 1px solid #ead49b; border-radius: 9px; background: #fff; }
  .inspection-urgent-alerts > div strong { color: #9a5207; font-size: 24px; }

  .inspection-profile-section-heading { display: flex; align-items: end; justify-content: space-between; padding-top: 4px; }
  .inspection-profile-section-heading small { color: #526b80; font-weight: 800; text-transform: uppercase; }

  .inspection-stage-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 10px;
  }

  .inspection-stage-tabs button {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    color: #234258;
    border: 1px solid #aebfcd;
    border-radius: 9px;
    background: #fff;
    font-weight: 700;
    text-align: left;
  }

  .inspection-stage-tabs button b { min-width: 28px; min-height: 28px; display: grid; place-items: center; color: #fff; border-radius: 999px; background: #1769aa; }
  .inspection-stage-tabs button.is-empty { color: #65798a; background: #f4f7f9; }
  .inspection-stage-tabs button.is-empty b { background: #718394; }

  .inspection-manager-summary {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 10px;
  }

  .inspection-manager-summary > span {
    display: grid;
    gap: 4px;
    padding: 16px;
    color: #435d73;
    border: 1px solid #bdcbd6;
    border-radius: 10px;
    background: #fff;
  }

  .inspection-manager-summary strong { color: #173147; font-size: 25px; }

  .inspection-profile-indicators { display: grid; gap: 18px; margin-top: 8px; }

  .inspection-collapsible-section {
    border: 1px solid #b9c8d4;
    border-radius: 11px;
    background: #f8fafc;
  }

  .inspection-collapsible-section > summary {
    min-height: 56px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    color: #29465d;
    font-size: var(--inspection-font-body);
    font-weight: 800;
    cursor: pointer;
  }

  .inspection-collapsible-section > summary .material-symbols-outlined { margin-right: 10px; color: #1769aa; font-size: 24px; }

  .inspection-type-dialog { width: min(680px, calc(100vw - 24px)); }
  .inspection-type-options { display: grid; gap: 12px; padding: 20px; }
  .inspection-type-options > button { min-height: 86px; display: grid; grid-template-columns: 48px minmax(0,1fr) 28px; align-items: center; gap: 14px; padding: 14px 16px; color: #173147; border: 2px solid #aec3d2; border-radius: 12px; background: #fff; text-align: left; cursor: pointer; }
  .inspection-type-options > button:hover { border-color: #1769aa; background: #f0f7fc; }
  .inspection-type-options > button > .material-symbols-outlined:first-child { width: 48px; height: 48px; display: grid; place-items: center; color: #fff; border-radius: 12px; background: #1769aa; font-size: 28px; }
  .inspection-type-options > button > span:nth-child(2) { display: grid; gap: 4px; }
  .inspection-type-options strong { color: #173147; font-size: 18px; }
  .inspection-type-options small { color: #486175; font-size: 14px; }
  .inspection-type-options > button > .material-symbols-outlined:last-child { color: #1769aa; }

  .inspection-collapsible-section > div { display: grid; gap: 18px; padding: 0 18px 18px; }
  .inspection-collapsible-section:not([open]) > div { display: none; }

  .inspection-profile-dashboard .inspection-review-card,
  .inspection-profile-dashboard .inspection-demand-list-card,
  .inspection-profile-dashboard .inspection-fiscal-home,
  .inspection-profile-dashboard .inspection-analyst-home,
  .inspection-profile-dashboard .inspection-dashboard-grid,
  .inspection-profile-dashboard .inspection-ops-kpis { margin-top: 0; }
}

@media screen and (max-width: 820px) {
  .inspection-profile-header { align-items: flex-start; flex-direction: column; padding: 18px; }
  .inspection-admin-secretariat-shell > header { align-items:flex-start; flex-direction:column; }
  .inspection-profile-header h1 { font-size: 24px; }
  .inspection-main-actions,
  .inspection-urgent-alerts > div,
  .inspection-stage-tabs,
  .inspection-manager-summary { grid-template-columns: 1fr; }
  .inspection-action-tile { min-height: 96px !important; }
  .inspection-type-options { padding: 14px; }
}

/* Overrides finais do workspace (mantidos ao fim para vencer o tema legado). */
@media not all {
body[data-theme] { background:var(--gw-bg); color:var(--gw-text); }
.app { grid-template-columns:76px 0 minmax(0,1fr); background:var(--gw-bg); }
.app.panel-open { grid-template-columns:76px minmax(340px,400px) minmax(0,1fr); }
.platform-rail,.platform-rail:hover,body[data-theme] .platform-rail { width:76px;min-width:76px;color:#cad6e4;background:#122033;border-color:#28394d; }
.platform-module-btn,body[data-theme] .platform-module-btn { color:#91a5bb; }
.platform-module-btn:hover,body[data-theme] .platform-module-btn:hover { color:#fff;background:#203650; }
.platform-module-btn.active,body[data-theme] .platform-module-btn.active { color:#fff;background:linear-gradient(135deg,#1e6bd6,#118b91);border-left-color:#38bdf8; }
.platform-panel,body[data-theme] .platform-panel { color:var(--gw-text);background:var(--gw-bg);border-color:var(--gw-border);box-shadow:var(--gw-shadow); }
.platform-panel-header,body[data-theme] .platform-panel-header { height:68px;color:var(--gw-text);background:var(--gw-surface);border-color:var(--gw-border); }
.platform-panel-header h1,body[data-theme] .platform-panel-header h1,.module-card h2,body[data-theme] .module-card h2,.metric-card strong,body[data-theme] .metric-card strong { color:var(--gw-text); }
.module-card,.metric-card,.card,body[data-theme] .module-card,body[data-theme] .metric-card,body[data-theme] .card { color:var(--gw-text);background:var(--gw-surface);border-color:var(--gw-border); }
.map-container { min-width:0;background:#dce5e9; }
#map { position:absolute;inset:var(--gw-topbar) 0 0;width:100%;height:auto; }
.geoweb-topbar { position:absolute;inset:0 0 auto;z-index:20; }
.toolbar { top:calc(var(--gw-topbar) + 14px);left:50%;z-index:12;transform:translateX(-50%);background:var(--gw-surface);border-color:var(--gw-border);box-shadow:var(--gw-shadow); }
.toolbar .tool-btn,.map-tool-extensions .tool-btn { color:var(--gw-text);background:transparent;border-color:transparent; }
.toolbar .tool-btn:hover,.map-tool-extensions .tool-btn:hover { color:var(--gw-primary);background:var(--gw-hover); }
.basemap-control { top:calc(var(--gw-topbar) + 14px);right:14px;background:var(--gw-surface);border-color:var(--gw-border); }
.popup { top:calc(var(--gw-topbar) + 14px);right:14px;color:var(--gw-text);background:var(--gw-surface);border-color:var(--gw-border); }
body[data-theme="dark"] .ol-control button,body[data-theme="dark"] .ol-attribution { color:var(--gw-text)!important;background:var(--gw-surface)!important; }
@media(max-width:760px){.app,.app.panel-open{grid-template-columns:1fr}.platform-rail,.platform-rail:hover{position:fixed;inset:auto 0 0;width:100%;min-width:100%;height:58px}.map-container{grid-column:1}.toolbar{top:calc(var(--gw-topbar) + 9px)}#map{bottom:58px}}
}

/* =========================================================
   TEMA CLARO MUNICIPAL · paleta consolidada
   Neutros frios + azul institucional + verde territorial.
========================================================= */
:root {
  color-scheme: light;
  --ui-bg: #f2f5f8;
  --ui-surface: #ffffff;
  --ui-surface-soft: #f7f9fb;
  --ui-surface-tint: #eef5f8;
  --ui-border: #d8e1e8;
  --ui-border-strong: #becbd6;
  --ui-text: #17242f;
  --ui-text-soft: #4f6272;
  --ui-muted: #718291;
  --ui-primary: #176b87;
  --ui-primary-hover: #12556c;
  --ui-primary-soft: #e5f2f6;
  --ui-green: #16836f;
  --ui-green-soft: #e7f5f1;
  --ui-danger: #c43d4b;
  --ui-warning: #a96312;
  --ui-focus: 0 0 0 3px rgba(23,107,135,.16);
  --ui-shadow-sm: 0 2px 8px rgba(27,48,63,.06);
  --ui-shadow: 0 12px 32px rgba(27,48,63,.11);
  --light-bg: var(--ui-bg);
  --light-surface: var(--ui-surface);
  --light-surface-soft: var(--ui-surface-soft);
  --light-border: var(--ui-border);
  --light-border-strong: var(--ui-border-strong);
  --light-text: var(--ui-text);
  --light-text-soft: var(--ui-text-soft);
  --light-text-muted: var(--ui-muted);
  --light-primary: var(--ui-primary);
  --light-primary-hover: var(--ui-primary-hover);
  --light-primary-soft: var(--ui-primary-soft);
  --light-cyan: var(--ui-primary);
  --light-green: var(--ui-green);
  --light-shadow: var(--ui-shadow);
}

html, body, button, input, select, textarea {
  font-family: Montserrat, "Segoe UI Variable", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-synthesis: none;
}
html, body { color: var(--ui-text); background: var(--ui-bg); }
button, input, select, textarea { letter-spacing: .005em; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--ui-primary); outline-offset: 2px; }

/* Navegação e superfícies principais */
.platform-rail, .sidebar {
  color: var(--ui-text-soft);
  background: rgba(255,255,255,.98);
  border-color: var(--ui-border);
  box-shadow: 4px 0 18px rgba(27,48,63,.055);
}
.platform-module-btn { color: #607485; }
.platform-module-btn:hover { color: var(--ui-primary); background: var(--ui-primary-soft); }
.platform-module-btn.active { color: #fff; border-left-color: var(--ui-green); background: linear-gradient(145deg,var(--ui-primary),#1a8490); box-shadow: 0 5px 13px rgba(23,107,135,.22); }
.logo.platform-module-btn { color:#fff; background: linear-gradient(145deg,var(--ui-green),var(--ui-primary)); }
.notification-module-button b { border-color:#fff; background:var(--ui-danger); }
.rail-account { border-color:var(--ui-border); }

.platform-panel, .panel, .panel-content { color:var(--ui-text); background:var(--ui-bg); border-color:var(--ui-border); }
.platform-panel { box-shadow: 12px 0 28px rgba(27,48,63,.09); }
.platform-panel-header { background:rgba(255,255,255,.95); border-color:var(--ui-border); backdrop-filter:blur(14px); }
.platform-panel-header h1, .panel-title, .module-card h2 { color:var(--ui-text); }
.platform-panel-header span { color:var(--ui-primary); }
.platform-panel-close, .workspace-map-toggle { color:var(--ui-text-soft); border-color:var(--ui-border); background:var(--ui-surface-soft); }
.platform-panel-close:hover, .workspace-map-toggle:hover { color:var(--ui-primary); border-color:#9fc5d1; background:var(--ui-primary-soft); }

/* Cartões e indicadores */
.metric-card, .module-card, .card, .analytics-card, .project-card,
.access-overview, .admin-tool-card, .inspection-list-card, .inspection-review-card {
  color:var(--ui-text); border-color:var(--ui-border); background:var(--ui-surface); box-shadow:var(--ui-shadow-sm);
}
.metric-card:hover, .project-card:hover { border-color:#b4cbd3; box-shadow:0 8px 22px rgba(27,48,63,.1); }
.metric-card strong, .card strong, .module-card strong { color:var(--ui-text); }
.metric-card small, .card span, .module-muted, .project-section-note { color:var(--ui-muted); }
.metric-card > .material-symbols-outlined { color:var(--ui-primary); background:var(--ui-primary-soft); }
.module-grid button { color:var(--ui-text-soft); border-color:var(--ui-border); background:var(--ui-surface-soft); }
.module-grid button:hover, .module-view[data-module-view="admin"] .module-grid button.active { color:var(--ui-primary); border-color:#9fc5d1; background:var(--ui-primary-soft); }

/* Formulários e filtros */
input, select, textarea,
.layer-filter input, .project-layer-search input, .inspection-filter-console input,
.inspection-filter-console select, .inspection-dashboard-toolbar input,
.inspection-dashboard-toolbar select, .inspection-records-filters input, .inspection-records-filters select {
  color:var(--ui-text); border-color:var(--ui-border-strong); background:var(--ui-surface); caret-color:var(--ui-primary);
}
input::placeholder, textarea::placeholder { color:#8b9aa6; opacity:1; }
input:hover, select:hover, textarea:hover { border-color:#9fb0bd; }
input:focus, select:focus, textarea:focus { border-color:var(--ui-primary); box-shadow:var(--ui-focus); outline:0; }
select option { color:var(--ui-text); background:#fff; }
.layer-chips button, .inspection-quick-filters button, .inspection-dashboard-toolbar > button {
  color:var(--ui-text-soft); border-color:var(--ui-border); background:var(--ui-surface);
}
.layer-chips button.active, .layer-chips button:hover,
.inspection-quick-filters button.active, .inspection-quick-filters button:hover {
  color:var(--ui-primary-hover); border-color:#9fc5d1; background:var(--ui-primary-soft);
}

/* Operações e fiscalização */
.inspection-ops-hero, .inspection-records-hero, .inspection-hero {
  border-color:#c8dce3; background:radial-gradient(circle at 88% 4%,rgba(22,131,111,.10),transparent 36%),linear-gradient(135deg,#fff,#edf6f8); box-shadow:var(--ui-shadow-sm);
}
.inspection-ops-identity h1, .inspection-records-hero h1, .inspection-hero strong { color:var(--ui-text); }
.inspection-ops-identity p, .inspection-records-hero p, .inspection-hero small { color:var(--ui-text-soft); }
.inspection-ops-identity small, .inspection-records-hero small, .inspection-hero span { color:var(--ui-primary); }
.inspection-ops-identity > .material-symbols-outlined, .inspection-records-hero > .material-symbols-outlined {
  color:var(--ui-primary); border-color:#b9d7df; background:var(--ui-primary-soft);
}
.inspection-hero-daily > div, .inspection-ops-kpis article, .inspection-records-metrics article,
.inspection-management-metrics article, .inspection-metrics > div {
  border-color:color-mix(in srgb,var(--kpi,#176b87) 20%,var(--ui-border)); background:#fff; box-shadow:var(--ui-shadow-sm);
}
.inspection-hero-daily strong, .inspection-ops-kpis strong, .inspection-records-metrics strong,
.inspection-management-metrics strong, .inspection-metrics strong { color:var(--ui-text); }
.inspection-action-grid article { border-color:color-mix(in srgb,var(--action) 22%,var(--ui-border)); background:radial-gradient(circle at 100% 0,color-mix(in srgb,var(--action) 8%,transparent),transparent 44%),#fff; box-shadow:var(--ui-shadow-sm); }
.inspection-action-grid h2 { color:var(--ui-text); }.inspection-action-grid p { color:var(--ui-text-soft); }
.inspection-filter-console, .inspection-dashboard-toolbar, .inspection-records-filters { border-color:var(--ui-border); background:rgba(255,255,255,.96); box-shadow:var(--ui-shadow-sm); }
.inspection-form, .inspection-demand-form, .inspection-operation-card, .inspection-demand-item,
.inspection-record-card, .dirty-lot-card { color:var(--ui-text); border-color:var(--ui-border); background:#fff; box-shadow:var(--ui-shadow-sm); }
.inspection-form-header h2, .inspection-demand-item h3, .inspection-operation-main h3,
.inspection-record-card h3, .dirty-lot-card h3 { color:var(--ui-text); }

/* Ferramentas sobre o mapa */
.toolbar, .basemap-control, .popup, .measure-panel, .search-panel {
  color:var(--ui-text); border-color:var(--ui-border); background:rgba(255,255,255,.95); box-shadow:var(--ui-shadow); backdrop-filter:blur(14px);
}
.tool-btn, .basemap-btn { color:var(--ui-text-soft); border-color:transparent; background:transparent; }
.tool-btn:hover, .tool-btn.active, .basemap-btn:hover, .basemap-btn.active { color:#fff; background:var(--ui-primary); }
.popup-close { color:var(--ui-text-soft); background:var(--ui-surface-soft); }
.popup .panel-content { color:var(--ui-text); background:transparent; }
.popup .attribute-actions { border-bottom-color:var(--ui-border); }
.popup .attribute-actions span,
.popup .attribute-table th { color:var(--ui-text-soft); }
.popup .attribute-table td { color:var(--ui-text); }
.popup .attribute-table tr + tr { border-top-color:var(--ui-border); }
.popup .attribute-actions button {
  color:var(--ui-primary-hover);
  border-color:color-mix(in srgb,var(--ui-primary) 38%,var(--ui-border));
  background:var(--ui-primary-soft);
}
.popup .attribute-actions button:hover { color:#fff; background:var(--ui-primary); }
body[data-theme="dark"] .popup {
  --ui-text:var(--gw-text,#e7edf5);
  --ui-text-soft:var(--gw-muted,#95a6ba);
  --ui-border:var(--gw-border,#2a394b);
  --ui-primary:var(--gw-primary,#54a2ff);
  --ui-primary-hover:#8bc1ff;
  --ui-primary-soft:rgba(84,162,255,.14);
  color:var(--ui-text);
  border-color:var(--ui-border);
  background:var(--gw-surface,rgba(18,27,40,.97));
}

/* Cartão de informações cartográficas — padrão visual PIT */
.popup.pit-feature-popup {
  position:fixed;
  top:calc(var(--gw-topbar,68px) + 18px);
  right:18px;
  width:min(430px,calc(100vw - 36px));
  max-height:calc(100dvh - var(--gw-topbar,68px) - 36px);
  padding:0;
  overflow:hidden;
  z-index:80;
  color:var(--ui-text,#17324a);
  border:1px solid rgba(23,107,135,.22);
  border-radius:22px;
  background:linear-gradient(145deg,rgba(255,255,255,.88),rgba(244,250,250,.76));
  box-shadow:0 22px 60px rgba(15,42,58,.18),inset 0 1px rgba(255,255,255,.72);
  backdrop-filter:blur(24px) saturate(145%);
  -webkit-backdrop-filter:blur(24px) saturate(145%);
}
.popup.pit-feature-popup.hidden,.popup.pit-feature-popup[hidden] { display:none!important; }
.popup.pit-feature-popup:not(.hidden):not([hidden]) { display:block; }
.popup.pit-feature-popup::before { content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#123f5a,#176b87 58%,#2f855a);z-index:2; }
.pit-feature-popup .map-info-header { position:relative;display:grid;grid-template-columns:48px minmax(0,1fr);align-items:center;gap:13px;margin:0;padding:24px 58px 18px 20px;border-bottom:1px solid rgba(23,107,135,.14);background:linear-gradient(120deg,rgba(18,63,90,.08),rgba(47,133,90,.05)); }
.pit-feature-popup .map-info-icon { display:grid;place-items:center;width:48px;height:48px;border:1px solid rgba(23,107,135,.2);border-radius:14px;color:#176b87;background:rgba(255,255,255,.64);box-shadow:0 8px 20px rgba(23,107,135,.1); }
.pit-feature-popup .map-info-header small { display:block;margin-bottom:3px;color:#2f855a;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase; }
.pit-feature-popup .panel-title { color:#123f5a;font-size:20px;line-height:1.2;letter-spacing:-.015em; }
.pit-feature-popup .map-info-header p { margin:4px 0 0;color:#5b7182;font-size:14px;line-height:1.4; }
.pit-feature-popup .popup-close { top:16px;right:16px;display:grid;place-items:center;width:44px;height:44px;z-index:3;color:#34576c;border:1px solid rgba(23,107,135,.16);background:rgba(255,255,255,.58);backdrop-filter:blur(10px);transition:background .18s ease,color .18s ease,transform .18s ease; }
.pit-feature-popup .popup-close .material-symbols-outlined { font-size:21px; }
.pit-feature-popup .popup-close:hover { color:#fff;background:#176b87;transform:translateY(-1px); }
.pit-feature-popup .popup-close:focus-visible { outline:3px solid rgba(23,107,135,.28);outline-offset:2px; }
.pit-feature-popup .panel-content { max-height:calc(100vh - var(--gw-topbar,68px) - 152px);padding:16px 18px 20px;gap:12px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(23,107,135,.34) transparent; }
.pit-feature-popup .attribute-actions { position:sticky;top:-16px;z-index:1;margin:-16px -18px 2px;padding:12px 18px;border-bottom:1px solid rgba(23,107,135,.13);background:rgba(247,251,251,.86);backdrop-filter:blur(16px); }
.pit-feature-popup .attribute-actions > span { display:flex;align-items:center;gap:6px;color:#5b7182;font-size:14px; }
.pit-feature-popup .attribute-actions > span .material-symbols-outlined { color:#2f855a;font-size:19px; }
.pit-feature-popup .attribute-actions > span strong { color:#123f5a;font-size:15px; }
.pit-feature-popup .attribute-actions button { display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:0 13px;color:#176b87;border:1px solid rgba(23,107,135,.24);border-radius:12px;background:rgba(255,255,255,.68);font-size:14px;font-weight:750; }
.pit-feature-popup .attribute-actions button .material-symbols-outlined { font-size:18px; }
.pit-feature-popup .attribute-table { border-collapse:separate;border-spacing:0 8px; }
.pit-feature-popup .attribute-table tr { outline:1px solid rgba(23,107,135,.11);border:0;border-radius:12px;background:rgba(255,255,255,.54);box-shadow:0 4px 14px rgba(15,42,58,.04); }
.pit-feature-popup .attribute-table tr + tr { border-top:0; }
.pit-feature-popup .attribute-table tr.attribute-primary { outline-color:rgba(47,133,90,.24);background:linear-gradient(110deg,rgba(47,133,90,.09),rgba(255,255,255,.62)); }
.pit-feature-popup .attribute-table th,.pit-feature-popup .attribute-table td { padding:12px 13px;font-size:14px;line-height:1.45; }
.pit-feature-popup .attribute-table th { width:40%;color:#5b7182;font-size:13px;font-weight:750; }
.pit-feature-popup .attribute-table td { color:#17324a;font-weight:600; }
.pit-feature-popup .attribute-table th:first-child { border-radius:12px 0 0 12px; }.pit-feature-popup .attribute-table td:last-child { border-radius:0 12px 12px 0; }
.pit-feature-popup .map-info-status { display:flex;align-items:center;gap:12px;padding:16px;color:#17324a;border:1px solid rgba(23,107,135,.14);background:rgba(255,255,255,.55); }
.pit-feature-popup .map-info-status>.material-symbols-outlined { color:#176b87; }.pit-feature-popup .map-info-status small,.pit-feature-popup .map-info-status strong { display:block; }.pit-feature-popup .map-info-status small { margin-bottom:3px;color:#5b7182;font-size:13px; }.pit-feature-popup .map-info-status strong { font-size:15px; }
body[data-theme="dark"] .popup.pit-feature-popup { color:#e8f0f5;border-color:rgba(122,184,202,.24);background:linear-gradient(145deg,rgba(13,29,42,.9),rgba(18,42,48,.8));box-shadow:0 24px 70px rgba(0,0,0,.45),inset 0 1px rgba(255,255,255,.07); }
body[data-theme="dark"] .pit-feature-popup .map-info-header { border-bottom-color:rgba(148,190,203,.14);background:linear-gradient(120deg,rgba(84,162,255,.1),rgba(72,187,120,.07)); }
body[data-theme="dark"] .pit-feature-popup .map-info-icon,body[data-theme="dark"] .pit-feature-popup .popup-close,body[data-theme="dark"] .pit-feature-popup .attribute-actions button { color:#8bc1d2;border-color:rgba(139,193,210,.2);background:rgba(21,45,60,.66); }
body[data-theme="dark"] .pit-feature-popup .panel-title,body[data-theme="dark"] .pit-feature-popup .attribute-actions > span strong,body[data-theme="dark"] .pit-feature-popup .attribute-table td,body[data-theme="dark"] .pit-feature-popup .map-info-status { color:#e8f0f5; }
body[data-theme="dark"] .pit-feature-popup .map-info-header p,body[data-theme="dark"] .pit-feature-popup .attribute-actions > span,body[data-theme="dark"] .pit-feature-popup .attribute-table th,body[data-theme="dark"] .pit-feature-popup .map-info-status small { color:#a8bbc8; }
body[data-theme="dark"] .pit-feature-popup .attribute-actions { border-bottom-color:rgba(148,190,203,.14);background:rgba(14,31,43,.88); }
body[data-theme="dark"] .pit-feature-popup .attribute-table tr,body[data-theme="dark"] .pit-feature-popup .map-info-status { outline-color:rgba(148,190,203,.13);border-color:rgba(148,190,203,.13);background:rgba(24,48,61,.62); }
body[data-theme="dark"] .pit-feature-popup .attribute-table tr.attribute-primary { outline-color:rgba(72,187,120,.25);background:linear-gradient(110deg,rgba(72,187,120,.12),rgba(24,48,61,.68)); }
@media(max-width:600px){.popup.pit-feature-popup { position:fixed;top:auto;right:10px;bottom:10px;left:10px;width:auto;max-height:min(72vh,680px);border-radius:20px; }.pit-feature-popup .map-info-header { padding:20px 56px 16px 16px;grid-template-columns:42px minmax(0,1fr); }.pit-feature-popup .map-info-icon { width:42px;height:42px; }.pit-feature-popup .panel-title { font-size:18px; }.pit-feature-popup .panel-content { max-height:calc(72vh - 106px);padding:14px; }.pit-feature-popup .attribute-actions { top:-14px;margin:-14px -14px 0;padding:10px 14px; }.pit-feature-popup .attribute-actions button span:last-child { display:none; }.pit-feature-popup .attribute-actions button { width:44px;padding:0; }.pit-feature-popup .attribute-table th,.pit-feature-popup .attribute-table td { padding:10px;font-size:13px; }}
@media(prefers-reduced-motion:reduce){.popup.pit-feature-popup { animation:none; }.pit-feature-popup .popup-close { transition:none; }}
.ol-control button { color:var(--ui-text-soft)!important; background:rgba(255,255,255,.96)!important; box-shadow:var(--ui-shadow-sm); }
.ol-control button:hover { color:#fff!important; background:var(--ui-primary)!important; }
.ol-attribution { color:var(--ui-text-soft)!important; background:rgba(255,255,255,.92)!important; }
.inspection-map-summary { color:var(--ui-text); border-color:#bfd6de; background:rgba(255,255,255,.95); box-shadow:var(--ui-shadow); }
.inspection-map-summary > .material-symbols-outlined { color:var(--ui-green); }

/* Diálogos e autenticação */
.user-dialog { color:var(--ui-text); border-color:var(--ui-border); background:#fff; box-shadow:0 30px 80px rgba(27,48,63,.2); }
.user-dialog::backdrop { background:rgba(25,39,49,.36); backdrop-filter:blur(4px); }
.user-dialog header, .user-dialog footer { border-color:var(--ui-border); }
.user-dialog h2, .user-dialog strong { color:var(--ui-text); }
.user-dialog footer button { color:var(--ui-text-soft); border-color:var(--ui-border); background:var(--ui-surface-soft); }
.user-dialog footer button[type="submit"] { color:#fff; border-color:var(--ui-primary); background:var(--ui-primary); }
.login-screen { color:var(--ui-text); background:radial-gradient(circle at 12% 18%,rgba(23,107,135,.11),transparent 32%),radial-gradient(circle at 86% 78%,rgba(22,131,111,.09),transparent 34%),#f2f6f7; }
.login-intro h1, .login-card h2 { color:var(--ui-text); }
.login-intro p, .login-card-heading p, .login-status, .login-options { color:var(--ui-text-soft); }
.login-card { border-color:var(--ui-border); background:rgba(255,255,255,.94); box-shadow:0 28px 72px rgba(27,48,63,.15); }
.login-field > div, .login-demo button { color:var(--ui-text); border-color:var(--ui-border); background:var(--ui-surface-soft); }
.login-submit { color:#fff; background:linear-gradient(135deg,var(--ui-primary),var(--ui-green)); box-shadow:0 9px 22px rgba(23,107,135,.22); }
.login-submit:hover { background:linear-gradient(135deg,var(--ui-primary-hover),#116b5d); }

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

/* Camadas: superfícies claras e tipografia de leitura confortável. */
.module-view[data-module-view="layers"] {
  color: var(--ui-text);
  background: var(--ui-bg);
}
.module-view[data-module-view="layers"] .layer-tools {
  background: rgba(242,245,248,.97);
  border-color: var(--ui-border);
  box-shadow: 0 7px 18px rgba(27,48,63,.06);
  backdrop-filter: blur(12px);
}
.module-view[data-module-view="layers"] .layer-summary-panel div {
  padding: 11px;
  border-color: var(--ui-border);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}
.module-view[data-module-view="layers"] .layer-summary-panel strong {
  color: var(--ui-text);
  font-size: 22px;
  line-height: 1.15;
}
.module-view[data-module-view="layers"] .layer-summary-panel span,
.module-view[data-module-view="layers"] .layer-filter > span {
  color: var(--ui-text-soft);
  font-size: 12px;
  font-weight: 600;
}
.module-view[data-module-view="layers"] .layer-filter input {
  min-height: 40px;
  padding: 9px 11px;
  color: var(--ui-text);
  border-color: var(--ui-border-strong);
  background: var(--ui-surface);
  font-size: 13px;
}
.module-view[data-module-view="layers"] .layer-chips button {
  min-height: 31px;
  padding: 6px 10px;
  color: var(--ui-text-soft);
  border-color: var(--ui-border);
  background: var(--ui-surface);
  font-size: 12px;
  font-weight: 600;
}
.module-view[data-module-view="layers"] .layer-chips button:hover,
.module-view[data-module-view="layers"] .layer-chips button.active {
  color: var(--ui-primary-hover);
  border-color: #93bdca;
  background: var(--ui-primary-soft);
}
.module-view[data-module-view="layers"] .layers-list {
  color: var(--ui-text);
  background: transparent;
  scrollbar-color: #9eb7c1 #e6ecef;
}
.module-view[data-module-view="layers"] .layers-list::-webkit-scrollbar-track { background:#e6ecef; }
.module-view[data-module-view="layers"] .layers-list::-webkit-scrollbar-thumb { background:#9eb7c1; }
.module-view[data-module-view="layers"] .layer-card {
  padding: 12px;
  color: var(--ui-text);
  border-color: var(--ui-border);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow-sm);
}
.module-view[data-module-view="layers"] .layer-card:hover {
  color: var(--ui-text);
  border-color: #a9c5ce;
  background: #f9fcfd;
  box-shadow: 0 7px 18px rgba(27,48,63,.09);
}
.module-view[data-module-view="layers"] .layer-card.active {
  border-color: var(--ui-primary);
  background: #f3fafb;
  box-shadow: inset 3px 0 var(--ui-primary), var(--ui-shadow-sm);
}
.module-view[data-module-view="layers"] .layer-card .layer-item,
.module-view[data-module-view="layers"] .layer-card .layer-item:hover {
  color: var(--ui-text);
  background: transparent;
}
.module-view[data-module-view="layers"] .layer-name {
  color: var(--ui-text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
}
.module-view[data-module-view="layers"] .layer-tags { margin-top: 7px; gap: 5px; }
.module-view[data-module-view="layers"] .layer-tags span {
  padding: 4px 6px;
  color: var(--ui-text-soft);
  border-color: #d5e0e5;
  background: var(--ui-surface-tint);
  font-size: 11px;
  font-weight: 600;
}
.module-view[data-module-view="layers"] .layer-card.disabled .layer-name {
  color: var(--ui-muted);
  opacity: .76;
}
.module-view[data-module-view="layers"] .layer-settings-meta > div {
  border-color: var(--ui-border);
  background: var(--ui-surface-tint);
}
.module-view[data-module-view="layers"] .layer-settings-meta dt { color:var(--ui-muted); }
.module-view[data-module-view="layers"] .layer-settings-meta dd { color:var(--ui-text); }
.module-view[data-module-view="layers"] .layer-action-btn,
.module-view[data-module-view="layers"] .layer-order-btn {
  width: 28px;
  height: 28px;
  color: var(--ui-text-soft);
  border-color: var(--ui-border);
  background: var(--ui-surface-soft);
}
.module-view[data-module-view="layers"] .layer-settings-btn:hover,
.module-view[data-module-view="layers"] .layer-order-btn:hover {
  color: #fff;
  border-color: var(--ui-primary);
  background: var(--ui-primary);
}
.module-view[data-module-view="layers"] .layer-settings {
  border-color: var(--ui-border);
  background: var(--ui-surface-soft);
  margin: 12px -12px -12px;
  padding: 13px 12px 12px;
  border-radius: 0 0 8px 8px;
}
.module-view[data-module-view="layers"] .layer-settings label span {
  color: var(--ui-text-soft);
  font-size: 12px;
  font-weight: 600;
}
.module-view[data-module-view="layers"] .layer-settings input,
.module-view[data-module-view="layers"] .layer-settings select {
  min-height: 38px;
  color: var(--ui-text);
  border-color: var(--ui-border-strong);
  background: var(--ui-surface);
  font-size: 13px;
}
.module-view[data-module-view="layers"] .layer-settings input[type="range"] { min-height: 24px; accent-color:var(--ui-primary); }
.module-view[data-module-view="layers"] .layer-settings input[type="color"] { min-height: 38px; }
.module-view[data-module-view="layers"] .layers-controls {
  border-color: var(--ui-border);
  background: rgba(242,245,248,.97);
}
.module-view[data-module-view="layers"] .layers-controls .btn-secondary {
  min-height: 40px;
  color: #fff;
  border-color: var(--ui-primary);
  background: var(--ui-primary);
  font-size: 13px;
  font-weight: 700;
}
.module-view[data-module-view="layers"] .layers-controls .btn-secondary:hover { background:var(--ui-primary-hover); }

/* Fiscalização: formulário em área de trabalho dedicada. */
body.inspection-form-open { overflow:hidden; }
body.inspection-form-open::after {
  position:fixed;
  inset:0;
  z-index:998;
  content:"";
  background:rgba(20,35,46,.42);
  backdrop-filter:blur(3px);
}
#inspection-form.inspection-form-workspace {
  position:fixed;
  top:18px;
  bottom:18px;
  left:50%;
  z-index:999;
  width:min(1120px,calc(100vw - 112px));
  max-width:none;
  margin:0;
  padding:0 24px 24px;
  overflow-x:hidden;
  overflow-y:auto;
  color:var(--ui-text);
  border:1px solid var(--ui-border);
  border-radius:16px;
  background:var(--ui-bg);
  box-shadow:0 30px 90px rgba(15,30,40,.28);
  transform:translateX(-50%);
  overscroll-behavior:contain;
}
#inspection-form.inspection-form-workspace.access-hidden { display:none; }
#inspection-form.inspection-form-workspace .inspection-form-header {
  position:sticky;
  top:0;
  z-index:6;
  min-height:74px;
  margin:0 -24px 18px;
  padding:12px 24px;
  border-bottom:1px solid var(--ui-border);
  background:rgba(255,255,255,.96);
  box-shadow:0 5px 16px rgba(27,48,63,.06);
  backdrop-filter:blur(14px);
}
#inspection-form.inspection-form-workspace .inspection-form-header > div > span {
  color:var(--ui-primary);
  font-size:10px;
  letter-spacing:.08em;
}
#inspection-form.inspection-form-workspace .inspection-form-header h2 {
  color:var(--ui-text);
  font-size:22px;
}
#inspection-form.inspection-form-workspace .inspection-form-header button {
  color:var(--ui-text-soft);
  border-color:var(--ui-border);
  background:var(--ui-surface-soft);
}
#inspection-form.inspection-form-workspace .inspection-form-header button:hover {
  color:#fff;
  border-color:var(--ui-primary);
  background:var(--ui-primary);
}
#inspection-form.inspection-form-workspace .inspection-form-progress {
  padding:13px 15px;
  border-color:#c9dde3;
  background:var(--ui-primary-soft);
}
#inspection-form.inspection-form-workspace .inspection-form-progress > div:first-child span,
#inspection-form.inspection-form-workspace .inspection-form-progress small { color:var(--ui-text-soft); }
#inspection-form.inspection-form-workspace .inspection-form-progress > div:first-child strong { color:var(--ui-primary); }
#inspection-form.inspection-form-workspace .inspection-progress-checklist span { color:var(--ui-text-soft); background:#fff; }
#inspection-form.inspection-form-workspace .inspection-form-grid { gap:14px; }
#inspection-form.inspection-form-workspace .inspection-form-grid label > span {
  color:var(--ui-text-soft);
  font-size:12px;
  font-weight:650;
}
#inspection-form.inspection-form-workspace .inspection-form-grid input,
#inspection-form.inspection-form-workspace .inspection-form-grid select,
#inspection-form.inspection-form-workspace .inspection-form-grid textarea {
  color:var(--ui-text);
  border-color:var(--ui-border-strong);
  background:#fff;
  font-size:13px;
}
#inspection-form.inspection-form-workspace .inspection-photos,
#inspection-form.inspection-form-workspace .inspection-documents,
#inspection-form.inspection-form-workspace .inspection-location {
  color:var(--ui-text-soft);
  border-color:var(--ui-border);
  background:#fff;
}
#inspection-form.inspection-form-workspace .inspection-photos legend,
#inspection-form.inspection-form-workspace .inspection-documents legend,
#inspection-form.inspection-form-workspace .inspection-location legend { color:var(--ui-text-soft);font-size:11px;font-weight:700; }
#inspection-form.inspection-form-workspace .inspection-photo-capture,
#inspection-form.inspection-form-workspace .inspection-document-capture { color:var(--ui-text-soft);border-color:#a9cbd5;background:#f4fafb; }
#inspection-form.inspection-form-workspace .inspection-photo-capture strong,
#inspection-form.inspection-form-workspace .inspection-document-capture strong,
#inspection-form.inspection-form-workspace .inspection-location strong { color:var(--ui-text); }
#inspection-form.inspection-form-workspace .inspection-form-actions {
  position:sticky;
  bottom:-24px;
  z-index:5;
  margin:18px -24px -24px;
  padding:14px 24px;
  border-top:1px solid var(--ui-border);
  background:rgba(255,255,255,.96);
  box-shadow:0 -6px 18px rgba(27,48,63,.07);
  backdrop-filter:blur(14px);
}
#inspection-form.inspection-form-workspace .inspection-form-actions #inspection-save-draft { color:var(--ui-text-soft);border-color:var(--ui-border-strong);background:#fff; }
#inspection-form.inspection-form-workspace .inspection-form-actions #inspection-submit { color:#fff;background:var(--ui-primary); }

@media(max-width:760px) {
  #inspection-form.inspection-form-workspace { inset:0; width:100%; padding:0 14px 20px; border:0; border-radius:0; transform:none; }
  #inspection-form.inspection-form-workspace .inspection-form-header { min-height:64px; margin:0 -14px 14px; padding:10px 14px; }
  #inspection-form.inspection-form-workspace .inspection-form-header h2 { font-size:18px; }
  #inspection-form.inspection-form-workspace .inspection-form-actions { bottom:-20px; margin:16px -14px -20px; padding:12px 14px; }
}

/* =========================================================
   Fiscalizações · Etapa Visual 1
   Base de legibilidade, contraste, toque e foco acessível.
   Mantém estrutura, comportamento e regras de negócio.
========================================================= */
@media screen {
  .app.inspection-workspace .module-view[data-module-view="inspections"],
  .app.inspection-workspace .module-view[data-module-view="inspection_records"],
  #inspection-form.inspection-form-workspace,
  :is(
    #inspection-detail-dialog,
    #environmental-return-request-dialog,
    #environmental-external-launch-dialog,
    #environmental-administrative-decision-dialog,
    #environmental-appeal-register-dialog,
    #environmental-appeal-judgment-dialog,
    #environmental-post-dialog,
    #inspection-camera-dialog,
    #dirty-lot-return-dialog,
    #inspection-history-dialog
  ) {
    font-size: var(--inspection-font-body);
    line-height: 1.5;
  }

  .app.inspection-workspace .module-view[data-module-view="inspections"] :is(p, span, strong, b, em, time, dt, dd, legend),
  .app.inspection-workspace .module-view[data-module-view="inspection_records"] :is(p, span, strong, b, em, time, dt, dd, legend),
  #inspection-form.inspection-form-workspace :is(p, span, strong, b, em, time, dt, dd, legend),
  :is(
    #inspection-detail-dialog,
    #environmental-return-request-dialog,
    #environmental-external-launch-dialog,
    #environmental-administrative-decision-dialog,
    #environmental-appeal-register-dialog,
    #environmental-appeal-judgment-dialog,
    #environmental-post-dialog,
    #inspection-camera-dialog,
    #dirty-lot-return-dialog,
    #inspection-history-dialog
  ) :is(p, span, strong, b, em, time, dt, dd, legend) {
    font-size: inherit;
  }

  .app.inspection-workspace .module-view[data-module-view="inspections"] :is(small, .project-section-note, .inspection-field-hint),
  .app.inspection-workspace .module-view[data-module-view="inspection_records"] small,
  #inspection-form.inspection-form-workspace small,
  :is(
    #inspection-detail-dialog,
    #environmental-return-request-dialog,
    #environmental-external-launch-dialog,
    #environmental-administrative-decision-dialog,
    #environmental-appeal-register-dialog,
    #environmental-appeal-judgment-dialog,
    #environmental-post-dialog,
    #inspection-camera-dialog,
    #dirty-lot-return-dialog,
    #inspection-history-dialog
  ) small {
    color: #52677d;
    font-size: var(--inspection-font-help);
    line-height: 1.45;
  }

  .app.inspection-workspace .module-view[data-module-view="inspections"] :is(label, .inspection-operation-meta, .inspection-operation-evidence),
  #inspection-form.inspection-form-workspace label,
  :is(
    #environmental-return-request-dialog,
    #environmental-external-launch-dialog,
    #environmental-administrative-decision-dialog,
    #environmental-appeal-register-dialog,
    #environmental-appeal-judgment-dialog,
    #environmental-post-dialog,
    #dirty-lot-return-dialog
  ) label {
    font-size: var(--inspection-font-body);
  }

  .app.inspection-workspace .module-view[data-module-view="inspections"] label > span,
  #inspection-form.inspection-form-workspace label > span,
  .environmental-return-request-grid label > span,
  .environmental-post-grid label > span,
  .environmental-notes > span,
  .dirty-lot-return-fields label > span {
    color: #334b62;
    font-size: var(--inspection-font-body);
    font-weight: 700;
    line-height: 1.4;
    text-transform: none;
  }

  .app.inspection-workspace .module-view[data-module-view="inspections"] :is(input, select, textarea),
  #inspection-form.inspection-form-workspace :is(input, select, textarea),
  :is(
    #environmental-return-request-dialog,
    #environmental-external-launch-dialog,
    #environmental-administrative-decision-dialog,
    #environmental-appeal-register-dialog,
    #environmental-appeal-judgment-dialog,
    #environmental-post-dialog,
    #dirty-lot-return-dialog
  ) :is(input, select, textarea) {
    min-height: var(--inspection-field-control-height);
    padding: 12px 14px;
    color: #172c3d;
    border-color: #91a9bc;
    background: #fff;
    font-size: var(--inspection-font-body);
    line-height: 1.4;
  }

  .app.inspection-workspace .module-view[data-module-view="inspections"] textarea,
  #inspection-form.inspection-form-workspace textarea,
  :is(
    #environmental-return-request-dialog,
    #environmental-external-launch-dialog,
    #environmental-administrative-decision-dialog,
    #environmental-appeal-register-dialog,
    #environmental-appeal-judgment-dialog,
    #environmental-post-dialog,
    #dirty-lot-return-dialog
  ) textarea {
    min-height: 112px;
  }

  .app.inspection-workspace .module-view[data-module-view="inspections"] :is(button, [role="button"]),
  .app.inspection-workspace .module-view[data-module-view="inspection_records"] button,
  #inspection-form.inspection-form-workspace button,
  :is(
    #inspection-detail-dialog,
    #environmental-return-request-dialog,
    #environmental-external-launch-dialog,
    #environmental-administrative-decision-dialog,
    #environmental-appeal-register-dialog,
    #environmental-appeal-judgment-dialog,
    #environmental-post-dialog,
    #inspection-camera-dialog,
    #dirty-lot-return-dialog,
    #inspection-history-dialog
  ) button {
    min-height: var(--inspection-control-height);
    padding: 0 16px;
    font-size: var(--inspection-font-body);
    font-weight: 700;
    line-height: 1.25;
  }

  .app.inspection-workspace .module-view[data-module-view="inspections"] :is(button, input, select, textarea, [role="button"]):focus-visible,
  .app.inspection-workspace .module-view[data-module-view="inspection_records"] :is(button, input, select, textarea):focus-visible,
  #inspection-form.inspection-form-workspace :is(button, input, select, textarea):focus-visible,
  :is(
    #inspection-detail-dialog,
    #environmental-return-request-dialog,
    #environmental-external-launch-dialog,
    #environmental-administrative-decision-dialog,
    #environmental-appeal-register-dialog,
    #environmental-appeal-judgment-dialog,
    #environmental-post-dialog,
    #inspection-camera-dialog,
    #dirty-lot-return-dialog,
    #inspection-history-dialog
  ) :is(button, input, select, textarea):focus-visible {
    outline: 4px solid #0b6ee8;
    outline-offset: 3px;
    border-color: #0b6ee8;
    box-shadow: 0 0 0 6px rgba(11, 110, 232, .2);
  }

  .inspection-ops-kpis article,
  .inspection-action-grid article,
  .inspection-fiscal-welcome,
  .inspection-fiscal-return-card,
  .inspection-analyst-home,
  .inspection-journey-panel,
  .inspection-review-card,
  .inspection-list-card,
  .inspection-operation-card,
  .inspection-review-group,
  .inspection-record-card {
    padding: var(--inspection-card-padding);
  }

  .inspection-action-grid,
  .inspection-ops-kpis,
  .inspection-fiscal-home,
  .inspection-fiscal-queue-metrics,
  .inspection-review-list,
  .inspection-review-group,
  .inspection-demand-list-card,
  .inspection-list,
  .inspection-form-grid,
  .environmental-post-grid,
  .environmental-return-request-grid,
  .dirty-lot-return-fields {
    gap: 16px;
  }

  .inspection-demand-actions,
  .inspection-review-actions,
  .inspection-form-actions,
  .user-dialog footer,
  .inspection-location-actions,
  .inspection-hero-actions {
    gap: 8px;
  }

  .inspection-operation-main h3,
  .inspection-item strong,
  .inspection-review-list article strong,
  .inspection-fiscal-return-item strong,
  .inspection-history-event strong {
    color: #172c3d;
    font-size: var(--inspection-font-body);
    line-height: 1.4;
  }

  .inspection-operation-meta small,
  .inspection-operation-evidence span,
  .inspection-demand-item-heading :is(span, b, time),
  .inspection-review-list article :is(span, small),
  .inspection-fiscal-return-item :is(span, small, time),
  .inspection-progress-checklist span,
  .inspection-status,
  .environmental-process-status,
  .environmental-deadline-counter {
    color: #3f566c;
    font-size: var(--inspection-font-help);
    line-height: 1.4;
  }

  .inspection-status,
  .environmental-process-status,
  .inspection-overdue-badge {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-weight: 800;
    white-space: normal;
  }

  .inspection-operation-meta > span {
    padding: 12px;
    border-color: #c1ced9;
    background: #f7fafc;
  }

  .inspection-operation-evidence span {
    padding: 7px 10px;
    color: #334b62;
    background: #edf3f7;
  }

  .inspection-message {
    min-height: 28px;
    color: #405970;
    font-size: var(--inspection-font-help);
    font-weight: 600;
    line-height: 1.45;
  }

  .inspection-message.error {
    padding: 12px 14px;
    color: #8b1e2d;
    border: 2px solid #d43f55;
    border-radius: 8px;
    background: #fff1f2;
  }

  .inspection-message.success {
    padding: 12px 14px;
    color: #166534;
    border: 2px solid #39a75a;
    border-radius: 8px;
    background: #f0fdf4;
  }

  :is(
    #inspection-detail-dialog,
    #environmental-return-request-dialog,
    #environmental-external-launch-dialog,
    #environmental-administrative-decision-dialog,
    #environmental-appeal-register-dialog,
    #environmental-appeal-judgment-dialog,
    #environmental-post-dialog,
    #inspection-camera-dialog,
    #dirty-lot-return-dialog,
    #inspection-history-dialog
  ) {
    color: #172c3d;
    border-color: #8da5b8;
    background: #fff;
  }

  :is(
    #inspection-detail-dialog,
    #environmental-return-request-dialog,
    #environmental-external-launch-dialog,
    #environmental-administrative-decision-dialog,
    #environmental-appeal-register-dialog,
    #environmental-appeal-judgment-dialog,
    #environmental-post-dialog,
    #inspection-camera-dialog,
    #dirty-lot-return-dialog,
    #inspection-history-dialog
  ) :is(h2, h3, strong) {
    color: #14293a;
  }

  .user-dialog header > div > span,
  .environmental-post-rule small,
  .inspection-history-event small {
    color: #405d76;
    font-size: var(--inspection-font-help);
  }

  .user-dialog header button {
    width: var(--inspection-control-height);
    min-width: var(--inspection-control-height);
    height: var(--inspection-control-height);
    padding: 0;
    color: #29455e;
    border: 1px solid #aebdca;
    background: #f4f7f9;
  }

  .inspection-history-event {
    gap: 14px;
    padding: 16px 0;
  }

  .inspection-history-event p {
    color: #2f485e;
    font-size: var(--inspection-font-body);
    line-height: 1.55;
  }
}

/* Overrides finais do console administrativo */
.app.admin-workspace .module-view[data-module-view="admin"].active{width:min(1480px,100%);grid-template-columns:minmax(0,1fr);gap:16px}
.app.admin-workspace .module-view[data-module-view="admin"]>.access-overview,.app.admin-workspace .admin-users-card,.app.admin-workspace .admin-nav-card,.app.admin-workspace .admin-tool-card{grid-column:1;grid-row:auto;margin:0}
.app.admin-workspace .admin-user-row{grid-template-columns:minmax(230px,1.35fr) minmax(150px,.8fr) minmax(165px,.85fr) 100px 130px 56px;gap:12px;min-height:66px;padding:10px 14px}
.app.admin-workspace .admin-user-row>.admin-user-identity{display:flex;grid-column:auto;grid-row:auto}.app.admin-workspace .admin-user-row>.admin-user-action-menu{grid-column:auto;grid-row:auto}
.app.admin-workspace .admin-profile-permissions fieldset{display:block;margin:0;padding:0 12px 12px}.app.admin-workspace .admin-profile-permissions>section{padding:0}
.app.admin-workspace .admin-profile-permissions button{width:auto;height:auto}.user-dialog#user-dialog{width:min(660px,calc(100vw - 28px))}
@media(max-width:1180px){.app.admin-workspace .admin-user-row{grid-template-columns:minmax(210px,1.2fr) minmax(140px,.8fr) minmax(150px,.8fr) 90px 52px}}
@media(max-width:820px){.app.admin-workspace .admin-user-row{grid-template-columns:minmax(0,1fr) auto}.app.admin-workspace .admin-user-row>.admin-user-identity{grid-column:1;grid-row:1}.app.admin-workspace .admin-user-row>.admin-user-action-menu{grid-column:2;grid-row:1/4}}
body[data-theme="dark"] .module-view[data-module-view="admin"],body[data-theme="dark"] .user-dialog{--ui-surface:var(--gw-surface,#111d2d);--ui-surface-soft:var(--gw-surface-2,#0f172a);--ui-border:var(--gw-border,#2a3950);--ui-text:var(--gw-text,#e7edf5);--ui-text-soft:var(--gw-muted,#91a3b9);--ui-primary:var(--gw-primary,#38bdf8)}
body[data-theme="dark"] .admin-badge{color:#cbd5e1;background:#253348}body[data-theme="dark"] .admin-secretariat-badge{color:#7dd3fc;background:rgba(14,165,233,.14)}body[data-theme="dark"] .admin-profile-badge{color:#c4b5fd;background:rgba(139,92,246,.15)}body[data-theme="dark"] .admin-status-badge.active{color:#86efac;background:rgba(34,197,94,.14)}body[data-theme="dark"] .admin-status-badge.inactive{color:#fda4af;background:rgba(244,63,94,.14)}body[data-theme="dark"] .admin-profile-icon{color:#c4b5fd;background:rgba(139,92,246,.15)}body[data-theme="dark"] .admin-profile-card>header>b{color:#7dd3fc;background:rgba(14,165,233,.14)}
.dirty-lot-workflow{display:grid;gap:0;overflow:hidden;border:1px solid rgba(14,165,233,.18);border-radius:11px;background:rgba(15,23,42,.38)}.dirty-lot-workflow>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-bottom:1px solid rgba(148,163,184,.12)}.dirty-lot-workflow>header>div{display:flex;align-items:center;gap:9px}.dirty-lot-workflow>header>div>.material-symbols-outlined{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;color:#38bdf8;background:rgba(14,165,233,.1)}.dirty-lot-workflow>header>div>span:last-child{display:grid;gap:2px}.dirty-lot-workflow>header small{color:#38bdf8;font-size:7px;font-weight:800;text-transform:uppercase}.dirty-lot-workflow>header strong{color:#e5edf6;font-size:12px}.dirty-lot-workflow>header button{min-height:31px;display:flex;align-items:center;gap:5px;padding:0 9px;border:1px solid rgba(56,189,248,.25);border-radius:7px;color:#bae6fd;background:rgba(14,165,233,.08);font-size:8px;font-weight:800;cursor:pointer}.dirty-lot-workflow>header button .material-symbols-outlined{font-size:14px}.dirty-lot-workflow-timeline{display:grid;padding:5px 14px 12px}.dirty-lot-workflow-event{position:relative;display:grid;grid-template-columns:14px minmax(0,1fr);gap:9px;padding:11px 0}.dirty-lot-workflow-event:not(:last-child)::before{position:absolute;top:24px;bottom:-12px;left:5px;width:1px;background:rgba(56,189,248,.22);content:''}.workflow-event-dot{z-index:1;width:11px;height:11px;margin-top:3px;border:3px solid rgba(14,165,233,.24);border-radius:50%;background:#38bdf8;box-shadow:0 0 0 3px rgba(14,165,233,.08)}.dirty-lot-workflow-event>div{min-width:0;display:grid;gap:5px}.dirty-lot-workflow-event header{display:flex;align-items:center;justify-content:space-between;gap:8px}.dirty-lot-workflow-event header strong{color:#dce7f3;font-size:9px;text-transform:capitalize}.dirty-lot-workflow-event time{color:#64748b;font-size:7px}.dirty-lot-workflow-event p{margin:0;color:#91a2b7;font-size:9px;line-height:1.45}.dirty-lot-workflow-event footer{display:flex;align-items:center;gap:4px;color:#71839b;font-size:7px}.dirty-lot-workflow-event footer>.material-symbols-outlined{font-size:12px}.workflow-status-change{margin-left:auto;padding:3px 6px;border-radius:999px;color:#7dd3fc;background:rgba(14,165,233,.09)}
body[data-theme="light"] .dirty-lot-workflow{border-color:#cfe0f2;background:#f8fbff}body[data-theme="light"] .dirty-lot-workflow>header strong,body[data-theme="light"] .dirty-lot-workflow-event header strong{color:#24344a}body[data-theme="light"] .dirty-lot-workflow-event p{color:#52647a}
.my-work-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 14px}.my-work-tabs button{min-height:68px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:11px;padding:11px 14px;border:1px solid var(--gw-border,#dbe3ec);border-radius:11px;color:var(--gw-text,#172033);background:var(--gw-surface,#fff);font:inherit;text-align:left;cursor:pointer;box-shadow:0 5px 15px rgba(20,40,70,.04)}.my-work-tabs button>.material-symbols-outlined{width:39px;height:39px;display:grid;place-items:center;border-radius:9px;color:var(--gw-primary,#2563eb);background:color-mix(in srgb,var(--gw-primary,#2563eb) 10%,transparent);font-size:21px}.my-work-tabs button>span{display:grid;gap:3px}.my-work-tabs strong{font-size:12px}.my-work-tabs small{color:var(--gw-muted,#64748b);font-size:9px}.my-work-tabs b{min-width:30px;padding:6px;border-radius:999px;color:var(--gw-primary,#2563eb);background:color-mix(in srgb,var(--gw-primary,#2563eb) 10%,transparent);font-size:11px;text-align:center}.my-work-tabs button:hover{border-color:color-mix(in srgb,var(--gw-primary,#2563eb) 55%,var(--gw-border,#dbe3ec))}.my-work-tabs button.active{border:2px solid var(--gw-primary,#2563eb);padding:10px 13px;background:color-mix(in srgb,var(--gw-primary,#2563eb) 6%,var(--gw-surface,#fff));box-shadow:0 0 0 3px color-mix(in srgb,var(--gw-primary,#2563eb) 10%,transparent)}.my-work-tabs button:focus-visible{outline:3px solid color-mix(in srgb,var(--gw-primary,#2563eb) 25%,transparent);outline-offset:2px}
.work-inbox-priority.normal{color:#075985;background:#e0f2fe}
.work-inbox-view{width:min(1480px,100%);margin:0 auto}.work-inbox-hero{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px;border:1px solid var(--gw-border,#dbe3ec);border-radius:13px;background:radial-gradient(circle at 90% 0,rgba(37,99,235,.12),transparent 34%),var(--gw-surface,#fff);box-shadow:0 10px 28px rgba(20,40,70,.06)}.work-inbox-hero>div{display:flex;align-items:center;gap:13px}.work-inbox-hero>div>.material-symbols-outlined{width:48px;height:48px;display:grid;place-items:center;border-radius:12px;color:var(--gw-primary,#2563eb);background:color-mix(in srgb,var(--gw-primary,#2563eb) 11%,transparent);font-size:26px}.work-inbox-hero small{color:var(--gw-primary,#2563eb);font-size:8px;font-weight:800;text-transform:uppercase}.work-inbox-hero h2{margin:3px 0;color:var(--gw-text,#172033);font-size:20px}.work-inbox-hero p{margin:0;color:var(--gw-muted,#64748b);font-size:10px}.work-inbox-hero button{min-height:37px;display:flex;align-items:center;gap:6px;padding:0 12px;border:1px solid color-mix(in srgb,var(--gw-primary,#2563eb) 25%,transparent);border-radius:8px;color:var(--gw-primary,#2563eb);background:color-mix(in srgb,var(--gw-primary,#2563eb) 7%,transparent);font-size:9px;font-weight:800;cursor:pointer}.work-inbox-hero button .material-symbols-outlined{font-size:16px}
.work-inbox-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:14px 0}.work-inbox-summary-card{--inbox-tone:#2563eb;display:flex;align-items:center;gap:10px;padding:14px;border:1px solid color-mix(in srgb,var(--inbox-tone) 18%,var(--gw-border,#dbe3ec));border-radius:11px;background:linear-gradient(145deg,color-mix(in srgb,var(--inbox-tone) 6%,var(--gw-surface,#fff)),var(--gw-surface,#fff));box-shadow:0 7px 20px rgba(20,40,70,.05)}.work-inbox-summary-card.amber{--inbox-tone:#d97706}.work-inbox-summary-card.red{--inbox-tone:#dc2626}.work-inbox-summary-card.purple{--inbox-tone:#7c3aed}.work-inbox-summary-card.green{--inbox-tone:#16a34a}.work-inbox-summary-card>.material-symbols-outlined{width:35px;height:35px;display:grid;place-items:center;border-radius:9px;color:var(--inbox-tone);background:color-mix(in srgb,var(--inbox-tone) 10%,transparent);font-size:19px}.work-inbox-summary-card>span:last-child{display:grid;gap:2px}.work-inbox-summary-card small{color:var(--gw-muted,#64748b);font-size:8px;font-weight:700}.work-inbox-summary-card strong{color:var(--gw-text,#172033);font-size:21px}
.work-inbox-card{margin:0!important;padding:0!important;overflow:visible!important}.work-inbox-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) repeat(4,minmax(140px,.42fr));gap:8px;padding:13px;border-bottom:1px solid var(--gw-border,#dbe3ec)}.work-inbox-toolbar label{position:relative}.work-inbox-toolbar label>.material-symbols-outlined{position:absolute;top:10px;left:10px;color:var(--gw-muted,#64748b);font-size:17px}.work-inbox-toolbar input,.work-inbox-toolbar select{width:100%;height:38px;padding:0 9px;border:1px solid var(--gw-border,#dbe3ec);border-radius:7px;color:var(--gw-text,#172033);background:var(--gw-surface-2,#f8fafc);outline:0;font-size:9px}.work-inbox-toolbar input{padding-left:34px}.work-inbox-toolbar input:focus,.work-inbox-toolbar select:focus{border-color:var(--gw-primary,#2563eb);box-shadow:0 0 0 3px color-mix(in srgb,var(--gw-primary,#2563eb) 10%,transparent)}.work-inbox-list{min-height:260px}.work-inbox-table-head,.work-inbox-row{display:grid;grid-template-columns:minmax(190px,1fr) minmax(135px,.72fr) minmax(145px,.75fr) 90px minmax(110px,.55fr) minmax(160px,.8fr) 76px;gap:10px;align-items:center}.work-inbox-table-head{min-height:40px;padding:0 13px;border-bottom:1px solid var(--gw-border,#dbe3ec);color:var(--gw-muted,#64748b);background:var(--gw-surface-2,#f8fafc);font-size:8px;font-weight:800;text-transform:uppercase}.work-inbox-row{min-height:69px;padding:10px 13px;border-bottom:1px solid var(--gw-border,#e5ebf2);color:var(--gw-text,#172033);cursor:pointer;transition:background .15s}.work-inbox-row:hover{background:color-mix(in srgb,var(--gw-primary,#2563eb) 4%,var(--gw-surface,#fff))}.work-inbox-row>span{min-width:0;display:grid;gap:4px}.work-inbox-row>span>strong{overflow:hidden;color:var(--gw-text,#172033);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.work-inbox-row small{overflow:hidden;color:var(--gw-muted,#64748b);font-size:8px;text-overflow:ellipsis;white-space:nowrap}.work-inbox-status,.work-inbox-priority{width:max-content;max-width:100%;padding:5px 7px;border-radius:999px;color:#075985;background:#e0f2fe;font-size:8px;white-space:nowrap}.work-inbox-status.regularizado,.work-inbox-status.arquivado{color:#166534;background:#dcfce7}.work-inbox-status.multa_emitida,.work-inbox-status.cancelado{color:#9f1239;background:#ffe4e6}.work-inbox-status.revisita_pendente,.work-inbox-status.aguardando_regularizacao{color:#92400e;background:#fef3c7}.work-inbox-priority.baixa{color:#475569;background:#e2e8f0}.work-inbox-priority.media{color:#075985;background:#e0f2fe}.work-inbox-priority.alta{color:#92400e;background:#fef3c7}.work-inbox-priority.urgente{color:#9f1239;background:#ffe4e6}.work-inbox-deadline.vencida{color:#dc2626!important}.work-inbox-deadline.vence_hoje{color:#d97706!important}.work-inbox-row>button{min-height:31px;display:flex;align-items:center;justify-content:center;gap:2px;padding:0 7px;border:1px solid color-mix(in srgb,var(--gw-primary,#2563eb) 22%,transparent);border-radius:7px;color:var(--gw-primary,#2563eb);background:transparent;font-size:8px;font-weight:800;cursor:pointer}.work-inbox-row>button .material-symbols-outlined{font-size:14px}.work-inbox-empty{min-height:260px;display:grid;place-items:center;align-content:center;gap:6px;color:var(--gw-muted,#64748b)}.work-inbox-empty>.material-symbols-outlined{font-size:37px}.work-inbox-empty strong{color:var(--gw-text,#172033);font-size:12px}.work-inbox-empty small{font-size:9px}
.work-inbox-detail-dialog{width:min(760px,calc(100vw - 28px))}.work-inbox-detail-body{display:grid;gap:13px;max-height:68vh;overflow:auto;padding:0 2px}.work-inbox-detail-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.work-inbox-detail-summary>div{display:grid;gap:4px;padding:11px;border:1px solid var(--gw-border,#dbe3ec);border-radius:8px;background:var(--gw-surface-2,#f8fafc)}.work-inbox-detail-summary small{color:var(--gw-muted,#64748b);font-size:7px;text-transform:uppercase}.work-inbox-detail-summary strong{color:var(--gw-text,#172033);font-size:9px}.work-inbox-mini-timeline{display:grid;padding:12px;border:1px solid var(--gw-border,#dbe3ec);border-radius:9px}.work-inbox-mini-timeline>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:5px}.work-inbox-mini-timeline>header>strong{color:var(--gw-text,#172033);font-size:11px}.work-inbox-mini-timeline>header button{display:flex;align-items:center;gap:4px;padding:6px 8px;border:1px solid var(--gw-border,#dbe3ec);border-radius:6px;color:var(--gw-primary,#2563eb);background:transparent;font-size:8px;cursor:pointer}.work-inbox-mini-timeline>header .material-symbols-outlined{font-size:13px}.work-inbox-mini-timeline article{display:grid;grid-template-columns:10px 1fr;gap:8px;padding:9px 0;border-bottom:1px solid var(--gw-border,#e5ebf2)}.work-inbox-mini-timeline article:last-child{border-bottom:0}.work-inbox-mini-timeline article>i{width:9px;height:9px;margin-top:3px;border-radius:50%;background:var(--gw-primary,#2563eb)}.work-inbox-mini-timeline article>span{display:grid;gap:3px}.work-inbox-mini-timeline article strong{color:var(--gw-text,#172033);font-size:9px;text-transform:capitalize}.work-inbox-mini-timeline p{margin:0;color:var(--gw-muted,#64748b);font-size:9px}.work-inbox-mini-timeline small{color:var(--gw-muted,#64748b);font-size:7px}
.work-inbox-summary-card{min-height:70px;color:inherit;font:inherit;text-align:left;cursor:pointer;transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}.work-inbox-summary-card:hover{transform:translateY(-2px);border-color:var(--inbox-tone);box-shadow:0 10px 24px color-mix(in srgb,var(--inbox-tone) 16%,transparent)}.work-inbox-summary-card.active{border:2px solid var(--inbox-tone);padding:13px;background:color-mix(in srgb,var(--inbox-tone) 13%,var(--gw-surface,#fff));box-shadow:0 0 0 3px color-mix(in srgb,var(--inbox-tone) 14%,transparent)}.work-inbox-summary-card:focus-visible{outline:3px solid color-mix(in srgb,var(--inbox-tone) 35%,transparent);outline-offset:3px}
body[data-theme="dark"] .work-inbox-status,body[data-theme="dark"] .work-inbox-priority{color:#bae6fd;background:rgba(14,165,233,.14)}body[data-theme="dark"] .work-inbox-status.regularizado,body[data-theme="dark"] .work-inbox-status.arquivado{color:#86efac;background:rgba(34,197,94,.14)}body[data-theme="dark"] .work-inbox-status.multa_emitida,body[data-theme="dark"] .work-inbox-status.cancelado,body[data-theme="dark"] .work-inbox-priority.urgente{color:#fda4af;background:rgba(244,63,94,.14)}
.work-inbox-results-bar{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 14px;border-bottom:1px solid var(--gw-border,#dbe3ec);background:color-mix(in srgb,var(--gw-primary,#2563eb) 3%,var(--gw-surface,#fff))}.work-inbox-results-bar>div{display:grid;gap:3px}.work-inbox-results-bar strong{color:var(--gw-text,#172033);font-size:13px}.work-inbox-results-bar small{color:var(--gw-muted,#64748b);font-size:10px}.work-inbox-results-bar button{min-height:42px;display:flex;align-items:center;gap:7px;padding:0 14px;border:1px solid var(--gw-primary,#2563eb);border-radius:8px;color:var(--gw-primary,#2563eb);background:var(--gw-surface,#fff);font-size:11px;font-weight:800;cursor:pointer}.work-inbox-results-bar button:disabled{visibility:hidden}.work-inbox-results-bar .material-symbols-outlined{font-size:18px}.work-inbox-row{position:relative;border-left:5px solid transparent}.work-inbox-row:has(.work-inbox-deadline.vencida){border-left-color:#dc2626;background:color-mix(in srgb,#dc2626 4%,var(--gw-surface,#fff))}.work-inbox-row:has(.work-inbox-deadline.vence_hoje){border-left-color:#d97706;background:color-mix(in srgb,#d97706 4%,var(--gw-surface,#fff))}.work-inbox-row>span>strong{font-size:12px}.work-inbox-row small,.work-inbox-status,.work-inbox-priority{font-size:10px}.work-inbox-row>button{min-height:40px;font-size:10px}
@media(max-width:1180px){.work-inbox-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.work-inbox-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.work-inbox-toolbar label{grid-column:1/-1}.work-inbox-table-head,.work-inbox-row{grid-template-columns:minmax(190px,1fr) minmax(125px,.7fr) minmax(135px,.72fr) 85px minmax(105px,.55fr) 70px}.work-inbox-table-head>span:nth-child(6),.work-inbox-row>span:nth-child(6){display:none}}
@media(max-width:820px){.work-inbox-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.work-inbox-hero{align-items:flex-start}.work-inbox-table-head{display:none}.work-inbox-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}.work-inbox-row>span{grid-column:1}.work-inbox-row>button{grid-column:2;grid-row:1/4}.work-inbox-detail-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.my-work-tabs{grid-template-columns:1fr}.my-work-tabs button{min-height:62px}.my-work-tabs small{font-size:10px}}

/* Meu Trabalho: linguagem visual única entre Pendências e Meus Formulários */
.module-view[data-module-view="inspection_records"] .inspection-records-hero{padding:20px;border:1px solid var(--gw-border,#dbe3ec);border-radius:13px;background:radial-gradient(circle at 90% 0,rgba(37,99,235,.12),transparent 34%),var(--gw-surface,#fff);box-shadow:0 10px 28px rgba(20,40,70,.06)}
.module-view[data-module-view="inspection_records"] .inspection-records-hero>.material-symbols-outlined{color:var(--gw-primary,#2563eb);background:color-mix(in srgb,var(--gw-primary,#2563eb) 11%,transparent)}
.module-view[data-module-view="inspection_records"] .inspection-records-hero h1{color:var(--gw-text,#172033);font-size:20px}.module-view[data-module-view="inspection_records"] .inspection-records-hero p{color:var(--gw-muted,#64748b);font-size:10px}.module-view[data-module-view="inspection_records"] .inspection-records-hero button{min-height:37px;padding:0 12px;border:1px solid color-mix(in srgb,var(--gw-primary,#2563eb) 25%,transparent);border-radius:8px;color:var(--gw-primary,#2563eb);background:color-mix(in srgb,var(--gw-primary,#2563eb) 7%,transparent);font-size:9px}
.module-view[data-module-view="inspection_records"] .inspection-records-metrics{gap:10px;margin:14px 0}.module-view[data-module-view="inspection_records"] .inspection-records-metrics article{min-height:65px;padding:14px;border-radius:11px;background:linear-gradient(145deg,color-mix(in srgb,var(--record-accent) 6%,var(--gw-surface,#fff)),var(--gw-surface,#fff));box-shadow:0 7px 20px rgba(20,40,70,.05)}.module-view[data-module-view="inspection_records"] .inspection-records-metrics small{color:var(--gw-muted,#64748b);font-size:8px;font-weight:700}.module-view[data-module-view="inspection_records"] .inspection-records-metrics strong{color:var(--gw-text,#172033);font-size:21px}
.module-view[data-module-view="inspection_records"] .inspection-records-filters{grid-template-columns:minmax(260px,1fr) minmax(180px,.42fr);gap:8px;margin:0;padding:13px;border:1px solid var(--gw-border,#dbe3ec);border-radius:11px 11px 0 0;background:var(--gw-surface,#fff);box-shadow:none}.module-view[data-module-view="inspection_records"] .inspection-records-filters input,.module-view[data-module-view="inspection_records"] .inspection-records-filters select{height:38px;min-height:38px;padding-top:0;padding-bottom:0;border:1px solid var(--gw-border,#dbe3ec);border-radius:7px;color:var(--gw-text,#172033);background:var(--gw-surface-2,#f8fafc);font-size:9px}.module-view[data-module-view="inspection_records"] .inspection-records-filters input{padding-left:36px}
.module-view[data-module-view="inspection_records"] .inspection-records-list-card{margin:0!important;padding:0!important;border-top:0;border-radius:0 0 11px 11px;overflow:hidden}.module-view[data-module-view="inspection_records"] .inspection-records-list-card>.project-card-header{min-height:48px;align-items:center;padding:10px 14px;border-bottom:1px solid var(--gw-border,#dbe3ec);background:var(--gw-surface-2,#f8fafc)}.module-view[data-module-view="inspection_records"] .inspection-records-list-card h2{font-size:12px}.module-view[data-module-view="inspection_records"] .inspection-records-list{gap:0;margin:0}.module-view[data-module-view="inspection_records"] .inspection-record-card{min-height:76px;margin:0;padding:12px 14px;border:0!important;border-bottom:1px solid var(--gw-border,#e5ebf2)!important;border-radius:0;background:var(--gw-surface,#fff);box-shadow:none;transition:background .15s}.module-view[data-module-view="inspection_records"] .inspection-record-card:hover{border-color:var(--gw-border,#e5ebf2)!important;background:color-mix(in srgb,var(--gw-primary,#2563eb) 4%,var(--gw-surface,#fff))}.module-view[data-module-view="inspection_records"] .inspection-record-card strong{color:var(--gw-text,#172033);font-size:12px}.module-view[data-module-view="inspection_records"] .inspection-record-card small,.module-view[data-module-view="inspection_records"] .inspection-record-heading time,.module-view[data-module-view="inspection_records"] .inspection-record-evidence span{color:var(--gw-muted,#64748b);font-size:10px}.module-view[data-module-view="inspection_records"] .inspection-record-evidence span.ready{color:#15803d}.module-view[data-module-view="inspection_records"] .inspection-item-actions button{min-width:40px;min-height:40px;padding:0;border:1px solid color-mix(in srgb,var(--gw-primary,#2563eb) 22%,transparent);border-radius:7px;color:var(--gw-primary,#2563eb);background:transparent}
@media(max-width:820px){.module-view[data-module-view="inspection_records"] .inspection-records-filters{grid-template-columns:1fr}.module-view[data-module-view="inspection_records"] .inspection-records-hero{grid-template-columns:auto 1fr}.module-view[data-module-view="inspection_records"] .inspection-records-hero>button{grid-column:1/-1;justify-self:stretch;justify-content:center}}

/* Meu Trabalho: escala tipográfica equivalente e hierarquia preservada */
.app.inspection-workspace .module-view[data-module-view="inspection_records"]{font-size:12px;line-height:1.45}
.app.inspection-workspace .module-view[data-module-view="inspection_records"] .my-work-tabs strong{font-size:12px;line-height:1.25}.app.inspection-workspace .module-view[data-module-view="inspection_records"] .my-work-tabs small{font-size:9px;line-height:1.35}.app.inspection-workspace .module-view[data-module-view="inspection_records"] .my-work-tabs b{font-size:11px;line-height:1}
.app.inspection-workspace .module-view[data-module-view="inspection_records"] .inspection-records-hero small{font-size:8px;line-height:1.3}.app.inspection-workspace .module-view[data-module-view="inspection_records"] .inspection-records-hero h1{font-size:20px;line-height:1.2}.app.inspection-workspace .module-view[data-module-view="inspection_records"] .inspection-records-hero p{font-size:10px;line-height:1.4}.app.inspection-workspace .module-view[data-module-view="inspection_records"] .inspection-records-hero button{font-size:9px;line-height:1.25}
.app.inspection-workspace .module-view[data-module-view="inspection_records"] .inspection-records-metrics small{font-size:8px;line-height:1.3}.app.inspection-workspace .module-view[data-module-view="inspection_records"] .inspection-records-metrics strong{font-size:21px;line-height:1.1}
.app.inspection-workspace .module-view[data-module-view="inspection_records"] .inspection-records-filters input,.app.inspection-workspace .module-view[data-module-view="inspection_records"] .inspection-records-filters select{font-size:9px;line-height:1.25}
.app.inspection-workspace .module-view[data-module-view="inspection_records"] .inspection-records-list-card h2{font-size:12px;line-height:1.3}.app.inspection-workspace .module-view[data-module-view="inspection_records"] .inspection-records-list-card .project-section-note{font-size:9px;line-height:1.4}
.app.inspection-workspace .module-view[data-module-view="inspection_records"] .inspection-record-card>div>strong{font-size:12px;line-height:1.35}.app.inspection-workspace .module-view[data-module-view="inspection_records"] .inspection-record-card>div>small{font-size:10px;line-height:1.4}.app.inspection-workspace .module-view[data-module-view="inspection_records"] .inspection-record-heading .inspection-status,.app.inspection-workspace .module-view[data-module-view="inspection_records"] .inspection-record-heading b{font-size:10px;line-height:1.2}.app.inspection-workspace .module-view[data-module-view="inspection_records"] .inspection-record-heading time{font-size:9px;line-height:1.3}.app.inspection-workspace .module-view[data-module-view="inspection_records"] .inspection-record-evidence span{font-size:9px;line-height:1.3}.app.inspection-workspace .module-view[data-module-view="inspection_records"] .inspection-record-evidence i{font-size:15px}.app.inspection-workspace .module-view[data-module-view="inspection_records"] .inspection-item-actions button{font-size:10px;line-height:1}
@media(max-width:620px){.app.inspection-workspace .module-view[data-module-view="inspection_records"] .my-work-tabs small{font-size:10px}.app.inspection-workspace .module-view[data-module-view="inspection_records"] .inspection-records-hero h1{font-size:19px}}
.workflow-notification-bell{position:relative;width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--gw-border,#dbe3ec);border-radius:9px;color:var(--gw-muted,#64748b);background:var(--gw-surface-2,#f8fafc);cursor:pointer}.workflow-notification-bell:hover,.workflow-notification-bell[aria-expanded="true"]{color:var(--gw-primary,#2563eb);border-color:var(--gw-primary,#2563eb)}.workflow-notification-bell>.material-symbols-outlined{font-size:19px}.workflow-notification-bell>b{position:absolute;top:-5px;right:-5px;min-width:17px;height:17px;display:grid;place-items:center;padding:0 4px;border:2px solid var(--gw-surface,#fff);border-radius:999px;color:#fff;background:#e11d48;font-size:7px}.workflow-notification-panel{position:absolute;z-index:120;top:62px;right:48px;width:min(390px,calc(100vw - 30px));max-height:min(570px,calc(100vh - 90px));overflow:hidden;border:1px solid var(--gw-border,#dbe3ec);border-radius:12px;color:var(--gw-text,#172033);background:var(--gw-surface,#fff);box-shadow:0 24px 60px rgba(15,23,42,.25)}.workflow-notification-panel[hidden]{display:none}.workflow-notification-panel>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 14px;border-bottom:1px solid var(--gw-border,#dbe3ec);background:var(--gw-surface-2,#f8fafc)}.workflow-notification-panel>header>div{display:grid;gap:2px}.workflow-notification-panel>header small{color:var(--gw-primary,#2563eb);font-size:7px;font-weight:800;text-transform:uppercase}.workflow-notification-panel>header strong{color:var(--gw-text,#172033);font-size:12px}.workflow-notification-panel>header button{padding:6px 8px;border:1px solid var(--gw-border,#dbe3ec);border-radius:6px;color:var(--gw-primary,#2563eb);background:transparent;font-size:8px;font-weight:700;cursor:pointer}#workflow-notification-list{max-height:490px;overflow:auto}.workflow-notification-item{position:relative;border-bottom:1px solid var(--gw-border,#e5ebf2)}.workflow-notification-item:last-child{border-bottom:0}.workflow-notification-item.unread{background:color-mix(in srgb,var(--gw-primary,#2563eb) 5%,var(--gw-surface,#fff))}.workflow-notification-item>button:first-child{width:100%;display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:start;gap:9px;padding:12px 38px 12px 12px;border:0;color:inherit;background:transparent;text-align:left;cursor:pointer}.workflow-notification-item>button:first-child:hover{background:color-mix(in srgb,var(--gw-primary,#2563eb) 5%,transparent)}.workflow-notification-item>button:first-child>.material-symbols-outlined{width:32px;height:32px;display:grid;place-items:center;border-radius:8px;color:var(--gw-primary,#2563eb);background:color-mix(in srgb,var(--gw-primary,#2563eb) 10%,transparent);font-size:17px}.workflow-notification-item>button:first-child>span:nth-child(2){min-width:0;display:grid;gap:3px}.workflow-notification-item strong{overflow:hidden;color:var(--gw-text,#172033);font-size:9px;text-overflow:ellipsis;white-space:nowrap}.workflow-notification-item p{display:-webkit-box;margin:0;overflow:hidden;color:var(--gw-muted,#64748b);font-size:8px;line-height:1.4;-webkit-box-orient:vertical;-webkit-line-clamp:2}.workflow-notification-item small{color:var(--gw-muted,#64748b);font-size:7px}.workflow-notification-item i{padding:3px 5px;border-radius:999px;color:#1d4ed8;background:#dbeafe;font-size:7px;font-style:normal;white-space:nowrap}.workflow-notification-read{position:absolute;right:8px;bottom:10px;width:25px;height:25px;display:grid;place-items:center;border:1px solid var(--gw-border,#dbe3ec);border-radius:6px;color:var(--gw-muted,#64748b);background:var(--gw-surface,#fff);cursor:pointer}.workflow-notification-read .material-symbols-outlined{font-size:14px}.workflow-notification-empty{min-height:230px;display:grid;place-items:center;align-content:center;gap:5px;color:var(--gw-muted,#64748b);text-align:center}.workflow-notification-empty>.material-symbols-outlined{font-size:34px}.workflow-notification-empty strong{color:var(--gw-text,#172033);font-size:11px}.workflow-notification-empty small{font-size:8px}
@media(max-width:820px){.workflow-notification-panel{position:fixed;top:70px;right:12px;left:12px;width:auto;max-height:calc(100vh - 84px)}}
.dirty-lot-workflow.advanced{overflow:visible;border-color:var(--gw-border,#dbe3ec);background:var(--gw-surface,#fff)}.dirty-lot-workflow.advanced>header{border-color:var(--gw-border,#dbe3ec);background:var(--gw-surface-2,#f8fafc)}.dirty-lot-workflow.advanced>header strong{color:var(--gw-text,#172033)}.workflow-event-total{padding:5px 8px;border-radius:999px;color:var(--gw-primary,#2563eb);background:color-mix(in srgb,var(--gw-primary,#2563eb) 9%,transparent);font-size:8px;font-weight:800}.workflow-timeline-filters{display:flex;gap:5px;overflow-x:auto;padding:9px 12px;border-bottom:1px solid var(--gw-border,#dbe3ec);scrollbar-width:thin}.workflow-timeline-filters button{flex:0 0 auto;min-height:29px;padding:0 9px;border:1px solid var(--gw-border,#dbe3ec);border-radius:7px;color:var(--gw-muted,#64748b);background:var(--gw-surface,#fff);font-size:8px;font-weight:750;cursor:pointer}.workflow-timeline-filters button:hover,.workflow-timeline-filters button.active{color:var(--gw-primary,#2563eb);border-color:color-mix(in srgb,var(--gw-primary,#2563eb) 40%,transparent);background:color-mix(in srgb,var(--gw-primary,#2563eb) 8%,transparent)}
.workflow-manual-form{display:grid;grid-template-columns:150px minmax(0,1fr) auto;gap:8px;align-items:end;padding:11px 12px;border-bottom:1px solid var(--gw-border,#dbe3ec);background:color-mix(in srgb,var(--gw-primary,#2563eb) 3%,var(--gw-surface,#fff))}.workflow-manual-form label{display:grid;gap:5px}.workflow-manual-form label>span{color:var(--gw-muted,#64748b);font-size:8px;font-weight:750}.workflow-manual-form select,.workflow-manual-form textarea{width:100%;min-height:37px;padding:8px;border:1px solid var(--gw-border,#dbe3ec);border-radius:7px;color:var(--gw-text,#172033);background:var(--gw-surface,#fff);outline:0;font-size:9px}.workflow-manual-form textarea{height:58px;resize:vertical}.workflow-manual-form select:focus,.workflow-manual-form textarea:focus{border-color:var(--gw-primary,#2563eb);box-shadow:0 0 0 3px color-mix(in srgb,var(--gw-primary,#2563eb) 9%,transparent)}.workflow-manual-form>button{min-height:37px;display:flex;align-items:center;gap:5px;padding:0 10px;border:0;border-radius:7px;color:#fff;background:var(--gw-primary,#2563eb);font-size:8px;font-weight:800;cursor:pointer}.workflow-manual-form>button .material-symbols-outlined{font-size:15px}.workflow-manual-form>small{grid-column:1/-1;min-height:12px;color:var(--gw-muted,#64748b);font-size:8px}.workflow-manual-form>small.success{color:#16a34a}.workflow-manual-form>small.error{color:#e11d48}.workflow-manual-form>small.saving{color:var(--gw-primary,#2563eb)}
.dirty-lot-workflow.advanced .dirty-lot-workflow-timeline{gap:4px;padding:12px;background:var(--gw-surface,#fff)}.workflow-date-group{display:grid;gap:5px}.workflow-date-group>h4{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:7px;margin:0;padding:7px 0;color:var(--gw-text,#172033);background:var(--gw-surface,#fff);font-size:9px}.workflow-date-group>h4::after{height:1px;flex:1;background:var(--gw-border,#dbe3ec);content:''}.workflow-date-group>h4>b{order:3;min-width:19px;padding:2px 5px;border-radius:999px;color:var(--gw-muted,#64748b);background:var(--gw-surface-2,#f1f5f9);font-size:7px;text-align:center}.workflow-date-group>div{position:relative;display:grid;padding-left:8px}.workflow-date-group>div::before{position:absolute;top:18px;bottom:18px;left:24px;width:2px;border-radius:2px;background:var(--gw-border,#dbe3ec);content:''}.workflow-advanced-event{--event-color:#64748b;position:relative;display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;padding:8px 0}.workflow-advanced-event.created{--event-color:#2563eb}.workflow-advanced-event.inspection{--event-color:#0891b2}.workflow-advanced-event.photos{--event-color:#7c3aed}.workflow-advanced-event.notification{--event-color:#0284c7}.workflow-advanced-event.deadline{--event-color:#d97706}.workflow-advanced-event.revisit{--event-color:#9333ea}.workflow-advanced-event.regularized{--event-color:#16a34a}.workflow-advanced-event.fine{--event-color:#dc2626}.workflow-advanced-event.archived{--event-color:#475569}.workflow-advanced-event.manual{--event-color:#0d9488}.workflow-event-icon{z-index:1;width:34px;height:34px;display:grid;place-items:center;border:4px solid var(--gw-surface,#fff);border-radius:50%;color:var(--event-color);background:color-mix(in srgb,var(--event-color) 13%,var(--gw-surface,#fff));font-size:16px;box-shadow:0 0 0 1px color-mix(in srgb,var(--event-color) 24%,transparent)}.workflow-advanced-event>div{min-width:0;display:grid;gap:7px;padding:11px;border:1px solid var(--gw-border,#dbe3ec);border-left:3px solid var(--event-color);border-radius:9px;background:var(--gw-surface,#fff);box-shadow:0 5px 14px rgba(15,23,42,.04)}.workflow-advanced-event header{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.workflow-advanced-event header>span{min-width:0;display:grid;gap:3px}.workflow-advanced-event header b{width:max-content;padding:3px 6px;border-radius:999px;color:var(--event-color);background:color-mix(in srgb,var(--event-color) 10%,transparent);font-size:7px}.workflow-advanced-event header strong{overflow:hidden;color:var(--gw-text,#172033);font-size:10px;text-overflow:ellipsis;text-transform:capitalize;white-space:nowrap}.workflow-advanced-event time{color:var(--gw-muted,#64748b);font-size:8px;white-space:nowrap}.workflow-advanced-event p{margin:0;color:var(--gw-muted,#64748b);font-size:9px;line-height:1.48}.workflow-event-meta{display:flex;align-items:center;justify-content:space-between;gap:9px;padding-top:6px;border-top:1px solid var(--gw-border,#e5ebf2)}.workflow-event-meta>span:first-child{display:flex;align-items:center;gap:4px;color:var(--gw-muted,#64748b);font-size:8px}.workflow-event-meta .material-symbols-outlined{font-size:13px}.workflow-status-flow{display:flex;align-items:center;gap:4px}.workflow-status-flow>b,.workflow-status-single{padding:4px 6px;border-radius:999px;color:var(--gw-muted,#64748b);background:var(--gw-surface-2,#f1f5f9);font-size:7px;font-weight:750}.workflow-status-flow>b:last-child{color:var(--event-color);background:color-mix(in srgb,var(--event-color) 9%,transparent)}.workflow-timeline-empty{min-height:150px;display:grid;place-items:center;align-content:center;gap:5px;color:var(--gw-muted,#64748b)}.workflow-timeline-empty>.material-symbols-outlined{font-size:29px}.workflow-timeline-empty strong{font-size:9px}
@media(max-width:820px){.workflow-manual-form{grid-template-columns:1fr}.workflow-manual-form>small{grid-column:1}.workflow-advanced-event{grid-template-columns:30px minmax(0,1fr)}.workflow-event-icon{width:30px;height:30px;font-size:14px}.workflow-date-group>div::before{left:22px}.workflow-event-meta{align-items:flex-start;flex-direction:column}.workflow-status-flow{flex-wrap:wrap}.workflow-advanced-event header{align-items:flex-start;flex-direction:column}}

/* Dashboard por perfil: evolução compatível da visão geral existente. */
.module-view[data-module-view="dashboard"].active{width:min(1460px,100%)}.profile-dashboard{display:grid;gap:14px;color:var(--gw-text,#172033)}.profile-dashboard-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 24px;border:1px solid color-mix(in srgb,var(--gw-primary,#2563eb) 18%,var(--gw-border,#dbe3ec));border-radius:15px;background:linear-gradient(125deg,color-mix(in srgb,var(--gw-primary,#2563eb) 11%,var(--gw-surface,#fff)),var(--gw-surface,#fff) 65%)}.profile-dashboard-hero::after{position:absolute;right:-50px;bottom:-90px;width:210px;height:210px;border-radius:50%;background:color-mix(in srgb,var(--gw-primary,#2563eb) 8%,transparent);content:''}.profile-dashboard-hero>div{z-index:1;display:grid;gap:5px}.profile-dashboard-hero small,.profile-dashboard-panel header small{color:var(--gw-primary,#2563eb);font-size:8px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.profile-dashboard-hero h1{margin:0;color:var(--gw-text,#172033);font-size:24px}.profile-dashboard-hero p{margin:0;color:var(--gw-muted,#64748b);font-size:10px}.profile-dashboard-badge{z-index:1;padding:7px 11px;border:1px solid color-mix(in srgb,var(--gw-primary,#2563eb) 28%,transparent);border-radius:999px;color:var(--gw-primary,#2563eb);background:var(--gw-surface,#fff);font-size:8px;font-weight:850}.profile-dashboard-loading{min-height:180px;display:grid;place-items:center;align-content:center;gap:8px;color:var(--gw-muted,#64748b);font-size:10px}.profile-dashboard-loading .material-symbols-outlined{font-size:30px;animation:spin 1.1s linear infinite}.profile-dashboard-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:9px;margin-bottom:14px}.profile-dashboard-card{--card-color:#64748b;min-width:0;display:flex;align-items:center;gap:10px;padding:14px;border:1px solid var(--gw-border,#dbe3ec);border-radius:11px;background:var(--gw-surface,#fff);box-shadow:0 5px 14px rgba(15,23,42,.04)}.profile-dashboard-card.blue{--card-color:#2563eb}.profile-dashboard-card.amber{--card-color:#d97706}.profile-dashboard-card.orange{--card-color:#ea580c}.profile-dashboard-card.red{--card-color:#dc2626}.profile-dashboard-card.green{--card-color:#16a34a}.profile-dashboard-card.violet{--card-color:#7c3aed}.profile-dashboard-card>.material-symbols-outlined{width:35px;height:35px;flex:0 0 auto;display:grid;place-items:center;border-radius:9px;color:var(--card-color);background:color-mix(in srgb,var(--card-color) 10%,transparent);font-size:18px}.profile-dashboard-card>div{min-width:0;display:grid;gap:4px}.profile-dashboard-card small{overflow:hidden;color:var(--gw-muted,#64748b);font-size:7px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}.profile-dashboard-card strong{color:var(--gw-text,#172033);font-size:18px}.profile-dashboard-layout{display:grid;grid-template-columns:1.08fr .92fr;gap:11px}.profile-dashboard-panel{min-width:0;overflow:hidden;border:1px solid var(--gw-border,#dbe3ec);border-radius:12px;background:var(--gw-surface,#fff);box-shadow:0 6px 18px rgba(15,23,42,.04)}.profile-dashboard-panel>header{min-height:60px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-bottom:1px solid var(--gw-border,#e5ebf2);background:var(--gw-surface-2,#f8fafc)}.profile-dashboard-panel header>div{display:grid;gap:3px}.profile-dashboard-panel h2{margin:0;color:var(--gw-text,#172033);font-size:12px}.profile-dashboard-panel header>.material-symbols-outlined{color:var(--gw-primary,#2563eb)}.profile-dashboard-panel header button,.profile-dashboard-action button{padding:6px 9px;border:1px solid color-mix(in srgb,var(--gw-primary,#2563eb) 28%,var(--gw-border,#dbe3ec));border-radius:6px;color:var(--gw-primary,#2563eb);background:transparent;font-size:8px;font-weight:750;cursor:pointer}.profile-dashboard-actions>div,.profile-dashboard-movements>div,.profile-dashboard-notifications>div{display:grid;padding:5px 13px}.profile-dashboard-action{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px;padding:10px 0;border-bottom:1px solid var(--gw-border,#e5ebf2)}.profile-dashboard-action:last-child,.profile-dashboard-movement:last-child,.profile-dashboard-notification:last-child{border-bottom:0}.profile-dashboard-action>div{min-width:0;display:grid;gap:3px}.profile-dashboard-action strong,.profile-dashboard-notification strong,.profile-dashboard-movement strong{overflow:hidden;color:var(--gw-text,#172033);font-size:9px;text-overflow:ellipsis;white-space:nowrap}.profile-dashboard-action small,.profile-dashboard-notification p,.profile-dashboard-movement p{margin:0;overflow:hidden;color:var(--gw-muted,#64748b);font-size:8px;line-height:1.4;text-overflow:ellipsis;white-space:nowrap}.profile-dashboard-priority{padding:4px 6px;border-radius:999px;color:#475569;background:#f1f5f9;font-size:7px;font-weight:800}.profile-dashboard-priority.overdue{color:#b91c1c;background:#fee2e2}.profile-dashboard-priority.today,.profile-dashboard-priority.urgente{color:#b45309;background:#fef3c7}.profile-dashboard-movement{display:grid;grid-template-columns:9px minmax(0,1fr);gap:8px;padding:10px 0;border-bottom:1px solid var(--gw-border,#e5ebf2)}.profile-dashboard-movement>i{width:8px;height:8px;margin-top:3px;border-radius:50%;background:var(--gw-primary,#2563eb)}.profile-dashboard-movement>div{min-width:0;display:grid;gap:3px}.profile-dashboard-movement small,.profile-dashboard-notification small{color:var(--gw-muted,#64748b);font-size:7px}.profile-dashboard-charts{grid-column:1/-1}.profile-dashboard-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:14px}.profile-dashboard-chart{display:grid;gap:8px}.profile-dashboard-chart h3{margin:0 0 2px;color:var(--gw-text,#172033);font-size:9px}.profile-dashboard-chart>div{display:grid;grid-template-columns:105px minmax(50px,1fr) 24px;align-items:center;gap:7px}.profile-dashboard-chart>div>span{overflow:hidden;color:var(--gw-muted,#64748b);font-size:7px;text-overflow:ellipsis;white-space:nowrap}.profile-dashboard-chart i{height:7px;overflow:hidden;border-radius:999px;background:var(--gw-surface-2,#eef2f7)}.profile-dashboard-chart i>b{height:100%;display:block;border-radius:inherit;background:#2563eb}.profile-dashboard-chart i>b.amber{background:#d97706}.profile-dashboard-chart i>b.green{background:#16a34a}.profile-dashboard-chart i>b.violet{background:#7c3aed}.profile-dashboard-chart>div>strong{color:var(--gw-text,#172033);font-size:8px;text-align:right}.profile-dashboard-notification{display:grid;grid-template-columns:31px minmax(0,1fr);gap:9px;padding:10px 0;border-bottom:1px solid var(--gw-border,#e5ebf2)}.profile-dashboard-notification>.material-symbols-outlined{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;color:var(--gw-primary,#2563eb);background:color-mix(in srgb,var(--gw-primary,#2563eb) 9%,transparent);font-size:16px}.profile-dashboard-notification>div{min-width:0;display:grid;gap:3px}.profile-dashboard-notification.unread strong::after{display:inline-block;width:6px;height:6px;margin-left:5px;border-radius:50%;background:#e11d48;content:''}.profile-dashboard-empty{min-height:105px;display:grid;place-items:center;align-content:center;gap:5px;color:var(--gw-muted,#64748b);font-size:8px;text-align:center}.profile-dashboard-empty .material-symbols-outlined{font-size:25px}.profile-dashboard-shortcuts{display:flex;flex-wrap:wrap;gap:7px;margin-top:11px;padding:12px;border:1px solid var(--gw-border,#dbe3ec);border-radius:11px;background:var(--gw-surface-2,#f8fafc)}.profile-dashboard-shortcuts button{display:flex;align-items:center;gap:6px;padding:8px 10px;border:1px solid var(--gw-border,#dbe3ec);border-radius:7px;color:var(--gw-text,#172033);background:var(--gw-surface,#fff);font-size:8px;font-weight:750;cursor:pointer}.profile-dashboard-shortcuts button:hover{color:var(--gw-primary,#2563eb);border-color:var(--gw-primary,#2563eb)}.profile-dashboard-shortcuts .material-symbols-outlined{font-size:15px}
@media(max-width:1000px){.profile-dashboard-layout{grid-template-columns:1fr}.profile-dashboard-charts{grid-column:1}.profile-dashboard-chart-grid{grid-template-columns:1fr 1fr}}
@media(max-width:680px){.profile-dashboard-hero{align-items:flex-start;flex-direction:column;padding:17px}.profile-dashboard-hero h1{font-size:20px}.profile-dashboard-cards{grid-template-columns:1fr 1fr}.profile-dashboard-chart-grid{grid-template-columns:1fr}.profile-dashboard-action{grid-template-columns:auto minmax(0,1fr)}.profile-dashboard-action button{grid-column:2;width:max-content}.profile-dashboard-shortcuts{display:grid;grid-template-columns:1fr 1fr}}
#environmental-delivery-receipt-date-field[hidden],#environmental-official-publication-completed[hidden]{display:none!important}
.workflow-map-auto-sync{display:flex;align-items:center;gap:7px;padding:9px 12px;border:1px solid #bbf7d0;border-radius:9px;color:#166534;background:#f0fdf4}.workflow-map-auto-sync>.material-symbols-outlined{font-size:17px;animation:spin 2.4s linear infinite}.workflow-map-auto-sync strong{font-size:9px}.workflow-map-auto-sync small{margin-left:auto;color:#4b6b57;font-size:8px}.workflow-map-auto-sync.update-pending{border-color:#fde68a;color:#92400e;background:#fffbeb}.workflow-map-node.runtime-discovered{border:2px dashed #0d9488!important;background:color-mix(in srgb,#14b8a6 7%,var(--ui-surface,#fff))!important}.workflow-map-node.runtime-discovered .workflow-map-node-icon{color:#0f766e;background:#ccfbf1}@media(max-width:680px){.workflow-map-auto-sync{align-items:flex-start;flex-wrap:wrap}.workflow-map-auto-sync small{width:100%;margin-left:24px}}
@keyframes spin{to{transform:rotate(360deg)}}
.environmental-official-publication{display:grid;gap:12px;padding:14px;border:1px solid #bfdbfe;border-radius:10px;background:#eff6ff}.environmental-official-publication[hidden]{display:none}.environmental-official-publication>header{display:flex;align-items:flex-start;gap:10px}.environmental-official-publication>header>.material-symbols-outlined{width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto;border-radius:9px;color:#1d4ed8;background:#dbeafe}.environmental-official-publication>header>div{display:grid;gap:3px}.environmental-official-publication>header strong{color:#1e3a8a}.environmental-official-publication>header small{color:#475569;line-height:1.45}.environmental-official-publication>label,.environmental-official-publication>div{display:grid;gap:7px}.environmental-official-publication>div{grid-template-columns:1fr 1fr}.environmental-official-publication select,.environmental-official-publication input{min-height:42px;padding:0 10px;border:1px solid #bfdbfe;border-radius:8px;color:#172033;background:#fff}body[data-theme="dark"] .environmental-official-publication{border-color:rgba(56,189,248,.25);background:rgba(14,165,233,.07)}body[data-theme="dark"] .environmental-official-publication>header strong{color:#bae6fd}body[data-theme="dark"] .environmental-official-publication>header small{color:#94a3b8}body[data-theme="dark"] .environmental-official-publication select,body[data-theme="dark"] .environmental-official-publication input{border-color:#334155;color:#e2e8f0;background:#0f172a}@media(max-width:680px){.environmental-official-publication>div{grid-template-columns:1fr}}
.works-inspection-center{display:grid;gap:16px;margin:18px 0}.works-inspection-center.access-hidden{display:none!important}.works-domain-header,.works-profile-panel,.works-process-card,.works-checklist article,.works-infraction-list article,.works-selected-infractions article{border:1px solid var(--ui-border,#d7e1ea);border-radius:8px;background:var(--ui-surface,#fff)}.works-domain-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:16px}.works-domain-header small,.works-profile-panel small{color:var(--ui-primary,#1769aa);font-weight:800;text-transform:uppercase}.works-domain-header h2,.works-profile-panel h3,.works-step-panel h3{margin:0;color:var(--ui-text,#172033)}.works-domain-header p{margin:4px 0 0;color:var(--ui-text-soft,#607085)}.works-domain-switch,.works-process-card header,.works-process-card footer,.works-profile-panel>header{display:flex;align-items:center;justify-content:space-between;gap:10px}.works-domain-switch button,.works-profile-panel button,.works-process-card button,.works-process-footer button,.works-demand-dialog button{min-height:42px;padding:0 12px;border:1px solid var(--ui-border,#ccd7e3);border-radius:7px;color:var(--ui-text,#172033);background:var(--ui-surface-soft,#f8fafc);cursor:pointer}.works-domain-switch button.active,.works-profile-panel button.primary,.works-process-card button.primary,.works-process-footer .primary,.works-demand-dialog .primary{color:#fff;border-color:var(--ui-primary,#1769aa);background:var(--ui-primary,#1769aa)}.works-dashboard-mount,.works-profile-panel,.works-process-list,.works-step-panel,.works-infraction-list,.works-selected-infractions{display:grid;gap:12px}.works-profile-panel{padding:16px}.works-kpis,.works-process-card dl,.works-review{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.works-kpis span,.works-team-load span{display:grid;gap:3px;padding:10px;border:1px solid var(--ui-border,#d7e1ea);border-radius:7px;background:var(--ui-surface-soft,#f8fafc);color:var(--ui-text-soft,#607085);font-size:11px}.works-kpis b,.works-team-load b{color:var(--ui-text,#172033);font-size:20px}.works-process-card{display:grid;gap:11px;padding:14px;border-left:4px solid #94a3b8}.works-process-card.risk-serious{border-left-color:#f97316}.works-process-card.risk-imminent{border-left-color:#dc2626}.works-process-card header strong{display:block;color:var(--ui-text,#172033)}.works-process-card header span{padding:4px 8px;border-radius:999px;color:#075985;background:#e0f2fe;font-size:11px;font-weight:800}.works-process-card dt,.works-review dt{color:var(--ui-text-soft,#607085);font-size:10px;font-weight:800;text-transform:uppercase}.works-process-card dd,.works-review dd{margin:2px 0 0;color:var(--ui-text,#172033);font-size:12px;overflow-wrap:anywhere}.works-team-load{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:8px}.works-demand-dialog{width:min(720px,calc(100vw - 28px))}.works-process-dialog{width:min(1080px,calc(100vw - 28px));max-height:min(92vh,920px)}.works-demand-grid,.works-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.works-wide{grid-column:1/-1}.works-demand-grid label,.works-form-grid label,.works-step-panel label{display:grid;gap:6px}.works-demand-grid input,.works-demand-grid select,.works-demand-grid textarea,.works-step-panel input,.works-step-panel select,.works-step-panel textarea{min-height:42px;width:100%;padding:8px 10px;border:1px solid var(--ui-border,#ccd7e3);border-radius:7px;color:var(--ui-text,#172033);background:var(--ui-surface,#fff)}.works-process-body{max-height:calc(92vh - 210px);overflow:auto;padding-right:4px}.works-stepper{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin-bottom:14px}.works-stepper button{min-height:50px;padding:6px;border:1px solid var(--ui-border,#ccd7e3);border-radius:7px;color:var(--ui-text-soft,#607085);background:var(--ui-surface-soft,#f8fafc);font-size:11px}.works-stepper button span{display:block;margin:auto auto 3px;width:22px;height:22px;border-radius:999px;color:#fff;background:#94a3b8;line-height:22px}.works-stepper button.active{color:#fff;border-color:var(--ui-primary,#1769aa);background:var(--ui-primary,#1769aa)}.works-stepper button.complete span,.works-stepper button.active span{background:#16a34a}.works-snapshot,.works-suggestion-note{padding:12px;border:1px solid #bfdbfe;border-radius:8px;background:#eff6ff;color:#1e3a8a}.works-check{display:flex!important;align-items:center;gap:8px}.works-check input{width:auto;min-height:auto}.works-checklist{display:grid;gap:9px}.works-checklist article{display:grid;grid-template-columns:minmax(160px,.7fr) minmax(150px,.5fr) minmax(220px,1fr);gap:8px;align-items:start;padding:11px}.works-risk-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.works-suggestions{display:flex;flex-wrap:wrap;gap:8px}.works-suggestions button{padding:8px 10px;border:1px solid #facc15;border-radius:7px;color:#713f12;background:#fefce8}.works-infraction-list article,.works-selected-infractions article{display:grid;gap:8px;padding:11px}.works-infraction-list dl{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin:0}.works-analyst-actions{display:flex;flex-wrap:wrap;gap:8px;padding:12px;border:1px solid var(--ui-border,#d7e1ea);border-radius:8px}.works-process-footer{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:8px;padding-top:12px;background:var(--ui-surface,#fff)}.works-readonly :is(input,select,textarea){opacity:.82}body[data-theme="dark"] .works-inspection-center,body[data-theme="dark"] .works-process-dialog,body[data-theme="dark"] .works-demand-dialog{--ui-surface:var(--gw-surface,#111d2d);--ui-surface-soft:var(--gw-surface-2,#0f172a);--ui-border:var(--gw-border,#2a3950);--ui-text:var(--gw-text,#e7edf5);--ui-text-soft:var(--gw-muted,#91a3b9);--ui-primary:var(--gw-primary,#38bdf8)}body[data-theme="dark"] .works-snapshot,body[data-theme="dark"] .works-suggestion-note{border-color:rgba(56,189,248,.25);color:#bae6fd;background:rgba(14,165,233,.07)}body[data-theme="dark"] .works-suggestions button{color:#fde68a;background:rgba(245,158,11,.12);border-color:rgba(245,158,11,.35)}@media(max-width:900px){.works-domain-header,.works-profile-panel>header,.works-process-card header,.works-process-card footer{align-items:flex-start;flex-direction:column}.works-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.works-process-card dl,.works-review,.works-infraction-list dl{grid-template-columns:repeat(2,minmax(0,1fr))}.works-stepper{grid-template-columns:repeat(4,minmax(0,1fr))}.works-checklist article{grid-template-columns:1fr}.works-demand-grid,.works-form-grid,.works-risk-row{grid-template-columns:1fr}.works-wide{grid-column:1}.works-process-dialog{width:100vw;height:100dvh;max-height:none;border-radius:0}.works-process-body{max-height:calc(100dvh - 218px)}.works-process-footer{display:grid;grid-template-columns:1fr 1fr;padding:10px}.works-process-footer button{width:100%}}

/* Fiscalização de Obras — formulário legal e identidade PIT */
.works-process-dialog{--works-navy:#001b2a;--works-teal:#006d7a;--works-green:#2e7d32;--works-lime:#8bc34a;--works-slate:#607d8b;font-family:Montserrat,Arial,sans-serif;color:var(--ui-text,#172033)}
.works-process-dialog :is(input,select,textarea,button){font:inherit}.works-process-dialog :is(label,dd,p,small){line-height:1.45}
.works-stepper{grid-template-columns:repeat(8,minmax(0,1fr));padding:5px;border:1px solid var(--ui-border,#d7e1ea);border-radius:12px;background:var(--ui-surface-soft,#f2f4f7)}
.works-cadastral-search>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.works-cadastral-search>div button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:42px;padding:0 14px;border:1px solid var(--works-teal,#006d7a);border-radius:7px;color:#fff;background:linear-gradient(135deg,var(--works-navy,#0d1b2a),var(--works-teal,#006d7a));font-weight:750;cursor:pointer}.works-cadastral-search>div button:disabled{opacity:.65;cursor:wait}.works-cadastral-search>small{color:var(--ui-text-soft,#607085)}.works-cadastral-results{display:grid;gap:7px}.works-cadastral-results>button{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;padding:11px;border:1px solid rgba(0,109,122,.22);border-radius:9px;color:var(--ui-text,#172033);background:rgba(0,109,122,.04);text-align:left;cursor:pointer}.works-cadastral-results>button:hover,.works-cadastral-results>button:focus-visible{border-color:var(--works-teal,#006d7a);background:rgba(0,109,122,.09);outline:0}.works-cadastral-results>button>.material-symbols-outlined{color:var(--works-teal,#006d7a)}.works-cadastral-results>button span:nth-child(2){display:grid;gap:2px}.works-cadastral-results>button small,.works-cadastral-empty{color:var(--ui-text-soft,#607085);font-size:12px}.works-cadastral-empty{padding:10px;border:1px dashed var(--ui-border,#d7e1ea);border-radius:8px;background:var(--ui-surface-soft,#f8fafc)}
.works-profile-actions{display:flex;align-items:center;gap:8px}.works-profile-actions .works-spontaneous-start-button{display:flex;align-items:center;gap:7px;padding-inline:14px}.works-legal-scope-note{display:flex;align-items:center;gap:10px;padding:11px 12px;border:1px solid rgba(0,109,122,.18);border-radius:9px;background:linear-gradient(90deg,rgba(0,109,122,.08),rgba(47,125,50,.045))}.works-legal-scope-note>.material-symbols-outlined{color:var(--works-teal,#006d7a)}.works-legal-scope-note>span:last-child{display:grid;gap:2px}.works-legal-scope-note small{color:var(--ui-text-soft,#607085)}
.works-spontaneous-dialog{width:min(720px,calc(100vw - 28px))}.works-spontaneous-dialog form{display:grid;gap:15px}.works-spontaneous-intro{display:flex;align-items:flex-start;gap:12px;padding:15px;border-radius:12px;color:#fff;background:linear-gradient(135deg,var(--works-navy,#0d1b2a),var(--works-teal,#006d7a));box-shadow:0 10px 24px rgba(13,27,42,.14)}.works-spontaneous-intro>.material-symbols-outlined{padding:8px;border-radius:9px;color:var(--works-lime,#8bc34a);background:rgba(255,255,255,.1)}.works-spontaneous-intro p{margin:4px 0 0;color:rgba(255,255,255,.82);font-size:13px;line-height:1.5}.works-spontaneous-results{max-height:260px;overflow:auto}.works-spontaneous-results>button em{color:var(--works-teal,#006d7a);font-size:11px;font-style:normal;font-weight:700}.works-spontaneous-selection{display:grid;grid-template-columns:auto minmax(0,1fr);gap:12px;padding:14px;border:1px solid rgba(47,125,50,.28);border-radius:11px;background:rgba(47,125,50,.07)}.works-spontaneous-selection>.material-symbols-outlined{color:var(--works-green,#2e7d32)}.works-spontaneous-selection>div{display:grid;gap:3px}.works-spontaneous-selection small{color:var(--works-green,#2e7d32);font-weight:800;text-transform:uppercase}.works-spontaneous-selection p{margin:0;color:var(--ui-text,#172033)}.works-spontaneous-selection div>span{color:var(--ui-text-soft,#607085);font-size:12px}.works-spontaneous-prefill{display:flex;align-items:flex-start;gap:10px;padding:11px;border:1px solid var(--ui-border,#d7e1ea);border-radius:9px;background:var(--ui-surface-soft,#f8fafc)}.works-spontaneous-prefill>.material-symbols-outlined{color:var(--works-teal,#006d7a)}.works-spontaneous-prefill>span:last-child{display:grid;gap:3px}.works-spontaneous-prefill small{color:var(--ui-text-soft,#607085);line-height:1.45}
.works-stepper button{min-height:62px;border-color:transparent;border-radius:9px;font-size:12px;font-weight:700;line-height:1.25}.works-stepper button span{background:var(--works-slate);font-size:11px;font-weight:800}.works-stepper button.complete{color:var(--works-green);background:color-mix(in srgb,var(--works-lime) 10%,var(--ui-surface,#fff))}.works-stepper button.active{border-color:var(--works-teal);background:linear-gradient(135deg,var(--works-navy),var(--works-teal));box-shadow:0 8px 20px rgba(0,109,122,.18)}
.works-step-panel{padding:2px}.works-step-panel>h3,.works-section-heading h3{font-size:20px;letter-spacing:-.02em}.works-step-panel>label>span,.works-form-grid label>span,.works-calculation-fields label>span{color:var(--ui-text-soft,#607085);font-size:12px;font-weight:700}.works-step-panel :is(input,select,textarea){font-size:14px;line-height:1.4}.works-step-panel :is(input,select,textarea):focus{border-color:var(--works-teal);outline:0;box-shadow:0 0 0 3px rgba(0,109,122,.1)}
.works-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:12px;border-bottom:1px solid var(--ui-border,#d7e1ea)}.works-section-heading small{color:var(--works-teal);font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.works-registry-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid rgba(0,109,122,.2);border-radius:10px;background:rgba(0,109,122,.05)}.works-registry-tools>div{display:grid;gap:3px}.works-registry-tools strong{color:var(--works-navy);font-size:13px}.works-registry-tools small{color:var(--works-slate);font-size:11px}.works-registry-tools button{min-height:38px;padding:0 11px;border:1px solid var(--works-teal);border-radius:8px;color:var(--works-teal);background:var(--ui-surface,#fff);font-size:11px;font-weight:800;cursor:pointer}
.works-ufml-current{min-width:190px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px 9px;padding:10px 12px;border:1px solid rgba(0,109,122,.22);border-radius:10px;background:rgba(0,109,122,.06)}.works-ufml-current span{grid-column:1/-1;color:var(--works-slate);font-size:10px;font-weight:800;text-transform:uppercase}.works-ufml-current strong{color:var(--works-navy);font-size:15px}.works-ufml-current button{min-height:32px;padding:0 9px;border:1px solid var(--works-teal);border-radius:7px;color:var(--works-teal);background:var(--ui-surface,#fff);font-size:11px;font-weight:800;cursor:pointer}
.works-infraction-list article{padding:16px;border-radius:12px;border-left:4px solid var(--works-teal);box-shadow:0 6px 18px rgba(0,27,42,.05)}.works-infraction-list article>header,.works-selected-infractions article>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.works-infraction-list article>header>div,.works-selected-infractions article>header>div{display:grid;gap:5px}.works-infraction-list article header small,.works-selected-infractions article header small{color:var(--works-teal);font-size:11px;font-weight:800}.works-infraction-list article header strong,.works-selected-infractions article header strong{color:var(--ui-text,#172033);font-size:14px;line-height:1.45}
.works-infraction-list dl{padding:10px;border-radius:9px;background:var(--ui-surface-soft,#f2f4f7)}.works-infraction-list dt{color:var(--works-slate);font-size:10px;font-weight:800;text-transform:uppercase}.works-infraction-list dd{margin:3px 0 0;color:var(--ui-text,#172033);font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.works-document-kind{width:max-content;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:850;letter-spacing:.03em;text-transform:uppercase}.works-document-kind.notice{color:#075985;background:#e0f2fe}.works-document-kind.infraction{color:#991b1b;background:#fee2e2}
.works-calculation-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;border:1px solid rgba(0,109,122,.18);border-radius:9px;background:rgba(0,109,122,.04)}.works-calculation-fields>small{grid-column:1/-1;color:var(--works-slate);font-size:11px}.works-fixed-calculation{display:flex;align-items:center;gap:7px;padding:10px;border-radius:8px;color:var(--works-green);background:rgba(139,195,74,.1);font-size:12px;font-weight:750}.works-fixed-calculation .material-symbols-outlined{font-size:18px}.works-calculation-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border-radius:8px;background:var(--ui-surface-soft,#f2f4f7)}.works-calculation-summary strong{font-size:12px}.works-calculation-summary span{color:var(--works-teal);font-size:13px;font-weight:800}.works-calc-status{padding:5px 8px;border-radius:999px;font-size:10px;font-weight:800}.works-calc-status.confirmed{color:#166534;background:#dcfce7}.works-calc-status.pending{color:#92400e;background:#fef3c7}
.works-evidence-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:12px;padding:12px;border:1px solid var(--ui-border,#d7e1ea);border-radius:10px;background:var(--ui-surface,#fff)}.works-evidence-item>.material-symbols-outlined{color:var(--works-teal)}.works-evidence-fields{display:grid;grid-template-columns:minmax(0,1fr) 90px;gap:8px}.works-evidence-fields>strong,.works-evidence-fields>small{grid-column:1/-1}.works-evidence-actions{display:flex;flex-wrap:wrap;gap:6px}.works-evidence-actions :is(a,button),.works-document-actions button{min-height:34px;padding:0 9px;border:1px solid var(--ui-border,#d7e1ea);border-radius:7px;color:var(--works-teal);background:var(--ui-surface,#fff);font-size:11px;font-weight:750;text-decoration:none;cursor:pointer}.works-evidence-actions .danger{color:#b91c1c}
.works-document-list{display:grid;gap:9px;margin-top:14px;padding:14px;border:1px solid rgba(0,109,122,.2);border-radius:12px;background:rgba(0,109,122,.035)}.works-document-list>header small{color:var(--works-teal);font-size:10px;font-weight:800;text-transform:uppercase}.works-document-list>header h3{margin:3px 0 0}.works-document-list>article{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid var(--ui-border,#d7e1ea);border-radius:9px;background:var(--ui-surface,#fff)}.works-document-summary{display:grid;gap:5px}.works-document-summary strong{font-size:13px}.works-document-summary small{color:var(--works-slate);font-size:11px}.works-document-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:6px}.works-document-actions button.primary{color:#fff;border-color:var(--works-teal);background:var(--works-teal)}.works-document-actions button.danger{color:#b91c1c;border-color:#fecaca;background:#fff7f7}
.works-history{display:grid;gap:12px;margin-top:14px;padding:14px;border:1px solid var(--ui-border,#d7e1ea);border-radius:12px;background:var(--ui-surface-soft,#f8fafc)}.works-history header small{color:var(--works-teal,#006d7a);font-size:14px;font-weight:800}.works-history header h3{margin:3px 0 0}.works-history>p{margin:0;color:var(--ui-text-soft,#607085);font-size:14px}.works-history ol{display:grid;gap:10px;margin:0;padding:0;list-style:none}.works-history li{display:grid;grid-template-columns:36px minmax(0,1fr);gap:10px;padding:11px;border:1px solid var(--ui-border,#d7e1ea);border-radius:9px;background:var(--ui-surface,#fff)}.works-history li>.material-symbols-outlined{color:var(--works-teal,#006d7a);font-size:24px}.works-history li>div{display:grid;gap:4px}.works-history li strong{color:var(--ui-text,#172033);font-size:16px;line-height:1.4}.works-history li small{color:var(--ui-text-soft,#607085);font-size:14px;line-height:1.4;text-transform:none}
.works-review{grid-template-columns:repeat(4,minmax(0,1fr));margin:0}.works-review>div{padding:11px;border:1px solid var(--ui-border,#d7e1ea);border-radius:9px;background:var(--ui-surface,#fff)}.works-review dt{font-size:10px}.works-review dd{font-size:13px}.inspection-review-ready{padding:12px;border:1px solid #bbf7d0;border-radius:9px;color:#166534;background:#f0fdf4}.inspection-review-warning{padding:12px;border:1px solid #fde68a;border-radius:9px;color:#854d0e;background:#fffbeb}.inspection-review-warning ul{margin:8px 0 0;padding-left:20px}
body[data-theme="dark"] .works-ufml-current strong,body[data-theme="dark"] .works-registry-tools strong{color:#e7edf5}body[data-theme="dark"] .works-document-kind.notice{color:#bae6fd;background:rgba(14,165,233,.16)}body[data-theme="dark"] .works-document-kind.infraction{color:#fecaca;background:rgba(220,38,38,.16)}body[data-theme="dark"] .inspection-review-ready{border-color:rgba(34,197,94,.3);color:#bbf7d0;background:rgba(34,197,94,.09)}body[data-theme="dark"] .inspection-review-warning{border-color:rgba(245,158,11,.3);color:#fde68a;background:rgba(245,158,11,.09)}body[data-theme="dark"] .works-spontaneous-dialog{--ui-text:#e7edf5;--ui-text-soft:#91a3b9;--ui-border:#2a3950;--ui-surface-soft:#0f172a}body[data-theme="dark"] .works-spontaneous-selection{background:rgba(47,125,50,.12)}
@media(max-width:1100px){.works-stepper{grid-template-columns:repeat(4,minmax(0,1fr))}.works-infraction-list dl{grid-template-columns:repeat(3,minmax(0,1fr))}.works-review{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Formulário simplificado de Fiscalização de Obras */
.works-simple-ufml-value{display:grid;gap:6px}.works-simple-ufml-value input{background:var(--ui-surface,#fff)}
.works-simple-form{display:grid;gap:18px;padding:2px 4px 18px}.works-simple-hero{display:flex;align-items:center;gap:16px;padding:18px;border-radius:12px;color:#fff;background:linear-gradient(135deg,var(--works-navy),var(--works-teal))}.works-simple-hero>.material-symbols-outlined{font-size:38px}.works-simple-hero small{font-size:13px;font-weight:800;text-transform:uppercase}.works-simple-hero h3{margin:2px 0;font-size:24px}.works-simple-hero p{margin:0;color:rgba(255,255,255,.88);font-size:15px}.works-simple-section{display:grid;gap:14px;padding:18px;border:1px solid var(--ui-border,#d7e1ea);border-radius:12px;background:var(--ui-surface,#fff)}.works-simple-section>header{display:flex;align-items:center;gap:11px;padding-bottom:12px;border-bottom:2px solid color-mix(in srgb,var(--works-teal) 30%,var(--ui-border,#d7e1ea))}.works-simple-section>header>.material-symbols-outlined{display:grid;place-items:center;width:42px;height:42px;border-radius:10px;color:var(--works-teal);background:color-mix(in srgb,var(--works-teal) 10%,transparent)}.works-simple-section h3{margin:0;color:var(--ui-text,#172033);font-size:20px}.works-simple-section header p{margin:2px 0 0;color:var(--ui-text-soft,#607085);font-size:14px}.works-simple-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.works-simple-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.works-simple-inspection-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.works-simple-grid label,.works-simple-other label,.works-simple-section>label{display:grid;gap:6px}.works-simple-grid .wide{grid-column:span 2}.works-simple-form label>span{color:var(--ui-text-soft,#607085);font-size:14px;font-weight:700}.works-simple-form :is(input,select,textarea){min-height:48px;width:100%;padding:10px 12px;border:1px solid var(--ui-border,#ccd7e3);border-radius:8px;color:var(--ui-text,#172033);background:var(--ui-surface,#fff);font-size:16px}.works-simple-form textarea{resize:vertical}.works-simple-form :is(input,select,textarea):focus{border-color:var(--works-teal);outline:0;box-shadow:0 0 0 3px rgba(0,109,122,.12)}.works-simple-form :is(input,select):disabled{color:var(--ui-text,#172033);opacity:.82;background:var(--ui-surface-soft,#f4f6f8)}.works-simple-infractions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.works-simple-infraction{padding:0;border:1px solid var(--ui-border,#d7e1ea);border-radius:9px;background:var(--ui-surface,#fff);overflow:hidden}.works-simple-infraction-choice{display:flex!important;align-items:flex-start;gap:12px;min-height:70px;padding:13px;cursor:pointer}.works-simple-infraction-choice input{flex:0 0 22px;width:22px;min-height:22px;margin-top:2px;accent-color:var(--works-teal)}.works-simple-infraction-choice>span{display:grid;gap:3px;color:var(--ui-text,#172033)!important}.works-simple-infraction-choice strong{font-size:15px;line-height:1.4}.works-simple-infraction-choice small{color:var(--ui-text-soft,#607085);font-size:13px}.works-simple-infraction-detail{display:none;gap:10px;padding:0 13px 13px}.works-simple-infraction.is-choosing,.works-simple-infraction.is-selected{border-color:var(--works-teal);box-shadow:0 0 0 2px rgba(0,109,122,.08)}.works-simple-infraction.is-choosing .works-simple-infraction-detail,.works-simple-infraction.is-selected .works-simple-infraction-detail{display:grid}.works-simple-selected-summary{display:flex;align-items:center;gap:9px;padding:10px;border-radius:8px;color:#166534;background:#ecfdf3}.works-simple-selected-summary>span:last-child{display:grid}.works-simple-selected-summary small{font-size:13px}.works-simple-other{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;padding-top:4px}.works-simple-penalty-checks{display:flex;flex-wrap:wrap;gap:18px}.works-simple-penalty-checks label,.works-simple-done{display:flex!important;align-items:center;gap:9px;min-height:48px}.works-simple-penalty-checks input,.works-simple-done input{width:22px;min-height:22px;accent-color:var(--works-teal)}.works-simple-penalty-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.works-simple-penalty-values>span,.works-simple-penalty-values>label{display:grid;gap:3px;padding:12px;border-radius:9px;background:var(--ui-surface-soft,#f4f6f8)}.works-simple-penalty-values small{color:var(--ui-text-soft,#607085);font-size:13px}.works-simple-penalty-values strong{color:var(--ui-text,#172033);font-size:18px}.works-simple-infraction .works-calculation-fields{grid-template-columns:1fr}.works-simple-infraction button{min-height:48px;padding:0 16px;border-radius:8px}.works-simple-justification{grid-column:1/-1!important}.works-process-dialog:has(.works-simple-form) .works-process-body{max-height:calc(92vh - 150px)}.works-process-dialog:has(.works-simple-form) .works-process-footer button{min-height:48px;font-size:15px;font-weight:700}
@media(max-width:900px){.works-simple-grid,.works-simple-grid.compact,.works-simple-infractions,.works-simple-other,.works-simple-penalty-values{grid-template-columns:1fr}.works-simple-grid .wide{grid-column:1}.works-simple-section{padding:14px}.works-simple-hero{align-items:flex-start}.works-simple-hero h3{font-size:21px}.works-process-dialog:has(.works-simple-form) .works-process-body{max-height:calc(100dvh - 145px)}.works-process-dialog:has(.works-simple-form) .works-process-footer{grid-template-columns:1fr}}
@media(max-width:720px){.works-section-heading,.works-document-list>article,.works-registry-tools{align-items:stretch;flex-direction:column}.works-ufml-current{width:100%}.works-calculation-fields,.works-evidence-fields,.works-cadastral-search>div{grid-template-columns:1fr}.works-evidence-fields>strong,.works-evidence-fields>small,.works-calculation-fields>small{grid-column:1}.works-evidence-item{grid-template-columns:auto minmax(0,1fr)}.works-evidence-actions{grid-column:1/-1}.works-document-actions{justify-content:flex-start}.works-infraction-list dl{grid-template-columns:repeat(2,minmax(0,1fr))}.works-profile-actions{width:100%;flex-wrap:wrap}.works-profile-actions .works-spontaneous-start-button{flex:1}.works-spontaneous-dialog{width:100vw;height:100dvh;max-height:none;border-radius:0}.works-spontaneous-dialog footer{display:grid;grid-template-columns:1fr 1fr}.works-spontaneous-dialog footer button{width:100%}}

/* Fiscalização de Obras — Alinhamento 1 */
.works-photo-capture-copy strong{color:#fff!important}
.works-photo-capture-tip{display:flex;align-items:center;gap:8px;margin:-4px 2px 0;color:var(--ui-text-soft,#607085);font-size:14px;line-height:1.4}.works-photo-capture-tip .material-symbols-outlined{flex:0 0 auto;color:var(--works-teal);font-size:20px}
.works-recipient-type-row{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,1fr);align-items:end;gap:13px}.works-recipient-fill{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:48px;min-height:48px;box-sizing:border-box;padding:0 14px;border:1px solid var(--works-teal);border-radius:8px;color:var(--works-teal);background:var(--ui-surface,#fff);font-size:14px;font-weight:750;line-height:1.25;text-align:center;cursor:pointer;transition:color .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease}.works-recipient-fill .material-symbols-outlined{flex:0 0 auto;font-size:21px}.works-recipient-fill:hover{color:#fff;border-color:var(--works-teal);background:var(--works-teal)}.works-recipient-fill:focus-visible{outline:3px solid color-mix(in srgb,var(--works-teal) 28%,transparent);outline-offset:2px}.works-recipient-fill:disabled{cursor:not-allowed;filter:grayscale(.25);opacity:.58}
.works-recipient-type-row{align-items:start}.works-recipient-complete-control{display:grid;gap:6px}.works-recipient-complete-control>span{min-height:20px;color:var(--ui-text-soft,#607085);font-size:14px;font-weight:700}.works-recipient-complete-control>small{min-height:20px;color:var(--ui-text-soft,#607085);font-size:14px;line-height:1.4}
.works-photo-counter{margin-left:auto;display:grid;place-items:center;min-width:92px;padding:8px 12px;border:1px solid color-mix(in srgb,var(--works-teal) 30%,transparent);border-radius:999px;color:var(--works-teal);background:color-mix(in srgb,var(--works-teal) 8%,var(--ui-surface,#fff));font-size:14px;font-weight:800}.works-photo-counter.complete{color:#166534;border-color:#86efac;background:#f0fdf4}
.works-photo-capture{position:relative;display:grid;grid-template-columns:56px minmax(0,1fr) 40px;align-items:center;gap:14px;min-height:88px;width:100%;padding:14px 16px;border:1px solid color-mix(in srgb,var(--works-teal) 75%,#fff);border-radius:13px;color:#fff!important;background:linear-gradient(135deg,var(--works-navy),var(--works-teal));box-shadow:0 8px 20px rgba(0,70,82,.18);text-align:left;cursor:pointer;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.works-photo-capture::after{content:"";position:absolute;right:-30px;bottom:-54px;width:150px;height:150px;border-radius:50%;background:rgba(255,255,255,.07);pointer-events:none}.works-photo-capture:hover{transform:translateY(-1px);border-color:#67e8f9;box-shadow:0 11px 25px rgba(0,70,82,.25)}.works-photo-capture:focus-visible{outline:3px solid color-mix(in srgb,var(--works-teal) 35%,#fff);outline-offset:3px}.works-photo-capture-icon,.works-photo-capture-action{position:relative;z-index:1;display:grid;place-items:center;border:1px solid rgba(255,255,255,.24);color:#fff;background:rgba(255,255,255,.13)}.works-photo-capture-icon{width:56px;height:56px;border-radius:14px}.works-photo-capture-icon .material-symbols-outlined{font-size:30px}.works-photo-capture-copy{position:relative;z-index:1;display:grid;gap:4px;min-width:0}.works-photo-capture-copy strong{font-size:17px;line-height:1.25}.works-photo-capture small{color:rgba(255,255,255,.9);font-size:14px;font-weight:600;line-height:1.35}.works-photo-capture-action{width:36px;height:36px;border-radius:50%}.works-photo-capture-action .material-symbols-outlined{font-size:21px}.works-photo-capture.disabled{cursor:not-allowed;filter:grayscale(.2);opacity:.68;box-shadow:none}.works-photo-capture.disabled:hover{transform:none;border-color:color-mix(in srgb,var(--works-teal) 75%,#fff);box-shadow:none}.works-evidence-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.works-evidence-empty{grid-column:1/-1;padding:20px;border:2px dashed var(--ui-border,#ccd7e3);border-radius:10px;color:var(--ui-text-soft,#607085);background:var(--ui-surface-soft,#f4f6f8);font-size:16px;text-align:center}
.works-photo-input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.works-evidence-item{grid-template-columns:132px minmax(0,1fr);gap:14px;padding:12px}.works-evidence-preview{position:relative;width:132px;height:108px;display:grid;place-items:center;overflow:hidden;border-radius:9px;color:var(--works-teal);background:var(--ui-surface-soft,#eef3f6)}.works-evidence-preview img{width:100%;height:100%;display:none;object-fit:cover}.works-evidence-preview.loaded img{display:block}.works-evidence-preview.loaded>.material-symbols-outlined{display:none}.works-evidence-fields{grid-template-columns:1fr;gap:7px}.works-evidence-fields>strong,.works-evidence-fields>small{grid-column:1;overflow-wrap:anywhere}.works-evidence-fields label{display:grid;gap:5px}.works-evidence-fields label>span{font-size:14px}.works-evidence-actions{grid-column:1/-1;justify-content:flex-end}.works-evidence-actions :is(a,button),.works-document-actions button,.works-document-recipient-editor>button{min-height:48px;padding:0 14px;font-size:14px}
.works-recipient-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.works-recipient-card{display:grid;gap:14px;padding:16px;border:1px solid var(--ui-border,#ccd7e3);border-radius:11px;background:var(--ui-surface,#fff)}.works-recipient-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid var(--ui-border,#d7e1ea)}.works-recipient-card>header small{color:var(--works-teal);font-size:14px;font-weight:800}.works-recipient-card>header h4{margin:3px 0;font-size:17px}.works-recipient-card>header p{margin:0;color:var(--ui-text-soft,#607085);font-size:14px;line-height:1.45}.works-recipient-card>header>.material-symbols-outlined{color:var(--works-teal)}.works-recipient-card .works-simple-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.works-recipient-copy{min-height:48px;padding:0 14px;border:1px solid var(--works-teal);border-radius:8px;color:var(--works-teal);background:transparent;font-size:14px;font-weight:750;cursor:pointer}
.works-recipient-source{min-width:0;margin:0;padding:0;border:0}.works-recipient-source legend{margin-bottom:9px;color:var(--ui-text,#172033);font-size:16px;font-weight:800}.works-recipient-source-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.works-recipient-source-option{display:grid;grid-template-columns:24px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:10px;min-height:84px;padding:12px;border:1px solid var(--ui-border,#ccd7e3);border-radius:10px;color:var(--ui-text,#172033);background:var(--ui-surface,#fff);cursor:pointer}.works-recipient-source-option>input{grid-row:1/-1;width:22px!important;min-height:22px!important;margin:0;accent-color:var(--works-teal)}.works-recipient-source-option>.material-symbols-outlined{display:none;color:var(--works-teal)}.works-recipient-source-option>span:last-child{display:grid;gap:3px}.works-recipient-source-option strong{font-size:15px;line-height:1.3}.works-recipient-source-option small{color:var(--ui-text-soft,#607085);font-size:13px;line-height:1.35}.works-recipient-source-option:has(input:checked){border-color:var(--works-teal);background:color-mix(in srgb,var(--works-teal) 7%,var(--ui-surface,#fff));box-shadow:0 0 0 2px color-mix(in srgb,var(--works-teal) 12%,transparent)}.works-recipient-source-option:has(input:focus-visible){outline:3px solid color-mix(in srgb,var(--works-teal) 30%,transparent);outline-offset:2px}.works-recipient-source-option:has(input:disabled){cursor:default;opacity:.78}.works-recipient-card .works-recipient-source-options{grid-template-columns:1fr}.works-recipient-other-type{margin-bottom:0}.works-recipient-registry-status{display:flex!important;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid color-mix(in srgb,var(--works-teal) 28%,var(--ui-border,#ccd7e3));border-radius:9px;background:color-mix(in srgb,var(--works-teal) 5%,var(--ui-surface,#fff))}.works-recipient-registry-status>span{display:grid;gap:3px}.works-recipient-registry-status strong{color:var(--ui-text,#172033);font-size:15px}.works-recipient-registry-status small,.works-simple-justification>small{color:var(--ui-text-soft,#607085);font-size:13px;line-height:1.4}.works-recipient-registry-status button{display:flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;min-height:48px;padding:9px 14px;border:1px solid var(--works-teal);border-radius:8px;color:var(--works-teal);background:var(--ui-surface,#fff);font-size:14px;font-weight:800;cursor:pointer}.works-recipient-registry-status button:focus-visible{outline:3px solid color-mix(in srgb,var(--works-teal) 30%,transparent);outline-offset:2px}.works-recipient-registry-status button:disabled{cursor:default;opacity:.6}
.works-regularization-fields,.works-regularization-mode{display:grid;gap:10px}.works-regularization-mode{grid-template-columns:repeat(2,minmax(0,1fr))}.works-regularization-mode label{display:flex!important;align-items:center;gap:8px;min-height:48px;padding:9px;border:1px solid var(--ui-border,#ccd7e3);border-radius:8px}.works-regularization-mode input{width:22px!important;min-height:22px!important}.works-deadline-note{display:flex;align-items:center;gap:7px;padding:9px;border-radius:8px;color:#075985;background:#e0f2fe;font-size:14px;font-weight:700}.works-occurrence-action{min-height:48px;border:1px solid var(--works-teal);color:var(--works-teal);background:transparent;font-size:14px;font-weight:750}
.works-document-list>article{display:grid;grid-template-columns:minmax(160px,.6fr) minmax(280px,1.5fr);align-items:start}.works-document-actions{grid-column:1/-1}.works-document-recipient-editor{padding:10px;border:1px solid var(--ui-border,#d7e1ea);border-radius:9px}.works-document-recipient-editor summary{min-height:40px;display:flex;align-items:center;color:var(--works-teal);font-size:14px;font-weight:750;cursor:pointer}.works-document-recipient-editor .works-simple-grid{margin-top:10px;grid-template-columns:repeat(2,minmax(0,1fr))}.works-document-recipient-editor>button{margin-top:10px;border:1px solid var(--works-teal);border-radius:8px;color:#fff;background:var(--works-teal);font-weight:750}.works-document-recipient-readonly{display:grid;gap:4px;margin:0;font-size:14px}.works-document-recipient-readonly span{color:var(--ui-text-soft,#607085)}
body[data-theme="dark"] .works-photo-counter.complete{color:#bbf7d0;border-color:rgba(34,197,94,.4);background:rgba(34,197,94,.1)}body[data-theme="dark"] .works-deadline-note{color:#bae6fd;background:rgba(14,165,233,.14)}
@media(max-width:900px){.works-recipient-cards,.works-evidence-gallery,.works-recipient-source-options{grid-template-columns:1fr}.works-photo-counter{margin-left:0}.works-recipient-card .works-simple-grid{grid-template-columns:1fr}.works-recipient-card .works-simple-grid .wide{grid-column:1}}
@media(max-width:600px){.works-evidence-item{grid-template-columns:1fr}.works-evidence-preview{width:100%;height:190px}.works-document-list>article{grid-template-columns:1fr}.works-document-recipient-editor .works-simple-grid,.works-regularization-mode,.works-recipient-type-row{grid-template-columns:1fr}.works-recipient-registry-status{align-items:stretch;flex-direction:column}.works-recipient-registry-status button{width:100%}.works-photo-capture{grid-template-columns:50px minmax(0,1fr);gap:12px;min-height:84px;padding:12px}.works-photo-capture-icon{width:50px;height:50px}.works-photo-capture-action{display:none}}

.works-public-verification{min-height:100dvh;display:grid;place-items:center;padding:24px;color:#172033;background:radial-gradient(circle at top right,rgba(0,109,122,.2),transparent 35%),#eef3f6;font-family:Montserrat,Arial,sans-serif}.works-public-verification[hidden]{display:none}.works-public-verification>article{width:min(720px,100%);overflow:hidden;border:1px solid #ccd7e3;border-radius:18px;background:#fff;box-shadow:0 24px 60px rgba(0,27,42,.16)}.works-public-verification>article>header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px;color:#fff;background:linear-gradient(135deg,#001b2a,#006d7a)}.works-public-verification>article>header img{width:180px;max-height:52px}.works-public-verification>article>header span{font-size:14px;font-weight:700}.works-public-verification-content{padding:30px}.works-public-result{display:grid;place-items:center;padding:32px 28px;text-align:center}.works-public-result>.material-symbols-outlined{display:grid;place-items:center;width:72px;height:72px;border-radius:50%;color:#166534;background:#dcfce7;font-size:40px}.works-public-result.cancelled>.material-symbols-outlined,.works-public-result.superseded>.material-symbols-outlined{color:#92400e;background:#fef3c7}.works-public-result.not-found>.material-symbols-outlined{color:#991b1b;background:#fee2e2}.works-public-result h1{margin:18px 0 6px;color:#001b2a;font-size:28px}.works-public-result p{margin:0 0 18px;color:#607085;font-size:16px;line-height:1.55}.works-public-result dl{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:8px 0 0;text-align:left}.works-public-result dl>div{padding:12px;border-radius:9px;background:#f4f6f8}.works-public-result dl>.wide{grid-column:1/-1}.works-public-result dt{color:#607085;font-size:14px;font-weight:700}.works-public-result dd{margin:5px 0 0;font-size:16px;overflow-wrap:anywhere}.works-public-result code{font-size:13px}.works-public-verification>article>footer{padding:15px 24px;border-top:1px solid #d7e1ea;color:#607085;font-size:14px;text-align:center}@media(max-width:600px){.works-public-verification{padding:0;align-items:stretch}.works-public-verification>article{border:0;border-radius:0}.works-public-verification>article>header{align-items:flex-start;flex-direction:column}.works-public-result dl{grid-template-columns:1fr}.works-public-result dl>.wide{grid-column:1}}
.aprova-lot-processes{display:grid;gap:14px;margin-top:18px;padding-top:18px;border-top:1px solid var(--ui-border,#dbe3ec)}
.aprova-lot-processes>header{display:flex;align-items:flex-start;gap:11px}.aprova-lot-processes>header>.material-symbols-outlined{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;color:#fff;background:#2563eb}.aprova-lot-processes>header>div{display:grid;gap:2px}.aprova-lot-processes>header small{color:#2563eb;font-size:14px;font-weight:800}.aprova-lot-processes>header strong{color:var(--ui-text,#173147);font-size:17px}.aprova-lot-processes>header p{margin:0;color:var(--ui-text-soft,#536878);font-size:14px;line-height:1.45}
.aprova-process-list{display:grid;gap:10px}.aprova-process-card{display:grid;gap:12px;padding:14px;border:1px solid var(--ui-border,#dbe3ec);border-radius:12px;background:var(--ui-surface-soft,#f7fafc)}.aprova-process-card>header{display:flex;align-items:center;gap:9px}.aprova-process-card>header>.material-symbols-outlined{color:#2563eb}.aprova-process-card>header>div{display:grid;gap:1px}.aprova-process-card small,.aprova-process-card dt{color:var(--ui-text-soft,#536878);font-size:14px}.aprova-process-card strong,.aprova-process-card dd{color:var(--ui-text,#173147);font-size:16px}.aprova-process-card dl{display:grid;gap:8px;margin:0}.aprova-process-card dl>div{display:grid;gap:2px}.aprova-process-card dd{margin:0}.aprova-process-card>button{min-height:48px;padding:10px 14px;border:1px solid #2563eb;border-radius:10px;color:#fff;background:#2563eb;font-size:16px;font-weight:800;cursor:pointer}.aprova-process-card>button:focus-visible{outline:3px solid rgba(37,99,235,.3);outline-offset:2px}
.aprova-load-more{min-height:48px;padding:10px 14px;border:1px solid #2563eb;border-radius:10px;color:#1d4ed8;background:#fff;font-size:16px;font-weight:800;cursor:pointer}.aprova-load-more:disabled{opacity:.6;cursor:wait}
.aprova-lot-loading,.aprova-detail-loading{display:flex;align-items:center;justify-content:center;gap:9px;min-height:84px;color:var(--ui-text-soft,#536878);font-size:16px}.aprova-lot-loading .material-symbols-outlined,.aprova-detail-loading .material-symbols-outlined{animation:spin 1s linear infinite}.aprova-empty{display:grid;gap:4px;padding:16px;border:1px dashed var(--ui-border,#dbe3ec);border-radius:10px;color:var(--ui-text-soft,#536878);font-size:14px}.aprova-empty strong{font-size:16px}.aprova-empty.error{color:#9f1239;border-color:#fecdd3;background:#fff1f2}
.aprova-process-dialog{width:min(980px,calc(100vw - 28px))}.aprova-process-dialog>form{max-height:min(92vh,920px);overflow:auto;padding:22px}.aprova-process-dialog footer button{min-height:48px;font-size:16px}.aprova-process-body{display:grid;gap:12px}.aprova-detail-summary{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:16px;padding:18px;border:1px solid #bfdbfe;border-radius:14px;background:#eff6ff}.aprova-detail-summary>div{display:grid;align-content:start;gap:5px}.aprova-detail-summary small,.aprova-detail-summary dt{color:#475569;font-size:14px}.aprova-detail-summary strong{color:#1e3a8a;font-size:19px}.aprova-detail-summary span,.aprova-detail-summary dd{color:#334155;font-size:16px}.aprova-detail-summary dl{display:grid;gap:8px;margin:0}.aprova-detail-summary dl>div{display:grid;gap:2px}.aprova-detail-summary dd{margin:0}
.aprova-detail-section{border:1px solid var(--ui-border,#dbe3ec);border-radius:12px;background:#fff;overflow:hidden}.aprova-detail-section>summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:9px;min-height:54px;padding:8px 14px;color:var(--ui-text,#173147);font-size:16px;cursor:pointer;list-style:none}.aprova-detail-section>summary::-webkit-details-marker{display:none}.aprova-detail-section>summary:focus-visible{outline:3px solid rgba(37,99,235,.3);outline-offset:-3px}.aprova-detail-section>summary>b{display:grid;place-items:center;min-width:28px;height:28px;padding:0 7px;border-radius:999px;color:#1d4ed8;background:#dbeafe;font-size:14px}.aprova-detail-section .aprova-expand{transition:transform .2s}.aprova-detail-section[open] .aprova-expand{transform:rotate(180deg)}.aprova-detail-section>div{padding:14px;border-top:1px solid var(--ui-border,#dbe3ec);overflow:auto}.aprova-data-grid{display:grid;gap:9px;margin:0}.aprova-data-grid>div{display:grid;gap:4px;padding:10px;border-radius:8px;background:#f8fafc}.aprova-data-grid dt{color:#475569;font-size:14px;font-weight:800}.aprova-data-grid dd{margin:0;color:#1e293b;font-size:16px;line-height:1.5;overflow-wrap:anywhere}.aprova-data-list{display:grid;gap:9px;margin:0;padding-left:24px}.aprova-data-list>li{padding:8px;color:#1e293b;font-size:16px}.aprova-data-grid pre{max-width:100%;overflow:auto;white-space:pre-wrap;font-size:14px}.aprova-empty-value{color:#64748b;font-style:italic}
.cadastral-lot-units{margin-top:14px;border:1px solid var(--ui-border,#dbe3ec);border-radius:12px;background:#fff;overflow:hidden}.cadastral-lot-units>summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;min-height:56px;padding:8px 14px;color:#173147;cursor:pointer;list-style:none}.cadastral-lot-units>summary::-webkit-details-marker{display:none}.cadastral-lot-units>summary:focus-visible{outline:3px solid rgba(37,99,235,.32);outline-offset:-3px}.cadastral-lot-units>summary>div{display:grid;gap:2px}.cadastral-lot-units>summary small{color:#64748b;font-size:11px;text-transform:uppercase;letter-spacing:.04em}.cadastral-lot-units>summary strong{font-size:16px}.cadastral-units-expand{transition:transform .2s}.cadastral-lot-units[open] .cadastral-units-expand{transform:rotate(180deg)}.cadastral-units-body{display:grid;gap:12px;padding:14px;border-top:1px solid var(--ui-border,#dbe3ec)}.cadastral-units-summary{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.cadastral-units-summary strong{font-size:14px}.cadastral-units-summary span{color:#64748b;font-size:12px;text-align:right}.cadastral-unit-list{display:grid;gap:9px}.cadastral-unit-card{display:grid;gap:6px;padding:11px;border:1px solid #dbe3ec;border-radius:10px;background:#f8fafc}.cadastral-unit-card header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px}.cadastral-unit-card header>div{display:grid;gap:1px}.cadastral-unit-card header small,.cadastral-unit-card>span,.cadastral-unit-card footer{color:#64748b;font-size:12px}.cadastral-unit-card header strong{font-size:14px;overflow-wrap:anywhere}.cadastral-unit-card header b{padding:3px 7px;border-radius:999px;color:#1d4ed8;background:#dbeafe;font-size:11px}.cadastral-unit-card p{margin:0;color:#334155;font-size:13px}.cadastral-unit-card footer{padding-top:5px;border-top:1px solid #e2e8f0}.cadastral-history{border-top:1px solid #e2e8f0}.cadastral-history>summary{min-height:48px;display:flex;align-items:center;justify-content:space-between;color:#475569;font-weight:800;cursor:pointer}.cadastral-history>div{padding-top:8px}@media(max-width:600px){.cadastral-units-summary{display:grid}.cadastral-units-summary span{text-align:left}}
@media(max-width:820px){.aprova-detail-summary{grid-template-columns:1fr}.aprova-process-dialog{width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;border-radius:0}.aprova-process-dialog>form{max-height:100dvh;padding:16px}.aprova-detail-section>summary{min-height:56px}.aprova-detail-section>div{padding:10px}}

/* Regulação Urbana · fluxo PIT em três etapas */
.works-phase-panel>header p{margin:3px 0 0;color:var(--ui-text-soft,#607085);font-size:14px;line-height:1.45}.works-pre-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.works-pre-actions>button,.works-spontaneous-map-action{display:flex;align-items:center;gap:12px;min-height:72px;padding:12px 16px;border:1px solid var(--works-teal);border-radius:11px;color:var(--works-teal);background:var(--ui-surface,#fff);text-align:left;cursor:pointer}.works-pre-actions>button.primary{color:#fff;background:linear-gradient(135deg,var(--works-navy),var(--works-teal))}.works-pre-actions>button>span:last-child,.works-spontaneous-map-action>span:last-child{display:grid;gap:3px}.works-pre-actions strong,.works-spontaneous-map-action strong{font-size:16px}.works-pre-actions small,.works-spontaneous-map-action small{color:inherit;font-size:14px;line-height:1.35}.works-pre-actions>button:focus-visible,.works-spontaneous-map-action:focus-visible{outline:3px solid color-mix(in srgb,var(--works-teal) 30%,transparent);outline-offset:3px}.works-spontaneous-map-action{width:100%;margin-bottom:14px}.works-manager-summary summary{display:flex;justify-content:space-between;gap:12px;min-height:48px;align-items:center;cursor:pointer}.works-mail-row.map-highlight,.works-scheduled-row.map-highlight{outline:4px solid #facc15;outline-offset:3px;transition:outline-color .25s ease}@media(max-width:820px){.works-pre-actions{grid-template-columns:1fr}.works-phase-panel>header{align-items:flex-start}}

/* Pré-fiscalização · ações com a mesma anatomia dos botões principais PIT */
.works-pre-actions>.works-pre-action{
  position:relative;
  width:100%;
  min-height:112px!important;
  gap:16px;
  padding:18px 20px!important;
  appearance:none;
  border:2px solid #8eabba;
  border-radius:13px;
  color:var(--works-navy,#173147);
  background:var(--ui-surface,#fff);
  box-shadow:0 4px 12px rgba(23,49,71,.1);
  font:inherit;
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease,background-color .18s ease;
}
.works-pre-actions>.works-pre-action.primary{
  border-color:var(--works-teal,#006d7a);
  color:#fff;
  background:linear-gradient(135deg,var(--works-navy,#0d1b2a),var(--works-teal,#006d7a));
  box-shadow:0 7px 18px rgba(0,109,122,.24);
}
.works-pre-actions>.works-pre-action>.material-symbols-outlined{
  flex:0 0 auto;
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:12px;
  color:var(--works-teal,#006d7a);
  background:rgba(0,109,122,.1);
  font-size:30px;
}
.works-pre-actions>.works-pre-action.primary>.material-symbols-outlined{
  color:#fff;
  background:rgba(255,255,255,.16);
}
.works-pre-actions>.works-pre-action>span:last-child{gap:5px}
.works-pre-actions>.works-pre-action strong{font-size:18px;line-height:1.25}
.works-pre-actions>.works-pre-action small{font-size:14px;line-height:1.4;opacity:.9}
.works-pre-actions>.works-pre-action:hover{
  border-color:var(--works-teal,#006d7a);
  box-shadow:0 9px 22px rgba(0,109,122,.18);
  transform:translateY(-2px);
}
.works-pre-actions>.works-pre-action:active{box-shadow:0 3px 8px rgba(23,49,71,.15);transform:translateY(1px)}
.works-pre-actions>.works-pre-action:focus-visible{outline:3px solid rgba(0,109,122,.3);outline-offset:3px}
body[data-theme="dark"] .works-pre-actions>.works-pre-action:not(.primary){border-color:#587385;color:#e7edf5;background:#152235}
@media(max-width:820px){.works-pre-actions>.works-pre-action{min-height:96px!important;padding:16px!important}}

/* Regulação Urbana · filas compactas no padrão de caixa de e-mail */
.works-phase-collapsible{overflow:hidden}
.works-phase-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}
.works-phase-total{padding:7px 10px;border-radius:999px;color:var(--ui-text-soft,#607085);background:var(--ui-surface-soft,#f1f5f9);font-size:14px;font-weight:800;white-space:nowrap}
.works-profile-panel .works-phase-header-actions>button{min-height:48px}
.works-start-field-spontaneous{display:inline-flex;align-items:center;gap:7px;min-height:48px;padding:0 16px;border-radius:10px;font-weight:800}.works-start-field-spontaneous[hidden]{display:none!important}.works-spontaneous-manual{display:grid;gap:10px;padding:14px;border:1px dashed var(--works-teal,#006d7a);border-radius:11px;background:var(--ui-surface-soft,#f8fafc)}.works-spontaneous-manual p{margin:0;color:var(--ui-text-soft,#607085);font-size:13px}.works-spontaneous-manual>div{display:grid;grid-template-columns:1fr 1fr;gap:10px}.works-spontaneous-manual label{display:grid;gap:5px}.works-spontaneous-manual button{min-height:48px;justify-self:start;display:inline-flex;align-items:center;gap:7px}
.works-profile-panel .works-phase-header-actions>#works-refresh{width:48px;padding:0;display:grid;place-items:center}
.works-profile-panel .works-phase-collapse{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 13px;color:var(--works-teal,#006d7a);border-color:color-mix(in srgb,var(--works-teal,#006d7a) 36%,var(--ui-border,#ccd7e3));background:var(--ui-surface,#fff);font-size:14px;font-weight:800}
.works-phase-collapse .material-symbols-outlined{font-size:23px}
.works-phase-collapse:focus-visible{outline:3px solid rgba(0,109,122,.3);outline-offset:2px}
.works-phase-collapsible-body[hidden]{display:none}
.works-mailbox{overflow:hidden;border:1px solid var(--ui-border,#d7e1ea);border-radius:12px;background:var(--ui-surface,#fff)}
.works-mail-toolbar{display:grid;gap:12px;padding:14px;border-bottom:1px solid var(--ui-border,#d7e1ea);background:var(--ui-surface-soft,#f8fafc)}
.works-mail-toolbar>label{position:relative;display:block}
.works-mail-toolbar>label>.material-symbols-outlined{position:absolute;top:14px;left:14px;color:var(--ui-text-soft,#607085);font-size:21px;pointer-events:none}
.works-mail-toolbar input{width:100%;min-height:48px;padding:10px 14px 10px 46px;border:1px solid var(--ui-border,#ccd7e3);border-radius:9px;color:var(--ui-text,#172033);background:var(--ui-surface,#fff);font-size:16px;line-height:1.4}
.works-mail-toolbar input:focus{border-color:var(--works-teal,#006d7a);outline:3px solid rgba(0,109,122,.2);outline-offset:1px}
.works-mail-filters{display:flex;flex-wrap:wrap;gap:8px}
.works-profile-panel .works-mail-filters>button{min-height:48px;display:inline-flex;align-items:center;gap:8px;padding:8px 13px;border:1px solid var(--ui-border,#ccd7e3);border-radius:999px;color:var(--ui-text,#172033);background:var(--ui-surface,#fff);font-size:14px;font-weight:750}
.works-mail-filters>button b{min-width:25px;height:25px;display:grid;place-items:center;padding:0 6px;border-radius:999px;color:var(--ui-text-soft,#607085);background:var(--ui-surface-soft,#edf2f6);font-size:14px}
.works-profile-panel .works-mail-filters>button.active{color:#fff;border-color:var(--works-teal,#006d7a);background:var(--works-teal,#006d7a)}
.works-mail-filters>button.active b{color:var(--works-teal,#006d7a);background:#fff}
.works-mail-filters>button:focus-visible,.works-mail-row button:focus-visible,.works-scheduled-row :is(button,select):focus-visible{outline:3px solid rgba(0,109,122,.3);outline-offset:2px}
.works-mail-results{display:grid}
.works-mail-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 58px;min-width:0;border-bottom:1px solid var(--ui-border,#e2e8f0);border-left:5px solid transparent;background:var(--ui-surface,#fff);transition:background-color .16s ease,border-color .16s ease}
.works-mail-row:last-child{border-bottom:0}
.works-mail-row:hover{background:color-mix(in srgb,var(--works-teal,#006d7a) 5%,var(--ui-surface,#fff))}
.works-mail-row.status-assigned{border-left-color:#2563eb}.works-mail-row.status-accepted{border-left-color:#16a34a}.works-mail-row.status-in_field{border-left-color:#0284c7}.works-mail-row.status-inspection_draft{border-left-color:#7c3aed}.works-mail-row.status-returned_to_inspector{border-left-color:#d97706}.works-mail-row.status-post-review{border-left-color:#0284c7}.works-mail-row.status-post-draft{border-left-color:#7c3aed}.works-mail-row.status-post-issued{border-left-color:#15803d}.works-mail-row.status-post-no_infraction{border-left-color:#64748b}
.works-mail-row.is-overdue{border-left-color:#dc2626;background:color-mix(in srgb,#dc2626 5%,var(--ui-surface,#fff))}
.works-profile-panel .works-mail-row-main{min-width:0;min-height:78px;display:grid;grid-template-columns:minmax(230px,1fr) minmax(120px,.3fr) 32px;align-items:center;gap:14px;padding:12px 10px 12px 16px;border:0;border-radius:0;color:var(--ui-text,#172033);background:transparent;text-align:left}
.works-mail-subject{min-width:0;display:grid;gap:4px}
.works-mail-subject strong{overflow:hidden;color:var(--ui-text,#172033);font-size:16px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.works-mail-subject small{overflow:hidden;color:var(--ui-text-soft,#607085);font-size:14px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap;text-transform:none}
.works-mail-deadline{display:grid;gap:3px;color:var(--ui-text,#172033);text-align:right}
.works-mail-deadline small{color:var(--ui-text-soft,#607085);font-size:14px;text-transform:none}
.works-mail-deadline strong{font-size:16px;white-space:nowrap}
.works-mail-deadline.overdue :is(small,strong){color:#b91c1c}
.works-mail-open{color:var(--ui-text-soft,#607085);font-size:27px}
.works-profile-panel .works-mail-history{align-self:center;justify-self:center;width:48px;height:48px;display:grid;place-items:center;padding:0;border:1px solid transparent;border-radius:50%;color:var(--ui-text-soft,#607085);background:transparent}
.works-mail-history:hover{color:var(--works-teal,#006d7a)!important;border-color:var(--ui-border,#ccd7e3)!important;background:var(--ui-surface-soft,#f8fafc)!important}
.works-mail-history .material-symbols-outlined{font-size:23px}
.works-mail-empty{min-height:150px;display:grid;place-items:center;align-content:center;gap:5px;padding:22px;color:var(--ui-text-soft,#607085);text-align:center}
.works-mail-empty>.material-symbols-outlined{font-size:36px}
.works-mail-empty strong{color:var(--ui-text,#172033);font-size:17px}
.works-mail-empty small{font-size:14px;line-height:1.45;text-transform:none}
.works-scheduled-row{display:block;border-bottom:1px solid var(--ui-border,#e2e8f0);border-left:5px solid #2563eb;background:var(--ui-surface,#fff)}
.works-scheduled-row:last-child{border-bottom:0}.works-scheduled-row.status-accepted,.works-scheduled-row.status-in_field{border-left-color:#16a34a}.works-scheduled-row.status-inspection_draft{border-left-color:#2563eb}.works-scheduled-row.status-offline_pending{border-left-color:#7c3aed}.works-scheduled-row.status-returned_to_assigner,.works-scheduled-row.status-returned_to_inspector{border-left-color:#d97706}.works-scheduled-row.is-overdue{border-left-color:#dc2626;background:color-mix(in srgb,#dc2626 5%,var(--ui-surface,#fff))}
.works-scheduled-list-item{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(110px,auto) 32px;align-items:center;gap:16px;min-height:76px;padding:12px 16px;cursor:pointer;list-style:none}.works-scheduled-list-item::-webkit-details-marker{display:none}.works-scheduled-list-item:hover{background:var(--ui-surface-soft,#f8fafc)}.works-scheduled-list-item:focus-visible{outline:3px solid rgba(0,109,122,.3);outline-offset:-3px}.works-scheduled-open{color:var(--ui-text-soft,#607085);font-size:27px;transition:transform .18s ease}.works-scheduled-row[open] .works-scheduled-open{transform:rotate(180deg)}.works-scheduled-card{display:grid;gap:14px;padding:14px 16px 16px;border-top:1px solid var(--ui-border,#e2e8f0);background:color-mix(in srgb,var(--ui-surface-soft,#f8fafc) 55%,var(--ui-surface,#fff))}.works-scheduled-next{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.works-scheduled-status{padding:6px 9px;border-radius:999px;color:var(--ui-text,#172033);background:var(--ui-surface-soft,#eef2f6);font-size:14px;font-weight:800;white-space:nowrap}
.works-scheduled-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0}.works-scheduled-meta>div{min-width:0}.works-scheduled-meta dt,.works-scheduled-next small{color:var(--ui-text-soft,#607085);font-size:14px;font-weight:750}.works-scheduled-meta dd{margin:3px 0 0;overflow-wrap:anywhere;color:var(--ui-text,#172033);font-size:16px}
.works-scheduled-next>span{display:grid;gap:3px}.works-scheduled-next>span strong{color:var(--ui-text,#172033);font-size:16px}.works-scheduled-actions{display:flex;align-items:flex-end;justify-content:flex-end;flex-wrap:wrap;gap:8px}.works-profile-panel .works-scheduled-actions>button{min-height:48px;padding:8px 13px}.works-profile-panel .works-scheduled-actions>button.primary{color:#fff;border-color:var(--works-teal,#006d7a);background:var(--works-teal,#006d7a)}.works-profile-panel .works-scheduled-actions>button.danger{color:#b91c1c;border-color:#fecaca;background:#fff7f7}
.works-scheduled-reassign{display:grid;gap:4px}.works-scheduled-reassign span{color:var(--ui-text-soft,#607085);font-size:14px}.works-scheduled-reassign select{min-width:190px;min-height:48px;padding:8px 10px;border:1px solid var(--ui-border,#ccd7e3);border-radius:7px;color:var(--ui-text,#172033);background:var(--ui-surface,#fff);font-size:16px}
.works-completed-panel{border-color:color-mix(in srgb,#15803d 30%,var(--ui-border,#d7e1ea))}.works-completed-row{border-left-color:#15803d}.works-completed-row.status-cancelled{border-left-color:#64748b}.works-completed-row .works-scheduled-list-item:hover{background:color-mix(in srgb,#15803d 5%,var(--ui-surface,#fff))}.works-completed-status{padding:6px 10px;border-radius:999px;color:#166534;background:#dcfce7;font-size:14px;font-weight:800;white-space:nowrap}.status-cancelled .works-completed-status{color:#475569;background:#e2e8f0}.works-completed-details{grid-template-columns:repeat(3,minmax(0,1fr))}.works-completed-pagination{display:flex;justify-content:center;padding:14px;border-top:1px solid var(--ui-border,#e2e8f0);background:var(--ui-surface-soft,#f8fafc)}.works-profile-panel .works-completed-pagination>button{min-height:48px;display:flex;align-items:center;gap:8px;padding:8px 18px;color:var(--works-teal,#006d7a);border-color:var(--works-teal,#006d7a);background:var(--ui-surface,#fff);font-size:16px;font-weight:800}.works-completed-pagination button span{color:var(--ui-text-soft,#607085);font-size:14px}
.works-document-identifiers{display:flex!important;flex-wrap:wrap;gap:6px;margin-top:5px}.works-document-identifier{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:3px 8px;border:1px solid color-mix(in srgb,var(--works-teal,#006d7a) 32%,var(--ui-border,#d7e1ea));border-radius:999px;color:var(--works-teal,#006d7a);background:var(--ui-surface-soft,#f8fafc);font-size:14px;font-weight:800;overflow-wrap:anywhere}.works-document-identifier em{font-size:12px;font-style:normal;font-weight:800;text-transform:uppercase}.works-document-identifier.status-cancelled,.works-document-identifier.status-superseded{color:var(--ui-text-soft,#607085);border-color:var(--ui-border,#d7e1ea)}
body[data-theme="dark"] .works-completed-status{color:#bbf7d0;background:#14532d}body[data-theme="dark"] .status-cancelled .works-completed-status{color:#e2e8f0;background:#334155}
body[data-theme="dark"] .works-mail-deadline.overdue :is(small,strong){color:#fda4af}
@media(max-width:820px){
  .works-phase-header-actions{width:100%;justify-content:flex-start;flex-wrap:wrap}
  .works-phase-collapse{margin-left:auto}
  .works-mail-toolbar{padding:12px}
  .works-mail-filters{flex-wrap:nowrap;overflow-x:auto;padding-bottom:3px;scrollbar-width:thin}
  .works-profile-panel .works-mail-filters>button{flex:0 0 auto}
  .works-mail-row{grid-template-columns:minmax(0,1fr) 52px}
  .works-profile-panel .works-mail-row-main{min-height:104px;grid-template-columns:minmax(0,1fr) auto 30px;grid-template-rows:auto auto;gap:10px;padding:13px 8px 13px 13px}
  .works-mail-subject{grid-column:1/-1}
  .works-mail-subject strong{white-space:normal}
  .works-mail-deadline{grid-column:1/3;grid-row:2;text-align:left}
  .works-mail-open{grid-column:3;grid-row:2}
  .works-scheduled-list-item{grid-template-columns:minmax(0,1fr) 30px;grid-template-rows:auto auto;gap:9px 10px;min-height:104px;padding:13px}.works-scheduled-list-item .works-mail-subject{grid-column:1/-1}.works-scheduled-status{grid-column:1;grid-row:2;justify-self:start}.works-scheduled-list-item .works-mail-deadline{grid-column:1;grid-row:3;text-align:left}.works-scheduled-open{grid-column:2;grid-row:2/4;align-self:center}.works-scheduled-next{align-items:stretch;flex-direction:column}.works-scheduled-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.works-scheduled-actions{justify-content:flex-start}.works-scheduled-reassign{width:100%}.works-scheduled-reassign select{width:100%}
  .works-completed-status{grid-column:1;grid-row:2;justify-self:start}.works-completed-details{grid-template-columns:1fr}
}

/* Minha conta · perfis institucionais independentes */
.preference-hidden{display:none!important}
@media(min-width:901px){
  .app.account-workspace,.app.account-workspace.panel-open{grid-template-columns:66px minmax(720px,64vw) minmax(220px,1fr)}
  .app.account-workspace .platform-panel{position:relative;inset:auto;width:auto;min-width:0;opacity:1;transform:none;border-right:0;box-shadow:none}
}
@media(min-width:901px) and (max-width:1050px){.app.account-workspace,.app.account-workspace.panel-open{grid-template-columns:66px minmax(620px,68vw) minmax(0,1fr)}}
.app.account-workspace .platform-panel-body{padding:14px 16px 32px}
.app.account-workspace .module-view[data-module-view="account"].active{width:min(1120px,100%);margin:0 auto}
.account-profile-page{display:grid;gap:18px}
.account-profile-hero{display:grid;grid-template-columns:minmax(250px,.72fr) minmax(0,1fr);align-items:center;gap:24px;padding:24px;border:1px solid var(--ui-border,#d7e1ea);border-radius:14px;background:linear-gradient(135deg,var(--ui-surface,#fff),var(--ui-surface-soft,#f4f7fb));box-shadow:0 12px 32px rgba(15,23,42,.08)}
.account-profile-hero>div:last-child{display:grid;gap:7px}.account-profile-hero small{color:#0f766e;font-size:12px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.account-profile-hero h1{margin:0;color:var(--ui-text,#172033);font-size:clamp(26px,4vw,38px);line-height:1.1}.account-profile-hero p{max-width:680px;margin:0;color:var(--ui-text-soft,#607085);font-size:16px;line-height:1.55}
.account-profile-identity{min-width:0;display:flex;align-items:center;gap:14px;padding:16px;border:1px solid color-mix(in srgb,#0f766e 25%,var(--ui-border,#d7e1ea));border-radius:12px;background:color-mix(in srgb,#0f766e 6%,var(--ui-surface,#fff))}.account-profile-avatar{width:58px;height:58px;display:grid;flex:0 0 auto;place-items:center;border-radius:50%;color:#fff;background:#0f766e;font-size:19px;font-weight:900}.account-profile-identity>span:last-child{min-width:0;display:grid;gap:2px}.account-profile-identity strong,.account-profile-identity em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-profile-identity strong{color:var(--ui-text,#172033);font-size:18px}.account-profile-identity em{color:var(--ui-text-soft,#607085);font-size:14px;font-style:normal}
.account-profile-notice{margin:0;padding:13px 15px;border:1px solid #fbbf24;border-radius:9px;color:#854d0e;background:#fffbeb;font-size:15px;font-weight:700}
.account-view-filter{display:grid;gap:16px;padding:20px;border:1px solid color-mix(in srgb,#0f766e 28%,var(--ui-border,#d7e1ea));border-radius:14px;background:var(--ui-surface,#fff);box-shadow:0 8px 26px rgba(15,23,42,.07)}.account-view-filter[hidden]{display:none}.account-view-filter>header{display:flex;align-items:flex-start;gap:13px}.account-view-filter>header>.material-symbols-outlined{width:44px;height:44px;display:grid;flex:0 0 auto;place-items:center;border-radius:11px;color:#0f766e;background:#ccfbf1}.account-view-filter>header>div{display:grid;gap:3px}.account-view-filter>header small{color:#0f766e;font-size:11px;font-weight:850;letter-spacing:.07em;text-transform:uppercase}.account-view-filter>header h2{margin:0;color:var(--ui-text,#172033);font-size:21px}.account-view-filter>header p,.account-view-filter fieldset>p{margin:0;color:var(--ui-text-soft,#607085);line-height:1.45}.account-view-filter>header p{font-size:14px}.account-view-filter form{display:grid;gap:14px}.account-view-filter fieldset{display:grid;gap:10px;margin:0;padding:14px;border:1px solid var(--ui-border,#d7e1ea);border-radius:11px}.account-view-filter legend{padding:0 7px;color:var(--ui-text,#172033);font-size:14px;font-weight:850}.account-view-filter fieldset>p{font-size:12px}.account-view-filter-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.account-view-filter-option{min-width:0;min-height:54px;display:grid;grid-template-columns:auto 24px minmax(0,1fr);align-items:center;gap:8px;padding:9px 10px;border:1px solid var(--ui-border,#d7e1ea);border-radius:9px;color:var(--ui-text,#172033);background:var(--ui-surface-soft,#f8fafc);cursor:pointer}.account-view-filter-option:has(input:checked){border-color:color-mix(in srgb,#0f766e 55%,var(--ui-border,#d7e1ea));background:color-mix(in srgb,#0f766e 7%,var(--ui-surface,#fff))}.account-view-filter-option.is-fixed{cursor:not-allowed;opacity:.8}.account-view-filter-option input{width:18px;height:18px;accent-color:#0f766e}.account-view-filter-option>.material-symbols-outlined{color:#0f766e;font-size:21px}.account-view-filter-option>span:last-child{min-width:0;display:grid;gap:2px}.account-view-filter-option strong,.account-view-filter-option small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-view-filter-option strong{font-size:13px}.account-view-filter-option small{color:var(--ui-text-soft,#607085);font-size:10px}.account-view-filter-status{min-height:20px;margin:0;color:var(--ui-text-soft,#607085);font-size:13px;font-weight:750}.account-view-filter-status.success{color:#15803d}.account-view-filter-status.error{color:#be123c}.account-view-filter form>footer{display:flex;justify-content:flex-end;gap:9px}.account-view-filter form>footer button{min-height:44px;padding:9px 14px;border:1px solid var(--ui-border,#ccd7e3);border-radius:8px;color:var(--ui-text,#172033);background:var(--ui-surface,#fff);font-size:13px;font-weight:800;cursor:pointer}.account-view-filter form>footer button.primary{color:#fff;border-color:#0f766e;background:#0f766e}.account-view-filter form>footer button:hover{border-color:#0f766e}.account-view-filter form>footer button.primary:hover{background:#115e59}.account-view-filter :is(input,button):focus-visible{outline:3px solid rgba(15,118,110,.3);outline-offset:2px}
.account-profile-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px}
.account-profile-card{min-width:0;display:grid;gap:18px;padding:20px;border:1px solid var(--ui-border,#d7e1ea);border-radius:13px;background:var(--ui-surface,#fff);box-shadow:0 7px 22px rgba(15,23,42,.06)}.account-profile-card.is-active{border-color:#0f766e;box-shadow:0 0 0 2px rgba(15,118,110,.12),0 8px 24px rgba(15,23,42,.07)}
.account-profile-card>header{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:start;gap:12px}.account-profile-card-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:10px;color:#0f766e;background:#ccfbf1}.account-profile-card header>span:nth-child(2){min-width:0;display:grid;gap:3px}.account-profile-card header small{overflow:hidden;color:#0f766e;font-size:12px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.account-profile-card h2{margin:0;color:var(--ui-text,#172033);font-size:20px;line-height:1.25}.account-profile-card header p{margin:0;color:var(--ui-text-soft,#607085);font-size:14px;line-height:1.45}.account-profile-card header>b,.account-profile-current-label{align-self:start;padding:5px 9px;border-radius:999px;color:#0f766e;background:#ccfbf1;font-size:12px;font-weight:850;white-space:nowrap}
.account-profile-sector{display:grid;gap:6px;color:var(--ui-text-soft,#607085);font-size:13px;font-weight:750}.account-profile-sector select{min-height:48px;padding:9px 11px;border:1px solid var(--ui-border,#ccd7e3);border-radius:8px;color:var(--ui-text,#172033);background:var(--ui-surface,#fff);font-size:16px}.account-profile-single-sector{display:flex;align-items:center;gap:8px;margin:0;color:var(--ui-text-soft,#607085);font-size:14px}.account-profile-single-sector .material-symbols-outlined{color:#0f766e;font-size:20px}
.account-profile-modules{display:grid;gap:9px}.account-profile-modules h3{margin:0;color:var(--ui-text,#172033);font-size:15px}.account-profile-modules>div{display:flex;flex-wrap:wrap;gap:7px}.account-profile-modules>div>span{display:inline-flex;align-items:center;gap:6px;min-height:34px;padding:6px 9px;border:1px solid var(--ui-border,#d7e1ea);border-radius:8px;color:var(--ui-text,#172033);background:var(--ui-surface-soft,#f8fafc);font-size:13px;font-weight:700}.account-profile-modules .material-symbols-outlined{color:#0f766e;font-size:18px}.account-profile-modules em{color:var(--ui-text-soft,#607085);font-size:14px;font-style:normal}
.account-profile-card>footer{min-height:48px;display:flex;align-items:center;justify-content:flex-end;padding-top:2px}.account-profile-activate{min-height:48px;padding:10px 18px;border:1px solid #0f766e;border-radius:8px;color:#fff;background:#0f766e;font-size:15px;font-weight:850;cursor:pointer}.account-profile-activate:hover:not(:disabled){background:#115e59}.account-profile-activate:disabled{cursor:not-allowed;opacity:.62}.account-profile-empty{grid-column:1/-1;min-height:170px;display:grid;place-items:center;align-content:center;gap:6px;padding:24px;border:1px dashed var(--ui-border,#ccd7e3);border-radius:12px;color:var(--ui-text-soft,#607085);text-align:center}.account-profile-empty strong{color:var(--ui-text,#172033);font-size:17px}
.account-profile-card :is(button,select):focus-visible{outline:3px solid rgba(15,118,110,.3);outline-offset:2px}
body[data-theme="dark"] .account-profile-notice{color:#fde68a;border-color:#a16207;background:#422006}body[data-theme="dark"] .account-profile-card-icon,body[data-theme="dark"] .account-profile-card header>b,body[data-theme="dark"] .account-profile-current-label{color:#99f6e4;background:#134e4a}
@media(max-width:820px){.account-profile-hero{grid-template-columns:1fr;padding:18px}.account-profile-list{grid-template-columns:1fr}.account-profile-card{padding:17px}.account-view-filter-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.app.account-workspace .platform-panel-body{padding:10px}.account-profile-card>header{grid-template-columns:40px minmax(0,1fr)}.account-profile-card header>b{grid-column:2;justify-self:start}.account-profile-card>footer{justify-content:stretch}.account-profile-activate{width:100%}.account-view-filter{padding:15px}.account-view-filter-options{grid-template-columns:1fr}.account-view-filter form>footer{align-items:stretch;flex-direction:column-reverse}.account-view-filter form>footer button{width:100%}}
