:root {
  --green-950: #063621;
  --green-800: #0b4a2f;
  --green-650: #19733f;
  --green-500: #4e9b24;
  --gold: #c99a16;
  --bg: #f4f6f3;
  --card: #ffffff;
  --text: #18231d;
  --muted: #68756e;
  --line: #e3e9e4;
  --red: #c6493d;
  --amber: #d49518;
  --shadow: 0 12px 30px rgba(7, 54, 33, .09);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

.login-screen {
  min-height: 100vh; min-height: 100dvh; display: grid; place-items: center;
  padding: max(28px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 85% 12%, rgba(201,154,22,.13), transparent 24rem),
    radial-gradient(circle at 10% 90%, rgba(78,155,36,.12), transparent 24rem),
    linear-gradient(180deg, #fbfcf9, #f1f5f0);
}
.login-card {
  width: min(100%, 420px); background: rgba(255,255,255,.96);
  border: 1px solid rgba(11,74,47,.10); border-radius: 28px;
  padding: 28px 24px 24px; box-shadow: 0 24px 65px rgba(7,54,33,.14);
  text-align: center;
}
.login-logo { width: min(78%, 285px); height: auto; display: block; margin: 0 auto 12px; }
.login-heading h1 { margin: 0; font-size: 1.65rem; color: var(--green-950); }
.login-heading p { margin: 7px 0 22px; color: var(--muted); font-size: .9rem; }
.login-card label { text-align: left; margin: 14px 0; font-size: .82rem; }
.login-card input { min-height: 52px; font-size: 1rem; background: #f9fbf8; }
.password-field { position: relative; }
.password-field input { padding-right: 78px; }
.password-field button {
  position: absolute; right: 8px; top: 14px; border: 0; background: transparent;
  color: var(--green-650); font-size: .76rem; font-weight: 800; padding: 10px 6px;
}
.login-button {
  width: 100%; border: 0; border-radius: 15px; padding: 15px; margin-top: 8px;
  background: linear-gradient(135deg, var(--green-950), var(--green-650));
  color: #fff; font-weight: 850; font-size: 1rem; box-shadow: 0 12px 24px rgba(11,74,47,.22);
}
.login-button:disabled { opacity: .65; cursor: wait; }
.login-card > small { display: block; color: #879189; margin-top: 16px; font-size: .68rem; }
.login-error {
  margin: 3px 0 8px; padding: 10px 12px; border-radius: 12px; text-align: left;
  background: #fff0ee; color: #a33c32; font-size: .78rem; font-weight: 700;
}
.logout-btn {
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.86);
  color: var(--green-800); padding: 9px 12px; font-size: .72rem; font-weight: 800;
  box-shadow: 0 7px 18px rgba(7,54,33,.06);
}

html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(201,154,22,.11), transparent 28rem),
    linear-gradient(180deg, #f8faf7, var(--bg));
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, select { font: inherit; }
button { cursor: pointer; }
.app-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top)) 18px 110px;
}

.topbar, .welcome, .section-title-row, .equipment-card,
.return-card, .revenue-card, .brand, .equipment-main {
  display: flex;
  align-items: center;
}

.topbar { justify-content: space-between; margin-bottom: 20px; }
.brand { gap: 10px; }
.brand-logo {
  width: 48px; height: 48px; border-radius: 15px; object-fit: cover;
  box-shadow: var(--shadow);
}
.brand h1, .welcome h2, .section-title-row h3, .return-info h4,
.equipment-card h4, .revenue-card h3 { margin: 0; }
.brand h1 { font-size: 1.18rem; line-height: 1; }
.eyebrow {
  color: var(--green-650); font-weight: 800; letter-spacing: .12em;
  font-size: .68rem;
}
.icon-btn {
  width: 44px; height: 44px; border: 0; border-radius: 14px;
  background: var(--card); box-shadow: var(--shadow); font-size: 1.1rem;
}
.welcome { justify-content: space-between; margin: 8px 2px 16px; }
.welcome h2 { font-size: 1.34rem; margin-top: 3px; }
.muted { color: var(--muted); margin: 0; font-size: .93rem; }
.date-chip {
  color: var(--green-800); background: #e7f1e8; padding: 8px 11px;
  border-radius: 999px; font-weight: 750; font-size: .78rem;
}

