:root {
  --brand: #04a7f4;
  --brand-dark: #07345f;
  --ink: #18212f;
  --muted: #6d7482;
  --line: #e7e9ee;
  --soft: #f6f7f9;
  --panel: #ffffff;
  --sidebar: #071427;
  --sidebar-soft: #102846;
  --green: #13a673;
  --blue: #04a7f4;
  --amber: #d89212;
  --red: #dd4b39;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--soft);
}

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

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.venue-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  background: var(--sidebar);
  color: #fff;
}

.venue-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  margin-bottom: 30px;
}

.venue-brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-family: "Sora", sans-serif;
  font-weight: 800;
}

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

.venue-brand small {
  color: #aeb7c6;
  font-size: 12px;
}

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

.venue-nav-item {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 13px 14px;
  background: transparent;
  color: #cad2df;
  text-align: left;
  font-weight: 700;
}

.venue-nav-item:hover,
.venue-nav-item.is-active {
  background: var(--sidebar-soft);
  color: #fff;
}

.venue-nav-item.is-active {
  box-shadow: inset 3px 0 0 var(--brand);
}

.venue-main {
  min-width: 0;
  padding: 24px;
}

.venue-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.venue-topbar h1 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 27px;
  letter-spacing: 0;
}

.topbar-actions,
.menu-cluster,
.venue-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-chip,
.ghost-button,
.solid-button {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 800;
}

.menu-chip,
.ghost-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.menu-chip:hover,
.topbar-link.is-active,
.ghost-button:hover {
  border-color: #b9e7ff;
  color: var(--brand-dark);
}

.solid-button {
  border: 0;
  background: linear-gradient(135deg, #04a7f4 0%, #ff2d74 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(4, 167, 244, 0.22);
}

.solid-button:hover {
  background: linear-gradient(135deg, #0088d4 0%, #dc1d63 100%);
}

.venue-profile {
  min-width: 190px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.venue-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ddf6ff;
  color: var(--brand-dark);
  font-weight: 900;
}

.venue-profile strong,
.venue-profile span {
  display: block;
}

.venue-profile span {
  color: var(--muted);
  font-size: 12px;
}

.dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 30;
  display: none;
  min-width: 230px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(18, 26, 39, 0.14);
}

.dropdown.is-open .dropdown-panel {
  display: grid;
  gap: 4px;
}

.manager-menu-item {
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 700;
}

.manager-menu-item:hover {
  background: #eef8ff;
  color: var(--brand-dark);
}

.dropdown-item {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 800;
}

.dropdown-item:hover {
  background: #eef8ff;
  color: var(--brand-dark);
}

.dropdown-item-danger {
  color: var(--red);
}

.view-section {
  display: grid;
  gap: 18px;
}

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

.stat-card,
.report-summary-card,
.panel,
.section-card,
.filters-card,
.venue-auth-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(21, 30, 45, 0.05);
}

.stat-card {
  padding: 18px;
}

.stat-card small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.stat-card strong {
  display: block;
  margin: 8px 0 4px;
  font-family: "Sora", sans-serif;
  font-size: 28px;
}

.stat-card span {
  color: var(--green);
  font-weight: 800;
}

.report-summary-card {
  padding: 16px;
}

.report-summary-card small {
  display: block;
  color: var(--muted);
  font-weight: 900;
}

.report-summary-card strong {
  display: block;
  margin: 7px 0;
  font-family: "Sora", sans-serif;
  font-size: 22px;
}

.report-summary-card span {
  color: var(--muted);
  font-size: 13px;
}

.panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 16px;
}

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

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

.panel-head h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: 20px;
  letter-spacing: 0;
}

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

.overview-list,
.quick-actions {
  display: grid;
  gap: 10px;
}

.overview-item,
.quick-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.overview-item strong,
.quick-action strong {
  display: block;
}

.overview-item span,
.quick-action span {
  color: var(--muted);
  font-size: 13px;
}

