﻿:root {
  --black: #12100e;
  --black-soft: #201b17;
  --gold: #c79a3a;
  --gold-soft: #f1d99d;
  --wood: #8b5a35;
  --wood-soft: #d8b58a;
  --white: #fffdf8;
  --paper: #f7f2ea;
  --line: rgba(32, 27, 23, 0.12);
  --muted: #70665d;
  --success: #227552;
  --warning: #a86d18;
  --danger: #9d2f2f;
  --shadow: 0 20px 50px rgba(18, 16, 14, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background:
    linear-gradient(90deg, rgba(139, 90, 53, 0.08) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--paper);
  color: var(--black);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.public-page {
  background: var(--white);
  color: var(--black);
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(18, 16, 14, 0.68);
  color: var(--white);
  backdrop-filter: blur(18px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
}

.site-brand img {
  width: 92px;
  height: 50px;
  object-fit: contain;
  border-radius: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  font-size: 0.9rem;
  font-weight: 800;
}

.site-nav a,
.site-install-button,
.site-footer a,
.public-secondary-link {
  color: inherit;
  text-decoration: none;
}

.site-nav a,
.site-install-button {
  color: rgba(255, 253, 248, 0.88);
}

.site-nav a:hover,
.site-install-button:hover,
.public-secondary-link:hover {
  color: var(--gold-soft);
}

.site-install-button {
  min-height: 38px;
  border: 1px solid rgba(241, 217, 157, 0.28);
  border-radius: 8px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  font-size: inherit;
  font-weight: 800;
}

.site-install-button[hidden] {
  display: none;
}

.site-admin-link {
  min-height: 38px;
  border: 1px solid rgba(241, 217, 157, 0.46);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
}

.public-hero {
  position: relative;
  min-height: 88vh;
  min-height: 88svh;
  display: grid;
  align-items: end;
  padding: 120px clamp(18px, 6vw, 78px) 62px;
  overflow: hidden;
  color: var(--white);
  background: var(--black);
}

.public-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 16, 14, 0.86), rgba(18, 16, 14, 0.34) 48%, rgba(18, 16, 14, 0.08)),
    linear-gradient(180deg, rgba(18, 16, 14, 0.26), rgba(18, 16, 14, 0.72));
}

.public-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}

.public-hero-copy {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
}

.public-hero h1 {
  margin: 10px 0 14px;
  color: var(--white);
  font-size: clamp(3rem, 8vw, 7.4rem);
  line-height: 0.96;
}

.public-hero p {
  margin: 0;
  max-width: 600px;
  color: rgba(255, 253, 248, 0.9);
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  font-weight: 700;
}

.public-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.public-secondary-link {
  min-height: 46px;
  border: 1px solid rgba(241, 217, 157, 0.36);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: var(--white);
  font-weight: 800;
}

.public-section {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 64px);
}

.public-section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.intro-band {
  padding-top: 42px;
  padding-bottom: 42px;
  background: var(--black);
  color: var(--white);
}

.intro-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.intro-grid h2,
.section-heading h2,
.contact-grid h2 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4.5vw, 4.2rem);
  line-height: 1.04;
}

.intro-grid p,
.service-grid p,
.contact-address,
.hours-panel dd {
  color: var(--muted);
  line-height: 1.65;
}

.intro-grid > p {
  margin: 0;
  color: rgba(255, 253, 248, 0.74);
  font-size: 1.08rem;
}

.section-heading {
  margin-bottom: 32px;
  width: min(820px, 100%);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-grid article {
  min-height: 210px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--paper);
}

.service-grid span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
}

.service-grid h3,
.hours-panel h3 {
  margin: 18px 0 8px;
  font-size: 1.25rem;
}

.service-grid p {
  margin: 0;
}

.gallery-section {
  background: var(--paper);
}

.public-gallery {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-auto-rows: 310px;
  gap: 14px;
}

.public-gallery img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 18px 40px rgba(18, 16, 14, 0.12);
}

.public-gallery img:first-child {
  grid-row: span 2;
}

.contact-section {
  background: var(--black);
  color: var(--white);
}

