/* Maria Nail Studio — painel */
.admin { background: var(--lilac); }
.a-top { gap: 18px; }
.a-tabs { display: flex; gap: 2px; margin-right: auto; overflow-x: auto; }
.a-tabs button {
  display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px; border: 0; border-radius: 999px;
  background: none; font-weight: 600; font-size: 15px; color: var(--muted); white-space: nowrap;
}
.a-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--blush); color: var(--navy); font-size: 12px; font-weight: 700; }
@media (max-width: 680px) {
  .a-top .top__brand, .a-site { display: none; }
  .a-tabs { margin: 0 auto; }
  .a-tabs button { padding: 0 11px; font-size: 14.5px; }
}

.a-main { max-width: 920px; margin: 0 auto; padding: 0 var(--gutter) 90px; }
.pane { padding-top: 28px; }
.pane__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; }
.pane__head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(36px, 6vw, 48px); line-height: 1.05; }
.hint { color: var(--muted); font-size: 15px; max-width: 52ch; }
.a-h2 { font-size: 15px; font-weight: 700; margin: 26px 0 10px; }
.day-h { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 20px 0 8px; }
.day-h:first-child { margin-top: 0; }

/* cartões de marcação */
.bk { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; padding: 16px; margin-bottom: 10px; background: var(--paper); border-radius: 20px; }
.bk.is-pedido { box-shadow: inset 0 0 0 2px var(--peri); }
.bk__when { display: grid; align-content: start; }
.bk__when strong { font-family: var(--serif); font-size: 26px; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.bk__when span { font-size: 13px; color: var(--muted); }
.bk h3 { font-size: 17px; font-weight: 700; }
.bk__svc { display: inline-block; margin-left: 4px; padding: 2px 10px; border-radius: 999px; background: var(--lilac); font-size: 13px; font-weight: 600; color: var(--navy-2); vertical-align: 2px; }
.bk__facts { margin-top: 4px; color: var(--muted); font-size: 14.5px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bk__note { margin-top: 6px; font-family: var(--serif); font-style: italic; font-size: 16px; }
.bk__ago { margin-top: 6px; font-size: 13px; color: var(--peri); font-weight: 600; }
.bk__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn--ghost { background: transparent; color: var(--muted); }
@media (max-width: 520px) { .bk { grid-template-columns: 1fr; gap: 8px; } .bk__when { display: flex; gap: 10px; align-items: baseline; } }

.empty { display: grid; gap: 10px; justify-items: start; padding: 26px 20px; background: var(--paper); border-radius: 20px; }
.empty strong { font-size: 18px; }
.empty p { color: var(--muted); }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* cartões e formulários */
.card { display: grid; gap: 14px; padding: 20px; background: var(--paper); border-radius: 22px; margin-bottom: 22px; }
.card h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; margin-top: 8px; }
.card__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }
.lbl { display: grid; gap: 6px; font-weight: 600; font-size: 14.5px; }
.lbl input, .lbl select, .svc-row input, .svc-row select, .h-row input {
  width: 100%; min-height: 46px; padding: 9px 12px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fff; color: var(--navy); font: inherit; font-weight: 400; font-size: 16px;
}
.lbl input:focus, .lbl select:focus, .svc-row input:focus, .svc-row select:focus, .h-row input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(127, 132, 201, .3); }
.h-row input:disabled { opacity: .4; }

