.section-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.cart-items > div {
  grid-template-columns: minmax(0, 1fr) auto 30px;
}

.notification.client-notification {
  border: 1px solid #ead4db;
  border-radius: 14px;
  background: #fff;
  color: var(--rose-dark);
  box-shadow: 0 6px 18px rgba(88, 48, 64, .07);
}

.notification-bell-icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.client-notification-center > small {
  color: var(--rose);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.client-notification-center h2 {
  margin: 5px 0;
}

.client-notification-center > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.client-notification-center section {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
}

.client-notification-center article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fffafb;
}

.client-notification-center article > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: var(--rose-soft);
  color: var(--rose-dark);
}

.client-notification-center article svg {
  width: 21px;
  height: 21px;
}

.client-notification-center article div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.client-notification-center article strong {
  font-size: 12px;
}

.client-notification-center article small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.client-notification-center > .btn {
  width: 100%;
}

.open-client-latest-order {
  cursor: pointer;
  border-radius: 11px;
  transition: background .18s ease, transform .18s ease;
}

.open-client-latest-order:hover {
  background: #fff8fa;
  transform: translateY(-1px);
}

.client-orders-modal > small,
.client-order-detail > small {
  color: var(--rose);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.client-orders-modal h2 {
  margin: 5px 0;
}

.client-orders-modal > p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
}

.client-orders-modal > section {
  display: grid;
  gap: 7px;
  max-height: 58vh;
  overflow-y: auto;
}

.client-order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto 16px;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.client-order-row > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.client-order-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.client-order-row em {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--rose-soft);
  color: var(--rose-dark);
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}

.client-order-row em.cancelled {
  background: #f2edef;
  color: #776d71;
}

.client-order-detail header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 5px 0 16px;
}

.client-order-detail header h2 {
  margin: 0 0 3px;
}

.client-order-detail header p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.client-order-detail header > strong {
  color: var(--rose-dark);
  font-size: 21px;
  white-space: nowrap;
}

.client-order-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 18px 0;
}

.client-order-timeline > div {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  color: #a39a9e;
  font-size: 9px;
  text-align: center;
}

.client-order-timeline > div::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: 13px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: #eadfe3;
}

.client-order-timeline > div:first-child::before {
  display: none;
}

.client-order-timeline i {
  position: relative;
  z-index: 1;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 2px solid #e5d9dd;
  border-radius: 50%;
  background: #fff;
  font-style: normal;
}

.client-order-timeline .done {
  color: var(--rose-dark);
  font-weight: 700;
}

.client-order-timeline .done::before,
.client-order-timeline .done i {
  border-color: var(--rose);
  background: var(--rose);
  color: #fff;
}

.client-order-delivery {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 13px 0;
  padding: 11px;
  border-radius: 11px;
  background: #fff7f9;
}

.client-order-delivery > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--rose-dark);
}

.client-order-delivery div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.client-order-delivery small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.client-order-products {
  border-block: 1px solid var(--line);
}

.client-order-products article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px;
}

.client-order-products article + article {
  border-top: 1px solid #f2e9ec;
}

.client-order-products span,
.client-order-payment span {
  display: flex;
  flex-direction: column;
}

.client-order-products small,
.client-order-payment small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.client-order-payment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 13px 0;
  padding: 12px;
  border-radius: 10px;
  background: var(--rose-soft);
}

.client-order-payment > b {
  color: var(--rose-dark);
  font-size: 18px;
}

.client-order-detail footer {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.client-order-detail footer > * {
  flex: 1;
  min-width: 120px;
  text-align: center;
}

.client-cancel-order {
  padding: 11px 13px;
  border: 1px solid #e3c6cf;
  border-radius: 10px;
  background: #fff;
  color: #a33e5e;
  font-weight: 700;
}

.client-order-cancelled {
  margin: 14px 0;
  padding: 12px;
  border-radius: 10px;
  background: #f4f0f1;
  color: #776d71;
  font-size: 11px;
}

@media (max-width: 600px) {
  .modal:has(.client-orders-modal),
  .modal:has(.client-order-detail) {
    width: calc(100% - 18px);
    max-height: calc(100dvh - 18px);
    padding: 18px 14px;
    border-radius: 18px;
  }

  .client-order-row {
    grid-template-columns: minmax(0, 1fr) auto 14px;
  }

  .client-order-row > b {
    font-size: 12px;
  }

  .client-order-row em {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .client-order-timeline span {
    font-size: 8px;
  }

  .client-order-detail footer {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.owner-profile {
  padding: 4px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  text-align: left;
  transition: background .18s ease;
}

.owner-profile:hover,
.owner-profile:focus-visible {
  background: #fff3f7;
  outline: none;
}

.owner-profile:focus-visible {
  box-shadow: 0 0 0 2px #e9b8c8;
}

.agenda-save-confirmation {
  position: fixed;
  z-index: 10050;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  background: rgba(39, 27, 32, .12);
  backdrop-filter: blur(2px);
  transition: opacity .24s ease;
}

.agenda-save-confirmation.show {
  opacity: 1;
}

.agenda-save-confirmation section {
  display: grid;
  width: min(360px, 100%);
  padding: 25px 24px 23px;
  place-items: center;
  border: 1px solid #efd9e1;
  border-radius: 20px;
  background: #fff;
  text-align: center;
  box-shadow: 0 24px 70px rgba(71, 35, 48, .22);
  transform: translateY(14px) scale(.96);
  transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}

.agenda-save-confirmation.show section {
  transform: translateY(0) scale(1);
}

.agenda-save-confirmation section > span {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 13px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #d66087, #b43e66);
  color: #fff;
  box-shadow: 0 9px 22px rgba(190, 67, 108, .24);
}

.agenda-save-confirmation .system-icon {
  width: 27px;
  height: 27px;
}

.agenda-save-confirmation small {
  color: #bc456d;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .11em;
}

.agenda-save-confirmation strong {
  margin-top: 5px;
  font-size: 20px;
}

.agenda-save-confirmation p {
  margin: 10px 0 0;
  color: #776a6f;
  font-size: 12px;
  line-height: 1.55;
}

.agenda-save-confirmation p b {
  color: #352d30;
}

@media (max-width: 540px) {
  .owner-self-profile > p {
    max-width: 330px;
    font-size: 12px;
    line-height: 1.45;
  }

  .owner-self-profile .grid.g2 {
    grid-template-columns: 1fr;
  }
}

.cart-item-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.cart-quantity {
  display: grid;
  grid-template-columns: 30px 30px 30px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #ead9df;
  border-radius: 9px;
  background: #fff;
}

.cart-quantity button {
  width: 30px;
  height: 32px;
  padding: 0;
  border: 0;
  background: #fff7fa;
  color: var(--rose-dark);
  font-size: 18px;
}

.cart-quantity b {
  text-align: center;
  font-size: 12px;
}

@media (max-width: 600px) {
  .modal:has(#checkoutV2) {
    width: calc(100% - 18px);
    max-height: calc(100dvh - 18px);
    padding: 18px 14px;
    border-radius: 18px;
  }

  .cart-items > div {
    grid-template-columns: minmax(0, 1fr) 28px;
    gap: 8px;
  }

  .cart-item-side {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
  }

  .remove-cart-item {
    grid-column: 2;
    grid-row: 1;
  }

  .cart-quantity {
    grid-template-columns: 38px 34px 38px;
  }

  .cart-quantity button {
    width: 38px;
    height: 38px;
  }
}

/* Fechamento de atendimento com comportamento de aplicativo no celular. */
@media (max-width: 700px) {
  .modal-back:has(#saleCheckoutForm),
  .modal-back:has(.sale-receipt) { padding: 0; place-items: stretch; }

  .modal:has(#saleCheckoutForm),
  .modal:has(.sale-receipt) {
    width: 100%; max-width: none; height: 100dvh; max-height: 100dvh;
    margin: 0; padding: 0 14px calc(96px + env(safe-area-inset-bottom));
    border-radius: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  }

  .modal:has(#saleCheckoutForm) > .closeModal,
  .modal:has(.sale-receipt) > .closeModal {
    position: sticky; top: 10px; z-index: 15; float: right;
    min-height: 38px; margin: 10px 0 -38px; padding: 8px 13px;
    background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  }

  .modal:has(#saleCheckoutForm) .sale-modal-head {
    position: sticky; top: 0; z-index: 10; margin: 0 -14px;
    padding: 17px 72px 12px 14px; background: rgba(255,255,255,.97);
    box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(14px);
  }

  .sale-modal-head h2 { margin: 3px 0; font-size: 20px; line-height: 1.15; }
  .sale-modal-head p { align-items: center; gap: 8px; font-size: 13px; }
  .sale-modal-head p strong { white-space: nowrap; }
  .sale-context { gap: 5px; margin-top: 8px; }
  .sale-context span, .sale-context em { padding: 5px 7px; font-size: 9px; }
  .sale-context em { display: none; }
  #saleCheckoutForm { padding-top: 1px; }

  #saleCheckoutForm .product-search-head {
    position: sticky; top: 128px; z-index: 8; gap: 8px;
    margin: 0 -14px 10px; padding: 11px 14px 9px;
    background: rgba(255,255,255,.97); box-shadow: 0 8px 16px rgba(92,48,64,.05);
    backdrop-filter: blur(14px);
  }
  #saleCheckoutForm .product-search-head h3 { font-size: 15px; }
  #saleCheckoutForm .product-search-head label { min-height: 42px; border-radius: 10px; }
  #saleCheckoutForm .product-search-head input { padding: 9px 6px; font-size: 14px; }
  #saleCheckoutForm .sale-product-picker { max-height: none; overflow: visible; }

  #saleCheckoutForm .sale-product-picker article,
  #saleCheckoutForm .sale-product-picker article:has(.sale-quantity-control) {
    grid-template-columns: 46px minmax(0,1fr); gap: 7px 9px; padding: 9px; border-radius: 12px;
  }
  #saleCheckoutForm .sale-product-thumb { width: 46px; height: 46px; }
  #saleCheckoutForm .sale-product-picker article > span { min-width: 0; }
  #saleCheckoutForm .sale-product-picker article > span strong,
  #saleCheckoutForm .sale-product-picker article > span small {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  #saleCheckoutForm .sale-product-picker article > select { grid-row: auto; min-height: 40px; }
  #saleCheckoutForm .sale-product-picker article > select:first-of-type:last-of-type { grid-column: 1/-1; }
  #saleCheckoutForm .sale-quantity-control {
    grid-column: 1/-1; display: grid; grid-template-columns: 44px minmax(58px,1fr) 44px; gap: 7px;
  }
  #saleCheckoutForm .sale-quantity-control button,
  #saleCheckoutForm .sale-quantity-control input { min-height: 42px; }

  #saleCheckoutForm .sale-discount {
    grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; padding: 11px;
  }
  #saleCheckoutForm .sale-discount > div { grid-column: 1/-1; }
  #saleCheckoutForm .sale-discount select,
  #saleCheckoutForm .sale-discount input,
  #saleCheckoutForm .sale-payment-grid select { min-height: 44px; font-size: 15px; }
  #saleCheckoutForm .sale-payment-grid { grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }

  #saleCheckoutForm .sale-total {
    position: sticky; bottom: calc(73px + env(safe-area-inset-bottom)); z-index: 11;
    margin: 14px -14px 0; padding: 11px 15px; border-radius: 0;
    border-top: 1px solid #edced8; box-shadow: 0 -8px 20px rgba(75,34,49,.08);
  }
  #saleCheckoutForm .sale-total strong { font-size: 21px; white-space: nowrap; }
  #saleCheckoutForm .sale-checkout-actions {
    position: sticky; bottom: calc(-96px - env(safe-area-inset-bottom)); z-index: 12;
    grid-template-columns: 1fr 2.2fr; gap: 8px; margin: 0 -14px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: #fff; box-shadow: 0 -1px 0 var(--line);
  }
  #saleCheckoutForm .sale-checkout-actions .btn {
    min-height: 48px; padding: 9px 10px; font-size: 12px; line-height: 1.15;
  }

  .modal:has(.sale-receipt) .sale-receipt { padding-top: 20px; }
  .modal:has(.sale-receipt) .receipt-check { width: 50px; height: 50px; font-size: 25px; }
  .modal:has(.sale-receipt) .receipt-studio { margin: 15px 0; padding: 11px; }
  .modal:has(.sale-receipt) .receipt-info { grid-template-columns: 1fr; gap: 7px; }
  .modal:has(.sale-receipt) .sale-receipt footer > div { grid-template-columns: 1fr; }
  .modal:has(.sale-receipt) .sale-receipt footer .btn { min-height: 44px; }
}