.calendar-toolbar,
.filters-card,
.report-filter-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.calendar-field-pills,
.calendar-controls,
.calendar-icon-set {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.calendar-field-pill,
.calendar-icon-button,
.radio-chip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.calendar-field-pill {
  min-height: 38px;
  padding: 0 13px;
}

.calendar-field-pill.is-active,
.radio-chip.is-active {
  border-color: #b9e7ff;
  background: #eef8ff;
  color: var(--brand-dark);
}

.calendar-icon-button {
  width: 38px;
  height: 38px;
}

.week-range-pill {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  font-weight: 800;
}

.schedule-shell {
  overflow-x: auto;
  padding-bottom: 4px;
}

.schedule-grid {
  min-width: 1180px;
}

.schedule-grid:not(:has(.schedule-table)) {
  display: grid;
  grid-template-columns: repeat(7, minmax(210px, 1fr));
  gap: 10px;
}

.schedule-table {
  width: 100%;
  border-spacing: 0;
  table-layout: fixed;
}

.schedule-table th,
.schedule-table td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.schedule-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 12px 10px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: left;
}

.schedule-table th:first-child,
.time-cell {
  width: 78px;
}

.time-cell {
  padding: 12px 10px;
  background: #fbfcfd;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.day-column {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  overflow: hidden;
}

