/* css/feedback-responsivo.css · Comentários, utilitários e regras responsivas de tabela/cartão (toast, vazio e carregando foram para componentes.css). A ordem de carga (cascata) está em index.html. */

/* ── Comment ── */
.comment{display:flex;gap:10px;margin-bottom:14px;padding:12px;background:rgba(79,140,255,.04);border:1px solid rgba(79,140,255,.08);border-radius:12px;transition:all .2s}
.comment:hover{background:rgba(79,140,255,.07)}
.avatar{width:30px;height:30px;border-radius:50%;background:linear-gradient(135deg,#1a2e6b 0%,#2a3f8a 100%);color:#60a5fa;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;flex-shrink:0;border:1px solid rgba(59,126,248,.3);box-shadow:0 4px 8px rgba(59,126,248,.1)}
.comment-mention{color:#60a5fa;font-weight:600;background:rgba(59,126,248,.15);border-radius:4px;padding:2px 6px;border:1px solid rgba(59,126,248,.3)}
.comment-input-wrap{position:relative;flex:1}
.comment-input{width:100%;padding:10px 14px;background:var(--input-bg);border:1px solid var(--border2);border-radius:11px;color:var(--text);font-size:13px;font-family:'Inter',sans-serif;outline:none;resize:none;min-height:42px;max-height:120px;transition:all .2s}
.comment-input:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(59,126,248,.1)}
.mention-menu{position:absolute;bottom:calc(100% + 6px);left:0;background:var(--panel-grad);border:1px solid var(--border2);border-radius:12px;padding:4px;min-width:240px;max-height:min(340px,52vh);overflow-y:auto;z-index:1000;box-shadow:0 12px 30px rgba(4,10,24,.28);display:none;backdrop-filter:blur(14px)}
.mention-item{display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:7px;cursor:pointer;font-size:13px;color:var(--text);transition:all var(--duracao-rapida)}.mention-item:hover,.mention-item.active{background:rgba(59,126,248,.1);transform:translateX(2px)}
.m-avatar{width:24px;height:24px;border-radius:50%;background:linear-gradient(135deg,#1a2e6b 0%,#2a3f8a 100%);color:#60a5fa;display:flex;align-items:center;justify-content:center;font-size:var(--fonte-xs);font-weight:700;flex-shrink:0;border:1px solid rgba(59,126,248,.2)}

/* ── Misc ── */
.tag{font-size:11px;color:var(--text3);background:linear-gradient(135deg,rgba(59,126,248,.1) 0%,rgba(59,126,248,.05) 100%);padding:3px 10px;border-radius:6px;white-space:nowrap;font-weight:600;border:1px solid rgba(59,126,248,.2);transition:all .2s}
.tag:hover{background:rgba(59,126,248,.15);color:var(--text2)}
.rt-dot{width:7px;height:7px;border-radius:50%;background:var(--green);display:inline-block;margin-right:6px;animation:pulse 2s infinite;flex-shrink:0;box-shadow:0 0 8px var(--green)}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.3}}
@keyframes pulseBtn{0%,100%{box-shadow:0 0 0 0 rgba(59,126,248,.4)}70%{box-shadow:0 0 0 8px rgba(59,126,248,0)}}
.btn-pulse{animation:pulseBtn 2s infinite}
.divider{height:1px;background:linear-gradient(to right,transparent,rgba(36,48,80,.5) 20%,rgba(36,48,80,.5) 80%,transparent);margin:20px 0}
.jet-mobile-dock{display:none}
.jet-mobile-fab{display:none}
@media(max-width:768px){
  .jet-mobile-dock{display:flex;position:fixed;bottom:0;left:0;right:0;height:calc(62px + env(safe-area-inset-bottom));padding:6px 10px env(safe-area-inset-bottom);background:var(--bg2);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border-top:1px solid var(--border);z-index:1050;justify-content:space-around;align-items:center;box-shadow:0 -4px 24px rgba(0,0,0,.25)}
  html[data-theme="light"] .jet-mobile-dock{background:rgba(255,255,255,.94);box-shadow:0 -4px 20px rgba(0,0,0,.08)}
  .jet-dock-item{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;background:transparent;border:none;color:var(--text3);padding:6px 2px;border-radius:10px;cursor:pointer;font-family:'Inter',sans-serif;font-size:var(--fonte-xs);font-weight:600;letter-spacing:-.2px;transition:all var(--duracao-rapida) ease;touch-action:manipulation;-webkit-tap-highlight-color:transparent;min-width:0}
  .jet-dock-item:active{transform:scale(.92)}
  /* item ativo: o azul primário dava 2,92:1 sobre o menu escuro; o claro dá 5,5:1 (tema claro: 6:1) */
  .jet-dock-item.active{color:var(--cor-primaria-clara);font-weight:700}
  html[data-theme="light"] .jet-dock-item.active{color:var(--cor-primaria)}
  .jet-dock-icon{width:22px;height:22px;display:flex;align-items:center;justify-content:center;position:relative}
  .jet-dock-badge{position:absolute;top:-3px;right:-8px;background:#b91c1c;color:#fff;font-size:var(--fonte-xs);font-weight:800;padding:1px 4px;border-radius:10px;line-height:1;border:1px solid var(--bg)} /* #ef4444 dava 3,8:1 com o número branco */
  .jet-mobile-fab{display:flex!important;position:fixed;bottom:calc(74px + env(safe-area-inset-bottom));right:16px;z-index:1040;align-items:center;gap:8px;background:linear-gradient(135deg,#2563eb 0%,#1d4ed8 100%);color:#fff;border:none;border-radius:999px;padding:0 18px 0 14px;height:48px;box-shadow:0 8px 24px rgba(37,99,235,.45),0 3px 8px rgba(0,0,0,.3);cursor:pointer;font-family:'Inter',sans-serif;font-size:13px;font-weight:700;letter-spacing:-.2px;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:transform var(--duracao-rapida) var(--ease-suave),box-shadow var(--duracao-rapida) ease}
  .jet-mobile-fab:active{transform:scale(.92);box-shadow:0 4px 12px rgba(37,99,235,.3)}
  .jet-mobile-fab-icon{display:flex;align-items:center;justify-content:center;width:20px;height:20px;flex-shrink:0}
  .jet-mobile-fab-pill{white-space:nowrap}
  body.jet-modal-open .jet-mobile-fab,body:has(.modal-overlay) .jet-mobile-fab,body:has(.media-viewer-overlay) .jet-mobile-fab{display:none!important}
  body.jet-modal-open .jet-mobile-dock{display:none!important}
  html, body{overflow-x:hidden!important;max-width:100vw!important;-webkit-text-size-adjust:100%}
  #root, #jet-main, .page{max-width:100vw!important;overflow-x:hidden!important}
  table{min-width:0!important}
  .stats-row{grid-template-columns:repeat(2,1fr)}
  .obra-grid{grid-template-columns:1fr}
  .form-grid-2,.form-grid-3{grid-template-columns:1fr!important}
  .obra-nav,.obra-inner-nav,.office-nav,.sst-tabs{gap:6px!important;display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;padding:6px 4px 8px!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:none!important}
  .obra-nav::-webkit-scrollbar,.office-nav::-webkit-scrollbar,.sst-tabs::-webkit-scrollbar{display:none!important}
  .obra-nav-btn,.office-nav-btn,.sst-tab{padding:8px 14px!important;font-size:12.5px!important;flex:0 0 auto!important;white-space:nowrap!important;min-height:var(--toque-min)!important}
  .page{padding:14px max(12px,env(safe-area-inset-right)) calc(84px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))!important}
  input,select,textarea,.ci{font-size:16px!important;min-height:var(--toque-min)}
  .topbar{height:calc(58px + env(safe-area-inset-top));min-height:calc(58px + env(safe-area-inset-top));padding:calc(8px + env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));flex-wrap:nowrap;align-items:center;gap:8px}
  .topbar-logo{min-width:0;flex:0 1 auto}
  .topbar-name{font-size:13px;max-width:130px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .topbar-sep{display:none}
  .topbar-crumb{display:none}
  .btn.obra-crumb-dup{display:inline-flex}
  .topbar-right{width:auto;margin-left:auto;justify-content:flex-end;flex-wrap:nowrap;gap:8px}
  .global-search-trigger{width:36px;height:36px;min-height:36px;padding:0;border-radius:12px}
  .global-search-trigger .global-search-label,.global-search-trigger kbd{display:none}
  .topbar-user,.online-presence,.rt-dot{display:none!important}
  .theme-toggle{width:36px;height:36px;border-radius:12px}
  .user-avatar{width:36px;height:36px}
  .online-presence{gap:6px;min-height:28px}
  .online-avatar{width:26px;height:26px;font-size:var(--fonte-xs);margin-left:-7px}
  .online-avatar:first-child{margin-left:0}
  .online-count-pill{font-size:var(--fonte-xs);padding:3px 7px}
  .section-header{flex-direction:column;align-items:flex-start}
  .section-header>div:last-child{width:100%;flex-wrap:wrap}
  .section-header .btn{flex:1;justify-content:center}
  .func-actions-bar{width:100%}
  .manage-obra-actions{width:100%}
  .manage-obra-btn{flex:1}
  .pedido-inline-toolbar{flex-direction:column;align-items:stretch}
  .pedido-inline-total{justify-content:center}
  .delete-dialog-actions{flex-direction:column}
  .func-action-group,.func-toggle-card,.func-create-btn{width:100%}
  .func-toolbar-btn,.func-create-btn{justify-content:flex-start;width:100%}
  .baixada-summary-grid{grid-template-columns:1fr 1fr}
  .baixada-head,.baixada-filter-row{flex-direction:column;align-items:stretch}
  .baixada-actions{width:100%}
  .baixada-actions .btn{width:100%;justify-content:center}
  .baixada-filter-chips{overflow:visible;flex-wrap:wrap;padding-bottom:0}
  .baixada-date-input{min-width:0;width:100%}
  .func-row-actions{justify-content:flex-start}
  .page-hero{padding:6px 0 14px}
  .page-hero-extra{position:static;justify-content:center;margin-bottom:8px}
  .page-hero-head{display:flex;justify-content:flex-start;align-items:center;text-align:left}
  .page-hero-title{font-size:28px}
  .page-hero-sub{font-size:12px;margin-bottom:10px}
  .page-hero-divider{margin-bottom:12px}
  .page-hero-actions{align-items:stretch;gap:8px}
  .page-hero-actions-group{flex-direction:row;align-items:center;flex-wrap:nowrap;overflow-x:auto;padding-bottom:5px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .page-hero-actions-group::-webkit-scrollbar{display:none}
  .page-hero-actions>.btn,.page-hero-actions-group .btn{width:auto;min-width:94px;flex:0 0 auto;justify-content:center}
  .panel-head{flex-direction:column;align-items:stretch}
  .panel-head .btn{width:100%;justify-content:center}
  .stat-card{padding:12px 14px}
  .stat-value{font-size:21px}
  .modal{padding:14px 16px calc(24px + env(safe-area-inset-bottom)) 16px!important;position:fixed;bottom:0;left:0;right:0;max-width:100%!important;width:100%!important;max-height:92vh;max-height:calc(100dvh - env(safe-area-inset-top) - 8px);border-radius:22px 22px 0 0;box-shadow:0 -12px 40px rgba(0,0,0,.5);animation:sheetSlideUp .22s var(--ease-suave)}
  .modal::before{content:'';display:block;width:38px;height:4.5px;border-radius:3px;background:rgba(148,163,184,.38);margin:0 auto 12px;flex-shrink:0}
  @keyframes sheetSlideUp{from{transform:translateY(100%)}to{transform:translateY(0)}}
  .modal-header{margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid var(--border)}
  .modal-close{width:44px;height:44px;min-width:44px;min-height:44px;border-radius:12px}
  .modal-body{padding-right:2px;max-height:calc(88dvh - 130px);overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  .modal-preview{max-height:94vh;max-height:94dvh}
  .receipt-preview-header{padding:10px 12px}
  .receipt-preview-stage{padding:10px;min-height:320px;max-height:calc(94vh - 220px);max-height:calc(94dvh - 220px);justify-content:flex-start}
  .receipt-preview-img{width:100%}
  .receipt-preview-pdf{height:calc(94vh - 220px);height:calc(94dvh - 220px);min-height:420px}
  .media-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .media-gallery-grid.media-gallery-rdo{grid-template-columns:repeat(3,minmax(0,1fr))}
  .media-drag-handle{min-height:28px;padding:4px 8px;font-size:var(--fonte-xs)}
  .media-viewer-overlay{padding:0;align-items:flex-end}
  .media-viewer-dialog{width:100%;height:94vh;height:calc(100dvh - env(safe-area-inset-top));padding:16px max(12px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));border-radius:18px 18px 0 0}
  .media-viewer-actions .btn{min-height:42px}
  .media-viewer-content .receipt-preview-stage{padding:8px;justify-content:center}
  .media-viewer-nav{width:42px;height:50px}.media-viewer-nav.prev{left:7px}.media-viewer-nav.next{right:7px}
  body.jet-modal-open .jet-mobile-dock{display:none!important}
  .modal-overlay{align-items:flex-end;padding:0;background:rgba(0,0,0,.65);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);z-index:1200!important}
  .modal-footer{flex-direction:column-reverse;gap:8px;margin-top:14px;padding-top:10px;border-top:1px solid var(--border)}
  .modal-footer .btn{width:100%;min-height:46px;font-size:14px;font-weight:700;justify-content:center}
  .modal-footer .jet-draft-status{width:100%;margin:0;text-align:center;order:2}
  .modal-body .form-grid-2,.modal-body .form-grid-3,.modal-body .form-grid-4{grid-template-columns:1fr!important;gap:12px!important}
  .modal-body div[style*="grid-template-columns:1fr 1fr"],.modal-body div[style*="grid-template-columns: 1fr 1fr"],.modal-body div[style*="grid-template-columns:repeat"]{grid-template-columns:1fr!important;gap:12px!important}

  /* Botões e Alvos de Toque Mobile (WCAG 2.5.8) */
  .btn{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
  .btn-sm{min-height:36px;padding:6px 12px!important}
  .btn-xs{min-height:32px;padding:4px 8px!important}
  .cd-trigger{min-height:var(--toque-min)!important}
  .cd-option{min-height:42px!important;padding:10px 14px!important;font-size:14px!important}
  .weather-opt{min-height:var(--toque-min);display:inline-flex;align-items:center;justify-content:center;padding:8px 14px!important;font-size:13px!important}

  /* Toolbar de Busca e Filtros no Mobile */
  .jet-toolbar input[type="text"],
  .jet-toolbar input[type="search"],
  .jet-toolbar .ci[placeholder*="Buscar"]{flex:1 1 100%!important;max-width:100%!important}

  /* Cronograma e Gantt Responsivo no Celular */
  #crono-gantt-scroll{-webkit-overflow-scrolling:touch!important;touch-action:pan-x pan-y!important}
  .crono-fixed{position:static!important;width:auto!important;min-width:140px!important}
  .crono-inner{width:max-content!important}

  /* Calendário de Tarefas no Mobile */
  .jcal-cell{min-height:64px!important;padding:3px 2px!important;font-size:var(--fonte-xs)!important}
  .jcal-wd span{padding:6px 2px!important;font-size:var(--fonte-xs)!important}

  /* Indicadores e Botões Flutuantes sobre o Bottom Dock */
  /* o aviso de carga fica embaixo da barra do topo: em cima do menu inferior ele cobria o
     botão flutuante ("+ Nova Obra") e a Ajuda cobria o "Mais" */
  .jet-carga{top:calc(66px + env(safe-area-inset-top));bottom:auto!important}
  body:has(.jet-mobile-dock) #jet-ajuda-fab{display:none!important} /* a Ajuda mora no "Mais" */
  body:has(.jet-mobile-fab) .page{padding-bottom:calc(140px + env(safe-area-inset-bottom))!important} /* o botão flutuante não cobre o fim da página */
  .scroll-top{left:16px!important;right:auto!important;bottom:calc(76px + env(safe-area-inset-bottom))!important;width:44px!important;height:44px!important}
  .fab{display:none!important}

  /* Barra de Ações Rápidas do Cabeçalho da Obra (Carrossel Touch) */
  .obra-header-actions{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:none!important;gap:8px!important;width:100%!important;padding:4px 0 6px!important}
  .obra-header-actions::-webkit-scrollbar{display:none!important}
  .obra-header-actions .btn{flex:0 0 auto!important;white-space:nowrap!important;font-size:12px!important;min-height:38px!important;padding:6px 12px!important}

  /* Ocultar cabeçalhos de tabela inline de itens em modais */
  div[style*="grid-template-columns:2fr 48px"],
  div[style*="grid-template-columns:2fr 55px"],
  div[style*="grid-template-columns: 2fr 48px"],
  div[style*="grid-template-columns: 2fr 55px"]{display:none!important}

  /* Transformar as linhas de itens em cards confortáveis */
  .ad-item-row,
  .mat-item-row,
  .est-item-row,
  .ped-item-row{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;padding:12px 14px!important;border:1px solid var(--border)!important;border-radius:14px!important;background:var(--bg2)!important;margin-bottom:10px!important;box-shadow:0 2px 8px rgba(0,0,0,.1)!important}
  .ad-item-row .adi-desc,
  .mat-item-row .mat-item-desc,
  .est-item-row .est-item-name,
  .ped-item-row .ped-item-desc{grid-column:1/-1!important;font-size:14px!important;font-weight:600!important}
  .mat-item-row .mat-item-obs,
  .est-item-row .est-item-obs,
  .ped-item-row .ped-item-obs{grid-column:1/-1!important}
  .ad-item-row button,
  .mat-item-row button,
  .est-item-row button,
  .ped-item-row button{grid-column:1/-1!important;width:100%!important;min-height:var(--toque-min)!important;font-size:13px!important;font-weight:600!important;margin-top:4px!important;display:flex!important;align-items:center!important;justify-content:center!important}

  /* Critérios FVS PBQP-H e Recebimento de Canteiro adaptados para toque */
  .fvs-crit-row > div:first-child{flex-direction:column!important;align-items:stretch!important;gap:8px!important}
  .fvs-crit-row .fvs-crit-desc{width:100%!important;min-width:0!important}
  .fvs-crit-row div:has(> button:first-child){display:flex!important;width:100%!important}
  .fvs-crit-row div:has(> button:first-child) button{flex:1!important;text-align:center!important;padding:8px 4px!important;min-height:38px!important}
  .rec-item-row{display:flex!important;flex-direction:column!important;gap:6px!important;padding:10px!important;border-radius:10px!important;background:var(--bg3)!important;margin-bottom:8px!important}
  .rec-item-row td{display:flex!important;justify-content:space-between!important;align-items:center!important;padding:4px 0!important;border:none!important}

  /* Tabelas Responsivas e Cards Mobile */
  .tbl-wrap{border-radius:12px;font-size:12px;overflow-x:auto;-webkit-overflow-scrolling:touch;margin-bottom:14px}
  .tbl-wrap:not(.mobile-cards) table{min-width:540px}
  .tbl-wrap.mobile-cards{overflow:visible!important;border:none!important;background:transparent!important}
  .tbl-wrap.mobile-cards>table{min-width:0!important;width:100%!important;display:block!important}
  .tbl-wrap.mobile-cards thead{display:none!important}
  .tbl-wrap.mobile-cards tbody{display:flex!important;flex-direction:column!important;gap:12px!important;width:100%!important}
  .tbl-wrap.mobile-cards tbody tr{display:flex!important;flex-direction:column!important;border:1px solid var(--border)!important;border-radius:14px!important;padding:12px 14px!important;background:var(--bg2)!important;box-shadow:0 3px 12px rgba(0,0,0,.15)!important;gap:6px!important}
  html[data-theme="light"] .tbl-wrap.mobile-cards tbody tr{background:#ffffff!important;border-color:#e2e8f0!important;box-shadow:0 3px 10px rgba(0,0,0,.05)!important}
  .tbl-wrap.mobile-cards tbody td{display:grid!important;grid-template-columns:minmax(84px,110px) 1fr!important;align-items:flex-start!important;gap:8px!important;padding:6px 0!important;width:100%!important;border-bottom:1px solid var(--border2)!important}
  .tbl-wrap.mobile-cards tbody td:last-child{border-bottom:none!important}
  .tbl-wrap.mobile-cards tbody td::before{text-align:left!important;content:attr(data-label);font-size:var(--fonte-xs)!important;color:var(--text3)!important;font-weight:700!important;text-transform:uppercase!important;letter-spacing:.5px!important;padding-top:2px}
  .tbl-wrap.mobile-cards tbody td:not([data-label]){grid-template-columns:1fr!important}
  .tbl-wrap.mobile-cards tbody td:not([data-label])::before{display:none!important}
  .tbl-wrap.mobile-cards .mobile-card-value{width:100%!important}
  .tbl-wrap.mobile-cards .mobile-card-value .ci{padding:8px 10px}
  .tbl-wrap.mobile-cards .mobile-card-value input,
  .tbl-wrap.mobile-cards .mobile-card-value select,
  .tbl-wrap.mobile-cards .mobile-card-value textarea,
  .tbl-wrap.mobile-cards .mobile-card-value .ci{width:100%!important;max-width:100%!important;box-sizing:border-box!important}
  .tbl-wrap.mobile-cards tbody td.adsel-col{position:absolute!important;top:10px!important;right:10px!important;width:auto!important;padding:0!important;border-bottom:none!important;z-index:2!important}
  .tbl-wrap.mobile-cards tbody td.adsel-col input[type=checkbox]{width:20px!important;height:20px!important}
  .tbl-wrap.mobile-cards tbody tr.adsel-on{border-color:var(--blue)!important;box-shadow:0 0 0 2px rgba(96,165,250,.35)!important}

  /* Totais e Rodapés de Tabelas Cardificadas */
  .tbl-wrap.mobile-cards tfoot{display:flex!important;flex-direction:column!important;margin-top:10px!important;border:1px solid var(--border)!important;border-radius:14px!important;background:var(--bg3)!important;padding:12px 14px!important}
  .tbl-wrap.mobile-cards tfoot tr{display:flex!important;flex-direction:column!important;gap:6px!important;background:transparent!important;border:none!important}
  .tbl-wrap.mobile-cards tfoot td{display:flex!important;justify-content:space-between!important;align-items:center!important;padding:4px 0!important;border:none!important;font-size:13px!important}
  .tbl-wrap.mobile-cards tfoot td:empty{display:none!important}

  /* RDO Card no mobile */
  .rdo-card{padding:14px 12px!important;border-radius:14px!important}
  .rdo-card-topo{flex-direction:column!important;gap:10px!important}
  .rdo-card-acoes{width:100%!important;display:flex!important;flex-wrap:wrap!important;gap:6px!important;padding-top:10px!important;border-top:1px dashed var(--border)!important}
  .rdo-card-acoes .btn{flex:1 1 calc(50% - 6px)!important;min-height:var(--toque-min)!important;font-size:12.5px!important;justify-content:center!important}
  .rdo-card-acoes .rdo-status-slot{width:100%!important;margin-bottom:4px!important}

  /* Celulas de Acao nos Cards Mobile: Barra de Acoes Completa no Rodape do Card */
  .tbl-wrap.mobile-cards tbody td[data-is-action="1"],
  .tbl-wrap.mobile-cards tbody td[data-label="Ações"],
  .tbl-wrap.mobile-cards tbody td[data-label="Ação"]{display:flex!important;flex-direction:column!important;grid-template-columns:none!important;gap:8px!important;margin-top:6px!important;padding-top:10px!important;border-top:1px dashed var(--border)!important;border-bottom:none!important}
  .tbl-wrap.mobile-cards tbody td[data-is-action="1"]::before,
  .tbl-wrap.mobile-cards tbody td[data-label="Ações"]::before,
  .tbl-wrap.mobile-cards tbody td[data-label="Ação"]::before{display:none!important}
  .tbl-wrap.mobile-cards tbody td[data-is-action="1"] .mobile-card-value,
  .tbl-wrap.mobile-cards tbody td[data-label="Ações"] .mobile-card-value,
  .tbl-wrap.mobile-cards tbody td[data-label="Ação"] .mobile-card-value{display:flex!important;flex-wrap:wrap!important;gap:6px!important;width:100%!important}
  .tbl-wrap.mobile-cards tbody td[data-is-action="1"] .btn,
  .tbl-wrap.mobile-cards tbody td[data-is-action="1"] button,
  .tbl-wrap.mobile-cards tbody td[data-label="Ações"] .btn,
  .tbl-wrap.mobile-cards tbody td[data-label="Ações"] button,
  .tbl-wrap.mobile-cards tbody td[data-label="Ação"] .btn{flex:1 1 calc(50% - 6px)!important;min-height:var(--toque-min)!important;font-size:12.5px!important;justify-content:center!important}
  .req-items-head{display:none}
  .req-item-row{grid-template-columns:1fr 1fr;gap:10px;padding:12px;border:1px solid var(--border);border-radius:12px;background:linear-gradient(135deg,var(--bg2) 0%,#0a0f1a 100%)}
  .req-item-field-wide{grid-column:1/-1}
  .req-item-label{display:block}
  .req-item-remove{grid-column:1/-1;width:100%;height:38px;font-size:14px}
  .fab{bottom:80px;right:16px;width:52px;height:52px}
  .obra-card{padding:16px}
  .obra-card-footer{flex-direction:column;align-items:flex-start;gap:8px}
  .auth-card{padding:28px 20px}
  .landing-header{padding:24px 20px 0;align-items:flex-start}
  .landing-brand{gap:12px}
  .landing-word{font-size:28px}
  .landing-pill img{height:26px}
  .landing-pill span{font-size:24px}
  .landing-meta{width:100%;justify-content:flex-end}
  .landing-meta-sep,.landing-user{display:none}
  .landing-divider{margin:20px 20px 0}
  .landing-main{padding:32px 20px 48px}
  .landing-layout{grid-template-columns:1fr;gap:24px}
  .landing-grid-wrap{justify-content:stretch}
  .landing-grid{gap:20px}
  .landing-module{flex:0 0 calc(50% - 10px);max-width:none}
  .landing-module{gap:14px}
  .landing-module-icon{width:96px;height:96px;border-radius:28px}
  .landing-module-icon svg{max-width:46px;max-height:46px}
  .landing-module-btn{width:100%;min-width:0;padding:8px 12px;font-size:var(--fonte-xs);white-space:normal;line-height:1.2;text-align:center}
  .landing-module-desc{max-width:none}
  .landing-notice-shell{position:static}
  .landing-notices{position:fixed;top:74px;left:12px;right:12px;width:auto;max-width:none;max-height:min(62svh,420px);overflow:auto;padding:12px;border-radius:18px;box-shadow:0 18px 46px rgba(20,39,75,.20);z-index:220}
  .landing-notices-head{align-items:center;flex-direction:row;margin-bottom:10px}
  .landing-notice-head-actions{width:auto;justify-content:flex-end}
  .landing-notice-head-actions .btn{white-space:nowrap;padding:7px 11px}
  .landing-notice-meta-line{width:100%;display:flex;gap:6px;overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px;scrollbar-width:none}
  .landing-notice-meta-line::-webkit-scrollbar{display:none}
  .landing-notice-stat{flex:0 0 auto}
  .landing-notice-list{max-height:220px}
  .landing-notice-item{padding:11px;border-radius:16px}
  .landing-notice-badge{padding:4px 7px}
  .landing-footer{padding:16px 20px;flex-wrap:wrap}
  .landing-footer-copy{max-width:100%}
  .compras-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .global-search-overlay{align-items:flex-end;padding:0}
  .global-search-dialog{width:100%;max-height:88svh;border-radius:20px 20px 0 0}
  .global-search-head{min-height:64px;padding:10px 14px}
  .global-search-input{font-size:16px}
  .global-search-results{max-height:calc(88svh - 126px)}
  .global-search-result{min-height:62px;padding:10px}
  .global-search-result-type{display:none}
  .global-search-footer{padding-bottom:max(10px,env(safe-area-inset-bottom))}
  .scroll-top{right:14px;bottom:max(78px,calc(env(safe-area-inset-bottom) + 18px));width:46px;height:46px}

  .commercial-card-grid{grid-template-columns:1fr}
  .commercial-item-head{display:none}
  .commercial-item-row{grid-template-columns:1fr 1fr;gap:8px;border:1px solid var(--border);border-radius:14px;padding:10px;background:var(--surface2)}
  .commercial-item-row .commercial-item-wide{grid-column:1/-1}
  .proposal-actions .btn{flex:1;justify-content:center}
  .office-grid{grid-template-columns:1fr}
  .office-action-grid{grid-template-columns:1fr}
  .office-nav{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none}
  .office-nav::-webkit-scrollbar{display:none}
  .office-nav-btn{flex:0 0 auto;white-space:nowrap}
  .office-metric-grid{grid-template-columns:1fr}
.office-expand-head{align-items:flex-start;flex-wrap:wrap}
.office-inline-actions{order:3;width:100%}
.office-team-grid{grid-template-columns:1fr}
.office-team-head,.office-notice-top{align-items:flex-start;flex-wrap:wrap}
.office-team-actions{width:100%;justify-content:flex-start}
.office-team-person{align-items:flex-start;flex-direction:column}
.office-team-person-actions{justify-content:flex-start}
.office-master-toolbar{align-items:stretch}
.office-master-filter,.office-master-toolbar .office-mini-btn{width:100%}
.office-master-actions{width:100%}
}
@media(max-width:400px){
  .stats-row{grid-template-columns:1fr}
  .section-title{font-size:16px}
  .page-hero-title{font-size:24px}
  .page-hero-icon{width:42px;height:42px;font-size:14px}
  .landing-module{flex:1 1 100%}
  .landing-word{font-size:24px}
  .landing-notice-actions{width:100%}
  .landing-notice-actions .btn{flex:1;justify-content:center}
  .landing-notices{top:70px;left:10px;right:10px;max-height:58svh}
  .proposal-validity-builder{grid-template-columns:1fr}
  .proposal-validity-result{grid-column:auto}
  .global-search-result-icon{width:34px;height:34px}
}
@media (hover:none){
  .obra-card:hover{transform:none;box-shadow:var(--shadow-soft)}
  .obra-card:hover::after{opacity:0}
  html[data-theme="light"] .obra-card:hover{background:linear-gradient(180deg,#ffffff 0%,#f7faff 100%)}
}