.svc-row {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) 96px 104px auto 44px; gap: 8px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.svc-row .svc-desc { grid-column: 2 / 5; grid-row: 2; }
.mini { position: relative; }
.mini input { padding-right: 38px; }
.mini span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; pointer-events: none; }
.tog { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; white-space: nowrap; cursor: pointer; }
.tog input { width: 20px; height: 20px; accent-color: var(--navy); }
.svc-row .icon-btn { width: 40px; height: 40px; }
@media (max-width: 680px) {
  .svc-row { grid-template-columns: 1fr 1fr 44px; }
  .svc-row [name=name] { grid-column: 1 / 3; grid-row: 1; }
  .svc-row .icon-btn { grid-column: 3; grid-row: 1; }
  .svc-row select { grid-column: 1 / 3; grid-row: 2; }
  .svc-row .svc-desc { grid-column: 1 / -1; grid-row: 3; }
  .svc-row .mini:nth-of-type(1) { grid-column: 1; grid-row: 4; }
  .svc-row .mini:nth-of-type(2) { grid-column: 2; grid-row: 4; }
  .svc-row .tog { grid-column: 3; grid-row: 4; }
  .svc-row .tog span { display: none; }
}

.h-row { display: grid; grid-template-columns: 150px 1fr auto 1fr; gap: 10px; align-items: center; padding: 6px 0; }
.h-row .tog span::first-letter { text-transform: uppercase; }
.to { color: var(--muted); font-size: 14px; }
@media (max-width: 520px) { .h-row { grid-template-columns: 1fr 1fr; } .h-row .tog { grid-column: 1 / -1; } .h-row .to { display: none; } }

/* fotos */
.up { grid-template-columns: 220px minmax(0, 1fr); align-items: stretch; }
.up__drop {
  position: relative; display: grid; place-content: center; justify-items: center; gap: 8px; min-height: 170px; padding: 12px;
  border: 1.5px dashed var(--peri); border-radius: 16px; color: var(--navy-2); font-weight: 600; text-align: center; cursor: pointer; background: var(--lilac);
}
.up__drop.has-files { border-style: solid; background: var(--lilac-2); }
.up__drop svg { width: 30px; }
.up__drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.up__drop:focus-within { outline: 2.5px solid var(--navy); outline-offset: 2px; }
.up__fields { display: grid; gap: 12px; align-content: start; }
.up__fields .btn { justify-self: start; }
@media (max-width: 640px) { .up { grid-template-columns: 1fr; } .up__drop { min-height: 120px; } }
.w-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.w-grid .hint { grid-column: 1 / -1; }
.w-item { position: relative; margin: 0; background: var(--paper); border-radius: 16px; overflow: hidden; }
.w-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.w-item figcaption { padding: 8px 10px; font-size: 13.5px; }
.w-item button { position: absolute; top: 8px; right: 8px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 0; background: rgba(35, 40, 94, .85); color: #fff; font-size: 13px; font-weight: 600; }

/* janela */
.modal { width: min(560px, calc(100vw - 20px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 22px; background: var(--paper); color: var(--navy); }
.modal::backdrop { background: rgba(35, 40, 94, .45); }
.modal__head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; background: var(--paper); border-bottom: 1px solid var(--line); }
.modal__head h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; }
.modal__body { padding: 18px; display: grid; gap: 14px; }
.m-form { display: grid; gap: 14px; }
.m-form .btn { justify-self: start; }
.lbl select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='%2323285E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px); background: var(--navy); color: #fff; font-weight: 600; padding: 12px 20px; border-radius: 16px; text-align: center;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.sample-warn { width: 100%; padding: 10px 14px; border-radius: 12px; background: var(--blush); font-size: 14.5px; }
.svc-row[data-cat="extras"] .mini:nth-of-type(2) { visibility: hidden; }
.bk__warn { margin-top: 6px; font-size: 14px; font-weight: 600; color: #8a3b12; }
.bk__refs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bk__refs button { width: 72px; height: 72px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--lilac); }
.bk__refs img { width: 100%; height: 100%; object-fit: cover; }
.bk__refs button.is-big { width: 100%; max-width: 420px; height: auto; cursor: zoom-out; }
.bk__refs button.is-big img { height: auto; }
.tag-sinal, .tag-ok { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.tag-sinal { background: var(--blush); color: #8a3b12; }
.tag-ok { background: #dff0e6; color: var(--wa); }
.bk.is-sinal { box-shadow: inset 0 0 0 2px var(--blush); }
