.admin-body {
  font-size: 13px;
}
.login-screen {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  gap: 35px;
  padding: 50px 22px;
  background:
    radial-gradient(ellipse at 80% 20%, #f5c5420b, transparent 60%), var(--bg);
}
.login-screen > .brand {
  justify-content: center;
}
.login-card {
  width: min(430px, 90vw);
  padding: 35px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.login-card h1 {
  font-size: 44px;
  letter-spacing: -1px;
}
.login-card > p:not(.eyebrow) {
  font-size: 12px;
  margin: 20px 0;
}
.login-card form {
  margin-top: 30px;
}
.login-card .button {
  width: 100%;
}
.login-card > .quiet-link {
  margin-top: 25px;
  font-size: 11px;
}
.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 235px;
  padding: 35px 24px;
  background: var(--side);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.admin-sidebar .brand {
  font-size: 22px;
  letter-spacing: 3px;
}
.admin-sidebar .brand small {
  font-size: 7px;
  letter-spacing: 1.5px;
}
.sidebar-label {
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--dim);
  margin: 55px 10px 20px;
}
.admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.admin-sidebar nav button {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  background: none;
  padding: 13px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 12px;
}
.admin-sidebar nav button > span {
  font-size: 18px;
  width: 20px;
  text-align: center;
}
.admin-sidebar nav button.active {
  background: #f5c54212;
  color: var(--accent);
}
.admin-sidebar nav button:hover {
  background: var(--surface);
}
.admin-sidebar nav b {
  margin-left: auto;
  font-size: 10px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 4px;
  padding: 1px 5px;
}
.sidebar-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding-top: 35px;
  font-size: 11px;
  color: var(--muted);
}
.sidebar-bottom .text-button {
  text-align: left;
  font-size: 11px;
}
.sidebar-bottom p {
  font-size: 9px;
  margin-top: 10px;
}
.sidebar-bottom #connection-dot {
  color: var(--green);
}
.admin-content {
  margin-left: 235px;
}
.admin-demo {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  text-align: center;
  color: var(--accent);
  font-size: 10px;
  padding: 8px 20px;
}
.admin-header {
  padding: 32px 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  gap: 20px;
}
.admin-header .eyebrow {
  font-size: 8px;
  margin-bottom: 9px;
}
.admin-header h2 {
  font-family: var(--sans);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.5px;
}
.admin-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.admin-profile img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}
.admin-profile small {
  display: block;
  font-size: 9px;
  color: var(--dim);
  margin-top: 4px;
}
#admin-main {
  padding: 32px 38px;
  max-width: 1900px;
  margin: auto;
}
.welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 28px;
}
.welcome h3 {
  font: 27px/1.3 var(--serif);
}
.welcome p {
  font-size: 11px;
  margin-top: 8px;
}
.welcome .button {
  font-size: 11px;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.kpi {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  min-width: 0;
}
.kpi > span {
  font-size: 10px;
  color: var(--muted);
}
.kpi > strong {
  display: block;
  font: 32px/1.3 var(--serif);
  color: var(--accent);
  margin: 12px 0;
}
.kpi small {
  display: block;
  font-size: 9px;
  color: var(--dim);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px;
}
.admin-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 23px;
  margin-bottom: 22px;
  min-width: 0;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.panel-heading h3 {
  font-size: 13px;
  font-weight: 500;
}
.panel-heading > span,
.panel-heading .text-button {
  font-size: 9px;
  color: var(--muted);
}
.appointment-row {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid var(--border);
}
.appointment-row:last-child {
  border-bottom: 0;
}
.appointment-time {
  min-width: 54px;
  font-size: 16px;
  color: var(--accent);
  line-height: 1.5;
}
.appointment-time small {
  font-size: 9px;
  display: block;
  color: var(--dim);
}
.appointment-info {
  flex: 1;
  min-width: 0;
}
.appointment-info strong {
  font-size: 12px;
  font-weight: 500;
}
.appointment-info p {
  font-size: 10px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.appointment-info .badge {
  margin-top: 6px;
}
.appointment-row .icon-button {
  width: 32px;
  height: 32px;
  font-size: 15px;
}
.appointment-total {
  font-size: 11px;
  color: var(--accent);
  white-space: nowrap;
}
.ranking-row {
  padding: 13px 0;
}
.ranking-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  margin-bottom: 9px;
}
.ranking-label strong {
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
}
progress {
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 5px;
  overflow: hidden;
  display: block;
  background: var(--border);
}
progress::-webkit-progress-bar {
  background: var(--border);
}
progress::-webkit-progress-value {
  background: var(--accent);
  border-radius: 5px;
}
progress::-moz-progress-bar {
  background: var(--accent);
}
progress.completed {
  margin-top: 5px;
}
progress.completed::-webkit-progress-value {
  background: var(--green);
}
progress.completed::-moz-progress-bar {
  background: var(--green);
}
.quick-tips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.quick-tips strong {
  display: block;
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 7px;
}
.quick-tips span {
  font-size: 11px;
}
.toolbar {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
}
.toolbar .field {
  margin-bottom: 0;
}
.field.inline {
  min-width: 160px;
}
.field.inline input,
.field.inline select {
  min-height: 45px;
  padding: 10px;
}
.toolbar > .button {
  min-height: 45px;
  font-size: 11px;
}
.agenda-view-switch {
  display: flex;
  background: var(--surface);
  padding: 4px;
  border-radius: 5px;
  border: 1px solid var(--border);
  height: 45px;
}
.agenda-view-switch button {
  padding: 0 15px;
  background: none;
  font-size: 11px;
  color: var(--muted);
  border-radius: 3px;
}
.agenda-view-switch .active {
  background: var(--accent);
  color: var(--bg);
}
.week-view {
  display: grid;
  grid-template-columns: repeat(7, minmax(155px, 1fr));
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 22px;
}
.week-column {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 6px;
  min-height: 230px;
  padding: 13px;
}
.week-column h3 {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 18px;
  text-transform: capitalize;
}
.week-booking {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--panel);
  border-left: 2px solid var(--accent);
  padding: 10px;
  margin: 8px 0;
  border-radius: 3px;
  font-size: 10px;
}
.week-booking strong {
  color: var(--accent);
  font-weight: 500;
  display: block;
}
.week-booking small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
}
.blocks-list > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
}
.blocks-list small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.blocks-list button {
  font-size: 10px;
}
.search-field {
  width: min(390px, 100%);
}
.table-panel {
  padding: 0;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: left;
  white-space: nowrap;
}
th {
  background: var(--panel);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--muted);
  padding: 16px;
}
td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
td small {
  display: block;
  color: var(--dim);
  font-size: 9px;
}
.pagination {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  align-items: center;
  padding: 15px;
  font-size: 10px;
}
.pagination .button {
  font-size: 10px;
  min-height: 33px;
  padding: 7px 12px;
}
.admin-services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.admin-service {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
}
.admin-service img {
  width: 100%;
  height: 145px;
}
.admin-service > div {
  padding: 20px;
}
.admin-service h3 {
  font: 24px/1.2 var(--serif);
  margin: 12px 0;
}
.admin-service p {
  font-size: 11px;
  min-height: 37px;
}
.admin-service .service-bottom {
  margin-top: 18px;
}
.admin-service .service-bottom > span {
  font-size: 15px;
}
.admin-service .button {
  font-size: 10px;
  padding: 8px 12px;
  min-height: 35px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.settings-grid .admin-panel > h3 {
  margin-bottom: 25px;
}
.settings-grid .field {
  font-size: 11px;
}
.weekly-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 22px;
}
.weekly-fields input {
  font-size: var(--field-font-size, 12px);
}
.settings-save {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 5px 0 25px;
}
.chart-legend {
  display: flex;
  gap: 20px;
  font-size: 9px;
  margin-bottom: 12px;
}
.chart-legend span:first-child {
  color: var(--accent);
}
.chart-legend span:last-child {
  color: var(--green);
}
.day-chart {
  display: flex;
  flex-direction: column;
  gap: 13px;
  max-height: 380px;
  overflow: auto;
}
.day-chart > div {
  display: grid;
  grid-template-columns: 65px 1fr 25px;
  gap: 10px;
  align-items: center;
  font-size: 10px;
}
.report-insight {
  font-size: 13px;
  line-height: 1.9;
}
.report-insight strong {
  color: var(--accent);
  font-weight: 500;
}
.detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 24px 0;
}
.detail-meta small {
  display: block;
  font-size: 9px;
  color: var(--dim);
  margin-bottom: 5px;
}
.detail-meta strong {
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.detail-services > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}
.detail-services small {
  color: var(--muted);
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}
.detail-actions .button {
  font-size: 10px;
  padding: 10px 14px;
  min-height: 41px;
}
.admin-panel > .empty {
  padding: 25px 10px;
}
.modal-form h2 {
  font-size: 33px;
}
.modal-form .hint {
  font-size: 11px;
}
.warning-text {
  color: var(--accent);
}
.admin-view {
  animation: appear 0.15s ease;
}
@keyframes appear {
  from {
    opacity: 0.65;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--panel);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 8px;
}
@media (min-width: 1800px) {
  .admin-sidebar {
    width: 285px;
    padding: 40px 30px;
  }
  .admin-content {
    margin-left: 285px;
  }
  .admin-header {
    padding: 40px 50px;
  }
  #admin-main {
    padding: 40px 50px;
  }
  .admin-sidebar nav button {
    font-size: 15px;
    padding: 17px;
  }
  .kpi {
    padding: 28px;
  }
  .kpi > strong {
    font-size: 40px;
  }
  .admin-panel {
    padding: 28px;
  }
  .panel-heading h3 {
    font-size: 16px;
  }
  .appointment-info strong {
    font-size: 15px;
  }
  .appointment-info p {
    font-size: 12px;
  }
  .admin-service img {
    height: 200px;
  }
}
@media (max-width: 1150px) {
  .admin-sidebar {
    width: 205px;
    padding: 28px 18px;
  }
  .admin-content {
    margin-left: 205px;
  }
  #admin-main {
    padding: 26px;
  }
  .admin-header {
    padding: 26px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .quick-tips {
    gap: 20px;
  }
  .weekly-fields {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .admin-sidebar {
    position: relative;
    width: 100%;
    padding: 20px 18px 12px;
    display: block;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .admin-sidebar > .brand {
    font-size: 21px;
  }
  .sidebar-label,
  .sidebar-bottom {
    display: none;
  }
  .admin-sidebar nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 5px;
    margin-top: 22px;
    padding-bottom: 5px;
  }
  .admin-sidebar nav button {
    font-size: 10px;
    padding: 10px 12px;
    white-space: nowrap;
    gap: 7px;
  }
  .admin-sidebar nav button > span {
    font-size: 15px;
    width: auto;
  }
  .admin-sidebar nav b {
    font-size: 8px;
  }
  .admin-content {
    margin-left: 0;
  }
  .admin-header {
    padding: 24px 20px;
  }
  .admin-header h2 {
    font-size: 23px;
  }
  .admin-profile > span {
    display: none;
  }
  .admin-profile img {
    width: 35px;
    height: 35px;
  }
  #admin-main {
    padding: 23px 18px;
  }
  .admin-demo {
    font-size: 8px;
    padding: 7px 15px;
  }
  .welcome {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .welcome h3 {
    font-size: 25px;
  }
  .welcome p {
    font-size: 11px;
  }
  .kpi-grid {
    gap: 10px;
    margin: 20px 0;
  }
  .kpi {
    padding: 17px 14px;
  }
  .kpi > strong {
    font-size: 28px;
  }
  .kpi > span {
    font-size: 9px;
  }
  .kpi small {
    font-size: 8px;
  }
  .dashboard-grid {
    gap: 0;
  }
  .admin-panel {
    padding: 19px 16px;
  }
  .panel-heading h3 {
    font-size: 12px;
  }
  .quick-tips {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .appointment-row {
    gap: 10px;
  }
  .appointment-total {
    display: none;
  }
  .appointment-time {
    min-width: 48px;
    font-size: 14px;
  }
  .appointment-info strong {
    font-size: 12px;
  }
  .appointment-info p {
    font-size: 9px;
  }
  .appointment-info .badge {
    font-size: 9px;
  }
  .toolbar {
    gap: 12px;
  }
  .field.inline {
    min-width: calc(50% - 8px);
    flex: 1;
  }
  .agenda-view-switch {
    width: 100%;
    justify-content: center;
  }
  .agenda-view-switch button {
    flex: 1;
  }
  .toolbar > .button {
    width: 100%;
  }
  .toolbar .search-field {
    width: 100%;
  }
  .admin-services-grid {
    grid-template-columns: 1fr;
  }
  .admin-service img {
    height: 190px;
  }
  .settings-save {
    flex-direction: column;
    align-items: stretch;
  }
  .weekly-fields {
    gap: 0;
  }
  .detail-meta {
    gap: 15px;
  }
  .detail-actions {
    flex-direction: column;
  }
  .detail-actions .button {
    width: 100%;
  }
  .login-card {
    padding: 28px;
  }
  .login-card h1 {
    font-size: 39px;
  }
  .pagination {
    justify-content: center;
  }
  .table-panel {
    padding: 0;
  }
  .blocks-list > div {
    font-size: 10px;
  }
  .week-view {
    grid-template-columns: repeat(7, 160px);
  }
}
/* Biblioteca e escolha de fotos: componentes usados nos serviços e no site. */
.photo-picker {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 18px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 7px;
  margin: 18px 0;
}
.photo-picker-preview {
  width: 145px;
  height: 165px;
  border-radius: 5px;
  object-fit: cover;
}
.photo-upload-label {
  display: inline-flex;
  flex-direction: column;
  gap: 9px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text);
}
.photo-upload-label input {
  font-size: var(--field-font-size, 11px);
  padding: 9px;
  max-width: 100%;
}
input[type="file"]::file-selector-button {
  font: inherit;
  background: var(--button);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 9px 12px;
  margin-right: 12px;
  cursor: pointer;
}
.photo-status {
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.7;
}
.photo-locations {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.photo-location h3 {
  min-height: 38px;
  font-size: 13px;
}
.photo-location > img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 5px;
  margin: 15px 0;
}
.photo-location .field {
  margin: 0;
}
.photo-location select {
  font-size: var(--field-font-size, 11px);
  padding: 9px;
}
.photo-library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.photo-library-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  min-width: 0;
}
.photo-library-item > img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.photo-library-item > div {
  padding: 12px;
}
.photo-library-item strong {
  font-size: 11px;
  font-weight: 500;
  display: block;
  overflow-wrap: anywhere;
}
.photo-library-item small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin: 6px 0 12px;
}
.photo-library-item .button {
  font-size: 9px;
  min-height: 34px;
  padding: 8px 10px;
}
.gallery-editor-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}
.gallery-editor-row:first-child {
  padding-top: 0;
}
.gallery-editor-row > img {
  width: 160px;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
}
.gallery-editor-row .field {
  font-size: 11px;
  margin-bottom: 12px;
}
.gallery-edit-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.gallery-edit-actions .button {
  font-size: 10px;
  min-height: 34px;
  padding: 7px 11px;
}
.gallery-edit-actions .text-button {
  font-size: 11px;
}
.service-photo {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 20px;
}
@media (max-width: 1150px) {
  .photo-locations,
  .photo-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .photo-picker {
    grid-template-columns: 1fr;
    gap: 13px;
    padding: 13px;
  }
  .photo-picker-preview {
    width: 100%;
    height: 180px;
  }
  .photo-locations {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .photo-location {
    padding: 14px 10px;
  }
  .photo-location h3 {
    font-size: 11px;
  }
  .photo-location select {
    font-size: var(--field-font-size, 10px);
    padding: 8px 5px;
  }
  .photo-library-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .photo-library-item > div {
    padding: 10px;
  }
  .photo-library-item .button {
    width: 100%;
    font-size: 8px;
    padding: 7px;
  }
  .gallery-editor-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .gallery-editor-row > img {
    width: 100%;
    height: 200px;
  }
  .gallery-edit-actions {
    gap: 9px;
  }
  .photo-upload-label {
    width: 100%;
  }
  .photo-upload-label input {
    width: 100%;
  }
}

.photo-picker > div,
.gallery-editor-row > div {
  min-width: 0;
}

.notification-panel {
  margin-bottom: 24px;
}
.notification-panel .subtle {
  margin: 8px 0 16px;
  max-width: 720px;
}
.notification-panel .detail-actions {
  align-items: center;
  gap: 14px;
}
.booking-decisions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 15px 0;
}
.booking-decisions .button {
  min-width: 0;
  padding: 12px 8px;
  font-size: 11px;
  white-space: normal;
}
.booking-followup {
  margin: 20px 0;
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-panel);
}
.booking-followup summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
}
.booking-followup[open] summary {
  margin-bottom: 18px;
}
