@font-face {
  font-family: Agenda;
  src: url("/assets/font-0.ttf");
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f5f6f2;
  color: #243e33;
  font-family: Agenda, Arial, sans-serif;
  font-size: 15px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #cf783d;
  outline-offset: 3px;
}
.sidebar {
  display: none;
}
.shell {
  min-height: 100dvh;
}
.topbar {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid #dfe5dc;
  background: #fcfdf9;
}
.mobile-brand {
  font-size: 24px;
  font-weight: bold;
}
.demo-label {
  font-size: 10px;
  color: #657969;
  max-width: 130px;
}
.avatar {
  border: 0;
  background: #e3ebde;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: #294c3b;
  font-size: 12px;
}
main {
  padding: 26px 18px 110px;
  max-width: 1450px;
  margin: auto;
}
h1 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -1px;
  margin: 0 0 10px;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.4px;
  margin: 0;
}
h3 {
  font-size: 17px;
  margin: 0;
}
p {
  line-height: 1.55;
}
small,
.muted {
  color: #697b6e;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
}
.page-head p {
  margin: 6px 0 0;
  font-size: 13px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid #cad6c8;
  border-radius: 12px;
  background: #fff;
  color: #294437;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
}
.primary {
  background: #274c3b;
  border-color: #274c3b;
  color: white;
}
.accent {
  background: #cc783d;
  color: white;
  border: 0;
}
.danger {
  color: #aa493c;
  background: #fff3ee;
  border-color: #ecc7ba;
}
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.welcome {
  padding: 26px;
  border-radius: 22px;
  background: #294b3b;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
}
.welcome:after {
  content: "✂";
  position: absolute;
  right: 16px;
  top: 22px;
  font-size: 100px;
  color: #ffffff0c;
  transform: rotate(-20deg);
}
.welcome p {
  color: #d5e2ce;
  font-size: 13px;
  max-width: 260px;
}
.welcome .button {
  background: #e6ecd9;
  color: #284b3a;
  border: 0;
}
.eyebrow {
  font-size: 12px;
  display: block;
  margin-bottom: 12px;
  color: #d3dfc9;
}
.summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 20px 0;
}
.metric {
  background: #fff;
  border: 1px solid #e0e6da;
  border-radius: 16px;
  padding: 18px;
}
.metric strong {
  display: block;
  font-size: 28px;
  margin: 10px 0 4px;
  font-weight: 500;
}
.metric span {
  font-size: 12px;
  color: #687b6b;
}
.panel {
  background: #fff;
  border: 1px solid #e1e7dc;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 20px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.section-head a,
.text-button {
  font-size: 12px;
  color: #3d6950;
  background: none;
  border: 0;
  padding: 10px;
}
.schedule {
  display: grid;
  gap: 10px;
}
.booking {
  display: grid;
  grid-template-columns: 48px 1fr 20px;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 17px 12px;
  border: 1px solid #e4e8df;
  border-radius: 13px;
  background: #fff;
  text-align: left;
  color: #294538;
  border-left: 3px solid #71a080;
}
.booking.pending {
  background: #fff8ec;
  border-left-color: #cf993e;
}
.booking-open{border:0;background:transparent;color:inherit;padding:0;cursor:pointer;text-align:left;min-height:44px;font:inherit}
.booking-service{width:100%}.booking-body{min-width:0}
.client-contact{display:flex;align-items:center;gap:8px;min-width:0;font-size:13px;overflow-wrap:anywhere}
.client-contact>span,.client-contact>strong{min-width:0}.client-contact>strong{margin:0}
.whatsapp-shortcut{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;border:1px solid #c6e8d2;border-radius:12px;background:#edf9f1;color:#128c42;text-decoration:none}
.whatsapp-shortcut svg{width:22px;height:22px;display:block}.whatsapp-shortcut:hover{background:#d9f3e3}
.whatsapp-shortcut.is-unavailable{color:#718078;background:#f1f3f1;border-color:#dce2dc;opacity:.7}
.whatsapp-shortcut:focus-visible,.booking-open:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.detail-contact{margin:8px 0 16px}
.booking.cancelled,
.booking.expired {
  opacity: 0.68;
}
.booking time {
  font-size: 14px;
  font-weight: bold;
}
.booking strong {
  display: block;
  font-size: 14px;
  margin-bottom: 7px;
}
.booking small {
  display: block;
  font-size: 11px;
  margin-top: 5px;
}
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 10px;
  background: #e4efe1;
  color: #3e6b4b;
}
.badge.pending {
  background: #f3e1b9;
  color: #855c20;
}
.badge.cancelled,
.badge.expired,
.badge.declined {
  background: #f1e1da;
  color: #8a5042;
}
.badge.blocked {
  background: #e5e7ea;
  color: #53616a;
}
.datebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 8px;
}
.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid #dbe1d5;
  border-radius: 12px;
  background: #fff;
  font-size: 22px;
  color: #34513e;
}
.datebar input {
  width: 155px;
  border: 0;
  background: transparent;
  color: #294538;
  font-size: 14px;
}
.tabs {
  display: flex;
  padding: 4px;
  background: #e8eddf;
  border-radius: 12px;
  gap: 4px;
  margin-bottom: 18px;
  overflow: auto;
}
.tabs button {
  border: 0;
  border-radius: 9px;
  background: transparent;
  min-height: 40px;
  padding: 8px 14px;
  white-space: nowrap;
  font-size: 12px;
  color: #506652;
}
.tabs button.active {
  background: #fff;
  box-shadow: 0 2px 5px #283d3010;
  color: #294638;
}
.search {
  width: 100%;
  border: 1px solid #d8e0d2;
  border-radius: 12px;
  padding: 14px;
  background: white;
  margin: 0 0 18px;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid #e7ebe3;
}
.row:last-child {
  border: 0;
}
.row strong {
  display: block;
  font-size: 14px;
}
.row small {
  font-size: 12px;
  display: block;
  margin-top: 7px;
}
.row button {
  flex-shrink: 0;
}
.empty {
  text-align: center;
  padding: 35px 18px;
  color: #70816f;
}
.empty strong {
  display: block;
  font-size: 18px;
  color: #35523c;
  margin-bottom: 8px;
}
.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  background: #fcfdf9f5;
  backdrop-filter: blur(12px);
  border-top: 1px solid #dbe3d4;
  padding: 8px 5px max(10px, env(safe-area-inset-bottom));
  z-index: 10;
}
.mobile-nav button {
  border: 0;
  background: none;
  min-width: 64px;
  min-height: 49px;
  color: #7a8978;
  font-size: 10px;
  border-radius: 12px;
}
.mobile-nav button span {
  display: block;
  font-size: 21px;
  margin-bottom: 5px;
}
.mobile-nav button.active {
  background: #e7efdf;
  color: #294c38;
}
.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.menu-grid button {
  background: white;
  border: 1px solid #dfe7d7;
  padding: 24px 12px;
  border-radius: 16px;
  text-align: left;
  font-size: 14px;
  color: #2c4937;
}
.menu-grid button span {
  display: block;
  font-size: 24px;
  margin-bottom: 12px;
}
dialog {
  border: 0;
  border-radius: 22px 22px 0 0;
  padding: 0;
  color: #294538;
  width: 100%;
  max-width: 560px;
  max-height: 90dvh;
  margin: auto auto 0;
  box-shadow: 0 15px 70px #152a3240;
}
dialog::backdrop {
  background: #10271c70;
  backdrop-filter: blur(3px);
}
dialog[open] {
  animation: sheet-in 0.25s ease-out;
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #e1e6da;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
#sheet-content {
  padding: 22px;
}
form {
  display: grid;
  gap: 16px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 13px;
}
input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px;
  border: 1px solid #d4ddce;
  border-radius: 10px;
  background: #fbfcf8;
  color: #2c4939;
}
input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.notice {
  padding: 16px;
  border-radius: 12px;
  background: #f0f4e9;
  font-size: 13px;
  line-height: 1.6;
  margin: 15px 0;
}
.error {
  color: #9b3c31;
  font-size: 13px;
  background: #fff1e9;
  padding: 12px;
  border-radius: 10px;
}
.detail-title {
  font-size: 27px;
  margin: 18px 0 8px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 24px 0;
}
.detail-grid small {
  display: block;
  margin-bottom: 7px;
}
.history {
  padding-left: 20px;
  border-left: 2px solid #dce5d3;
  margin: 25px 0;
}
.history p {
  font-size: 12px;
}
.history small {
  display: block;
  font-size: 10px;
}
.money {
  font-variant-numeric: tabular-nums;
}
.negative {
  color: #ad5242;
}
.week-day {
  margin-bottom: 20px;
}
.week-day h3 {
  margin: 18px 0 10px;
  font-size: 14px;
}
#toast {
  position: fixed;
  bottom: 90px;
  left: 20px;
  right: 20px;
  background: #284b38;
  color: white;
  padding: 15px 20px;
  border-radius: 12px;
  z-index: 30;
  box-shadow: 0 5px 30px #14312430;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: none;
}
.public-shell {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 18px 60px;
}
.public-cover {
  border-radius: 22px;
  padding: 30px;
  color: white;
  background:
    linear-gradient(0deg, #1b372fe8, #1b372f80),
    url("/assets/barbearia-hero.webp") center/cover;
}
.public-cover h1 {
  font-size: 30px;
  margin: 22px 0 10px;
}
.steps-line {
  display: flex;
  gap: 7px;
  margin: 25px 0;
}
.steps-line span {
  height: 4px;
  flex: 1;
  background: #dbe4d4;
  border-radius: 4px;
}
.steps-line span.active {
  background: #477951;
}
.slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.slots button {
  min-height: 48px;
  border: 1px solid #cbd8c0;
  border-radius: 12px;
  background: #fff;
  color: #294936;
}
.slots button.active {
  background: #294d39;
  color: #fff;
}
.service-choice {
  width: 100%;
  text-align: left;
  border: 1px solid #dce4d4;
  background: white;
  border-radius: 14px;
  padding: 20px;
  margin: 10px 0;
  color: #294538;
}
.service-choice strong {
  display: block;
  margin-bottom: 8px;
}
.service-choice.selected {
  border: 2px solid #3d704c;
  background: #f0f5e9;
}
@keyframes sheet-in {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
@media (min-width: 900px) {
  .sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    width: 235px;
    background: #234434;
    color: #edf3e5;
    padding: 30px 22px;
  }
  .brand {
    font-size: 35px;
    text-decoration: none;
  }
  .brand strong {
    font-size: 24px;
  }
  .business {
    padding: 26px 0;
    border-bottom: 1px solid #ffffff20;
    margin-bottom: 22px;
  }
  .business span {
    display: block;
    font-size: 14px;
  }
  .business small {
    display: block;
    font-size: 10px;
    color: #bccdb4;
    margin-top: 7px;
  }
  .sidebar nav {
    display: grid;
    gap: 5px;
  }
  .sidebar nav button {
    border: 0;
    color: #cddbc5;
    background: none;
    text-align: left;
    padding: 13px 14px;
    border-radius: 10px;
    font-size: 13px;
  }
  .sidebar nav button span {
    margin-right: 12px;
  }
  .sidebar nav button.active {
    background: #e8efdb;
    color: #274534;
  }
  .side-bottom {
    margin-top: auto;
    display: grid;
    gap: 18px;
    font-size: 11px;
  }
  .plan-label {
    color: #c6d6bc;
  }
  .shell {
    margin-left: 235px;
  }
  .topbar {
    padding: 0 40px;
  }
  .mobile-brand {
    display: none;
  }
  .demo-label {
    max-width: none;
    font-size: 12px;
  }
  .mobile-nav {
    display: none;
  }
  main {
    padding: 35px 40px 60px;
  }
  h1 {
    font-size: 37px;
  }
  .summary {
    grid-template-columns: repeat(4, 1fr);
  }
  .dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 22px;
  }
  .welcome {
    padding: 30px;
  }
  .welcome p {
    max-width: 460px;
  }
  .panel {
    padding: 24px;
  }
  .booking {
    padding: 19px;
  }
  .page-head {
    margin-bottom: 30px;
  }
  dialog {
    margin: auto;
    border-radius: 22px;
    max-height: 88dvh;
  }
  #toast {
    left: auto;
    right: 30px;
    bottom: 25px;
    width: 350px;
  }
  .week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    overflow: auto;
  }
  .week-grid .booking {
    display: block;
    padding: 10px;
  }
  .week-grid .booking time {
    display: block;
    margin-bottom: 8px;
  }
  .week-grid .booking strong {
    font-size: 11px;
  }
  .week-grid .booking small {
    font-size: 9px;
  }
  .week-grid .booking > span:last-child {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.calendar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}