.summary-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.summary-card {
  min-width: 0; padding: 15px 10px; background: var(--card);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
}
.summary-icon { display: block; font-size: 1.2rem; margin-bottom: 10px; }
.summary-card strong { display: block; font-size: 1.65rem; }
.summary-card span:last-child { color: var(--muted); font-size: .72rem; }

.revenue-card {
  justify-content: space-between; margin: 12px 0 22px; color: white;
  border-radius: 22px; padding: 20px;
  background: linear-gradient(135deg, var(--green-950), var(--green-650));
  box-shadow: 0 15px 35px rgba(11,74,47,.22);
}
.revenue-card p, .occupancy span { margin: 0 0 5px; color: rgba(255,255,255,.75); font-size: .8rem; }
.revenue-card h3 { font-size: 1.65rem; }
.occupancy { text-align: right; }
.occupancy strong { display: block; font-size: 1.2rem; color: #f6d76e; }

.section-block { margin: 20px 0; }
.section-title-row { justify-content: space-between; margin-bottom: 12px; }
.section-title-row h3 { font-size: 1.1rem; margin-top: 2px; }
.text-btn { border: 0; background: transparent; color: var(--green-650); font-weight: 750; }

.return-card {
  gap: 14px; background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 15px; box-shadow: var(--shadow);
}
.return-date {
  width: 72px; min-width: 72px; min-height: 84px; text-align: center; padding: 13px 6px;
  border-radius: 16px; background: #fff3d5; color: #7b5a00;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
}
.return-date span {
  display: block; max-width: 100%; font-size: .68rem; line-height: 1.2;
  font-weight: 850; letter-spacing: .06em; white-space: nowrap;
}
.return-date strong {
  display: block; max-width: 100%; margin-top: 7px; font-size: .63rem;
  line-height: 1; letter-spacing: .035em; white-space: nowrap;
}
.return-info { flex: 1; min-width: 0; }
.return-info p, .equipment-card p { margin: 4px 0 0; color: var(--muted); font-size: .82rem; }
.return-actions { display: flex; gap: 8px; margin-top: 12px; }
.return-actions button {
  border: 0; border-radius: 10px; padding: 8px 10px;
  background: #edf4ee; color: var(--green-800); font-weight: 750; font-size: .76rem;
}

.equipment-list { display: grid; gap: 10px; }
.equipment-card {
  justify-content: space-between; gap: 12px; padding: 15px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 17px; box-shadow: 0 8px 22px rgba(7,54,33,.06);
}
.equipment-main { gap: 11px; min-width: 0; }
.status-dot { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 5px rgba(78,155,36,.12); }
.status-dot.green { background: var(--green-500); }
.status-dot.red { background: var(--red); box-shadow: 0 0 0 5px rgba(198,73,61,.11); }
.small-primary, .small-secondary {
  border-radius: 11px; padding: 9px 12px; font-size: .76rem; font-weight: 800;
}
.small-primary { border: 0; background: var(--green-800); color: white; }
.small-secondary { border: 1px solid var(--line); background: #f6f8f6; color: var(--text); }

.quick-actions {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 22px 0 8px;
}
.quick-actions button {
  min-width: 0; border: 1px solid var(--line); background: var(--card);
  border-radius: 16px; padding: 12px 6px; color: var(--text);
  font-size: .67rem; font-weight: 750; box-shadow: 0 8px 20px rgba(7,54,33,.05);
}
.quick-actions span { display: block; font-size: 1.25rem; margin-bottom: 6px; }

.bottom-nav {
  position: fixed; z-index: 10; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(100%, 520px); display: grid; grid-template-columns: repeat(5, 1fr);
  align-items: center; padding: 8px 12px max(10px, env(safe-area-inset-bottom));
  background: rgba(255,255,255,.95); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.bottom-nav button {
  border: 0; background: transparent; color: var(--muted);
  font-size: .63rem; font-weight: 750; padding: 7px 2px;
}
.bottom-nav span { display: block; font-size: 1.15rem; margin-bottom: 2px; }
.bottom-nav .active { color: var(--green-800); }
.bottom-nav .fab {
  width: 52px; height: 52px; justify-self: center; margin-top: -28px;
  border-radius: 50%; background: linear-gradient(135deg, var(--green-800), var(--green-500));
  color: white; font-size: 2rem; box-shadow: 0 12px 25px rgba(11,74,47,.3);
}

dialog {
  width: min(calc(100% - 26px), 480px); border: 0; padding: 0;
  border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.28);
}
dialog::backdrop { background: rgba(0,0,0,.48); backdrop-filter: blur(4px); }
.dialog-card { padding: 20px; }
.dialog-head { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom: 16px; }
.dialog-head h3 { margin: 3px 0 0; }
.dialog-close { border:0; background:#eef2ee; width:36px; height:36px; border-radius:12px; }
label { display:block; color:var(--muted); font-size:.78rem; font-weight:750; margin: 11px 0; }
input, select {
  width:100%; margin-top:6px; border:1px solid var(--line); border-radius:13px;
  padding:13px; background:#fafcf9; color:var(--text);
}
.two-cols { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.primary-wide {
  width:100%; border:0; border-radius:14px; padding:14px; margin-top:8px;
  background:var(--green-800); color:white; font-weight:850;
}
.dialog-note { color:var(--muted); text-align:center; font-size:.7rem; }

.toast {
  position: fixed; left:50%; bottom:90px; transform:translate(-50%, 25px);
  background:#17251d; color:white; padding:11px 15px; border-radius:12px;
  opacity:0; pointer-events:none; transition:.25s; z-index:20; white-space:nowrap;
  max-width:calc(100% - 30px); overflow:hidden; text-overflow:ellipsis;
}
.toast.show { opacity:1; transform:translate(-50%, 0); }

@media (max-width: 380px) {
  .summary-card { padding: 13px 8px; }
  .summary-card strong { font-size: 1.45rem; }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
}


/* AgroNet Manager V2 */
.revenue-main { min-width: 0; }
.revenue-growth {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,.72);
  font-size: .72rem;
}
.occupancy-ring {
  position: relative;
  width: 92px;
  height: 92px;
  flex: 0 0 92px;
}
.occupancy-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.occupancy-ring circle {
  fill: none;
  stroke-width: 9;
}
.ring-bg { stroke: rgba(255,255,255,.18); }
.ring-value {
  stroke: #f6d76e;
  stroke-linecap: round;
  stroke-dasharray: 263.89;
  stroke-dashoffset: 176.81;
}
.occupancy-ring > div {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.occupancy-ring strong {
  display: block;
  color: #f6d76e;
  font-size: 1.18rem;
}
.occupancy-ring span {
  display: block;
  margin-top: 2px;
  color: rgba(255,255,255,.72);
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.period-revenue {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: -10px 0 22px;
}
.period-revenue article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 10px;
  box-shadow: 0 8px 22px rgba(7,54,33,.055);
}
.period-revenue span {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  margin-bottom: 5px;
}
.period-revenue strong {
  font-size: .92rem;
}

.smart-brief {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: linear-gradient(135deg, #edf6ee, #fff9e8);
  border: 1px solid #dce9dd;
  border-radius: 19px;
  padding: 16px;
  margin-bottom: 22px;
}
.brief-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-content: center;
  border-radius: 14px;
  background: white;
  box-shadow: 0 8px 18px rgba(7,54,33,.08);
}
.smart-brief h3 {
  margin: 2px 0 5px;
  font-size: 1rem;
}
.smart-brief p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.45;
}

.fleet-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 83%;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.fleet-board::-webkit-scrollbar { display: none; }
.fleet-card {
  scroll-snap-align: start;
  min-height: 235px;
  border-radius: 22px;
  padding: 17px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.available-card {
  background: linear-gradient(180deg, #ffffff, #f4faf4);
}
.rented-card {
  background: linear-gradient(180deg, #fffefb, #fff6ec);
}
.fleet-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.fleet-card h4 {
  margin: 9px 0 0;
  font-size: 1.08rem;
}
.fleet-symbol {
  font-size: 1.75rem;
}
.status-pill {
  display: inline-block;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 850;
}
.available-pill {
  color: #176437;
  background: #e4f4e6;
}
.rented-pill {
  color: #9a4c19;
  background: #ffead6;
}
.fleet-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 28px 0 18px;
}
.fleet-meta div, .client-box {
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}
.fleet-meta span, .client-box span {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  margin-bottom: 4px;
}
.fleet-meta strong { font-size: .88rem; }
.client-box {
  margin: 24px 0 17px;
}
.client-box strong {
  display: block;
  font-size: 1rem;
}
.client-box small {
  display: block;
  color: #9a4c19;
  margin-top: 5px;
  font-weight: 750;
}
.fleet-primary, .fleet-secondary {
  width: 100%;
  border-radius: 13px;
  padding: 12px;
  font-weight: 850;
}
.fleet-primary {
  border: 0;
  color: white;
  background: var(--green-800);
}
.fleet-secondary {
  border: 1px solid #ecd7c6;
  color: #8b4b20;
  background: white;
}

@media (max-width: 380px) {
  .occupancy-ring { width: 80px; height: 80px; flex-basis: 80px; }
  .revenue-card h3 { font-size: 1.45rem; }
  .fleet-board { grid-auto-columns: 88%; }
}


/* AgroNet Manager V2.1 — operação de recarga */
.summary-card.charging .summary-icon { filter: saturate(1.15); }

.fleet-card.charging-card {
  background: linear-gradient(180deg, #fffef7, #fff8df);
  border-color: #f0deb0;
}
.fleet-card.unavailable-card {
  background: linear-gradient(180deg, #fbfbfb, #f0f1f0);
}
.charging-pill {
  color: #7b5a00;
  background: #fff0bd;
}
.unavailable-pill {
  color: #4f5752;
  background: #e8ebe9;
}
.battery-progress {
  height: 9px;
  margin-top: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5eae6;
}
.battery-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d7a51e, #68a92f);
}
.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
}
.status-menu-btn {
  min-width: 46px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 850;
}
.ready-button {
  width: 100%;
  border: 0;
  border-radius: 13px;
  padding: 12px;
  color: white;
  background: linear-gradient(135deg, var(--green-800), var(--green-500));
  font-weight: 850;
}

.status-options {
  display: grid;
  gap: 9px;
  margin: 14px 0;
}
.status-option {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafcf9;
}
.status-option input {
  width: 18px;
  margin: 0;
}
.status-option-icon { font-size: 1rem; }
.status-option strong,
.status-option small {
  display: block;
}
.status-option small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 500;
}

.checklist-box {
  display: grid;
  gap: 9px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fafcf9;
}
.checklist-box label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--text);
}
.checklist-box input {
  width: 18px;
  margin: 0;
}
.receive-result {
  margin: 12px 0;
  padding: 12px;
  border-radius: 13px;
  background: #fff4cf;
  color: #725400;
  font-size: .77rem;
  line-height: 1.4;
}


/* AgroNet Manager V3 — clientes e locações */
textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px;
  background: #fafcf9;
  color: var(--text);
  resize: vertical;
  font: inherit;
}
.inline-field {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: end;
}
.inline-field select { margin-top: 6px; }
.inline-add {
  width: 46px;
  min-width: 46px;
  height: 46px;
  border: 0;
  border-radius: 13px;
  color: white;
  background: var(--green-800);
  font-size: 1.25rem;
  font-weight: 850;
}
.list-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 12px;
}
.list-toolbar input { margin: 0; }

