﻿@font-face {
  font-family: "HK Grotesk";
  src: url("../fonts/hk-grotesk/HKGrotesk-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HK Grotesk";
  src: url("../fonts/hk-grotesk/HKGrotesk-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HK Grotesk";
  src: url("../fonts/hk-grotesk/HKGrotesk-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HK Grotesk";
  src: url("fonts/hk-grotesk/HKGrotesk-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
    --teal: #5BBAB2;
    --amber: #FEB501;
    --gray: #A9A9A9;
    --ink: #0B0B0B;
    --paper: #FFFFFF;
    /* 16:9 “slide” size (igual ao PDF) */
    --page-w: 13.333in;
    --page-h: 7.5in;
    --sidebar-w: 28%;
    --pad: 0.70in;
    --line: 3px;
    --bar-h: 86px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "HK Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--ink);
    background: #111;
}

.deck {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
    align-items: center;
}

/* PAGE BASE */
.page {
    width: var(--page-w);
    height: var(--page-h);
    background: var(--paper);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,.35);
}

/* TYPO */
.t1 {
    margin: 0;
    font-weight: 800;
    
    font-size: 68px;
    line-height: 1.00;
}

.t2 {
    margin: 0;
    font-weight: 800;
    
    font-size: 68px;
    line-height: 1.00;
    
    text-align: center;
}

.t3 {
    margin-top: 1px;
    margin-left: 100px;
    font-weight: 400;
    
    font-size: 24px;
    line-height: 1.00;
    
    text-align: left;
}

.subtitle {
    margin: 10px 0 0;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 500;
}

.lead {
    font-size: 28px;
    line-height: 1.25;
    margin: 0;
}

.lead2 {
    font-size: 24px;
    line-height: 1.25;
    margin: 0;
}

.h2 {
    font-size: 34px;
    font-weight: 500;
    margin: 0 0 6px;
}

.bigBold {
    font-weight: 800;
}

.teal {
    color: var(--teal);
}

.tiny {
    font-size: 14px;
    opacity: .85;
}

.mono {
    font-variant-numeric: tabular-nums;
}

/* LOGO */
.mvo {
    width: 300px;
    height: auto;
}

.sidebar .mvo {
    width: 270px;
    transform: translateY(-20px);
}

.mvo--xl {
    width: 480px;
}

.mvo--white {
    filter: none;
}

/* PAGE 1 */
.page--capa {
  display: grid;
  grid-template-columns: 30% 70%;
  padding: var(--pad);
  align-items: stretch;
}

.capa__content {
  display: flex;
  flex-direction: column;
  justify-content: center;   /* centraliza vertical */
  align-items: center;       /* centraliza horizontal o bloco interno */
  padding-top: 0;            /* remove o "empurrão" para baixo */
}

.capa__center {
  width: 100%;
  max-width: 6.4in;          /* controla a “coluna” central */
  margin: 0 auto;
  text-align: center;        /* centraliza todo o texto */
}

/* opcional: se quiser os textos mais “respirados” na capa */
.capa__mid { margin-top: .65in; }
.capa__meta { margin-top: .45in; }

.capa__logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 20px;
}

.capa__mid {
    margin-top: .85in;
}

.capa__meta {
    margin-top: .65in;
}

/* PAGES WITH SIDEBAR */
.page--sidebar {
    display: grid;
    grid-template-columns: var(--sidebar-w) calc(100% - var(--sidebar-w));
}

.sidebar {
    background: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.content {
    padding: var(--pad);
}

/* PAGE 2 */
.grid2 {
    margin-top: .25in;
    display: grid;
    grid-template-columns: 62% 38%;
    gap: .35in;
}

.steps {
    padding-right: 0px;
}

.step {
    margin: 10px 10px;
}

.step__title {
    font-size: 24px;
    font-weight: 400;
}

.step__text {
    font-size: 18px;
    line-height: 1.3;
    margin-left: 50px;
}

.sidecards {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-top: .25in;
}

.pieCard {
    display: grid;
    gap: 10px;
    justify-items: center;
    padding: 14px;
}

.pie {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(36deg);
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: conic-gradient( var(--teal) 0 40%, var(--amber) 40% 80%, var(--gray) 80% 100% );
    outline: 12px solid #fff;
}

.pieLegend {
    font-size: 14px;
    display: grid;
    gap: 6px;
    width: 260px;
}

.pieLabel {
  position: absolute;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  color: #fff;
  transform: translate(-50%, -50%) rotate(-36deg);
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}

/* Instalação – topo-direita */
.pieLabel--teal {
  top: 100px;
  left: 190px;
}

/* Inversor – baixo-direita */
.pieLabel--amber {
  top: 180px;
  left: 90px;
}

/* Painéis – esquerda */
.pieLabel--gray {
  top: 60px;
  left: 80px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.dot--teal {
    background: var(--teal);
}

.dot--amber {
    background: var(--amber);
}

.dot--gray {
    background: var(--gray);
}

.illusCard {
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(91,186,178,.25), rgba(254,181,1,.20));
    height: 210px;
}

.illusTitle {
    font-weight: 700;
    margin-bottom: 6px;
}

.illusHint {
    font-size: 14px;
    opacity: .8;
}

/* PAGE 3 */
.page--simple {
    padding: var(--pad);
}

.compare2 {
    margin-top: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.col__head {
    background: var(--teal);
    color: #fff;
    padding: 16px 18px;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
}

.col__head2 {
    background: var(--amber);
    color: #fff;
    padding: 16px 18px;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
}

.bullets {
    margin: 18px 0 0;
    padding-left: 40px;
    padding-right: 20px;
    font-size: 18px;
    line-height: 1.30;
}

.bullets li {
  padding-bottom: 8px;
  line-height: 1.2;
}


.wm {
    position: relative;
}

.watermark__mvo {
  position: absolute;
  inset: 90px 0 0 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 0;
}

.compare2 > .col {
  position: relative;
  z-index: 1;
}

.wm {
    max-width: 600px;
    opacity: 0.2;          /* CONTROLE AQUI */
    user-select: none;
}

/* PAGE 4 */
.about3 {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 30% 34% 36%;
    gap: 2px;
    align-items: center;
}

.about__left {
    padding-left: 20px;
    padding-top: 50px;
}

.about__mid {
    display: flex;
    justify-content: center;
}

.about__right {
    padding-right: .2in;
}

.kicker {
    font-size: 26px;
    line-height: 1.35;
    font-weight: 300;
    text-align: right;
}

.kicker1 {
    padding-right: 30px;
}

.kicker2 {
    padding-right: 120px;
}

.spacer {
    height: 50px;
}

.arrows {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 22px;
    line-height: 1.5;
}

    .arrows li::before {
        content: "→ ";
        color: var(--teal);
        font-weight: 700;
    }

/* PAGE 5 */
.projects {
    margin-top: 10px;
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 22px;
    
}

.proj {
    display: grid;
    grid-template-columns: 52% 48%;
    gap: 40px;
    align-items: center;
}

.proj--b {
    grid-template-columns: 30% 70%;
    text-align: right;
    max-width: 800px;
}

.proj__img {
    width: 80%;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
}

.proj__txt {
    font-size: 22px;
    line-height: 1.35;
}

    .proj__txt.right {
        text-align: right;
    }

.proj__title {
    font-weight: 600;
    margin-bottom: 4px;
}

/* PAGE 6 */
.bigList {
    margin: 26px 0 0;
    padding-left: 28px;
    padding-top: 10px;
}

    .bigList li {
        margin: 20px 0;
    }

.bigList__title {
    font-size: 30px;
    font-weight: 500;
}

.bigList__sub {
    margin-top: 6px;
    font-size: 22px;
    line-height: 1.35;
    opacity: .95;
    margin-left: 8px;
}

    .bigList__sub::before {
        content: "◦ ";
        margin-right: 6px;
    }

.bigList li::marker {
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
}


/* PAGE 7 */
.premissas {
    margin-top: 1.1in;
    width: 88%;
    margin-left: .8in;
    display: grid;
    gap: 22px;
}

.prem {
    display: grid;
    grid-template-columns: 44% 56%;
    align-items: end;
    gap: 18px;
    padding-bottom: 14px;
    border-bottom: 3px solid --teal;
}

.prem__label {
    font-size: 22px;
    font-weight: 700;
}

.prem__value {
    font-size: 22px;
    text-align: left;
}

/* PAGE 8 (table-like) */
.tableLike {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 5px;
}

.tealBox {
    background: var(--teal);
    color: #fff;
    text-align: center;
    font-weight: 700;
    padding: 12px 10px;
    font-size: 18px;
}

.tealRow {
    background: var(--teal);
    color: #fff;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.tl__cell {
    border-bottom: 2px solid var(--amber);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

    .tl__cell.center {
        justify-content: center;
    }

.check {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    background:var(--teal);
    color: #fff;
    border-radius: 4px;
    font-weight: 900;
}

/* PAGE 9 / 11 cards */
.tealBox2 {
    background: var(--teal);
    color: #fff;
    text-align: center;
    font-weight: 800;
    padding: 18px 10px;
    font-size: 20px;
}

.cards3 {
    margin-top: .35in;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.cards4 {
    margin-top: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
}

.cardTop {
    display: flex;
    align-items: center;
    justify-content: center;

}

.cardBody {
    padding: 16px 12px;
    font-size: 18px;
    line-height: 1.35;
    text-align: left;
}

    .cardBody.center {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

    }

.divider {
    margin: 14px 0 10px;
}

.amberLine {
    height: 0;
    border-top: 4px solid var(--amber);
    opacity: .9;
}

.footnote {
    position: absolute;
    left: calc(var(--sidebar-w) + var(--pad));
    bottom: .35in;
}

/* PAGE 10 financial grid */
.fin {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 29% 23% 23% 23%;
    gap: 5px;
    align-items: stretch;
}

.fin__label {
    padding: 14px 10px;
    font-size: 20px;
    line-height: 1.25;
    display: flex;
    align-items: center;
}

.fin__cell {
    padding: 14px 10px;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.fin__line {
    height: 0;
    border-top: 4px solid var(--amber);
    grid-column: 1 / -1;
    opacity: .9;
    margin-top: -6px;
}

/* PAGE 11 */
.inv3 {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.inv {
    padding: 10px 8px;
    font-size: 20px;
    line-height: 1.35;
}

.center {
    text-align: center;
    justify-content: center;
}

/* PAGE 12 */
.page--final {
    display: grid;
    grid-template-columns: 45% 55%;
    padding: var(--pad);
    align-items: center;
}

.final__logo {
    display: flex;
    justify-content: center;
}

.final__text {
    text-align: center;
    padding-left: .15in;
}

.final__text .t1{
    font-size: 100px;
}

.final__name {
    font-size: 40px;
    font-weight: 800;
    margin-top: 8px;
}

.final__role, .final__crea {
    font-size: 28px;
    margin-top: 6px;
}

.final__company {
    font-size: 44px;
    font-weight: 800;
    margin-top: 60px;
}

.final__cnpj, .final__crea2 {
    font-size: 30px;
    margin-top: 6px;
}

/* PRINT (exportar via PDF) */
@media print {
    body {
        background: #fff;
    }

    .deck {
        padding: 0;
        gap: 0;
    }

    .page {
        box-shadow: none;
        margin: 0;
        break-after: page;
        page-break-after: always;
    }

    @page {
        size: var(--page-w) var(--page-h);
        margin: 0;
    }
}

/* ===== Formulário de variáveis (mobile-first) ===== */
/* ===== Formulário de variáveis (mobile-first) — TEMA CLARO ===== */
body.varsForm{
  --bg: #f5f7fb;
  --card: #ffffff;
  --muted: #475569;
  --text: #0b0b0b;
  --line: rgba(11,11,11,.10);
  --accent: var(--teal);
  --danger: #ff4d4f;
  --radius: 14px;

  margin: 0;
  font-family: "HK Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 900px at 18% -10%, rgba(91,186,178,.16), transparent 60%),
    radial-gradient(900px 700px at 112% 6%, rgba(254,181,1,.12), transparent 58%),
    linear-gradient(135deg, #f5f7fb 0%, #f7fafc 55%, #fff8ea 100%);
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;

  color: var(--text);
  padding-bottom: calc(var(--bar-h) + 16px);
}

#varsForm input,
#varsForm select,
#varsForm textarea{
  scroll-margin-bottom: calc(var(--bar-h) + 16px);
}

body.varsForm *{ box-sizing: border-box; }

body.varsForm header{
  padding: 18px 16px 10px;
}

body.varsForm .title{
  font-size: 34px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 6px;
  letter-spacing: -.02em;
}

body.varsForm main{
  padding: 12px 16px 96px;
  max-width: 560px;
  margin: 0 auto;
}

body.varsForm .card{
  background: rgba(255,255,255,.30);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin: 12px 0;
  box-shadow: 0 1px 2px rgba(15,23,42,.06);
}

body.varsForm .card h2{
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

body.varsForm .grid{
  display: grid;
  gap: 10px;
}

body.varsForm .field{
  padding: 10px;
  border: 1px solid rgba(11,11,11,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.80);
  position: relative;
}

body.varsForm .field select{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 42px;
}

body.varsForm .field .arrow{
  position: absolute;
  right: 22px;
  bottom: 22px;
  pointer-events: none;
  color: rgba(11,11,11,.55);
  font-size: 14px;
}


body.varsForm label{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 650;
  font-size: 15px;
}

body.varsForm .meta{
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

body.varsForm input,
body.varsForm select{
  width: 100%;
  border: 1px solid rgba(11,11,11,.12);
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 12px;
  font-size: 15px;
  outline: none;
}

body.varsForm input::placeholder{
  color: rgba(11,11,11,.35);
}

body.varsForm input:focus,
body.varsForm select:focus{
  border-color: rgba(91,186,178,.75);
  box-shadow: 0 0 0 4px rgba(91,186,178,.18);
}

body.varsForm input[readonly]{
  opacity: .85;
  background: rgba(91, 186, 178, 0.125);
}

body.varsForm .help,
body.varsForm .note{
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

body.varsForm .bar{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  background: rgba(91, 186, 178, 0.25);
  border-top: 1px solid rgba(11,11,11,.10);
  backdrop-filter: blur(10px);
}

body.varsForm .barInner{
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

body.varsForm button {
  border: 0;
  border-radius: 14px;
  padding: 12px 12px;
  font-size: 14px;
  cursor: pointer;
}

body.varsForm .bar{
  font-family: "HK Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

body.varsForm .primary,
body.varsForm .ghost{
  display: flex;
  align-items: center;
  justify-content: center;

  height: 44px;
  padding: 0 16px;

  font-family: "HK Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.varsForm .primary{
  background: var(--teal);
  color: white;
  border-radius: 12px;
}

body.varsForm .ghost{
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(11,11,11,.12);
  border-radius: 12px;
  color: var(--teal);
  font-weight: 600;
}

body.varsForm button:hover {
  background-color: #fff;
  color: var(--amber);
  font-weight: 600;
  border: solid var(--amber) 1px;
}

body.varsForm .ghost:hover{
  background-color: #fff;
  color: var(--amber);
  font-weight: 600;
  border: solid var(--amber) 1px;
}

@media (min-width: 900px){
  body.varsForm main{ max-width: 920px; }
  body.varsForm .barInner{ max-width: 920px; }
  body.varsForm .grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.varsForm section[data-section="calc"] .grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* Chrome, Edge, Safari */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* ===== Formulário — Tema claro ===== */
body.varsForm.varsForm--light{
  --bg: rgba(91, 186, 178, 0.25);
  --card: #ffffff;
  --text: #0b0b0b;
  --muted: #475569;
  --line: rgba(11,11,11,.10);

  background: var(--bg);
}
/* =========================================================
   DASHBOARD (propostas/index.php)
   ========================================================= */
body.dashboard{
  background: rgba(91, 186, 178, 0.25);
}

body.dashboard .wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 14px 60px;
}

body.dashboard .top{
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
}

body.dashboard h1{
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

body.dashboard .sub{
  margin-top: 6px;
  color: #475569;
  font-size: 13px;
  line-height: 1.35;
}

body.dashboard .pill{
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: white;
  border: 1px solid rgba(11,11,11,.10);
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

body.dashboard .grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
  width: min(420px, 100%);
  margin-left: 0;
}

body.dashboard .card{
  display: flex;
  align-items: center;

  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
}

body.dashboard .card h2{
  margin: 0 0 10px;
  font-size: 13px;
  color: #64748b;
  font-weight: 800;
}

body.dashboard .mainCard a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--teal);
  color: white;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,.06);
  font-weight: 500;
}

body.dashboard .mainCard a:hover{
  border: solid 1px var(--amber);
  color: var(--amber);
  background: #fff;
}

body.dashboard .card a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: white;
  color: var(--teal);
  text-decoration: none;
  border: 1px solid var(--teal);
  font-weight: 500;
}

body.dashboard .card a:hover{
  border: solid 1px white;
  color: white;
  background: var(  --amber);
}

/* DASHBOARD — botões admin em âmbar */
body.dashboard .card a.adminOnly{
  background: var(--amber);
  color: #fff;
  border: solid 0px;
}

/* hover igual ao resto (inverte para branco + âmbar) */
body.dashboard .card a.adminOnly:hover{
  background: #fff;
  color: var(--teal);
  border: solid 1px var(--teal);
}

body.dashboard .table{
  margin-top: 14px;
  background: #fff;
  border: 1px solid rgba(11,11,11,.10);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,23,42,.06);
}

body.dashboard .tableScroll{
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

body.dashboard table{
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

body.dashboard th,
body.dashboard td{
  padding: 12px;
  border-bottom: 1px solid rgba(11,11,11,.08);
  text-align: left;
  font-size: 14px;
  white-space: nowrap;
}

body.dashboard th{
  background: rgba(91,186,178,.12);
  color: var(--ink);
  font-size: 12px;
  letter-spacing: .3px;
  text-transform: uppercase;
}

body.dashboard tr:last-child td{ border-bottom: 0; }

body.dashboard .actions a{
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(11,11,11,.12);
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
}

body.dashboard .actions a:hover{
  border-color: rgba(91,186,178,.55);
}

@media (max-width: 900px){
  body.dashboard .grid{ grid-template-columns: 1fr; }
  body.dashboard .wrap{ padding: 18px 12px 50px; }
  body.dashboard table{ min-width: 680px; }
}

.prem {
    display: grid;
    padding: 16px 0;
    border-bottom: 2px solid var(--amber);
    align-items: center;
}

.prem__label {
    font-weight: 600;
}

.prem__value {
    text-align: right;
    padding-right: 20px;
}

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

.table th,
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  text-align: left;
}

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

.page-actions {
  display: flex;
  gap: 10px;
}

dialog {
  border: none;
  border-radius: 16px;
  padding: 0;
  max-width: 520px;
}

.dialog-content {
  padding: 20px;
}

body.users{
  background: #f6fbfb;
  color: var(--ink);
}

body.users .wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 14px 60px;
}

body.users .topbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom: 14px;
}

body.users .muted{
  margin-top: 6px;
  color: #475569;
  font-size: 13px;
  line-height: 1.35;
}

body.users table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border:1px solid rgba(11,11,11,.10);
  border-radius:14px;
  overflow:hidden;
  box-shadow: 0 1px 2px rgba(15,23,42,.06);
}

body.users th,
body.users td{
  padding: 12px;
  border-bottom: 1px solid rgba(11,11,11,.08);
  text-align:left;
  font-size:14px;
  white-space:nowrap;
}

body.users th{
  background: rgba(91,186,178,.12);
  font-size: 12px;
  letter-spacing:.3px;
  text-transform:uppercase;
}

body.users tr:last-child td{ border-bottom:0; }

body.users .actions{
  display:flex;
  gap:10px;
  align-items:center;
}

body.users .pillBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:12px;
  font-family: "HK Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 500;
  cursor:pointer;
  border: 1px solid rgba(11,11,11,.12);
  background:#fff;
  text-decoration:none;
}

body.users .pillBtn.primary{
  background: var(--teal);
  border-color: rgba(0,0,0,.06);
  color: white;
}

body.users .pillBtn.primary:hover{
  background: var(--card);
  border-color: var(--amber);
  color: var(--amber);
}

body.users .pillBtn.ghost{
  background:#fff;
  color: var(--teal);
}

body.users .pillBtn.ghost:hover{
  background:#fff;
  color: var(--amber);
  border: solid 1px var(--amber);
}


/* =========================================================
   USERS — Funções (checkboxes)
   ========================================================= */
body.users .roleGrid{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

body.users .roleGrid--table{
  min-width: 320px;
}

body.users .rolePill{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;

  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(11,11,11,.12);
  background:#fff;

  cursor:pointer;
  user-select:none;
  font-weight:600;
  font-size: 13px;
  color: var(--ink);
}

body.users .rolePill input[type="checkbox"]{
  appearance:none;
  -webkit-appearance:none;

  width: 16px;
  height: 16px;
  border-radius: 6px;
  border: 2px solid rgba(91,186,178,.65);

  display:grid;
  place-items:center;

  margin:0;
  padding:0;
  line-height:1;
  font-size:0;
}

body.users .rolePill input[type="checkbox"]::after{
  content:"✓";
  font-family: "HK Grotesk", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  color:#fff;
  display:block;
  transform: scale(0);
  transition: transform .12s ease;
}

body.users .rolePill input[type="checkbox"]:checked{
  background: var(--teal);
  border-color: var(--teal);
}

body.users .rolePill input[type="checkbox"]:checked::after{
  transform: scale(1);
}

body.users .rolePill:hover{
  border-color: rgba(11,11,11,.18);
}

/* dialog: deixa a grid ocupar a linha inteira quando necessário */
body.users .dlg .fieldFull{
  margin-top: 10px;
}

/* =========================================================
   KITS FOTOVOLTAICOS (kits/list.php)
   ========================================================= */

body.kits .filters{
  display:grid;
  gap:10px;
  grid-template-columns: 1.4fr 1fr 1fr 0.8fr 0.7fr auto;
  align-items:end;
}

body.kits .filters .field{
  display:flex;
  flex-direction:column;
  gap:6px;
}

body.kits .filters label{
  font-size:12px;
  color:#64748b;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.3px;
}

body.kits .filters input,
body.kits .filters select{
  width:100%;
  border:1px solid rgba(11,11,11,.12);
  border-radius:12px;
  padding:10px 12px;
  font-size:14px;
  background-color:#fff;
  color: var(--ink);
  outline:none;
}

body.kits .filters input:focus,
body.kits .filters select:focus{
  border-color: rgba(91,186,178,.75);
  box-shadow: 0 0 0 4px rgba(91,186,178,.18);
}

body.kits .btnRow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

body.kits .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:12px;
  background:#fff;
  border:1px solid rgba(11,11,11,.12);
  text-decoration:none;
  color:var(--ink);
  font-weight:500;
  cursor:pointer;
}

body.kits .btn.primary{
  background: var(--teal);
  border-color: rgba(0,0,0,.06);
  color: white;
}

body.kits .btn:hover{
  border-color: rgba(91,186,178,.55);
  box-shadow: 0 0 0 4px rgba(91,186,178,.18);
}

body.kits .btn.primary:hover{
  filter: brightness(.98);
  box-shadow:none;
}

body.kits .muted{
  color:#475569;
  font-size:13px;
  line-height:1.35;
}

body.kits .nowrap{
  white-space:nowrap;
}

body.kits .pager{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  padding:12px;
}

body.kits .pager .meta{
  color:#64748b;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.3px;
}

/* =========================================================
   KITS – MODAL (dialog)
   ========================================================= */

body.kits dialog{
  border: none;
  padding: 0;
  border-radius: 18px;
  width: min(900px, calc(100vw - 28px));
  box-shadow: 0 20px 60px rgba(2,6,23,.35);
  background: #fff;
}

body.kits dialog::backdrop{
  background: rgba(2,6,23,.45);
  backdrop-filter: blur(4px);
}

body.kits dialog .hd{
  padding: 16px 18px;
  border-bottom: 1px solid rgba(11,11,11,.10);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
}

body.kits dialog .hd > div{
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

body.kits dialog .bd{
  padding: 16px 18px 8px;
  display:grid;
  gap: 12px;
}

body.kits dialog .ft{
  padding: 14px 18px;
  border-top: 1px solid rgba(11,11,11,.10);
  display:flex;
  gap: 10px;
  justify-content:flex-end;
  background: rgba(245,247,251,.65);
}

body.kits dialog .field{
  display:flex;
  flex-direction:column;
  gap: 6px;
}

body.kits dialog label{
  font-size: 12px;
  color: #64748b;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
}

body.kits dialog input,
body.kits dialog select{
  width: 100%;
  border: 1px solid rgba(11,11,11,.12);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  background-color: #fff;
  color: var(--ink);
  outline: none;
}

body.kits dialog input::placeholder{
  color: rgba(11,11,11,.35);
}

body.kits dialog input:focus,
body.kits dialog select:focus{
  border-color: rgba(91,186,178,.75);
  box-shadow: 0 0 0 4px rgba(91,186,178,.18);
}

/* Grid mais “adulto” */
body.kits dialog .grid2{
  display:grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.kits dialog .grid3{
  display:grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Campos largos (como “características”) */
body.kits dialog .bd .field:has(#k_carac){
  grid-column: 1 / -1;
}

/* Botões do modal: consistência com dashboard */
body.kits dialog .ft .btn,
body.kits dialog .hd .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(11,11,11,.12);
  background: #fff;
  color: var(--ink);
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
}

body.kits dialog .ft .btn.primary{
  background: var(--teal);
  border-color: rgba(0,0,0,.06);
  color: white;
}

body.kits dialog .ft .btn:hover,
body.kits dialog .hd .btn:hover{
  border-color: var(--amber);
  background: white;
  color: var(--amber);
}

body.kits dialog .ft .btn.primary:hover{
  border-color: var(--amber);
  background: white;
  color: var(--amber);
}

/* Botão “Fechar” sem cara de CTA */
body.kits dialog .hd .btn{
  box-shadow: none;
}

body.kits dialog .hd .btn:hover{
  box-shadow: none;
  border-color: rgba(11,11,11,.18);
}

/* Mensagem do modal */
body.kits #dlg_msg{
  color: #475569;
  font-size: 13px;
  line-height: 1.35;
  margin-top: 2px;
}

body.kits .tableSplit .fixedCols .actions a{
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(11,11,11,.12);
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
}

/* ===== Table split (scroll + colunas fixas) ===== */
body.kits .tableSplit{
  display: grid;
  grid-template-columns: 1fr 300px;
  align-items: start;
}

body.kits .tableSplit .tableScroll{
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

body.kits .tableSplit .fixedCols{
  border-left: 1px solid rgba(11,11,11,.10);
  background: #fff;
  overflow: visible;
}

body.kits .tableSplit .fixedCols table{
  width: 100%;
  min-width: 0;        /* essencial em grid */
  table-layout: fixed; /* respeita as larguras abaixo */
}

body.kits .tableSplit .fixedCols th,
body.kits .tableSplit .fixedCols td{
  min-width: 0;
  white-space: normal; /* NÃO usar nowrap na tabela fixa */
}

/* Coluna 1 (Status) */
body.kits .tableSplit .fixedCols th:nth-child(1),
body.kits .tableSplit .fixedCols td:nth-child(1){
  width: 40%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* Coluna 2 (Ações) */
body.kits .tableSplit .fixedCols th:nth-child(2),
body.kits .tableSplit .fixedCols td:nth-child(2){
  width: 60%;
  text-align: center;
}

/* Botões/links das ações: não quebrar */
body.kits .tableSplit .fixedCols td:nth-child(2) .actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

body.kits .tableSplit .fixedCols td:nth-child(2) .actions a{
  white-space: nowrap;
}


/* Mobile */
@media (max-width: 860px){
  body.kits dialog{
    width: calc(100vw - 18px);
  }
  body.kits dialog .grid3{
    grid-template-columns: 1fr;
  }
  body.kits dialog .grid2{
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   KITS – MODAL (dialog)
   ========================================================= */

body.propostaNova dialog{
  border: none;
  padding: 0;
  border-radius: 18px;
  width: min(900px, calc(100vw - 28px));
  box-shadow: 0 20px 60px rgba(2,6,23,.35);
  background: #fff;
}

body.propostaNova dialog::backdrop{
  background: rgba(2,6,23,.45);
  backdrop-filter: blur(4px);
}

body.propostaNova dialog .hd{
  padding: 16px 18px;
  border-bottom: 1px solid rgba(11,11,11,.10);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
}

body.propostaNova dialog .hd > div{
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

body.propostaNova dialog .bd{
  padding: 16px 18px 8px;
  display:grid;
  gap: 12px;
}

body.propostaNova dialog .ft{
  padding: 14px 18px;
  border-top: 1px solid rgba(11,11,11,.10);
  display:flex;
  gap: 10px;
  justify-content:flex-end;
  background: rgba(245,247,251,.65);
}

body.propostaNova dialog .field{
  display:flex;
  flex-direction:column;
  gap: 6px;
}

body.propostaNova dialog label{
  font-size: 12px;
  color: #64748b;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
}

body.propostaNova dialog input,
body.propostaNova dialog select{
  width: 100%;
  border: 1px solid rgba(11,11,11,.12);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  background-color: #fff;
  color: var(--ink);
  outline: none;
}

body.propostaNova dialog input::placeholder{
  color: rgba(11,11,11,.35);
}

body.propostaNova dialog input:focus,
body.propostaNova dialog select:focus{
  border-color: rgba(91,186,178,.75);
  box-shadow: 0 0 0 4px rgba(91,186,178,.18);
}

/* Grid mais “adulto” */
body.propostaNova dialog .grid2{
  display:grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.propostaNova dialog .grid3{
  display:grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Campos largos (como “características”) */
body.propostaNova dialog .bd .field:has(#k_carac){
  grid-column: 1 / -1;
}

/* Botões do modal: consistência com dashboard */
body.propostaNova dialog .ft .btn,
body.propostaNova dialog .hd .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(11,11,11,.12);
  background: #fff;
  color: var(--ink);
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
}

body.propostaNova dialog .ft .btn.primary{
  background: var(--teal);
  border-color: rgba(0,0,0,.06);
  color: white;
}

body.propostaNova dialog .ft .btn:hover,
body.propostaNova dialog .hd .btn:hover{
  border-color: var(--amber);
  background: white;
  color: var(--amber);
}

body.propostaNova dialog .ft .btn.primary:hover{
  border-color: var(--amber);
  background: white;
  color: var(--amber);
}

/* Botão “Fechar” sem cara de CTA */
body.propostaNova dialog .hd .btn{
  box-shadow: none;
}

body.propostaNova dialog .hd .btn:hover{
  box-shadow: none;
  border-color: rgba(11,11,11,.18);
}

/* Mensagem do modal */
body.propostaNova #dlg_msg{
  color: #475569;
  font-size: 13px;
  line-height: 1.35;
  margin-top: 2px;
}

body.propostaNova .tableSplit .fixedCols .actions a{
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(11,11,11,.12);
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
}

/* ===== Table split (scroll + colunas fixas) ===== */
body.propostaNova .tableSplit{
  display: grid;
  grid-template-columns: 1fr 300px;
  align-items: start;
}

body.propostaNova .tableSplit .tableScroll{
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

body.propostaNova .tableSplit .fixedCols{
  border-left: 1px solid rgba(11,11,11,.10);
  background: #fff;
  overflow: visible;
}

body.propostaNova .tableSplit .fixedCols table{
  width: 100%;
  min-width: 0;        /* essencial em grid */
  table-layout: fixed; /* respeita as larguras abaixo */
}

body.propostaNova .tableSplit .fixedCols th,
body.propostaNova .tableSplit .fixedCols td{
  min-width: 0;
  white-space: normal; /* NÃO usar nowrap na tabela fixa */
}

/* Coluna 1 (Status) */
body.propostaNova .tableSplit .fixedCols th:nth-child(1),
body.propostaNova .tableSplit .fixedCols td:nth-child(1){
  width: 40%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* Coluna 2 (Ações) */
body.propostaNova .tableSplit .fixedCols th:nth-child(2),
body.propostaNova .tableSplit .fixedCols td:nth-child(2){
  width: 60%;
  text-align: center;
}

/* Botões/links das ações: não quebrar */
body.propostaNova .tableSplit .fixedCols td:nth-child(2) .actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

body.propostaNova .tableSplit .fixedCols td:nth-child(2) .actions a{
  white-space: nowrap;
}


/* Mobile */
@media (max-width: 860px){
  body.propostaNova dialog{
    width: calc(100vw - 18px);
  }
  body.propostaNova dialog .grid3{
    grid-template-columns: 1fr;
  }
  body.propostaNova dialog .grid2{
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   KITS — MOBILE FRIENDLY
   ========================================================= */
@media (max-width: 860px){

  /* header/top pode quebrar melhor */
  body.kits .top{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  /* filtros em 1 coluna */
  body.kits .filters{
    grid-template-columns: 1fr;
  }

  /* botões dos filtros ocupando melhor */
  body.kits .btnRow{
    justify-content: flex-start;
  }

  body.kits .btnRow .btn{
    flex: 1 1 auto;
    min-width: 120px;
  }

  /* split vira empilhado */
  body.kits .tableSplit{
    grid-template-columns: 1fr;
  }

  body.kits .tableSplit .fixedCols{
    border-left: 0;
    border-top: 1px solid rgba(11,11,11,.10);
  }

  /* deixa a tabela principal com scroll horizontal confortável */
  body.kits .tableSplit .tableScroll{
    overflow-x: auto;
  }

  /* tabela fixa ocupa 100% */
  body.kits .tableSplit .fixedCols table{
    width: 100%;
  }

  /* Status/Ações centralizados e clicáveis */
  body.kits .tableSplit .fixedCols th:nth-child(1),
  body.kits .tableSplit .fixedCols td:nth-child(1),
  body.kits .tableSplit .fixedCols th:nth-child(2),
  body.kits .tableSplit .fixedCols td:nth-child(2){
    text-align: center;
  }

  body.kits .tableSplit .fixedCols td:nth-child(2) .actions{
    justify-content: center;
    flex-wrap: wrap;
  }

  body.kits .tableSplit .fixedCols td:nth-child(2) .actions a{
    padding: 10px 12px;
  }

  /* pager quebrando em 2 linhas se precisar */
  body.kits .pager{
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
}

/* =========================================================
   BASE PARA PÁGINAS "KITS" (reutiliza no /clients/list.php)
   ========================================================= */
body.kits{
  background: rgba(91, 186, 178, 0.25);
}

body.kits .wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 14px 60px;
}

body.kits .top{
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

body.kits h1{
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

body.kits .muted{
  margin-top: 6px;
  color: #475569;
  font-size: 13px;
  line-height: 1.35;
}

/* tabela “card” igual dashboard/users */
body.kits .table{
  margin-top: 14px;
  background: #fff;
  border: 1px solid rgba(11,11,11,.10);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,23,42,.06);
}

body.kits .tableScroll{
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

body.kits table{
  width: 100%;
  border-collapse: collapse;
}

body.kits th,
body.kits td{
  padding: 12px;
  border-bottom: 1px solid rgba(11,11,11,.08);
  text-align: left;
  font-size: 14px;
  white-space: nowrap;
}

body.kits th{
  background: var(--teal);
  color: white;
  font-size: 12px;
  letter-spacing: .3px;
  text-transform: uppercase;
}

body.kits tr:last-child td{ border-bottom: 0; }

body.kits .actions a{
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(11,11,11,.12);
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
}

/* =========================================================
   PROPOSTAS (propostas/propostas_list.php)
   ========================================================= */

body.propostas{
  background: rgba(91, 186, 178, 0.25);
  color: var(--ink);
}

body.propostas .wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 14px 60px;
}

body.propostas .top{
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

body.propostas h1{
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

body.propostas .sub{
  margin-top: 6px;
  color: #475569;
  font-size: 13px;
  line-height: 1.35;
}

/* Botões do topo */
body.propostas .btnRow{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

body.propostas .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:12px;
  background:#fff;
  border:1px solid rgba(11,11,11,.12);
  text-decoration:none;
  color:var(--ink);
  font-weight:500;
  cursor:pointer;
  font-family: "HK Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

body.propostas .btn.primary{
  background: var(--teal);
  border-color: rgba(0,0,0,.06);
  color: white;
}

body.propostas .btn:hover{
  border-color: var(--amber);
  background: #fff;
  color: var(--amber);
}

body.propostas .btn.primary:hover{
  border-color: var(--amber);
  background: #fff;
  color: var(--amber);
}

/* Pills */
body.propostas .pill{
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(11,11,11,.10);
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

/* Card do filtro */
body.propostas .card{
  background: #fff;
  border: 1px solid rgba(11,11,11,.10);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(15,23,42,.06);
}

body.propostas .filtersCard{ margin-top: 14px; }

body.propostas .filtersForm{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:end;
}

body.propostas .filtersForm .field{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width: 180px;
}

body.propostas .filtersForm .field.grow{
  flex: 1;
  min-width: 220px;
}

body.propostas .filtersForm label{
  font-size:12px;
  color:#64748b;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.3px;
}

body.propostas .filtersForm input,
body.propostas .filtersForm select{
  width:100%;
  border:1px solid rgba(11,11,11,.12);
  border-radius:12px;
  padding:10px 12px;
  font-size:14px;
  background:#fff;
  color: var(--ink);
  outline:none;
}

body.propostas .filtersForm input:focus,
body.propostas .filtersForm select:focus{
  border-color: rgba(91,186,178,.75);
  box-shadow: 0 0 0 4px rgba(91,186,178,.18);
}

/* Tabela */
body.propostas .table{
  margin-top: 14px;
  background: #fff;
  border: 1px solid rgba(11,11,11,.10);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15,23,42,.06);
}

body.propostas .tableScroll{
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

body.propostas table{
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

body.propostas th,
body.propostas td{
  padding: 12px;
  border-bottom: 1px solid rgba(11,11,11,.08);
  text-align: left;
  font-size: 14px;
  white-space: nowrap;
}

body.propostas th{
  background: var(--teal);
  font-size: 12px;
  letter-spacing: .3px;
  text-transform: uppercase;
}

body.propostas tr:last-child td{ border-bottom: 0; }

/* Melhorar “links roxos” (cliente/arquivo) */
body.propostas a{
  color: var(--teal);
  text-decoration: none;
}

body.propostas a:hover{
  color: var(--amber);
  text-decoration: underline;
}

/* Coluna arquivo mais “arrumada” */
body.propostas td:nth-child(4){
  font-variant-numeric: tabular-nums;
  max-width: 520px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Ações (layout alinhado ao Customers) */
body.propostas .actionsCell{ white-space: nowrap; }
body.propostas .iconBtn{
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(11,11,11,.12);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, transform .06s ease;
  text-decoration: none;
}
body.propostas .iconBtn + .iconBtn{ margin-left: 8px; }
body.propostas .iconBtn svg{ width: 18px; height: 18px; fill: currentColor; }
body.propostas .iconBtn:hover{ border-color: var(--amber); color: var(--amber); }
body.propostas .iconBtn:active{ transform: translateY(1px); }
body.propostas .iconBtn.copied{ border-color: rgba(16,185,129,.55); }
body.propostas .iconBtn.copyFail{ border-color: rgba(239,68,68,.55); }

/* Último acesso < 48h (destaca a linha como alerta) */
body.propostas tr.recentAccessRow td{
  font-weight: 700;
  color: var(--teal);
}
body.propostas tr.recentAccessRow td.actionsCell *,
body.propostas tr.recentAccessRow td.actionsCell{
  font-weight: inherit;
  color: inherit;
}


/* Mobile */
@media (max-width: 900px){
  body.propostas .wrap{ padding: 18px 12px 50px; }
  body.propostas table{ min-width: 720px; }
  body.propostas .btnRow{ justify-content: flex-start; }
}

/* =========================================================
   Select (dropdown) — padronizar com o visual dos inputs
   ========================================================= */

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  height: 40px;
  padding: 0 40px 0 12px; /* espaço da setinha */
  border-radius: 12px;
  border: 1px solid rgba(11, 11, 11, 0.12);
  background-color: #fff;
  color: var(--ink);

  font-family: "HK Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;

  outline: none;
  line-height: 1;

  /* setinha padrão (SVG inline) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
}

/* Remove a setinha padrão do IE/Edge antigo (não atrapalha nos modernos) */
select::-ms-expand { display: none; }

/* Hover e focus para ficar “vivo” como os outros campos */
select:hover {
  border-color: rgba(11, 11, 11, 0.18);
}

select:focus {
  border-color: rgba(254, 181, 1, 0.9); /* var(--amber) se você tiver */
  box-shadow: 0 0 0 3px rgba(254, 181, 1, 0.18);
}

/* Estado desabilitado */
select:disabled {
  background-color: rgba(0,0,0,0.03);
  color: rgba(0,0,0,0.45);
  cursor: not-allowed;
}

/* Se você usa selects “compactos” em algum lugar */
select.small {
  height: 34px;
  padding-left: 10px;
  padding-right: 36px;
  border-radius: 10px;
  font-size: 13px;
}

select{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;

  padding-right: 40px; /* espaço pra seta */
}

select:focus{
  border-color: rgba(254, 181, 1, 0.9);
  box-shadow: 0 0 0 3px rgba(254, 181, 1, 0.18);
}

select::-ms-expand{
  display: none;
}

body.kits .filters select,
body.kits dialog select{
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  padding-right: 40px;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
}

.btn.secondary {
    background: transparent;
    border: 1px solid #ccc;
    color: #555;
}

.btn.secondary:hover {
    background: #f2f2f2;
}

/* =========================================================
   NOVA PROPOSTA (propostas/nova_proposta.php)
   ========================================================= */

body.varsForm.propostaNova{
  --topbar-h: 58px;
}

/* Header fixo minimalista (Voltar + título) */
body.varsForm.propostaNova .topHeader{
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(91, 186, 178, 0.55);
  border-bottom: 1px solid rgba(11,11,11,.10);
  backdrop-filter: blur(10px);
}

/* =========================================================
   HEADER PADRÃO (igual ao Regras de Negócio)
   Aplica em: dashboard, users, kits, propostas
   ========================================================= */

body.dashboard .topHeader,
body.users .topHeader,
body.kits .topHeader,
body.propostas .topHeader{
  padding: 0;
  background: rgba(91, 186, 178, 0.25);
  border-bottom: 1px solid rgba(11,11,11,.10);
  position: sticky;
  top: 0;
  z-index: 40;
}

body.dashboard .topHeaderInner,
body.users .topHeaderInner,
body.kits .topHeaderInner,
body.propostas .topHeaderInner{
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

body.dashboard .topBack,
body.users .topBack,
body.kits .topBack,
body.propostas .topBack{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(11,11,11,.12);
  background: white;
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

body.dashboard .topBack:hover,
body.users .topBack:hover,
body.kits .topBack:hover,
body.propostas .topBack:hover{
  border-color: var(--amber);
  color: var(--amber);
}

body.dashboard .topTitle,
body.users .topTitle,
body.kits .topTitle,
body.propostas .topTitle{
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}

body.dashboard .topActions,
body.users .topActions,
body.kits .topActions,
body.propostas .topActions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 520px){
  body.dashboard .topHeaderInner,
  body.users .topHeaderInner,
  body.kits .topHeaderInner,
  body.propostas .topHeaderInner{
    grid-template-columns: auto 1fr;
  }
  body.dashboard .topActions,
  body.users .topActions,
  body.kits .topActions,
  body.propostas .topActions{
    display: none;
  }
  body.dashboard .topTitle,
  body.users .topTitle,
  body.kits .topTitle,
  body.propostas .topTitle{
    font-size: 18px;
    text-align: left;
  }
}

body.varsForm.propostaNova .topHeaderInner{
  max-width: 560px;
  margin: 0 auto;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

@media (min-width: 900px){
  body.varsForm.propostaNova .topHeaderInner{
    max-width: 920px;
  }
}

body.varsForm.propostaNova .topBack{
  height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  font-weight: 600;
}

body.varsForm.propostaNova .topTitle{
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
}

body.varsForm.propostaNova .topSpacer{
  width: 140px; /* aproxima o centro visual do título */
}

body.varsForm.propostaNova main{
  padding-top: calc(12px + var(--topbar-h));
}

body.varsForm.propostaNova .actionsRow{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

body.varsForm.propostaNova .actionsRow .primary,
body.varsForm.propostaNova .actionsRow .ghost{
  flex: 1 1 180px;
}

body.varsForm.propostaNova .grid-client{
  display: grid;
  gap: 10px;
}

/* Desktop */
@media (min-width: 900px){
  body.varsForm.propostaNova .grid-client{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Nome do cliente ocupa a linha inteira */
  body.varsForm.propostaNova .grid-client .field-full{
    grid-column: 1 / -1;
  }
}
body.varsForm .grid .field-full{
  grid-column: 1 / -1;
}

/* Modal de pesquisa de cliente: lista com rolagem */
body.varsForm.propostaNova #dlgPesquisarCliente .tableScroll{
  max-height: 260px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 900px){
  body.varsForm.propostaNova #dlgPesquisarCliente .tableScroll{
    max-height: 360px;
  }
}

/* =========================================================
   NOVA PROPOSTA — checks de seleção de inversor
   ========================================================= */
body.varsForm.propostaNova .checkGrid{
  display: grid;
  gap: 10px;
}

@media (min-width: 900px){
  body.varsForm.propostaNova .checkGrid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

body.varsForm.propostaNova .checkPill{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(11,11,11,.12);
  background: #fff;

  cursor: pointer;
  user-select: none;
  font-weight: 600;
}

body.varsForm.propostaNova .checkPill input[type="checkbox"]{
  appearance: none;
  -webkit-appearance: none;

  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 2px solid rgba(91,186,178,.65);

  display: grid;
  place-items: center;

  margin: 0;
  padding: 0;
  line-height: 1;
  font-size: 0; /* <- CRÍTICO */
}

body.varsForm.propostaNova .checkPill input[type="checkbox"]::after{
  content: "✓";
  font-family: "HK Grotesk", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;

  color: #fff;

  display: block;
  transform: scale(0);
  transition: transform .12s ease;
}

body.varsForm.propostaNova .checkPill input[type="checkbox"]:checked{
  background: var(--teal);
  border-color: var(--teal);
}

body.varsForm.propostaNova .checkPill input[type="checkbox"]:checked::after{
  transform: scale(1);
}

body.varsForm.propostaNova .checkPill:hover{
  border-color: rgba(11,11,11,.18);
}

/* Override: centralizar o "✓" dentro do quadradinho do checkbox */
body.varsForm.propostaNova .checkPill input[type="checkbox"]{
  display: grid !important;
  place-items: center !important;
}

body.varsForm.propostaNova .checkPill input[type="checkbox"]::after{
  display: block !important;
  line-height: 1 !important;
  transform: translateY(-1px) scale(0) !important;
}

body.varsForm.propostaNova .checkPill input[type="checkbox"]:checked::after{
  transform: translateY(-1px) scale(1) !important;
}

.input-suffix{
  position: relative;
  display: inline-block;
  width: 100%;
}

.input-suffix input{
  width: 100%;
  padding-right: 52px; /* espaço pro sufixo */
  box-sizing: border-box;
}

.input-suffix .suffix{
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: .75;
  pointer-events: none;
  white-space: nowrap;
}

body.varsForm .input-suffix{
  position: relative;
  display: block;
  width: 100%;
}

body.varsForm .input-suffix input{
  width: 100%;
  padding-right: 68px;
}

body.varsForm .input-suffix .suffix{
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  opacity: .7;
  pointer-events: none;
}

body.varsForm.propostaNova .solTable td{
  height: 48px;
  vertical-align: middle;
}

body.varsForm.propostaNova .solTable input,
body.varsForm.propostaNova .solTable select{
  height: 40px;
}
body.varsForm.propostaNova .miniTable{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

body.varsForm.propostaNova .miniTable tr{
  height: 52px;
}

body.varsForm.propostaNova .miniTable td{
  vertical-align: middle;
  padding: 8px 10px;
}

body.varsForm.propostaNova .miniTable td:first-child{
  width: 35%;
}

body.varsForm.propostaNova .miniTable td:last-child{
  width: 65%;
}

body.varsForm.propostaNova .miniTable input,
body.varsForm.propostaNova .miniTable select{
  height: 40px;
}

body.varsForm.propostaNova .kitActions{
  display: flex;
  justify-content: flex-end;
}

body.varsForm.propostaNova .btnAddKit{
  border: 1px solid rgba(11,11,11,.12);
  background: #fff;
  color: var(--teal);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
  cursor: pointer;
}

body.varsForm.propostaNova .btnAddKit:hover{
  border-color: var(--amber);
  color: var(--amber);
}

body.varsForm.propostaNova .kitInline{
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
}

body.varsForm.propostaNova .btnRefreshKits{
  border: 1px solid rgba(11,11,11,.12);
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 500;
  cursor: pointer;
}

body.varsForm.propostaNova .btnRefreshKits:hover{
  border-color: var(--amber);
  color: var(--amber);
}


/* ===== NOVA PROPOSTA: Detalhes do Kit selecionado ===== */
body.varsForm.propostaNova .kitDetailsWrap{
  margin-top:10px;
}

body.varsForm.propostaNova .kitDetailsTable{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.08);
  border-radius:12px;
  background: rgba(255,255,255,.9);
}

body.varsForm.propostaNova .kitDetailsTable td{
  padding:10px 12px;
  vertical-align:top;
  border-bottom:1px solid rgba(0,0,0,.06);
  font-size:14px;
}

body.varsForm.propostaNova .kitDetailsTable tr:last-child td{
  border-bottom:none;
}

body.varsForm.propostaNova .kitDetailsTable .kdl{
  width:35%;
  color: rgba(0,0,0,.70);
  font-weight:600;
}

body.varsForm.propostaNova .kitDetailsTable .kdv{
  width:65%;
  color: rgba(0,0,0,.88);
}

/* Valor do serviço (abaixo dos detalhes do kit) */
body.varsForm.propostaNova td.serviceValueWrap{
  padding:10px 12px;
  font-weight:600;
  color: rgba(0,0,0,.70);
  font-size:14px;
}

body.varsForm.propostaNova td.serviceValue{
  padding:10px 12px;
}

body.varsForm.propostaNova .serviceLabel{
  white-space: nowrap;
}

body.varsForm.propostaNova .input-prefix{
  display:flex;
  align-items:center;
  border:1px solid rgba(0,0,0,.12);
  border-radius:12px;
  background: rgba(255,255,255,.95);
  overflow:hidden;
}

body.varsForm.propostaNova .input-prefix .prefix{
  padding:10px 12px;
  color: rgba(0,0,0,.65);
  border-right:1px solid rgba(0,0,0,.10);
  font-size:14px;
  white-space:nowrap;
}

body.varsForm.propostaNova .input-prefix input{
  border:none;
  outline:none;
  width:100%;
  padding:10px 12px;
  font-size:14px;
  background:transparent;
}

/* =========================================================
   MAVO — FUNDO GLOBAL (fixo) + "marca d’água" leve
   Aplica em: dashboard, users, kits, propostas e formulários varsForm
   ========================================================= */

body.varsForm,
body.dashboard,
body.users,
body.kits,
body.propostas{
  min-height: 100vh;
  position: relative;
}

/* Marca d’água abstrata (sem imagem): um “selo” geométrico suave */
/* =========================================================
   MAVO — WATERMARK (logo) fixo
   ========================================================= */
body.varsForm::before,
body.dashboard::before,
body.users::before,
body.kits::before,
body.propostas::before,
body.contracts::before{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;

  /* WATERMARK */
  background-image: url("/images/logoCores.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(72vw, 760px);
  opacity: .2;

  /* Deixa mais “marca d’água” e menos “imagem” */
  filter: saturate(.9) contrast(1.05);
}


/* Garante que o conteúdo fica acima do fundo */
body.varsForm header,
body.varsForm main,
body.varsForm .bar,
body.varsForm .topHeader,
body.dashboard .wrap,
body.users .wrap,
body.kits .wrap,
body.propostas .wrap,
body.contracts .wrap{
  position: relative;
  z-index: 1;
}
/* =========================================================
   NOVA PROPOSTA — refinamentos mobile
   ========================================================= */
@media (max-width: 520px){
  body.varsForm.propostaNova .topHeaderInner{
    grid-template-columns: auto 1fr;
  }
  body.varsForm.propostaNova .topSpacer{
    display: none;
  }
  body.varsForm.propostaNova .topTitle{
    font-size: 20px;
  }

  /* Kits correspondentes: empilha no celular */
  body.varsForm.propostaNova .kitInline{
    grid-template-columns: 1fr;
  }
  body.varsForm.propostaNova .kitActions{
    justify-content: stretch;
  }
  body.varsForm.propostaNova .btnAddKit,
  body.varsForm.propostaNova .btnRefreshKits{
    width: 100%;
  }
}

@media (max-width: 820px){
  body{ background:#111; }

  .deck{
    padding: 12px 0;
    gap: 14px;
    align-items: center;
  }

  /* a escala será aplicada por JS */
  .page{
    transform-origin: top center;
    will-change: transform;
  }
}


/* =========================================================
   CLIENTES — MODAL DE VISUALIZAÇÃO (customers_list.php)
   ========================================================= */
body.kits .linkBtn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(11,11,11,.12);
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
}
body.kits .linkBtn:hover{
  border-color: var(--amber);
  color: var(--amber);
}

body.kits dialog .customerViewTop{
  display:flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
body.kits dialog .customerName{
  font-size: 18px;
  font-weight: 850;
  color: var(--ink);
}
body.kits dialog .customerSub{
  margin-top: 4px;
  font-size: 13px;
  color: #475569;
  line-height: 1.35;
}
body.kits dialog .customerMetaRow{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items:center;
}
body.kits dialog .pill{
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(11,11,11,.10);
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

body.kits dialog .customerSections{
  display:grid;
  gap: 12px;
}
body.kits dialog .customerSection{
  border: 1px solid rgba(11,11,11,.10);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,.92);
}
body.kits dialog .sectionHd{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
body.kits dialog .sectionHd h3{
  margin: 0;
  font-size: 13px;
  color: #64748b;
  font-weight: 900;
  letter-spacing: .3px;
  text-transform: uppercase;
}
body.kits dialog .sectionActions{
  display:flex;
  gap: 10px;
  align-items:center;
}
body.kits dialog .sectionActions .btn{
  padding: 8px 10px;
  border-radius: 12px;
}

body.kits dialog .kv{
  display:grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 12px;
  font-size: 14px;
}
body.kits dialog .kv .k{
  color: #64748b;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .3px;
  font-size: 12px;
}
body.kits dialog .kv .v{
  color: var(--ink);
}

body.kits dialog .crmGrid{
  display:grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
body.kits dialog .crmCard{
  border: 1px solid rgba(11,11,11,.10);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
}
body.kits dialog .crmK{
  font-size: 12px;
  color: #64748b;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .3px;
}
body.kits dialog .crmV{
  margin-top: 6px;
  font-size: 16px;
  font-weight: 850;
  color: var(--ink);
}

body.kits dialog .actionsLink{
  display:inline-flex;
  padding: 8px 10px;
  border-radius: 12px;
  background:#fff;
  border:1px solid rgba(11,11,11,.12);
  text-decoration:none;
  color: var(--ink);
  font-weight: 800;
}
body.kits dialog .actionsLink:hover{
  border-color: var(--amber);
  color: var(--amber);
}

@media (max-width: 860px){
  body.kits dialog .kv{
    grid-template-columns: 1fr;
  }
  body.kits dialog .crmGrid{
    grid-template-columns: 1fr 1fr;
  }
}

/* CLIENTE — modal maior no desktop */
body.kits #dlgCustomer{
  width: min(1600px, 90vw);
  max-width: 92vw; /* mata o max-width:520px do dialog genérico */
}

/* Mobile mantém comportamento atual */
@media (max-width: 860px){
  body.kits #dlgCustomer{
    width: calc(100vw - 18px);
    max-width: calc(100vw - 18px);
  }
}


/* =========================================================
   PROPOSTAS — MODAL DE VISUALIZAÇÃO DO CLIENTE (propostas_list.php)
   Mantém o mesmo layout do modal usado em customers_list.
   ========================================================= */

/* Escopo: apenas o dialog #dlgCustomer dentro da página de propostas */
body.propostas #dlgCustomer{
  border: none;
  padding: 0;
  border-radius: 18px;
  width: min(1600px, 90vw);
  max-width: 92vw;
  box-shadow: 0 20px 60px rgba(2,6,23,.35);
  background: #fff;
}

body.propostas #dlgCustomer::backdrop{
  background: rgba(2,6,23,.45);
  backdrop-filter: blur(4px);
}

body.propostas #dlgCustomer .hd{
  padding: 16px 18px;
  border-bottom: 1px solid rgba(11,11,11,.10);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
}
body.propostas #dlgCustomer .hd > div{
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

body.propostas #dlgCustomer .bd{
  padding: 16px 18px 8px;
  display:grid;
  gap: 12px;
}

body.propostas #dlgCustomer .ft{
  padding: 14px 18px;
  border-top: 1px solid rgba(11,11,11,.10);
  display:flex;
  gap: 10px;
  justify-content:flex-end;
  background: rgba(245,247,251,.65);
}

/* Botões dentro do modal (mesmo padrão dos outros módulos) */
body.propostas #dlgCustomer .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(11,11,11,.12);
  background: #fff;
  color: var(--ink);
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  font-family: "HK Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
body.propostas #dlgCustomer .btn:hover{
  border-color: var(--amber);
  background: white;
  color: var(--amber);
}

/* Topo e seções */
body.propostas #dlgCustomer .customerViewTop{
  display:flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
body.propostas #dlgCustomer .customerName{
  font-size: 18px;
  font-weight: 850;
  color: var(--ink);
}
body.propostas #dlgCustomer .customerSub{
  margin-top: 4px;
  font-size: 13px;
  color: #475569;
  line-height: 1.35;
}
body.propostas #dlgCustomer .customerMetaRow{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items:center;
}
body.propostas #dlgCustomer .pill{
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(11,11,11,.10);
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

body.propostas #dlgCustomer .customerSections{
  display:grid;
  gap: 12px;
}
body.propostas #dlgCustomer .customerSection{
  border: 1px solid rgba(11,11,11,.10);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255,255,255,.92);
}
body.propostas #dlgCustomer .sectionHd{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
body.propostas #dlgCustomer .sectionHd h3{
  margin: 0;
  font-size: 13px;
  color: #64748b;
  font-weight: 900;
  letter-spacing: .3px;
  text-transform: uppercase;
}
body.propostas #dlgCustomer .sectionActions{
  display:flex;
  gap: 10px;
  align-items:center;
}
body.propostas #dlgCustomer .sectionActions .btn{
  padding: 8px 10px;
  border-radius: 12px;
}

body.propostas #dlgCustomer .kv{
  display:grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 12px;
  font-size: 14px;
}
body.propostas #dlgCustomer .kv .k{
  color: #64748b;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .3px;
  font-size: 12px;
}
body.propostas #dlgCustomer .kv .v{
  color: var(--ink);
}

body.propostas #dlgCustomer .crmGrid{
  display:grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
body.propostas #dlgCustomer .crmCard{
  border: 1px solid rgba(11,11,11,.10);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
}
body.propostas #dlgCustomer .crmK{
  font-size: 12px;
  color: #64748b;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .3px;
}
body.propostas #dlgCustomer .crmV{
  margin-top: 6px;
  font-size: 16px;
  font-weight: 850;
  color: var(--ink);
}

@media (max-width: 860px){
  body.propostas #dlgCustomer{
    width: calc(100vw - 18px);
    max-width: calc(100vw - 18px);
  }
  body.propostas #dlgCustomer .kv{
    grid-template-columns: 1fr;
  }
  body.propostas #dlgCustomer .crmGrid{
    grid-template-columns: 1fr 1fr;
  }
}


/* =========================================================
   CLIENTES — LISTAGEM (customers_list.php) — styles movidos do inline
   ========================================================= */
body.customers .actionsCell{ white-space:nowrap; }
    body.customers .iconBtn{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      width:28px;
      height:28px;
      padding:0;
      border:1px solid rgba(0,0,0,.08);
      background:#fff;
      border-radius:8px;
      cursor:pointer;
      margin-left:6px;
    }
    body.customers .iconBtn svg{ width:16px; height:16px; fill:currentColor; opacity:.85; }
    body.customers .iconBtn:hover{ border-color: rgba(0,0,0,.18); }
    body.customers .iconBtn:active{ transform: translateY(1px); }
  
    body.customers td.statusCell{ text-align:center; white-space:nowrap; }

body.customers .statusBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  cursor:pointer;
  font:inherit;
  font-weight:400;
  line-height:1;
  box-shadow:none;
  outline:none;
  -webkit-appearance:none;
  appearance:none;
}
body.customers .statusBtn:hover{ filter: brightness(0.99); }
body.customers .statusBtn:active{ transform: translateY(1px); }
body.customers .statusBtn:focus{ outline:none; }
body.customers .statusBtn:focus-visible{
  outline:none;
  box-shadow: 0 0 0 4px rgba(91,186,178,.18);
}

/* Cores por status — apenas no botão da coluna Status */
body.customers tr.st-lead .statusBtn{ background:#7c3aed; color:#fff; border-color:transparent; }
body.customers tr.st-cliente-interativo .statusBtn{ background:#0ea5e9; color:#fff; border-color:transparent; }
body.customers tr.st-proposta-enviada .statusBtn{ background:#10b981; color:#fff; border-color:transparent; }
body.customers tr.st-negociacao-ativa .statusBtn{ background:#f59e0b; color:#fff; border-color:transparent; }
body.customers tr.st-reativar .statusBtn{ background:#fb7185; color:#fff; border-color:transparent; }
body.customers tr.st-cliente .statusBtn{ background:#22c55e; color:#fff; border-color:transparent; }
body.customers tr.st-perdido .statusBtn{ background:#ef4444; color:#fff; border-color:transparent; }
body.customers tr.st-desqualificado .statusBtn{ background:#64748b; color:#fff; border-color:transparent; }
body.customers tr.st-projeto-futuro .statusBtn{ background:#a3a3a3; color:#fff; border-color:transparent; }

body.customers .crmGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:10px;}
    body.customers .crmCard{border:1px solid rgba(0,0,0,.08);background:#fff;border-radius:12px;padding:10px 12px;}
    body.customers .crmK{font-size:12px;letter-spacing:.02em;color:#667085;text-transform:uppercase;margin-bottom:4px;}
    body.customers .crmV{font-size:16px;font-weight:600;color:#101828;}
    @media (max-width: 780px){ .crmGrid{grid-template-columns:1fr;} }
/* Propostas (linhas empilhadas por alternativa) */
    body.customers .cellLines{ display:flex; flex-direction:column; gap:4px; }
    body.customers .cellLines .line{ line-height:1.15; }
    body.customers .cellLines .mutedLine{ color: rgba(0,0,0,.55); font-size:12px; line-height:1.15; }
    body.customers .ptypeTag{ display:inline-flex; align-items:center; margin-left:8px; padding:2px 8px; font-size:12px; border-radius:999px; border:1px solid rgba(0,0,0,.12); background: rgba(0,0,0,.03); color: rgba(0,0,0,.75); }
    body.customers .eyeBtn{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      width:30px;
      height:30px;
      border-radius:10px;
      border:1px solid rgba(0,0,0,.10);
      background:#fff;
      cursor:pointer;
    }
    body.customers .eyeBtn svg{ width:16px; height:16px; fill: currentColor; opacity:.85; }
    body.customers .eyeBtn:hover{ border-color: rgba(0,0,0,.18); }

    /* Notas do cliente */
    body.customers .notesWrap{ margin-top:10px; }
    body.customers .notesTop{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
    body.customers .notesList{ display:flex; flex-direction:column; gap:10px; margin-top:10px; }
    body.customers .noteItem{ border:1px solid rgba(0,0,0,.08); background:#fff; border-radius:12px; padding:10px 12px; }
    body.customers .noteHdr{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; }
    body.customers .noteDt{ font-size:12px; color:#667085; }
    body.customers .noteBody{ margin-top:6px; white-space:pre-wrap; color:#101828; }
    body.customers .noteEmpty{ color: rgba(0,0,0,.55); font-size:13px; margin-top:10px; }

    body.customers .noteActions{ display:inline-flex; align-items:center; gap:8px; }
    body.customers .noteMiniBtn{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      padding:4px 8px;
      border-radius:8px;
      border:1px solid rgba(0,0,0,.12);
      background:#fff;
      cursor:pointer;
      font:inherit;
      font-size:12px;
      line-height:1;
    }
    body.customers .noteMiniBtn:hover{ border-color: rgba(0,0,0,.22); }


    /* Alerta ativo no cliente (linha destacada) */
    body.customers tr.alertActiveRow td{
      font-weight:700;
      color:var(--teal);
    }
    tr.alertActiveRow td.actionsCell,
    body.customers tr.alertActiveRow td.actionsCell *{
      font-weight:inherit;
      color:inherit;
    }
    body.customers .lastNoteCell{ white-space:nowrap; }

/* Hover: leve “lift” sem lavar a tabela */
body.customers tr[class^="st-"]:hover td{
  box-shadow: inset 0 0 0 9999px rgba(0,0,0,0.012);
}

/* =========================
   CONTRATOS
   ========================= */
body.contracts{
  background: rgba(91, 186, 178, 0.25);;
  color: var(--ink);
}

body.contracts .wrap{
  max-width: 1250px;
  margin: 0 auto;
  padding: 22px 14px 60px;
}

body.contracts .muted{
  margin-top: 6px;
  color: #475569;
  font-size: 13px;
  line-height: 1.35;
}

body.contracts .tableScroll{
  overflow:auto;
  -webkit-overflow-scrolling: touch;
}

body.contracts table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border:1px solid rgba(11,11,11,.10);
  border-radius:14px;
  overflow:hidden;
  box-shadow: 0 1px 2px rgba(15,23,42,.06);
  min-width: 980px;
}

body.contracts th,
body.contracts td{
  padding: 12px;
  border-bottom: 1px solid rgba(11,11,11,.08);
  text-align:left;
  font-size:14px;
  white-space:nowrap;
}

body.contracts th{
  background: rgba(91,186,178,.12);
  font-size: 12px;
  letter-spacing:.3px;
  text-transform:uppercase;
}

body.contracts tr:last-child td{ border-bottom:0; }

/* badges */
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(11,11,11,.10);
  background: rgba(2,6,23,.04);
  color: var(--ink);
}
.badge.ok{ background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.25); }
.badge.warn{ background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.25); }
.badge.info{ background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.25); }
.badge.bad{ background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.25); }

/* modal (layout parecido com kits) */
body.contracts dialog{
  border: none;
  border-radius: 16px;
  padding: 0;
  max-width: 980px;
  width: calc(100% - 24px);
}

body.contracts dialog::backdrop{
  background: rgba(15,23,42,.55);
}

body.contracts dialog .hd{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(11,11,11,.08);
  background: #fff;
}

body.contracts dialog .ttl{ font-size: 18px; font-weight: 900; }
body.contracts dialog .bd{
  padding: 16px 18px;
  background:#fff;
}

body.contracts dialog .ft{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding: 12px 18px 18px;
  border-top: 1px solid rgba(11,11,11,.08);
  background:#fff;
}

body.contracts .sectionTitle{
  font-weight: 900;
  margin: 6px 0 10px;
}

body.contracts .grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

body.contracts .grid1{ display:grid; grid-template-columns: 1fr; gap: 12px; }

body.contracts .field .lbl{
  color:#475569;
  font-size: 12px;
  margin-bottom: 6px;
}

body.contracts input,
body.contracts select,
body.contracts textarea{
  width: 100%;
}

body.contracts textarea{ resize: vertical; }

body.contracts .err{
  margin-top: 12px;
  color: #b91c1c;
  font-weight: 800;
}

@media (max-width: 920px){
  body.contracts table{ min-width: 820px; }
  body.contracts .grid2{ grid-template-columns: 1fr; }
}

/* =========================================================
   CONTRATOS — MODAL (modal_contracts_new.php)
   Alinha o visual com o modal_customer_form (estilo dos modais “kits”),
   sem mexer na largura do modal em telas largas.
   ========================================================= */

/* Escopo: apenas o modal de contrato (#dlgView) */
body.contracts #dlgView{
  border: none;
  padding: 0;
  border-radius: 18px;

  /* mantém o “tamanho de desktop” (antes: max-width: 980px) */
  width: min(980px, calc(100vw - 28px));
  max-width: 92vw;

  box-shadow: 0 20px 60px rgba(2,6,23,.35);
  background: #fff;
}

body.contracts #dlgView::backdrop{
  background: rgba(2,6,23,.45);
  backdrop-filter: blur(4px);
}

body.contracts #dlgView .hd{
  padding: 16px 18px;
  border-bottom: 1px solid rgba(11,11,11,.10);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  background: #fff;
}

body.contracts #dlgView .ttl{
  font-size: 16px;
  font-weight: 900;
  color: var(--ink);
}

body.contracts #dlgView .bd{
  padding: 16px 18px 8px;
  display:grid;
  gap: 12px;
  background: #fff;
}

body.contracts #dlgView .ft{
  padding: 14px 18px;
  border-top: 1px solid rgba(11,11,11,.10);
  display:flex;
  gap: 10px;
  justify-content:flex-end;
  background: rgba(245,247,251,.65);
}

/* Tipografia dos labels no modal (igual aos outros modais) */
body.contracts #dlgView .field .lbl{
  font-size: 12px;
  color: #64748b;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
  margin-bottom: 6px;
}

/* Inputs dentro do modal (não afeta filtros da página) */
body.contracts #dlgView input,
body.contracts #dlgView select,
body.contracts #dlgView textarea{
  width: 100%;
  border: 1px solid rgba(11,11,11,.12);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  background-color: #fff;
  color: var(--ink);
  outline: none;
}

body.contracts #dlgView input::placeholder,
body.contracts #dlgView textarea::placeholder{
  color: rgba(11,11,11,.35);
}

body.contracts #dlgView input:focus,
body.contracts #dlgView select:focus,
body.contracts #dlgView textarea:focus{
  border-color: rgba(91,186,178,.75);
  box-shadow: 0 0 0 4px rgba(91,186,178,.18);
}

/* Mobile mantém comportamento atual */
@media (max-width: 920px){
  body.contracts #dlgView{
    width: calc(100vw - 18px);
    max-width: calc(100vw - 18px);
  }
}



/* =========================================================
   CONTRATOS — filtros + botões + pager (igual customers/propostas)
   ========================================================= */

/* Header padrão também para contratos */
body.contracts .topHeader{
  padding: 0;
  background: #fff;
  border-bottom: 1px solid rgba(11,11,11,.10);
  position: sticky;
  top: 0;
  z-index: 40;
}
body.contracts .topHeaderInner{
  max-width: 1250px;
  margin: 0 auto;
  padding: 14px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}
body.contracts .topBack{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(11,11,11,.12);
  background: #fff;
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
body.contracts .topBack:hover{
  border-color: var(--amber);
  color: var(--amber);
}
body.contracts .topTitle{
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}
body.contracts .topActions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* Botões (mesmo padrão de propostas/kits) */
body.contracts .btnRow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
body.contracts .btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:12px;
  background:#fff;
  border:1px solid rgba(11,11,11,.12);
  text-decoration:none;
  color:var(--ink);
  font-weight:500;
  cursor:pointer;
  font-family: "HK Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
body.contracts .btn.primary{
  background: var(--teal);
  border-color: rgba(0,0,0,.06);
  color: #fff;
}
body.contracts .btn:hover{
  border-color: var(--amber);
  background:#fff;
  color: var(--amber);
}
body.contracts .btn.primary:hover{
  border-color: var(--amber);
  background:#fff;
  color: var(--amber);
}

/* Pills usadas em alguns lugares */
body.contracts .pillBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 12px;
  border-radius:12px;
  font-family: "HK Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 500;
  cursor:pointer;
  border: 1px solid rgba(11,11,11,.12);
  background:#fff;
  text-decoration:none;
}
body.contracts .pillBtn.primary{
  background: var(--teal);
  border-color: rgba(0,0,0,.06);
  color: white;
}
body.contracts .pillBtn.ghost{
  background:#fff;
  color: var(--teal);
}
body.contracts .pillBtn.primary:hover,
body.contracts .pillBtn.ghost:hover{
  border-color: var(--amber);
  color: var(--amber);
  background: #fff;
}

/* Filtros (mesmo comportamento do customers_list) */
body.contracts .filters{
  display:grid;
  gap:10px;
  grid-template-columns: 1fr;
  align-items:end;
  margin-top: 14px;
}
@media (min-width: 920px){
  body.contracts .filters{
    grid-template-columns: 1.6fr 1fr 0.9fr 0.9fr 0.9fr auto;
  }
}
body.contracts .filters .field{
  display:flex;
  flex-direction:column;
  gap:6px;
}
body.contracts .filters label{
  font-size:12px;
  color:#64748b;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.3px;
}
body.contracts .filters input,
body.contracts .filters select{
  width:100%;
  border:1px solid rgba(11,11,11,.12);
  border-radius:12px;
  padding:10px 12px;
  font-size:14px;
  background:#fff;
  color: var(--ink);
  outline:none;
}
body.contracts .filters input:focus,
body.contracts .filters select:focus{
  border-color: rgba(91,186,178,.75);
  box-shadow: 0 0 0 4px rgba(91,186,178,.18);
}
body.contracts .filters .btnRow{
  justify-content:flex-start;
}
@media (min-width: 920px){
  body.contracts .filters .btnRow{
    justify-content:flex-end;
  }
}

/* Ações (ícones) — mesmo padrão do customers_list */
body.contracts .actionsCell{ white-space:nowrap; }
body.contracts .iconBtn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  padding:0;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  border-radius:8px;
  cursor:pointer;
  margin-left:6px;
}
body.contracts .iconBtn svg{
  width:16px;
  height:16px;
  fill:currentColor;
  opacity:.85;
}
body.contracts .iconBtn:hover{ border-color: rgba(0,0,0,.18); }
body.contracts .iconBtn:active{ transform: translateY(1px); }

/* Pager */
body.contracts .pager{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  padding:12px 0 0;
}
body.contracts .pager .meta{
  color:#64748b;
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.3px;
}

/* Mobile: header mais compacto */
@media (max-width: 520px){
  body.contracts .topHeaderInner{
    grid-template-columns: auto 1fr;
  }
  body.contracts .topActions{ display:none; }
  body.contracts .topTitle{
    font-size: 18px;
    text-align: left;
  }
}