@media (max-width: 700px) {
  body.menu-open:not(:has(.studio-sidebar.mobile-open)) {
    overflow-y: auto !important;
    touch-action: pan-y;
  }

  #saleCheckoutForm .sale-checkout-actions {
    bottom: 0;
  }
}

.professional-availability-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.professional-availability-overview button {
  min-height: 66px;
  padding: 12px 14px;
  border: 1px solid #ead8de;
  border-radius: 13px;
  background: #fff;
  color: #30282b;
  text-align: left;
}

.professional-availability-overview button strong,
.professional-availability-overview button span {
  display: block;
}

.professional-availability-overview button span {
  margin-top: 5px;
  color: #7b6d72;
  font-size: 12px;
}

.professional-availability-overview .is-open {
  border-color: #dca8ba;
  background: #fff7fa;
}

.professional-availability-overview .is-open span {
  color: #b6426a;
}

.professional-availability-overview .is-closed {
  opacity: .7;
}

.professional-availability-overview > article {
  overflow: hidden;
  border: 1px solid #ead8de;
  border-radius: 14px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.professional-availability-overview > article.selected {
  border-color: #c34d74;
  box-shadow: 0 8px 22px rgba(162, 63, 97, .12);
  transform: translateY(-1px);
}

.professional-availability-overview > article > button {
  width: 100%;
  min-height: 74px;
  padding: 12px 14px;
  border: 0;
  border-radius: 0;
  background: #fff;
  cursor: pointer;
}

.professional-availability-overview > article.selected > button {
  background: #fff3f7;
}

.professional-availability-overview > article > button em {
  display: block;
  margin-top: 7px;
  color: #b14368;
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
}

.professional-availability-overview > article > div {
  padding: 0 10px 10px;
  border-top: 1px solid #f0e3e7;
}

.professional-availability-overview > article > div > section {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 6px;
  padding: 9px 2px;
  border-bottom: 1px solid #f2e7ea;
}

.professional-availability-overview > article > div > section span,
.professional-availability-overview > article > div > section small {
  display: block;
}

.professional-availability-overview > article > div > section small {
  margin-top: 2px;
  color: #81747a;
  font-size: 10px;
}

.professional-availability-overview > article > div > section button {
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid #e4c3ce;
  border-radius: 8px;
  background: #fff;
  color: #a94164;
  font-size: 10px;
  font-weight: 700;
}

.professional-availability-overview > article > div > section button:last-child {
  color: #8b6974;
}

.professional-availability-overview > article > div > small {
  display: block;
  padding: 8px 2px 0;
  color: #8a7b80;
  font-size: 10px;
}

.opened-professional-filter {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: -52px 0 16px;
  color: #75686d;
  font-size: 13px;
}

.opened-agenda-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: -52px 0 16px;
}

.opened-agenda-controls .opened-professional-filter {
  margin: 0;
}

.show-past-opened-dates {
  height: 40px;
  padding: 0 13px;
  border: 1px solid #e5c5d0;
  border-radius: 10px;
  background: #fff;
  color: #ad4166;
  font-size: 12px;
  cursor: pointer;
}

.past-opened-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: -7px 0 12px;
  color: #786a6f;
  font-size: 12px;
}

.past-opened-pagination button {
  padding: 8px 11px;
  border: 1px solid #e4cbd3;
  border-radius: 9px;
  background: #fff;
  color: #a94164;
  cursor: pointer;
}

.past-opened-pagination button:disabled {
  opacity: .45;
  cursor: default;
}

.opened-professional-filter select {
  min-width: 210px;
  height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid #e5d2d9;
  border-radius: 10px;
  background: #fff;
}

.pro-choice.agenda-closed {
  opacity: .52;
  cursor: not-allowed;
}

.pro-choice em.closed {
  color: #9a858c;
  background: #f4eff1;
}

@media (max-width: 700px) {
  .professional-availability-overview {
    grid-template-columns: 1fr;
  }

  .opened-professional-filter {
    margin: 0 0 12px;
    align-items: stretch;
    flex-direction: column;
  }

  .opened-agenda-controls {
    margin: 0 0 12px;
    align-items: stretch;
    flex-direction: column;
  }

  .opened-agenda-controls .opened-professional-filter {
    margin: 0;
  }

  .past-opened-pagination {
    justify-content: space-between;
    margin-top: 0;
  }

  .opened-professional-filter select {
    width: 100%;
  }

  .professional-availability-overview > article > div > section {
    grid-template-columns: 1fr auto;
  }

  .professional-availability-overview > article > div > section button:last-child {
    grid-column: 2;
  }
}

@media (max-width: 700px) {
  .dashboard .main:has(.open-agenda-card) {
    min-width: 0;
    overflow-x: hidden;
    padding-inline: 12px;
  }

  .dashboard .main:has(.open-agenda-card) > .section-title:first-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 13px;
    margin-bottom: 16px;
  }

  .dashboard .main:has(.open-agenda-card) > .section-title:first-child h1 {
    margin: 0;
    font-size: clamp(25px, 8vw, 31px);
    line-height: 1.08;
  }

  .dashboard .main:has(.open-agenda-card) > .section-title:first-child p {
    max-width: 280px;
    margin: 7px 0 0;
    font-size: 12px;
    line-height: 1.35;
  }

  .dashboard .main:has(.open-agenda-card) .new-whatsapp-appointment {
    position: static;
    width: 100%;
    max-width: none;
    min-height: 44px;
    padding: 10px 13px;
    white-space: normal;
    line-height: 1.2;
  }

  .open-agenda-card {
    padding: 13px;
    border-radius: 16px;
  }

  .professional-availability-overview {
    gap: 12px;
  }

  .professional-availability-overview > article > button {
    min-height: 68px;
    padding: 11px 12px;
  }

  .professional-availability-overview > article > div {
    padding: 0 9px 9px;
  }

  .professional-availability-overview > article > div > section {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 5px;
  }

  .professional-availability-overview > article > div > section span {
    min-width: 0;
  }

  .professional-availability-overview > article > div > section small {
    overflow-wrap: anywhere;
    line-height: 1.35;
  }

  .professional-availability-overview > article > div > section button,
  .professional-availability-overview > article > div > section button:last-child {
    grid-column: auto;
    min-width: 52px;
  }

  #openAgendaForm .grid.g2 {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  #openAgendaForm .field {
    min-width: 0;
  }

  #openAgendaForm .field select,
  #openAgendaForm .field input {
    width: 100%;
  }

  #openAgendaForm h3 {
    margin-top: 21px;
    font-size: 18px;
    line-height: 1.25;
  }

  #openAgendaForm .owner-slot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  #openAgendaForm .owner-slot-grid span {
    min-width: 0;
    padding-inline: 4px;
  }

  #openAgendaForm .agenda-day-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #openAgendaForm .agenda-day-actions button {
    width: 100%;
  }
}