.contact-address {
  margin: 24px 0 0;
  color: rgba(255, 253, 248, 0.82);
  font-size: 1.08rem;
}

.contact-address a {
  color: var(--gold-soft);
  font-weight: 900;
  text-decoration: none;
}

.contact-address a:hover {
  text-decoration: underline;
}

.hours-panel {
  border: 1px solid rgba(241, 217, 157, 0.24);
  border-radius: 8px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 253, 248, 0.06);
}

.hours-panel h3 {
  margin-top: 0;
}

.hours-panel dl {
  margin: 0;
  display: grid;
  gap: 16px;
}

.hours-panel dl > div {
  border-top: 1px solid rgba(241, 217, 157, 0.18);
  padding-top: 16px;
}

.hours-panel dt {
  color: var(--gold-soft);
  font-weight: 800;
}

.hours-panel dd {
  margin: 4px 0 0;
  color: rgba(255, 253, 248, 0.82);
}

.site-footer {
  min-height: 72px;
  padding: 20px clamp(18px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--white);
  color: var(--black);
  font-weight: 800;
}

.site-footer > div {
  display: grid;
  gap: 5px;
}

.site-footer strong {
  font-size: 0.95rem;
}

.site-footer span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

.footer-links {
  justify-items: end;
  text-align: right;
}

.footer-links a {
  color: var(--wood);
  font-size: 0.9rem;
}

.floating-whatsapp-button {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 30;
  min-width: 168px;
  min-height: 58px;
  border: 1px solid rgba(255, 253, 248, 0.22);
  border-radius: 999px;
  background: #227552;
  color: var(--white);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 22px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 18px 38px rgba(18, 16, 14, 0.24);
}

.floating-whatsapp-button span {
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.86;
  text-transform: uppercase;
}

.floating-whatsapp-button strong {
  font-size: 1rem;
  line-height: 1.25;
}

.floating-whatsapp-button:hover {
  background: #166342;
  transform: translateY(-1px);
}

.premium-header {
  background: rgba(18, 16, 14, 0.86);
  border-bottom: 1px solid rgba(241, 217, 157, 0.18);
}

.premium-hero {
  padding: 92px clamp(14px, 4vw, 48px) 26px;
  background:
    linear-gradient(90deg, rgba(199, 154, 58, 0.1) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(circle at 0 0, rgba(199, 154, 58, 0.18), transparent 34%),
    var(--black);
}

.premium-banner-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(241, 217, 157, 0.32);
  border-radius: 8px;
  background: #0b0806;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.premium-banner {
  display: block;
  width: 100%;
  height: auto;
}

.hero-address-link {
  width: fit-content;
  max-width: 100%;
  margin: 14px auto 0;
  border: 1px solid rgba(241, 217, 157, 0.28);
  border-radius: 999px;
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  text-align: center;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.25;
}

.hero-address-link:hover {
  background: rgba(241, 217, 157, 0.1);
}

.premium-callout {
  padding: clamp(34px, 6vw, 76px) clamp(18px, 5vw, 64px);
  background:
    linear-gradient(135deg, rgba(199, 154, 58, 0.16), transparent 42%),
    var(--black);
  color: var(--white);
}

.callout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(24px, 5vw, 74px);
  align-items: center;
}

.callout-grid h1 {
  margin: 8px 0 14px;
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 5.4rem);
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.callout-grid p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 253, 248, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.38rem);
  line-height: 1.6;
}

.callout-actions {
  display: grid;
  gap: 12px;
}

.callout-actions .whatsapp-booking-button,
.callout-actions .public-secondary-link {
  width: 100%;
}

.premium-heading h2 {
  color: var(--black);
  font-weight: 900;
}

.premium-heading > p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.premium-services article {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(247, 242, 234, 0.98)),
    var(--paper);
  box-shadow: 0 16px 42px rgba(18, 16, 14, 0.08);
}

.premium-services article:hover {
  border-color: rgba(199, 154, 58, 0.48);
  transform: translateY(-2px);
}

.differentials-section {
  background: var(--white);
}