.entity-list {
  display: grid;
  gap: 10px;
  max-height: 62vh;
  overflow-y: auto;
  padding-right: 2px;
}
.entity-card {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 13px;
  background: #fafcf9;
}
.entity-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.entity-card h4 {
  margin: 0;
  font-size: .98rem;
}
.entity-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.4;
}
.entity-actions {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}
.entity-actions button {
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: .72rem;
  font-weight: 800;
}
.entity-actions .edit-btn {
  color: var(--green-800);
  background: #eaf3eb;
}
.entity-actions .history-btn {
  color: #765500;
  background: #fff2c8;
}
.entity-actions .danger-btn {
  color: #8c3029;
  background: #fde8e6;
}
.client-stat {
  min-width: 58px;
  text-align: center;
  padding: 8px 7px;
  border-radius: 12px;
  background: #edf5ee;
}
.client-stat strong,
.client-stat span {
  display: block;
}
.client-stat strong { color: var(--green-800); }
.client-stat span {
  margin-top: 2px;
  color: var(--muted);
  font-size: .58rem;
  text-transform: uppercase;
}
.empty-state {
  padding: 28px 12px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 16px;
}
.rental-status {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 850;
}
.rental-active {
  color: #9a4c19;
  background: #ffead6;
}
.rental-finished {
  color: #176437;
  background: #e4f4e6;
}