.calendar-row input {
  min-width: 0;
}
.calendar-day {
  border-bottom: 1px solid #e3e9dd;
  padding: 14px 0;
}
.calendar-day .section-head {
  margin: 0;
}
.day-rule {
  border: 1px solid #d6e0ce;
  border-radius: 14px;
  margin: 16px 0;
  padding: 18px;
  display: grid;
  gap: 14px;
}
.day-rule legend {
  padding: 0 8px;
  font-size: 14px;
}
.calendar-row .icon-button {
  flex-shrink: 0;
}

.calendar-day summary {
  min-height: 48px;
  padding: 14px 0;
  cursor: pointer;
  font-weight: 600;
}
.calendar-day[open] summary {
  color: #3e704c;
}
.calendar-day[open] {
  padding-bottom: 18px;
}
#toast{bottom:calc(84px + env(safe-area-inset-bottom));z-index:1000;max-height:35dvh;overflow:auto}.social-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px}.social-card{padding:14px;overflow:hidden}.social-card img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px;margin-bottom:12px}.social-card p{overflow-wrap:anywhere}.social-card .buttons{flex-direction:column}.social-card .button{min-height:44px}@media(min-width:800px){.social-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:420px){.social-grid{grid-template-columns:1fr}}
.partner-quick-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}.partner-quick-actions .button{min-height:44px;padding:10px 12px;font-size:13px}@media(max-width:600px){.partner-quick-actions{display:grid;grid-template-columns:1fr 1fr}.partner-quick-actions .primary{grid-column:1 / -1}.partner-quick-actions .button{text-align:center;justify-content:center}}
.home-overview .page-head{margin-bottom:16px}.home-overview .page-head h1{font-size:28px}.home-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 16px}.home-summary .metric{padding:15px}.home-summary .metric strong{font-size:25px;overflow-wrap:anywhere}.home-next{margin-bottom:14px}.home-next .section-head{margin-bottom:10px}.home-next p{margin:0}.home-pending{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.home-overview .partner-quick-actions{display:flex;flex-wrap:wrap;margin-bottom:16px}.home-overview .page-head .button{white-space:nowrap}@media(min-width:1000px){.home-summary{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:420px){.home-overview .page-head{align-items:center;gap:10px}.home-overview .page-head .button{padding:10px;font-size:12px}.home-pending{align-items:flex-start;flex-direction:column}}
.home-header-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}.home-header-actions .partner-quick-actions{margin:0;gap:8px}.home-header-actions #home-public-actions{display:contents}@media(max-width:700px){.home-overview .page-head{flex-wrap:wrap}.home-header-actions{width:100%;justify-content:flex-start;gap:6px}.home-header-actions .partner-quick-actions{gap:6px}.home-header-actions .button{padding:10px 9px!important;font-size:12px!important}.home-header-actions>.primary{margin-left:auto}}
@media(max-width:700px){.home-overview .page-head{display:grid;grid-template-columns:1fr;gap:10px;margin-bottom:14px}.home-overview .page-head h1{font-size:25px;margin-bottom:3px}.home-overview .page-head p{margin:0;font-size:12px}.home-header-actions{display:flex;flex-wrap:nowrap;width:100%;gap:6px}.home-header-actions .partner-quick-actions{display:flex;flex-wrap:nowrap;gap:6px}.home-header-actions .button{min-height:42px;padding:9px 8px!important;font-size:11px!important;white-space:nowrap}.home-header-actions>.primary{margin-left:auto}.home-summary{gap:9px;margin-bottom:12px}.home-summary .metric{padding:12px 14px;min-height:80px}.home-summary .metric strong{font-size:24px}.home-next{padding:16px;margin-bottom:12px}.home-next h2{font-size:19px}.home-next p{font-size:13px}.home-overview>.panel:last-child{padding:16px}.home-overview>.panel:last-child .empty{padding:28px 12px}}
@media(max-width:700px){.home-overview .page-head>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%}.home-overview .page-head h1{margin:0}.home-overview .page-head>div:first-child p{white-space:nowrap;font-size:12px}.home-overview .page-head{gap:12px}}
@media(max-width:700px){.home-header-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.home-header-actions #home-public-actions,.home-header-actions .partner-quick-actions{display:contents}.home-header-actions .button{width:100%;justify-content:center;text-align:center;font-size:12px!important;min-height:44px}.home-header-actions>.primary{margin-left:0}}
.agenda-release-warning{margin:0 0 14px;border:1px solid #d99936;background:#fff2d8;color:#714709}.agenda-release-warning p{margin:5px 0 0;font-size:13px}.agenda-release-attention{border-color:#b77619!important;box-shadow:0 0 0 2px #d9993630}@media(prefers-reduced-motion:no-preference){.agenda-release-attention{animation:agenda-release-pulse 1.8s ease-in-out infinite}@keyframes agenda-release-pulse{0%,100%{box-shadow:0 0 0 1px #d9993630}50%{box-shadow:0 0 0 5px #d9993670;background:#fff0d1}}}
.floating-save{margin-top:18px}.floating-save .button{min-height:48px}@media(max-width:999px){.has-floating-save main{padding-bottom:180px}.floating-save{position:fixed;left:16px;right:16px;bottom:calc(78px + env(safe-area-inset-bottom));z-index:25;margin:0;padding:10px;background:var(--surface,#fff);border:1px solid #ddd8d3;border-radius:16px;box-shadow:0 6px 24px #0002}.floating-save>.button{width:100%;justify-content:center}.floating-save>.error{margin:0 0 8px;max-height:22dvh;overflow:auto;font-size:13px}.has-floating-save #toast{bottom:calc(154px + env(safe-area-inset-bottom))}}
.booking-payment-row{display:flex;align-items:center;gap:8px}.booking-payment-row>.booking{flex:1;min-width:0;width:0}.booking-pay-shortcut,.booking-paid-indicator{flex:0 0 44px;min-height:48px;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:19px}.booking-pay-shortcut{border:1px solid #a5bfae;background:#f0f7f2;color:#284b38;cursor:pointer}.booking-pay-shortcut small,.booking-paid-indicator small{font-size:10px}.booking-paid-indicator{background:#e8f3ea;color:#284b38}.booking-pay-shortcut:focus-visible{outline:2px solid currentColor;outline-offset:3px}
