:root {
  --black: #171413;
  --brown: #302522;
  --gold: #C9A646;
  --gold-light: #E4CB78;
  --gold-ink: #765817;
  --rose: #B88978;
  --cream: #FAF7F2;
  --surface: #FFFFFF;
  --ink: #302729;
  --muted: #766B65;
  --border: #EAE1DC;
  --green: #216E4A;
  --orange: #8A5700;
  --danger: #B42318;
  --shadow: 0 12px 34px rgba(48, 37, 34, .065);
  --shadow-soft: 0 5px 18px rgba(48, 37, 34, .045);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: Tahoma, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.9;
  direction: rtl;
}
a { color: var(--gold-ink); text-decoration: none; }
a:hover { color: var(--brown); text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
input, select, textarea {
  width: 100%;
  min-height: 45px;
  padding: 10px 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #DED4CD;
  border-radius: 11px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 166, 70, .17);
}
input[type="checkbox"] { width: 18px; min-height: 18px; accent-color: var(--gold-ink); }
input[type="time"], input[dir="ltr"] { direction: ltr; text-align: left; }
textarea { resize: vertical; min-height: 90px; }
label { display: flex; flex-direction: column; gap: 7px; color: #514641; font-weight: 700; }
small, .hint, .muted { color: var(--muted); }
.hint { margin: 14px 0 0; font-size: 12px; }

/* Main application frame */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex: 0 0 270px;
  flex-direction: column;
  width: 270px;
  height: 100vh;
  padding: 24px 16px 18px;
  overflow-y: auto;
  color: #F7F0E5;
  background: linear-gradient(165deg, var(--black) 0%, #211A18 52%, var(--brown) 100%);
  border-left: 1px solid rgba(228, 203, 120, .28);
  box-shadow: 8px 0 32px rgba(23, 20, 19, .10);
}
.sidebar-brand-wrap { padding: 3px 4px 22px; }
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  color: var(--gold-light);
}
.brand:hover { color: #F5E6B0; }
.brand-logo {
  display: block;
  flex: 0 0 78px;
  width: 78px;
  height: 78px;
  padding: 2px;
  object-fit: contain;
  aspect-ratio: 1 / 1;
  background: #000;
  border: 1px solid rgba(228, 203, 120, .72);
  border-radius: 13px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .25);
}
.brand-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-copy strong { color: var(--gold-light); font-size: 19px; font-weight: 800; white-space: nowrap; }
.brand-copy small { color: rgba(247, 240, 229, .66); font-size: 10px; white-space: nowrap; }
.brand-rule { display: flex; align-items: center; gap: 9px; margin: 19px 4px 0; }
.brand-rule::before, .brand-rule::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, rgba(201, 166, 70, .7)); }
.brand-rule::after { background: linear-gradient(90deg, rgba(201, 166, 70, .7), transparent); }
.brand-rule span { width: 5px; height: 5px; border: 1px solid var(--gold); transform: rotate(45deg); }
.main-nav { display: grid; gap: 7px; margin-top: 6px; }
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 49px;
  padding: 10px 14px;
  overflow: hidden;
  color: rgba(250, 247, 242, .78);
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.nav-link:hover {
  color: var(--gold-light);
  background: rgba(228, 203, 120, .085);
  border-color: rgba(228, 203, 120, .12);
  transform: translateX(-2px);
}
.nav-link.is-active {
  color: var(--gold-light);
  background: linear-gradient(90deg, rgba(201, 166, 70, .19), rgba(201, 166, 70, .075));
  border-color: rgba(201, 166, 70, .24);
  box-shadow: inset -3px 0 0 var(--gold);
}
.nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 24px; color: var(--gold); font-size: 20px; line-height: 1; }
.sidebar-bottom { margin-top: auto; padding: 18px 11px 0; border-top: 1px solid rgba(228, 203, 120, .18); }
.local-status { display: flex; align-items: center; gap: 8px; color: rgba(250, 247, 242, .72); font-size: 11px; }
.local-dot { display: inline-block; width: 8px; height: 8px; background: #58B982; border-radius: 50%; box-shadow: 0 0 0 4px rgba(88, 185, 130, .12); }
.sidebar-bottom form { margin-top: 12px; }
.logout {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 0;
  color: #E6A29A;
  text-align: right;
  background: transparent;
  border: 0;
  font-size: 12px;
}
.logout:hover { color: #FFD0C9; }
.sidebar-caption { display: block; margin-top: 12px; color: rgba(250, 247, 242, .62); font-size: 8px; letter-spacing: 1.5px; direction: ltr; text-align: right; }
.sidebar-backdrop { display: none; }
.main-shell { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 10px 34px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 18px rgba(48, 37, 34, .025);
  backdrop-filter: blur(10px);
}
.topbar-brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.topbar-brand img { width: 43px; height: 43px; object-fit: contain; background: #000; border: 1px solid rgba(201, 166, 70, .65); border-radius: 9px; }
.top-name { display: flex; flex-direction: column; gap: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.top-name strong { color: var(--brown); font-size: 14px; }
.today { display: flex; align-items: center; gap: 9px; color: var(--gold-ink); font-size: 12px; }
.today-label { color: var(--muted); }
.today strong { padding: 5px 11px; background: #FBF7EC; border: 1px solid #EFE4C8; border-radius: 8px; font-weight: 700; }
.menu-toggle { display: none; }
.content { width: 100%; max-width: 1540px; margin: 0 auto; padding: 31px 36px 65px; }
.footer { margin-top: auto; padding: 18px 15px; color: var(--muted); text-align: center; font-size: 10px; }
.footer span { color: var(--gold-ink); font-weight: 800; }
.footer i { padding: 0 7px; color: var(--gold); font-style: normal; }

/* Page headings and actions */
.pagehead { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.pagehead h1 { margin: 0; color: var(--brown); font-size: 26px; font-weight: 800; line-height: 1.55; }
.pagehead p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.eyebrow { margin-bottom: 3px; color: var(--gold-ink); font-size: 10px; font-weight: 800; letter-spacing: .5px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 17px;
  color: var(--brown);
  text-align: center;
  white-space: normal;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 800;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 5px 13px rgba(48, 37, 34, .10); }
.btn-primary { color: #211A12; background: linear-gradient(135deg, var(--gold-light), var(--gold)); border-color: #B89537; box-shadow: 0 4px 11px rgba(201, 166, 70, .17); }
.btn-primary:hover { color: #171413; filter: brightness(1.035); }
.btn-subtle { color: var(--brown); background: #fff; border-color: #DED4CD; }
.btn-subtle:hover { color: var(--gold-ink); border-color: #C9A646; }
.btn-danger-outline { margin-top: 12px; color: var(--danger); background: #fff; border-color: #E7BDB7; }
.btn-danger-outline:hover { background: #FFF7F5; }
.full { width: 100%; }
.text-link { color: var(--gold-ink); font-size: 12px; font-weight: 800; }
.text-link:hover { color: var(--brown); }

/* Panels, metrics and tables */
.panel {
  margin-bottom: 21px;
  padding: 23px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.panel h2 { margin: 0 0 16px; color: var(--brown); font-size: 16px; font-weight: 800; }
.panel h3 { color: var(--brown); font-size: 14px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.panel-header h2 { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-bottom: 22px; }
.kpi {
  position: relative;
  display: flex;
  min-height: 139px;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 21px 20px;
  overflow: hidden;
  background: linear-gradient(145deg, #fff 0%, #FFFEFC 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}
.kpi::before { position: absolute; top: 0; right: 0; left: 0; height: 3px; content: ""; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.kpi span { color: var(--muted); font-size: 11px; }
.kpi strong { color: var(--brown); font-size: 29px; font-weight: 800; line-height: 1.55; }
.kpi small { color: var(--muted); font-size: 10px; }
.kpi .money-sm { font-size: 19px; }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid #F0EAE5; border-radius: 11px; }
table { width: 100%; border-collapse: collapse; text-align: right; white-space: nowrap; }
th { color: #665A53; background: #F8F4EF; font-size: 11px; font-weight: 800; }
td, th { padding: 13px 12px; border-bottom: 1px solid #F0EAE5; }
td { color: #4A403C; font-size: 12px; }
tbody tr { transition: background .12s ease; }
tbody tr:hover { background: #FFFCF7; }
tr:last-child td { border-bottom: 0; }
td a { font-weight: 700; }
.empty { padding: 43px 15px; color: var(--muted); text-align: center; }
.empty a { display: inline-block; margin-top: 8px; font-weight: 800; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; color: #574A43; background: #F0ECE8; border: 1px solid rgba(48, 37, 34, .06); border-radius: 20px; font-size: 10px; font-weight: 800; }
.status-confirmed, .status-done { color: #185B3B; background: #EAF5EE; border-color: #D5EBDD; }
.status-cancelled, .status-no_show { color: #9E2E25; background: #FFF0ED; border-color: #F5D8D2; }
.status-booked { color: #80530B; background: #FFF6E3; border-color: #F0E2BD; }

/* Forms and booking editor */
.form-panel { max-width: 930px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin-bottom: 16px; }
.form-panel label { margin-bottom: 15px; }
.check { display: flex; flex-direction: row; align-items: center; gap: 10px; }
.searchbar, .filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 13px; margin-bottom: 17px; }
.searchbar label, .filters label { min-width: 155px; flex: 1; }
.grow { flex: 3 !important; }
.field-hint { display: flex; flex-direction: column; gap: 7px; padding: 3px 0; }
.field-hint small { font-size: 11px; }
.service-rows { display: grid; gap: 10px; }
.service-row { display: grid; grid-template-columns: minmax(190px, 2.1fr) minmax(70px, .5fr) minmax(140px, 1fr); align-items: end; gap: 12px; padding: 14px; background: #FFFCF8; border: 1px solid var(--border); border-radius: 12px; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.details { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 15px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; color: var(--brown); text-align: left; font-weight: 700; }
.item-stack > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.item-stack > div:last-child { border-bottom: 0; }
.item-stack small { display: block; }
.item-stack strong { color: var(--brown); white-space: nowrap; }
.preline { white-space: pre-wrap; }
.week-filter { min-width: auto !important; flex: 0 0 auto !important; align-self: end; padding: 10px; }
.live-total { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; padding: 16px; background: #FBF7EC; border: 1px solid #EFE3C6; border-radius: 12px; }
.live-total > div { display: flex; flex: 1; flex-direction: column; min-width: 170px; color: var(--muted); font-size: 11px; }
.live-total strong { color: var(--brown); font-size: 15px; }

/* Invoice, reports and SMS preview */
.invoice-brand, .invoice-details { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.invoice-brand-main { display: flex; align-items: center; gap: 14px; }
.invoice-logo { display: block; width: 82px; height: 82px; object-fit: contain; background: #000; border: 1px solid rgba(201, 166, 70, .7); border-radius: 11px; }
.invoice-brand h2 { display: block; margin: 0; color: var(--brown); font-size: 23px; }
.invoice-brand small { display: block; }
.invoice-number { padding-right: 15px; border-right: 2px solid var(--gold); }
.invoice-number p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.invoice-details { padding: 14px; background: #FBF8F3; border: 1px solid var(--border); border-radius: 11px; font-size: 12px; }
.invoice-summary { width: min(100%, 440px); margin: 22px 0 0 auto; }
.invoice-summary > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 11px; border-bottom: 1px solid #F0EAE5; }
.invoice-summary .total-row { color: var(--brown); background: #FBF5E8; border: 1px solid #F0E3C4; border-radius: 8px; font-weight: 800; }
.invoice-summary .total-row b { color: var(--gold-ink); }
.action-stack { display: grid; gap: 11px; }
.sms-preview { padding: 22px; color: var(--ink); background: #FBF8F3; border: 1px solid var(--border); border-radius: 12px; font-family: inherit; font-size: 13px; line-height: 2.1; white-space: pre-wrap; word-break: break-word; }
.report-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 15px; padding: 19px; background: #FBF6EA; border: 1px solid #F0E4C9; border-radius: 11px; }
.report-total strong { color: var(--brown); font-size: 22px; }

/* Alerts */
.alert { margin-bottom: 17px; padding: 12px 15px; color: #185B3B; background: #EAF5EE; border: 1px solid #D5EBDD; border-radius: 10px; font-size: 12px; }
.alert-warning { color: #80530B; background: #FFF6E3; border-color: #F0E2BD; }
.alert-error { color: #9E2E25; background: #FFF0ED; border-color: #F5D8D2; }

/* Login */
.login-wrapper {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 35px 18px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 12%, #45352D 0%, #241D1A 38%, var(--black) 78%);
}
.login-wrapper::before, .login-wrapper::after { position: absolute; width: 390px; height: 390px; content: ""; border: 1px solid rgba(201, 166, 70, .15); border-radius: 50%; pointer-events: none; }
.login-wrapper::before { top: -260px; right: -190px; }
.login-wrapper::after { bottom: -300px; left: -190px; }
.login-card {
  position: relative;
  z-index: 1;
  width: min(100%, 455px);
  padding: 31px 38px 30px;
  text-align: center;
  background: #FFFEFC;
  border: 1px solid rgba(228, 203, 120, .75);
  border-radius: 23px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .35), 0 0 0 6px rgba(201, 166, 70, .055);
}
.login-logo-frame { width: 178px; height: 178px; margin: 0 auto 15px; padding: 3px; overflow: hidden; background: #000; border: 1px solid var(--gold); border-radius: 17px; box-shadow: 0 9px 25px rgba(23, 20, 19, .16); }
.login-logo { display: block; width: 100%; height: 100%; object-fit: contain; aspect-ratio: 1 / 1; }
.login-kicker { color: var(--gold-ink); font-size: 9px; font-weight: 800; letter-spacing: 2px; direction: ltr; }
.login-card h1 { margin: 6px 0 0; color: var(--brown); font-size: 22px; font-weight: 900; }
.login-card p { margin: 2px 0 0; }
.login-subtitle { font-size: 11px; }
.login-divider { display: flex; align-items: center; justify-content: center; gap: 11px; margin: 17px 0 21px; color: var(--gold); font-size: 13px; }
.login-divider span { width: 65px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.login-divider span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.login-card label { margin-bottom: 16px; text-align: right; }
.login-card input { background: #FFFEFC; }
.login-submit { min-height: 48px; margin-top: 4px; }
.login-submit span { font-size: 18px; }
.login-card .hint { margin: 17px 0 0; font-size: 10px; }
.login-alert { z-index: 2; width: min(100%, 455px); }
.login-footer { position: relative; z-index: 1; color: rgba(228, 203, 120, .82); font-size: 9px; letter-spacing: 2px; direction: ltr; }
.login-footer span { padding: 0 7px; color: var(--gold); }

/* Flexible lists, inline service creation, settings */
[hidden] { display: none !important; }
.service-row { position: relative; }
.new-service { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding: 14px; background: #FBF6EA; border: 1px dashed #D9C288; border-radius: 11px; }
.new-service > strong { grid-column: 1 / -1; color: var(--gold-ink); font-size: 12px; }
.row-actions { margin-top: 12px; }
.inline-form { display: inline; margin: 0; }
.link-btn { padding: 0; color: var(--gold-ink); background: none; border: 0; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.link-btn:hover { color: var(--brown); text-decoration: underline; }
.link-btn.danger { color: var(--danger); }
.row-ops { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; }
td.row-ops { display: table-cell; white-space: nowrap; }
td.row-ops > * { margin-inline-end: 12px; }
.manage-list { display: grid; gap: 9px; }
.manage-item { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; padding: 11px 13px; background: #FFFCF8; border: 1px solid var(--border); border-radius: 12px; }
.manage-item.is-off { opacity: .72; }
.rename-form { display: flex; flex: 1 1 260px; gap: 8px; align-items: center; margin: 0; }
.rename-form input { flex: 1; min-width: 0; }
.uses { font-size: 11px; white-space: nowrap; }
.sub-title { margin: 6px 0 12px; color: var(--brown); font-size: 14px; }
.method-summary { margin-top: 14px; }
.method-summary h3 { margin: 0 0 4px; }

/* Responsive layouts */
@media (max-width: 1080px) {
  .sidebar { flex-basis: 245px; width: 245px; }
  .content { padding-right: 24px; padding-left: 24px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
  .sidebar {
    position: fixed;
    top: 0;
    right: -290px;
    bottom: 0;
    z-index: 41;
    width: 270px;
    height: 100dvh;
    flex-basis: 270px;
    transition: right .22s ease;
    box-shadow: -12px 0 36px rgba(0, 0, 0, .25);
  }
  .sidebar.show { right: 0; }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: none;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(15, 12, 11, .58);
    border: 0;
    cursor: default;
    backdrop-filter: blur(2px);
  }
  body.sidebar-open { overflow: hidden; }
  body.sidebar-open .sidebar-backdrop { display: block; }
  .topbar { min-height: 64px; gap: 10px; padding: 8px 13px; }
  .menu-toggle {
    display: inline-flex;
    flex: 0 0 39px;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    color: var(--gold-light);
    background: var(--black);
    border: 1px solid rgba(201, 166, 70, .55);
    border-radius: 10px;
    font-size: 19px;
  }
  .menu-toggle:focus-visible { outline: 3px solid rgba(201, 166, 70, .4); outline-offset: 2px; }
  .topbar-brand { gap: 8px; }
  .topbar-brand img { width: 36px; height: 36px; }
  .top-name { font-size: 9px; }
  .top-name strong { font-size: 12px; }
  .today { gap: 5px; font-size: 9px; }
  .today-label { display: none; }
  .today strong { padding: 4px 6px; }
  .content { padding: 20px 12px 42px; }
  .pagehead { align-items: flex-start; margin-bottom: 18px; }
  .pagehead h1 { font-size: 21px; }
  .pagehead p { font-size: 11px; }
  .pagehead .actions { width: 100%; }
  .pagehead .actions .btn { flex: 1; }
  .panel { padding: 15px; border-radius: 12px; }
  .panel h2 { font-size: 15px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .kpi { min-height: 112px; padding: 13px 11px; border-radius: 11px; }
  .kpi strong { font-size: 22px; }
  .kpi .money-sm { font-size: 15px; }
  .kpi span { font-size: 10px; }
  .kpi small { font-size: 9px; }
  .two-columns, .form-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr 1fr; }
  .service-row label:first-child { grid-column: 1 / -1; }
  .report-total { align-items: flex-start; flex-direction: column; }
  .report-total strong { font-size: 19px; }
  .invoice-brand { align-items: flex-start; }
  .invoice-brand-main { gap: 10px; }
  .invoice-logo { width: 65px; height: 65px; }
  .invoice-brand h2 { font-size: 18px; }
  .invoice-number { padding-right: 9px; font-size: 11px; }
  .login-card { padding: 25px 21px; }
  .login-logo-frame { width: 155px; height: 155px; }
}
@media (max-width: 740px) {
  .new-service { grid-template-columns: 1fr; }
  .manage-item { align-items: stretch; }
  .rename-form { flex-basis: 100%; }
}
@media (max-width: 390px) {
  .today strong { font-size: 8px; }
  .top-name { max-width: 105px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi strong { font-size: 19px; }
  .details { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; }
  .service-row label:first-child { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media print {
  body { background: #fff; }
  .sidebar, .sidebar-backdrop, .topbar, .footer, .pagehead .actions, .no-print, .alert { display: none !important; }
  .layout { display: block; }
  .content { max-width: none; padding: 0; }
  .panel { padding: 0; border: 0; box-shadow: none; }
  .print-area { display: block; }
  .invoice-logo { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Daily schedule + overlap warning */
.overlap-warning { border-color: #E7BDB7; background: #FFF9F7; }
.overlap-warning h2 { color: var(--danger); }
.schedule td.wrap { white-space: normal; min-width: 160px; }
.schedule .row-off td { opacity: .55; }
.schedule .row-overlap td { background: #FFF6E3; }
