:root {
  --primary: #c99a45;
  --primary-dark: #080a0e;
  --ink: #e9ebef;
  --muted: #a7adb7;
  --line: #303642;
  --soft: #080a0e;
  --white: #151922;
  --success: #20a45b;
  --warning: #d99c36;
  --danger: #df5555;
  --info: #78a9d9;
  --metal: #d9dce2;
  --panel: #121720;
  --panel-soft: #1b202a;
  --gold-soft: #302412;
  --accent-yellow: #f3d158;
  --accent-orange: #f28a2e;
  --accent-blue: #3da2ff;
  --accent-green: #31c56f;
  --accent-red: #f15b5b;
  --radius: 8px;
  --shadow: 0 18px 46px rgba(0, 0, 0, .32);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(201,154,69,.14), transparent 30rem),
    linear-gradient(180deg, #11151d 0%, #080a0e 34%, #0b0e13 100%),
    var(--soft);
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--metal);
}

.brand-logo {
  width: 72px;
  height: 46px;
  object-fit: contain;
  padding: 3px;
  background: #f7f7f7;
  border-radius: 8px;
  border: 1px solid rgba(217,220,226,.42);
  box-shadow: 0 10px 24px rgba(0,0,0,.28);
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #16110a;
  letter-spacing: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px clamp(16px, 5vw, 64px);
  background: rgba(8, 10, 14, .94);
  border-bottom: 1px solid rgba(217,220,226,.12);
  backdrop-filter: blur(10px);
}

.site-header .brand,
.site-header .site-nav {
  color: var(--metal);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--primary);
}

.hero {
  min-height: 680px;
  display: grid;
  align-items: end;
  padding: 96px clamp(16px, 5vw, 72px) 48px;
  color: var(--metal);
  background:
    linear-gradient(180deg, rgba(8, 10, 14, .24) 0%, rgba(8, 10, 14, .82) 52%, rgba(8, 10, 14, 1) 100%),
    linear-gradient(145deg, #171d28 0%, #080a0e 64%, #111722 100%);
}

.hero-content {
  width: min(720px, 100%);
}

.hero-logo {
  width: min(340px, 82vw);
  margin-bottom: 18px;
  padding: 8px;
  background: #f7f7f7;
  border-radius: 8px;
  border: 1px solid rgba(217,220,226,.52);
  box-shadow: 0 20px 48px rgba(0,0,0,.34);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #f3d58d;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 13px;
}

.eyebrow-dark {
  color: #f3d58d;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(36px, 7vw, 68px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
}

.lead {
  max-width: 640px;
  color: rgba(255,255,255,.88);
  font-size: 20px;
}

.hero-actions,
.actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-actions {
  margin-top: 28px;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  background: var(--primary);
  color: #16110a;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(201,154,69,.18);
}

.button:hover {
  filter: brightness(.95);
}

.button-light {
  background: var(--metal);
  color: var(--primary-dark);
}

.button-success {
  background: var(--success);
  color: #f7fff9;
}

.button-danger {
  background: var(--danger);
  color: #fff7f7;
}

.button-warning {
  background: var(--warning);
  color: #231707;
}

.button-ghost {
  background: transparent;
  color: #e5c987;
  border: 1px solid var(--line);
  box-shadow: none;
}

.site-header .button-ghost,
.hero .button-ghost {
  border-color: rgba(255,255,255,.28);
  color: var(--metal);
}

.hero-secondary-link {
  display: inline-flex;
  margin-top: 16px;
  color: rgba(255,255,255,.82);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.section {
  padding: 46px clamp(16px, 5vw, 72px);
}

.section-muted {
  background: #0b0e13;
  border-block: 1px solid rgba(217,220,226,.08);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.grid-2 > * {
  min-width: 0;
}

.card,
.metric,
.form-card,
.table-card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--box-accent, var(--accent-yellow));
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 44%),
    var(--panel);
  box-shadow: var(--shadow);
}

.card {
  padding: 18px;
  --box-accent: var(--accent-yellow);
}

