:root {
  --bg-top: #fbf7ef;
  --bg-bottom: #f2ede2;
  --paper: #fffdf8;
  --ink: #2f241d;
  --muted: #74685d;
  --line: #d9cfbf;
  --brand: #b56a3f;
  --brand-dark: #8f4f2a;
  --accent: #6f8b4e;
  --soft: #f3ebde;
  --shadow: 0 14px 40px rgba(67, 44, 21, 0.08);
  font-family: "Segoe UI", "Noto Sans TC", sans-serif;
  color: var(--ink);
  background: var(--bg-top);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(181, 106, 63, 0.12), transparent 28%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.hero {
  background: linear-gradient(135deg, rgba(181, 106, 63, 0.12), rgba(111, 139, 78, 0.12));
  border: 1px solid rgba(181, 106, 63, 0.14);
  border-radius: 24px;
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: rgba(181, 106, 63, 0.1);
  padding: 6px 10px;
  border-radius: 999px;
}

h1,
h2,
h3 {
  margin: 0 0 10px;
}

h1 {
  font-size: 34px;
  line-height: 1.15;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 18px;
}

p {
  color: var(--muted);
  line-height: 1.6;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 22px;
}

.nav a,
.quick-link {
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid var(--line);
  padding: 10px 14px;
  border-radius: 12px;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.nav a:hover,
.quick-link:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: 1.15fr 0.85fr;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card {
  background: var(--paper);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(217, 207, 191, 0.75);
  margin-bottom: 16px;
}

.card[id] {
  scroll-margin-top: 18px;
}

.card.soft {
  background: var(--soft);
}

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

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

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

.row.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-bottom: 5px;
}

input,
select,
button,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

button {
  background: var(--brand);
  color: #fffaf5;
  border: 0;
  cursor: pointer;
  font-weight: 600;
}

button.secondary {
  background: #5f6b73;
}

button.ghost {
  background: transparent;
  color: var(--brand-dark);
  border: 1px solid rgba(181, 106, 63, 0.28);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  filter: grayscale(0.2);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid #ece4d7;
  text-align: left;
  padding: 11px 10px;
  font-size: 14px;
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-weight: 600;
}

.table-row-selected td {
  background: rgba(181, 106, 63, 0.09);
}

.table-row-selected td:first-child {
  border-left: 4px solid var(--brand);
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #efe6d7;
  font-size: 12px;
}

.tag.ok {
  background: rgba(111, 139, 78, 0.16);
  color: #44632b;
}

.tag.warn {
  background: rgba(181, 106, 63, 0.18);
  color: #8f4f2a;
}

.order-calendar-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.order-calendar-title {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.order-calendar-weekdays,
.order-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.order-calendar-weekdays {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.order-calendar-day {
  min-height: 118px;
  padding: 10px;
  border: 1px solid rgba(181, 106, 63, 0.16);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.order-calendar-day:hover {
  transform: translateY(-1px);
  border-color: rgba(181, 106, 63, 0.38);
  background: #fffaf1;
}

.order-calendar-day.is-muted {
  opacity: 0.48;
}

.order-calendar-day.is-today {
  border-color: rgba(111, 139, 78, 0.52);
  box-shadow: inset 0 0 0 1px rgba(111, 139, 78, 0.18);
}

.order-calendar-day.is-selected {
  border-color: rgba(181, 106, 63, 0.74);
  background: linear-gradient(135deg, rgba(255, 242, 222, 0.96), rgba(255, 253, 248, 0.96));
}

.order-calendar-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.order-calendar-date-button {
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
}

.order-calendar-count {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(111, 139, 78, 0.12);
  color: #44632b;
}

.order-calendar-events {
  display: grid;
  gap: 6px;
}

.order-calendar-event {
  width: 100%;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--ink);
  text-align: left;
  font-size: 12px;
  line-height: 1.35;
  background: rgba(181, 106, 63, 0.1);
}

.order-calendar-event:hover {
  border-color: rgba(181, 106, 63, 0.32);
  background: rgba(181, 106, 63, 0.16);
}

.order-calendar-event--grooming {
  background: rgba(111, 139, 78, 0.14);
}

.order-calendar-event--grooming:hover {
  border-color: rgba(111, 139, 78, 0.35);
  background: rgba(111, 139, 78, 0.2);
}

.order-calendar-event--shuttle {
  border-color: rgba(177, 67, 67, 0.38);
  background: linear-gradient(135deg, rgba(255, 226, 214, 0.92), rgba(255, 247, 232, 0.96));
  box-shadow: 0 8px 18px rgba(177, 67, 67, 0.12);
}

.order-calendar-event--shuttle:hover {
  border-color: rgba(177, 67, 67, 0.62);
  background: linear-gradient(135deg, rgba(255, 217, 201, 0.98), rgba(255, 244, 224, 0.98));
}

.order-shuttle-badge {
  margin-right: 4px;
  font-weight: 900;
}

.order-shuttle-note {
  display: block;
  margin-top: 4px;
  color: #8c2d2d;
  font-size: 12px;
  font-weight: 800;
}

.order-calendar-more {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.order-calendar-side {
  position: sticky;
  top: 18px;
  padding: 16px;
  border: 1px solid rgba(181, 106, 63, 0.16);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.72);
}

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

.order-selected-item {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(181, 106, 63, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  text-align: left;
}

.order-selected-item strong {
  display: block;
  margin-bottom: 4px;
}

.order-selected-item.has-shuttle {
  border-color: rgba(177, 67, 67, 0.38);
  background: linear-gradient(135deg, rgba(255, 239, 231, 0.88), rgba(255, 255, 255, 0.68));
}

.table-row-shuttle td {
  background: rgba(255, 239, 231, 0.68);
}

.tag.info {
  background: rgba(76, 114, 156, 0.16);
  color: #37587c;
}

.tag.danger {
  background: rgba(177, 67, 67, 0.16);
  color: #8c2d2d;
}

.tag.soft {
  background: rgba(84, 84, 84, 0.1);
  color: #5b5249;
}

.metric {
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(243, 235, 222, 0.9));
  border: 1px solid rgba(217, 207, 191, 0.85);
}

.metric strong {
  display: block;
  font-size: 28px;
  margin-top: 6px;
}

.list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.section-title {
  margin: 28px 0 10px;
}

.split {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

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

.history-item {
  padding: 12px;
  border-radius: 14px;
  background: #fff8ef;
  border: 1px solid #eadfcf;
}

.muted {
  color: var(--muted);
}

.divider {
  height: 1px;
  background: #ece4d7;
  margin: 18px 0;
}

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

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  padding: 24px 18px;
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.96), rgba(243, 235, 222, 0.98)),
    radial-gradient(circle at top left, rgba(111, 139, 78, 0.12), transparent 30%);
  border-right: 1px solid rgba(181, 106, 63, 0.12);
}

.sidebar-brand h2 {
  font-size: 24px;
  margin-top: 10px;
}

.sidebar-brand p {
  margin: 8px 0 0;
}

.sidebar-group {
  margin-top: 22px;
}

.sidebar-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}