.differentials-grid,
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.differentials-grid article,
.testimonials-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 22px;
}

.differentials-grid article {
  min-height: 188px;
}

.differentials-grid span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
}

.differentials-grid h3 {
  margin: 18px 0 8px;
  font-size: 1.16rem;
}

.differentials-grid p,
.testimonials-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.testimonials-section {
  background: var(--white);
}

.testimonials-grid article {
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(247, 242, 234, 0.98)),
    var(--paper);
  box-shadow: 0 16px 40px rgba(18, 16, 14, 0.07);
}

.testimonials-grid strong {
  color: var(--wood);
  display: block;
  font-size: 0.9rem;
  margin-top: 18px;
}

.showcase-section {
  background:
    linear-gradient(180deg, var(--paper), #efe3d3);
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
}

.showcase-grid .section-heading {
  display: block;
  margin-bottom: 0;
}

.showcase-grid .section-heading h2 {
  max-width: 420px;
}

.pet-carousel {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(199, 154, 58, 0.42);
  border-radius: 8px;
  overflow: hidden;
  background: var(--black);
  box-shadow: 0 28px 76px rgba(18, 16, 14, 0.22);
}

.pet-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: clamp(8px, 1.5vw, 16px);
  background: linear-gradient(135deg, #120d09, #2a1c12);
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 700ms ease, transform 900ms ease;
}

.pet-carousel img.active {
  opacity: 1;
  transform: scale(1);
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.app-shell[hidden],
.login-screen[hidden] {
  display: none;
}

.login-screen {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(90deg, rgba(139, 90, 53, 0.11) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(circle at 30% 20%, rgba(199, 154, 58, 0.16), transparent 34%),
    var(--black);
}

.login-card {
  width: min(760px, 100%);
  padding: 28px;
  border: 1px solid rgba(241, 217, 157, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.97), rgba(247, 242, 234, 0.96)),
    var(--white);
  box-shadow: var(--shadow);
  display: grid;
  gap: 22px;
}

.login-brand {
  color: var(--black);
}

.login-brand .brand-logo {
  width: 74px;
  height: 74px;
}

.login-banner {
  width: 100%;
  aspect-ratio: 2.35 / 1;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(199, 154, 58, 0.42);
  border-radius: 8px;
  box-shadow: 0 18px 34px rgba(18, 16, 14, 0.18);
}

.login-form {
  display: grid;
  gap: 10px;
}

.login-form label {
  color: var(--wood);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.login-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--black);
  padding: 0 12px;
  outline: 0;
}

.login-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(199, 154, 58, 0.16);
}

.login-error {
  margin: 0;
  color: var(--danger);
  font-weight: 800;
}

.login-card .install-app-button {
  width: 100%;
}

.whatsapp-booking-button {
  min-height: 46px;
  border: 1px solid rgba(34, 117, 82, 0.28);
  border-radius: 8px;
  background: #227552;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(34, 117, 82, 0.18);
}

.whatsapp-booking-button:hover {
  background: #166342;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 20px;
  background:
    linear-gradient(180deg, rgba(199, 154, 58, 0.14), transparent 35%),
    var(--black);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(241, 217, 157, 0.58);
  border-radius: 8px;
  background: var(--black);
  box-shadow: 0 12px 30px rgba(199, 154, 58, 0.24);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: rgba(255, 253, 248, 0.68);
  margin-top: 2px;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-item {
  width: 100%;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 253, 248, 0.78);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  text-align: left;
  font-weight: 700;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(255, 253, 248, 0.08);
  border-color: rgba(241, 217, 157, 0.22);
  color: var(--white);
}

.nav-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--gold-soft);
}

.sidebar-note {
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(241, 217, 157, 0.22);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.07);
}

.sidebar-note span,
.sidebar-note strong,
.sidebar-note small {
  display: block;
}

