body { background-color: #f5f5f5; }
.agendamento { max-width: 650px; }
.progress-container { position: relative; display: flex; justify-content: space-between; margin: 30px 20px 40px; }
.progress-line { position: absolute; top: 20px; left: 10%; right: 10%; height: 4px; background-color: #dee2e6; z-index: 0; }
.step { position: relative; z-index: 1; text-align: center; min-width: 70px; }
.step-circle { width: 40px; height: 40px; border-radius: 50%; background-color: #dee2e6; color: #6c757d; display: flex; align-items: center; justify-content: center; margin: auto; font-weight: bold; border: 3px solid #f8f9fa; }
.step.active .step-circle { background-color: #212529; color: white; }
.step.completed .step-circle { background-color: #198754; color: white; }
.step-text { margin-top: 8px; font-size: 13px; color: #6c757d; }
.step.active .step-text { color: #212529; font-weight: bold; }
.form-step { display: none; }
.form-step.active { display: block; }
.service-card, .barbeiro-card { cursor: pointer; transition: .15s; border: 2px solid #dee2e6; }
.service-card:hover, .barbeiro-card:hover { border-color: #212529; }
.service-card.selected, .barbeiro-card.selected { border-color: #212529; background: #f8f9fa; }
.barbeiro-img { width: 70px; height: 70px; object-fit: cover; border-radius: 50%; background: #e9ecef; }
.time-button { height: 45px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.time-button.active { background: #212529; color: white; border-color: #212529; }
.summary-box { background: #f8f9fa; border-radius: 10px; padding: 16px; }
.summary-box > div { padding: 6px 0; }
.success-icon { width: 70px; height: 70px; border-radius: 50%; background: #198754; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 40px; margin: auto; }
.spinner-border-sm { width: 1rem; height: 1rem; border-width: .15em; }
@media (max-width: 576px) {
  .card-body { padding: 1.1rem !important; }
  .progress-container { margin-left: 0; margin-right: 0; }
  .step-text { font-size: 11px; }
  .step-circle { width: 36px; height: 36px; }
  .progress-line { top: 18px; }
}
/* ===== PAINEL ADMINISTRATIVO ===== */
.admin-shell{min-height:100vh;background:linear-gradient(180deg,#f7f7f8 0%,#eef0f3 100%)}
.admin-topbar{background:rgba(255,255,255,.92);backdrop-filter:blur(10px);border-bottom:1px solid #e5e7eb;position:sticky;top:0;z-index:20}
.brand-mini{font-size:.78rem;font-weight:800;letter-spacing:.11em;text-transform:uppercase;color:#6b7280;margin-bottom:.3rem}
.panel-card{background:#fff;border:1px solid #e5e7eb;border-radius:22px;box-shadow:0 10px 30px rgba(15,23,42,.05)}
.panel-card-body{padding:1.35rem}
.panel-card-header{padding:1.25rem 1.35rem 0}
.section-kicker{font-size:.7rem;letter-spacing:.12em;font-weight:800;color:#6b7280;margin-bottom:.35rem}
.filter-row{display:flex;gap:.55rem;overflow:auto;padding:.15rem 1.35rem 1.35rem;scrollbar-width:none}.filter-row::-webkit-scrollbar{display:none}
.filter-row .btn{flex:0 0 auto;border-radius:999px}.filter-row .active-filter{box-shadow:0 6px 16px rgba(15,23,42,.12)}
.stat-card{border-radius:18px;padding:1rem 1.05rem;min-height:88px;border:1px solid #e5e7eb;background:#fff;display:flex;flex-direction:column;justify-content:space-between}.stat-card span{font-size:.75rem;color:#6b7280}.stat-card strong{font-size:1.55rem;line-height:1}.stat-pending{background:#fffaf0}.stat-confirmed{background:#f1fbf5}.stat-cancelled{background:#f7f7f8}
.appointment-card{background:#fff;border:1px solid #e5e7eb;border-radius:20px;padding:1rem;box-shadow:0 8px 22px rgba(15,23,42,.045)}
.appointment-date{font-size:.82rem;color:#6b7280;font-weight:700}.appointment-time{font-size:1.65rem;font-weight:800;line-height:1.05}.appointment-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem}.appointment-meta div{background:#f8fafc;border-radius:14px;padding:.72rem}.appointment-meta span{display:block;font-size:.7rem;color:#6b7280;margin-bottom:.15rem}.appointment-meta strong{display:block;font-size:.88rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.admin-action-grid{display:flex;gap:.65rem}.empty-state{text-align:center;padding:3.5rem 1rem}.empty-icon{width:58px;height:58px;border-radius:50%;background:#ecfdf3;color:#198754;display:flex;align-items:center;justify-content:center;font-size:1.6rem;font-weight:800;margin:0 auto 1rem}.toast-box{position:fixed;right:18px;bottom:18px;z-index:1000;max-width:360px;margin:0;border-radius:16px}.barber-admin-card{border:1px solid #e5e7eb;border-radius:18px;padding:1rem;background:#fafafa}
.table>thead>tr>th{font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;color:#6b7280;border-bottom-color:#e5e7eb}.table td{padding-top:1rem;padding-bottom:1rem}
.form-control,.form-select{border-radius:14px;border-color:#d7dbe0}.form-control:focus{border-color:#212529;box-shadow:0 0 0 .2rem rgba(33,37,41,.08)}
@media (max-width:767.98px){.admin-topbar .container,.admin-shell main{padding-left:1rem;padding-right:1rem}.stat-card{min-height:82px;padding:.85rem}.stat-card span{font-size:.68rem}.stat-card strong{font-size:1.35rem}.panel-card{border-radius:18px}.appointment-meta{grid-template-columns:1fr 1fr 1fr}.appointment-meta div{padding:.65rem}.admin-action-grid .btn{font-size:.95rem}.toast-box{left:14px;right:14px;bottom:14px;max-width:none}.panel-card-body{padding:1rem}}

/* ===== Ajustes do painel: evitar conteúdo escapando dos cards ===== */
.admin-shell,
.admin-shell main,
.admin-shell .panel-card,
.admin-shell .panel-card-body,
#appointmentCards,
#appointmentsBody {
  min-width: 0;
  box-sizing: border-box;
}

.admin-shell .panel-card {
  max-width: 100%;
  overflow: hidden;
}

.admin-shell .table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.appointment-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.appointment-card > *,
.appointment-card .appointment-main,
.appointment-card .appointment-card-top,
.appointment-card .appointment-card-actions,
.appointment-card .appointment-meta,
.appointment-card .appointment-meta > div {
  min-width: 0;
  max-width: 100%;
}

.appointment-card .appointment-card-top {
  flex-wrap: wrap;
}

.appointment-time-block {
  min-width: 0;
}

.appointment-main h5,
.appointment-phone {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.appointment-card .appointment-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
}

.appointment-card .appointment-meta > div {
  background: #f8fafc;
  border-radius: 12px;
  padding: .7rem;
  overflow: hidden;
}

.appointment-card .appointment-meta .appointment-meta-service {
  grid-column: 1 / -1;
}

.appointment-card .appointment-meta span {
  display: block;
  color: #6b7280;
  font-size: .7rem;
  line-height: 1.3;
  margin-bottom: .25rem;
}

.appointment-card .appointment-meta strong {
  display: block;
  font-size: .88rem;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .6rem;
  width: 100%;
}

.admin-action-grid .btn,
.appointment-card-actions > .btn {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

.admin-filters .filter-btn {
  min-width: 0;
  white-space: normal;
}

@media (max-width: 380px) {
  .admin-shell main.container {
    padding-left: .75rem;
    padding-right: .75rem;
  }

  .panel-card-body {
    padding: .8rem !important;
  }

  .appointment-card {
    padding: .85rem;
    border-radius: 16px;
  }

  .appointment-time {
    font-size: 1.45rem;
  }

  .appointment-card .appointment-meta > div {
    padding: .6rem;
  }

  .admin-action-grid {
    gap: .45rem;
  }

  .admin-action-grid .btn {
    padding: .65rem .5rem;
    font-size: .9rem;
  }
}

/* ===== Equipe / disponibilidade ===== */
.barber-config-photo{width:64px;height:64px;border-radius:50%;object-fit:cover;flex:0 0 64px;border:1px solid #e5e7eb;background:#f3f4f6}
.barber-config-avatar{display:flex;align-items:center;justify-content:center;font-weight:800;color:#6b7280}
.barber-admin-card{min-width:0}
.barber-admin-card-inactive{opacity:.75}
.barber-admin-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem}
.barber-admin-actions .btn{min-width:0;white-space:normal}
.min-w-0{min-width:0}
.barber-photo-preview{width:120px;height:120px;border-radius:18px;object-fit:cover;border:1px solid #e5e7eb;display:block}
.photo-preview-wrap{display:flex;justify-content:center}
.schedule-owner-card{background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;padding:.9rem 1rem}
.schedule-legend{display:flex;flex-wrap:wrap;gap:1rem;padding:.85rem 1rem;background:#f8fafc;border-radius:14px;font-size:.8rem;color:#6b7280}
.schedule-legend span{display:inline-flex;align-items:center;gap:.4rem}
.legend-dot{width:10px;height:10px;border-radius:50%;display:inline-block}
.legend-available{background:#198754}
.legend-blocked{background:#dc3545}
.legend-reserved{background:#6c757d}
.schedule-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.65rem}
.schedule-slot{min-width:0;border:1px solid #dfe3e8;border-radius:15px;background:#fff;padding:.8rem .55rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.18rem;transition:.15s;cursor:pointer}
.schedule-slot strong{font-size:1rem;line-height:1}
.schedule-slot span{font-size:.7rem;color:inherit;opacity:.8}
.schedule-slot-available{background:#f0fdf4;border-color:#9ed5b5;color:#146c43}
.schedule-slot-available:hover{transform:translateY(-1px);border-color:#198754}
.schedule-slot-blocked{background:#fff5f5;border-color:#f0a7a7;color:#b02a37}
.schedule-slot-blocked:hover{transform:translateY(-1px);border-color:#dc3545}
.schedule-slot-reserved{background:#f1f3f5;border-color:#ced4da;color:#6c757d;cursor:pointer}.schedule-slot-reserved:hover{border-color:#6c757d;box-shadow:0 0 0 .15rem rgba(108,117,125,.12)}
.schedule-slot:disabled{opacity:1}
.schedule-loading{text-align:center;color:#6c757d;padding:2rem}
@media (max-width:575.98px){
  .barber-admin-actions{grid-template-columns:1fr}
  .schedule-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .schedule-slot{min-height:62px}
}

/* ===== Foto: recorte e perfil ===== */
.photo-crop-viewport {
  position: relative;
  width: min(82vw, 360px);
  height: min(82vw, 360px);
  margin: 0 auto;
  overflow: hidden;
  background: #111827;
  border-radius: 22px;
  border: 2px solid #e5e7eb;
  touch-action: none;
  user-select: none;
}

.photo-crop-viewport::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.45);
  pointer-events: none;
}

.photo-crop-viewport img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.photo-crop-viewport img:active { cursor: grabbing; }

.photo-preview-wrap {
  min-height: 126px;
}

.profile-photo-section {
  max-width: 520px;
  margin: 0 auto;
}

.profile-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
  border: 3px solid #fff;
  box-shadow: 0 8px 24px rgba(15,23,42,.12);
  background: #f3f4f6;
}

.profile-photo-local {
  margin-top: -150px;
  position: relative;
  z-index: 2;
}

@media (max-width: 575.98px) {
  .photo-crop-viewport {
    width: min(86vw, 360px);
    height: min(86vw, 360px);
    border-radius: 18px;
  }
  .profile-photo {
    width: 132px;
    height: 132px;
  }
  .profile-photo-local {
    margin-top: -132px;
  }
}


/* ===== MENU HAMBURGUER + FOTOS ===== */
.admin-topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-width:0}
.btn-menu{width:48px;height:48px;border-radius:16px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto}
.menu-bars{display:flex;flex-direction:column;gap:4px}
.menu-bars i{display:block;width:18px;height:2px;background:#fff;border-radius:2px}
.admin-offcanvas{width:min(90vw,360px);border:0}
.admin-menu-nav{display:grid;gap:.45rem}
.admin-menu-link{display:flex;align-items:center;gap:.8rem;padding:.9rem 1rem;border-radius:15px;text-decoration:none;color:#111827;font-weight:600}
.admin-menu-link:hover,.admin-menu-link.active{background:#f3f4f6;color:#111827}
.admin-menu-icon{width:28px;text-align:center;font-size:1.15rem;opacity:.75}
.admin-menu-tools{border-bottom:1px solid #e5e7eb;padding-bottom:1rem}
.photo-crop-viewport{position:relative;width:100%;height:min(72vw,420px);min-height:260px;background:#111;overflow:hidden;border-radius:18px;touch-action:none}
.photo-crop-viewport::after{content:"";position:absolute;inset:0;border:2px solid rgba(255,255,255,.85);border-radius:18px;box-shadow:0 0 0 9999px rgba(0,0,0,.22);pointer-events:none}
#photoCropImage{position:absolute;max-width:none;user-select:none;-webkit-user-drag:none;touch-action:none;cursor:grab}
#photoCropImage:active{cursor:grabbing}
.barber-config-photo{width:64px;height:64px;object-fit:cover;border-radius:18px;background:#eef0f3;display:block;flex:0 0 auto}
.profile-photo{width:140px;height:140px;object-fit:cover;border-radius:28px;background:#eef0f3;display:block;margin:0 auto;border:1px solid #e5e7eb}
@media (max-width:575.98px){
  .admin-offcanvas{width:88vw}
  .photo-crop-viewport{height:72vh;max-height:520px;min-height:300px}
  .profile-photo{width:128px;height:128px;border-radius:24px}
}


/* ===== Correção do recorte: a saída é quadrada, então a área também deve ser quadrada ===== */
.photo-crop-viewport {
  width: min(82vw, 360px) !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  min-height: 0 !important;
  max-height: none !important;
  margin-inline: auto;
}
@media (max-width: 575.98px) {
  .photo-crop-viewport {
    width: min(86vw, 360px) !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
    min-height: 0 !important;
    max-height: none !important;
  }
}

/* ===== Resumo visual do agendamento ===== */
.booking-summary-card {
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 1rem;
  background: linear-gradient(145deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 8px 24px rgba(15,23,42,.045);
  min-width: 0;
}
.booking-summary-heading { display:flex; align-items:center; gap:.8rem; min-width:0; padding-bottom:1rem; border-bottom:1px solid #e9edf1; }
.booking-summary-heading > div { flex:1; min-width:0; }
.booking-summary-icon { width:44px; height:44px; flex:0 0 44px; display:flex; align-items:center; justify-content:center; border-radius:14px; background:#111827; color:#fff; font-size:1.25rem; font-weight:800; }
.booking-summary-eyebrow { display:block; color:#6b7280; font-size:.65rem; font-weight:800; letter-spacing:.1em; margin-bottom:.25rem; }
.booking-summary-heading h6 { overflow-wrap:anywhere; }
.booking-summary-price { color:#111827; white-space:nowrap; font-size:1rem; }
.booking-summary-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; padding-top:.9rem; }
.booking-summary-item { min-width:0; border-radius:13px; background:#f1f5f9; padding:.7rem .75rem; }
.booking-summary-item span,.booking-customer-preview span { display:block; color:#64748b; font-size:.72rem; margin-bottom:.2rem; }
.booking-summary-item strong { display:block; color:#111827; font-size:.88rem; overflow-wrap:anywhere; }
.booking-summary-time { background:#ecfdf3; }
.booking-summary-note { margin-top:.9rem; color:#64748b; font-size:.78rem; line-height:1.45; }
.booking-pending-note { display:flex; align-items:flex-start; gap:.55rem; border-radius:13px; padding:.8rem .9rem; background:#fffbeb; color:#92400e; font-size:.82rem; line-height:1.45; }
.booking-pending-note > span:first-child { font-size:1rem; font-weight:800; }
.booking-customer-preview { display:grid; gap:.1rem; margin-top:.8rem; padding:.75rem .85rem; border-radius:13px; background:#f8fafc; }
.booking-customer-preview strong { overflow-wrap:anywhere; }
.booking-customer-preview small { color:#64748b; }
.booking-reference { font-size:.75rem; color:#64748b; border-top:1px solid #e9edf1; padding-top:.75rem; }
.booking-summary-modal { padding:.9rem; }
@media (max-width:380px) {
  .booking-summary-card { padding:.8rem; border-radius:16px; }
  .booking-summary-heading { gap:.55rem; }
  .booking-summary-icon { width:38px; height:38px; flex-basis:38px; border-radius:12px; }
  .booking-summary-price { font-size:.9rem; }
  .booking-summary-item { padding:.62rem; }
}


/* ===== Expediente configurável pelo gerente ===== */
.business-hours-list { display:grid; gap:.85rem; }
.business-hours-row { border:1px solid #e5e7eb; border-radius:17px; padding:1rem; background:#fff; min-width:0; }
.business-hours-row.business-hours-closed { background:#f8fafc; }
.business-hours-day { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:.8rem; }
.business-hours-day strong { font-size:.95rem; }
.business-hours-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem; }
.business-hours-break { border-top:1px solid #eef0f3; margin-top:.8rem; padding-top:.75rem; }
.business-hours-break .form-check { display:flex; align-items:center; gap:.45rem; }
.business-hours-break .form-check-input { margin:0; }
@media (min-width:768px) { .business-hours-list { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:380px) { .business-hours-row { padding:.8rem; } .business-hours-fields { gap:.55rem; } }


/* Navegação do histórico no menu hambúrguer. */
.admin-menu-group { margin: .45rem 0 .7rem; }
.admin-menu-group-title { padding: .35rem 1rem; color: #6b7280; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.admin-menu-subnav { padding-left: .65rem; border-left: 2px solid #e5e7eb; margin-left: 1rem; }
.admin-menu-sublink { min-height: 42px; font-size: .94rem; }


/* Painel do gerente: accordions compactos para equipe e configurações. */
.barber-admin-accordion { display: grid; gap: .65rem; }
.barber-admin-item { border: 1px solid #e5e7eb !important; border-radius: 16px !important; overflow: hidden; background: #fff; }
.barber-admin-item .accordion-button { gap: .75rem; padding: .9rem 1rem; background: #fff; box-shadow: none; }
.barber-admin-item .accordion-button:not(.collapsed) { background: #f8fafc; color: #111827; }
.barber-admin-item .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(17,24,39,.08); }
.barber-admin-item .accordion-body { padding: 1rem; border-top: 1px solid #eef0f3; }
.barber-admin-item .barber-admin-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.barber-admin-item .barber-admin-actions .btn { font-size: .9rem; }
.barber-admin-card-inactive .accordion-button { background: #f8fafc; }
@media (max-width: 575.98px) {
  .barber-admin-item .barber-admin-actions { grid-template-columns: 1fr; }
  .barber-admin-item .input-group { flex-wrap: wrap; }
  .barber-admin-item .input-group .form-control { min-width: 0; flex: 1 1 60%; }
}


/* ===== Espaçamento mobile e acompanhamento do cliente ===== */
.client-status-hero{display:flex;align-items:center;gap:1rem;padding:1rem;border-radius:18px;border:1px solid #e5e7eb;background:#fff}
.client-status-icon{width:52px;height:52px;flex:0 0 52px;border-radius:16px;display:flex;align-items:center;justify-content:center;background:#111827;color:#fff;font-size:1.4rem;font-weight:800}
.client-status-success{background:#f0fdf4;border-color:#b7e4c7}
.client-status-success .client-status-icon{background:#198754}
.client-status-pending{background:#fffbeb;border-color:#f4df9b}
.client-status-pending .client-status-icon{background:#d97706}
.client-status-cancelled{background:#fef2f2;border-color:#f0b4b4}
.client-status-cancelled .client-status-icon{background:#dc3545}

@media (max-width:575.98px){
  .container > .card,
  .panel-card,
  .booking-summary-card,
  .appointment-card,
  .service-card,
  .barbeiro-card,
  .business-hours-row,
  .admin-menu-tools { max-width:100%; }
  .booking-summary-card{padding:1rem;margin-inline:.12rem}
  .booking-summary-modal{margin-inline:0;padding:.95rem}
  .form-step > .form-control,
  .form-step > .alert,
  .form-step > .booking-summary-card { margin-left:.12rem; margin-right:.12rem; }
  .appointment-card{padding:1rem}
  .panel-card-body{padding:1rem}
  .client-status-hero{align-items:flex-start;padding:1rem}
  .client-status-icon{width:46px;height:46px;flex-basis:46px;border-radius:14px}
}

.client-status-shell{max-width:680px}
@media (max-width:575.98px){.summary-box{padding:.7rem}.summary-box > div{padding:.45rem 0}.client-status-shell{padding-left:1rem;padding-right:1rem}.client-status-shell .panel-card-body{padding:.9rem !important}.client-status-shell .booking-summary-card{margin-inline:0}.modal-content{margin-inline:.35rem}.modal-header,.modal-body,.modal-footer{padding-left:1rem;padding-right:1rem}}


/* v7 - cards de estatisticas clicaveis */
.stat-card { cursor:pointer; border:1px solid #e5e7eb; transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease; }
.stat-card:hover { transform:translateY(-1px); box-shadow:0 10px 24px rgba(15,23,42,.08); border-color:#cfd4da; }
.stat-card:focus-visible { outline:3px solid rgba(13,110,253,.2); outline-offset:2px; }
.notification-appointment-modal .booking-summary-card { padding: .8rem; }
@media (max-width:575.98px) {
  .barber-admin-item .input-group.flex-nowrap { flex-wrap:nowrap !important; }
  .barber-admin-item .input-group.flex-nowrap .form-control { flex:1 1 auto; min-width:0; }
}


/* Financeiro */
.finance-stat{height:100%;padding:1rem 1.05rem;border:1px solid #e6e7eb;border-radius:1rem;background:#fff;box-shadow:0 6px 22px rgba(17,24,39,.05)}
.finance-stat span{display:block;color:#6b7280;font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.finance-stat strong{display:block;margin-top:.35rem;font-size:clamp(1.15rem,3vw,1.65rem);line-height:1.15}
.finance-stat small{display:block;margin-top:.35rem;color:#9ca3af}
.finance-chart-wrap{overflow-x:auto}
.finance-chart{display:flex;align-items:flex-end;gap:.3rem;min-width:680px;height:240px;padding:1rem .5rem .2rem;border-bottom:1px solid #e5e7eb}
.finance-chart-bar{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:.35rem;flex:1;height:100%;min-width:18px}
.finance-chart-bar span{display:block;width:100%;max-width:28px;min-height:2px;border-radius:.45rem .45rem .15rem .15rem;background:#111827;opacity:.9}
.finance-chart-bar small{font-size:.65rem;color:#9ca3af}
.finance-empty{padding:2rem 1rem;text-align:center;color:#9ca3af}
.finance-payment-list{display:grid;gap:.75rem}
.finance-payment-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem;border:1px solid #eceef1;border-radius:.85rem;background:#fafafa}
.finance-payment-row strong{display:block}
.finance-payment-row small{display:block;color:#9ca3af;margin-top:.15rem}
.finance-highlight{display:flex;align-items:baseline;gap:.65rem}.finance-highlight strong{font-size:1.8rem}.finance-highlight span{color:#6b7280}
.finance-transaction-card{padding:1rem;border:1px solid #e8e9ed;border-radius:1rem;background:#fff}.finance-transaction-meta{display:grid;gap:.45rem;margin-top:.8rem;font-size:.85rem}.finance-transaction-meta span{color:#6b7280}.finance-transaction-meta strong{color:#111827}
@media(max-width:575.98px){.finance-stat{padding:.85rem}.finance-stat small{font-size:.72rem}.finance-chart{height:210px}}


/* Financeiro v12: mobile-first */
.finance-stat-primary{border-color:#111827;box-shadow:0 10px 26px rgba(17,24,39,.08)}
.finance-chart-wrap{padding:0 .25rem .25rem}
.finance-chart{position:relative;gap:.45rem;min-width:0;width:100%;height:260px;padding:1rem .25rem .25rem;overflow-x:auto;overflow-y:hidden}
.finance-chart-bar{min-width:16px}
.finance-chart-bar span{transition:height .25s ease, opacity .2s ease}
.finance-chart-bar.has-value span{opacity:1}
.finance-chart-caption{display:flex;justify-content:space-between;gap:.75rem;align-items:center;padding:.75rem .25rem 0;color:#9ca3af;font-size:.72rem}
.finance-chart-caption strong{color:#374151;font-size:.76rem;text-align:center}
.commission-mobile-card{display:grid;gap:1rem;padding:1rem;border:1px solid #e5e7eb;border-radius:1rem;background:#fff;box-shadow:0 7px 20px rgba(17,24,39,.05)}
.commission-mobile-top{display:flex;justify-content:space-between;align-items:center;gap:1rem}
.commission-mobile-top h3{margin:.2rem 0 0;font-size:1rem;line-height:1.2;font-weight:800;word-break:break-word}
.commission-pill{flex:0 0 auto;padding:.45rem .7rem;border-radius:999px;background:#111827;color:#fff;font-weight:800;font-size:.82rem}
.commission-mobile-grid{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}
.commission-mobile-grid>div{padding:.8rem;border:1px solid #eceef1;border-radius:.85rem;background:#fafafa}
.commission-mobile-grid span{display:block;color:#6b7280;font-size:.72rem;font-weight:700;text-transform:uppercase}
.commission-mobile-grid strong{display:block;margin-top:.25rem;font-size:1rem}
.commission-mobile-edit{display:grid;gap:.55rem;padding-top:.15rem}
.commission-mobile-edit label{font-size:.8rem;font-weight:700;color:#374151}
.commission-table-input{max-width:150px}
@media(max-width:767.98px){
  .finance-page{padding-top:1rem!important}
  .finance-page .panel-card-header{padding:.95rem 1rem}
  .finance-page .panel-card-body{padding:.95rem 1rem}
  .finance-page .finance-stat{min-height:112px;display:flex;flex-direction:column;justify-content:center}
  .finance-page .finance-stat strong{font-size:1.2rem}
  .commission-settings-desktop{display:none!important}
  .commission-settings-mobile{display:grid!important;gap:.85rem}
  .finance-chart{height:220px;gap:.25rem}
  .finance-chart-bar{min-width:10px}
  .finance-chart-bar span{max-width:16px}
  .finance-chart-bar small{font-size:.58rem}
  .finance-chart-caption{flex-wrap:wrap}
  .finance-chart-caption strong{order:-1;width:100%}
  .finance-transaction-card{padding:.9rem}
  .finance-transaction-meta{gap:.6rem}
}
@media(min-width:768px){.commission-settings-mobile{display:none!important}}


/* ===== V14 - acabamento comercial/mobile ===== */
:root{--brand-primary:#111827}
.checklist-item{padding:1rem;border:1px solid #e5e7eb;border-radius:16px;background:#fafafa;font-weight:600}
.review-card{border:1px solid #e5e7eb;border-radius:18px;padding:1rem;background:#fff}
.review-rating{letter-spacing:.08em;white-space:nowrap}
.finance-chart-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:16px;background:#fafafa;padding:.5rem}
.finance-chart-bars{display:flex;align-items:flex-end;gap:8px;min-width:max-content;height:240px;padding:1rem .75rem .5rem}
.finance-bar-col{width:24px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:.35rem}
.finance-bar{width:100%;min-height:2px;border-radius:7px 7px 3px 3px;background:var(--brand-primary);transition:height .25s ease}
.finance-bar-col.is-max .finance-bar{box-shadow:0 0 0 3px rgba(17,24,39,.08)}
.finance-bar-label{font-size:.66rem;color:#6b7280}
.finance-chart-caption{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-top:.8rem;padding:0 .25rem;color:#6b7280;font-size:.85rem}
.reschedule-card{display:grid;gap:1rem}
@media(max-width:575.98px){
  .panel-card{border-radius:18px}
  .panel-card-header{padding:1rem 1rem 0}
  .panel-card-body{padding:1rem}
  .finance-stat{min-height:108px;padding:.9rem;border-radius:16px}
  .finance-stat strong{font-size:1.2rem}
  .admin-menu-link{min-height:52px;padding:.8rem 1rem}
  .admin-menu-nav{gap:.35rem}
  .commission-mobile-card,.review-card,.finance-transaction-card{border-radius:16px}
}

.finance-bar-level-1{height:19px}
.finance-bar-level-2{height:38px}
.finance-bar-level-3{height:57px}
.finance-bar-level-4{height:76px}
.finance-bar-level-5{height:95px}
.finance-bar-level-6{height:114px}
.finance-bar-level-7{height:133px}
.finance-bar-level-8{height:152px}
.finance-bar-level-9{height:171px}
.finance-bar-level-10{height:190px}
.review-star-btn{width:48px;height:48px;padding:0}.review-star-btn.active{background:#111827;color:#fff}

.legal-page{max-width:760px}

/* V14 authentication/layout helpers */
.auth-narrow{margin-inline:auto}
.auth-login{max-width:420px}
.auth-setup{max-width:520px}

/* Identidade visual base do Unha Marcada */
.brand-logo{max-width:190px;max-height:72px;width:auto;height:auto;object-fit:contain;display:inline-block}
.brand-logo-public{max-width:210px;max-height:90px;margin:0 auto .9rem}
.site-brand-logo{max-width:150px;max-height:46px;object-fit:contain}
.logo-preview-box{width:190px;height:110px;border:1px dashed #e5e7eb;border-radius:18px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#f8fafc;flex:0 0 auto}
.logo-preview-box img{max-width:175px;max-height:95px}


/* v17 — Acertos mobile: conteúdo com respiro e sem texto colado/cortado */
.payout-mobile-card,
.commission-mobile-card {
  min-width: 0;
  width: 100%;
  padding: 1rem;
  gap: 1rem;
  border-radius: 18px;
}
.payout-mobile-card > .d-flex,
.commission-mobile-top { min-width: 0; align-items: flex-start; gap: .75rem; }
.payout-mobile-card h3,
.commission-mobile-top h3 { min-width: 0; margin: .2rem 0 0; line-height: 1.25; overflow-wrap: anywhere; }
.payout-mobile-grid,
.commission-mobile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  min-width: 0;
}
.payout-mobile-grid > div,
.commission-mobile-grid > div {
  min-width: 0;
  padding: .8rem .75rem;
  border: 1px solid #e5e7eb;
  border-radius: 13px;
  background: #f8fafc;
}
.payout-mobile-grid span,
.commission-mobile-grid span {
  display: block;
  min-width: 0;
  color: #64748b;
  font-size: .68rem;
  line-height: 1.3;
  font-weight: 750;
  letter-spacing: .015em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
.payout-mobile-grid strong,
.commission-mobile-grid strong {
  display: block;
  min-width: 0;
  margin-top: .35rem;
  font-size: clamp(.88rem, 3.5vw, 1rem);
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  word-break: normal;
}
.commission-mobile-edit { min-width: 0; gap: .7rem; padding-top: .1rem; }
.commission-mobile-edit .input-group { min-width: 0; }
.commission-mobile-edit .btn { white-space: normal; line-height: 1.25; min-height: 48px; }
.payout-mobile-card .btn { white-space: normal; line-height: 1.25; min-height: 48px; }
.finance-paid-badge { padding: .8rem; border-radius: 12px; background: #ecfdf5; color: #065f46; font-size: .9rem; line-height: 1.4; }

/* v17 — gráfico: todos os dias visíveis; no celular, deslize horizontalmente */
.finance-chart-scroll { max-width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.finance-chart-bars { width: max-content; min-width: max-content; gap: 7px; padding: 1rem .75rem .55rem; }
.finance-bar-col { flex: 0 0 25px; width: 25px; min-width: 25px; }
.finance-bar-label { display: block; min-height: 1rem; color: #475569; font-size: .68rem; line-height: 1rem; text-align: center; white-space: nowrap; }
.finance-chart-caption strong { overflow-wrap: anywhere; }
@media (max-width: 390px) {
  .payout-mobile-card, .commission-mobile-card { padding: .85rem; }
  .payout-mobile-grid, .commission-mobile-grid { gap: .55rem; }
  .payout-mobile-grid > div, .commission-mobile-grid > div { padding: .7rem .6rem; }
  .payout-mobile-grid strong, .commission-mobile-grid strong { font-size: .86rem; }
}


/* v17 — painel de mensalistas */
.monthly-page .panel-card-body{padding:1rem}
.monthly-notice{padding:1rem;border:1px solid #dbeafe;border-radius:14px;background:#eff6ff;color:#1e3a8a}
.monthly-list{display:grid;gap:1rem;min-width:0}
.monthly-card{display:grid;gap:1rem;min-width:0;padding:1rem;border:1px solid #e5e7eb;border-radius:18px;background:#fff;box-shadow:0 6px 20px rgba(17,24,39,.045)}
.monthly-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:.8rem;min-width:0}
.monthly-card-top>div{min-width:0}
.monthly-card h3{margin:.2rem 0 .25rem;font-size:1.05rem;line-height:1.25;overflow-wrap:anywhere}
.monthly-phone{font-size:.86rem;color:#64748b;text-decoration:none}
.monthly-status{flex:0 0 auto;padding:.4rem .65rem;border-radius:999px;font-size:.75rem;font-weight:800}
.monthly-status.is-active{background:#dcfce7;color:#166534}.monthly-status.is-cancelled{background:#f1f5f9;color:#475569}
.monthly-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem;min-width:0}
.monthly-metrics>div{min-width:0;padding:.75rem;border:1px solid #e5e7eb;border-radius:13px;background:#f8fafc}
.monthly-metrics span{display:block;color:#64748b;font-size:.69rem;font-weight:800;letter-spacing:.02em;text-transform:uppercase;line-height:1.3;overflow-wrap:anywhere}
.monthly-metrics strong{display:block;margin-top:.35rem;font-size:.92rem;line-height:1.3;overflow-wrap:anywhere;word-break:normal}
.monthly-details{display:grid;gap:.45rem;color:#475569;font-size:.86rem;line-height:1.4;min-width:0}
.monthly-details span{overflow-wrap:anywhere}.monthly-notes{padding-top:.45rem;border-top:1px solid #e5e7eb}
.monthly-card-actions{display:grid;gap:.65rem;border-top:1px solid #e5e7eb;padding-top:.85rem}.monthly-card-actions .btn{min-height:46px;white-space:normal;line-height:1.25}
.monthly-empty{padding:2rem 1rem;text-align:center;color:#64748b}
@media(min-width:768px){.monthly-page .panel-card-body{padding:1.25rem}.monthly-card{padding:1.25rem}.monthly-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.monthly-card-actions{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:380px){.monthly-card{padding:.8rem}.monthly-metrics{gap:.5rem}.monthly-metrics>div{padding:.65rem}.monthly-metrics strong{font-size:.85rem}}


/* v18: mobile payout / acertos spacing */
@media (max-width: 430px) {
  .payout-mobile-card, .commission-mobile-card { padding: 1rem; gap: 1rem; }
  .payout-mobile-grid, .commission-mobile-grid { grid-template-columns: minmax(0,1fr); gap: .75rem; }
  .payout-mobile-grid > div, .commission-mobile-grid > div { padding: .95rem; }
  .payout-mobile-grid span, .commission-mobile-grid span { font-size: .74rem; }
  .payout-mobile-grid strong, .commission-mobile-grid strong { font-size: 1rem; }
}
/* v18: graph always renders every calendar day label; mobile scroll reveals the full month */
.finance-chart-scroll { display:block; width:100%; max-width:100%; overflow-x:auto; overflow-y:hidden; overscroll-behavior-x:contain; -webkit-overflow-scrolling:touch; }
.finance-chart-bars { display:flex; width:max-content; min-width:max-content; align-items:flex-end; gap:4px; }
.finance-bar-col { flex:0 0 24px; width:24px; min-width:24px; height:200px; flex-shrink:0; }
.finance-bar-label { display:block; flex:0 0 auto; width:100%; padding-top:2px; font-size:11px; line-height:1.25; text-align:center; white-space:normal; color:#475569; }
.finance-bar { flex:0 0 auto; }
.finance-pagination { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:.4rem; padding:1rem; }
.finance-pagination .btn, .list-pagination .btn { min-width:42px; }
.list-pagination { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:.4rem; padding:.75rem 0; }
.history-details { overflow:hidden; }
.history-details > summary { display:flex; align-items:center; justify-content:space-between; gap:1rem; cursor:pointer; list-style:none; padding:1rem 1.1rem; font-weight:800; }
.history-details > summary::-webkit-details-marker { display:none; }
.history-details > summary::after { content:'+'; font-size:1.4rem; line-height:1; }
.history-details[open] > summary::after { content:'−'; }
.history-details-content { padding:0 1rem 1rem; }
.history-detail-filters { display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:1rem; }
.client-lookup-card { display:grid; gap:.5rem; padding:1rem; border:1px solid #e5e7eb; border-radius:1rem; background:#fff; box-shadow:0 6px 20px rgba(17,24,39,.04); }
.client-lookup-card-top { display:flex; justify-content:space-between; gap:.75rem; align-items:flex-start; }
.client-lookup-card h3 { margin:0; font-size:1rem; line-height:1.3; overflow-wrap:anywhere; }
.client-lookup-meta { color:#64748b; font-size:.9rem; }
@media(max-width:575.98px) { .finance-chart-bars { gap:4px; } .finance-bar-col { flex-basis:24px; width:24px; min-width:24px; } }

/* v18.1: list cards wrap safely on narrow screens */
.list-pagination { min-width: 0; gap: .5rem; }
.list-pagination > span { flex: 0 0 100%; text-align: center; }
.monthly-card, .review-card, .client-lookup-card, .barber-admin-item { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 575.98px) { .finance-page .panel-card-body, .finance-page .panel-card-header { min-width: 0; } .finance-transaction-meta span, .payout-history-item span { overflow-wrap: anywhere; } }


/* v19 — histórico recolhido dentro do menu, não na agenda inicial */
.admin-menu-group-toggle{width:100%;border:0;background:transparent;text-align:left;cursor:pointer;font:inherit}
.admin-menu-group-toggle .admin-menu-chevron{margin-left:auto;font-size:1.1rem;transition:transform .15s ease}
.admin-menu-group-toggle[aria-expanded="true"] .admin-menu-chevron{transform:rotate(180deg)}
.admin-menu-subnav{padding-left:.75rem;border-left:2px solid #e5e7eb;margin-left:1.2rem}
.admin-menu-sublink{padding:.65rem .75rem;min-height:44px}

/* v19 — histórico de pagamentos em cards legíveis */
.payout-history-card{display:grid;gap:.9rem;min-width:0;padding:1rem;border:1px solid #e5e7eb;border-radius:16px;background:#fff;box-shadow:0 5px 18px rgba(17,24,39,.04)}
.payout-history-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;min-width:0}
.payout-history-card-head>div{display:grid;gap:.25rem;min-width:0}
.payout-history-amount{font-size:1.25rem;line-height:1.25;overflow-wrap:anywhere;color:#111827}
.payout-history-status{align-self:flex-start;flex:0 0 auto;padding:.35rem .65rem;border-radius:999px;background:#dcfce7;color:#166534;font-size:.75rem;font-weight:800}
.payout-history-card-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}
.payout-history-card-details>div{min-width:0;padding:.7rem;border-radius:12px;background:#f8fafc;border:1px solid #e5e7eb}
.payout-history-card-details span,.payout-history-card-notes>span{display:block;color:#64748b;font-size:.72rem;font-weight:800;text-transform:uppercase;line-height:1.3}
.payout-history-card-details strong{display:block;margin-top:.3rem;overflow-wrap:anywhere;line-height:1.3}
.payout-history-card-notes{padding-top:.75rem;border-top:1px solid #e5e7eb}
.payout-history-card-notes p{margin:.3rem 0 0;overflow-wrap:anywhere;line-height:1.45;color:#374151}

/* v19 — cartões clicáveis da consulta por telefone */
button.client-lookup-card{appearance:none;-webkit-appearance:none;text-align:left;color:inherit;font:inherit;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease}
button.client-lookup-card:hover,button.client-lookup-card:focus-visible{border-color:#9ca3af;box-shadow:0 8px 24px rgba(17,24,39,.08);outline:none}
.client-lookup-open-label{display:block;margin-top:.15rem;color:#374151;font-size:.8rem;font-weight:800}
@media(max-width:420px){.payout-history-card{padding:.85rem}.payout-history-card-details{gap:.5rem}.payout-history-card-details>div{padding:.65rem}}


.notification-icon-circle { width: 48px; height: 48px; font-size: 1.4rem; }
.auth-recovery-main { max-width: 520px; }

.schedule-busy-dates { max-height: 13rem; overflow-y: auto; align-content: flex-start; padding: .35rem; border: 1px solid var(--bs-border-color, #dee2e6); border-radius: .75rem; }


/* Fluxo de agendamento por etapas e microinterações acessíveis. */
.form-step.active { animation: bookingStepIn .24s ease-out both; }
@keyframes bookingStepIn { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
.booking-progress { gap: 2px; margin-left: 4px; margin-right: 4px; }
.booking-progress .step { flex: 1 1 0; min-width: 0; }
.booking-progress .step-text { white-space: nowrap; font-size: 11px; }
.booking-progress .step-circle { width: 36px; height: 36px; }
.booking-progress .progress-line { top: 18px; left: 8%; right: 8%; }
@keyframes bookingCheckIn { from { transform:scale(.5); opacity:0; } to { transform:scale(1); opacity:1; } }
.service-card { display:block; padding:0; color:inherit; background:#fff; border-radius:16px; }
.service-card .card-body { display:flex; width:100%; padding:1rem; }
.service-card:focus-visible,.category-card:focus-visible { outline:3px solid rgba(25,135,84,.45); outline-offset:2px; }
.booking-celebrate .success-icon { animation:bookingSuccessPop .55s cubic-bezier(.18,.89,.32,1.28) both; }
.booking-celebrate .booking-summary-card,.booking-celebrate h4,.booking-celebrate p { animation:bookingStepIn .38s ease-out both; }
.booking-celebrate .booking-summary-card { animation-delay:.08s; }
@keyframes bookingSuccessPop { 0% { transform:scale(.35) rotate(-18deg); opacity:0; } 70% { transform:scale(1.12) rotate(4deg); opacity:1; } 100% { transform:scale(1) rotate(0); } }
@media(max-width:420px) { .booking-progress .step-text { font-size:9px; } .booking-progress .step-circle { width:31px;height:31px; } .booking-progress .progress-line { top:15.5px; } }
@media(prefers-reduced-motion:reduce) { .form-step.active,.category-card,.category-card.selected .category-card-check,.booking-celebrate .success-icon,.booking-celebrate .booking-summary-card,.booking-celebrate h4,.booking-celebrate p { animation:none !important; transition:none !important; } }


.schedule-busy-trigger{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem;border:1px solid #e5e7eb;border-radius:1rem;background:#f9fafb}
.schedule-busy-modal-list{display:grid;gap:1.2rem}.schedule-busy-month h3{font-size:.78rem;font-weight:800;color:#6b7280;text-transform:capitalize;letter-spacing:.055em;margin:0 0 .6rem;padding-bottom:.45rem;border-bottom:1px solid #eceef1}.schedule-busy-month-dates{display:grid;gap:.5rem}
.schedule-busy-date-option{display:flex;align-items:center;gap:.65rem;width:100%;text-align:left;border:1px solid #e5e7eb;border-radius:.85rem;background:#fff;padding:.75rem .8rem;color:#111827;transition:border-color .15s ease,background .15s ease,transform .15s ease}.schedule-busy-date-option:hover{border-color:#d6a84f;background:#fffcf5;transform:translateY(-1px)}.schedule-busy-date-label{display:flex;flex-direction:column;gap:.15rem;flex:1;min-width:0}.schedule-busy-date-label strong{font-size:.9rem;text-transform:capitalize}.schedule-busy-date-label small{font-size:.75rem;color:#6b7280}.schedule-busy-date-option .badge{white-space:normal;text-align:center;font-size:.68rem}.schedule-busy-date-arrow{font-size:1.5rem;line-height:1;color:#9ca3af}.schedule-busy-empty{display:grid;gap:.4rem;text-align:center;padding:2rem 1rem;border:1px dashed #d1d5db;border-radius:1rem;background:#f9fafb;color:#6b7280}.schedule-busy-empty strong{color:#374151}
.finance-advanced-filters{border-top:1px solid #edf0f3;padding-top:.9rem}.finance-advanced-filters summary,.finance-collapsible-summary{list-style:none;cursor:pointer}.finance-advanced-filters summary::-webkit-details-marker,.finance-collapsible-summary::-webkit-details-marker{display:none}.finance-advanced-filters summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;color:#111827}.finance-advanced-filters summary>span:first-child{display:grid;gap:.15rem}.finance-advanced-filters summary small{font-weight:400;color:#6b7280;font-size:.78rem}.finance-chevron{display:grid;place-items:center;width:2rem;height:2rem;flex:0 0 auto;border:1px solid #e5e7eb;border-radius:50%;color:#374151;transition:transform .15s ease}.finance-advanced-filters[open] .finance-chevron,.finance-collapsible[open] .finance-chevron{transform:rotate(180deg)}
.finance-collapsible{overflow:hidden}.finance-collapsible-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:.25rem 1rem;padding:1rem 1.1rem}.finance-collapsible-summary .section-kicker{grid-column:1;grid-row:1;font-size:.67rem}.finance-collapsible-summary strong{grid-column:1;grid-row:2;font-size:1rem;line-height:1.3}.finance-collapsible-summary small{grid-column:1;grid-row:3;color:#6b7280;font-size:.8rem}.finance-collapsible-summary .finance-chevron{grid-column:2;grid-row:1 / span 3}.finance-collapsible[open] .finance-collapsible-summary{border-bottom:1px solid #e5e7eb;background:#fafafa}.finance-collapsible-content{padding:1rem}.finance-collapsible-content .table-responsive{margin:0 -1rem}.finance-collapsible-content .table-responsive table{margin-bottom:0}.finance-collapsible-content .list-pagination{margin-top:.8rem}
@media(max-width:575.98px){.schedule-busy-trigger{align-items:stretch;flex-direction:column}.schedule-busy-trigger .btn{width:100%}.schedule-busy-date-option{padding:.7rem}.schedule-busy-date-option .badge{max-width:110px}.finance-collapsible-summary{padding:.9rem}.finance-collapsible-content{padding:.85rem}.finance-collapsible-content .table-responsive{margin:0 -.85rem}.finance-collapsible-content .commission-settings-mobile{padding:0}.finance-page .finance-stat{border-radius:.85rem}.finance-advanced-filters .btn{min-height:42px}}
.finance-collapsible-summary::marker,.finance-advanced-filters summary::marker{content:""}



/* v31 — layout de categorias sem imagens, sempre em coluna única. */
.category-cards-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:.7rem}
.category-card{position:relative;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:1rem;min-width:0;min-height:88px;padding:.8rem 1rem;overflow:hidden;border:2px solid #dee2e6;border-radius:16px;background:#fff;color:#212529;text-align:left;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease}
.category-card:hover{border-color:#adb5bd;transform:translateY(-1px)}
.category-card.selected{border-color:#212529;background:#f8f9fa;box-shadow:0 6px 16px rgba(33,37,41,.08)}
.category-card-content{display:flex;flex:1;min-width:0;flex-direction:column;align-items:flex-start;gap:.2rem;padding-right:1.4rem;text-align:left}
.category-card-name{font-size:1rem;font-weight:800;line-height:1.25;text-align:left;overflow-wrap:anywhere}
.category-card-description{font-size:.82rem;line-height:1.35;color:#6c757d;text-align:left}
.category-card-check{display:none;position:absolute;top:.55rem;right:.55rem;width:22px;height:22px;align-items:center;justify-content:center;border-radius:50%;background:#198754;color:#fff;font-weight:800;box-shadow:0 2px 6px rgba(0,0,0,.12)}
.category-card.selected .category-card-check{display:flex;animation:bookingCheckIn .2s ease-out}
@media(max-width:575.98px){.category-cards-grid{gap:.55rem}.category-card{gap:.7rem;min-height:80px;padding:.7rem}.category-card-content{padding-right:1.25rem}.category-card-name{font-size:.95rem}.category-card-description{font-size:.78rem}}
@media(prefers-reduced-motion:reduce){.category-card,.category-card.selected .category-card-check{animation:none!important;transition:none!important}}
.category-manager-form{display:flex;flex-direction:column;gap:.85rem;max-width:100%}
.category-management-list{display:grid;grid-template-columns:minmax(0,1fr);gap:.65rem}
.category-manager-item{display:flex;align-items:center;gap:.85rem;min-width:0;padding:.9rem;border:1px solid #e5e7eb;border-radius:14px;background:#fff}
.category-manager-details{flex:1;min-width:0}
.category-manager-name{font-size:.95rem;font-weight:750;margin:0;overflow-wrap:anywhere}
.category-manager-actions{display:flex;align-items:center;justify-content:flex-end;gap:.45rem;flex-wrap:wrap}
.category-manager-meta,.category-manager-hint{display:block;color:#6b7280;font-size:.78rem;margin-top:.22rem}
.category-manager-hint{color:#946200}
.category-manager-protected{font-size:.72rem;color:#6b7280;white-space:nowrap}
.category-manager-empty{display:grid;justify-items:center;gap:.45rem;text-align:center;color:#6b7280;padding:1.6rem 1rem;border:1px dashed #d1d5db;border-radius:14px;background:#fafafa}
.category-manager-empty strong{color:#374151}
.category-manager-empty-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#f3f4f6;color:#374151;font-size:1.5rem}
@media(max-width:575.98px){.category-manager-item{padding:.75rem;gap:.65rem}.category-manager-protected{white-space:normal;text-align:right;max-width:92px}}

/* v34 — menu administrativo agrupado para reduzir excesso de opções visíveis */
.admin-offcanvas { width: min(92vw, 390px); }
.admin-offcanvas .offcanvas-header { padding: 1.15rem 1.1rem; }
.admin-offcanvas .offcanvas-body { overflow-y: auto; overscroll-behavior: contain; padding: 1rem; }
.admin-menu-caption { color: #6b7280; font-size: .78rem; margin-top: .15rem; }
.admin-menu-nav { display: grid; gap: .55rem; }
.admin-menu-home { min-height: 66px; border: 1px solid #e5e7eb; background: #fff; margin-bottom: .2rem; }
.admin-menu-home .admin-menu-icon { width: 36px; height: 36px; border-radius: 12px; display: inline-flex; justify-content: center; align-items: center; background: #111827; color: #fff; opacity: 1; font-size: 1.3rem; flex: 0 0 auto; }
.admin-menu-link-copy { display: grid; gap: .12rem; line-height: 1.2; }
.admin-menu-link-copy strong { font-size: .98rem; }
.admin-menu-link-copy small { color: #6b7280; font-size: .76rem; font-weight: 500; }
.admin-menu-home:hover, .admin-menu-home.active { background: #f8fafc; border-color: #cbd5e1; }
.admin-menu-section { border: 1px solid #e5e7eb; border-radius: 15px; overflow: hidden; background: #fff; }
.admin-menu-section-toggle { display: flex; align-items: center; width: 100%; min-height: 54px; gap: .7rem; padding: .8rem .9rem; border: 0; background: #fff; color: #111827; text-align: left; font: inherit; font-weight: 700; cursor: pointer; }
.admin-menu-section-toggle:hover, .admin-menu-section-toggle.section-active { background: #f8fafc; }
.admin-menu-section-toggle.section-active { box-shadow: inset 3px 0 0 #111827; }
.admin-menu-section-icon { width: 29px; height: 29px; border-radius: 10px; background: #f3f4f6; color: #374151; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; font-size: 1.05rem; }
.admin-menu-section-name { flex: 1; min-width: 0; font-size: .93rem; }
.admin-menu-section-toggle .admin-menu-chevron { margin-left: auto; color: #6b7280; font-size: 1.15rem; line-height: 1; transition: transform .18s ease; }
.admin-menu-section-toggle[aria-expanded="true"] .admin-menu-chevron { transform: rotate(180deg); }
.admin-menu-section .admin-menu-subnav { margin: 0; padding: .25rem .6rem .65rem .8rem; border-left: 0; }
.admin-menu-section .admin-menu-sublink { min-height: 43px; padding: .65rem .7rem; gap: .55rem; border-radius: 10px; font-size: .9rem; font-weight: 600; }
.admin-menu-section .admin-menu-sublink .admin-menu-icon { width: 24px; font-size: 1rem; }
.admin-menu-section .admin-menu-sublink:hover { background: #f9fafb; }
.admin-menu-section .admin-menu-sublink.active { background: #eef2f7; color: #111827; box-shadow: inset 3px 0 0 #111827; }
.admin-menu-history { display: grid; gap: .15rem; }
.admin-menu-history-filters { display: flex; gap: .5rem; padding: .05rem .6rem .45rem 2.65rem; }
.admin-menu-history-link { color: #6b7280; text-decoration: none; font-size: .78rem; font-weight: 600; padding: .32rem .5rem; border-radius: 7px; }
.admin-menu-history-link:hover, .admin-menu-history-link.active { color: #111827; background: #f3f4f6; }
@media (max-width: 575.98px) {
  .admin-offcanvas { width: min(94vw, 390px); }
  .admin-menu-section-toggle { min-height: 52px; }
  .admin-menu-history-filters { padding-left: 2.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .admin-menu-section-toggle .admin-menu-chevron { transition: none; }
}


/* v35 — prévias de imagem claras e transições mais leves no painel */
.profile-photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
  max-width: 430px;
  margin-inline: auto;
}
.profile-photo-preview-item {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: .55rem;
  min-width: 0;
  padding: .8rem .55rem;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
}
.profile-photo-preview-label,
.barber-photo-preview-label {
  color: #64748b;
  font-size: .76rem;
  font-weight: 700;
  text-align: center;
}
.profile-photo-preview-item .profile-photo {
  width: clamp(92px, 28vw, 132px);
  height: clamp(92px, 28vw, 132px);
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
  background: #f3f4f6;
  box-shadow: 0 2px 8px rgba(15,23,42,.08);
}
.profile-photo-local {
  margin-top: 0 !important;
  position: static !important;
  z-index: auto !important;
}
.barber-photo-preview-card {
  display: grid;
  justify-items: center;
  gap: .55rem;
  padding: .8rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 15px;
  background: #fff;
}
.barber-photo-preview {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
}
.site-logo-preview-column { width: 100%; max-width: 240px; min-width: 0; }
.logo-preview-box {
  width: 100%;
  max-width: 240px;
  height: 132px;
  padding: .6rem;
  background: linear-gradient(135deg, #f8fafc, #fff);
}
.logo-preview-box .logo-preview-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.logo-preview-box > span { text-align: center; overflow-wrap: anywhere; }

/* Accordéon de menu : une seule section ouverte et hauteur animée courte pour éviter les saccades. */
.admin-offcanvas { transition-duration: .18s; transition-timing-function: ease-out; }
.admin-menu-subnav.collapsing { transition: height .13s ease-out !important; }
.admin-menu-section-toggle .admin-menu-chevron { transition: transform .12s ease-out; }
.admin-menu-section-toggle { -webkit-tap-highlight-color: transparent; }
.admin-menu-section-toggle:focus-visible,
.admin-menu-link:focus-visible,
.admin-menu-history-link:focus-visible { outline: 2px solid #64748b; outline-offset: 2px; }
@media (max-width: 575.98px) {
  .admin-offcanvas { transition-duration: .16s; }
  .admin-menu-subnav.collapsing { transition-duration: .11s !important; }
  .profile-photo-preview-grid { gap: .55rem; }
  .profile-photo-preview-item { padding: .65rem .35rem; border-radius: 13px; }
  .logo-preview-box { height: 124px; }
}
@media (prefers-reduced-motion: reduce) {
  .admin-offcanvas,
  .admin-menu-subnav.collapsing,
  .admin-menu-section-toggle .admin-menu-chevron { transition: none !important; }
}


/* Mensalistas v43: comissão visível e cobranças vencidas mais fáceis de identificar. */
.monthly-status.is-overdue{background:#fff1f2;color:#be123c;border:1px solid #fecdd3}
.monthly-overdue-card{border-color:#fecdd3;background:linear-gradient(140deg,#fff 0%,#fffafa 100%)}
.monthly-overdue-card .monthly-metrics>div{background:#fff;border-color:#ffe4e6}
.monthly-page #monthlyOverdueToggle{min-height:44px;border-radius:12px;font-weight:750}
.monthly-page #monthlySearch{border-radius:12px}
.monthly-page #monthlyFormCollapse .panel-card-body{padding-top:1.25rem}
.monthly-page .form-text{line-height:1.45}
@media(max-width:575px){.monthly-page .panel-card-header{align-items:stretch!important}.monthly-page #monthlyOverdueToggle{width:100%}.monthly-page .panel-card-header .btn[data-bs-toggle="collapse"]{width:100%}}