.day-head {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.day-slots,
.schedule-day-slots {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.slot-card,
.schedule-slot-cell {
  border: 1px solid var(--line);
  border-left: 4px solid var(--muted);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.slot-card small,
.schedule-slot-cell small {
  color: var(--muted);
  font-weight: 800;
}

.slot-card strong,
.schedule-slot-cell strong {
  display: block;
  margin: 3px 0;
  font-size: 14px;
}

.slot-card span,
.schedule-slot-cell span {
  color: var(--muted);
  font-size: 12px;
}

.status-booked,
.status-reserved {
  border-left-color: var(--blue);
}

.status-marketplace,
.status-rezerv {
  border-left-color: var(--brand);
}

.status-subscription {
  border-left-color: var(--green);
}

.status-maintenance,
.status-closed {
  border-left-color: var(--red);
}

.schedule-slot-cell.is-selected {
  border-color: #b9e7ff;
  box-shadow: 0 0 0 3px #e8f7ff;
}

.schedule-table .schedule-slot-cell {
  border-width: 0 0 0 4px;
  border-radius: 0;
  min-height: 68px;
}

.schedule-slot-cell.is-today,
.schedule-table th.is-today {
  background: #fff9f6;
}

.schedule-choice {
  display: grid;
  gap: 4px;
}

.schedule-choice.is-zuvu,
.schedule-choice.is-rezerv {
  color: var(--brand-dark);
}

.schedule-choice.is-reserved {
  color: var(--blue);
}

.schedule-choice.is-manual {
  color: var(--green);
}

.schedule-choice.is-closed {
  color: var(--red);
}

.slot-card-header,
.slot-card-body,
.slot-card-footer,
.slot-options,
.slot-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.slot-card-header,
.slot-card-footer {
  justify-content: space-between;
}

.slot-options {
  margin-top: 8px;
}

.slot-option {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.slot-option.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.slot-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 8px;
  background: #eef1f6;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.slot-badge.is-zuvu,
.slot-badge.is-rezerv {
  background: #e8f7ff;
  color: var(--brand-dark);
}

.slot-badge.is-online {
  background: #eaf1ff;
  color: var(--blue);
}

.slot-badge.is-eft {
  background: #fff6df;
  color: var(--amber);
}

.slot-badge.is-manual-reserved,
.slot-badge.is-cash {
  background: #eafaf4;
  color: var(--green);
}

.slot-badge.is-closed {
  background: #ffecea;
  color: var(--red);
}

.slot-channel-badge {
  display: inline-flex;
  width: max-content;
  min-height: 20px;
  border-radius: 999px;
  padding: 0 7px;
  background: #eef1f6;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.slot-channel-badge.is-zuvu,
.slot-channel-badge.is-rezerv {
  background: #e8f7ff;
  color: var(--brand-dark);
}

.slot-popover {
  margin-top: 8px;
}

.slot-popover-bubble {
  display: grid;
  gap: 6px;
  border: 1px solid #b9e7ff;
  border-radius: 8px;
  padding: 10px;
  background: #f4fbff;
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(4, 167, 244, 0.14);
}

.manual-edit-button {
  border: 0;
  border-radius: 8px;
  padding: 6px 8px;
  background: #eef8ff;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}

.table-shell {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.data-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #fff;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
  font-size: 13px;
}

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

.status-pill,
.transaction-status,
.subscription-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  background: #eef1f6;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.status-pill.is-active,
.subscription-status.is-active,
.transaction-status.is-success {
  background: #eafaf4;
  color: var(--green);
}

.transaction-status.is-warning {
  background: #fff6df;
  color: var(--amber);
}

.transaction-status.is-danger {
  background: #ffecea;
  color: var(--red);
}

.filters-card {
  align-items: end;
  padding: 14px;
}

.filters-card label,
.sales-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.filters-card input,
.filters-card select,
.sales-field input,
.sales-field textarea {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
  color: var(--ink);
}

.settings-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.settings-tab {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  font-weight: 800;
}

.settings-tab.is-active {
  border-color: #b9e7ff;
  background: #eef8ff;
  color: var(--brand-dark);
}

.settings-onboarding-form,
.profile-layout,
.profile-form-grid,
.billing-shell,
.reviews-shell {
  display: grid;
  gap: 14px;
}

.settings-input-field,
.settings-select-field,
.settings-question {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfd;
}

.settings-input-field span,
.settings-select-field span,
.settings-question strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.settings-input-field input,
.settings-select-field input,
.settings-select-field select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
}

.settings-radio-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-radio {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  font-weight: 800;
}

.settings-info {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eef1f6;
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
}

.settings-location-block {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.settings-location-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.settings-map-placeholder {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed #c8ced8;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  text-align: center;
}

.settings-form-grid,
.profile-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-save-row,
.profile-save-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.venue-save-status {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.venue-save-status.is-error {
  color: #d92d20;
}

.settings-field,
.profile-field {
  display: grid;
  gap: 6px;
}

.settings-field span,
.profile-field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.settings-field input,
.settings-field select,
.settings-field textarea,
.profile-field input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.profile-layout {
  grid-template-columns: 280px minmax(0, 1fr);
}

.profile-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #fbfcfd;
}

.profile-avatar-shell {
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.profile-avatar-icon {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #e8f7ff;
}

.profile-avatar-head {
  position: absolute;
  top: 20px;
  left: 31px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
}

.profile-avatar-body {
  position: absolute;
  left: 20px;
  bottom: 18px;
  width: 52px;
  height: 28px;
  border-radius: 999px 999px 18px 18px;
  background: var(--brand-dark);
}

.profile-action,
.profile-danger-button {
  width: 100%;
  margin-top: 8px;
}

.profile-danger-button,
.billing-edit-button {
  min-height: 38px;
  border: 1px solid #ffd0ca;
  border-radius: 8px;
  background: #fff4f2;
  color: var(--red);
  font-weight: 900;
}

.profile-field-wide {
  grid-column: 1 / -1;
}

.review-card,
.billing-actions {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reviews-empty-state,
.billing-empty-cell {
  color: var(--muted);
  text-align: center;
}

.sales-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.sales-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
}

.sales-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28);
}

.sales-modal-header,
.sales-modal-footer {
  padding: 18px;
}

.sales-modal-header {
  border-bottom: 1px solid var(--line);
}

.sales-modal-header h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
}

.sales-modal-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
}

.sales-modal-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.sales-field-wide {
  grid-column: 1 / -1;
}

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

.sales-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.sales-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.venue-auth-wall {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(246, 247, 249, 0.94);
}

.venue-auth-card {
  width: min(520px, 100%);
  padding: 28px;
  text-align: center;
}

.venue-auth-card h1 {
  margin: 0 0 10px;
  font-family: "Sora", sans-serif;
  font-size: 26px;
}

.venue-auth-card p {
  color: var(--muted);
}

/* zuvu dashboard refresh */
body {
  color: #182033;
  background:
    linear-gradient(90deg, rgba(4, 167, 244, 0.95) 0 8px, transparent 8px calc(100% - 8px), rgba(255, 45, 116, 0.95) calc(100% - 8px)),
    linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

.venue-layout {
  grid-template-columns: 238px minmax(0, 1fr);
  width: min(100%, calc(100% - 24px));
  min-height: calc(100vh - 24px);
  margin: 12px auto;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(3, 15, 46, 0.18);
}

.venue-sidebar {
  height: calc(100vh - 24px);
  padding: 14px;
  border-right: 1px solid #edf1f7;
  background:
    linear-gradient(180deg, rgba(239, 249, 255, 0.95), rgba(255, 255, 255, 0) 260px),
    #fff;
  color: var(--ink);
}

.venue-brand {
  display: grid;
  align-items: start;
  gap: 0;
  min-height: 72px;
  margin-bottom: 14px;
  padding: 0 6px 12px;
  border-bottom: 1px solid #edf1f7;
  color: var(--ink);
}

.venue-logo {
  display: block;
  width: 178px;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

.venue-brand small {
  display: block;
  margin-top: -10px;
  margin-left: 55px;
  color: #344054;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.venue-brand-mark {
  display: none;
}

.venue-nav {
  gap: 7px;
}

.venue-nav-item {
  position: relative;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 12px 0 34px;
  background: transparent;
  color: #263248;
  font-size: 13px;
  box-shadow: none;
}

.venue-nav-item::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  transform: translateY(-50%);
}

.venue-nav-item:hover,
.venue-nav-item.is-active {
  border-color: #b9e7ff;
  background: #eef8ff;
  color: var(--brand-dark);
}

.venue-nav-item.is-active {
  box-shadow: 0 12px 26px rgba(4, 167, 244, 0.12);
}

.venue-nav-item.is-active::before {
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(4, 167, 244, 0.12);
}

.sidebar-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 13px;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.06);
}

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

.sidebar-summary strong {
  font-size: 13px;
}

.sidebar-summary small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.sidebar-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(7, 166, 90, 0.12);
}

.venue-main {
  padding: 18px 24px 24px;
  background:
    linear-gradient(135deg, rgba(4, 167, 244, 0.08) 0%, rgba(255, 255, 255, 0) 32%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
}

.venue-topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  min-height: 104px;
  margin-bottom: 16px;
  padding: 17px 18px;
  border: 1px solid #edf1f7;
  border-radius: 10px;
  background: linear-gradient(120deg, rgba(239, 249, 255, 0.96) 0%, #ffffff 46%, #fff0f6 100%);
  box-shadow: 0 16px 42px rgba(16, 24, 40, 0.08);
}

.venue-topbar h1 {
  color: #050b2d;
  font-size: 24px;
  line-height: 1.15;
}

.topbar-subtitle {
  display: block;
  margin-top: 7px;
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.topbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.menu-chip,
.ghost-button,
.solid-button {
  min-height: 38px;
  border-radius: 8px;
  font-size: 12px;
}

.menu-chip,
.ghost-button {
  border-color: #e8edf5;
  background: rgba(255, 255, 255, 0.88);
  color: #050b2d;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.04);
}

.menu-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.marketplace-link::before {
  content: "R";
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.solid-button {
  background: linear-gradient(135deg, #04a7f4 0%, #ff2d74 100%);
  box-shadow: 0 10px 24px rgba(4, 167, 244, 0.24);
}

.venue-profile {
  min-width: 205px;
  padding: 7px 10px;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.venue-avatar {
  width: 38px;
  height: 38px;
  background: #ddf6ff;
  color: var(--brand-dark);
}

.stat-grid,
.report-summary-grid {
  gap: 12px;
}

.stat-card,
.report-summary-card,
.panel,
.section-card,
.filters-card,
.venue-auth-card {
  border-color: #e8edf5;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 36px rgba(16, 24, 40, 0.07);
}

.stat-card,
.report-summary-card {
  position: relative;
  min-height: 112px;
  overflow: hidden;
  padding: 16px 16px 15px 56px;
}

.stat-card::before,
.report-summary-card::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 18px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 3px, transparent 4px),
    linear-gradient(135deg, #04a7f4, #ff2d74);
  box-shadow: 0 8px 20px rgba(4, 167, 244, 0.22);
}

.stat-card::after,
.report-summary-card::after {
  content: "";
  position: absolute;
  right: -35px;
  top: -38px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(23, 92, 255, 0.06);
}

.stat-card strong {
  color: #050b2d;
  font-size: 26px;
}

.stat-card small,
.report-summary-card small,
.data-table th {
  color: #667085;
}

.panel-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
}

.panel-head h2 {
  color: #050b2d;
  font-size: 19px;
}

.overview-item,
.quick-action,
.settings-input-field,
.settings-select-field,
.settings-question,
.profile-card,
.review-card,
.billing-actions {
  border-color: #e8edf5;
  background: #fff;
}

.overview-item,
.quick-action {
  min-height: 70px;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.04);
}

.overview-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.quick-action span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: #eef8ff;
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 900;
}

/* Calendar: compact single-screen fit */
.venue-main:has(#calendar-view:not(.hidden)) {
  padding: 12px 16px 16px;
}

.venue-main:has(#calendar-view:not(.hidden)) .venue-topbar {
  min-height: 66px;
  margin-bottom: 10px;
  padding: 10px 14px;
}

.venue-main:has(#calendar-view:not(.hidden)) .venue-topbar h1 {
  font-size: 20px;
}

.venue-main:has(#calendar-view:not(.hidden)) .eyebrow,
.venue-main:has(#calendar-view:not(.hidden)) .topbar-subtitle,
.venue-main:has(#calendar-view:not(.hidden)) .marketplace-link,
.venue-main:has(#calendar-view:not(.hidden)) .venue-profile span {
  display: none;
}

#calendar-view {
  gap: 0;
}

#calendar-view .section-card {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: calc(100vh - 114px);
  min-height: 560px;
  padding: 10px;
  background: #ffffff;
  --calendar-header-height: 28px;
  --calendar-row-count: 18;
}

#calendar-view .calendar-toolbar,
#calendar-view .calendar-panel-head {
  margin-bottom: 8px;
}

#calendar-view .calendar-panel-head {
  align-items: center;
}

#calendar-view .panel-head h2 {
  font-size: 15px;
}

