/* BarberSched — interface responsiva */
:root {
  --bg: #f5f5f5;
  --surface: #fff;
  --surface-2: #f7f7f6;
  --text: #242424;
  --muted: #858585;
  --line: #e5e5e5;
  --dark: #292929;
  --dark-hover: #111;
  --soft: #eeeeec;
  --success: #e9f4ec;
  --success-text: #39764b;
  --warning: #f7f1df;
  --warning-text: #92732c;
  --danger: #f9eaea;
  --danger-text: #a34848;
  --shadow: 0 16px 45px rgba(0, 0, 0, 0.08);
  font-family: "DM Sans", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 12px;
}
body.dark {
  --bg: #20201f;
  --surface: #292928;
  --surface-2: #323230;
  --text: #f1f1ef;
  --muted: #aaa9a5;
  --line: #41413e;
  --dark: #f0f0ed;
  --dark-hover: #fff;
  --soft: #3a3a37;
  --success: #263c2d;
  --success-text: #a4d6b1;
  --warning: #423a27;
  --warning-text: #e0c77c;
  --danger: #452d2d;
  --danger-text: #e3a5a5;
  --shadow: 0 16px 45px rgba(0, 0, 0, 0.25);
}
button,
input,
select {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
.topbar {
  height: 54px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 4.8%;
  gap: 34px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font:
    800 15px Manrope,
    sans-serif;
  white-space: nowrap;
}
.brand-mark {
  width: 25px;
  height: 25px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  background: var(--dark);
  color: var(--surface);
  font: 800 14px Manrope;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  flex: 1;
  height: 100%;
}
.nav-link {
  color: var(--muted);
  height: 100%;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  font-size: 12px;
}
.nav-link.active {
  color: var(--text);
  border-color: var(--text);
  font-weight: 700;
}
.top-user {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--soft);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--text);
  flex: none;
}
.user-copy {
  display: grid;
  gap: 2px;
}
.user-copy small {
  color: var(--muted);
  font-size: 10px;
}
.icon-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px;
  border-radius: 7px;
}
.icon-button:hover {
  background: var(--soft);
  color: var(--text);
}
.view {
  width: min(1120px, 90%);
  min-height: calc(100vh - 116px);
  margin: 0 auto;
  padding: 30px 0 42px;
}
.footer {
  min-height: 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4.8%;
  font-size: 10px;
}
.footer div {
  display: flex;
  gap: 18px;
}
.footer a:hover {
  color: var(--text);
}
.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 9px;
  font-weight: 700;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font:
    800 25px Manrope,
    sans-serif;
  letter-spacing: -0.8px;
  margin: 7px 0 6px;
}
h2 {
  font:
    700 17px Manrope,
    sans-serif;
  letter-spacing: -0.3px;
  margin: 0 0 5px;
}
h3 {
  font:
    700 13px Manrope,
    sans-serif;
  margin: 0;
}
.subtitle {
  color: var(--muted);
  margin: 0;
  font-size: 12px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
}
.btn {
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 9px 13px;
  font-weight: 700;
  font-size: 11px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  transition: 0.18s;
}
.btn-primary {
  background: var(--dark);
  color: var(--surface);
}
.btn-primary:hover {
  opacity: 0.86;
  transform: translateY(-1px);
}
.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}
.btn-outline:hover {
  background: var(--surface-2);
}
.btn-danger {
  background: var(--danger);
  color: var(--danger-text);
}
.btn-small {
  padding: 7px 10px;
  font-size: 10px;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.stat {
  padding: 15px;
  min-height: 100px;
}
.stat-top {
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}
.stat-value {
  font:
    800 25px Manrope,
    sans-serif;
  margin: 8px 0 3px;
  letter-spacing: -0.7px;
}
.stat-note {
  color: var(--muted);
  font-size: 9px;
}
.panel {
  padding: 15px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
input,
select {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 10px 11px;
  outline: none;
  width: 100%;
  min-width: 0;
}
input:focus,
select:focus {
  border-color: #999;
  box-shadow: 0 0 0 3px rgba(120, 120, 120, 0.09);
}
input::placeholder {
  color: #aaa;
}
.toolbar select,
.toolbar input {
  width: auto;
  min-width: 120px;
  padding: 8px 10px;
  font-size: 10px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 690px;
  text-align: left;
}
th {
  color: var(--muted);
  background: var(--surface-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 9px;
  font-weight: 600;
  padding: 11px 10px;
}
td {
  padding: 11px 10px;
  border-top: 1px solid var(--line);
  font-size: 10px;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
  font-size: 9px;
}
.person {
  display: flex;
  align-items: center;
  gap: 8px;
}
.person .avatar {
  width: 25px;
  height: 25px;
  font-size: 9px;
}
.status {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 30px;
  background: var(--soft);
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}
.status.confirmado {
  background: var(--warning);
  color: var(--warning-text);
}
.status.concluido {
  background: var(--success);
  color: var(--success-text);
}
.status.cancelado {
  background: var(--danger);
  color: var(--danger-text);
}
.table-actions {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}
.empty {
  text-align: center;
  padding: 38px 15px;
  color: var(--muted);
}
.empty strong {
  display: block;
  color: var(--text);
  margin-bottom: 5px;
}
.login-screen {
  min-height: calc(100vh - 110px);
  display: grid;
  place-items: center;
  padding: 20px 0;
}
.login-card {
  width: min(410px, 100%);
  padding: 28px;
}
.login-card h1 {
  font-size: 24px;
}
.login-card .subtitle {
  line-height: 1.6;
}
.switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--soft);
  padding: 3px;
  border-radius: 6px;
  margin: 18px 0;
}
.switcher button {
  border: 0;
  background: transparent;
  padding: 9px;
  border-radius: 4px;
  color: var(--muted);
  font-size: 10px;
}
.switcher button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 3px #0001;
  font-weight: 700;
}
.form-field {
  display: grid;
  gap: 6px;
  margin: 13px 0;
}
.form-field label {
  font-size: 10px;
  font-weight: 700;
}
.form-hint {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  font-size: 10px;
}
.checkline {
  display: flex;
  gap: 7px;
  align-items: center;
  color: var(--muted);
}
.checkline input {
  width: auto;
}
.text-button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--text);
  text-decoration: underline;
  font-size: 10px;
}
.full {
  width: 100%;
}
.login-bottom {
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  margin: 18px 0 0;
}
.login-bottom button {
  margin-left: 4px;
}
.demo-note {
  margin-top: 17px;
  padding: 10px;
  background: var(--surface-2);
  border-radius: 6px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}
