/* =========================================================
   THEME
========================================================= */
:root{
  --bg: #f6faf7;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;

  --primary: #16a34a;
  --primary-2: #22c55e;
  --primary-soft: #dcfce7;

  --danger: #dc2626;
  --warning: #f59e0b;
  --info: #0284c7;

  --shadow: 0 10px 25px rgba(2, 6, 23, .08);
  --shadow-soft: 0 6px 18px rgba(2, 6, 23, .06);

  --radius: 16px;
  --radius-sm: 12px;

  --container: 1200px;
}

/* =========================================================
   RESET / BASE
========================================================= */
*{ box-sizing: border-box; }

html, body{
  height: 100%;
}

body{
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.35;
}

a{ color: inherit; }
small, .small{ color: var(--muted); font-size: 13px; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 16px 42px;
}

.page-content{
  flex: 1;
}

.muted{
  color: var(--muted);
}

/* =========================================================
   HEADER / NAV
========================================================= */
.topbar{
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(246,250,247,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(34,197,94,.22);
  box-shadow: 0 8px 22px rgba(2,6,23,.06);
}

.topbar .inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 240px 1fr auto;
  grid-template-areas: "brand nav actions";
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-pro{
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
  overflow: hidden;
  position: relative;
  z-index: 3;
}

.brand-badge{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 10px 22px rgba(34,197,94,.22);
  display: grid;
  place-items: center;
  color: #fff;
}

.brand-text{
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
}

.brand-title{
  font-weight: 950;
  letter-spacing: .5px;
  text-transform: uppercase;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub{
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-pro{
  grid-area: nav;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 4px;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.nav-pro::-webkit-scrollbar{
  height: 8px;
}

.nav-pro::-webkit-scrollbar-thumb{
  background: rgba(100,116,139,.25);
  border-radius: 999px;
}

.nav-pro::-webkit-scrollbar-track{
  background: transparent;
}

.nav-item{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(226,232,240,.95);
  background: rgba(255,255,255,.9);
  box-shadow: 0 6px 16px rgba(2,6,23,.05);
  text-decoration: none;
  font-weight: 950;
  font-size: 13px;
  color: #0f172a;
  white-space: nowrap;
  transition: transform .08s ease, background .12s ease, border-color .12s ease;
}

.nav-item:hover{
  background: rgba(34,197,94,.08);
  border-color: rgba(34,197,94,.30);
}

.nav-item:active{
  transform: translateY(1px);
}

.nav-item.active{
  background: rgba(34,197,94,.14);
  border-color: rgba(34,197,94,.35);
  color: #065f46;
}

.ico-nav{
  width: 18px;
  height: 18px;
  display: inline-block;
}

.top-actions{
  grid-area: actions;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  min-width: 0;
  position: relative;
  z-index: 3;
}

.user-pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(226,232,240,.95);
  box-shadow: 0 6px 16px rgba(2,6,23,.05);
  font-size: 13px;
  color: var(--muted);
  font-weight: 900;
}

.menu-btn{
  display: none;
  border: 1px solid rgba(226,232,240,.95);
  background: rgba(255,255,255,.92);
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(2,6,23,.05);
  font-weight: 950;
}

@media (max-width: 980px){
  .topbar .inner{
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
  }

  .menu-btn{
    display: inline-flex;
  }

  .nav-pro{
    display: none;
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow: visible;
    margin-top: 10px;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(226,232,240,.95);
    background: rgba(255,255,255,.95);
    box-shadow: 0 10px 22px rgba(2,6,23,.06);
  }

  .nav-pro.open{
    display: flex;
  }
}

@media (max-width: 760px){
  .brand-sub{
    display: none;
  }
}

/* =========================================================
   TYPOGRAPHY
========================================================= */
h1{
  font-size: 28px;
  margin: 10px 0 14px;
  letter-spacing: -0.4px;
}

h3{
  font-size: 16px;
  margin: 0 0 10px;
  font-weight: 900;
}

.page-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 6px 0 14px;
}

.page-head .subtitle{
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.card-title{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.card-title h3{
  margin: 0;
}

/* =========================================================
   CARDS
========================================================= */
.card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.card + .card{
  margin-top: 14px;
}

/* =========================================================
   FORMS
========================================================= */
.form label{
  display: block;
  font-weight: 800;
  font-size: 13px;
  color: #0f172a;
  margin: 10px 0 6px;
}

input, select, textarea{
  width: 100%;
  border: 2px solid #cbd5e1;
  background: #fbfdff;
  border-radius: 12px;
  padding: 11px 12px;
  outline: none;
  font-size: 14px;
  color: var(--text);
  box-shadow: 0 1px 0 rgba(2,6,23,.04);
}

textarea{
  resize: vertical;
  min-height: 100px;
}

input::placeholder,
textarea::placeholder{
  color: #94a3b8;
  font-weight: 700;
}

input:placeholder-shown{
  border-color: #94a3b8;
}

input:focus, select:focus, textarea:focus{
  border-color: rgba(34,197,94,.85);
  box-shadow: 0 0 0 4px rgba(34,197,94,.18);
  background: #fff;
}

input:disabled, select:disabled, textarea:disabled{
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
  opacity: 1;
}

select{
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #334155 50%),
    linear-gradient(135deg, #334155 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.row{
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.col{
  flex: 1;
  min-width: 240px;
}

.col.actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.form-section{
  margin-top: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.form-section .sec-head{
  background: linear-gradient(180deg, #eef2f7 0%, #dde6f0 100%);
  border-bottom: 1px solid #cbd5e1;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.form-section .sec-title{
  font-weight: 950;
  font-size: 14px;
  color: #0f172a;
  letter-spacing: .2px;
}

.form-section .sec-sub{
  font-size: 12px;
  font-weight: 800;
  color: #475569;
}

.form-section .sec-body{
  padding: 14px;
}

@media (max-width: 960px){
  .grid{
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px){
  .grid{
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   BUTTONS
========================================================= */
button, .btn, .btn-sec{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 900;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-size: 14px;
}

button, .btn{
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

button:hover, .btn:hover{
  filter: brightness(.98);
}

.btn-sec{
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}

.btn-sec:hover{
  background: #f8fafc;
}

.btn-mini{
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 13px;
}

.btn-help{
  background: #fff;
  border: 1px solid rgba(34,197,94,.35);
  color: #065f46;
  font-weight: 950;
}

.btn-help:hover{
  background: rgba(34,197,94,.10);
}

.danger-link{
  color: var(--danger);
  font-weight: 900;
  text-decoration: none;
}

.danger-link:hover{
  text-decoration: underline;
}

.actions{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.actions-inline{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.input-inline{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* =========================================================
   BADGES / PILLS
========================================================= */
.badge,
.pill{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid transparent;
}

.b-alugado{ background: #fef3c7; color: #92400e; border-color: #fde68a; }
.b-disponivel{ background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.b-atrasado{ background: #ffe4e6; color: #9f1239; border-color: #fecdd3; }
.b-aberto{ background: #e0f2fe; color: #075985; border-color: #bae6fd; }
.b-parcial{ background: #fef3c7; color: #92400e; border-color: #fde68a; }
.b-pago{ background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.b-futura{ background: #f3f4f6; color: #374151; border-color: #e5e7eb; }

.pill.gray{
  background: rgba(148,163,184,.14);
  border-color: rgba(148,163,184,.30);
  color: #334155;
}

.pill.red{
  background: rgba(220,38,38,.10);
  border-color: rgba(220,38,38,.22);
  color: #991b1b;
}

.pill.blue{
  background: rgba(2,132,199,.10);
  border-color: rgba(2,132,199,.22);
  color: #075985;
}

.pill-ok{
  background: #dcfce7;
  color: #166534;
}

.pill-warn{
  background: #fef3c7;
  color: #92400e;
}

.pill-danger{
  background: #fee2e2;
  color: #991b1b;
}

.pill-neutral{
  background: #e5e7eb;
  color: #374151;
}

/* =========================================================
   TABLES
========================================================= */
.table-wrap{
  width: 100%;
  overflow: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-soft);
  margin-top: 10px;
}

.table-wrap::-webkit-scrollbar{
  height: 10px;
  width: 10px;
}

.table-wrap::-webkit-scrollbar-thumb{
  background: rgba(100,116,139,.35);
  border-radius: 999px;
}

.table-wrap::-webkit-scrollbar-track{
  background: rgba(226,232,240,.5);
}

table.tabela{
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 18px;
  overflow: hidden;
}

.tabela thead th{
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, #0b1220 0%, #070c16 100%);
  color: #fff;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .35px;
  padding: 13px 14px;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255,255,255,.08);
  border-right: 1px solid rgba(255,255,255,.10);
}

.tabela thead th:last-child{
  border-right: none;
}

.tabela tbody td{
  padding: 13px 14px;
  border-bottom: 1px solid rgba(226,232,240,.65);
  border-right: 1px solid #eef2f7;
  font-size: 14px;
  vertical-align: middle;
}

.tabela tbody td:last-child{
  border-right: none;
}

.tabela tbody tr:nth-child(odd) td{
  background: #fbfdff;
}

.tabela tbody tr:hover td{
  background: rgba(34,197,94,.08);
}

.sep{
  color: #cbd5e1;
  padding: 0 6px;
}

.table-scroll{
  max-height: 320px;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(226,232,240,.95);
  background: #fff;
  box-shadow: 0 10px 24px rgba(2,6,23,.06);
}

.table-scroll table.tabela{
  width: 100%;
  min-width: 900px;
}

.table-actions a{
  font-weight: 900;
  text-decoration: none;
}

.table-actions a:hover{
  text-decoration: underline;
}

/* =========================================================
   ACTION BUTTONS INSIDE TABLES
========================================================= */
.tr-acoes{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

a.btn-act{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 14px;
  border: 1px solid rgba(226,232,240,.9);
  background: #fff;
  text-decoration: none;
  font-weight: 950;
  font-size: 13px;
  color: #0f172a;
  box-shadow: 0 8px 20px rgba(2,6,23,.07);
  white-space: nowrap;
  transition: transform .08s ease, background .12s ease, border-color .12s ease;
}

a.btn-act:hover{
  transform: translateY(-1px);
}

a.btn-act:active{
  transform: translateY(0);
}

a.btn-edit{
  background: rgba(2,132,199,.06);
  border-color: rgba(2,132,199,.30);
  color: #075985;
}

a.btn-edit:hover{
  background: rgba(2,132,199,.10);
}

a.btn-baixa{
  background: rgba(34,197,94,.10);
  border-color: rgba(34,197,94,.25);
  color: #065f46;
}

a.btn-baixa:hover{
  background: rgba(34,197,94,.16);
}

a.btn-red{
  background: rgba(216,29,29,.10);
  border-color: rgba(148,28,28,.28);
  color: #b82929;
}

a.btn-red:hover{
  background: rgba(197,34,34,.18);
}

a.btn-desc{
  background: rgba(166,216,29,.18);
  border-color: rgba(124,138,0,.45);
  color: #8a7f0a;
}

a.btn-desc:hover{
  background: rgba(221,255,26,.30);
}

a.btn-wpp{
  background: rgba(22,163,74,.10);
  border-color: rgba(22,163,74,.22);
  color: #065f46;
}

a.btn-wpp:hover{
  background: rgba(22,163,74,.16);
}

.ico{
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(15,23,42,.06);
  font-size: 12px;
}

.btn-edit .ico{ background: rgba(2,132,199,.12); }
.btn-baixa .ico{ background: rgba(34,197,94,.14); }
.btn-wpp .ico{ background: rgba(22,163,74,.14); }

/* =========================================================
   KPI / DASH
========================================================= */
.cards{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 12px 0;
}

.kpi{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 14px;
}

.kpi .t{
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .25px;
}

.kpi .v{
  font-size: 20px;
  font-weight: 950;
  margin-top: 6px;
}

.kpi-mini{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.kpi-box,
.sum,
.desc-box{
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.kpi-box .t,
.sum .t,
.desc-box .t{
  font-size: 12px;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .25px;
}

.kpi-box .v,
.sum .v,
.desc-box .v{
  margin-top: 6px;
  font-size: 16px;
  font-weight: 950;
}

.dash-two{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.month-nav{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.month-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(34,197,94,.10);
  border: 1px solid rgba(34,197,94,.22);
  color: #065f46;
  font-weight: 950;
}

/* =========================================================
   ALERTS / STATUS
========================================================= */
.erro{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
  font-weight: 800;
}

.ok{
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--primary-soft);
  border: 1px solid rgba(34,197,94,.35);
  color: #065f46;
  font-weight: 900;
}

.note{
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(34,197,94,.25);
  background: rgba(34,197,94,.08);
}

.tr-highlight-atrasado td{
  background: rgba(220,38,38,.05) !important;
}

.tr-highlight-atrasado td:first-child{
  box-shadow: inset 4px 0 0 rgba(220,38,38,.45);
}

.tr-highlight-parcial td{
  background: rgba(245,158,11,.07) !important;
}

.tr-highlight-parcial td:first-child{
  box-shadow: inset 4px 0 0 rgba(245,158,11,.55);
}

/* =========================================================
   LOGIN / AUTH
========================================================= */
.auth-wrap{
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.auth-card{
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 16px;
}

.auth-panel{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(34,197,94,.16), rgba(22,163,74,.10));
  padding: 22px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.auth-panel::after{
  content: "";
  position: absolute;
  inset: -60px -60px auto auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(34,197,94,.18);
}

.auth-panel h2{
  margin: 0 0 10px;
  font-size: 26px;
  font-weight: 950;
  letter-spacing: -0.4px;
}

.auth-panel p{
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.auth-form{
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.auth-form h1{
  font-size: 22px;
  margin: 0 0 8px;
}

.link{
  color: #065f46;
  font-weight: 900;
  text-decoration: none;
}

.link:hover{
  text-decoration: underline;
}

/* =========================================================
   MODAL
========================================================= */
.modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2,6,23,.45);
  z-index: 999;
}

.modal.ativo{
  display: flex;
}

.modal-conteudo{
  width: min(560px, 100%);
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 16px;
}

.modal-topo{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.modal-topo h3{
  margin: 0;
  font-size: 16px;
}

.modal-fechar{
  border: 1px solid var(--border);
  background: #fff;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.modal-fechar:hover{
  background: #f1f5f9;
}

.modal-conteudo p{
  margin: 10px 0;
  color: var(--muted);
  font-weight: 700;
}

/* =========================================================
   FOOTER
========================================================= */
.footer{
  margin-top: 34px;
  padding: 18px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(34,197,94,.16), rgba(22,163,74,.08));
  border: 1px solid rgba(34,197,94,.20);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.footer-left{
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 240px;
}

.footer-brand{
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 6px 14px rgba(34,197,94,.22);
}

.footer-title{
  font-weight: 950;
  letter-spacing: -.2px;
}

.footer-sub{
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.footer-right{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(226,232,240,.9);
  color: #0f172a;
  font-weight: 800;
  font-size: 13px;
}

.footer-pill .mini{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(34,197,94,.9);
}

/* =========================================================
   EDITAR COBRANÇA
========================================================= */
.edit-wrap{
  max-width: 1100px;
  margin: 0 auto;
}

.edit-top{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.edit-top h1{
  margin: 0;
  font-size: 24px;
}

.edit-meta{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.edit-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.edit-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.edit-summary{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.readonly{
  background: rgba(241,245,249,.75);
}

.hr-soft{
  height: 1px;
  background: rgba(226,232,240,.9);
  border: 0;
  margin: 12px 0;
}

/* =========================================================
   DESCONTOS
========================================================= */
.desc-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.desc-top h1{
  font-size: 26px;
  letter-spacing: -0.5px;
}

.desc-top .subtitle{
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.desc-contract{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tag-type{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  border: 1px solid rgba(226,232,240,.9);
  background: rgba(255,255,255,.9);
  box-shadow: 0 4px 12px rgba(2,6,23,.05);
}

.tag-type.perc{
  background: rgba(2,132,199,.10);
  border-color: rgba(2,132,199,.22);
  color: #075985;
}

.tag-type.valor{
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.25);
  color: #065f46;
}

.tag-type.inativo,
.tag-type.off{
  background: rgba(148,163,184,.18);
  border-color: rgba(148,163,184,.30);
  color: #334155;
}

.tag-type.on{
  background: rgba(34,197,94,.12);
  border-color: rgba(34,197,94,.25);
  color: #065f46;
}

/* =========================================================
   DETALHES / LINHAS EXPANSÍVEIS GENÉRICAS
========================================================= */
.status-wrap{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.toggle-desc{
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 6px;
  color: #64748b;
  transition: .2s ease;
}

.toggle-desc:hover{
  background: #eef2f7;
  color: #0f172a;
}

.toggle-desc.aberto{
  transform: rotate(180deg);
}

.linha-detalhes{
  display: none;
  background: #f8fafc;
}

.linha-detalhes.aberta{
  display: table-row;
}

.box-detalhes{
  padding: 16px 18px;
  border-top: 1px solid #e5e7eb;
}

.det-head{
  margin-bottom: 14px;
}

.det-head h3{
  margin: 0 0 4px 0;
  font-size: 16px;
  color: #0f172a;
}

.det-head .muted{
  color: #64748b;
  font-size: 13px;
}

.det-section{
  margin-top: 18px;
}

.det-section-title{
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 10px;
}

.detalhes-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.det-item{
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
}

.det-item strong{
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.det-item span{
  color: #0f172a;
  font-size: 14px;
}

.det-bloco-largo{
  grid-column: 1 / -1;
}

/* =========================================================
   CONTRATOS - FINAL LIMPO
========================================================= */
.contratos-page .form-contratos{
  max-width: 1200px;
}

.contratos-page .contract-alertbar{
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
  margin: 0 0 14px 0;
  box-shadow: var(--shadow-soft);
}

.contratos-page .contract-alertbar-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.contratos-page .contract-alertbar-title{
  display: flex;
  align-items: center;
  gap: 10px;
}

.contratos-page .contract-alert-ico{
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245,158,11,.12);
  border: 1px solid rgba(245,158,11,.22);
  font-size: 15px;
}

.contratos-page .contract-alertbar h3{
  margin: 0;
  font-size: 15px;
}

.contratos-page .contract-alert-sub,
.contratos-page .contract-alert-meta,
.contratos-page .contract-alert-more{
  font-size: 12px;
  opacity: .78;
}

.contratos-page .contract-alertlist{
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contratos-page .contract-alertitem{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(0,0,0,.02);
}

.contratos-page .contract-alertleft{
  min-width: 0;
}

.contratos-page .contract-alertname{
  font-weight: 700;
}

.contratos-page .contract-alertdesc{
  opacity: .8;
  font-size: 12px;
  margin-top: 2px;
}

.contratos-page .contract-alertright{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.contratos-page .contract-pill{
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
}

.contratos-page .contract-pill-danger{
  background: rgba(255,0,0,.08);
  border-color: rgba(255,0,0,.14);
}

.contratos-page .contract-pill-warn{
  background: rgba(255,165,0,.12);
  border-color: rgba(255,165,0,.20);
}

.contratos-page .contract-pill-info{
  background: rgba(0,0,0,.04);
}

.contratos-page .contract-pill-ended{
  background: rgba(0,0,0,.06);
}

.contratos-page .contract-mini-link{
  white-space: nowrap;
}

.contratos-page .contract-btn-mini{
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
}

.contratos-page .contract-btn-mini.contract-btn-blue{
  background: #1f6feb;
  color: #fff;
  border: 1px solid transparent;
}

.contratos-page .contract-btn-mini.contract-btn-sec{
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  color: inherit;
}

.contratos-page .table-wrap{
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  border-radius: 18px;
  border: 1px solid #d9e2ec;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
  position: relative;
}

.contratos-page .table-wrap::-webkit-scrollbar{
  height: 12px;
}

.contratos-page .table-wrap::-webkit-scrollbar-track{
  background: #e9eef5;
  border-radius: 999px;
}

.contratos-page .table-wrap::-webkit-scrollbar-thumb{
  background: #94a3b8;
  border-radius: 999px;
}

.contratos-page .table-wrap::-webkit-scrollbar-thumb:hover{
  background: #64748b;
}

.contratos-page .tabela-contratos{
  width: max-content;
  min-width: 1180px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.contratos-page .tabela-contratos thead th{
  position: sticky;
  top: 0;
  z-index: 15;
  background: #03132b;
  color: #fff;
  font-size: 13px;
  letter-spacing: .02em;
  white-space: nowrap;
}

.contratos-page .tabela-contratos th,
.contratos-page .tabela-contratos td{
  padding: 14px 12px;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.contratos-page .tabela-contratos tbody tr:nth-child(even) td{
  background: #fcfdff;
}

.contratos-page .tabela-contratos tbody tr:hover td{
  background: #f8fbff;
}

.contratos-page .col-expand{
  width: 72px;
  min-width: 72px;
  max-width: 72px;
}

.contratos-page .col-ativo{
  width: 90px;
  min-width: 90px;
}

.contratos-page .col-imovel{
  width: 180px;
  min-width: 180px;
}

.contratos-page .col-inquilino{
  width: 170px;
  min-width: 170px;
}

.contratos-page .col-telefone{
  width: 120px;
  min-width: 120px;
}

.contratos-page .col-dia{
  width: 90px;
  min-width: 90px;
  text-align: center;
}

.contratos-page .col-reajuste{
  width: 120px;
  min-width: 120px;
}

.contratos-page .col-data{
  width: 105px;
  min-width: 105px;
}

.contratos-page .tabela-contratos .col-expand,
.contratos-page .tabela-contratos .expand-cell{
  position: sticky;
  left: 0;
  z-index: 20;
  background: #fff;
  overflow: visible !important;
  text-overflow: clip !important;
  box-shadow: 8px 0 14px -12px rgba(15,23,42,.35);
}

.contratos-page .tabela-contratos thead .col-expand{
  background: #03132b;
  z-index: 25;
}

.contratos-page .tabela-contratos tbody tr:nth-child(even) td.expand-cell{
  background: #fcfdff !important;
}

.contratos-page .tabela-contratos tbody tr:hover td.expand-cell{
  background: #f8fbff !important;
}

.contratos-page .row-tools{
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.contratos-page .btn-expand,
.contratos-page .btn-row-menu{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #ccd4df;
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: .18s ease;
  padding: 0;
  color: #000;
}

.contratos-page .btn-expand:hover,
.contratos-page .btn-row-menu:hover{
  background: #eff6ff;
  border-color: #93c5fd;
}

.contratos-page .btn-expand .arrow{
  font-size: 12px;
  transition: transform .18s ease;
  display: inline-block;
}

.contratos-page .btn-expand.open .arrow{
  transform: rotate(90deg);
}

.contratos-page .btn-row-menu{
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  color: #334155;
}

.contratos-page .btn-row-menu[aria-expanded="true"]{
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.contratos-page .row-menu-wrap{
  position: relative;
}
.contratos-page .row-menu{
  position: fixed;
  top: 0;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(15,23,42,.22);
  padding: 8px;
  z-index: 99999;
  display: none;
}

.contratos-page .menu-action{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  transition: .16s ease;
  border: 1px solid transparent;
}

.contratos-page .menu-ico{
  width: 22px;
  min-width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.contratos-page .menu-label{
  flex: 1;
}

.contratos-page .action-edit{
  color: #0c4a6e;
  background: #f0f9ff;
}

.contratos-page .action-edit:hover{
  background: #e0f2fe;
  border-color: #7dd3fc;
}

.contratos-page .action-discount{
  color: #92400e;
  background: #fffbeb;
}

.contratos-page .action-discount:hover{
  background: #fef3c7;
  border-color: #fbbf24;
}

.contratos-page .action-delete{
  color: #991b1b;
  background: #fef2f2;
}

.contratos-page .action-delete:hover{
  background: #fee2e2;
  border-color: #fca5a5;
}

.contratos-page .contract-details-row td.details-cell{
  padding: 0 !important;
  background: #f8fafc !important;
}

.contratos-page .contract-details-wrap{
  padding: 14px 16px;
  border-top: 1px solid #e5e7eb;
}

.contratos-page .contract-details-head{
  margin-bottom: 14px;
}

.contratos-page .contract-details-head h3{
  margin: 0 0 4px 0;
  font-size: 16px;
  color: #0f172a;
}

.contratos-page .contract-details-head .muted{
  color: #64748b;
  font-size: 13px;
}

.contratos-page .contract-det-section{
  margin-top: 18px;
}

.contratos-page .contract-det-title{
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 10px;
}

.contratos-page .contract-detalhes-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.contratos-page .contract-det-item{
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
}

.contratos-page .contract-det-item strong{
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.contratos-page .contract-det-item span{
  color: #0f172a;
  font-size: 14px;
}

.contratos-page .contract-det-wide{
  grid-column: 1 / -1;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 980px){
  .auth-card{
    grid-template-columns: 1fr;
  }

  .edit-grid{
    grid-template-columns: 1fr;
  }

  .cards{
    grid-template-columns: 1fr 1fr;
  }

  .edit-summary{
    grid-template-columns: 1fr 1fr;
  }

  .desc-contract{
    grid-template-columns: 1fr;
  }

  .table-scroll table.tabela{
    min-width: 780px;
  }
}

@media (max-width: 900px){
  .contratos-page .contract-detalhes-grid{
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 640px){
  .cards,
  .kpi-mini,
  .edit-summary{
    grid-template-columns: 1fr;
  }

  .footer{
    padding: 16px 14px;
  }

  .footer-right{
    justify-content: flex-start;
  }

  .contratos-page .contract-alertbar-head,
  .contratos-page .contract-alertitem{
    flex-direction: column;
    align-items: stretch;
  }

  .contratos-page .contract-alertright{
    justify-content: flex-start;
  }

  .contratos-page .contract-detalhes-grid,
  .detalhes-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px){
  .desc-top .actions-inline{
    width: 100%;
    justify-content: flex-start;
  }

  .desc-top .actions-inline a{
    flex: 1;
  }
}
.row-menu{
  position: fixed;
  top: 0;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(15,23,42,.22);
  padding: 8px;
  z-index: 99999;
  display: none;
}

.menu-action{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  transition: .16s ease;
  border: 1px solid transparent;
}

.menu-ico{
  width: 22px;
  min-width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.menu-label{
  flex: 1;
}

.action-edit{
  color: #0c4a6e;
  background: #f0f9ff;
}

.action-edit:hover{
  background: #e0f2fe;
  border-color: #7dd3fc;
}

.action-discount{
  color: #92400e;
  background: #fffbeb;
}

.action-discount:hover{
  background: #fef3c7;
  border-color: #fbbf24;
}

.action-delete{
  color: #991b1b;
  background: #fef2f2;
}

.action-delete:hover{
  background: #fee2e2;
  border-color: #fca5a5;
}
/* =========================================================
   MODAL BAIXA COBRANCA NOVO
========================================================= */
.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(2,6,23,.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 18px;
}

.modal-backdrop.show{
  display: flex;
}

.modal-box{
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 18px;
}

.modal-box h3{
  margin: 0;
  font-size: 18px;
}

.modal-box p{
  margin: 6px 0 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.modal-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-close-x{
  border: 1px solid var(--border);
  background: #fff;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.modal-close-x:hover{
  background: #f8fafc;
}

.modal-form{
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.baixa-resumo{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.baixa-box{
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.baixa-box .t{
  font-size: 12px;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.baixa-box .v{
  margin-top: 6px;
  font-size: 20px;
  font-weight: 950;
}

.baixa-detalhes{
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}

.baixa-detalhes-lista{
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.baixa-detalhe-item{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fbfdff;
}

.baixa-detalhe-item strong{
  font-size: 13px;
}

.pagamentos-wrap{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pagamento-item{
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.pagamento-item-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.pagamento-item-title{
  font-weight: 900;
  font-size: 14px;
}

.pagamento-grid{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.btn-add-parcela{
  align-self: flex-start;
}

.btn-remove-parcela{
  background: #fff;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.btn-remove-parcela:hover{
  background: #fef2f2;
}

.baixa-check{
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(245,158,11,.28);
  background: rgba(245,158,11,.08);
}

.baixa-check input[type="checkbox"]{
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex: 0 0 auto;
}

.modal-actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.btn-modal-cancel{
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-modal-cancel:hover{
  background: #f8fafc;
}

.btn-modal-confirm{
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  border: 1px solid transparent;
}

@media (max-width: 760px){
  .baixa-resumo,
  .pagamento-grid{
    grid-template-columns: 1fr;
  }

  .modal-box{
    padding: 16px;
  }
}
.btn-danger,
a.btn-danger {
  background: #b42318;
  color: #fff;
  border: 1px solid #b42318;
}

.btn-danger:hover,
a.btn-danger:hover {
  filter: brightness(0.95);
}
.btn-whats{
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 10px;
  background: #25D366;
  color: #fff;
  border: 1px solid #25D366;
  text-decoration: none;
  transition: .18s ease;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.18);
}

.btn-whats:hover{
  transform: translateY(-1px);
  background: #1fbe5b;
  border-color: #1fbe5b;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.24);
}

.btn-whats .ico{
  font-size: 16px;
  line-height: 1;
}

.toggle-cell{
    width: 54px;
    text-align: center;
  }

  .btn-expand{
    width: 34px;
    height: 34px;
    border: 1px solid #dbe3ef;
    background: #fff;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .18s ease;
    color: #47607a;
    font-size: 15px;
    line-height: 1;
  }

  .btn-expand:hover{
    background: #f5f8fc;
    border-color: #c8d5e6;
    transform: translateY(-1px);
  }

  .btn-expand.open{
    transform: rotate(90deg);
    background: #eef5ff;
    border-color: #bfd3ef;
    color: #245ea8;
  }

  .detail-row{
    display: none;
    background: #fbfcfe;
  }

  .detail-row.show{
    display: table-row;
  }

  .detail-box{
    padding: 18px 18px 20px;
    border-top: 1px solid #eef2f7;
  }

  .detail-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 14px;
  }

  .detail-item{
    background: #fff;
    border: 1px solid #e6edf5;
    border-radius: 12px;
    padding: 12px 14px;
  }

  .detail-label{
    font-size: 12px;
    color: #6c7a89;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
  }

  .detail-value{
    font-size: 15px;
    color: #243447;
    font-weight: 600;
    word-break: break-word;
  }

  .detail-link{
    color: #1f5fae;
    text-decoration: none;
    font-weight: 700;
  }

  .detail-link:hover{
    text-decoration: underline;
  }

  .linha-imovel:hover{
    background: #fcfdff;
  }

  @media (max-width: 900px){
    .detail-grid{
      grid-template-columns: 1fr;
    }
  }
    .toggle-cell{
    width: 54px;
    text-align: center;
  }

  .btn-expand{
    width: 34px;
    height: 34px;
    border: 1px solid #dbe3ef;
    background: #fff;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: .18s ease;
    color: #47607a;
    font-size: 15px;
    line-height: 1;
  }

  .btn-expand:hover{
    background: #f5f8fc;
    border-color: #c8d5e6;
    transform: translateY(-1px);
  }

  .btn-expand.open{
    transform: rotate(90deg);
    background: #eef5ff;
    border-color: #bfd3ef;
    color: #245ea8;
  }

  .detail-row{
    display: none;
    background: #fbfcfe;
  }

  .detail-row.show{
    display: table-row;
  }

  .detail-box{
    padding: 18px 18px 20px;
    border-top: 1px solid #eef2f7;
  }

  .detail-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 14px;
  }

  .detail-item{
    background: #fff;
    border: 1px solid #e6edf5;
    border-radius: 12px;
    padding: 12px 14px;
  }

  .detail-label{
    font-size: 12px;
    color: #6c7a89;
    margin-bottom: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
  }

  .detail-value{
    font-size: 15px;
    color: #243447;
    font-weight: 600;
    word-break: break-word;
  }

  .detail-link{
    color: #1f5fae;
    text-decoration: none;
    font-weight: 700;
  }

  .detail-link:hover{
    text-decoration: underline;
  }

  .linha-inquilino:hover{
    background: #fcfdff;
  }

  .btn-whats{
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 10px;
    background: #25D366;
    color: #fff;
    border: 1px solid #25D366;
    text-decoration: none;
    transition: .18s ease;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.18);
  }

  .btn-whats:hover{
    transform: translateY(-1px);
    background: #1fbe5b;
    border-color: #1fbe5b;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.24);
  }

  .btn-whats .ico{
    font-size: 16px;
    line-height: 1;
  }

  @media (max-width: 900px){
    .detail-grid{
      grid-template-columns: 1fr;
    }
  }

  .row-menu button.menu-action{
  width: 100%;
  box-shadow: none;
 
  text-align: left;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.action-baixa{
  color: #ffffff;
  background: #06b64f;
}

.action-baixa:hover{
  background: #02c245;
  border-color: #86efac;
}