@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
  --primary: #0753ff;
  --navy: #101e35;
  --ink: #111b32;
  --muted: #69758c;
  --line: #e7ebf2;
  --surface: #f7f9fc;
  --radius: 10px;
  font-family: var(--f-body, "DM Sans"), system-ui, sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 7px;
  padding: 11px 17px;
  font-weight: 600;
  background: #eef2f8;
  color: var(--ink);
}
button:hover {
  filter: brightness(0.96);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #749cff;
  outline-offset: 3px;
}
a {
  color: var(--primary);
}
.primary {
  background: var(--primary);
  color: white;
}
.secondary {
  background: white;
  border: 1px solid var(--line);
}
.danger {
  background: #fff0f0;
  color: #a62132;
}
.icon {
  font-size: 25px;
  padding: 2px 10px;
  background: transparent;
}
.shell {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--navy);
  color: white;
  padding: 32px 19px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
  color: inherit;
}
.brand small {
  font-size: 8px;
  letter-spacing: 1.4px;
  display: block;
  font-weight: 500;
  margin-top: 8px;
  opacity: 0.7;
}
.brand-symbol {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 44px;
  line-height: 1;
}
.brand-logo {
  width: 43px;
  height: 43px;
  object-fit: contain;
}
.nav {
  display: grid;
  gap: 9px;
  margin-top: 42px;
}
.nav button {
  text-align: left;
  background: transparent;
  color: #d9e0ed;
  font-weight: 500;
  padding: 14px 17px;
  display: flex;
  gap: 17px;
  align-items: center;
}
.nav button.active {
  background: var(--primary);
  color: white;
}
.nav .nav-index {
  font-size: 11px;
  opacity: 0.65;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 28px;
}
.sidebar-bottom small {
  display: block;
  margin: 7px 0 15px;
  color: #b7c1d1;
}
.sidebar-bottom button {
  color: #c9d2df;
  padding: 6px 0;
  background: none;
  font-weight: 400;
}
.main {
  padding: 40px 38px;
  min-width: 0;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: var(--f-display, Manrope), system-ui, sans-serif;
  letter-spacing: -1px;
}
h1 {
  font-size: 34px;
  margin-bottom: 8px;
  font-weight: 800;
  line-height: 1.18;
}
h2 {
  font-size: 24px;
  margin-bottom: 12px;
}
h3 {
  font-size: 17px;
  letter-spacing: -0.4px;
}
.muted,
.subtitle {
  color: var(--muted);
}
.subtitle {
  font-size: 16px;
  margin-bottom: 0;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.9px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 10px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 11px 0 28px;
  margin-bottom: 20px;
}
.stat {
  padding: 5px 25px;
  border-right: 1px solid var(--line);
}
.stat:first-child {
  padding-left: 0;
}
.stat:last-child {
  border: 0;
}
.stat strong {
  font: 800 32px var(--f-display, Manrope);
  display: block;
  letter-spacing: -1px;
}
.stat span {
  color: var(--muted);
  font-size: 14px;
}
.stat i {
  color: var(--primary);
  font-style: normal;
  margin-right: 12px;
  font-size: 20px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.toolbar input,
.toolbar select {
  width: auto;
  max-width: 100%;
  background: white;
}
.toolbar .spacer {
  flex: 1;
}
.tabs {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 3px;
}
.tabs button {
  padding: 7px 13px;
  background: transparent;
  font-size: 12px;
}
.tabs .active {
  background: var(--ink);
  color: white;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
}
th {
  background: #f3f5fa;
  color: #5c6780;
  font-size: 11px;
  font-weight: 500;
  padding: 14px 15px;
}
td {
  padding: 19px 15px;
  border-bottom: 1px solid var(--line);
}
tbody tr[data-id] {
  cursor: pointer;
}
tbody tr[data-id]:hover,
tbody tr.selected {
  background: #f1f5ff;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  font-size: 11px;
}
.person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: #e9eef8;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #697a99;
  object-fit: cover;
  flex: none;
}
.badge {
  border-radius: 30px;
  padding: 7px 11px;
  font-size: 10px;
  background: #edf1f7;
  display: inline-block;
}
.badge.completed {
  background: #e2f5e9;
  color: #167243;
}
.badge.arrived,
.badge.confirmed {
  background: #e6efff;
  color: #164bb3;
}
.badge.in_service {
  background: #fff4d4;
  color: #805d00;
}
.badge.cancelled,
.badge.no_show {
  background: #fce9ec;
  color: #a12c43;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 65px 20px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.empty strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  margin-bottom: 10px;
}
.agenda-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 30px;
}
.detail {
  border-left: 1px solid var(--line);
  padding-left: 25px;
}
.detail-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
.detail h2 {
  margin: 12px 0 8px;
}
.detail .detail-field {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.detail-field small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 6px;
}
.detail-field p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
}
.detail-actions {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}
.detail-actions button {
  width: 100%;
}
.history {
  padding-left: 16px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.history li {
  margin-bottom: 8px;
}
.detail .money-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin: 12px 0;
}
.detail h3 {
  margin-top: 28px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  background: white;
}
.card h3 {
  margin: 15px 0 10px;
}
.card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}
.card .avatar {
  width: 46px;
  height: 46px;
  font-size: 15px;
}
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  background: var(--navy);
  color: white;
  padding: 10vh 12%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-story h1 {
  font-size: 60px;
  line-height: 1.12;
  margin-top: 90px;
}
.auth-story p {
  color: #c2cddd;
  line-height: 1.8;
  max-width: 360px;
}
.auth-form {
  width: min(430px, 100%);
  align-self: center;
  justify-self: center;
  padding: 35px;
}
.auth-form form {
  display: grid;
  gap: 18px;
}
.auth-form h2 {
  font-size: 30px;
}
.auth-form .subtitle {
  margin-bottom: 28px;
}
.auth-form label {
  font-size: 12px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #536078;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dce2ec;
  border-radius: 6px;
  padding: 11px 12px;
  background: white;
  color: var(--ink);
  min-height: 42px;
}
input[type="color"] {
  padding: 4px;
  height: 44px;
}
input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
}
textarea {
  resize: vertical;
  min-height: 85px;
}
.check {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-weight: 400;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.full {
  grid-column: 1/-1;
}
.form-error {
  color: #ad263e;
  font-size: 13px;
  line-height: 1.6;
  margin: 15px 0;
}
.help {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
}
.notice {
  padding: 14px 16px;
  background: #f1f5ff;
  color: #475e8e;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.notice.warning {
  background: #fff6df;
  color: #846118;
}
dialog {
  padding: 28px;
  border: 0;
  border-radius: 13px;
  width: min(650px, calc(100% - 28px));
  max-height: 90vh;
  box-shadow: 0 24px 90px #101e3533;
}
dialog::backdrop {
  background: #0b163b65;
  backdrop-filter: blur(3px);
}
dialog header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}
dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}
.loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  background: var(--ink);
  color: white;
  padding: 15px 24px;
  border-radius: 8px;
  font-size: 13px;
  max-width: 90%;
  transition: 0.2s;
}
#toast.visible {
  transform: translate(-50%, 0);
  opacity: 1;
}
.settings-layout {
  max-width: 850px;
}
.settings-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.settings-section h3 {
  margin-bottom: 20px;
}
.brand-preview {
  padding: 25px;
  background: var(--navy);
  color: white;
  border-radius: 9px;
}
.public {
  background: #f6f8fc;
  min-height: 100vh;
}
.public-header {
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 25px max(25px, calc((100vw - 1050px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.public-header .brand {
  font-size: 20px;
}
.public-header .brand-symbol {
  color: var(--primary);
}
.public-wrap {
  max-width: 1050px;
  margin: 55px auto;
  padding: 0 24px;
}
.public-heading {
  text-align: center;
  margin-bottom: 40px;
}
.public-heading h1 {
  font-size: 39px;
}
.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 30px;
  align-items: start;
}
.booking-main {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
}
.booking-summary {
  background: var(--navy);
  color: white;
  padding: 29px;
  border-radius: 12px;
  position: sticky;
  top: 25px;
}
.booking-summary p {
  color: #ccd5e4;
  font-size: 13px;
  line-height: 1.7;
}
.booking-summary .eyebrow {
  color: #b1bed5;
}
.booking-summary h2 {
  font-size: 22px;
  margin: 25px 0;
}
.booking-summary hr {
  border: 0;
  border-top: 1px solid #ffffff22;
  margin: 24px 0;
}
.progress {
  display: flex;
  gap: 5px;
  margin-bottom: 28px;
}
.progress span {
  height: 4px;
  background: #e8edf5;
  flex: 1;
  border-radius: 5px;
}
.progress .done {
  background: var(--primary);
}
.choice-grid {
  display: grid;
  gap: 11px;
}
.choice {
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  padding: 19px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.choice:hover,
.choice.selected {
  border-color: var(--primary);
  background: #f5f8ff;
}
.choice strong {
  display: block;
  font-size: 14px;
}
.choice small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 6px;
}
.choice .price {
  margin-left: auto;
  font-size: 12px;
  white-space: nowrap;
}
.booking-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 27px;
  gap: 12px;
}
.slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-top: 20px;
}
.slot {
  background: white;
  border: 1px solid var(--line);
}
.slot.selected {
  background: var(--primary);
  color: white;
}
.success-mark {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e7f6ed;
  color: #2d8b5e;
  font-size: 30px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}
.success {
  text-align: center;
  max-width: 620px;
  margin: 30px auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 40px;
}
.success p {
  color: var(--muted);
  line-height: 1.8;
}
.success a {
  overflow-wrap: anywhere;
}
.week-day {
  margin-top: 25px;
}
.week-day h3 {
  text-transform: capitalize;
  font-size: 14px;
  background: var(--surface);
  padding: 14px;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 25px 0;
}
.report-grid .card strong {
  font: 700 28px var(--f-display, Manrope);
  display: block;
  margin-top: 14px;
}
.subtle-link {
  font-size: 12px;
  text-decoration: none;
}
.section-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.mobile-menu {
  display: none;
}
.item-line {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.item-line button {
  font-size: 11px;
  padding: 5px;
}
.public-note {
  font-size: 11px;
  text-align: center;
  color: var(--muted);
  margin-top: 25px;
}
@media (min-width: 1600px) {
  .main {
    padding: 45px 50px;
  }
  .agenda-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
  .detail {
    padding-left: 35px;
  }
  td {
    padding: 23px 17px;
  }
  h1 {
    font-size: 40px;
  }
}
@media (max-width: 1200px) {
  .shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .main {
    padding: 30px 24px;
  }
  .agenda-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 25px;
  }
  .detail .detail-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
  }
  .detail-actions {
    grid-template-columns: repeat(3, 1fr);
  }
  .brand {
    font-size: 19px;
  }
  .nav button {
    padding: 12px;
  }
  .booking-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 18px;
  }
  .sidebar .brand {
    font-size: 20px;
  }
  .sidebar .brand-symbol {
    font-size: 33px;
  }
  .sidebar .brand small {
    font-size: 7px;
  }
  .nav {
    display: flex;
    overflow: auto;
    margin-top: 20px;
    gap: 5px;
    padding-bottom: 2px;
  }
  .nav button {
    flex: none;
    font-size: 12px;
    padding: 9px 12px;
  }
  .nav-index {
    display: none;
  }
  .sidebar-bottom {
    display: none;
  }
  .main {
    padding: 27px 18px;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 25px;
  }
  h1 {
    font-size: 27px;
  }
  .page-heading .primary {
    font-size: 11px;
    padding: 12px;
  }
  .subtitle {
    font-size: 12px;
  }
  .stats {
    margin-bottom: 5px;
    padding-bottom: 23px;
  }
  .stat {
    padding: 3px 12px;
  }
  .stat strong {
    font-size: 27px;
  }
  .stat span {
    font-size: 10px;
  }
  .stat i {
    display: none;
  }
  .toolbar {
    gap: 8px;
  }
  .toolbar input,
  .toolbar select {
    font-size: 12px;
    padding: 9px;
  }
  .toolbar .spacer {
    display: none;
  }
  .tabs {
    margin-left: auto;
  }
  .toolbar .search {
    width: 100%;
  }
  td {
    padding: 17px 10px;
  }
  th {
    padding: 12px 10px;
  }
  table {
    font-size: 12px;
  }
  .detail-actions {
    grid-template-columns: 1fr;
  }
  .detail .detail-fields {
    display: block;
  }
  .auth-layout {
    display: block;
  }
  .auth-story {
    padding: 30px;
  }
  .auth-story h1 {
    font-size: 34px;
    margin-top: 35px;
  }
  .auth-story p {
    display: none;
  }
  .auth-form {
    padding: 35px 25px;
    margin: auto;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .report-grid {
    grid-template-columns: 1fr;
  }
  .public-header {
    padding: 20px;
  }
  .public-header .help {
    display: none;
  }
  .public-wrap {
    margin-top: 35px;
    padding: 0 17px;
  }
  .public-heading h1 {
    font-size: 29px;
  }
  .public-heading .subtitle {
    line-height: 1.7;
  }
  .booking-layout {
    display: flex;
    flex-direction: column;
  }
  .booking-main {
    padding: 23px;
    width: 100%;
  }
  .booking-summary {
    position: static;
    width: 100%;
    order: 2;
  }
  .slots {
    grid-template-columns: repeat(3, 1fr);
  }
  .choice {
    padding: 15px;
  }
  .choice .price {
    font-size: 11px;
  }
  .success {
    padding: 30px 22px;
  }
  .settings-section {
    padding: 20px 0;
  }
  dialog {
    padding: 23px;
  }
  .public-header .brand small {
    font-size: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media (max-width: 760px) {
  .sidebar-bottom {
    display: flex;
    padding-top: 13px;
    gap: 13px;
    align-items: center;
    font-size: 11px;
    flex-wrap: wrap;
  }
  .sidebar-bottom small {
    margin: 0;
  }
  .sidebar-bottom br {
    display: none;
  }
  .sidebar-bottom button {
    padding: 0;
    font-size: 11px;
    margin-left: auto;
  }
  .sidebar-bottom .subtle-link {
    font-size: 10px;
  }
}
:root {
  --on-primary: #ffffff;
  --on-navy: #ffffff;
}
.primary,
.nav button.active,
.slot.selected {
  color: var(--on-primary);
}
.sidebar,
.auth-story,
.booking-summary,
.brand-preview {
  color: var(--on-navy);
}
.nav button {
  color: var(--on-navy);
}
.sidebar-bottom small,
.sidebar-bottom button,
.auth-story p,
.booking-summary p,
.booking-summary .eyebrow,
.booking-summary .help {
  color: var(--on-navy);
  opacity: 0.76;
}
.sidebar .subtle-link {
  color: var(--on-navy) !important;
}
.report-breakdowns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.report-breakdown {
  min-width: 0;
}
.report-breakdown td {
  padding: 13px 10px;
}
.report-breakdown th {
  padding: 12px 10px;
}
.booking-summary hr {
  border-color: currentColor;
  opacity: 0.2;
}
@media (max-width: 1000px) {
  .report-breakdowns {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .appointment-wrap {
    overflow: visible;
  }
  .appointment-table {
    display: block;
    white-space: normal;
  }
  .appointment-table thead {
    display: none;
  }
  .appointment-table tbody {
    display: grid;
    gap: 10px;
  }
  .appointment-table tr {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 7px 12px;
    padding: 16px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: white;
  }
  .appointment-table td {
    padding: 0;
    border: 0;
    min-width: 0;
  }
  .appointment-table td:nth-child(1) {
    grid-column: 1;
    grid-row: 1/4;
    font-size: 13px;
    padding-top: 1px;
  }
  .appointment-table td:nth-child(1) small {
    font-size: 10px;
  }
  .appointment-table td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
    font-weight: 600;
    font-size: 13px;
    overflow-wrap: anywhere;
  }
  .appointment-table td:nth-child(2) small {
    font-size: 10px;
    font-weight: 400;
    margin-top: 5px;
  }
  .appointment-table td:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    font-size: 11px;
    color: var(--muted);
    line-height: 1.5;
  }
  .appointment-table td:nth-child(3) small {
    display: inline;
    margin-left: 5px;
    font-size: 10px;
  }
  .appointment-table td:nth-child(4) {
    grid-column: 2/4;
    grid-row: 3;
    font-size: 10px;
    margin-top: 3px;
    color: var(--muted);
  }
  .appointment-table td:nth-child(4) .avatar {
    width: 21px;
    height: 21px;
    font-size: 8px;
  }
  .appointment-table td:nth-child(4) .person {
    gap: 7px;
  }
  .appointment-table td:nth-child(5) {
    grid-column: 3;
    grid-row: 1/3;
    align-self: start;
  }
  .appointment-table td:nth-child(5) .badge {
    font-size: 9px;
    padding: 6px 8px;
    white-space: nowrap;
  }
  .appointment-table td:nth-child(6) {
    display: none;
  }
  .detail {
    scroll-margin-top: 15px;
  }
}

@media (min-width: 1201px) {
  .main:has(.agenda-layout) {
    padding-right: 350px;
  }
  .agenda-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .agenda-layout > .detail {
    position: fixed;
    inset: 0 0 0 auto;
    width: 310px;
    padding: 30px 24px;
    overflow-y: auto;
    background: #fff;
    border-left: 1px solid var(--line);
    z-index: 4;
  }
  .page-heading h1 {
    font-size: clamp(30px, 2.7vw, 40px);
  }
}
/* Agenda diária: a escala vertical representa dois pixels por minuto. */
.calendar-hint {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 14px;
  line-height: 1.6;
}
.day-calendar {
  overflow: auto;
  max-height: 72vh;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  scrollbar-width: thin;
}
.calendar-inner {
  display: grid;
  grid-template-columns: 70px repeat(var(--professionals), minmax(230px, 1fr));
  grid-template-rows: 82px var(--calendar-height);
  min-width: calc(70px + var(--professionals) * 230px);
  position: relative;
}
.calendar-corner,
.calendar-person {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #f8f9fc;
  border-bottom: 1px solid var(--line);
  padding: 17px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.calendar-corner {
  font-size: 11px;
  color: var(--muted);
  padding: 10px;
  left: 0;
  z-index: 7;
}
.calendar-person {
  border-left: 1px solid var(--line);
}
.calendar-person .avatar {
  width: 39px;
  height: 39px;
  font-size: 13px;
  background: #e5ebf6;
  color: #334968;
  flex: none;
}
.calendar-person strong {
  display: block;
  font:
    700 15px var(--f-display, "Manrope"),
    sans-serif;
}
.calendar-person small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.calendar-times {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 4;
  height: var(--calendar-height);
}
.calendar-times span {
  position: absolute;
  right: 12px;
  color: #67738a;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  padding-top: 6px;
}
.calendar-column {
  position: relative;
  height: var(--calendar-height);
  border-left: 1px solid var(--line);
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 59px,
    #e9edf4 59px,
    #e9edf4 60px
  );
}
.calendar-event,
.calendar-block,
.calendar-closed {
  position: absolute;
  left: 6px;
  right: 6px;
  border-radius: 7px;
  overflow: hidden;
  text-align: left;
}
.calendar-event {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 9px 12px;
  background: #eaf1ff;
  color: #203c71;
  border: 2px solid white;
  border-left: 4px solid #739ced;
  z-index: 2;
  font-size: 13px;
  line-height: 1.25;
  width: calc(100% - 12px);
  font-weight: 400;
}
.calendar-event strong {
  font-size: 14px;
  font-weight: 700;
}
.calendar-event-time {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.calendar-event small {
  font-size: 11px;
  font-weight: 600;
  margin-top: auto;
}
.calendar-event.confirmed,
.calendar-event.completed {
  background: #e8f6ed;
  border-left-color: #58aa7d;
  color: #224a38;
}
.calendar-event.reserved {
  background: #fff1e3;
  border-left-color: #eba455;
  color: #76502c;
}
.calendar-event.in_service {
  background: #f0ebff;
  border-left-color: #9371de;
  color: #57417e;
}
.calendar-event.arrived {
  background: #e7f3fc;
  border-left-color: #4595c1;
  color: #285b7e;
}
.calendar-event.is-selected {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}
.calendar-event:hover {
  filter: brightness(0.98);
  box-shadow: 0 3px 12px #1f365015;
  z-index: 3;
}
.calendar-event.compact {
  flex-direction: row;
  gap: 8px;
  padding: 3px 8px;
  align-items: center;
}
.calendar-event.compact > span:not(.calendar-event-time),
.calendar-event.compact small {
  display: none;
}
.calendar-block {
  z-index: 1;
  background: repeating-linear-gradient(
    135deg,
    #e9edf4,
    #e9edf4 2px,
    #f3f5f9 2px,
    #f3f5f9 10px
  );
  color: #526077;
  padding: 10px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.calendar-closed {
  left: 0;
  right: 0;
  border-radius: 0;
  background: repeating-linear-gradient(
    135deg,
    #f3f4f7,
    #f3f4f7 2px,
    #fafbfc 2px,
    #fafbfc 10px
  );
  color: #9aa3b2;
  padding: 10px;
  font-size: 11px;
  pointer-events: none;
}
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
  padding: 16px 0;
}
.calendar-legend span:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b9c3d2;
  display: inline-block;
  margin-right: 7px;
}
.calendar-legend .legend-confirmed:before {
  background: #58aa7d;
}
.calendar-legend .legend-reserved:before {
  background: #eba455;
}
.calendar-legend .legend-service:before {
  background: #9371de;
}
.main:has(.day-calendar) .stats {
  display: flex;
  gap: 28px;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.main:has(.day-calendar) .stat {
  display: flex;
  gap: 9px;
  align-items: baseline;
  padding: 0;
  border: 0;
}
.main:has(.day-calendar) .stat strong {
  font-size: 22px;
}
.main:has(.day-calendar) .stat strong i {
  display: none;
}
.main:has(.day-calendar) .stat span {
  font-size: 13px;
}
.main:has(.day-calendar) .page-heading {
  margin-bottom: 24px;
}
.main:has(.day-calendar) .toolbar {
  gap: 9px;
}
.main:has(.day-calendar) .toolbar .search {
  min-width: 180px;
}
@media (max-width: 760px) {
  .calendar-inner {
    grid-template-columns: 56px repeat(var(--professionals), minmax(210px, 1fr));
    min-width: calc(56px + var(--professionals) * 210px);
  }
  .calendar-person {
    padding: 12px;
  }
  .day-calendar {
    max-height: 68vh;
  }
  .main:has(.day-calendar) .stats {
    gap: 14px;
    flex-wrap: wrap;
  }
  .main:has(.day-calendar) .stat strong {
    font-size: 19px;
  }
}

.calendar-event {
  gap: 3px;
  padding: 6px 11px;
}
.calendar-event-time {
  font-size: 11px;
  line-height: 1.2;
}
.calendar-event strong {
  font-size: 13px;
  line-height: 1.2;
}
.calendar-event > span:not(.calendar-event-time) {
  font-size: 12px;
  line-height: 1.2;
}
.calendar-event small {
  font-size: 10px;
  line-height: 1.2;
}
.calendar-event:has(.calendar-event-time):not(.compact) {
  min-height: 0;
}
.main:has(.day-calendar) {
  font-size: 14px;
}
.main:has(.day-calendar) .page-heading h1 {
  font-size: clamp(26px, 2.5vw, 36px);
  letter-spacing: -1px;
}
.main:has(.day-calendar) .toolbar {
  margin-bottom: 16px;
}
.main:has(.day-calendar) .toolbar .search {
  flex: 1;
}

.calendar-event.short {
  gap: 2px;
  padding: 4px 9px;
}
.calendar-event.short small {
  display: none;
}
.calendar-event.short .calendar-event-time {
  font-size: 10px;
}
.calendar-event.short > span:not(.calendar-event-time) {
  font-size: 11px;
}
.sidebar .brand small {
  font-size: 9px;
  line-height: 1.6;
  letter-spacing: 0.05em;
  margin-top: 8px;
}
/* Todas as visualizações usam a mesma largura, filtros e ritmo visual. */
@media (min-width: 761px) {
  .shell:has(.agenda-page) {
    grid-template-columns: 184px minmax(0, 1fr);
  }
  .shell:has(.agenda-page) > .sidebar {
    padding: 24px 12px;
  }
  .shell:has(.agenda-page) .sidebar .brand {
    font-size: 18px;
    gap: 8px;
  }
  .shell:has(.agenda-page) .sidebar .brand-logo {
    width: 32px;
    height: 32px;
  }
  .shell:has(.agenda-page) .nav button {
    padding: 12px 10px;
    gap: 9px;
    font-size: 13px;
  }
  .agenda-page {
    padding: 24px 20px;
  }
  .agenda-page:has(.agenda-layout) {
    padding-right: 344px;
  }
}
.agenda-page .page-heading {
  margin-bottom: 20px;
  gap: 16px;
}
.agenda-page .page-heading h1 {
  font-size: clamp(25px, 2.3vw, 34px);
  letter-spacing: -0.8px;
}
.agenda-page .page-heading .subtitle {
  font-size: 13px;
  max-width: 70ch;
}
.agenda-page .stats {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 16px;
  margin: 0 0 18px;
}
.agenda-page .stat {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 0;
  border: 0;
}
.agenda-page .stat strong {
  font-size: 21px;
}
.agenda-page .stat strong i {
  display: none;
}
.agenda-page .stat span {
  font-size: 12px;
}
.agenda-page .toolbar {
  gap: 8px;
  margin-bottom: 12px;
}
.agenda-page .toolbar input,
.agenda-page .toolbar select {
  padding: 9px 10px;
  font-size: 12px;
  min-height: 38px;
}
.agenda-page .toolbar button {
  font-size: 12px;
  padding: 9px 12px;
}
.agenda-page .toolbar .search {
  flex: 1;
  min-width: 160px;
}
.agenda-page .day-calendar {
  max-height: calc(100vh - 280px);
  min-height: 320px;
}
.agenda-page .calendar-hint {
  font-size: 12px;
  margin-bottom: 10px;
}
.agenda-list {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.agenda-list .appointment-wrap {
  border: 0;
  border-radius: 0;
}
.agenda-list .appointment-table td {
  padding: 13px 14px;
  font-size: 13px;
}
.agenda-list .appointment-table th {
  padding: 13px 14px;
  background: #f8f9fc;
  font-size: 12px;
}
.agenda-list .appointment-table td small {
  font-size: 11px;
}
.agenda-list .appointment-table tr:hover {
  background: #f5f8fe;
}
.week-calendar .calendar-inner {
  min-width: calc(62px + var(--professionals) * 220px);
  grid-template-columns: 62px repeat(var(--professionals), minmax(220px, 1fr));
}
.week-calendar .calendar-person {
  justify-content: center;
  text-align: center;
  padding: 12px 6px;
}
.week-calendar .calendar-person strong {
  text-transform: capitalize;
  font-size: 14px;
}
.week-calendar .calendar-person small {
  display: none;
}
.week-calendar .calendar-event {
  padding: 5px 6px;
  gap: 3px;
}
.week-calendar .calendar-event strong {
  font-size: 12px;
}
.week-calendar .calendar-event > span:not(.calendar-event-time) {
  font-size: 11px;
}
.week-calendar .calendar-event small {
  font-size: 10px;
}
@media (min-width: 761px) and (max-width: 1200px) {
  .agenda-page:has(.agenda-layout) {
    padding-right: 20px;
  }
}
@media (max-width: 760px) {
  .agenda-page .stats {
    gap: 14px;
    flex-wrap: wrap;
  }
  .agenda-page .stat strong {
    font-size: 18px;
  }
  .agenda-page .day-calendar {
    max-height: 65vh;
  }
  .agenda-list .appointment-table td {
    padding: 0;
  }
  .agenda-page .calendar-hint {
    max-width: 48ch;
  }
}