.metric {
  padding: 18px;
  --box-accent: var(--accent-orange);
  border-left: 5px solid var(--box-accent);
}

.grid .metric:nth-child(4n + 1) {
  --box-accent: var(--accent-blue);
}

.grid .metric:nth-child(4n + 2) {
  --box-accent: var(--accent-green);
}

.grid .metric:nth-child(4n + 3) {
  --box-accent: var(--accent-orange);
}

.grid .metric:nth-child(4n + 4) {
  --box-accent: var(--accent-yellow);
}

.metric strong {
  display: block;
  font-size: 28px;
}

.metric span,
.muted {
  color: var(--muted);
}

.form-card,
.table-card {
  padding: 18px;
  margin-bottom: 18px;
}

.form-card {
  --box-accent: var(--accent-green);
}

.table-card {
  --box-accent: var(--accent-blue);
}

.grid-2 > .table-card:nth-child(4n + 1),
.grid-2 > .form-card:nth-child(4n + 1) {
  --box-accent: var(--accent-blue);
}

.grid-2 > .table-card:nth-child(4n + 2),
.grid-2 > .form-card:nth-child(4n + 2) {
  --box-accent: var(--accent-green);
}

.grid-2 > .table-card:nth-child(4n + 3),
.grid-2 > .form-card:nth-child(4n + 3) {
  --box-accent: var(--accent-orange);
}

.grid-2 > .table-card:nth-child(4n + 4),
.grid-2 > .form-card:nth-child(4n + 4) {
  --box-accent: var(--accent-yellow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: #0d1118;
}

select option {
  background: #0d1118;
  color: var(--ink);
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--primary) 28%, transparent);
  border-color: var(--primary);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 100%;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--service-accent, var(--accent-blue)) 42%, #3b4048);
  border-top: 3px solid var(--service-accent, var(--accent-blue));
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 42%),
    #141922;
  color: var(--metal);
  box-shadow: var(--shadow);
}

.service-card:nth-child(4n + 1) {
  --service-accent: var(--accent-yellow);
}

.service-card:nth-child(4n + 2) {
  --service-accent: var(--accent-orange);
}

.service-card:nth-child(4n + 3) {
  --service-accent: var(--accent-blue);
}

.service-card:nth-child(4n + 4) {
  --service-accent: var(--accent-green);
}

.service-card h3 {
  color: var(--metal);
}

.service-card .muted {
  color: rgba(255,255,255,.74);
}

.service-kicker {
  display: inline-flex;
  margin-bottom: 10px;
  border-radius: 999px;
  padding: 5px 10px;
  background: color-mix(in srgb, var(--service-accent, var(--primary)) 20%, transparent);
  color: color-mix(in srgb, var(--service-accent, #ffd98c) 82%, #fff);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.price-list {
  display: grid;
  gap: 8px;
}

.price-list span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #ffe1a1;
  font-weight: 900;
}

.price-list small {
  color: rgba(255,255,255,.72);
  font-weight: 800;
}

.feature-split {
  align-items: center;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.feature-pills span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--panel-soft);
  color: var(--metal);
  font-weight: 800;
  font-size: 13px;
}

.price-board {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #252a34;
  box-shadow: var(--shadow);
}

.price-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: #15110a;
  color: #f3d58d;
  font-weight: 800;
}

.price-preview.active {
  border-color: #8b6a32;
  background: var(--gold-soft);
}

.alert {
  margin-bottom: 16px;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 700;
}

.alert-sucesso {
  background: #0d2b1a;
  color: #8fe0ae;
  border: 1px solid rgba(143,224,174,.28);
}