.sidebar-link {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 11px 13px;
  border-radius: 14px;
  border: 1px solid transparent;
  margin-bottom: 8px;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(181, 106, 63, 0.22);
  transform: translateX(2px);
}

.sidebar-card {
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(181, 106, 63, 0.14);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.main-panel {
  padding: 26px 24px 48px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.topbar h1 {
  margin-top: 8px;
}

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

.metric-grid {
  margin-bottom: 16px;
}

.report-chart-grid {
  align-items: stretch;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 6px;
}

.legend-dot.income,
.bar-fill.income,
.horizontal-bar-fill.income {
  background: #6f8b4e;
}

.legend-dot.refund,
.bar-fill.refund,
.horizontal-bar-fill.refund {
  background: #b14343;
}

.legend-dot.net,
.bar-fill.net,
.horizontal-bar-fill.net {
  background: #b56a3f;
}

.horizontal-bar-fill.grooming {
  background: #d48a47;
}

.horizontal-bar-fill.product {
  background: #4c729c;
}

.horizontal-bar-fill.shuttle {
  background: #7d6aa8;
}

.horizontal-bar-fill.member {
  background: #8f4f2a;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(58px, 1fr));
  gap: 12px;
  min-height: 250px;
  align-items: end;
}

.bar-column {
  min-width: 0;
  text-align: center;
}

.bar-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 3px;
  height: 170px;
  padding: 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(243, 235, 222, 0.78), rgba(255, 253, 248, 0.98));
  border: 1px solid rgba(217, 207, 191, 0.8);
}

.bar-fill {
  display: block;
  min-height: 0;
  border-radius: 999px 999px 6px 6px;
  opacity: 0.88;
}

.bar-column strong {
  display: block;
  margin-top: 8px;
  font-size: 12px;
}

.bar-column span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.horizontal-chart {
  display: grid;
  gap: 14px;
}