.sidebar-note span,
.eyebrow {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.sidebar-note strong {
  color: var(--white);
  margin-bottom: 10px;
}

.sidebar-note small {
  color: rgba(255, 253, 248, 0.68);
  line-height: 1.5;
}

.main-content {
  padding: 28px;
  padding-bottom: max(28px, env(safe-area-inset-bottom));
  min-width: 0;
}

.topbar,
.section-heading,
.panel-title,
.filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar h1,
.section-heading h2,
.modal-header h2 {
  margin: 0;
}

.topbar h1 {
  font-size: clamp(1.55rem, 3vw, 2.55rem);
}

.topbar-actions,
.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.primary-button,
.ghost-button,
.text-button,
.icon-button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
}

.primary-button {
  background: var(--black);
  color: var(--white);
  padding: 0 16px;
  box-shadow: 0 12px 24px rgba(18, 16, 14, 0.16);
}

.primary-button:hover {
  background: #000;
}

.primary-button,
.ghost-button,
.icon-button {
  touch-action: manipulation;
}

.ghost-button {
  background: var(--white);
  color: var(--black);
  border-color: var(--line);
  padding: 0 16px;
}

.alert-center-button {
  position: relative;
}

#alertBadge {
  min-width: 22px;
  height: 22px;
  margin-left: 8px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--danger);
  color: var(--white);
  display: inline-grid;
  place-items: center;
  font-size: 0.78rem;
  line-height: 1;
}

#alertBadge[hidden] {
  display: none;
}

.text-button {
  min-height: 34px;
  background: transparent;
  color: var(--wood);
  padding: 0;
}

.danger-action {
  color: var(--danger);
}

.icon-button {
  width: 42px;
  background: var(--paper);
  color: var(--black);
  font-size: 1.4rem;
}