.alert-erro {
  background: #341313;
  color: #ffb2b2;
  border: 1px solid rgba(255,178,178,.26);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.badge-info {
  background: #152437;
  color: #a9d2ff;
}

.badge-success {
  background: #10291c;
  color: #8fe0ae;
}

.badge-warning {
  background: #352710;
  color: #f2c267;
}

.badge-danger {
  background: #351515;
  color: #ff9f9f;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: #bfc4cd;
  font-size: 12px;
  text-transform: uppercase;
}

tr:hover td {
  background: rgba(255,255,255,.025);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.pagination-info {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.pagination .disabled {
  opacity: .45;
  pointer-events: none;
}

.mensalista-list {
  display: grid;
  gap: 14px;
}

.mensalista-card {
  --box-accent: var(--accent-blue);
  border: 1px solid var(--line);
  border-left: 5px solid var(--box-accent);
  border-radius: var(--radius);
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 52%),
    var(--panel-soft);
}

.mensalista-card:nth-child(4n + 1) {
  --box-accent: var(--accent-blue);
}

.mensalista-card:nth-child(4n + 2) {
  --box-accent: var(--accent-green);
}

.mensalista-card:nth-child(4n + 3) {
  --box-accent: var(--accent-orange);
}

.mensalista-card:nth-child(4n + 4) {
  --box-accent: var(--accent-yellow);
}

.mensalista-card .section-head {
  align-items: flex-start;
  margin-bottom: 12px;
}

.mensalista-card h3 {
  font-size: 28px;
  letter-spacing: .04em;
}

.mensalista-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.mensalista-details span {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  background: rgba(255,255,255,.025);
}

.mensalista-details strong {
  color: var(--ink);
  font-size: 15px;
}

.mensalidade-actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.subscription-card,
.subscription-mini {
  border: 1px solid rgba(255,255,255,.1);
  border-left: 5px solid var(--accent-green);
  border-radius: var(--radius);
  background: rgba(49,197,111,.08);
}

.subscription-card {
  padding: 14px;
}

.subscription-card .section-head {
  align-items: flex-start;
  margin-bottom: 10px;
}

.subscription-mini {
  display: grid;
  gap: 2px;
  margin-top: 10px;
  padding: 9px 10px;
  color: #8fe0ae;
  font-size: 12px;
  font-weight: 800;
}

.subscription-mini span {
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(16px, 5vw, 64px);
  color: var(--muted);
  background: #080a0e;
  border-top: 1px solid var(--line);
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  background:
    radial-gradient(circle at top right, rgba(201,154,69,.09), transparent 28rem),
    #080a0e;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 36%),
    #080a0e;
  color: var(--metal);
  border-right: 1px solid rgba(217,220,226,.1);
}

.sidebar .brand {
  color: var(--metal);
  margin-bottom: 18px;
}

.side-nav {
  display: grid;
  gap: 4px;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 8px;
  padding: 9px 10px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.side-nav a.active,
.side-nav a:hover {
  background: rgba(255,255,255,.12);
  color: var(--metal);
}

.nav-group {
  display: grid;
  gap: 4px;
}

.nav-group summary {
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 8px;
  padding: 9px 10px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group[open] summary,
.nav-group summary:hover {
  background: rgba(255,255,255,.12);
  color: var(--metal);
}

.nav-subitems {
  display: grid;
  gap: 2px;
  padding-left: 20px;
}

.side-nav .nav-subitems a {
  padding: 7px 9px;
  font-size: 12.5px;
}

.nav-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  border: 2px solid currentColor;
  border-radius: 5px;
  opacity: .9;
}

.icon-in {
  border-left-width: 6px;
}

.icon-out {
  border-right-width: 6px;
}

.icon-cal {
  border-top-width: 6px;
}

.icon-cash {
  border-radius: 999px;
}

.icon-chart {
  border-top: 0;
  border-right: 0;
}

.icon-car {
  border-radius: 999px 999px 5px 5px;
}

.icon-gear {
  border-style: dashed;
  border-radius: 999px;
}

.icon-msg {
  border-radius: 5px;
  border-bottom-width: 6px;
}

.icon-home {
  border-radius: 7px 7px 4px 4px;
  border-bottom-width: 6px;
}

.icon-park {
  position: relative;
}

.icon-park::after {
  content: "P";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.admin-main {
  min-width: 0;
}

.admin-top {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px;
  background: rgba(10, 13, 18, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.admin-top div {
  display: grid;
}

.admin-top span {
  color: var(--muted);
  font-size: 13px;
}

.page {
  width: min(1260px, 100%);
  padding: 22px;
  margin: 0 auto;
}

.menu-toggle {
  display: none;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  color: var(--metal);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.icon-button .eye-icon {
  position: relative;
  width: 20px;
  height: 14px;
  margin: 0 auto;
  border: 2px solid currentColor;
  border-radius: 999px / 70%;
  background: transparent;
}

.icon-button .eye-icon::after {
  content: "";
  position: absolute;
  inset: 3px 6px;
  border-radius: 999px;
  background: currentColor;
}

.icon-button.active {
  color: #f3d58d;
  border-color: #8b6a32;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.inline-status-form {
    margin: 0;
}

.status-select {
    min-width: 118px;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.38rem 1.8rem 0.38rem 0.7rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.status-select:focus {
    outline: 2px solid var(--primary, #2563eb);
    outline-offset: 2px;
}

.status-select.status-success {
    background: #10291c;
    color: #8fe0ae;
}

.status-select.status-warning {
    background: #352710;
    color: #f2c267;
}

.status-select.status-danger {
    background: #351515;
    color: #ff9f9f;
}

.status-select.status-info {
    background: #152437;
    color: #a9d2ff;
}

.search-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.receipt {
  width: min(520px, 100%);
  margin: 0 auto 20px;
  background: var(--panel);
  border: 1px dashed var(--muted);
  padding: 22px;
}

.app-home {
  display: grid;
  gap: 18px;
}

.app-greeting {
  padding: 6px 2px 2px;
}

.app-greeting h2 {
  margin-bottom: 8px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.quick-action {
  min-height: 190px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  border-radius: var(--radius);
  padding: 20px;
  color: #fff;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.quick-action::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), transparent 44%),
    radial-gradient(circle at 86% 18%, rgba(255,255,255,.2), transparent 8rem);
  pointer-events: none;
}

.quick-action span,
.quick-action strong,
.quick-action small {
  position: relative;
  z-index: 1;
}

.quick-action span {
  font-size: 18px;
  font-weight: 900;
}

.quick-action strong {
  font-size: clamp(42px, 8vw, 70px);
  line-height: .9;
}

.quick-action small {
  color: rgba(255,255,255,.84);
  font-weight: 800;
}

.quick-action-green {
  background: linear-gradient(145deg, #1da65b, #0f5b34);
}

.quick-action-blue {
  background: linear-gradient(145deg, #2d8fda, #123b67);
}

.quick-action-red {
  background: linear-gradient(145deg, #df5555, #7f1f24);
}

.app-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.price-editor {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.025);
}

.service-price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.price-fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0d1118;
}

.price-fieldset legend {
  padding: 0 6px;
  color: #f3d58d;
  font-weight: 900;
}

.bottom-nav {
  display: none;
}

.password-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
}

.plate-search {
  position: relative;
  z-index: 4;
}

.plate-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 25;
  display: grid;
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--accent-blue) 54%, var(--line));
  border-radius: var(--radius);
  background: #0d1118;
  box-shadow: var(--shadow);
}

.plate-suggestions[hidden] {
  display: none;
}

.plate-suggestion {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--panel-soft);
  text-align: left;
  cursor: pointer;
}

.plate-suggestion:hover {
  border-color: var(--accent-blue);
  background: #172132;
}

.plate-suggestion strong {
  color: #b9dcff;
  font-size: 15px;
}

.plate-suggestion span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.check-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.check-grid input {
  width: auto;
}

.service-cell {
  min-width: 260px;
}

.service-editor {
  margin-top: 10px;
}

.service-editor-wide {
  margin: 16px 0 20px;
}

.service-editor summary {
  width: fit-content;
  cursor: pointer;
  color: #b9dcff;
  font-weight: 900;
}

.service-editor[open] summary {
  margin-bottom: 12px;
}

.service-editor form {
  display: grid;
  min-width: 320px;
  gap: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel-soft);
}

.service-editor-wide form {
  min-width: 0;
}

.service-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  max-height: 280px;
  gap: 8px;
  overflow-y: auto;
}

.service-option-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255,255,255,.025);
  font-weight: 700;
}

.service-option-grid input {
  width: auto;
  flex: 0 0 auto;
}

.service-editor-footer {
  display: flex;
  align-items: end;
  gap: 12px;
}

.service-editor-footer label {
  width: min(260px, 100%);
}

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.placeholder-grid span {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(255,255,255,.025);
}

.placeholder-grid code {
  color: #b9dcff;
  font-weight: 900;
}

.placeholder-grid small,
.message-preview {
  color: var(--muted);
}

.message-template {
  min-height: 180px;
}

.button.disabled,
.button[aria-disabled="true"] {
  pointer-events: none;
  opacity: .55;
}

.company-directory-hero,
.company-detail-hero {
  min-height: 540px;
  background:
    radial-gradient(circle at 80% 15%, color-mix(in srgb, var(--company-color, var(--primary)) 24%, transparent), transparent 30rem),
    linear-gradient(145deg, #171d28 0%, #080a0e 64%, #111722 100%);
}

.company-detail-hero {
  border-bottom: 3px solid var(--company-color, var(--primary));
}

.company-directory-grid,
.company-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.company-directory-card,
.company-admin-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--company-color, var(--line)) 45%, var(--line));
  border-top: 3px solid var(--company-color, var(--primary));
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.035), transparent), var(--panel);
  box-shadow: 0 16px 36px rgba(0,0,0,.2);
}

