/* ============================================================
   UTIL — Calculadoras de Engenharia (estilos)
   Paleta azul Elipse do site + acento PDCA por calculadora.
   ============================================================ */
#util-calc-app { --az: #0070b8; --az9: #0a3a5c; --az1: #e1eff8; --cz: #777; --cz1: #f4f6f7; --cz2: #d6dcdf; --tx: #20272e;
  font-family: Inter, system-ui, Segoe UI, Arial, sans-serif; color: var(--tx); }

/* barra: filtros + busca */
#util-calc-app .uc-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
#util-calc-app .uc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
#util-calc-app .uc-chip { border: 1px solid var(--cz2); background: #fff; color: var(--az9); border-radius: 999px; padding: 7px 15px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: .15s; }
#util-calc-app .uc-chip:hover { border-color: var(--az); color: var(--az); }
#util-calc-app .uc-chip.on { background: var(--az); border-color: var(--az); color: #fff; }
#util-calc-app .uc-search { flex: 1 1 260px; max-width: 380px; border: 1px solid var(--cz2); border-radius: 10px; padding: 10px 14px; font-size: 14px; outline: none; }
#util-calc-app .uc-search:focus { border-color: var(--az); box-shadow: 0 0 0 3px var(--az1); }

/* legenda PDCA */
#util-calc-app .uc-legenda { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; font-size: 12.5px; color: var(--cz); }
#util-calc-app .uc-leg { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
#util-calc-app .uc-leg i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }

/* grade de ícones/atalhos */
#util-calc-app .uc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 16px; }
#util-calc-app .uc-tile { position: relative; text-align: left; display: flex; flex-direction: column; gap: 12px;
  border: 1px solid var(--cz2); border-radius: 16px; background: #fff; padding: 18px; cursor: pointer; overflow: hidden;
  transition: transform .16s, box-shadow .16s, border-color .16s; }
#util-calc-app .uc-tile::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: linear-gradient(var(--pc2), var(--pc)); }
#util-calc-app .uc-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(10, 40, 60, .14); border-color: var(--pc); }
#util-calc-app .uc-tile-ico { width: 74px; }
#util-calc-app .uc-ico { width: 74px; height: auto; display: block; }
#util-calc-app .uc-tile-txt h3 { margin: 0 0 5px; font-size: 15.5px; font-weight: 800; color: var(--az9); line-height: 1.25; }
#util-calc-app .uc-tile-txt p { margin: 0; font-size: 12.8px; line-height: 1.45; color: #55606b; }
#util-calc-app .uc-tile-tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
#util-calc-app .uc-tag { font-size: 11px; font-weight: 700; color: var(--az); background: var(--az1); border-radius: 6px; padding: 3px 8px; }
#util-calc-app .uc-badge { font-size: 11px; font-weight: 700; color: #fff; border-radius: 6px; padding: 3px 8px; }
#util-calc-app .uc-open { font-size: 12.5px; font-weight: 700; color: var(--pc); margin-top: auto; opacity: 0; transform: translateX(-4px); transition: .16s; }
#util-calc-app .uc-tile:hover .uc-open { opacity: 1; transform: none; }
#util-calc-app .uc-note { margin-top: 22px; font-size: 12.5px; color: var(--cz); text-align: center; }

/* ---- modal ---- */
.uc-ovl { position: fixed; inset: 0; z-index: 3000; background: rgba(8, 20, 34, .55); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 18px; }
.uc-modal { position: relative; background: #fff; border-radius: 18px; width: 100%; max-width: 860px; max-height: 92vh; overflow: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5); font-family: Inter, system-ui, Segoe UI, Arial, sans-serif; color: #20272e; }
.uc-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border: none; border-radius: 9px;
  background: rgba(255, 255, 255, .22); color: #fff; font-size: 16px; cursor: pointer; }
.uc-x:hover { background: rgba(255, 255, 255, .4); }
.uc-mhead { display: flex; align-items: center; gap: 16px; padding: 20px 22px; color: #fff; }
.uc-mico { width: 66px; flex: none; }
.uc-mico .uc-ico { width: 66px; }
.uc-mpdca { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.uc-mhead h2 { margin: 3px 0 4px; font-size: 20px; font-weight: 800; line-height: 1.2; }
.uc-mref { font-size: 12.5px; opacity: .92; }
.uc-mcols { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.uc-mcol { padding: 20px 22px; }
.uc-mcol:first-child { border-right: 1px solid #eef1f4; }
.uc-obj { font-size: 13.5px; line-height: 1.5; color: #3a444f; margin: 0 0 14px; }
.uc-obj b { color: #0a3a5c; }
.uc-what { font-size: 13px; margin-bottom: 16px; }
.uc-what b { color: #0a3a5c; }
.uc-what ul { margin: 6px 0 0; padding-left: 18px; color: #55606b; }
.uc-what li { margin: 2px 0; font-size: 12.7px; }
.uc-what li span { color: #8a94a0; }
.uc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.uc-in { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.uc-in span { color: #55606b; font-weight: 600; }
.uc-in em { color: #8a94a0; font-style: normal; }
.uc-in input { border: 1px solid #d6dcdf; border-radius: 8px; padding: 8px 10px; font-size: 14px; outline: none; }
.uc-in input:focus { border-color: #0070b8; box-shadow: 0 0 0 3px #e1eff8; }
.uc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.uc-btn { border: none; background: #0070b8; color: #fff; border-radius: 9px; padding: 9px 15px; font-size: 13px; font-weight: 700; cursor: pointer; }
.uc-btn:hover { background: #005a94; }
.uc-btn.sec { background: #eef3f7; color: #0a3a5c; }
.uc-btn.sec:hover { background: #e1eff8; }
.uc-out-t { font-size: 13px; font-weight: 800; color: #0a3a5c; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.uc-live { color: #2E9E3F; font-weight: 700; font-size: 11.5px; }
.uc-tbl { width: 100%; border-collapse: collapse; }
.uc-tbl td { padding: 8px 6px; border-bottom: 1px solid #eef1f4; font-size: 13px; }
.uc-tbl td.cv { text-align: right; font-weight: 800; color: #0a3a5c; font-variant-numeric: tabular-nums; font-family: "IBM Plex Mono", Consolas, monospace; }
.uc-tbl td.cu { color: #8a94a0; width: 1%; white-space: nowrap; padding-left: 8px; font-size: 12px; }
.uc-draw { margin-top: 14px; }

@media (max-width: 720px) {
  .uc-mcols { grid-template-columns: 1fr; }
  .uc-mcol:first-child { border-right: none; border-bottom: 1px solid #eef1f4; }
  #util-calc-app .uc-grid { grid-template-columns: 1fr 1fr; }
}
