:root { --salon-accent: #137c72; }
* { box-sizing: border-box; letter-spacing: 0; }
body { background: #f4f6f7; color: #23272b; padding-bottom: max(24px, env(safe-area-inset-bottom)); }
body > .container { max-width: 1440px; }
img, canvas { max-width: 100%; }
h1, h2, h3, h4, h5, .card, .alert { overflow-wrap: anywhere; }
.navbar { padding: 12px max(12px, env(safe-area-inset-left)); }
.navbar-brand { display: flex; align-items: center; gap: 8px; font-size: 18px; white-space: normal; }
.navbar-brand img { background: white; border-radius: 6px; object-fit: contain; flex-shrink: 0; }
.navbar-collapse, .navbar-nav, .row > *, .d-flex > * { min-width: 0; }
.navbar-nav { flex-wrap: wrap; }
.navbar .nav-link { padding: 10px 8px; font-size: 14px; }
.navbar .nav-link.active { color: white; text-decoration: underline; text-underline-offset: 6px; }
.navbar-text { overflow-wrap: anywhere; }
.btn, .form-control, .form-select, .navbar-toggler { min-height: 44px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; white-space: normal; }
.form-control, .form-select { font-size: 16px; }
.btn-primary { --bs-btn-bg: #137c72; --bs-btn-border-color: #137c72; --bs-btn-hover-bg: #0e635b; --bs-btn-hover-border-color: #0e635b; --bs-btn-active-bg: #0b514a; }
.card { border-radius: 8px; }
.table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; margin-bottom: 20px; background: white; }
.table-scroll table { margin-bottom: 0; }
.table-scroll:focus-visible { outline: 3px solid var(--salon-accent); outline-offset: 2px; }
.table th, .table td { vertical-align: middle; padding: 12px; }
.table td .btn { margin: 2px; }
.fc .fc-toolbar { flex-wrap: wrap; gap: 12px; }
.fc .fc-toolbar-title { font-size: 22px; }
.fc .fc-button { min-height: 44px; }
.chart-frame { position: relative; height: 320px; }
.login-page { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: #edf3f2; }
.login-card { width: 100%; max-width: 430px; padding: 32px; background: white; border: 1px solid #d7e1df; border-radius: 8px; }
.login-logo { display: block; width: 112px; height: 112px; object-fit: contain; margin: 0 auto 16px; }
.login-title { font-size: 25px; text-align: center; margin-bottom: 28px; }
@media (max-width: 1199.98px) {
  .navbar-collapse { padding-top: 12px; }
  .navbar .nav-link { font-size: 16px; padding: 12px 8px; }
  .navbar-text { display: block; margin-bottom: 12px; }
}
@media (max-width: 767.98px) {
  body > .container { padding-inline: 16px; }
  .table-scroll table { min-width: 640px; }
  .table-scroll .table-sm { min-width: 480px; }
  .fc .fc-toolbar { align-items: flex-start; flex-direction: column; }
  .fc .fc-button { font-size: 14px; padding-inline: 8px; }
  .fc .fc-toolbar-title { font-size: 20px; }
  .fc .fc-list-event-title { overflow-wrap: anywhere; }
  .login-card { padding: 24px; }
  .chart-frame { height: 280px; }
}
@media (prefers-reduced-motion: reduce) { .card-upcoming { animation: none !important; } }
@media print {
  .navbar, .btn { display: none !important; }
  body { background: white; }
  .table-scroll { overflow: visible; }
  .table-scroll table { min-width: 0; }
}