/* AgroNet Manager Cloud Simples */
.cloud-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 3px 0 12px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255,255,255,.75);
  font-size: .69rem;
  font-weight: 750;
}
.cloud-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #d0a21c;
  box-shadow: 0 0 0 4px rgba(208,162,28,.12);
}
.cloud-status.online .cloud-dot {
  background: #3d9c54;
  box-shadow: 0 0 0 4px rgba(61,156,84,.12);
}
.cloud-status.error {
  color: #8a382f;
  border-color: #f0c8c3;
  background: #fff5f3;
}
.cloud-status.error .cloud-dot {
  background: #c64c40;
  box-shadow: 0 0 0 4px rgba(198,76,64,.12);
}
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(247,250,247,.82);
  backdrop-filter: blur(7px);
}
.loading-overlay[hidden] { display: none; }
.loading-card {
  width: min(320px, 100%);
  padding: 22px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  box-shadow: 0 20px 60px rgba(20,60,35,.14);
}
.loading-card strong,
.loading-card span { display: block; }
.loading-card span {
  margin-top: 6px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.4;
}
.sync-spinner {
  width: 31px;
  height: 31px;
  margin: 0 auto 12px;
  border: 3px solid #dfe9e0;
  border-top-color: var(--green-700);
  border-radius: 50%;
  animation: cloudspin .8s linear infinite;
}
@keyframes cloudspin { to { transform: rotate(360deg); } }