.horizontal-chart.compact {
  gap: 10px;
}

.horizontal-bar-row {
  display: grid;
  gap: 7px;
}

.horizontal-bar-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.horizontal-bar-label span {
  color: var(--muted);
}

.horizontal-bar-track {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: rgba(217, 207, 191, 0.55);
  overflow: hidden;
}

.horizontal-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.quick-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.mini-stat {
  margin-bottom: 0;
}

.stack-section {
  margin-top: 26px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 14px;
}

.section-heading p {
  max-width: 460px;
  margin: 0;
}

.detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.detail-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #ece4d7;
}

.detail-list li:last-child {
  border-bottom: 0;
}

.detail-list strong {
  text-align: right;
}

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

.note-box {
  min-height: 160px;
}

.permission-table th:last-child,
.permission-table td:last-child {
  width: 120px;
  text-align: center;
}

.checkbox-cell input {
  width: 18px;
  height: 18px;
}

.is-hidden-by-role {
  display: none !important;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-banner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(181, 106, 63, 0.18);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: var(--shadow);
}

.status-banner h3 {
  margin: 10px 0 6px;
}

.status-banner p {
  margin: 0;
}

.status-banner.is-success {
  border-color: rgba(88, 138, 81, 0.32);
  background: linear-gradient(135deg, rgba(241, 250, 240, 0.95), rgba(255, 253, 248, 0.95));
}

.status-banner.is-warning {
  border-color: rgba(192, 134, 38, 0.32);
  background: linear-gradient(135deg, rgba(255, 248, 234, 0.95), rgba(255, 253, 248, 0.95));
}

.status-banner.is-info {
  border-color: rgba(76, 114, 156, 0.24);
  background: linear-gradient(135deg, rgba(242, 247, 255, 0.95), rgba(255, 253, 248, 0.95));
}

.is-hidden {
  display: none !important;
}

.mini-button {
  width: auto;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
}

.table-row-muted {
  opacity: 0.68;
}

.care-checklist {
  display: grid;
  gap: 8px;
}

.care-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  color: var(--ink);
}

.care-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
}

.care-shift-note {
  min-height: 96px;
}

.care-note-line + .care-note-line {
  margin-top: 6px;
}

.history-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.history-filters .field {
  min-width: 160px;
  flex: 1 1 160px;
}

.history-filters button {
  width: auto;
  min-width: 120px;
}

.mobile-booking-body {
  background:
    radial-gradient(circle at 20% 0%, rgba(181, 106, 63, 0.18), transparent 30%),
    radial-gradient(circle at 100% 20%, rgba(111, 139, 78, 0.16), transparent 28%),
    linear-gradient(180deg, #fff8ed 0%, #efe7d8 100%);
}

.mobile-booking-shell {
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 18px 14px 36px;
}

.mobile-hero-card,
.mobile-step-card {
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid rgba(181, 106, 63, 0.16);
  border-radius: 26px;
  box-shadow: 0 20px 55px rgba(67, 44, 21, 0.1);
  padding: 20px;
  margin-bottom: 14px;
}

.mobile-hero-card {
  position: relative;
  overflow: hidden;
}

.mobile-hero-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -70px;
  bottom: -80px;
  border-radius: 999px;
  background: rgba(111, 139, 78, 0.14);
}

.mobile-hero-top,
.mobile-hero-card p,
.mobile-progress {
  position: relative;
  z-index: 1;
}

.mobile-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.mobile-mini-link,
.mobile-mini-note {
  color: var(--brand-dark);
  border: 1px solid rgba(181, 106, 63, 0.22);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.75);
  font-size: 12px;
}

.mobile-mini-link {
  text-decoration: none;
}

.mobile-step-nav {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 12px;
}

.mobile-step-back {
  width: auto;
  min-height: 36px !important;
  padding: 8px 13px;
  border: 1px solid rgba(181, 106, 63, 0.22);
  border-radius: 999px;
  color: var(--brand-dark);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
  font-size: 13px;
  font-weight: 800;
}

.login-card {
  max-width: 760px;
  margin: 0 auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.mobile-hero-card h1 {
  position: relative;
  z-index: 1;
  font-size: 32px;
  letter-spacing: -0.03em;
}

.mobile-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 18px;
}

.mobile-progress span {
  height: 8px;
  border-radius: 999px;
  background: rgba(217, 207, 191, 0.75);
  color: transparent;
  font-size: 0;
}

.mobile-progress span.is-active {
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.step-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand-dark);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.mobile-step-card h2 {
  font-size: 25px;
}