@media (max-width: 390px) {
  #openAgendaForm .owner-slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .professional-availability-overview > article > div > section {
    grid-template-columns: 1fr 1fr;
  }

  .professional-availability-overview > article > div > section span {
    grid-column: 1 / -1;
  }
}

/* Configurações do estúdio: experiência compacta e sem corte lateral no celular. */
@media (max-width: 600px) {
  body:has(.settings-page) {
    overflow-x: hidden;
  }

  .dashboard:has(.settings-page),
  .settings-page,
  .settings-page > section {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .settings-page {
    gap: 12px;
    padding: 16px 14px 28px !important;
    overflow-x: hidden;
  }

  .settings-page > .section-title {
    margin: 0 0 8px;
  }

  .settings-page > .section-title h1 {
    font-size: 23px;
    line-height: 1.15;
  }

  .settings-page > .section-title p {
    margin: 6px 0 0;
    font-size: 11px;
  }

  .settings-page .card {
    padding: 16px;
    border-radius: 15px;
    overflow: hidden;
  }

  .settings-studio h2,
  .staff-users h2 {
    font-size: 19px;
  }

  .settings-studio form {
    width: 100%;
    min-width: 0;
    gap: 3px;
  }

  .settings-studio form .field {
    min-width: 0;
    margin: 8px 0;
    gap: 6px;
    font-size: 12px;
  }

  .settings-studio form .field input,
  .settings-studio form .field select {
    min-width: 0;
    height: 43px;
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 13px;
  }

  .settings-studio form > .btn {
    width: 100%;
    height: 43px;
    margin-top: 8px;
    border-radius: 10px;
    font-size: 12px;
  }

  .studio-logo-setting {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    margin: 4px 0 12px;
    padding: 12px;
    border-radius: 12px;
  }

  .studio-logo-preview {
    width: 86px;
    height: 62px;
    border-radius: 9px;
  }

  .studio-logo-setting > div:nth-child(2) {
    min-width: 0;
    gap: 6px;
  }

  .studio-logo-setting strong {
    font-size: 12px;
  }

  .studio-logo-setting small {
    overflow-wrap: anywhere;
    font-size: 9px;
    line-height: 1.35;
  }

  .studio-logo-button,
  .remove-studio-logo {
    padding: 7px 9px;
    border-radius: 7px;
    font-size: 9px;
  }

  .staff-users > .section-title {
    gap: 10px;
    margin: 0 0 12px;
  }

  .staff-users > .section-title .btn {
    flex: none;
    padding: 9px 10px;
    font-size: 10px;
  }

  .staff-table {
    display: grid;
    gap: 8px;
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .staff-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
    min-width: 0;
    padding: 11px;
    border: 1px solid #efdde3;
    border-radius: 10px;
    background: #fff;
  }

  .staff-row.staff-head {
    display: none;
  }

  .staff-row > span {
    min-width: 0;
  }

  .staff-row > span:first-child {
    grid-column: 1 / -1;
  }

  .staff-row > span:first-child strong,
  .staff-row > span:first-child small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .staff-row > .staff-access-list {
    grid-column: 1 / -1;
  }

  .staff-row > span:last-child {
    justify-self: end;
  }
}

/* Navegação inferior do aplicativo: ícones lineares e estado ativo no padrão da marca. */
@media (max-width: 800px) {
  .shell {
    padding-bottom: 0;
  }

  .container.home-page {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .bottom {
    height: calc(64px + env(safe-area-inset-bottom));
    padding: 6px 5px max(7px, env(safe-area-inset-bottom));
    align-items: center;
    background: rgba(255, 255, 255, .98);
    border-top: 1px solid #f0dce3;
    box-shadow: 0 -8px 24px rgba(81, 43, 57, .07);
  }

  .bottom button,
  .bottom .bottom-cart {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 48px;
    flex: 1;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    padding: 3px 1px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #7b7376;
    font-size: 9px;
    line-height: 1.1;
    transition: color .18s ease, background .18s ease, transform .18s ease;
  }

  .bottom button .system-icon,
  .bottom button .cart-icon {
    width: 21px;
    height: 21px;
    margin: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .bottom button span {
    display: block;
    font-size: 9px;
    font-weight: 500;
    white-space: nowrap;
  }

  .bottom button.active {
    color: var(--rose-dark);
    background: #fff6f9;
  }

  .bottom button.active span {
    font-weight: 700;
  }

  .bottom button.active::before {
    content: "";
    position: absolute;
    top: -6px;
    width: 25px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: var(--rose);
  }

  .bottom button:active {
    transform: scale(.94);
  }

  .bottom-cart > b {
    top: 0;
    right: calc(50% - 20px);
    display: grid;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--rose);
    color: #fff;
    font-size: 8px;
    line-height: 1;
  }
}

.professional-next-service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  padding: 15px 18px;
  border: 1px solid #e5bdcb;
  border-radius: 15px;
  background: linear-gradient(135deg, #fff7fa, #f8e5ec);
}

.owner-payment-queue {
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid #e5b5c6;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(142, 61, 89, .08);
}

.owner-payment-queue > header {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 17px;
  background: linear-gradient(135deg, #fbedf2, #fff7f9);
}

.owner-payment-queue > header > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: #c24c74;
  color: #fff;
}

.owner-payment-queue > header .system-icon {
  width: 21px;
}

.owner-payment-queue header small {
  color: #b04368;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.owner-payment-queue header h2 {
  margin: 2px 0;
  font-size: 17px;
}

.owner-payment-queue header p {
  margin: 0;
  color: #776a6f;
  font-size: 12px;
}

.owner-payment-queue article {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 15px;
  padding: 12px 17px;
  border-top: 1px solid #f0e3e7;
}

.owner-payment-queue article span,
.owner-payment-queue article small {
  display: block;
}

.owner-payment-queue article small {
  margin-top: 3px;
  color: #7b6e73;
  font-size: 11px;
}

.owner-payment-queue article button {
  min-height: 37px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: #bd476f;
  color: #fff;
  font-weight: 750;
}

.owner-dashboard .today-panel .owner-appointment[data-appointment-id] {
  cursor: pointer;
  border-radius: 10px;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.owner-dashboard .today-panel .owner-appointment[data-appointment-id]:hover,
.owner-dashboard .today-panel .owner-appointment[data-appointment-id]:focus-visible {
  outline: none;
  background: #fff5f8;
  box-shadow: 0 6px 18px rgba(153, 67, 96, .08);
  transform: translateY(-1px);
}

.quick-appointment-modal > small {
  color: #b6446a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
}

.quick-appointment-heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  margin: 9px 0 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee0e5;
}

.quick-appointment-heading h2,
.quick-appointment-heading p {
  margin: 0;
}

.quick-appointment-heading p {
  margin-top: 3px;
  color: #75696d;
  font-size: 13px;
}

.quick-appointment-heading em {
  padding: 6px 9px;
  border-radius: 999px;
  background: #fff0d2;
  color: #b26d10;
  font-size: 11px;
  font-style: normal;
}

.quick-appointment-heading em.confirmed,
.quick-appointment-heading em.completed {
  background: #e8f5eb;
  color: #267d40;
}

.quick-appointment-heading em.awaiting_payment,
.quick-appointment-heading em.in_progress {
  background: #f7e4eb;
  color: #ad3e64;
}

.quick-appointment-modal > section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quick-appointment-modal > section > div {
  padding: 11px 12px;
  border: 1px solid #ecdee3;
  border-radius: 10px;
  background: #fff;
}

.quick-appointment-modal > section small,
.quick-appointment-modal > section strong {
  display: block;
}

.quick-appointment-modal > section small,
.quick-appointment-notes small {
  margin-bottom: 4px;
  color: #84767b;
  font-size: 10px;
}

.quick-appointment-modal > section strong {
  font-size: 13px;
}

.quick-appointment-notes {
  margin-top: 11px;
  padding: 11px 12px;
  border-radius: 10px;
  background: #fbf2f5;
}

.quick-appointment-notes p {
  margin: 4px 0 0;
  font-size: 12px;
}

.quick-appointment-modal footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 17px;
}

@media (max-width: 560px) {
  .quick-appointment-heading {
    grid-template-columns: auto 1fr;
  }

  .quick-appointment-heading em {
    grid-column: 2;
    justify-self: start;
  }

  .quick-appointment-modal > section {
    grid-template-columns: 1fr;
  }

  .quick-appointment-modal footer {
    display: grid;
  }
}

@media (max-width: 650px) {
  .owner-payment-queue article {
    grid-template-columns: 1fr auto;
  }

  .owner-payment-queue article button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.professional-next-service span,
.professional-next-service small,
.professional-next-service strong,
.professional-next-service em {
  display: block;
}

.professional-next-service small {
  margin-bottom: 4px;
  color: #b54369;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}

.professional-next-service strong {
  font-size: 18px;
}

.professional-next-service em {
  margin-top: 3px;
  color: #71646a;
  font-size: 13px;
  font-style: normal;
}

.professional-next-service > b,
.professional-awaiting-cash {
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff;
  color: #ad3e64;
  font-size: 11px;
}

.professional-workflow-action {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #dfb4c3;
  border-radius: 10px;
  background: #fff;
  color: #ad3e64;
  font-weight: 700;
}

.professional-workflow-action.primary {
  border-color: #bd476f;
  background: #bd476f;
  color: #fff;
}

.workflow-payment-note {
  margin: 12px 0 16px;
  padding: 12px 14px;
  border-radius: 11px;
  background: #fbf0f4;
}

.workflow-payment-note strong,
.workflow-payment-note span {
  display: block;
}

.workflow-payment-note span {
  margin-top: 4px;
  color: #76686d;
  font-size: 12px;
}

.professional-history > div {
  display: grid;
  grid-template-columns: 105px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 11px 2px;
  border-bottom: 1px solid #eee2e6;
}

.professional-history time small,
.professional-history > div > span small {
  display: block;
  margin-top: 3px;
  color: #7d7075;
  font-size: 11px;
}

.professional-history em {
  padding: 6px 9px;
  border-radius: 999px;
  background: #f6e4ea;
  color: #ad3e64;
  font-size: 11px;
  font-style: normal;
}

.professional-history em.completed {
  background: #e8f5eb;
  color: #2d8042;
}

.professional-history nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}

.professional-history nav button {
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e1bdc9;
  border-radius: 9px;
  background: #fff;
  color: #aa3d62;
}

@media (max-width: 620px) {
  .professional-next-service {
    align-items: flex-start;
    flex-direction: column;
  }

  .professional-history > div {
    grid-template-columns: 82px 1fr;
  }

  .professional-history > div > em {
    grid-column: 2;
    justify-self: start;
  }
}

.product-list-section {
  display: grid;
}

.product-filters {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, .8fr) auto auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 13px;
  padding: 13px;
  border: 1px solid #eadbe0;
  border-radius: 13px;
  background: #fff;
}

.product-filters label {
  display: grid;
  gap: 5px;
  color: #63565b;
  font-size: 11px;
  font-weight: 600;
}

.product-filters input,
.product-filters select,
.product-filters button {
  height: 39px;
  border: 1px solid #e5d4da;
  border-radius: 9px;
  background: #fff;
  padding: 0 10px;
  color: #43383c;
}

.product-filters button {
  color: #ae4267;
  font-weight: 700;
  cursor: pointer;
}

.product-filters .stock-pdf-preview {
  border-color: #c64d76;
  background: #c64d76;
  color: #fff;
}

.stock-adjustment-modal > small {
  color: #bb466d;
  font-weight: 700;
  letter-spacing: .08em;
}

.stock-adjustment-modal h2 {
  margin: 5px 0;
}

.product-groups-modal {
  width: min(760px, 100%);
}

.product-groups-modal small {
  color: #bb466d;
  font-weight: 700;
  letter-spacing: .08em;
}

.group-create-line,
.product-group-edit {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  gap: 8px;
  align-items: center;
}

.group-create-line {
  margin: 15px 0;
  padding: 12px;
  border-radius: 11px;
  background: #fcf3f6;
}

.group-create-line input,
.product-group-edit input,
.product-group-edit button {
  height: 38px;
  border: 1px solid #e5d4da;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
}

.product-group-edit {
  grid-template-columns: 45px 1fr 1.4fr 85px 65px;
  padding: 10px 4px;
  border-bottom: 1px solid #eee0e5;
}

.product-group-edit button {
  color: #ae4267;
  font-weight: 700;
}

.movement-filters {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.movement-filters label {
  display: grid;
  gap: 4px;
  color: #6c5e63;
  font-size: 10px;
  font-weight: 700;
}

.movement-filters input,
.movement-filters select {
  height: 38px;
  border: 1px solid #e4d3d9;
  border-radius: 8px;
  background: #fff;
  padding: 0 8px;
}

.movement-summary {
  display: flex;
  gap: 8px;
  margin-bottom: 11px;
}

.movement-summary span {
  padding: 8px 11px;
  border-radius: 8px;
  background: #faf2f5;
  color: #78696f;
  font-size: 11px;
}

.movement-row span small {
  display: block;
  margin-top: 3px;
  color: #8c7d82;
  font-size: 10px;
}

.professional-top .professional-own-profile {
  margin-left: auto;
  border: 1px solid #e2c2cd;
  background: #fff;
  color: #a94065;
}

.professional-self-profile {
  width: 100%;
}

@media (min-width: 801px) {
  .modal:has(.professional-self-profile) {
    width: min(700px, calc(100vw - 48px)) !important;
    max-width: 700px !important;
  }

  .professional-self-profile #professionalSelfProfileForm {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 800px) {
  .modal:has(.professional-self-profile) {
    width: calc(100vw - 24px) !important;
    padding: 20px 16px !important;
  }

  .professional-self-profile .client-password-change .grid {
    grid-template-columns: 1fr;
  }

  .professional-self-profile .professional-photo-editor {
    align-items: flex-start;
    flex-direction: column;
  }

  .professional-self-profile .professional-photo-editor > label {
    margin-left: 0;
  }
}

.professional-self-profile > small {
  color: #bb466d;
  font-weight: 700;
  letter-spacing: .08em;
}

.professional-self-profile h2 {
  margin: 5px 0;
}

.professional-self-profile > p {
  margin: 0 0 17px;
  color: #786a6f;
  font-size: 13px;
}

.professional-photo-editor {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 12px;
  background: #fcf4f7;
}

.professional-photo-preview {
  display: grid;
  grid-template-columns: 62px 1fr;
  align-items: center;
  gap: 9px;
}

.professional-photo-preview img,
.professional-photo-preview b {
  grid-row: 1 / 3;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
}

.professional-photo-preview b {
  display: grid;
  place-items: center;
  background: #c44d75;
  color: #fff;
  font-size: 22px;
}

.professional-photo-preview span {
  color: #75676c;
  font-size: 11px;
}

.professional-photo-editor > label {
  display: grid;
  gap: 3px;
  margin-left: auto;
  cursor: pointer;
}

.professional-photo-editor > label input {
  display: none;
}

.professional-photo-editor > label strong {
  color: #a83f64;
  font-size: 12px;
}

.professional-photo-editor > label small {
  color: #88797e;
  font-size: 10px;
}

.public-page-back {
  position: fixed;
  z-index: 24;
  top: 94px;
  left: max(22px, calc((100vw - 1380px) / 2));
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 11px 0 8px;
  border: 1px solid #ead8de;
  border-radius: 11px;
  background: rgba(255, 255, 255, .94);
  color: #5f5358;
  box-shadow: 0 6px 18px rgba(75, 39, 51, .08);
}

.public-page-back svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #bd4a72;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.public-page-back span {
  font-size: 12px;
  font-weight: 700;
}

.context-page-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 15px;
  padding: 7px 10px 7px 7px;
  border: 1px solid #e5d4da;
  border-radius: 9px;
  background: #fff;
  color: #9f3e61;
  font-size: 12px;
  font-weight: 700;
}