.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr);
  gap: 18px;
  align-items: start;
}
.booking-main {
  display: grid;
  gap: 14px;
}
.step-card {
  padding: 17px;
}
.step-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}
.step-number {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  background: var(--soft);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 700;
}
.service-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.service-option {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: var(--surface);
  color: var(--text);
}
.service-option.selected {
  border-color: var(--text);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--text);
}
.service-option .service-info {
  flex: 1;
  display: grid;
  gap: 4px;
}
.service-option small {
  color: var(--muted);
  font-size: 9px;
}
.service-price {
  font-weight: 700;
}
.booking-date-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 16px;
}
.calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.calendar-head strong {
  font-size: 11px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-grid span,
.calendar-grid button {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  font-size: 9px;
  color: var(--muted);
  border: 0;
  border-radius: 4px;
  background: transparent;
}
.calendar-grid button {
  color: var(--text);
}
.calendar-grid button:hover {
  background: var(--soft);
}
.calendar-grid button.selected {
  background: var(--dark);
  color: var(--surface);
}
.calendar-grid button:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}
.time-panel {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}
.time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 12px;
}
.time-slot {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 5px;
  padding: 9px 5px;
  font-size: 9px;
}
.time-slot.selected {
  background: var(--dark);
  color: var(--surface);
  border-color: var(--dark);
}
.time-slot:disabled {
  opacity: 0.3;
  text-decoration: line-through;
  cursor: not-allowed;
}
.summary-card {
  padding: 18px;
  position: sticky;
  top: 82px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}
.summary-line span:first-child {
  color: var(--muted);
}
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 12px;
  font-weight: 700;
}
.summary-total strong {
  font: 800 23px Manrope;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.service-card {
  padding: 16px;
}
.service-card .price {
  font: 800 22px Manrope;
  margin: 13px 0 3px;
}
.service-card p {
  color: var(--muted);
  font-size: 10px;
  margin: 0;
}
.service-card .card-actions {
  display: flex;
  gap: 7px;
  margin-top: 16px;
}
.client-list {
  display: grid;
  gap: 9px;
}
.client-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
}
.client-row .client-info {
  display: flex;
  align-items: center;
  gap: 9px;
}
.client-row small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.43);
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
}
.modal {
  width: min(470px, 100%);
  background: var(--surface);
  border-radius: 7px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 22px;
  max-height: 90vh;
  overflow: auto;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 17px;
}
.modal-head p {
  color: var(--muted);
  font-size: 10px;
  margin: 5px 0 0;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}