.mobile-step-card button,
.mobile-step-card input,
.mobile-step-card select,
.mobile-step-card textarea {
  min-height: 48px;
}

.mobile-step-card > button,
.mobile-step-card .booking-panel > button {
  margin-top: 12px;
}

.mobile-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.mobile-form-grid + label,
.mobile-step-card label + textarea {
  margin-top: 10px;
}

.mobile-divider-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 12px;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 13px;
}

.mobile-divider-label::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(217, 207, 191, 0.85);
}

.owner-pill,
.selected-summary,
.done-box {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(181, 106, 63, 0.09), rgba(111, 139, 78, 0.1));
  border: 1px solid rgba(181, 106, 63, 0.14);
  margin-bottom: 14px;
}

.owner-pill span,
.selected-summary span {
  color: var(--muted);
  font-size: 13px;
}

.pet-card-list,
.room-card-list,
.service-choice-grid {
  display: grid;
  gap: 10px;
}

.pet-select-card,
.room-select-card,
.service-choice {
  text-align: left;
  color: var(--ink);
  background: #fffaf3;
  border: 1px solid rgba(217, 207, 191, 0.95);
  border-radius: 18px;
  padding: 15px;
  box-shadow: none;
}

.pet-select-card strong,
.room-select-card strong,
.service-choice strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  margin-bottom: 4px;
}

.pet-select-card span,
.room-select-card span,
.service-choice span,
.pet-select-card small,
.room-select-card small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.pet-multi-check {
  float: right;
  display: inline-flex !important;
  width: fit-content;
  margin-left: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--brand-dark) !important;
  background: rgba(181, 106, 63, 0.11);
  font-size: 12px;
  font-weight: 800;
}

.pet-select-card.is-selected,
.room-select-card.is-selected,
.service-choice.is-selected {
  border-color: rgba(111, 139, 78, 0.5);
  background: linear-gradient(135deg, rgba(111, 139, 78, 0.16), rgba(255, 253, 248, 0.95));
}

.room-species-hint {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--brand-dark);
  background: rgba(111, 139, 78, 0.11);
  border: 1px solid rgba(111, 139, 78, 0.18);
  font-weight: 700;
}

.combo-grooming-note {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 16px;
  color: var(--brand-dark);
  background: rgba(181, 106, 63, 0.1);
  border: 1px solid rgba(181, 106, 63, 0.2);
  line-height: 1.55;
  font-size: 14px;
}

.combo-grooming-note.is-hidden {
  display: none;
}

.profile-pet-toolbar {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  margin: 14px 0;
}

.profile-pet-toolbar .muted {
  font-size: 13px;
}

.profile-draft-list {
  display: grid;
  gap: 10px;
  margin: 8px 0 14px;
}

.reservation-pet-picker {
  display: grid;
  gap: 8px;
  margin: 12px 0 16px;
  padding: 14px;
  border: 1px solid rgba(111, 139, 78, 0.28);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(111, 139, 78, 0.13), rgba(255, 250, 243, 0.95));
}

.reservation-pet-picker.is-hidden {
  display: none;
}

.reservation-pet-picker select {
  border-color: rgba(111, 139, 78, 0.44);
  background: #fffdf8;
}

.reservation-pet-checkbox-list {
  display: grid;
  gap: 8px;
}

.reservation-pet-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid rgba(217, 207, 191, 0.95);
  border-radius: 15px;
  background: #fffaf3;
  color: var(--ink);
}

.reservation-pet-check.is-selected {
  border-color: rgba(111, 139, 78, 0.5);
  background: rgba(111, 139, 78, 0.12);
}

.reservation-pet-check input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
}

.reservation-pet-check span,
.reservation-pet-check strong,
.reservation-pet-check small {
  display: block;
}

.reservation-pet-check small {
  color: var(--muted);
  line-height: 1.35;
}

.profile-draft-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
  padding: 10px;
  border: 1px solid rgba(217, 207, 191, 0.95);
  border-radius: 18px;
  background: #fffaf3;
}

.profile-draft-card.is-selected {
  border-color: rgba(111, 139, 78, 0.5);
  background: linear-gradient(135deg, rgba(111, 139, 78, 0.14), rgba(255, 253, 248, 0.96));
}

.profile-draft-main {
  padding: 4px;
  color: var(--ink);
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: left;
}

.profile-draft-main strong,
.profile-draft-main span,
.profile-draft-main small {
  display: block;
}