.company-directory-card > img,
.company-admin-card > img,
.logo-setting-preview img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  padding: 10px;
  border-radius: var(--radius);
  background: #f7f7f7;
}

.company-directory-content {
  min-height: 118px;
}

.company-directory-actions,
.company-card-title,
.logo-setting-preview,
.check-inline {
  display: flex;
  align-items: center;
  gap: 12px;
}

.company-directory-actions {
  align-items: stretch;
  flex-wrap: wrap;
  margin-top: auto;
}

.company-directory-actions .button {
  flex: 1 1 140px;
}

.company-card-title {
  justify-content: space-between;
  align-items: flex-start;
}

.company-card-title h3 {
  margin: 0;
}

.logo-setting-preview {
  align-items: flex-start;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.025);
}

.logo-setting-preview img {
  width: min(300px, 100%);
  height: 140px;
}

.check-inline {
  flex-direction: row;
  font-weight: 800;
}

.check-inline input {
  width: auto;
  flex: 0 0 auto;
}

.subsection-head {
  margin: 26px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
}

/* Relatórios acionáveis */
.grid-2 > .table-card.report-pending-card {
  --box-accent: var(--accent-orange);
}

.report-card-head {
  align-items: center;
  margin-bottom: 10px;
}

.report-card-head h3,
.report-card-head p {
  margin: 0;
}