/* Identificação visual da versão */
.app-version {
  margin: 28px 18px 110px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  color: #6f7d73;
  font-size: .68rem;
  text-align: center;
}
.app-version strong {
  color: #1c6b3a;
  font-size: .72rem;
}
.app-version small {
  width: 100%;
  opacity: .75;
  font-size: .62rem;
}


/* V1.5 — seleção de equipamento disponível */
.field-help {
  display: block;
  margin: 7px 2px 0;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.35;
  font-weight: 600;
}
#rentalEquipment option:disabled {
  color: #9aa39c;
}


/* V1.6 — frota, financeiro e histórico */
.compact-action {
  margin-bottom: 14px;
  padding-block: 12px;
}
.manager-list {
  max-height: 54vh;
}
.equipment-status-line {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 7px;
}
.equipment-status-line span {
  font-size: .72rem;
  color: var(--muted);
}
.financial-filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-bottom: 14px;
}
.financial-filters button {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 4px;
  background: #f7faf7;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 800;
}
.financial-filters button.active {
  border-color: var(--green-800);
  color: white;
  background: var(--green-800);
}
.financial-summary {
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--green-950), var(--green-650));
}
.financial-summary span,
.financial-summary strong,
.financial-summary small {
  display: block;
}
.financial-summary span {
  opacity: .78;
  font-size: .72rem;
}
.financial-summary strong {
  margin-top: 5px;
  font-size: 1.65rem;
}
.financial-summary small {
  margin-top: 4px;
  opacity: .82;
}
.rental-delete {
  color: #8c3029 !important;
  background: #fde8e6 !important;
}