.profile-draft-main span,
.profile-draft-main small {
  color: var(--muted);
  line-height: 1.45;
}

.profile-draft-actions {
  display: grid;
  gap: 8px;
  align-content: center;
}

button.danger {
  color: #9b3d2f;
  border-color: rgba(155, 61, 47, 0.22);
}

.danger-zone {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(155, 61, 47, 0.22);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 243, 238, 0.95), rgba(255, 250, 245, 0.72));
}

.danger-zone button {
  white-space: nowrap;
}

.room-select-card:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.booking-panel {
  margin-top: 10px;
}

.booking-panel.is-hidden {
  display: none;
}

.addon-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 12px;
}

.addon-check-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(217, 207, 191, 0.9);
  border-radius: 14px;
  background: #fffaf3;
  color: var(--ink);
}

.addon-check-grid input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
}

.done-box ul {
  margin: 8px 0;
  padding-left: 20px;
  color: var(--ink);
}

.print-report-header {
  display: none;
}

@media print {
  @page {
    size: A4;
    margin: 10mm;
  }

  body {
    background: #fff !important;
    color: #111 !important;
  }

  .dashboard-shell {
    display: block;
  }

  .sidebar,
  .topbar,
  .topbar-actions,
  .hero,
  button,
  .quick-link,
  .inline-actions,
  .sidebar-card {
    display: none !important;
  }

  .main-panel {
    padding: 0 !important;
  }

  .print-report-header {
    display: block;
    border: 2px solid #111;
    border-radius: 0;
    margin-bottom: 12px;
    padding: 12px;
    break-inside: avoid;
  }

  .print-report-title {
    border-bottom: 1px solid #111;
    margin-bottom: 10px;
    padding-bottom: 8px;
  }

  .print-report-title span {
    display: block;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .print-report-title h2 {
    font-size: 26px;
    margin: 4px 0;
  }

  .print-report-title p,
  .print-report-notes p {
    margin: 0;
  }

  .print-report-grid,
  .print-report-meta,
  .print-report-notes {
    display: grid;
    gap: 6px;
  }

  .print-report-grid {
    grid-template-columns: repeat(6, 1fr);
    margin-bottom: 8px;
  }

  .print-report-meta {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 8px;
  }

  .print-report-notes {
    grid-template-columns: 1fr;
  }

  .print-report-grid div,
  .print-report-meta div,
  .print-report-notes div {
    border: 1px solid #111;
    padding: 6px;
  }

  .print-report-header span {
    display: block;
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .print-report-header strong {
    display: block;
    font-size: 14px;
    margin-top: 2px;
  }

  .topbar {
    display: block;
    margin-bottom: 12px;
  }

  .card,
  .metric {
    box-shadow: none !important;
    break-inside: avoid;
  }

  .card {
    margin-bottom: 10px;
    padding: 12px;
  }

  .table th,
  .table td {
    padding: 6px;
    font-size: 12px;
  }

  input,
  select,
  textarea {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #111 !important;
    font: inherit;
    padding: 0 !important;
  }

  textarea {
    min-height: 36px;
    resize: none;
  }
}

@media (max-width: 980px) {
  .grid.two,
  .grid.three,
  .grid.four,
  .history-grid,
  .order-calendar-shell,
  .quick-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .order-calendar-side {
    position: static;
  }

  .row,
  .row.two,
  .row.three {
    grid-template-columns: 1fr 1fr;
  }

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

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(181, 106, 63, 0.12);
  }

  .topbar,
  .section-heading,
  .status-banner {
    display: block;
  }

  .topbar-actions {
    margin-top: 12px;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 28px;
  }

  .container {
    padding: 20px 14px 40px;
  }

  .row,
  .row.two,
  .row.three {
    grid-template-columns: 1fr;
  }

  .split {
    display: block;
  }

  .main-panel {
    padding: 20px 14px 40px;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .order-calendar-shell > div:first-child {
    overflow-x: auto;
  }

  .order-calendar-weekdays,
  .order-calendar-grid {
    min-width: 720px;
  }

  .mobile-booking-shell {
    padding: 10px 10px 28px;
  }

  .mobile-hero-card,
  .mobile-step-card {
    border-radius: 22px;
    padding: 17px;
  }

  .mobile-form-grid,
  .addon-check-grid {
    grid-template-columns: 1fr;
  }

  .profile-pet-toolbar,
  .profile-draft-card {
    grid-template-columns: 1fr;
  }

  .profile-draft-actions {
    grid-template-columns: 1fr 1fr;
  }
}