.report-card-head p {
  margin-top: 4px;
  font-size: 12px;
}

.report-card-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255, 184, 107, .42);
  border-radius: 8px;
  padding: 8px 12px;
  background: rgba(255, 139, 47, .11);
  color: #ffd29d;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.report-card-action:hover {
  border-color: rgba(255, 184, 107, .72);
  background: rgba(255, 139, 47, .18);
  color: #fff0dd;
}

.report-row-link {
  color: var(--metal);
  font-weight: 800;
  text-decoration-color: rgba(255, 210, 157, .38);
  text-underline-offset: 3px;
}

.report-row-link:hover {
  color: #ffd29d;
  text-decoration: underline;
}

.report-status-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  text-decoration: none;
}

.report-card-action:focus-visible,
.report-row-link:focus-visible,
.report-status-link:focus-visible {
  outline: 2px solid #ffd29d;
  outline-offset: 3px;
}

/* Fluxo de caixa */
.finance-page-head {
  align-items: flex-start;
}

.cash-summary-grid {
  margin-bottom: 18px;
}

.cash-summary-grid small,
.cash-table small,
.finance-category-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.cash-metric-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: #a9d2ff;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.cash-metric-link:hover,
.cash-forecast-list a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.finance-positive {
  color: #8fe0ae;
}