.context-page-back svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.booking-head button:first-child {
  position: relative;
  width: 40px;
  height: 40px;
  font-size: 0;
}

.booking-head button:first-child::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 12px;
  width: 12px;
  height: 12px;
  border-left: 2px solid #2e282a;
  border-bottom: 2px solid #2e282a;
  transform: rotate(45deg);
}

.home-actions .card:nth-child(4)::before,
.client-actions > *:nth-child(4) b {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M32 7C18.2 7 7 17.8 7 31.1c0 4.6 1.4 9 3.8 12.7L7 57l13.8-3.6A25.7 25.7 0 0 0 32 56c13.8 0 25-10.8 25-24.9S45.8 7 32 7Z' fill='none' stroke='%23bf5577' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M23.1 18.8c-1.2.5-2.5 2.3-2.5 4.8 0 7.7 8.7 17.1 17.4 19.8 2.8.9 5.1.2 6.7-1.7 1-1.2 1.1-3 .2-3.7l-6.1-2.8c-.8-.4-1.5-.2-2 .6l-1.8 2.3c-4.2-1.8-7.3-4.9-9.2-9l2.4-1.8c.7-.6.9-1.3.5-2.1L26 19.4c-.5-1-1.7-1.2-2.9-.6Z' fill='%23bf5577'/%3E%3C/svg%3E") !important;
  background-size: 58px 58px !important;
}

/* Entrada delicada dos elementos da vitrine durante a rolagem. */
.home-page .scroll-reveal {
  opacity: 0;
  transform: translateY(24px) scale(.985);
  filter: blur(2px);
  transition:
    opacity .62s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms),
    transform .62s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms),
    filter .5s ease var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.home-page .scroll-reveal.scroll-reveal-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Produtos em destaque: foto contida e informações legíveis fora da imagem. */
.home-page .product-row {
  align-items: stretch;
  grid-template-columns: repeat(4, minmax(180px, 230px));
  justify-content: start;
}

.home-page .product-row .product {
  position: relative;
  min-width: 0;
  padding: 14px;
  gap: 5px;
  background: #fff;
}

