:root {
  --ink: #251812;
  --espresso: #332018;
  --cocoa: #5b3c2b;
  --gold: #c49a45;
  --gold-soft: #ead6a4;
  --linen: #f8f1e6;
  --paper: #fffaf1;
  --sage: #7f9b83;
  --blue: #5e8eb8;
  --red: #b95a4c;
  --yellow: #d5a944;
  --muted: #887568;
  --line: rgba(78, 52, 38, 0.16);
  --shadow: 0 24px 70px rgba(48, 29, 19, 0.15);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(196, 154, 69, 0.14), transparent 28%),
    linear-gradient(180deg, #fbf5eb 0%, #f2e5d4 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background: linear-gradient(180deg, #2d1d16, #1f1511);
  color: #fff8ea;
  display: flex;
  flex-direction: column;
  gap: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 25%, #ffe7a4, #c79a3f 62%, #8f6325);
  color: #2b1a12;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 12px 24px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-mark.has-image {
  background: #fffaf1;
  padding: 4px;
}

.brand-mark.has-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 1.03rem;
}

.brand span {
  color: rgba(255, 248, 234, 0.66);
  font-size: 0.84rem;
  margin-top: 2px;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-item {
  color: rgba(255, 248, 234, 0.74);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.nav-item:hover,
.nav-item.active {
  color: #fff8ea;
  background: rgba(255, 248, 234, 0.08);
  border-color: rgba(234, 214, 164, 0.2);
}

.clinic-hours {
  margin-top: auto;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 248, 234, 0.08);
  border: 1px solid rgba(234, 214, 164, 0.18);
}

.clinic-hours span,
.clinic-hours strong {
  display: block;
}

.clinic-hours span,
.clinic-hours small {
  color: rgba(255, 248, 234, 0.67);
}

.clinic-hours strong {
  margin-top: 4px;
  font-size: 1.18rem;
}

.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.hours-grid small {
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(255, 248, 234, 0.07);
}

.main-content {
  padding: 24px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.topbar,
.panel-header,
.modal-header,
.top-actions,
.legend {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 18px;
}

.topbar h1,
.hero-copy h2,
.panel h2,
.modal h2 {
  margin: 0;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: clamp(1.45rem, 2vw, 2.2rem);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--cocoa);
  font-weight: 750;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.top-actions {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.action-btn,
.danger-btn,
.icon-btn {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.primary-btn {
  padding: 0 16px;
  color: #fffaf1;
  background: linear-gradient(180deg, #d4aa52, #9c7130);
  box-shadow: 0 14px 28px rgba(126, 82, 28, 0.22);
  border-color: rgba(82, 51, 22, 0.18);
  font-weight: 750;
}

.secondary-btn,
.ghost-btn,
.icon-btn {
  background: rgba(255, 250, 241, 0.84);
  color: var(--espresso);
}

.secondary-btn,
.ghost-btn {
  padding: 0 14px;
  font-weight: 700;
}

.ghost-btn {
  background: rgba(255, 250, 241, 0.44);
  color: var(--cocoa);
}

.secondary-btn.compact {
  min-height: 34px;
  font-size: 0.88rem;
}

.icon-btn {
  width: 40px;
  padding: 0;
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.action-btn:hover,
.danger-btn:hover,
.icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(69, 44, 28, 0.12);
}

[data-icon] {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

[data-icon] svg {
  width: 100%;
  height: 100%;
  stroke-width: 2;
}

.filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.74);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 36px rgba(80, 48, 27, 0.07);
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(78, 52, 38, 0.18);
  border-radius: var(--radius);
  background: #fffdf8;
  color: var(--ink);
  padding: 0 10px;
  outline: none;
}

textarea {
  min-height: 82px;
  padding: 10px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(196, 154, 69, 0.7);
  box-shadow: 0 0 0 4px rgba(196, 154, 69, 0.14);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 46px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--radius);
  color: var(--muted);
  background: transparent;
}

.password-toggle:hover {
  color: var(--espresso);
  background: rgba(196, 154, 69, 0.12);
}

.password-toggle [data-icon],
.password-toggle svg {
  width: 18px;
  height: 18px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 245px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: end;
  border-radius: var(--radius);
  padding: 28px;
  color: #fffaf1;
  background:
    linear-gradient(90deg, rgba(38, 23, 16, 0.92), rgba(66, 42, 29, 0.58)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 520'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1' y1='0' y2='1'%3E%3Cstop stop-color='%23815c2f'/%3E%3Cstop offset='.45' stop-color='%23e0c17b'/%3E%3Cstop offset='1' stop-color='%23492d1f'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1200' height='520' fill='%23f4eadc'/%3E%3Cpath d='M0 348c166-98 279-83 397-52 120 31 216 73 364 34 98-26 152-74 239-93 81-18 142-1 200 32v251H0Z' fill='url(%23g)' opacity='.86'/%3E%3Cpath d='M894 73c-77 22-141 91-166 174 87-46 166-94 166-174Z' fill='%23819b83' opacity='.75'/%3E%3Cpath d='M988 111c-87 38-129 109-132 202 90-48 152-110 132-202Z' fill='%23c49a45' opacity='.68'/%3E%3Ccircle cx='204' cy='132' r='108' fill='%23fff8ea' opacity='.3'/%3E%3Crect x='728' y='280' width='230' height='104' rx='8' fill='%23fff8ea' opacity='.24'/%3E%3Crect x='766' y='310' width='170' height='14' rx='7' fill='%23332018' opacity='.28'/%3E%3Crect x='766' y='338' width='118' height='14' rx='7' fill='%23332018' opacity='.18'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.hero-panel .eyebrow {
  color: var(--gold-soft);
}

.hero-copy h2 {
  max-width: 710px;
  font-size: clamp(1.75rem, 3.2vw, 3.45rem);
  line-height: 1.02;
}

.hero-copy p:last-child {
  max-width: 620px;
  color: rgba(255, 250, 241, 0.82);
  line-height: 1.55;
  margin-bottom: 0;
}

.availability-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.availability-pill {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.13);
  border: 1px solid rgba(255, 250, 241, 0.2);
  backdrop-filter: blur(12px);
}

.availability-pill strong,
.availability-pill span {
  display: block;
}

.availability-pill span {
  color: rgba(255, 250, 241, 0.72);
  font-size: 0.82rem;
}

.status-chip {
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

.chip-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sample-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(91, 60, 43, 0.1);
  color: var(--cocoa);
  font-size: 0.72rem;
  font-weight: 850;
}

.table-chip {
  margin-left: 6px;
  vertical-align: middle;
}

.status-free {
  background: var(--sage);
}

.status-busy {
  background: var(--red);
}

.status-fixed {
  background: var(--yellow);
  color: #30200f;
}

.status-future {
  background: var(--blue);
}

.status-late {
  background: var(--red);
}

.status-done {
  background: var(--sage);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
}

.metric-card,
.panel {
  background: rgba(255, 250, 241, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 38px rgba(72, 45, 28, 0.08);
}

.metric-card {
  min-height: 118px;
  padding: 18px;
  display: grid;
  align-content: space-between;
  gap: 8px;
}

.metric-card span,
.metric-card small {
  color: var(--muted);
}

.metric-card strong {
  font-size: clamp(1.35rem, 2.4vw, 2.15rem);
  color: var(--espresso);
}

.progress-track {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(91, 60, 43, 0.12);
}

.progress-track div {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--sage));
  border-radius: inherit;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(310px, 0.8fr);
  gap: 14px;
}

.content-grid.lower {
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
}

#cadastros {
  grid-column: 1 / -1;
}

.panel {
  min-width: 0;
  padding: 18px;
}

.panel-header {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.panel h2 {
  font-size: 1.18rem;
}

.legend {
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.8rem;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dot,
.room-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.free {
  background: var(--sage);
}

.busy {
  background: var(--red);
}

.fixed {
  background: var(--yellow);
}

.future {
  background: var(--blue);
}

.calendar-wrap {
  display: grid;
  grid-template-columns: 68px repeat(7, minmax(118px, 1fr));
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}

.calendar-cell {
  min-height: 58px;
  padding: 8px;
  border-right: 1px solid rgba(78, 52, 38, 0.1);
  border-bottom: 1px solid rgba(78, 52, 38, 0.1);
  position: relative;
}

.calendar-head {
  min-height: 48px;
  background: #f2e4d1;
  color: var(--cocoa);
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
}

.time-cell {
  color: var(--muted);
  font-weight: 800;
  background: #fbf4ea;
}

.slot-card {
  display: grid;
  gap: 3px;
  border-radius: 6px;
  padding: 8px;
  min-height: 48px;
  color: var(--ink);
  border-left: 4px solid var(--sage);
  background: rgba(127, 155, 131, 0.13);
  font-size: 0.77rem;
}

.slot-card strong,
.booking-item strong,
.room-card strong {
  overflow-wrap: anywhere;
}

.slot-card.busy {
  border-left-color: var(--red);
  background: rgba(185, 90, 76, 0.13);
}

.slot-card.fixed {
  border-left-color: var(--yellow);
  background: rgba(213, 169, 68, 0.2);
}

.slot-card.future {
  border-left-color: var(--blue);
  background: rgba(94, 142, 184, 0.14);
}

.slot-card.late {
  border-left-color: var(--red);
  background: rgba(185, 90, 76, 0.18);
}

.slot-card.done {
  border-left-color: var(--sage);
  background: rgba(127, 155, 131, 0.12);
}

.rooms-grid {
  display: grid;
  gap: 10px;
}

.room-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(78, 52, 38, 0.14);
  background: #fffdf8;
}

.room-card small,
.booking-item small,
.finance-row small {
  color: var(--muted);
}

.room-price {
  font-weight: 850;
  color: var(--cocoa);
}

.booking-list,
.finance-list {
  display: grid;
  gap: 10px;
}

.cash-movements {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(78, 52, 38, 0.1);
}

.cash-movements h3 {
  margin: 0;
  color: var(--espresso);
  font-size: 1rem;
}

.cash-row {
  display: grid;
  gap: 8px;
}

.booking-item,
.finance-row {
  padding: 12px;
  border: 1px solid rgba(78, 52, 38, 0.13);
  border-radius: var(--radius);
  background: #fffdf8;
}

.booking-item {
  display: grid;
  gap: 8px;
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.compact-actions {
  justify-content: flex-start;
  min-width: 190px;
}

.action-btn,
.danger-btn {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  background: #fffdf8;
}

.action-btn {
  color: var(--cocoa);
}

.danger-btn {
  color: #8c372e;
  border-color: rgba(185, 90, 76, 0.28);
  background: rgba(185, 90, 76, 0.08);
}

.compact-action {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.late-note {
  color: #8c372e !important;
  font-weight: 850;
}

.booking-line,
.finance-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.table-shell {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(78, 52, 38, 0.1);
  text-align: left;
  font-size: 0.86rem;
}

th {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.payment-pill {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.74rem;
}

.payment-pill.paid {
  color: #35563a;
  background: rgba(127, 155, 131, 0.18);
}

.payment-pill.pending {
  color: #77531d;
  background: rgba(213, 169, 68, 0.22);
}

.payment-pill.partner {
  color: #4d4a6b;
  background: rgba(94, 142, 184, 0.18);
}

.socios-counter {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--cocoa);
  background: rgba(196, 154, 69, 0.16);
  font-weight: 850;
  font-size: 0.82rem;
}

.professionals-table {
  min-width: 920px;
}

.modal {
  width: min(760px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  background: transparent;
}

.modal::backdrop {
  background: rgba(37, 24, 18, 0.48);
  backdrop-filter: blur(7px);
}

.modal-card {
  margin: 0;
  border-radius: var(--radius);
  padding: 20px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.modal-header {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

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

.form-grid .full {
  grid-column: 1 / -1;
}

.asset-upload-field {
  align-content: start;
  padding: 12px;
  border: 1px solid rgba(78, 52, 38, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.68);
}

.asset-upload-field input[type="file"] {
  min-height: auto;
  padding: 8px;
  background: #fffdf8;
}

.asset-preview {
  min-height: 58px;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px dashed rgba(78, 52, 38, 0.2);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 250, 241, 0.72);
  font-weight: 650;
}

.asset-preview img {
  display: block;
  max-width: 100%;
  max-height: 52px;
  object-fit: contain;
}

.asset-remove {
  width: 100%;
  min-height: 34px;
  font-size: 0.82rem;
}

.professional-choice {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-card {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(78, 52, 38, 0.16);
  border-radius: var(--radius);
  background: #fffdf8;
  color: var(--espresso);
}

.choice-card input {
  width: auto;
  min-height: auto;
  accent-color: var(--gold);
}

.new-professional-fields {
  display: none;
}

.modal.new-professional-mode .new-professional-fields {
  display: grid;
}

.modal.new-professional-mode .existing-professional-field {
  display: none;
}

.fixed-field {
  display: none;
}

.modal.fixed-mode .hourly-field {
  display: none;
}

.modal.fixed-mode .fixed-field {
  display: grid;
}

.modal.fixed-mode.partner-professional-mode .financial-field,
.modal.partner-professional-mode .financial-field {
  display: none;
}

.form-feedback {
  min-height: 22px;
  margin-top: 12px;
  color: var(--red);
  font-weight: 750;
  font-size: 0.88rem;
}

.form-feedback.success {
  color: #4f714f;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.empty-state {
  color: var(--muted);
  padding: 18px;
  border: 1px dashed rgba(78, 52, 38, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.7);
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .sidebar {
    padding: 18px 12px;
  }

  .brand div:last-child,
  .nav-item:not(.active)::after,
  .nav-item {
    font-size: 0;
  }

  .nav-item {
    justify-content: center;
  }

  .clinic-hours {
    display: none;
  }

  .filters {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }

  .metrics-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }
}

@media (max-width: 900px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    overflow-x: auto;
    padding: 12px;
  }

  .brand div:last-child {
    display: none;
  }

  .nav-list {
    display: flex;
    min-width: max-content;
  }

  .nav-item {
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .main-content {
    padding: 14px;
  }

  .topbar,
  .hero-panel,
  .content-grid,
  .content-grid.lower {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }

  .top-actions {
    justify-content: start;
  }

  .filters,
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .availability-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .main-content {
    padding: 10px;
  }

  .filters,
  .metrics-grid,
  .form-grid,
  .professional-choice {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: 20px;
  }

  .hero-copy h2 {
    font-size: 1.85rem;
  }

  .panel {
    padding: 14px;
  }

  .panel-header,
  .modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }
}

.is-hidden {
  display: none !important;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.login-card {
  width: min(430px, 100%);
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 250, 241, 0.95);
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 0;
}

.login-brand {
  color: var(--espresso);
}

.clinic-hours small {
  display: block;
  margin-top: 4px;
}

.logout-btn {
  width: 100%;
  margin-top: 14px;
}

.logout-btn.turnover-reminder {
  animation: logoutPulse 0.9s ease-in-out infinite;
  border-color: rgba(234, 214, 164, 0.72);
}

.operational-alerts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
  max-width: 620px;
}

.alert-pill {
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 250, 241, 0.2);
  border-radius: var(--radius);
  background: rgba(213, 169, 68, 0.18);
  color: #fffaf1;
  text-align: left;
  width: 100%;
}

.alert-pill.overdue {
  background: rgba(185, 90, 76, 0.22);
}

.alert-pill.late {
  cursor: pointer;
  background: rgba(185, 90, 76, 0.34);
  animation: latePulse 0.75s ease-in-out infinite;
}

.alert-pill.late:hover {
  border-color: rgba(255, 250, 241, 0.5);
  transform: translateY(-1px);
}

.alert-pill strong,
.alert-pill span {
  display: block;
}

.alert-pill span {
  color: rgba(255, 250, 241, 0.78);
  font-size: 0.78rem;
}

.blocked,
.status-blocked {
  background: #8c5148;
}

@keyframes latePulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(185, 90, 76, 0);
    filter: brightness(1);
  }

  50% {
    box-shadow: 0 0 0 4px rgba(185, 90, 76, 0.24);
    filter: brightness(1.18);
  }
}

@keyframes logoutPulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(234, 214, 164, 0);
    filter: brightness(1);
  }

  50% {
    box-shadow: 0 0 0 4px rgba(234, 214, 164, 0.22);
    filter: brightness(1.16);
  }
}