.calendar-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  color: #667085;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.calendar-legend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.legend-open {
  border: 1px solid #b9e7ff;
  background: #f3fbff;
}

.legend-online {
  background: #175cff;
}

.legend-subscription {
  background: #13a673;
}

.legend-manual {
  background: #d89212;
}

.legend-closed {
  background: #98a2b3;
}

#calendar-view .calendar-field-pill,
#calendar-view .calendar-icon-button,
#calendar-view .week-range-pill {
  min-height: 30px;
  height: 30px;
  border-radius: 8px;
  padding: 0 9px;
  font-size: 11px;
}

#calendar-view .calendar-icon-button {
  width: 30px;
}

#calendar-view .schedule-shell {
  display: flex;
  min-height: 0;
  overflow: visible;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  background: #fbfdff;
}

#calendar-view .schedule-grid {
  min-width: 0;
  width: 100%;
  height: 100%;
}

#calendar-view .schedule-table {
  width: 100%;
  height: 100% !important;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

#calendar-view .schedule-table tbody tr {
  height: calc((100% - var(--calendar-header-height)) / var(--calendar-row-count)) !important;
}

#calendar-view .schedule-table td {
  height: calc((100% - var(--calendar-header-height)) / var(--calendar-row-count)) !important;
}

#calendar-view .schedule-table th,
#calendar-view .schedule-table td {
  border-color: #e8edf5;
}