.home-page .product-row .product .pic {
  position: relative;
  width: auto;
  height: auto;
  aspect-ratio: 4 / 5;
  min-height: 0;
  margin: -14px -14px 9px;
  overflow: hidden;
  border-radius: 19px 19px 0 0;
  background: linear-gradient(145deg, #fbf1f3, #f4e1e7);
}

.home-page .product-row .product .pic .featured-photo-main {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.home-page .product-row .product > strong {
  overflow: hidden;
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-page .product-row .product > .muted,
.home-page .product-row .product > .price {
  font-size: 12px;
  line-height: 1.3;
}

.home-page .product-row .product > .btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border-radius: 10px;
}

.home-page .product-row .product > .price {
  padding-right: 44px;
}

@media (max-width: 800px) {
  .home-page .product-row {
    gap: 10px;
    justify-content: normal;
  }

  .home-page .product-row .product {
    flex: 0 0 clamp(142px, 41vw, 164px);
    min-width: 0;
    min-height: 244px;
    padding: 11px;
    border-radius: 15px;
  }

  .home-page .product-row .product .pic {
    height: auto;
    aspect-ratio: 4 / 5;
    margin: -11px -11px 7px;
    border-radius: 14px 14px 0 0;
  }

  .home-page .product-row .product > strong {
    font-size: 13px;
  }

  .home-page .product-row .product > .muted,
  .home-page .product-row .product > .price {
    font-size: 10px;
  }

  .home-page .product-row .product > .btn {
    right: 10px;
    bottom: 10px;
    width: 31px;
    height: 31px;
    border-radius: 9px;
  }
}

/* Vitrine completa no padrão de lojas online. */
.store-page .store-grid {
  grid-template-columns: repeat(4, minmax(180px, 230px));
  justify-content: start;
  gap: 16px;
}

.store-page .store-product {
  min-width: 0;
  border-radius: 16px;
}

.store-page .store-image {
  width: 100%;
  height: auto;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.store-page .store-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.store-page .store-product > div:last-child {
  padding: 13px;
}

.store-page .store-product h2 {
  overflow: hidden;
  margin: 4px 0;
  font-size: 16px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-page .store-product p {
  min-height: 34px;
  margin: 7px 0;
  font-size: 12px;
  line-height: 1.4;
}

.store-page .store-product footer {
  gap: 8px;
  margin-top: 12px;
}

.store-page .store-product footer > strong {
  font-size: 16px;
}

.store-page .store-product footer .btn {
  padding: 8px 10px;
  font-size: 11px;
}

.store-empty {
  grid-column: 1 / -1;
  padding: 40px 20px;
  border: 1px dashed #e3cbd3;
  border-radius: 14px;
  background: #fff;
  color: #76696e;
  text-align: center;
}

.client-edit-profile {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--rose-dark);
}

.client-edit-profile .client-avatar {
  transition: transform .2s ease, box-shadow .2s ease;
}

.client-edit-profile:hover .client-avatar {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(147, 61, 90, .2);
}

.client-edit-profile small {
  font-size: 9px;
  font-weight: 600;
}

.modal:has(.client-self-profile) {
  width: min(520px, calc(100vw - 32px));
  max-width: 520px;
}

.client-self-profile > small {
  color: var(--rose);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
}

.client-self-profile > h2 {
  margin: 4px 0;
  font-size: 21px;
}

.client-self-profile > p {
  margin: 0 0 12px;
  color: #75696d;
  font-size: 11px;
}

.client-self-profile .field {
  margin: 8px 0;
  font-size: 11px;
}

.client-self-profile .field input {
  height: 40px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 12px;
}

.client-password-change {
  margin: 11px 0;
  padding: 11px;
  border: 1px solid #eadde1;
  border-radius: 10px;
  background: #fffcfd;
}

.client-password-change > small {
  color: var(--rose);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .07em;
}

.client-password-change .grid {
  gap: 9px;
}

.modal:has(.required-whatsapp-modal) {
  width: min(430px, calc(100vw - 28px));
  max-width: 430px;
  padding: 22px;
  text-align: center;
}

.required-whatsapp-modal {
  display: grid;
  justify-items: center;
}

.required-whatsapp-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 9px;
  place-items: center;
  border-radius: 14px;
  background: #eaf8ee;
  color: #35a556;
  font-size: 25px;
}

.required-whatsapp-modal > small {
  color: var(--rose);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
}

.required-whatsapp-modal h2 {
  margin: 5px 0 7px;
  font-size: 21px;
}

.required-whatsapp-modal > p {
  max-width: 335px;
  margin: 0 0 13px;
  color: #75696d;
  font-size: 12px;
  line-height: 1.5;
}

.required-whatsapp-modal form {
  width: 100%;
}

.required-whatsapp-modal .field {
  text-align: left;
  font-size: 11px;
}

.required-whatsapp-modal .field input {
  height: 42px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 13px;
}

.required-whatsapp-modal form .btn {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 12px;
}

.required-whatsapp-modal > em {
  margin-top: 11px;
  color: #8a7c81;
  font-size: 9px;
  font-style: normal;
}

.birthday-bell {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid #ead9df;
  border-radius: 11px;
  background: #fff;
  color: #51484c;
  font-size: 22px;
}

.birthday-bell b {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  font-size: 9px;
}

.birthday-notifications > small {
  color: var(--rose);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
}

.birthday-notifications h2 {
  margin: 4px 0;
  font-size: 21px;
}

.birthday-notifications > p {
  margin: 0 0 14px;
  color: #75696d;
  font-size: 11px;
}

.birthday-notifications article {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #eee2e6;
}

.birthday-notifications article > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--rose-soft);
}

.birthday-notifications article > div {
  display: flex;
  flex-direction: column;
  font-size: 11px;
}

.birthday-notifications article small {
  color: #7a6e72;
  font-size: 9px;
}

.birthday-notifications article a,
.birthday-notifications article button,
.enable-pwa-notifications {
  padding: 8px 10px;
  border: 1px solid #dfb9c6;
  border-radius: 8px;
  background: #fff;
  color: var(--rose-dark);
  font-size: 10px;
  font-weight: 600;
}
.birthday-notifications article button {
  border: 1px solid #e8c8d3;
  border-radius: 9px;
  padding: 8px 11px;
  background: #fff;
  color: #b63f68;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.studio-notification-center > section {
  display: grid;
  gap: 7px;
  margin: 17px 0;
}

.studio-notification-center article .system-icon {
  width: 21px;
  color: #c44f77;
}

.login-install-box {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid #ead5dc;
  border-radius: 12px;
  background: #fff8fa;
}

.login-install-box img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.login-install-box span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.login-install-box strong {
  font-size: 11px;
}

.login-install-box small {
  margin-top: 2px;
  color: #776a6f;
  font-size: 8px;
  line-height: 1.35;
}

.login-install-box button {
  padding: 7px 10px;
  border: 1px solid #dcaebd;
  border-radius: 8px;
  background: #fff;
  color: var(--rose-dark);
  font-size: 10px;
  font-weight: 700;
}

.passkey-login {
  width: 100%;
  height: 48px;
  margin-top: 11px;
  border: 1px solid #ddb9c5;
  border-radius: 12px;
  background: #fff;
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 700;
}

.passkey-login span {
  display: inline-grid;
  width: 25px;
  height: 25px;
  margin-right: 7px;
  place-items: center;
  border-radius: 50%;
  background: var(--rose-soft);
}

.client-passkey-panel {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 11px 0;
  padding: 11px;
  border: 1px solid #e5cbd4;
  border-radius: 11px;
  background: #fff8fa;
}

.client-passkey-panel > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: var(--rose-soft);
  color: var(--rose-dark);
}

.client-passkey-panel > div {
  display: flex;
  flex-direction: column;
  font-size: 10px;
}

.client-passkey-panel small {
  margin-top: 2px;
  color: #796d71;
  font-size: 8px;
}

.client-passkey-panel button {
  padding: 7px 10px;
  border: 1px solid #dbaeba;
  border-radius: 8px;
  background: #fff;
  color: var(--rose-dark);
  font-size: 10px;
  font-weight: 700;
}

.pwa-install-help {
  display: grid;
  justify-items: center;
  padding: 8px;
  text-align: center;
}

.pwa-install-help img {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  box-shadow: 0 9px 24px rgba(109, 54, 73, .15);
}

.pwa-install-help h2 {
  margin: 13px 0 5px;
}

.pwa-install-help p {
  max-width: 340px;
  color: #62575b;
  font-size: 13px;
  line-height: 1.55;
}

.pwa-install-help small {
  max-width: 340px;
  color: #887b80;
  font-size: 10px;
  line-height: 1.45;
}

/* Ícones exclusivos da tela de acesso. */
.login-field:has(input[name="email"]) > span,
.login-field:has(input[name="password"]) > span {
  align-self: stretch;
  font-size: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 27px 27px;
}

.login-field:has(input[name="email"]) > span {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23c45176' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='10' width='36' height='28' rx='6'/%3E%3Cpath d='m8 14 16 13 16-13'/%3E%3Cpath d='M31 31c0-4 6-4 6 0 0-4 6-4 6 0 0 3-6 7-6 7s-6-4-6-7Z' fill='%23fff' stroke='%23c45176'/%3E%3C/svg%3E");
}

.login-field:has(input[name="password"]) > span {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='%23c45176' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='20' width='30' height='22' rx='6'/%3E%3Cpath d='M16 20v-5a8 8 0 0 1 16 0v5'/%3E%3Cpath d='M24 29v6'/%3E%3Cpath d='m15 10-3-3m9 4-1-5m13 4 3-3'/%3E%3C/svg%3E");
}

.social-login.google b {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  background: var(--rose-soft);
  color: var(--rose-dark) !important;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px #e8c8d2;
}

.secure-note > b {
  width: 42px;
  height: 46px;
  flex: none;
  font-size: 0 !important;
  background: center / 42px 46px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 54' fill='none' stroke='%23c45176' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M24 3 42 10v14c0 12-7 21-18 27C13 45 6 36 6 24V10L24 3Z'/%3E%3Cpath d='M15 25c0-6 9-6 9 0 0-6 9-6 9 0 0 5-9 11-9 11s-9-6-9-11Z' fill='%23f8e7ec'/%3E%3Cpath d='m14 12-3-3m12 2V6m11 6 3-3'/%3E%3C/svg%3E");
}