.finance-negative {
  color: #ff9f9f;
}

.cash-overdue-alert {
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #ffb8b8;
  text-decoration: none;
}

.cash-overdue-alert strong {
  flex: 0 0 auto;
  color: #fff;
}

.cash-overdue-alert:hover {
  border-color: rgba(241, 91, 91, .62);
  background: #4a1919;
}

.cash-quick-filters,
.cash-active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cash-quick-filters {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.cash-quick-filters > strong,
.cash-active-filters > strong {
  margin-right: 2px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.cash-filter-shortcut,
.cash-filter-chip {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
  color: rgba(255,255,255,.8);
  background: #0d1118;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.cash-filter-shortcut:hover,
.cash-filter-shortcut.active,
.cash-filter-chip:hover {
  border-color: rgba(201,154,69,.65);
  background: rgba(201,154,69,.12);
  color: #ffe1a6;
}

.cash-filter-shortcut.active {
  box-shadow: inset 0 0 0 1px rgba(201,154,69,.18);
}

.cash-active-filters {
  margin-bottom: 16px;
}

.cash-filter-chip {
  min-height: 30px;
  padding: 5px 10px;
  border-color: rgba(61,162,255,.3);
  background: rgba(61,162,255,.08);
  color: #b9dcff;
}

.cash-filter-chip.is-static {
  cursor: default;
}

.cash-overdue-check {
  min-height: 46px;
  align-self: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #0d1118;
}

.cash-visual-grid {
  align-items: stretch;
}

.cash-chart-card,
.cash-forecast-card {
  min-height: 260px;
}

.cash-chart {
  min-height: 160px;
  display: flex;
  align-items: stretch;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 2px 0;
  border-bottom: 1px solid var(--line);
}

.cash-chart-day {
  min-width: 42px;
  flex: 1 0 42px;
  display: grid;
  grid-template-rows: 130px auto;
  gap: 7px;
  text-align: center;
}

.cash-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 4px;
}

.cash-bar {
  width: 12px;
  min-height: 0;
  border-radius: 5px 5px 2px 2px;
}

.cash-bar.is-entry,
.cash-chart-legend i.is-entry {
  background: #31c56f;
}

.cash-bar.is-exit,
.cash-chart-legend i.is-exit {
  background: #df5555;
}

.cash-chart-day small {
  color: var(--muted);
  font-size: 11px;
}

.cash-chart-legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.cash-chart-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cash-chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.cash-forecast-list {
  display: grid;
  gap: 4px;
  margin: 0;
}

.cash-forecast-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.cash-forecast-list dd {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.cash-forecast-list a {
  text-decoration: none;
}

.finance-table-head {
  align-items: flex-start;
}

.cash-row-entrada td:first-child {
  border-left: 4px solid #31c56f;
}

.cash-row-saida td:first-child {
  border-left: 4px solid #df5555;
}

.finance-category-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 999px;
  background: var(--category-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--category-color) 24%, transparent);
}

.finance-compact-button,
button.finance-compact-button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}

.finance-row-actions {
  min-width: 220px;
}

.cash-type-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cash-type {
  cursor: pointer;
}

.cash-type input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.cash-type span {
  display: grid;
  gap: 3px;
  min-height: 84px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: #0d1118;
  transition: border-color .15s ease, background .15s ease;
}

.cash-type span small {
  color: var(--muted);
}

.cash-type-entry input:checked + span {
  border-color: #31c56f;
  background: rgba(49,197,111,.1);
}