#calendar-view .schedule-table th:not(:last-child),
#calendar-view .schedule-table td:not(:last-child) {
  border-right: 1px solid rgba(152, 162, 179, 0.18);
}

#calendar-view .schedule-table th {
  height: var(--calendar-header-height);
  padding: 5px 6px;
  border-bottom: 1px solid #dfe6f0;
  background: #ffffff;
  color: #445066;
  font-size: 10px;
  text-align: center;
}

#calendar-view .schedule-table th:first-child,
#calendar-view .time-cell {
  width: 44px;
}

#calendar-view .time-cell {
  padding: 2px 6px 0 0;
  background: #ffffff;
  color: #98a2b3;
  font-size: 10px;
  line-height: 1;
  text-align: right;
  vertical-align: top;
}

#calendar-view .schedule-slot-cell {
  position: relative;
  min-height: 0;
  height: 100%;
  border-left-width: 0;
  padding: 2px 4px;
  background:
    linear-gradient(180deg, rgba(148, 163, 184, 0.16), rgba(148, 163, 184, 0.16)) 0 0 / 100% 1px no-repeat,
    #ffffff;
  vertical-align: middle;
}

#calendar-view .schedule-slot-cell.is-selected {
  z-index: 12;
}

#calendar-view .schedule-slot-cell.is-today-column {
  background:
    linear-gradient(180deg, rgba(148, 163, 184, 0.16), rgba(148, 163, 184, 0.16)) 0 0 / 100% 1px no-repeat,
    #f4fbff;
}

