:root {
  --ink: #17201b;
  --muted: #6f7872;
  --line: #e5e8e5;
  --panel: #ffffff;
  --canvas: #f4f6f3;
  --lime: #c9f23b;
  --lime-soft: #effacb;
  --forest: #18392a;
  --orange: #ff9d66;
  --orange-soft: #fff0e7;
  --blue: #85a9ff;
  --blue-soft: #ebf0ff;
  --red: #e85d5d;
  --shadow: 0 20px 50px rgba(24, 57, 42, .08);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(133, 169, 255, .48);
  outline-offset: 2px;
}

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 20px 22px;
  color: #fff;
  background: var(--forest);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar::after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  left: -105px;
  bottom: -125px;
  background: var(--lime);
  opacity: .09;
}
.brand { display: flex; align-items: center; gap: 11px; margin: 2px 8px 38px; }
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--lime);
  color: var(--forest);
  font-weight: 900;
  letter-spacing: -.05em;
  transform: rotate(-3deg);
}
.brand-name { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.17rem; letter-spacing: -.035em; }
.brand-name small { display: block; margin-top: 1px; color: rgba(255,255,255,.48); font-size: .7rem; letter-spacing: .15em; font-weight: 700; }

.nav-label { margin: 0 12px 10px; color: rgba(255,255,255,.38); font-size: .72rem; letter-spacing: .13em; font-weight: 700; }
.nav-list { display: grid; gap: 6px; }
.nav-item {
  position: relative;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 12px 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.68);
  background: transparent;
  text-align: left;
  font-weight: 600;
  transition: .18s ease;
}
.nav-item svg { width: 20px; height: 20px; flex: 0 0 20px; stroke-width: 1.8; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { color: #fff; background: rgba(255,255,255,.11); }
.nav-item.active::before {
  content: "";
  position: absolute;
  left: -20px;
  width: 4px;
  height: 25px;
  background: var(--lime);
  border-radius: 0 8px 8px 0;
}
.sync-card {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
}
.sync-line { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .86rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(201,242,59,.1); }
.sync-card p { margin: 9px 0 14px; color: rgba(255,255,255,.48); font-size: .76rem; line-height: 1.45; }
.sync-btn { border: 0; color: var(--forest); background: var(--lime); padding: 9px 12px; border-radius: 10px; font-size: .78rem; font-weight: 800; }

.main { min-width: 0; padding: 25px 30px 44px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 25px; }
.eyebrow { margin: 0 0 4px; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.page-title { margin: 0; font-family: "Manrope", sans-serif; font-size: clamp(1.55rem, 2.3vw, 2.18rem); letter-spacing: -.045em; line-height: 1.1; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn, .avatar { width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.icon-btn svg { width: 19px; }
.avatar { border: 0; color: var(--forest); background: var(--lime); font-weight: 900; }
.primary-btn, .secondary-btn {
  min-height: 44px;
  border-radius: 13px;
  padding: 0 17px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 800;
  transition: transform .15s ease, box-shadow .15s ease;
}
.primary-btn { color: #fff; background: var(--forest); box-shadow: 0 10px 22px rgba(24,57,42,.17); }
.primary-btn:hover { transform: translateY(-1px); box-shadow: 0 13px 25px rgba(24,57,42,.22); }
.secondary-btn { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.primary-btn svg, .secondary-btn svg { width: 18px; height: 18px; }

.view { display: none; animation: fade .25s ease; }
.view.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.panel { background: var(--panel); border: 1px solid rgba(25,44,33,.06); border-radius: var(--radius); box-shadow: 0 8px 26px rgba(24,57,42,.04); }

.panel-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.panel-head h3 { margin: 0; font-family: "Manrope", sans-serif; font-size: 1rem; letter-spacing: -.02em; }
.panel-head p { margin: 5px 0 0; color: var(--muted); font-size: .78rem; }
.telegram-badge { width: 37px; height: 37px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: #2aabee; }
.telegram-badge svg { width: 19px; }
.message-bubble { margin: 22px 0 12px auto; max-width: 88%; padding: 12px 14px; border-radius: 15px 15px 4px 15px; background: var(--lime-soft); font-size: .83rem; line-height: 1.48; }
.bot-reply { display: flex; gap: 9px; align-items: flex-start; margin-bottom: auto; color: var(--muted); font-size: .79rem; }
.mini-bot { width: 25px; height: 25px; border-radius: 8px; display: grid; place-items: center; color: #fff; background: var(--forest); font-size: .68rem; font-weight: 900; }
.text-link { border: 0; padding: 8px 0 0; color: var(--forest); background: none; font-weight: 800; font-size: .83rem; text-align: left; }

.stats-grid { margin: 18px 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.stat-card { padding: 18px; }
.stat-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.stat-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; }
.stat-icon svg { width: 19px; height: 19px; }
.stat-icon.lime { background: var(--lime-soft); }
.stat-icon.orange { background: var(--orange-soft); }
.stat-icon.blue { background: var(--blue-soft); }
.stat-icon.dark { color: #fff; background: var(--forest); }
.trend { padding: 5px 8px; border-radius: 999px; color: #307c50; background: #eaf7ee; font-size: .7rem; font-weight: 800; }
.trend.warn { color: #ad5e2f; background: var(--orange-soft); }
.stat-value { margin: 16px 0 4px; font-family: "Manrope", sans-serif; font-size: 1.65rem; line-height: 1; letter-spacing: -.04em; }
.stat-label { margin: 0; color: var(--muted); font-size: .8rem; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .8fr); gap: 18px; }
.occupancy-panel, .schedule-panel, .room-board, .finance-card, .guest-card { padding: 22px; }
.date-tabs { display: flex; gap: 6px; }
.date-tab { border: 0; border-radius: 9px; padding: 7px 9px; color: var(--muted); background: #f2f4f1; font-size: .73rem; font-weight: 800; }
.date-tab.active { color: var(--forest); background: var(--lime); }
.chart-wrap { height: 178px; margin-top: 18px; display: flex; align-items: end; gap: 12px; border-bottom: 1px solid var(--line); }
.bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: end; align-items: center; gap: 7px; }
.bar { width: min(34px, 72%); border-radius: 9px 9px 3px 3px; background: var(--forest); transition: height .35s ease; }
.bar.highlight { background: var(--lime); box-shadow: 0 8px 18px rgba(201,242,59,.35); }
.bar-value { font-size: .67rem; font-weight: 800; }
.bar-day { padding-bottom: 8px; color: var(--muted); font-size: .68rem; }
.legend { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .74rem; }
.legend strong { color: var(--ink); }

.schedule-list { margin-top: 14px; display: grid; gap: 5px; }
.schedule-item { display: grid; grid-template-columns: 45px 38px 1fr auto; gap: 10px; align-items: center; padding: 10px 3px; border-bottom: 1px solid #eff1ef; }
.schedule-item:last-child { border-bottom: 0; }
.time { color: var(--muted); font-size: .72rem; font-weight: 700; }
.dog-avatar { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-size: 1.05rem; background: #f1eadc; }
.dog-avatar.alt { background: var(--blue-soft); }
.dog-avatar.orange { background: var(--orange-soft); }
.dog-name { font-weight: 800; font-size: .82rem; }
.dog-meta { margin-top: 2px; color: var(--muted); font-size: .68rem; }
.room-pill { padding: 6px 8px; border-radius: 8px; color: var(--forest); background: var(--lime-soft); font-size: .66rem; font-weight: 800; white-space: nowrap; }

.section-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 18px; }
.section-toolbar h2 { margin: 0 0 5px; font-family: "Manrope", sans-serif; letter-spacing: -.035em; font-size: 1.35rem; }
.section-toolbar p { margin: 0; color: var(--muted); font-size: .84rem; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-chip { padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #fff; font-size: .76rem; font-weight: 800; }
.filter-chip.active { color: #fff; border-color: var(--forest); background: var(--forest); }
.room-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; color: var(--muted); font-size: .74rem; }
.room-legend span { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; }
.legend-dot.occupied { background: var(--forest); }
.legend-dot.available { background: #dfe6de; }
.legend-dot.cleaning { background: var(--orange); }
.legend-dot.tentative { background: var(--blue); }
.room-grid { display: grid; grid-template-columns: repeat(7, minmax(100px, 1fr)); gap: 10px; }
.room {
  min-height: 112px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fafbfa;
  display: flex;
  flex-direction: column;
  transition: .18s ease;
}
.room:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.room.occupied { color: #fff; background: var(--forest); border-color: var(--forest); }
.room.cleaning { background: var(--orange-soft); border-color: #ffd6bf; }
.room.tentative { background: var(--blue-soft); border-color: #d4dfff; }
.room-num { display: flex; justify-content: space-between; font-size: .72rem; font-weight: 800; }
.room-status { width: 8px; height: 8px; border-radius: 50%; background: #c9d0c8; }
.occupied .room-status { background: var(--lime); }
.cleaning .room-status { background: var(--orange); }
.tentative .room-status { background: var(--blue); }
.room-dog { margin-top: auto; font-size: .92rem; font-weight: 900; }
.room-type { margin-top: 3px; opacity: .62; font-size: .68rem; }

.guest-card { overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th { padding: 13px 12px; color: var(--muted); background: #f5f7f4; text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
td { padding: 14px 12px; border-bottom: 1px solid var(--line); font-size: .82rem; }
tr:last-child td { border-bottom: 0; }
.guest-cell { display: flex; align-items: center; gap: 10px; }
.status-badge { display: inline-flex; padding: 6px 9px; border-radius: 999px; font-size: .68rem; font-weight: 800; }
.status-badge.in { color: #24653f; background: #e8f8ed; }
.status-badge.soon { color: #9c572e; background: var(--orange-soft); }
.status-badge.done { color: #50627e; background: var(--blue-soft); }

.finance-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .75fr); gap: 18px; }
.finance-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.finance-total { margin: 12px 0 2px; font-family: "Manrope", sans-serif; font-size: 2.25rem; letter-spacing: -.055em; }
.finance-up { color: #2f8954; font-weight: 800; font-size: .77rem; }
.month-select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--ink); font-weight: 700; }
.profit-bars { height: 210px; margin: 23px 0 6px; display: flex; align-items: end; gap: 17px; border-bottom: 1px solid var(--line); }
.profit-month { flex: 1; display: flex; height: 100%; flex-direction: column; justify-content: end; align-items: center; gap: 8px; }
.profit-stack { width: min(58px, 78%); display: flex; flex-direction: column; justify-content: end; }
.profit-income { border-radius: 9px 9px 0 0; background: var(--lime); }
.profit-cost { border-radius: 0 0 3px 3px; background: var(--forest); opacity: .22; }
.profit-month span { padding-bottom: 8px; color: var(--muted); font-size: .69rem; }
.pl-list { margin-top: 16px; display: grid; }
.pl-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .82rem; }
.pl-row span { color: var(--muted); }
.pl-row.total { margin-top: 3px; border-bottom: 0; font-size: .94rem; font-weight: 900; }
.pl-row.total span { color: var(--ink); }
.lost-card { padding: 22px; color: #fff; background: var(--forest); }
.lost-card .eyebrow { color: rgba(255,255,255,.45); }
.lost-card h3 { margin: 9px 0 7px; font-family: "Manrope", sans-serif; font-size: 1.9rem; letter-spacing: -.045em; }
.lost-card p { margin: 0 0 18px; color: rgba(255,255,255,.6); font-size: .81rem; line-height: 1.5; }
.capacity-meter { height: 10px; background: rgba(255,255,255,.12); border-radius: 99px; overflow: hidden; }
.capacity-meter div { width: 78%; height: 100%; background: var(--lime); border-radius: inherit; }
.capacity-meta { margin-top: 8px; display: flex; justify-content: space-between; color: rgba(255,255,255,.5); font-size: .68rem; }
.finance-mini { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-stat { padding: 14px; border-radius: 15px; background: rgba(255,255,255,.07); }
.mini-stat strong { display: block; color: var(--lime); font-size: 1.1rem; }
.mini-stat span { color: rgba(255,255,255,.45); font-size: .68rem; }

.chat-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .52fr); gap: 18px; }
.phone-wrap { padding: 22px; }
.phone {
  max-width: 640px;
  min-height: 550px;
  margin: auto;
  border: 9px solid #1f2822;
  border-radius: 34px;
  overflow: hidden;
  background: #eef4ec;
  box-shadow: 0 24px 70px rgba(24,57,42,.16);
}
.phone-head { padding: 13px 16px; color: #fff; background: #2aabee; display: flex; align-items: center; gap: 11px; }
.phone-head .mini-bot { background: #fff; color: #2aabee; }
.phone-title { font-size: .84rem; font-weight: 800; }
.phone-sub { font-size: .66rem; opacity: .7; }
.chat-log { min-height: 430px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.chat-message { max-width: 80%; padding: 11px 13px; border-radius: 14px; font-size: .79rem; line-height: 1.5; box-shadow: 0 2px 7px rgba(0,0,0,.05); }
.chat-message.bot { align-self: flex-start; background: #fff; border-radius: 4px 14px 14px 14px; }
.chat-message.user { align-self: flex-end; background: #dff7cd; border-radius: 14px 4px 14px 14px; }
.confirm-card { width: 88%; align-self: flex-start; padding: 14px; border-radius: 5px 16px 16px 16px; background: #fff; box-shadow: 0 5px 18px rgba(24,57,42,.09); }
.confirm-card h4 { margin: 0 0 10px; font-size: .86rem; }
.confirm-row { display: flex; justify-content: space-between; gap: 10px; margin: 6px 0; color: var(--muted); font-size: .72rem; }
.confirm-row strong { color: var(--ink); text-align: right; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 12px; }
.confirm-actions button { border: 0; border-radius: 9px; padding: 9px; font-size: .72rem; font-weight: 900; }
.confirm-yes { color: #fff; background: var(--forest); }
.confirm-edit { color: var(--forest); background: var(--lime-soft); }
.chat-input { padding: 10px; display: grid; grid-template-columns: 1fr 42px; gap: 8px; background: #fff; }
.chat-input input { min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; font-size: .78rem; }
.send-btn { border: 0; border-radius: 50%; color: #fff; background: #2aabee; display: grid; place-items: center; }
.send-btn svg { width: 18px; }
.chat-guide { padding: 22px; align-self: start; }
.chat-guide h3 { margin: 0 0 7px; font-family: "Manrope", sans-serif; }
.chat-guide > p { margin: 0 0 18px; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.sample-message { width: 100%; margin-top: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; font-size: .76rem; line-height: 1.45; transition: .15s ease; }
.sample-message:hover { border-color: #b6c68c; background: #f9fcec; }
.safety-note { margin-top: 18px; padding: 14px; border-radius: 14px; background: var(--orange-soft); color: #865335; font-size: .75rem; line-height: 1.45; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; padding: 18px; background: rgba(10,23,16,.58); backdrop-filter: blur(5px); }
.modal-backdrop.open { display: grid; }
.modal { width: min(580px, 100%); max-height: 90vh; overflow: auto; padding: 24px; background: #fff; border-radius: 24px; box-shadow: 0 30px 90px rgba(0,0,0,.25); }
.modal-head { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; margin-bottom: 20px; }
.modal-head h3 { margin: 0; font-family: "Manrope", sans-serif; font-size: 1.25rem; }
.modal-head p { margin: 5px 0 0; color: var(--muted); font-size: .78rem; }
.close-btn { width: 36px; height: 36px; border: 0; border-radius: 10px; background: #f0f2ef; font-size: 1.15rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field.full, .form-grid > .full { grid-column: 1 / -1; }
.form-grid > .notice { margin: 0; }
.field label { font-size: .73rem; font-weight: 800; }
.field input, .field select { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; color: var(--ink); background: #fff; font-size: .82rem; }
.modal-actions { margin-top: 20px; display: flex; justify-content: flex-end; gap: 9px; }
.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: 360px; padding: 14px 17px; border-radius: 14px; color: #fff; background: var(--forest); box-shadow: 0 18px 45px rgba(24,57,42,.28); font-size: .81rem; font-weight: 700; transform: translateY(25px); opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { transform: translateY(0); opacity: 1; }

.mobile-nav { display: none; }

@media (max-width: 1080px) {
  .app-shell { grid-template-columns: 88px minmax(0, 1fr); }
  .sidebar { padding-inline: 14px; }
  .brand { justify-content: center; margin-inline: 0; }
  .brand-name, .nav-label, .nav-item span, .sync-card { display: none; }
  .nav-item { justify-content: center; padding: 13px; }
  .nav-item.active::before { left: -14px; }
  .content-grid, .finance-layout { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .room-grid { grid-template-columns: repeat(5, minmax(90px, 1fr)); }
}

@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .main { padding: 18px 15px 92px; }
  .topbar { align-items: flex-start; }
  .top-actions .icon-btn, .top-actions .avatar { display: none; }
  .primary-btn { min-height: 41px; padding: 0 12px; font-size: .78rem; }
  .content-grid, .finance-layout, .chat-page { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 15px; }
  .stat-value { font-size: 1.38rem; }
  .section-toolbar { align-items: flex-start; flex-direction: column; }
  .room-grid { grid-template-columns: repeat(3, minmax(88px, 1fr)); }
  .room { min-height: 105px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full, .form-grid > .full { grid-column: auto; }
  .mobile-nav {
    position: fixed;
    z-index: 40;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 8px 5px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 18px;
    background: rgba(24,57,42,.96);
    box-shadow: 0 16px 40px rgba(24,57,42,.25);
    backdrop-filter: blur(12px);
  }
  .mobile-item { border: 0; padding: 7px 2px; color: rgba(255,255,255,.52); background: none; display: grid; place-items: center; gap: 3px; font-size: .58rem; font-weight: 800; }
  .mobile-item svg { width: 19px; height: 19px; }
  .mobile-item.active { color: var(--lime); }
  .toast { left: 15px; right: 15px; bottom: 88px; }
}

@media (max-width: 430px) {
  .stats-grid { grid-template-columns: 1fr; }
  .room-grid { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .chat-preview { min-height: 230px; }
  .chart-wrap { gap: 6px; }
  .bar-value { font-size: .59rem; }
}

/* Barkhaus Back Office v2 */
.backoffice-sidebar { overflow-y: auto; scrollbar-width: none; }
.backoffice-sidebar::-webkit-scrollbar { display: none; }
.backoffice-sidebar .nav-list { margin-bottom: 24px; }
.compact-sync { flex: 0 0 auto; margin-top: 12px; }
.compact-sync p { margin-bottom: 0; }
.backoffice-main { max-width: 1680px; width: 100%; margin: 0 auto; }
.backoffice-topbar { position: sticky; top: 0; z-index: 20; padding: 7px 0 17px; background: rgba(244,246,243,.92); backdrop-filter: blur(13px); }
.admin-controls { align-items: end; }
.top-select-wrap { display: grid; gap: 4px; }
.top-select-wrap > span { color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.top-select-wrap select { min-width: 165px; height: 42px; padding: 0 34px 0 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: #fff; font-size: .8rem; font-weight: 700; }
.role-preview select { min-width: 175px; background: var(--lime-soft); border-color: #dceba8; }
.nav-item.locked { opacity: .34; cursor: not-allowed; }
.lock-dot { margin-left: auto; color: var(--orange); font-size: 1.25rem; line-height: 0; }

.command-bar { min-height: 112px; padding: 21px 23px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border-left: 5px solid var(--lime); }
.command-bar h2 { margin: 2px 0 5px; font-family: "Manrope",sans-serif; font-size: 1.35rem; letter-spacing: -.04em; }
.command-bar p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: .82rem; }
.command-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.ops-stats { margin: 16px 0; }
.ops-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(290px,.72fr); gap: 16px; }
.arrivals-panel { padding: 21px; }
.branch-snapshot { padding: 21px; }
.arrival-list { margin-top: 12px; display: grid; }
.arrival-row { display: grid; grid-template-columns: 48px minmax(135px,1fr) minmax(180px,1.1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.arrival-row:last-child { border-bottom: 0; }
.arrival-row > div:not(.date-box) { display: grid; gap: 3px; }
.arrival-row strong { font-size: .8rem; }
.arrival-row span:not(.status-badge) { color: var(--muted); font-size: .7rem; }
.date-box { width: 42px; height: 47px; display: grid; place-items: center; align-content: center; border-radius: 11px; background: var(--lime-soft); }
.date-box strong { color: var(--forest); font-size: 1.08rem; line-height: 1; }
.date-box span { color: var(--forest) !important; font-size: .58rem !important; font-weight: 900; }
.branch-mini-list { display: grid; margin-top: 14px; }
.branch-mini { width: 100%; padding: 14px 2px; border: 0; border-bottom: 1px solid var(--line); background: transparent; display: grid; grid-template-columns: 42px 1fr 72px 35px; gap: 10px; align-items: center; text-align: left; }
.branch-mini:last-child { border: 0; }
.branch-mini > span:nth-child(2) { display: grid; gap: 3px; }
.branch-mini strong { font-size: .78rem; }
.branch-mini small { color: var(--muted); font-size: .65rem; }
.branch-mini > i { height: 6px; border-radius: 99px; background: #e9ece8; overflow: hidden; }
.branch-mini > i b { display: block; height: 100%; border-radius: inherit; background: var(--lime); }
.branch-mini em { color: var(--muted); font-style: normal; font-size: .7rem; font-weight: 800; }
.branch-monogram { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; color: var(--forest); background: var(--lime); font-size: .68rem; font-weight: 900; }
.database-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.search-field { min-height: 43px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.search-field.large { width: min(520px,100%); }
.search-field svg { width: 18px; flex: 0 0 18px; color: var(--muted); }
.search-field input { min-width: 0; width: 100%; padding: 10px 0; border: 0; outline: 0; background: transparent; font-size: .82rem; }
.data-count { color: var(--muted); font-size: .75rem; font-weight: 700; white-space: nowrap; }
td small, .guest-cell small { display: block; margin-top: 4px; color: var(--muted); font-size: .68rem; }
.kennel-chip { display: inline-flex; margin: 2px; padding: 5px 7px; border-radius: 7px; color: var(--forest); background: var(--lime-soft); font-size: .64rem; font-weight: 900; }
.owner-grid { display: grid; grid-template-columns: repeat(3,minmax(230px,1fr)); gap: 12px; }
.owner-card { min-width: 0; min-height: 162px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; background: #fcfdfc; }
.owner-top { display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; }
.owner-top > div { min-width: 0; display: grid; gap: 3px; }
.owner-top strong { font-size: .84rem; }
.owner-top small { color: var(--muted); font-size: .68rem; }
.owner-avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; color: var(--forest); background: var(--lime-soft); font-size: .72rem; font-weight: 900; }
.mini-action { padding: 7px 9px; border: 0; border-radius: 9px; color: var(--forest); background: var(--lime); font-size: .67rem; font-weight: 900; white-space: nowrap; }
.dog-tags { margin: 14px 0; display: flex; gap: 6px; flex-wrap: wrap; }
.dog-tags span { padding: 6px 8px; border-radius: 8px; background: #f0f3ef; font-size: .68rem; }
.owner-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: .65rem; }

.care-summary { display: flex; align-items: center; gap: 9px; }
.care-summary strong { min-width: 58px; height: 47px; display: grid; place-items: center; border-radius: 13px; color: var(--forest); background: var(--lime); font-size: 1.05rem; }
.care-summary span { max-width: 100px; color: var(--muted); font-size: .68rem; line-height: 1.35; }
.care-progress { height: 9px; margin: -2px 0 17px; border-radius: 99px; background: #e5e9e4; overflow: hidden; }
.care-progress i { display: block; height: 100%; border-radius: inherit; background: var(--lime); transition: width .25s ease; }
.care-board { display: grid; grid-template-columns: repeat(3,minmax(250px,1fr)); gap: 14px; }
.care-card { padding: 18px; align-self: start; }
.care-card-head { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; }
.kennel-large { color: var(--muted); font-size: .67rem; font-weight: 900; letter-spacing: .08em; }
.care-card h3 { margin: 5px 0 3px; font-family: "Manrope",sans-serif; font-size: 1rem; }
.care-card-head p { margin: 0; color: var(--muted); font-size: .65rem; }
.care-count { min-width: 38px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: #91502b; background: var(--orange-soft); font-size: .7rem; font-weight: 900; }
.care-count.complete { color: #287448; background: #e7f7ec; }
.care-note { margin: 13px 0 4px; padding: 10px; border-radius: 10px; color: #895130; background: var(--orange-soft); font-size: .7rem; line-height: 1.4; }
.task-list { margin-top: 10px; display: grid; }
.task-item { padding: 10px 2px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 22px 1fr; gap: 9px; align-items: center; cursor: pointer; }
.task-item input { position: absolute; opacity: 0; }
.task-item > i { width: 19px; height: 19px; border: 1.5px solid #c4cbc4; border-radius: 6px; position: relative; }
.task-item input:checked + i { border-color: var(--forest); background: var(--forest); }
.task-item input:checked + i::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: .68rem; font-style: normal; }
.task-item > span { display: grid; gap: 3px; }
.task-item strong { font-size: .73rem; }
.task-item small { color: var(--muted); font-size: .63rem; }
.task-item.done strong { color: var(--muted); text-decoration: line-through; }
.add-task-link { margin-top: 10px; border: 0; padding: 6px 0; color: var(--forest); background: transparent; font-size: .7rem; font-weight: 900; }
.empty-state { padding: 30px; color: var(--muted); }

.team-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }
.payroll-total { color: var(--forest); font-size: .78rem; }
.staff-list { margin-top: 14px; display: grid; }
.staff-row { display: grid; grid-template-columns: 42px minmax(120px,1fr) auto auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.staff-row:last-child { border: 0; }
.staff-row > div { display: grid; gap: 3px; }
.staff-row strong { font-size: .76rem; }
.staff-row small { color: var(--muted); font-size: .64rem; }
.staff-money { text-align: right; }
.admin-avatar { color: #49638e; background: var(--blue-soft); }
.role-badge { display: inline-flex; justify-content: center; padding: 6px 8px; border-radius: 999px; font-size: .63rem; font-weight: 900; white-space: nowrap; }
.role-badge.main { color: #fff; background: var(--forest); }
.role-badge.ops { color: #486392; background: var(--blue-soft); }
.role-badge.kennel { color: #7c522e; background: var(--orange-soft); }
.access-panel { margin-top: 16px; padding: 21px; }
.permission-scroll { margin-top: 15px; overflow-x: auto; }
.permission-table { min-width: 650px; }
.permission-table td:not(:first-child), .permission-table th:not(:first-child) { text-align: center; }
.permission-check { display: inline-grid; place-items: center; cursor: pointer; }
.permission-check input { position: absolute; opacity: 0; }
.permission-check span { width: 21px; height: 21px; border: 1.5px solid #cbd1cb; border-radius: 6px; }
.permission-check input:checked + span { border-color: var(--forest); background: var(--forest); box-shadow: inset 0 0 0 4px #fff; }
.permission-check input:disabled + span { opacity: .42; }

.branch-card-grid { display: grid; grid-template-columns: repeat(2,minmax(280px,1fr)); gap: 16px; }
.branch-card { padding: 22px; }
.branch-card-head { display: flex; justify-content: space-between; align-items: flex-start; }
.branch-monogram.big { width: 52px; height: 52px; font-size: .8rem; }
.branch-card h3 { margin: 18px 0 5px; font-family: "Manrope",sans-serif; font-size: 1.14rem; }
.branch-card > p { margin: 0; color: var(--muted); font-size: .76rem; }
.branch-metrics { margin: 20px 0; padding: 15px 0; border-block: 1px solid var(--line); display: grid; grid-template-columns: repeat(3,1fr); }
.branch-metrics > div { display: grid; gap: 3px; text-align: center; }
.branch-metrics > div + div { border-left: 1px solid var(--line); }
.branch-metrics strong { font-size: 1.12rem; }
.branch-metrics span { color: var(--muted); font-size: .66rem; }
.full-btn { width: 100%; }
.full-btn svg { width: 16px; }

.service-toggle { min-width: 235px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; }
.service-toggle > span { display: grid; gap: 2px; }
.service-toggle b { font-size: .75rem; }
.service-toggle small { color: var(--muted); font-size: .62rem; }
.service-toggle input { position: absolute; opacity: 0; }
.service-toggle i { width: 38px; height: 22px; border-radius: 99px; background: #d7dcd7; position: relative; transition: .2s ease; }
.service-toggle i::after { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s ease; }
.service-toggle input:checked + i { background: var(--forest); }
.service-toggle input:checked + i::after { transform: translateX(16px); background: var(--lime); }
.finance-v2-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(340px,.85fr); gap: 16px; }
.profit-hero { min-height: 400px; padding: 28px; color: #fff; background: var(--forest); }
.profit-hero .eyebrow { color: rgba(255,255,255,.46); }
.profit-hero > h2 { margin: 13px 0 5px; font-family: "Manrope",sans-serif; font-size: clamp(2.2rem,4vw,3.5rem); letter-spacing: -.06em; }
.revenue-split { margin-top: 55px; display: grid; gap: 14px; }
.revenue-split span { display: grid; grid-template-columns: 90px 1fr; gap: 8px; align-items: center; position: relative; }
.revenue-split span::after { content: ""; grid-column: 1 / -1; width: var(--w); height: 8px; border-radius: 99px; background: var(--lime); }
.revenue-split b { font-size: .73rem; }
.revenue-split em { justify-self: end; color: rgba(255,255,255,.58); font-size: .7rem; font-style: normal; }
.pnl-card { padding: 24px; }
.pl-row.subtotal { margin-top: 4px; padding-block: 15px; font-weight: 900; }
.decision-note { margin-top: 15px; padding: 15px 17px; border: 1px solid #dce9b0; border-radius: 14px; color: #4d6228; background: var(--lime-soft); font-size: .76rem; line-height: 1.5; }

.modal-wide { width: min(1050px,100%); }
.booking-form-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px; }
.form-section { position: relative; padding: 18px; border: 1px solid var(--line); border-radius: 17px; background: #fafbfa; align-self: start; }
.form-section > div:nth-child(2) { padding-left: 37px; margin-bottom: 16px; }
.form-section h4, .care-template-section h4 { margin: 0; font-size: .9rem; }
.form-section p, .care-template-section p { margin: 3px 0 0; color: var(--muted); font-size: .68rem; }
.step-badge { position: absolute; left: 18px; top: 17px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; color: var(--forest); background: var(--lime); font-size: .7rem; font-weight: 900; }
.new-owner-line { display: flex; gap: 8px; margin: 10px 0 13px; font-size: .73rem; font-weight: 800; }
.hidden { display: none !important; }
.dog-section { max-height: 535px; overflow-y: auto; }
.dog-entry { position: relative; display: grid; grid-template-columns: 29px 1fr auto; gap: 9px; margin-bottom: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.dog-index { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); background: #f0f3ef; font-size: .68rem; font-weight: 900; }
.dog-entry-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.new-dog-fields { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.new-dog-fields input { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 10px; font-size: .76rem; }
.remove-dog { align-self: start; width: 27px; height: 27px; border: 0; border-radius: 8px; color: var(--red); background: #fff0f0; font-weight: 900; }
.add-dog-btn { width: 100%; padding: 10px; border: 1px dashed #bbc7a0; border-radius: 11px; color: var(--forest); background: var(--lime-soft); display: flex; justify-content: center; align-items: center; gap: 8px; font-size: .73rem; font-weight: 900; }
.add-dog-btn svg { width: 16px; }
.add-dog-btn span { margin-left: auto; color: var(--muted); font-size: .63rem; }
.care-template-section { position: relative; margin-top: 15px; padding: 17px 18px 17px 56px; border: 1px solid #d9e8a3; border-radius: 16px; background: var(--lime-soft); display: grid; grid-template-columns: minmax(190px,.7fr) 1.3fr; gap: 15px; align-items: center; }
.care-options { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.care-options label { padding: 8px 10px; border-radius: 9px; background: rgba(255,255,255,.72); font-size: .69rem; font-weight: 800; }
.sticky-actions { position: sticky; bottom: -24px; margin-inline: -24px; padding: 14px 24px 0; background: #fff; }
.modal-actions #availability { margin-right: 0; }
#bookingQuote { color: var(--ink); font-size: .82rem; }
.availability-note { margin-right: auto; color: var(--muted); font-size: .72rem; font-weight: 700; }

@media (max-width: 1180px) {
  .owner-grid, .care-board { grid-template-columns: repeat(2,minmax(240px,1fr)); }
  .ops-grid, .team-layout, .finance-v2-grid { grid-template-columns: 1fr; }
  .role-preview { display: none; }
}

@media (max-width: 760px) {
  .backoffice-topbar { position: static; }
  .admin-controls .top-select-wrap { display: grid; }
  .admin-controls .icon-btn, .admin-controls .avatar { display: none; }
  .top-select-wrap select { min-width: 135px; max-width: 43vw; }
  .role-preview { display: none !important; }
  .command-bar { align-items: flex-start; flex-direction: column; }
  .command-actions { width: 100%; }
  .command-actions .primary-btn, .command-actions .secondary-btn { flex: 1; }
  .arrival-row { grid-template-columns: 44px 1fr auto; }
  .arrival-row > div:nth-child(3) { display: none; }
  .owner-grid, .care-board, .branch-card-grid { grid-template-columns: 1fr; }
  .database-toolbar { align-items: flex-start; flex-direction: column; }
  .booking-form-grid { grid-template-columns: 1fr; }
  .dog-section { max-height: none; }
  .dog-entry-fields { grid-template-columns: 1fr; }
  .new-dog-fields { grid-column: auto; }
  .care-template-section { grid-template-columns: 1fr; }
  .care-options { grid-template-columns: 1fr 1fr; }
  .sticky-actions { flex-wrap: wrap; }
  .availability-note { width: 100%; }
  .staff-row { grid-template-columns: 42px 1fr auto; }
  .staff-money { display: none !important; }
}

@media (max-width: 430px) {
  .topbar { gap: 10px; }
  .top-actions { gap: 5px; }
  .top-select-wrap select { max-width: 47vw; min-width: 128px; }
  .command-actions { display: grid; }
  .arrival-row { grid-template-columns: 42px 1fr; }
  .arrival-row .status-badge { display: none; }
  .care-options { grid-template-columns: 1fr; }
  .dog-entry-fields { min-width: 0; }
  .modal { padding: 18px; }
  .sticky-actions { margin-inline: -18px; bottom: -18px; padding-inline: 18px; }
}