.secure-note {
  padding: 11px 13px;
  border-radius: 13px;
  background: linear-gradient(135deg, #fffafb, #fff);
}

@media (max-width: 520px) {
  .login-install-box {
    grid-template-columns: 38px 1fr auto;
    gap: 8px;
    padding: 8px;
  }

  .login-install-box img {
    width: 38px;
    height: 38px;
  }
}

.enable-pwa-notifications {
  width: 100%;
  margin-top: 14px;
}

@media (max-width: 550px) {
  .client-self-profile .grid.g2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.modal:has(.product-option-modal) {
  width: min(500px, calc(100vw - 32px));
  max-width: 500px;
  padding: 20px;
  border-radius: 18px;
}

.modal:has(.product-option-modal) > .closeModal {
  float: right;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 11px;
}

.product-option-modal {
  padding-top: 8px;
}

.product-option-modal .product-option-head {
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 15px;
  margin: 8px 0 16px;
}

.product-option-modal .option-image {
  width: 105px;
  height: auto;
  aspect-ratio: 4 / 5;
  border-radius: 11px;
}

.product-option-modal .option-image img {
  object-fit: cover;
}

.product-option-modal .product-option-head small {
  color: var(--rose);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.product-option-modal .product-option-head h2 {
  margin: 4px 0 7px;
  font-size: 19px;
  line-height: 1.2;
}

.product-option-modal .product-option-head strong {
  color: var(--rose-dark);
  font-size: 17px;
}

.product-option-modal .product-option-head p {
  margin: 6px 0 0;
  color: #75696d;
  font-size: 10px;
}

.product-option-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 12px;
  border: 1px solid #eadce1;
  border-radius: 11px;
  background: #fffcfd;
}

.product-option-fields .field {
  gap: 5px;
  margin: 0;
  color: #62585c;
  font-size: 11px;
}

.product-option-fields .field input,
.product-option-fields .field select {
  height: 38px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 12px;
}

.product-option-submit {
  width: 100%;
  height: 41px;
  margin-top: 12px;
  padding: 0 15px;
  border-radius: 9px;
  font-size: 12px;
}

@media (max-width: 1000px) {
  .store-page .store-grid {
    grid-template-columns: repeat(3, minmax(170px, 1fr));
  }
}

@media (max-width: 650px) {
  .store-page .store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .store-page .store-product {
    border-radius: 13px;
  }

  .store-page .store-product > div:last-child {
    padding: 10px;
  }

  .store-page .store-product h2 {
    font-size: 13px;
  }

  .store-page .store-product small,
  .store-page .store-product > div > span {
    font-size: 9px;
  }

  .store-page .store-product footer > strong {
    font-size: 13px;
  }

  .store-page .store-product footer .btn {
    padding: 7px 8px;
    font-size: 9px;
  }

  .modal:has(.product-option-modal) {
    width: calc(100vw - 20px);
    padding: 15px;
    border-radius: 15px;
  }

  .product-option-modal .product-option-head {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
  }

  .product-option-modal .option-image {
    width: 88px;
  }

  .product-option-modal .product-option-head h2 {
    font-size: 16px;
  }

  .product-option-fields {
    padding: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .scroll-reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

.stock-adjustment-modal > p {
  margin: 0 0 18px;
  color: #74666b;
}

.manual-audit-note {
  margin: 12px 0;
  padding: 10px;
  border-radius: 9px;
  background: #fcf3f6;
  color: #75676c;
  font-size: 11px;
}

.product-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 17px;
  border: 1px solid #eadbe0;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: #fff;
}

.product-list-toolbar span {
  color: #7f7076;
  font-size: 12px;
}

.product-list-section .product-list-wrap {
  border-radius: 0 0 14px 14px;
}

.inventory-movements-modal {
  width: min(900px, 100%);
}

.modal:has(.inventory-movements-modal) {
  width: min(960px, calc(100vw - 32px));
}

.inventory-movements-modal > header small {
  color: #bb466d;
  font-weight: 700;
  letter-spacing: .08em;
}

.inventory-movements-modal > header h2 {
  margin: 4px 0;
}

.inventory-movements-modal > header p {
  margin: 0 0 16px;
  color: #817278;
  font-size: 13px;
}

.inventory-movement-table {
  overflow-x: auto;
  border: 1px solid #eadbe0;
  border-radius: 13px;
}

.movement-row {
  display: grid;
  grid-template-columns: 1fr 1.35fr .55fr 1fr;
  gap: 15px;
  align-items: center;
  min-width: 680px;
  padding: 12px 14px;
  border-bottom: 1px solid #eee0e5;
  font-size: 13px;
}

.movement-row:last-child {
  border-bottom: 0;
}

.movement-head {
  background: #fcf6f8;
  color: #77686e;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.movement-row time,
.movement-row span {
  color: #665a5f;
}

.movement-row b.positive {
  color: #228444;
}

.movement-row b.negative {
  color: #b44361;
}

.inventory-movements-modal .sales-pagination {
  margin-bottom: 0;
}

@media (max-width: 650px) {
  .public-page-back {
    position: sticky;
    top: 78px;
    margin: 8px 0 0 10px;
    left: auto;
    height: 36px;
  }

  .public-page-back span {
    display: none;
  }

  .product-filters {
    grid-template-columns: 1fr 1fr;
  }

  .movement-filters {
    grid-template-columns: 1fr 1fr;
  }

  .movement-filters label:first-child {
    grid-column: 1 / -1;
  }

  .group-create-line,
  .product-group-edit {
    grid-template-columns: 1fr;
  }

  .product-filters label:first-child {
    grid-column: 1 / -1;
  }

  .section-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .section-actions .btn {
    width: 100%;
    padding-inline: 8px;
  }

  .product-list-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .inventory-movements-modal {
    width: 100%;
  }
}
.client-notification-center>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.client-notification-center>header h2{margin:4px 0}.client-notification-center>header p{margin:0;color:#786d71}.mark-all-client-notices,.client-notification-center>footer .enable-pwa-notifications{border:1px solid #e8cbd5;border-radius:10px;background:#fff;color:#b44168;padding:9px 12px;font-weight:700;cursor:pointer}.client-notification-center section{display:grid;gap:7px;margin:20px 0;max-height:420px;overflow:auto}.client-notice-row{position:relative;width:100%;display:grid;grid-template-columns:42px 1fr 10px;align-items:center;gap:11px;padding:12px;border:1px solid #eee2e6;border-radius:13px;background:#fff;color:#242024;text-align:left;cursor:pointer}.client-notice-row.unread{border-color:#e4b7c7;background:#fff7fa}.client-notice-row>span{display:grid;width:42px;height:42px;place-items:center;border-radius:12px;background:#f8e7ed;color:#c34a73}.client-notice-row svg{width:22px;height:22px}.client-notice-row div{display:grid;gap:4px}.client-notice-row small{color:#756b6f;line-height:1.4}.client-notice-row i{width:8px;height:8px;border-radius:50%;background:#ca4d76}.client-notification-center>footer{display:flex;justify-content:space-between;align-items:center;gap:10px}.client-notification-center>footer .btn{width:auto}@media(max-width:600px){.client-notification-center>header{display:block}.mark-all-client-notices{margin-top:12px}.client-notification-center section{max-height:52dvh}.client-notification-center>footer{align-items:stretch;flex-direction:column}.client-notification-center>footer button{width:100%!important}}
.owner-top:has(.privacy-toggle){grid-template-columns:1fr minmax(280px,460px) auto auto auto auto}.privacy-toggle{display:grid;width:48px;height:48px;place-items:center;flex:none;border:1px solid #ead7de;border-radius:12px;background:#fff;color:#bd476f;transition:.2s}.privacy-toggle:hover{background:#fbedf2;border-color:#dda9bb}.privacy-toggle svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.privacy-hidden .privacy-sensitive,.privacy-mode .modal .privacy-sensitive{filter:blur(6px);user-select:none;pointer-events:none;transition:filter .18s}.privacy-sensitive{transition:filter .18s}.privacy-mode input,.privacy-mode select,.privacy-mode textarea,.privacy-mode label,.privacy-mode button{filter:none!important;user-select:auto;pointer-events:auto}@media(max-width:1100px){.owner-top:has(.privacy-toggle){grid-template-columns:1fr repeat(3,auto)}.privacy-toggle{width:44px;height:44px}}
.studio-logo-setting{grid-column:1/-1;display:flex;align-items:center;gap:18px;margin-bottom:14px;padding:16px;border:1px solid #ead8de;border-radius:15px;background:#fff9fb}.studio-logo-preview{display:grid;width:150px;height:82px;place-items:center;flex:none;overflow:hidden;border:1px dashed #ddb7c5;border-radius:12px;background:#fff;color:#bd476f;font:30px Georgia}.studio-logo-preview img{width:100%;height:100%;object-fit:contain;padding:7px}.studio-logo-setting>div:nth-child(2){display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap}.studio-logo-setting strong,.studio-logo-setting small{width:100%}.studio-logo-setting small{color:#7c7074}.studio-logo-button,.remove-studio-logo{display:inline-flex;padding:8px 11px;border:1px solid #dfbdc9;border-radius:9px;background:#fff;color:#b54268;font-size:12px;font-weight:700;cursor:pointer}.studio-logo-button input{display:none}.remove-studio-logo{margin:0}.document-brand{display:flex;align-items:center;gap:10px}.document-brand img{display:block;max-width:150px;max-height:58px;object-fit:contain}.document-brand span{font-size:12px;font-weight:700;color:#5d5155}@media(max-width:600px){.studio-logo-setting{align-items:flex-start}.studio-logo-preview{width:105px;height:68px}}
.sale-date-box{grid-column:1/-1;margin:4px 0 12px;padding:13px;border:1px solid #ead8de;border-radius:12px;background:#fff}.sale-date-box>label{display:grid;gap:6px;font-size:12px;font-weight:700}.sale-date-box input,.sale-date-box textarea{width:100%;min-height:42px;padding:9px 11px;border:1px solid #e5d6db;border-radius:9px;background:#fff}.sale-date-box.backdated{border-color:#e4b365;background:#fffaf0}.sale-backdate-auth{display:grid;grid-template-columns:1.4fr 1fr;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid #eadccf}.sale-backdate-auth[hidden]{display:none}.sale-backdate-auth label{display:grid;gap:6px;font-size:11px;font-weight:700}.sale-backdate-auth textarea{resize:vertical}.sale-backdate-auth small{grid-column:1/-1;color:#95651c}@media(max-width:650px){.sale-backdate-auth{grid-template-columns:1fr}}
.direct-sale-main{min-height:560px}.direct-fields .sale-date-box{width:225px;margin:0;padding:0;border:0;background:transparent}.direct-fields .sale-date-box>label{gap:5px}.direct-fields .sale-date-box input{height:36px;min-height:36px;padding:6px 10px}.direct-fields .sale-date-box.backdated{width:100%;padding:12px;border:1px solid #e4b365;background:#fffaf0}.direct-product-head{margin-top:24px}.direct-product-head label{width:min(430px,48%);height:42px;padding-inline:12px;background:#fff}.direct-product-head input{font-size:12px}.direct-products{min-height:245px;max-height:460px;padding:4px;border:1px solid #eee2e6;border-radius:11px;background:#fff}.direct-products::before{min-height:232px;margin:0;display:grid;place-items:center;padding:30px!important;border:1px dashed #dfcbd2!important;background:#fffafb;font-size:12px!important}.direct-products article{min-height:58px;padding:8px 10px}.direct-products article>span strong{font-size:13px}.direct-products article>span small{margin-top:3px;font-size:10px}@media(max-width:650px){.direct-sale-main{min-height:auto}.direct-fields .sale-date-box{width:100%}.direct-product-head label{width:100%}.direct-products{min-height:210px;max-height:390px}.direct-products::before{min-height:196px}}
.direct-product-head label{width:min(650px,62%)}.direct-products{align-content:start;grid-auto-rows:max-content}.direct-products article{height:auto;min-height:52px;padding:7px 10px}.direct-products article>span{justify-content:center}.direct-products select{width:64px;height:29px}.direct-products .direct-quantity{width:54px;height:29px;text-align:center}.direct-products article.search-match,.direct-products article.selected{align-self:start}@media(max-width:850px){.direct-product-head label{width:min(520px,58%)}}@media(max-width:650px){.direct-product-head label{width:100%}.direct-products article{min-height:50px;padding:6px 8px}.direct-products select{width:58px}.direct-products .direct-quantity{width:48px}}
/* Cadastro de profissionais: campos compactos e alinhados */
@media(min-width:801px){.modal:has(#professionalForm){width:min(820px,calc(100vw - 48px))!important;max-width:820px!important;padding:24px 26px!important}.modal:has(#professionalForm)>h2{margin-bottom:14px!important}#professionalForm{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}#professionalForm>.field{margin:5px 0 9px}#professionalForm>.field:nth-child(3){grid-column:1/-1}#professionalForm>.professional-services-config,#professionalForm>.grid,#professionalForm>.service-active,#professionalForm>.btn{grid-column:1/-1}}
#professionalForm>.field{font-size:11px;color:#655c5f}#professionalForm>.field input,#professionalForm>.field select{height:38px;min-height:38px;padding:7px 10px;border-radius:8px;font-size:12px}.professional-services-config{padding:13px 14px!important;border-radius:11px!important}.professional-services-config h3{font-size:14px!important}.professional-services-config>p{margin:3px 0 11px!important;font-size:9px!important;line-height:1.4}.professional-services-config>div{grid-template-columns:minmax(210px,1fr) 100px 100px 100px!important;gap:9px!important;padding:8px 0!important}.professional-services-config>div>label:first-child{min-width:0;font-size:10px}.professional-services-config>div>label:first-child span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.professional-services-config .prof-service-control{min-width:0}.professional-services-config .prof-service-control small{font-size:8px!important}.professional-services-config .prof-service-control input,.professional-services-config .prof-service-control select{width:100%;height:32px!important;min-width:0;padding:5px 7px!important;border-radius:7px!important;font-size:10px!important}#professionalForm>.grid.g2{gap:14px}#professionalForm>.grid.g2 .field{margin:8px 0 5px}#professionalForm>.service-active{display:flex;align-items:center;gap:9px;margin-top:10px;padding:10px 12px;border-radius:9px;background:#fcf5f7;font-size:11px}#professionalForm>.service-active input{width:16px;height:16px;accent-color:var(--rose)}
@media(max-width:800px){.modal:has(#professionalForm){padding:20px 15px!important}#professionalForm{display:block}.professional-services-config>div{grid-template-columns:1fr 1fr 1fr!important;gap:7px!important;padding:10px 0!important}.professional-services-config>div>label:first-child{grid-column:1/-1!important}.professional-services-config .prof-service-control:last-child{grid-column:auto!important}#professionalForm>.grid.g2{grid-template-columns:1fr 1fr}}
@media(max-width:460px){.professional-services-config>div{grid-template-columns:1fr 1fr!important}.professional-services-config .prof-service-control:first-of-type{grid-column:1/-1}.professional-services-config .prof-service-control input,.professional-services-config .prof-service-control select{height:36px!important}#professionalForm>.grid.g2{grid-template-columns:1fr}}

.professional-services-config>.professional-service-tools,.professional-services-config>.professional-service-list{display:block!important;padding:0!important;border:0!important}.professional-service-tools{margin-bottom:8px}.professional-service-tools>label{display:flex!important;align-items:center;gap:7px;height:36px;padding:0 10px;border:1px solid #e6dbe0;border-radius:8px;background:#fff}.professional-service-tools>label span{color:#b53f68;font-size:15px}.professional-service-tools>label input{width:100%;height:32px;border:0;outline:0;background:transparent;font-size:11px}.professional-service-filters,.professional-service-selection{display:flex;align-items:center;gap:5px;margin-top:7px;flex-wrap:wrap}.professional-service-filters button,.professional-service-selection button{height:29px;padding:0 9px;border:1px solid #e4d5da;border-radius:7px;background:#fff;color:#795f68;font-size:9px}.professional-service-filters button.active{border-color:#c9557b;background:#f9e8ee;color:#ad365e;font-weight:700}.professional-service-selection{justify-content:flex-end}.professional-service-selection small{margin-right:auto;color:#746a6e;font-size:9px}.professional-service-list{max-height:310px;overflow-y:auto;overflow-x:hidden;padding-right:5px!important;scrollbar-color:#d998ad transparent;scrollbar-width:thin}.professional-service-list>[data-prof-service]{display:grid;grid-template-columns:minmax(210px,1fr) 100px 100px 100px;align-items:center;gap:9px;padding:8px 0;border-top:1px solid #f0e7ea}.professional-service-list>[data-prof-service][hidden]{display:none}.professional-commission-explanation{grid-column:1/-1;display:flex;gap:9px;align-items:flex-start;margin-top:10px;padding:10px 12px;border-radius:9px;background:#f9edf1;color:#675c60}.professional-commission-explanation strong{flex:0 0 auto;font-size:11px;color:#ad3e63}.professional-commission-explanation span{font-size:9px;line-height:1.45}
@media(max-width:800px){.professional-service-list{max-height:360px}.professional-service-list>[data-prof-service]{grid-template-columns:1fr 1fr 1fr}.professional-service-list>[data-prof-service]>label:first-child{grid-column:1/-1}.professional-service-selection{justify-content:flex-start}.professional-service-selection small{width:100%;margin:0}}
@media(max-width:460px){.professional-service-list>[data-prof-service]{grid-template-columns:1fr 1fr}.professional-service-list>[data-prof-service] .prof-service-control:first-of-type{grid-column:1/-1}.professional-service-filters{display:grid;grid-template-columns:1fr 1fr}.professional-service-filters button:first-child{grid-column:1/-1}.professional-service-filters button{width:100%}.professional-commission-explanation{display:block}.professional-commission-explanation strong,.professional-commission-explanation span{display:block}.professional-commission-explanation span{margin-top:4px}}

/* Aviso de agendamentos que aguardam confirmação da profissional */
.professional-confirmation-alert{display:flex;align-items:center;width:calc(100% - 28px);gap:11px;margin:0 14px 10px;padding:11px 13px;border:1px solid #e8bac8;border-radius:10px;background:linear-gradient(90deg,#fff0f4,#fff8fa);color:#592f3d;text-align:left;box-shadow:0 5px 15px #8f385214}.professional-confirmation-alert>span{display:grid;place-items:center;width:31px;height:31px;flex:0 0 31px;border-radius:9px;background:#c44f77;color:#fff}.professional-confirmation-alert>span b{font-size:13px}.professional-confirmation-alert>div{min-width:0;display:grid;gap:2px}.professional-confirmation-alert strong{font-size:11px}.professional-confirmation-alert small{color:#846d75;font-size:9px}.professional-confirmation-alert em{margin-left:auto;color:#b53e67;font-size:10px;font-style:normal;font-weight:700;white-space:nowrap}.professional-agenda article.needs-confirmation{border-left:3px solid #d28a33;background:#fffdfa}.professional-agenda article.confirmation-focus{animation:professional-confirmation-pulse .7s ease 2}@keyframes professional-confirmation-pulse{50%{transform:translateY(-2px);box-shadow:0 0 0 4px #f4d9b8,0 10px 24px #8f5c221c}}
@media(max-width:600px){.professional-confirmation-alert{align-items:flex-start;width:100%;margin:0 0 10px}.professional-confirmation-alert em{display:none}.professional-confirmation-alert strong{font-size:12px}.professional-confirmation-alert small{font-size:10px}}
.professional-receivables>div{display:grid;grid-template-columns:minmax(180px,1fr) auto auto;align-items:center;gap:12px;padding:11px 0;border-top:1px solid #eee4e8}.professional-receivables>div span{display:grid;gap:2px}.professional-receivables>div span small{color:#7b7074;font-size:10px}.professional-receivables>div b{font-size:13px}.professional-receive-sale{height:34px;padding:0 12px;border:0;border-radius:8px;background:#c44f77;color:#fff;font-size:10px;font-weight:700}.professional-checkout-note{margin:10px 0;padding:10px 12px;border-radius:9px;background:#f8edf1;color:#725e66;font-size:10px;line-height:1.45}.professional-checkout-note::before{content:'✓';display:inline-grid;place-items:center;width:18px;height:18px;margin-right:7px;border-radius:50%;background:#c44f77;color:#fff;font-weight:700}
@media(max-width:560px){.professional-receivables>div{grid-template-columns:1fr auto}.professional-receivables>div span{grid-column:1/-1}.professional-receive-sale{min-width:125px}}
.professional-sale-shortcut{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:12px 0;padding:13px 15px;border:1px solid #ead7de;border-radius:12px;background:#fff}.professional-sale-shortcut>div{display:grid;gap:3px}.professional-sale-shortcut strong{font-size:13px}.professional-sale-shortcut small{color:#7a6e72;font-size:10px}.professional-new-product-sale{height:38px;padding:0 15px;border:0;border-radius:9px;background:#c44f77;color:#fff;font-size:10px;font-weight:700;white-space:nowrap}.professional-new-product-sale:disabled{background:#dbc8cf;color:#8d7b82;cursor:not-allowed}.professional-product-sale-modal{max-width:520px;margin:auto}.professional-product-sale-modal>small{color:#bd4a71;font-size:9px;font-weight:700;letter-spacing:.06em}.professional-product-sale-modal h2{margin:4px 0 5px!important}.professional-product-sale-modal>p{margin:0 0 12px;color:#756a6e;font-size:11px;line-height:1.45}
@media(max-width:520px){.professional-sale-shortcut{align-items:flex-start;flex-direction:column}.professional-new-product-sale{width:100%}}
.professional-history{overflow:hidden}.professional-history>div{display:grid!important;grid-template-columns:110px minmax(180px,1fr) auto;align-items:center;gap:12px;min-height:48px;padding:8px 2px!important;border-bottom:1px solid #eee5e8}.professional-history>div time{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:700}.professional-history>div time small{font-size:9px;color:#b33f67}.professional-history>div>span{display:grid;gap:2px}.professional-history>div>span strong{font-size:11px}.professional-history>div>span small{font-size:9px;color:#796e72}.professional-history>div>em{justify-self:end;padding:5px 8px;border-radius:999px;background:#f6e6eb;color:#a83b60;font-size:9px;font-style:normal;white-space:nowrap}.professional-history>nav{display:flex;align-items:center;justify-content:center;gap:12px;padding-top:13px}.professional-history>nav button{height:31px;padding:0 10px;border:1px solid #e5d4da;border-radius:7px;background:#fff;color:#ad3d64;font-size:9px}.professional-history>nav button:disabled{opacity:.4}.professional-history>nav span{font-size:9px;color:#756a6e}
@media(max-width:560px){.professional-history>div{grid-template-columns:82px 1fr}.professional-history>div>em{grid-column:2;justify-self:start}.professional-history>nav{gap:7px}.professional-history>nav button{padding:0 8px}}
.professional-new-product-sale.is-disabled{background:#dbc8cf;color:#8d7b82;cursor:pointer}.professional-sale-shortcut.cash-required{border-color:#ead6bd;background:#fffbf4}.professional-sale-shortcut.cash-required small{color:#9a692c}

/* Experiência de aplicativo para o painel da profissional. */
@media (max-width: 700px) {
  body:has(.professional-app) {
    overflow-x: hidden;
    background: #faf7f8;
  }

  .professional-app {
    width: 100%;
    overflow-x: hidden;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .professional-top {
    position: sticky;
    z-index: 25;
    top: 0;
    min-height: 62px;
    padding: 9px 11px !important;
    gap: 7px;
    box-shadow: 0 5px 18px rgba(67, 36, 47, .07);
  }

  .professional-top .professional-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  .professional-top > span {
    min-width: 0;
  }

  .professional-top > span small {
    display: none;
  }

  .professional-top > span strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .professional-top .privacy-toggle {
    width: 38px;
    height: 38px;
    padding: 0;
    flex: 0 0 38px;
  }

  .professional-top .privacy-toggle svg {
    width: 21px;
    height: 21px;
  }

  .professional-top .professional-own-profile,
  .professional-top #logout {
    height: 38px;
    margin-left: 0;
    padding: 0 9px;
    font-size: 10px;
    white-space: nowrap;
  }

  .professional-app > main {
    width: 100% !important;
    padding: 15px 12px 28px !important;
  }

  .professional-welcome {
    gap: 4px;
  }

  .professional-welcome h1 {
    font-size: 22px;
    line-height: 1.15;
  }

  .professional-welcome p {
    margin: 5px 0 0;
  }

  .professional-welcome > b {
    margin-top: 2px;
    font-weight: 500;
  }

  .professional-metrics {
    gap: 8px;
    margin: 13px 0;
  }

  .professional-metrics article {
    min-height: 86px;
    padding: 11px 12px;
    border-radius: 12px;
  }

  .professional-metrics strong {
    margin: 5px 0 2px;
    font-size: 18px;
  }

  .professional-sale-shortcut {
    margin: 10px 0;
    padding: 12px;
    border-radius: 12px;
  }

  .professional-new-product-sale {
    width: 100%;
    height: 44px;
    font-size: 12px;
  }

  .professional-section {
    margin-top: 10px;
    padding: 12px;
    border-radius: 13px;
  }

  .professional-section > header {
    align-items: flex-start;
    gap: 6px;
  }

  .professional-agenda article {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 10px;
    border-radius: 11px;
  }

  .professional-agenda article > div {
    min-width: 0;
  }

  .professional-agenda article > div strong,
  .professional-agenda article > div span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .professional-agenda article > em {
    max-width: 92px;
    text-align: center;
  }

  .professional-agenda footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding-top: 2px;
  }

  .professional-agenda footer button {
    min-height: 40px;
    margin: 0;
    font-size: 10px;
  }

  .professional-receivables > div {
    grid-template-columns: 1fr auto;
    gap: 7px 10px;
    padding: 11px 0;
  }

  .professional-receivables > div span {
    grid-column: 1 / -1;
  }

  .professional-receive-sale {
    min-width: 142px;
    height: 40px;
    font-size: 11px;
  }

  .professional-own-commissions > div {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 10px;
    padding: 10px 0;
  }

  .professional-own-commissions > div span {
    min-width: 0;
  }

  .professional-own-commissions > div span strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .professional-own-commissions > div em {
    grid-column: auto;
  }

  .modal-back:has(.professional-product-sale-modal) {
    padding: 12px;
  }

  .modal:has(.professional-product-sale-modal) {
    width: 100% !important;
    max-width: none !important;
    padding: 20px 16px !important;
    border-radius: 18px !important;
  }

  .professional-product-sale-modal .field select {
    min-height: 46px;
  }
}

@media (max-width: 540px) {
  .modal-back:has(.professional-self-profile) {
    padding: 0;
    place-items: stretch;
  }

  .modal:has(.professional-self-profile) {
    width: 100% !important;
    height: 100dvh;
    max-height: 100dvh;
    padding: 18px 14px calc(24px + env(safe-area-inset-bottom)) !important;
    border-radius: 0 !important;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .modal:has(.professional-self-profile) > .closeModal {
    position: sticky;
    z-index: 4;
    top: 0;
    float: right;
    background: rgba(255, 255, 255, .96);
  }

  .professional-self-profile h2 {
    font-size: 22px;
  }

  .professional-self-profile .professional-photo-editor {
    gap: 10px;
    padding: 11px;
  }

  .professional-self-profile .field input {
    min-height: 44px;
  }

  .professional-self-profile .client-password-change {
    padding: 10px;
  }

  .professional-self-profile form > .btn {
    min-height: 46px;
  }
}

/* Painel da proprietária: composição mobile sem estouro horizontal. */
@media (max-width: 800px) {
  html,
  body,
  #app {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .dashboard:has(.studio-sidebar),
  .owner-dashboard,
  .owner-dashboard > .main {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
  }

  .owner-dashboard .owner-top,
  .owner-dashboard .owner-top:has(.privacy-toggle) {
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    gap: 9px;
    align-items: center;
    margin: 8px 0 18px;
  }

  .owner-dashboard .owner-top > div:first-child {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .owner-dashboard .owner-top h1 {
    font-size: clamp(25px, 8vw, 31px);
    line-height: 1.08;
    white-space: normal;
  }

  .owner-dashboard .owner-top p {
    max-width: 320px;
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.45;
  }

  .owner-dashboard .owner-top > .btn {
    grid-column: 1;
    width: max-content;
    max-width: 100%;
    min-height: 44px;
    padding: 10px 15px;
    justify-content: center;
    border-radius: 12px;
    font-size: 13px;
  }

  .owner-dashboard .owner-top > .privacy-toggle,
  .owner-dashboard .owner-top > .birthday-bell {
    width: 44px;
    height: 44px;
    min-width: 44px;
    margin: 0;
    padding: 0;
  }

  .owner-dashboard .owner-metrics {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .owner-dashboard .owner-metrics article {
    min-width: 0;
    min-height: 112px;
    gap: 9px;
    padding: 13px 11px;
  }

  .owner-dashboard .owner-metrics article > b {
    width: 42px;
    height: 42px;
  }

  .owner-dashboard .owner-metrics article > span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .owner-dashboard .owner-metrics strong {
    font-size: 18px;
    line-height: 1.15;
  }

  .owner-dashboard-grid,
  .owner-dashboard .dashboard-panel,
  .owner-dashboard .quick-actions {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 390px) {
  .owner-dashboard .owner-top,
  .owner-dashboard .owner-top:has(.privacy-toggle) {
    grid-template-columns: minmax(0, 1fr) 42px 42px;
    gap: 7px;
  }

  .owner-dashboard .owner-top > .btn {
    padding-inline: 12px;
    font-size: 12px;
  }

  .owner-dashboard .owner-metrics article {
    align-items: flex-start;
    flex-direction: column;
    min-height: 142px;
  }
}