.cash-type input:focus-visible + span {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.cash-type-exit input:checked + span {
  border-color: #df5555;
  background: rgba(223,85,85,.1);
}

.cash-payment-condition {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cash-payment-condition legend {
  padding: 0 6px;
  font-weight: 900;
}

.cash-payment-condition > label {
  grid-template-columns: auto 1fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
}

.cash-payment-condition > label input[type="radio"] {
  width: auto;
}

.cash-payment-condition > label span {
  display: grid;
  gap: 2px;
}

.cash-payment-condition small {
  color: var(--muted);
}

.cash-installment-preview,
.cash-form-note {
  grid-column: 1 / -1;
  border: 1px solid rgba(169,210,255,.2);
  border-radius: 8px;
  padding: 11px 12px;
  background: #152437;
  color: #a9d2ff;
  font-weight: 800;
}

.finance-category-layout,
.finance-category-list {
  display: grid;
  gap: 16px;
}

.finance-category-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: #0d1118;
}

.finance-category-item.is-inactive {
  opacity: .62;
}

.finance-category-swatch {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--category-color);
}

.finance-color-input {
  min-height: 46px;
  padding: 5px;
}

@media (max-width: 880px) {
  .cash-overdue-alert {
    align-items: flex-start;
    flex-direction: column;
  }

  .cash-quick-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: thin;
  }

  .cash-quick-filters > strong {
    position: sticky;
    left: 0;
    z-index: 1;
    padding-right: 6px;
    background: var(--panel);
  }

  .cash-table-wrap {
    overflow: visible;
  }

  .cash-table,
  .cash-table tbody {
    display: block;
    width: 100%;
  }

  .cash-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .cash-table tbody {
    display: grid;
    gap: 12px;
  }

  .cash-table tr.cash-row {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: #0d1118;
  }

  .cash-table tr.cash-row-entrada {
    border-left: 4px solid #31c56f;
  }

  .cash-table tr.cash-row-saida {
    border-left: 4px solid #df5555;
  }

  .cash-table tr.cash-row td {
    min-width: 0;
    display: block;
    padding: 10px 11px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    background: transparent;
  }

  .cash-table tr.cash-row td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .cash-table tr.cash-row td:nth-child(2),
  .cash-table tr.cash-row td:nth-child(5),
  .cash-table tr.cash-row td:nth-child(7) {
    grid-column: 1 / -1;
  }

  .cash-table tr.cash-row td:last-child {
    border-bottom: 0;
  }

  .cash-row-entrada td:first-child,
  .cash-row-saida td:first-child {
    border-left: 0;
  }

  .cash-table .status-select,
  .cash-table .inline-status-form {
    width: 100%;
  }

  .cash-table .finance-row-actions {
    min-width: 0;
    width: 100%;
  }

  .cash-table .cash-empty-row,
  .cash-table .cash-empty-row td {
    display: block;
    width: 100%;
  }

  .report-card-action {
    width: 100%;
  }

  .finance-page-head,
  .finance-table-head {
    align-items: stretch;
    flex-direction: column;
  }

  .cash-visual-grid,
  .cash-type-toggle,
  .cash-payment-condition {
    grid-template-columns: 1fr;
  }

  .finance-category-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .finance-category-item .inline-actions {
    grid-column: 1 / -1;
  }
}

.whatsapp-composer {
  border-top: 3px solid var(--accent-green);
}

.whatsapp-composer .actions {
  align-items: center;
}

.parking-ticket {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  margin-bottom: 18px;
}

.parking-ticket-main,
.parking-ticket-qr,
.parking-summary > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.parking-ticket-main,
.parking-ticket-qr {
  padding: 20px;
}

.parking-ticket-code {
  width: fit-content;
  margin: 14px 0 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-left: 5px solid var(--accent-blue);
  border-radius: var(--radius);
  padding: 10px 14px;
  background: var(--panel-soft);
  color: #b9dcff;
  font-size: 24px;
  font-weight: 900;
}

.parking-ticket-grid,
.parking-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.parking-ticket-grid p,
.parking-summary p {
  margin: 0;
}

.parking-ticket-grid strong,
.parking-summary strong,
.parking-value span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.parking-ticket-grid span,
.parking-summary span {
  display: block;
  color: var(--ink);
  font-weight: 900;
}

.parking-ticket-qr {
  display: grid;
  align-content: start;
  gap: 14px;
  text-align: center;
}