.contract-prompt-card{text-align:center;max-width:430px}.contract-success-icon{width:68px;height:68px;margin:0 auto 16px;border-radius:50%;display:grid;place-items:center;background:#e5f4e9;color:#14753f;font-size:38px;font-weight:800}.contract-prompt-card>p{color:#69776f;font-size:1.05rem;margin:8px 0 22px}.contract-prompt-actions{display:grid;grid-template-columns:1fr 1.4fr;gap:12px}.secondary-wide{border:1px solid #d6dfd9;background:#fff;color:#365046;border-radius:18px;padding:17px;font-weight:800;font-size:1rem}.contract-prompt-actions .primary-wide{margin:0}


/* Evita o zoom automático do Safari no iPhone ao focar campos. */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}


/* Renovação de locação */
.renewal-summary{display:flex;flex-direction:column;gap:4px;padding:14px;border:1px solid var(--line,#dce5df);border-radius:16px;background:#f7faf8;margin-bottom:4px}.renewal-summary strong{font-size:18px}.renewal-summary span{color:#68766e}.field-help{display:block;color:#75827b;line-height:1.4;margin-top:-4px}.renewal-history{display:flex;flex-direction:column;gap:5px;padding:11px 13px;border-radius:13px;background:#f4f8f5;margin-top:10px}.renewal-history strong{color:#126338}.renewal-history small{color:#637168}.entity-actions{flex-wrap:wrap}


.data-tools {
  margin: 22px 16px 96px;
  padding: 14px 15px;
  border: 1px solid #dfe8e3;
  border-radius: 14px;
  background: rgba(255,255,255,.72);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #5d6d65;
}
.data-tools > div:first-child { display:flex; flex-direction:column; gap:3px; min-width:0; }
.data-tools strong { color:#315244; font-size:.82rem; font-weight:700; }
.data-tools span { font-size:.7rem; line-height:1.3; }
.data-tools-actions { display:flex; gap:7px; flex-shrink:0; }
.data-tools button {
  border:1px solid #cfdcd5; background:#fff; color:#315244; border-radius:9px;
  padding:8px 9px; font-size:.72rem; font-weight:700; white-space:nowrap;
}
.data-tools button:active { transform:scale(.98); }
@media (max-width:420px) {
  .data-tools { align-items:flex-start; flex-direction:column; }
  .data-tools-actions { width:100%; }
  .data-tools button { flex:1; }
}


/* Perfis de acesso e usuários */
[hidden] { display: none !important; }
.user-card p { margin: 5px 0 0; color: #6c7972; font-size: .82rem; }
.user-active-row { display:flex !important; flex-direction:row !important; align-items:center; gap:10px; }
.user-active-row input { width:20px; height:20px; margin:0; }
#passwordHint { color:#7a867f; font-weight:500; }

body[data-role='collaborator'] .quick-actions { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 420px) { body[data-role='collaborator'] .quick-actions { grid-template-columns: repeat(3, 1fr); } }

/* v1.8.1: navegação e conferência de senha de usuários */
.user-password-field { display:flex; align-items:center; width:100%; position:relative; }
.user-password-field input { width:100%; padding-right:92px; }
.user-password-field button { position:absolute; right:14px; border:0; background:transparent; color:var(--green-800); font-weight:800; font-size:.82rem; padding:10px 0; }
body[data-role="collaborator"] #usersNavButton { display:none !important; }


.rental-operator { margin-top: 8px; font-size: 0.9rem; color: #5f7068; }
.rental-operator strong { color: #184f38; }


.status-lock-notice {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #ead7aa;
  border-radius: 14px;
  background: #fff8e8;
  color: #72510d;
  font-size: 14px;
  line-height: 1.4;
}

.status-option:has(input:disabled) {
  opacity: .45;
  pointer-events: none;
}