.toast-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  display: grid;
  gap: 8px;
}
.toast {
  background: var(--dark);
  color: var(--surface);
  padding: 12px 16px;
  border-radius: 7px;
  box-shadow: var(--shadow);
  font-size: 11px;
  animation: toast-in 0.2s ease;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.muted {
  color: var(--muted);
}
.section-gap {
  margin-top: 20px;
}
@media (max-width: 850px) {
  .topbar {
    padding: 0 4%;
    gap: 18px;
  }
  .main-nav {
    gap: 15px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .booking-layout {
    grid-template-columns: 1fr;
  }
  .summary-card {
    position: static;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 12px;
  }
  .topbar {
    height: auto;
    min-height: 60px;
    flex-wrap: wrap;
    padding: 12px 4%;
    gap: 12px;
  }
  .main-nav {
    order: 3;
    flex-basis: 100%;
    overflow: auto;
    height: 34px;
    gap: 20px;
  }
  .nav-link {
    white-space: nowrap;
  }
  .top-user {
    margin-left: auto;
  }
  .view {
    width: 92%;
    padding: 25px 0 35px;
    min-height: calc(100vh - 160px);
  }
  .footer {
    padding: 12px 4%;
    align-items: flex-start;
    gap: 8px;
    flex-direction: column;
  }
  .footer div {
    gap: 14px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  h1 {
    font-size: 23px;
  }
  .stats {
    gap: 9px;
  }
  .stat {
    padding: 12px;
    min-height: 96px;
  }
  .stat-value {
    font-size: 22px;
  }
  .service-options,
  .booking-date-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .time-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 15px 0 0;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .login-card {
    padding: 21px;
  }
  .client-row {
    align-items: flex-start;
  }
  .client-row .table-actions {
    flex-direction: column;
  }
}

/* Novas áreas: faturamento, equipe, agenda, notificações e comprovantes */
.notification-bell {
  position: relative;
  font-size: 17px;
}
.notification-bell b {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 20px;
  background: #a34848;
  color: #fff;
  font-size: 9px;
  display: grid;
  place-items: center;
}
.revenue-panel {
  margin-bottom: 20px;
}
.chart-total {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 5px 0 18px;
}
.chart-total strong,
.finance-total strong {
  font:
    800 23px Manrope,
    sans-serif;
}
.chart-total span,
.finance-total span {
  color: var(--muted);
  font-size: 10px;
}
.bar-chart {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
  min-height: 175px;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding: 0 4px;
}
.bar-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
  height: 175px;
}
.bar-value {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}
.bar-track {
  width: min(34px, 70%);
  height: 118px;
  display: flex;
  align-items: flex-end;
  background: var(--surface-2);
  border-radius: 5px 5px 0 0;
  overflow: hidden;
}
.bar-track i {
  display: block;
  width: 100%;
  min-height: 3px;
  background: var(--dark);
  border-radius: 5px 5px 0 0;
}
.bar-column small {
  color: var(--muted);
  font-size: 9px;
}
.finance-total {
  display: grid;
  text-align: right;
  gap: 3px;
}
.agenda-toolbar {
  justify-content: flex-end;
}
.agenda-toolbar select {
  max-width: 260px;
}
.notification-list {
  display: grid;
}
.notification-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 10px;
  border-top: 1px solid var(--line);
  border-left: 3px solid transparent;
}
.notification-item.unread {
  background: var(--surface-2);
  border-left-color: var(--text);
}
.notification-item p {
  margin: 5px 0;
  color: var(--muted);
}
.notification-item small {
  color: var(--muted);
  font-size: 9px;
}
.notification-item .table-actions {
  flex-wrap: wrap;
}
.receipt {
  color: var(--text);
  padding: 4px 0;
}
.receipt-brand {
  font:
    800 14px Manrope,
    sans-serif;
  letter-spacing: 3px;
  text-align: center;
  margin-bottom: 15px;
}
.receipt h2 {
  text-align: center;
  margin-bottom: 12px;
}
.receipt-code {
  text-align: center;
  color: var(--muted);
  font-size: 10px;
}
.receipt hr {
  border: 0;
  border-top: 1px dashed var(--line);
  margin: 14px 0;
}
.receipt p:not(.receipt-code):not(.form-hint) {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  margin: 0;
}
.receipt p small {
  color: var(--muted);
}
.receipt-actions {
  margin-top: 12px;
}
.booking-payment {
  margin: 12px 0 0;
}
.finance-total {
  min-width: 145px;
}
@media (max-width: 850px) {
  .bar-chart {
    gap: 5px;
  }
  .bar-value {
    font-size: 8px;
  }
  .notification-item {
    align-items: flex-start;
    flex-direction: column;
  }
  .finance-total {
    align-self: flex-end;
  }
}
@media (max-width: 600px) {
  .bar-chart {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    overflow-x: auto;
  }
  .bar-column {
    height: 150px;
  }
  .bar-track {
    height: 95px;
  }
  .chart-tabs {
    width: 100%;
    justify-content: space-between;
  }
  .chart-tabs .btn {
    flex: 1;
  }
  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .finance-total {
    align-self: flex-start;
    text-align: left;
  }
  .agenda-toolbar {
    justify-content: stretch;
  }
  .agenda-toolbar select {
    max-width: none;
    width: 100%;
  }
}