#calendar-view .schedule-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 100%;
  border-radius: 7px;
  padding: 0 5px;
  overflow: hidden;
}

#calendar-view .schedule-slot-cell.is-selected .schedule-choice {
  overflow: visible;
}

#calendar-view .slot-card-header,
#calendar-view .slot-card-body,
#calendar-view .slot-card-footer {
  gap: 3px;
}

#calendar-view .schedule-slot-cell small {
  font-size: 9px;
}

#calendar-view .schedule-slot-cell strong {
  flex: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 9.5px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#calendar-view .schedule-slot-cell span {
  display: none;
  overflow: hidden;
  font-size: 9px;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#calendar-view .slot-badge,
#calendar-view .slot-channel-badge {
  min-width: 14px;
  min-height: 14px;
  justify-content: center;
  padding: 0 4px;
  font-size: 7px;
}

#calendar-view .slot-zuvu .schedule-choice {
  justify-content: center;
  background: transparent;
  color: transparent;
  box-shadow: none;
}

#calendar-view .slot-zuvu .schedule-choice::before {
  content: none;
}

#calendar-view .schedule-slot-cell .open-slot-dot {
  display: block;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 9px;
  line-height: 1;
  font-weight: 900;
  opacity: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#calendar-view .slot-explicit-rezerv .schedule-choice {
  justify-content: flex-start;
  background: #f3fbff;
  color: #07345f;
  box-shadow: inset 3px 0 0 #04a7f4;
}

#calendar-view .schedule-slot-cell.is-selected .open-slot-dot,
#calendar-view .slot-zuvu:hover .open-slot-dot {
  opacity: 1;
}

#calendar-view .slot-zuvu strong,
#calendar-view .slot-zuvu .slot-channel-badge {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

#calendar-view .slot-reserved .schedule-choice,
#calendar-view .slot-manual .schedule-choice,
#calendar-view .slot-closed .schedule-choice {
  justify-content: space-between;
  box-shadow: inset 3px 0 0 currentColor;
}

#calendar-view .slot-reserved .schedule-choice {
  background: #eef5ff;
  color: #2367d9;
}

#calendar-view .slot-manual .schedule-choice {
  background: #fff7e7;
  color: #a15c00;
}

#calendar-view .slot-closed .schedule-choice {
  background: #f4f5f7;
  color: #667085;
}

#calendar-view .slot-subscription-reserved .schedule-choice {
  background: #ecfdf4;
  color: #09865a;
}

#calendar-view .slot-eft .schedule-choice {
  background: #fff8df;
  color: #aa6b00;
}

#calendar-view .slot-cash .schedule-choice,
#calendar-view .slot-manual-reserved .schedule-choice {
  background: #f1f8ff;
  color: #2455a4;
}

#calendar-view .slot-corporate .schedule-choice {
  background: #f3f0ff;
  color: #6846bd;
}

#calendar-view .slot-online .schedule-choice {
  background: #eef5ff;
  color: #175cff;
}

#calendar-view .slot-closed .slot-channel-badge {
  background: #ffffff;
  color: #667085;
}

#calendar-view .slot-reserved .slot-channel-badge,
#calendar-view .slot-manual .slot-channel-badge {
  background: rgba(255, 255, 255, 0.72);
  color: currentColor;
}

#calendar-view .slot-reserved strong,
#calendar-view .slot-manual strong,
#calendar-view .slot-closed strong {
  color: currentColor;
  font-weight: 900;
}

#calendar-view .schedule-slot-cell.is-selected .schedule-choice {
  outline: 2px solid rgba(4, 167, 244, 0.45);
  outline-offset: -1px;
}

#calendar-view .slot-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  display: grid;
  width: 212px;
  gap: 8px;
  border: 1px solid rgba(226, 232, 240, 0.96);
  border-radius: 8px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.98);
  color: #111827;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
}

#calendar-view .slot-popover::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 22px;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(226, 232, 240, 0.96);
  border-left: 1px solid rgba(226, 232, 240, 0.96);
  background: #ffffff;
  transform: rotate(45deg);
}