.parking-access-code {
  display: block;
  border: 1px solid rgba(255,255,255,.12);
  border-left: 5px solid var(--accent-green);
  border-radius: var(--radius);
  padding: 18px 16px;
  background: #0d1118;
  color: #8fe0ae;
  font-size: clamp(42px, 9vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}

.parking-code-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.parking-photo {
  max-height: 280px;
  margin-top: 18px;
  border-radius: var(--radius);
  object-fit: cover;
}

.parking-summary {
  margin: 0 0 18px;
}

.parking-summary > div {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.parking-value {
  border-left: 5px solid var(--accent-green) !important;
}

.parking-value strong {
  color: #8fe0ae;
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1;
}

.check-stack {
  display: grid;
  align-content: center;
  gap: 10px;
}

@media (max-width: 880px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 14px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
  }

  .hero {
    min-height: 640px;
    padding: 96px 16px 34px;
    background-position: center top;
  }

  .hero-logo {
    width: min(230px, 78vw);
  }

  .lead {
    font-size: 17px;
  }

  .hero-actions,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .company-directory-actions,
  .company-card-title {
    flex-direction: column;
  }

  .hero-actions .button,
  .actions .button,
  .actions button.button,
  .pagination .button {
    width: 100%;
  }

  .pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .grid-2,
  .form-grid,
  .service-grid,
  .quick-actions,
  .parking-ticket {
    grid-template-columns: 1fr;
  }

  .quick-action {
    min-height: 150px;
  }

  .section {
    padding: 34px 14px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .admin-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 278px;
    transform: translateX(-100%);
    transition: transform .2s ease;
    z-index: 30;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow);
  }

  .menu-toggle {
    display: block;
  }

  .page {
    padding: 16px 14px 86px;
  }

  .admin-top {
    padding: 12px 14px;
  }

  .bottom-nav {
    position: fixed;
    z-index: 20;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: rgba(17, 21, 29, .96);
    border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 -12px 34px rgba(0,0,0,.16);
  }

  .bottom-nav a {
    min-height: 64px;
    display: grid;
    place-items: center;
    border-top: 3px solid transparent;
    color: rgba(255,255,255,.78);
    font-size: 12px;
    font-weight: 900;
  }

  .bottom-nav a:hover {
    color: #ffd98c;
  }

  .bottom-nav a.active {
    color: #ffd98c;
    background: rgba(255,255,255,.08);
  }

  .bottom-nav a.bottom-nav-green {
    border-top-color: var(--accent-green);
    color: #8fe0ae;
  }

  .bottom-nav a.bottom-nav-blue {
    border-top-color: var(--accent-blue);
    color: #a9d2ff;
  }

  .bottom-nav a.bottom-nav-red {
    border-top-color: var(--accent-red);
    color: #ffaaaa;
  }

  .bottom-nav a.bottom-nav-green:hover,
  .bottom-nav a.bottom-nav-green.active {
    background: rgba(49,197,111,.16);
  }

  .bottom-nav a.bottom-nav-blue:hover,
  .bottom-nav a.bottom-nav-blue.active {
    background: rgba(61,162,255,.16);
  }

  .bottom-nav a.bottom-nav-red:hover,
  .bottom-nav a.bottom-nav-red.active {
    background: rgba(241,91,91,.16);
  }

  .search-bar {
    grid-template-columns: 1fr;
  }

  .service-editor form {
    min-width: 260px;
  }

  .service-editor-wide form {
    min-width: 0;
  }

  .service-editor-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .parking-ticket-main,
  .parking-ticket-qr {
    padding: 16px;
  }

  th,
  td {
    padding: 10px 8px;
  }
}

@media print {
  .sidebar,
  .admin-top,
  .bottom-nav,
  .no-print {
    display: none !important;
  }

  .admin-shell,
  .admin-main,
  .page {
    display: block;
    padding: 0;
    margin: 0;
  }

  body {
    background: #fff;
    color: #111;
  }

  .receipt {
    background: #fff;
    color: #111;
  }
}