.hero-strip {
  margin: 26px 0;
  min-height: 190px;
  border-radius: 8px;
  overflow: hidden;
  color: var(--white);
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(360px, 1fr);
  background:
    linear-gradient(100deg, rgba(18, 16, 14, 0.98), rgba(32, 27, 23, 0.9)),
    repeating-linear-gradient(90deg, #6f4427 0 16px, #835434 16px 32px, #5c351d 32px 48px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 28px;
  display: grid;
  align-content: center;
  gap: 10px;
}

.hero-copy span {
  color: var(--gold-soft);
  font-weight: 700;
}

.hero-copy strong {
  font-size: clamp(1.25rem, 2vw, 1.9rem);
  line-height: 1.2;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  background: rgba(255, 253, 248, 0.06);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.pet-silhouette {
  width: 122px;
  height: 82px;
  position: relative;
  border-radius: 55px 48px 42px 42px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.24);
}

.pet-silhouette::before,
.pet-silhouette::after,
.pet-silhouette span::before,
.pet-silhouette span::after {
  content: "";
  position: absolute;
  background: inherit;
}

.pet-silhouette::before {
  width: 54px;
  height: 54px;
  right: -24px;
  top: -12px;
  border-radius: 50% 50% 45% 45%;
}

.pet-silhouette::after {
  width: 24px;
  height: 36px;
  right: -12px;
  top: -36px;
  border-radius: 50% 50% 8px 8px;
  transform: rotate(16deg);
}

.pet-silhouette span::before,
.pet-silhouette span::after {
  width: 16px;
  height: 38px;
  bottom: -24px;
  border-radius: 8px;
}

.pet-silhouette span::before {
  left: 26px;
}

.pet-silhouette span::after {
  right: 28px;
}

.section-panel {
  display: none;
}

.section-panel.active {
  display: block;
}

.alert-center {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(167, 43, 43, 0.2);
  border-radius: 8px;
  background: #fffaf4;
  box-shadow: var(--shadow);
}

.alert-center-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.alert-center-header h2 {
  margin: 0;
  font-size: 1.18rem;
}

.alert-list {
  display: grid;
  gap: 10px;
}

.appointment-alert-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.appointment-alert-card.due {
  border-color: rgba(167, 43, 43, 0.34);
  background: #fff6f1;
}

.alert-kind {
  min-width: 96px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--black);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.appointment-alert-card.arrival .alert-kind {
  background: var(--wood);
}

.alert-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.alert-main strong,
.alert-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-main span {
  color: var(--muted);
  font-weight: 700;
}

.alert-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.metric-card,
.work-panel,
.table-card,
.item-card,
.modal {
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(18, 16, 14, 0.08);
}

.metric-card {
  min-height: 146px;
  padding: 18px;
  display: grid;
  align-content: space-between;
  gap: 12px;
}

.metric-card span,
.finance-summary span,
.meta-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.metric-card strong {
  font-size: 1.95rem;
  line-height: 1;
}

.metric-card small {
  color: var(--wood);
  line-height: 1.35;
}

.metric-card span,
.metric-card small,
.item-title,
.item-sub,
td,
th {
  overflow-wrap: anywhere;
}

.metric-card.accent {
  background: linear-gradient(145deg, var(--black), var(--black-soft));
  color: var(--white);
  border-color: rgba(199, 154, 58, 0.35);
}

.metric-card.accent span,
.metric-card.accent small {
  color: var(--gold-soft);
}

.content-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.work-panel,
.table-card {
  padding: 18px;
}

.panel-title h3 {
  margin: 0;
}

.timeline {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.timeline-time {
  font-weight: 800;
  color: var(--wood);
}

.timeline-title,
.item-title {
  font-weight: 800;
}

.timeline-sub,
.item-sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-agendado,
.status-pendente {
  background: rgba(168, 109, 24, 0.12);
  color: var(--warning);
}

.status-em-atendimento {
  background: rgba(199, 154, 58, 0.16);
  color: #7a520f;
}

.status-pronto,
.status-pago {
  background: rgba(34, 117, 82, 0.13);
  color: var(--success);
}

.status-entregue {
  background: rgba(18, 16, 14, 0.1);
  color: var(--black);
}

.status-cancelado {
  background: rgba(157, 47, 47, 0.12);
  color: var(--danger);
}

.finance-summary {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.finance-summary div {
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.finance-summary strong {
  color: var(--black);
}

.finance-tools-grid {
  grid-template-columns: 1fr;
  margin-bottom: 16px;
}

.finance-dashboard-panel {
  display: grid;
  gap: 16px;
}

.finance-filters.compact {
  grid-template-columns: repeat(2, minmax(0, 220px));
  margin: 0;
}

.finance-dashboard-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.finance-dashboard-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  display: grid;
  gap: 8px;
  padding: 14px;
}

.finance-dashboard-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.finance-dashboard-card strong {
  color: var(--black);
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.finance-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.finance-visual-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  min-width: 0;
  padding: 14px;
}

.finance-visual-box h4 {
  margin: 0 0 12px;
}

.mini-table-scroll {
  overflow-x: auto;
}

.mini-table {
  min-width: 360px;
}

.mini-table th,
.mini-table td {
  font-size: 0.82rem;
  padding: 10px;
}

.finance-category-filter {
  margin: 0 0 10px;
}

.financial-category-detail {
  margin-top: 6px;
}

.compact-category-card {
  padding: 14px;
}

.finance-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.financial-transaction-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.financial-transaction-list {
  display: grid;
  gap: 12px;
}

.financial-transaction-card .meta-grid {
  margin-top: 14px;
}

.financial-compact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.financial-summary {
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px 112px auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}

.financial-summary::-webkit-details-marker {
  display: none;
}

.financial-summary::after {
  content: "Ver detalhes";
  color: var(--wood);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.financial-compact-card[open] .financial-summary {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.financial-compact-card[open] .financial-summary::after {
  content: "Ocultar";
}

.financial-summary-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.financial-summary-main strong,
.financial-summary-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.financial-summary-main small {
  color: var(--muted);
  font-weight: 700;
}

.financial-details {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.income-value {
  color: var(--success);
}

.expense-value {
  color: var(--danger);
}

.financial-category-card .item-title {
  align-items: center;
  display: flex;
  gap: 10px;
}

.category-color-dot {
  border: 2px solid rgba(18, 16, 14, 0.12);
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.report-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.report-output {
  display: grid;
  gap: 16px;
}

.report-block {
  padding: 18px;
}

.report-block h3 {
  margin: 0 0 12px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.report-box,
.report-list-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 14px;
}

.report-box {
  min-height: 104px;
  display: grid;
  gap: 8px;
}

.report-box span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.report-box strong {
  font-size: 1.35rem;
}

.report-list {
  display: grid;
  gap: 8px;
}

.report-list-item strong,
.report-list-item span {
  display: block;
}

.report-list-item span {
  color: var(--muted);
  margin-top: 4px;
  font-size: 0.88rem;
}

.cash-close-content {
  display: grid;
  gap: 18px;
}

.cash-close-status {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--black-soft);
  font-weight: 800;
}

.cash-close-status.warning {
  border-color: rgba(168, 109, 24, 0.2);
  color: var(--warning);
}

.cash-close-status.success {
  border-color: rgba(34, 117, 82, 0.2);
  color: var(--success);
}

.cash-close-summary {
  margin-top: 0;
}

.cash-close-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.cash-close-history {
  display: grid;
  gap: 10px;
}

.cash-close-history-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  display: grid;
  gap: 4px;
}

.cash-close-history-item strong,
.cash-close-history-item span {
  display: block;
}

.cash-close-history-item span {
  color: var(--muted);
  font-size: 0.86rem;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.system-notice {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--black-soft);
  font-weight: 700;
}

.system-notice.success {
  border-color: rgba(34, 117, 82, 0.2);
  color: var(--success);
}

.system-notice.error {
  border-color: rgba(157, 47, 47, 0.2);
  color: var(--danger);
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.permission-note {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--wood);
  font-size: 0.78rem;
  text-transform: uppercase;
}

td {
  color: var(--black-soft);
}

tr:last-child td {
  border-bottom: 0;
}

.cards-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.item-card {
  padding: 16px;
  display: grid;
  gap: 14px;
}

.item-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.meta-box {
  background: var(--paper);
  padding: 10px;
  border-radius: 8px;
}

.meta-box strong,
.meta-box span {
  display: block;
}

.meta-box strong {
  margin-top: 4px;
}

.schedule-list {
  grid-template-columns: 1fr;
}

.package-list {
  grid-template-columns: 1fr;
  margin-top: 14px;
}

.date-filter,
.search-filter {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.date-filter input,
.date-filter select,
.search-filter input {
  border: 0;
  background: transparent;
  color: var(--black);
  outline: 0;
  font-weight: 700;
}

.date-filter select {
  min-width: 92px;
}

.search-filter {
  min-width: min(320px, 100%);
}

.search-filter input {
  width: 180px;
}

.schedule-day-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--black-soft);
}

.schedule-day-heading strong {
  font-size: 1rem;
}

.schedule-day-heading span {
  color: var(--muted);
  font-weight: 800;
}

.schedule-compact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.schedule-summary {
  min-height: 64px;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 120px auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  cursor: pointer;
  list-style: none;
}

.schedule-summary::-webkit-details-marker {
  display: none;
}

.schedule-summary::after {
  content: "Ver detalhes";
  color: var(--wood);
  font-size: 0.82rem;
  font-weight: 900;
}

.schedule-compact-card[open] .schedule-summary {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.schedule-compact-card[open] .schedule-summary::after {
  content: "Ocultar";
}

.schedule-summary-time,
.schedule-summary-value {
  color: var(--black);
  font-weight: 900;
}

.schedule-summary-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.schedule-summary-main strong,
.schedule-summary-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-summary-main small {
  color: var(--muted);
  font-weight: 700;
}

.schedule-details {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(18, 16, 14, 0.62);
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(760px, 100%);
  max-height: min(760px, 92vh);
  max-height: min(760px, 92dvh);
  overflow-y: auto;
  padding: 20px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.form-section-title {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-top: 4px;
  padding-top: 14px;
  text-transform: uppercase;
}

.field label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.pet-size-hint {
  border: 1px solid rgba(199, 154, 58, 0.28);
  border-radius: 8px;
  background: rgba(199, 154, 58, 0.1);
  color: var(--wood);
  padding: 10px 12px;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
}

.batch-pet-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.batch-pet-option {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--black);
  font-weight: 900;
}

.field .batch-pet-option input {
  width: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--gold);
}

.batch-pet-option small {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  min-height: 44px;
  padding: 10px 12px;
  outline: 0;
}

.field select.search-backed-select {
  display: none;
}

.select-search-results {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(54, 32, 19, 0.14);
  display: grid;
  gap: 4px;
  max-height: 230px;
  overflow: auto;
  padding: 6px;
  position: relative;
  z-index: 20;
}

.select-search-option {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--black);
  cursor: pointer;
  display: grid;
  gap: 2px;
  min-height: 44px;
  padding: 9px 10px;
  text-align: left;
}

.select-search-option:hover,
.select-search-option:focus {
  background: rgba(199, 154, 58, 0.14);
  outline: 0;
}

.select-search-option span {
  font-weight: 900;
}

.select-search-option small,
.select-search-empty {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.select-search-empty {
  padding: 12px 10px;
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(199, 154, 58, 0.16);
}

.form-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
  padding-top: 6px;
}

.empty-state {
  padding: 24px;
  border: 1px dashed rgba(139, 90, 53, 0.35);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.7);
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cards-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .batch-pet-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    padding: 12px 14px;
  }

  .site-brand img {
    width: 74px;
    height: 44px;
  }

  .site-nav {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 0.76rem;
  }

  .site-nav a {
    display: none;
  }

  .site-nav a[href="#servicos"],
  .site-nav a[href="#contato"],
  .site-nav .site-install-button,
  .site-nav .site-admin-link {
    display: inline-flex;
  }

  .public-hero {
    min-height: 84vh;
    min-height: 84svh;
    padding: 110px 18px 44px;
  }

  .public-hero::after {
    background:
      linear-gradient(180deg, rgba(18, 16, 14, 0.62), rgba(18, 16, 14, 0.3) 42%, rgba(18, 16, 14, 0.86)),
      linear-gradient(90deg, rgba(18, 16, 14, 0.5), rgba(18, 16, 14, 0.14));
  }

  .public-hero > img {
    object-position: 58% center;
  }

  .public-hero h1 {
    font-size: clamp(2.65rem, 13vw, 4.2rem);
  }

  .public-hero p {
    font-size: 1rem;
  }

  .intro-grid h2,
  .section-heading h2,
  .contact-grid h2 {
    font-size: clamp(1.8rem, 10vw, 2.7rem);
  }

  .public-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .finance-filters,
  .financial-transaction-summary,
  .finance-dashboard-cards,
  .finance-visual-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    justify-items: start;
    text-align: left;
  }

  .whatsapp-booking-button,
  .public-secondary-link {
    width: 100%;
  }

  .floating-whatsapp-button {
    left: 16px;
    right: 16px;
    bottom: 14px;
    min-width: 0;
  }

  .intro-grid,
  .contact-grid,
  .service-grid,
  .differentials-grid,
  .testimonials-grid,
  .public-gallery {
    grid-template-columns: 1fr;
  }

  .service-grid article,
  .differentials-grid article {
    min-height: 0;
  }

  .public-gallery {
    grid-auto-rows: auto;
  }

  .public-gallery img,
  .public-gallery img:first-child {
    grid-row: auto;
    aspect-ratio: 4 / 5;
  }

  .premium-hero {
    padding: 88px 12px 20px;
  }

  .premium-banner-shell {
    border-radius: 6px;
  }

  .premium-banner {
    width: 100%;
    max-width: 100%;
    transform: none;
  }

  .hero-address-link {
    border-radius: 8px;
    font-size: 0.82rem;
    width: 100%;
  }

  .callout-grid,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .callout-grid h1 {
    font-size: clamp(1.7rem, 9vw, 3.2rem);
    letter-spacing: 0;
    white-space: nowrap;
  }

  .callout-actions {
    width: 100%;
  }

  .pet-carousel {
    aspect-ratio: 4 / 5;
  }

  .pet-carousel img {
    padding: 10px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: auto;
    padding: max(14px, env(safe-area-inset-top)) 14px 12px;
    gap: 14px;
    overflow: hidden;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .nav-list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding-bottom: 0;
  }

  .nav-item {
    width: 100%;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    padding: 0 8px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .nav-icon,
  .sidebar-note {
    display: none;
  }

  .main-content {
    padding: 16px;
    padding-bottom: max(22px, env(safe-area-inset-bottom));
  }

  .topbar,
  .section-heading,
  .filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions,
  .filter-actions,
  .topbar-actions button,
  .filter-actions button,
  .date-filter {
    width: 100%;
  }

  .date-filter {
    justify-content: space-between;
  }

  .hero-strip {
    grid-template-columns: 1fr;
    margin: 18px 0;
  }

  .hero-visual {
    min-height: 170px;
  }

  .hero-visual img {
    min-height: 170px;
  }

  .content-grid,
  .schedule-list,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .financial-summary,
  .schedule-summary {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .financial-summary::after,
  .schedule-summary::after {
    justify-self: start;
  }

  .table-card {
    padding: 12px;
  }

  .modal {
    width: min(680px, calc(100vw - 24px));
    max-height: calc(100dvh - 24px);
  }
}

@media (max-width: 620px) {
  .cards-list,
  .form-grid,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .metric-card {
    min-height: 122px;
    padding: 13px;
  }

  .metric-card strong {
    font-size: clamp(1.35rem, 7vw, 2rem);
  }

  .topbar h1 {
    font-size: 1.55rem;
  }

  .hero-copy {
    padding: 20px;
  }

  .login-screen {
    padding: 14px;
  }

  .login-card {
    padding: 18px;
  }

  .login-brand .brand-logo {
    width: 58px;
    height: 58px;
  }

  .login-banner {
    aspect-ratio: 1.65 / 1;
    object-position: center;
  }

  .hero-copy strong {
    font-size: 1.1rem;
  }

  .cards-list,
  .schedule-list {
    gap: 12px;
  }

  .item-card {
    padding: 14px;
  }

  .item-card-header {
    align-items: stretch;
    flex-direction: column;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-item .status-pill {
    justify-self: start;
  }

  .form-actions {
    flex-direction: column-reverse;
  }

  .form-actions button,
  .cash-close-actions button {
    width: 100%;
  }

  .cash-close-actions {
    flex-direction: column-reverse;
  }

  .table-scroll {
    overflow: visible;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  table {
    min-width: 0;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    gap: 12px;
  }

  tr {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
  }

  td {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(32, 27, 23, 0.08);
  }

  td:last-child {
    border-bottom: 0;
  }

  td::before {
    content: attr(data-label);
    color: var(--wood);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  td[colspan] {
    display: block;
  }

  td[colspan]::before {
    display: none;
  }

  .row-actions {
    justify-content: flex-start;
  }

  .compact-list-card .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .compact-list-card table {
    display: table;
    min-width: 720px;
  }

  .compact-list-card thead {
    display: table-header-group;
  }

  .compact-list-card tbody {
    display: table-row-group;
  }

  .compact-list-card tr {
    display: table-row;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .compact-list-card th,
  .compact-list-card td {
    display: table-cell;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(32, 27, 23, 0.08);
    vertical-align: middle;
  }

  .compact-list-card td::before {
    display: none;
  }
}

@media (max-width: 420px) {
  .main-content {
    padding: 12px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .topbar-actions,
  .filter-actions {
    gap: 8px;
  }

  .appointment-alert-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .alert-kind {
    min-width: 0;
    justify-self: start;
  }

  .alert-actions {
    justify-content: flex-start;
  }

  .primary-button,
  .ghost-button {
    padding: 0 12px;
  }

  td {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.media-preview-link,
.pet-photo-link {
  display: inline-flex;
  width: max-content;
  margin-top: 6px;
  color: #8a5722;
  font-weight: 700;
  text-decoration: none;
}

.pet-photo-link {
  margin: 0 8px 0 0;
  padding: 2px 8px;
  border: 1px solid rgba(138, 87, 34, 0.28);
  border-radius: 6px;
  font-size: 0.78rem;
}