#calendar-view .slot-popover.is-popover-right {
  right: 0;
  left: auto;
}

#calendar-view .slot-popover.is-popover-right::before {
  right: 22px;
  left: auto;
}

#calendar-view .slot-popover.is-popover-above {
  top: auto;
  bottom: calc(100% + 8px);
}

#calendar-view .slot-popover.is-popover-above::before {
  top: auto;
  bottom: -6px;
  border: 0;
  border-right: 1px solid rgba(226, 232, 240, 0.96);
  border-bottom: 1px solid rgba(226, 232, 240, 0.96);
}

#calendar-view .slot-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#calendar-view .slot-popover-head strong {
  display: block;
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1;
  color: #111827;
}

#calendar-view .slot-popover-head span {
  display: block;
  min-width: 0;
  color: #667085;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-align: right;
}

#calendar-view .slot-options {
  display: grid;
  gap: 6px;
  margin: 0;
}

#calendar-view .slot-option {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 34px;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  padding: 0 9px 0 5px;
  background: #ffffff;
  color: #263241;
  font-size: 11px;
  font-weight: 900;
  text-align: left;
}

#calendar-view .slot-option:hover {
  border-color: #b9e7ff;
  background: #f3fbff;
}

#calendar-view .slot-option.is-active {
  border-color: rgba(4, 167, 244, 0.5);
  background: #eef8ff;
  color: #07345f;
}

#calendar-view .schedule-slot-cell .slot-option-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #f2f5f9;
  color: #667085;
  font-size: 10px;
  font-weight: 900;
}

#calendar-view .schedule-slot-cell .slot-option > span:not(.slot-option-icon) {
  display: block;
  grid-column: 2;
  overflow: hidden;
  color: inherit;
  font-size: 11px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#calendar-view .slot-option.is-active .slot-option-icon {
  background: #04a7f4;
  color: #ffffff;
}

#calendar-view .slot-option-closed.is-active .slot-option-icon {
  background: #667085;
}

#calendar-view .slot-option-manual.is-active .slot-option-icon {
  background: #d89212;
}

#calendar-view .slot-popover-edit {
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: #f7f9fc;
  color: #344054;
  font-size: 10px;
  font-weight: 900;
}

#calendar-view .slot-popover-edit:hover {
  background: #eef2f7;
}

.calendar-field-pill,
.calendar-icon-button,
.radio-chip,
.week-range-pill,
.settings-tab {
  border-color: #e8edf5;
  background: #fff;
}

.calendar-field-pill.is-active,
.radio-chip.is-active,
.settings-tab.is-active {
  border-color: #b9e7ff;
  background: #eef8ff;
  color: var(--brand-dark);
}

.table-shell {
  border-color: #e8edf5;
  border-radius: 8px;
  background: #fff;
}

.dropdown-panel {
  border-color: #e8edf5;
}

@media (max-width: 1080px) {
  .venue-layout {
    grid-template-columns: 1fr;
  }

  .venue-sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #edf1f7;
  }

  .venue-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .sidebar-summary {
    display: none;
  }

  .panel-grid,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .stat-grid,
  .report-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .venue-layout {
    width: min(100%, calc(100% - 14px));
    min-height: calc(100vh - 14px);
    margin: 7px auto;
  }

  .venue-main {
    padding: 14px;
  }

  .venue-topbar {
    position: static;
    display: grid;
    min-height: 0;
  }

  .venue-topbar,
  .topbar-actions,
  .menu-cluster,
  .calendar-toolbar,
  .filters-card,
  .report-filter-line {
    align-items: stretch;
    flex-direction: column;
  }

  .venue-nav {
    grid-template-columns: 1fr 1fr;
  }

  .stat-grid,
  .report-summary-grid,
  .settings-form-grid,
  .profile-form-grid,
  .sales-modal-body {
    grid-template-columns: 1fr;
  }

  .venue-profile {
    min-width: 0;
    padding-left: 0;
    border-left: 0;
  }

  #calendar-view .section-card {
    height: auto;
    min-height: 0;
  }

  #calendar-view .schedule-shell {
    overflow-x: auto;
  }

  #calendar-view .schedule-grid {
    min-width: 920px;
  }
}