.slot-card.blocked {
  border-left-color: #8c5148;
  background: rgba(140, 81, 72, 0.14);
}

.panel-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.settings-block {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(78, 52, 38, 0.12);
  border-radius: var(--radius);
  background: #fffdf8;
}

.settings-block h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--espresso);
}

.settings-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.backup-block {
  align-content: start;
}

.backup-status {
  padding: 10px 12px;
  border: 1px solid rgba(86, 123, 87, 0.2);
  border-radius: var(--radius);
  background: rgba(128, 160, 119, 0.16);
  color: #4f714f;
  font-weight: 760;
}

.backup-status.is-offline {
  border-color: rgba(140, 81, 72, 0.22);
  background: rgba(140, 81, 72, 0.12);
  color: #8c5148;
}

.backup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.history-block,
#configuracoes {
  grid-column: 1 / -1;
}

.compact-save {
  justify-self: start;
}

.file-btn {
  position: relative;
}

.payment-pill.partner {
  color: #4d4a6b;
  background: rgba(94, 142, 184, 0.18);
}

.modal.fixed-mode.partner-professional-mode .financial-field,
.modal.partner-professional-mode .financial-field {
  display: none;
}

.modal-actions {
  flex-wrap: wrap;
}

.secondary-btn.compact,
.primary-btn.compact-save {
  min-height: 34px;
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .settings-grid,
  .operational-alerts {
    grid-template-columns: 1fr;
  }
}
