* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1180px;
  color: #1f252b;
  background:
    linear-gradient(180deg, #f7f8fa 0%, #eef2f6 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  height: 36px;
  padding: 0 15px;
  border: 1px solid #d1d8df;
  border-radius: 8px;
  color: #2f3438;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

button:hover {
  border-color: #b6c0ca;
  box-shadow: 0 8px 20px rgba(25, 31, 38, 0.08);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

button.primary {
  color: #ffffff;
  border-color: #bb0907;
  background: linear-gradient(180deg, #d6110f 0%, #b90706 100%);
  box-shadow: 0 10px 18px rgba(197, 8, 6, 0.2);
}

button.danger {
  color: #b33a31;
  border-color: #edc8c4;
  background: linear-gradient(180deg, #fff9f8 0%, #fff1f0 100%);
}

button.wide {
  width: 100%;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

.login-screen {
  min-height: 100vh;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(197, 8, 6, 0.08), rgba(39, 43, 48, 0.04)),
    linear-gradient(180deg, #f8f9fb 0%, #eef2f6 100%);
}

.login-panel {
  position: relative;
  width: 380px;
  padding: 30px;
  border: 1px solid #dee4ea;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(20, 28, 36, 0.12);
}

.login-panel::before {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c50806 0%, #ff7a62 100%);
}

.login-brand {
  margin-bottom: 24px;
}

.login-brand strong,
.login-brand span {
  display: block;
}

.login-brand strong {
  color: #1f252b;
  font-size: 26px;
  line-height: 1;
}

.login-brand span {
  margin-top: 10px;
  color: #6d7580;
  font-size: 13px;
}

.login-panel label {
  display: block;
  margin-bottom: 14px;
  color: #535d66;
  font-size: 13px;
  line-height: 1.4;
}

.login-panel input,
.inspector input,
.inspector select,
.filters input,
.filters select {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d5dbe1;
  border-radius: 8px;
  color: #2b3035;
  background: #ffffff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.login-panel input,
.inspector input,
.inspector select {
  margin-top: 6px;
}

.login-panel input:focus,
.inspector input:focus,
.inspector select:focus,
.filters input:focus,
.filters select:focus {
  border-color: #c50806;
  box-shadow: 0 0 0 3px rgba(197, 8, 6, 0.12);
  outline: none;
}

.login-message {
  min-height: 20px;
  margin: 12px 0 0;
  color: #b12b24;
  font-size: 13px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  background: linear-gradient(180deg, #f7f8fa 0%, #eef2f6 100%);
}

.sidebar {
  color: #ffffff;
  background: linear-gradient(180deg, #262a30 0%, #20242a 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
}

.brand {
  height: 72px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1;
}

.brand span {
  margin-top: 8px;
  color: #aeb6bf;
  font-size: 12px;
}

.nav-list {
  padding: 14px 10px;
  display: grid;
  gap: 6px;
}

.nav-item {
  width: 100%;
  height: 40px;
  text-align: left;
  color: #d7dde3;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 8px;
  background: transparent;
}

.nav-item.active,
.nav-item:hover {
  color: #ffffff;
  background: linear-gradient(90deg, rgba(197, 8, 6, 0.18), rgba(255, 255, 255, 0.02));
}

.nav-item.active {
  border-left-color: #c50806;
}

.sidebar-foot {
  margin-top: auto;
  padding: 14px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 50px 50px;
  align-items: center;
  gap: 8px;
}

.sidebar-foot span {
  overflow: hidden;
  color: #c9d1d9;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-foot button {
  height: 30px;
  padding: 0 8px;
  color: #e8edf3;
  border-color: #4b535c;
  border-radius: 999px;
  background: linear-gradient(180deg, #3a4047 0%, #30363d 100%);
  box-shadow: none;
}

.main-shell {
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 76px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(223, 228, 234, 0.92);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.topbar p {
  margin: 8px 0 0;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  color: #67717c;
  font-size: 13px;
  border-radius: 999px;
  background: #f4f7fa;
}

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

.floor-switcher {
  height: 36px;
  padding: 0 10px 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d1d8df;
  border-radius: 8px;
  color: #2f3438;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.floor-switcher span {
  color: #67717c;
  font-size: 13px;
  font-weight: 700;
}

.floor-switcher select {
  width: 92px;
  height: 26px;
  margin-top: 0;
  padding: 0 8px;
  border: 1px solid #d5dbe1;
  border-radius: 6px;
  background: #ffffff;
}

.view-panel {
  display: none;
  min-height: 0;
  flex: 1;
  padding: 20px;
}

.view-panel.active {
  display: block;
}

.home-content-panel {
  max-width: 980px;
  padding: 24px;
}

.home-content-label {
  display: block;
  margin: 24px 0 8px;
  color: #343b42;
  font-size: 14px;
  font-weight: 700;
}

#homeIntroInput,
#homeVenueInput,
#homeNoticeInput {
  display: block;
  width: 100%;
  min-height: 140px;
  padding: 12px;
  border: 1px solid #d5dbe1;
  border-radius: 6px;
  color: #1f252b;
  background: #ffffff;
  font: inherit;
  line-height: 1.7;
  resize: vertical;
}

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

.field-hint {
  color: #7b838c;
  font-size: 13px;
}

.session-admin-grid {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(620px, 1fr);
  gap: 16px;
}

.weekday-options { display: flex; flex-wrap: wrap; gap: 8px 14px; border: 1px solid #d9e0e7; border-radius: 6px; padding: 10px 12px; margin: 0; }
.weekday-options legend { padding: 0 4px; color: #4b5968; font-size: 13px; }
.weekday-options label { display: inline-flex; align-items: center; gap: 4px; }
.template-list { margin-top: 16px; border-top: 1px solid #e5e9ed; }
.template-row { display: flex; align-items: center; justify-content: space-between; min-height: 44px; border-bottom: 1px solid #e5e9ed; }

.session-form-panel { padding: 22px; }
.session-form-panel label { display: block; margin-top: 14px; color: #4f5963; font-size: 13px; font-weight: 700; }
.session-form-panel input,
.session-form-panel select,
.session-form-panel textarea { width: 100%; margin-top: 7px; padding: 9px 10px; border: 1px solid #d5dbe1; border-radius: 6px; background: #fff; font: inherit; }
.session-form-panel input,
.session-form-panel select { height: 38px; }
.session-form-panel textarea { resize: vertical; line-height: 1.55; }
.session-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.session-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.session-table th:nth-child(1) { width: 30%; }
.session-table th:nth-child(2) { width: 15%; }
.session-table th:nth-child(3) { width: 14%; }
.session-table th:nth-child(4) { width: 18%; }
.session-table th:nth-child(5) { width: 23%; }
.session-stock strong { display: block; color: #202830; }
.session-stock small { color: #74808b; }

@media (max-width: 1100px) {
  .session-admin-grid { grid-template-columns: 1fr; }
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card,
.panel {
  background: #ffffff;
  border: 1px solid #e1e6eb;
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(16, 24, 40, 0.05);
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
}

.stat-card:nth-child(1) {
  border-top: 3px solid #c50806;
}

.stat-card:nth-child(2) {
  border-top: 3px solid #2f9e6b;
}

.stat-card:nth-child(3) {
  border-top: 3px solid #d28a17;
}

.stat-card:nth-child(4) {
  border-top: 3px solid #3c4652;
}

.stat-card span {
  display: block;
  color: #67717c;
  font-size: 13px;
  font-weight: 700;
}

.stat-card strong {
  display: block;
  margin-top: 12px;
  color: #1f252b;
  font-size: 30px;
  line-height: 1;
}

.dashboard-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 16px;
}

.panel {
  min-width: 0;
}

.panel-head {
  min-height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid #edf0f3;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-head h2 {
  margin: 0;
  font-size: 16px;
}

.record-summary {
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.record-summary div {
  padding: 14px;
  border: 1px solid #eef1f4;
  border-radius: 8px;
  background: linear-gradient(180deg, #fbfcfd 0%, #f6f8fa 100%);
}

.record-summary span,
.recent-item span {
  display: block;
  color: #6b7580;
  font-size: 12px;
}

.record-summary strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

.recent-list {
  padding: 10px 18px 18px;
}

.recent-item {
  padding: 12px 0;
  border-bottom: 1px solid #f0f2f5;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 78px;
  align-items: center;
  gap: 12px;
}

.recent-item:last-child {
  border-bottom: 0;
}

.recent-item strong {
  font-size: 13px;
}

.layout-workspace {
  height: calc(100vh - 108px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
}

.map-panel {
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e1e6eb;
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(16, 24, 40, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.map-toolbar {
  height: 44px;
  padding: 0 18px;
  color: #56616d;
  border-bottom: 1px solid #e3e7ec;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.map-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 24px;
  background: linear-gradient(180deg, #f7f9fb 0%, #eef2f6 100%);
}

.seat-board {
  position: relative;
  width: 1440px;
  height: 1080px;
  background-color: #ffffff;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.98) 100%),
    linear-gradient(rgba(223, 228, 234, 0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(223, 228, 234, 0.7) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
  border: 1px solid #dfe4ea;
  box-shadow: 0 20px 48px rgba(25, 31, 38, 0.10);
}

.draggable {
  position: absolute;
  user-select: none;
  touch-action: none;
  cursor: grab;
}

.draggable:active {
  cursor: grabbing;
}

.draggable.selected {
  outline: 0;
  box-shadow:
    0 0 0 3px rgba(47, 132, 255, 0.18),
    0 0 0 1px rgba(47, 132, 255, 0.96),
    0 18px 30px rgba(24, 72, 153, 0.12);
}

.stage-node {
  color: #ffffff;
  background: linear-gradient(180deg, #d6110f 0%, #b90706 100%);
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(197, 8, 6, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  line-height: 1;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.text-node {
  color: #333333;
  font-size: 72px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.row-label-node {
  color: #333333;
  font-size: 44px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
}

.seat-node {
  position: absolute;
  box-sizing: border-box;
  overflow: visible;
}

.seat-node.has-selected-slot {
  box-shadow: 0 0 0 2px rgba(47, 132, 255, 0.12);
}

.main-block,
.mini-block {
  position: absolute;
  background: linear-gradient(180deg, #9a5d31 0%, #80512e 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 10px 20px rgba(33, 23, 16, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.main-block {
  left: 39px;
  top: 27px;
  width: 78px;
  height: 78px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 19px;
  line-height: 1.12;
  text-align: center;
}

.mini-block {
  width: 30px;
  height: 28px;
  border-radius: 6px;
  font-size: 16px;
  line-height: 1;
  z-index: 2;
}

.mini-block.selected-slot {
  z-index: 4;
  background: linear-gradient(180deg, #2f84ff 0%, #2362ca 100%);
  box-shadow:
    0 0 0 4px rgba(47, 132, 255, 0.18),
    0 12px 24px rgba(35, 98, 202, 0.24);
}

.slot-occupied {
  background: linear-gradient(180deg, #bcc2c9 0%, #9ea5ad 100%);
}

.slot-checked {
  background: linear-gradient(180deg, #4a5562 0%, #333b46 100%);
}

.slot-side-front {
  box-shadow:
    0 10px 20px rgba(33, 23, 16, 0.14),
    inset 0 3px 0 rgba(255, 255, 255, 0.14);
}

.slot-side-back {
  box-shadow:
    0 10px 20px rgba(33, 23, 16, 0.14),
    inset 0 -3px 0 rgba(255, 255, 255, 0.14);
}

.slot-side-left {
  box-shadow:
    0 10px 20px rgba(33, 23, 16, 0.14),
    inset 3px 0 0 rgba(255, 255, 255, 0.14);
}

.slot-side-right {
  box-shadow:
    0 10px 20px rgba(33, 23, 16, 0.14),
    inset -3px 0 0 rgba(255, 255, 255, 0.14);
}

.inspector {
  min-height: 0;
  padding: 18px;
  border: 1px solid #e1e6eb;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(16, 24, 40, 0.05);
  overflow: auto;
}

.inspector-section {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #edf0f3;
}

.inspector h2 {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1;
}

.inspector label {
  display: block;
  margin-bottom: 12px;
  color: #535d66;
  font-size: 13px;
  line-height: 1.4;
}

.coord-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.slot-list {
  display: grid;
  gap: 8px;
}

.price-bulk-tools {
  margin: 12px 0;
  padding: 12px;
  display: grid;
  gap: 8px;
  border: 1px solid #e5e9ee;
  border-radius: 10px;
  background: #f8fafc;
}

.price-bulk-tools h3 {
  margin: 0;
  color: #343b42;
  font-size: 13px;
}

.price-tier-create {
  display: grid;
  grid-template-columns: 1fr 1fr 38px;
  gap: 6px;
}

.price-tier-create input {
  width: 100%;
  min-width: 0;
  height: 32px;
  margin: 0;
  padding: 0 6px;
  font-size: 11px;
}

.price-tier-create input[type="color"] {
  padding: 2px;
}

.price-tier-create button {
  grid-column: 1 / -1;
  min-height: 32px;
}

.price-bulk-tools > label {
  margin: 0;
  color: #424b54;
  font-size: 12px;
  font-weight: 700;
}

.price-bulk-tools > select {
  width: 100%;
  min-height: 34px;
  margin: 0;
}

.price-bulk-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.price-bulk-actions button {
  min-height: 32px;
  padding: 4px 6px;
  font-size: 11px;
}

.price-bulk-actions #applyBulkPriceBtn {
  color: #fff;
}

#bulkPriceMessage {
  margin: 2px 0 0;
  line-height: 1.5;
}

.slot-row {
  display: grid;
  grid-template-columns: 42px 58px 82px 1fr 32px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #edf1f5;
  border-left-width: 3px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fafbfd 0%, #f6f8fa 100%);
}

.slot-row span {
  color: #2f3438;
  font-size: 12px;
  font-weight: 700;
}

.slot-row.side-front {
  border-left-color: #d17b4b;
}

.slot-row.side-back {
  border-left-color: #4a5562;
}

.slot-row.side-left {
  border-left-color: #2f84ff;
}

.slot-row.side-right {
  border-left-color: #21aa74;
}

.slot-row.selected-slot-row {
  border-color: #9cc4ff;
  border-left-color: #2f84ff;
  background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
  box-shadow: 0 8px 18px rgba(47, 132, 255, 0.08);
}

.slot-row select {
  margin-top: 0;
  width: 100%;
  height: 32px;
  min-width: 0;
  padding: 0 3px;
  font-size: 11px;
}

.slot-side-actions {
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.slot-side-actions button,
.slot-remove {
  height: 34px;
}

.slot-side-actions button:nth-child(1) {
  color: #9a5a2f;
  border-color: #f0d7c4;
  background: linear-gradient(180deg, #fff6ef 0%, #fff0e5 100%);
}

.slot-side-actions button:nth-child(2) {
  color: #8e5030;
  border-color: #ead6c2;
  background: linear-gradient(180deg, #fff8f1 0%, #fff2e8 100%);
}

.slot-side-actions button:nth-child(3) {
  color: #2460c9;
  border-color: #d8e6fb;
  background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
}

.slot-side-actions button:nth-child(4) {
  color: #1f8b62;
  border-color: #d2efe2;
  background: linear-gradient(180deg, #f4fff9 0%, #ecfbf4 100%);
}

.slot-remove {
  width: 32px;
  min-width: 32px;
  padding: 0;
  border: 1px solid #d7dce2;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff9f8 0%, #fff1f0 100%);
  color: #b73629;
  font-weight: 700;
}

.inspector-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.records-panel {
  min-height: calc(100vh - 108px);
}

.records-head {
  align-items: center;
}

.filters {
  display: grid;
  grid-template-columns: 132px 230px 70px;
  align-items: center;
  gap: 10px;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf0f3;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  color: #626d78;
  font-weight: 700;
  background: #fbfcfd;
  position: sticky;
  top: 0;
  z-index: 1;
}

tbody tr:hover td {
  background: #fcfdff;
}

.seat-list-text,
.detail-text {
  color: #37414b;
  line-height: 1.6;
  word-break: break-word;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.badge.reserved {
  color: #8a5a00;
  background: #fff0c2;
}

.badge.checked {
  color: #16673f;
  background: #dff5e9;
}

.badge.cancelled {
  color: #66717c;
  background: #eef1f4;
}

.badge.log {
  color: #314f73;
  background: #e7f0fb;
}

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

.record-actions button {
  height: 30px;
  border-radius: 999px;
}

.empty-state {
  padding: 32px;
  color: #7b8590;
  text-align: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 24px;
  background: rgba(18, 24, 31, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-panel {
  position: relative;
  width: 400px;
  padding: 24px;
  border: 1px solid #e0e5eb;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 28px 72px rgba(18, 24, 31, 0.22);
}

.modal-panel::before {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c50806 0%, #ff7a62 100%);
}

.modal-head {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-head h2 {
  margin: 0;
  font-size: 18px;
}

.modal-head button {
  height: 30px;
}

.modal-panel label {
  display: block;
  margin-bottom: 14px;
  color: #535d66;
  font-size: 13px;
  line-height: 1.4;
}

.modal-panel input {
  width: 100%;
  height: 36px;
  margin-top: 6px;
  padding: 0 10px;
  border: 1px solid #d5dbe1;
  border-radius: 8px;
  color: #2b3035;
  background: #ffffff;
}

.modal-panel select {
  width: 100%;
  height: 36px;
  margin-top: 6px;
  padding: 0 10px;
  border: 1px solid #d5dbe1;
  border-radius: 8px;
  color: #2b3035;
  background: #ffffff;
}

.modal-panel input:focus,
.modal-panel select:focus {
  border-color: #c50806;
  box-shadow: 0 0 0 3px rgba(197, 8, 6, 0.12);
  outline: none;
}

.catering-heading {
  min-height: 74px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.section-eyebrow {
  display: block;
  color: #237b55;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.catering-heading h2 {
  margin: 10px 0 0;
  color: #1f252b;
  font-size: 24px;
  line-height: 1;
}

.catering-heading p {
  margin: 10px 0 0;
  color: #78838d;
  font-size: 13px;
}

.catering-live-mark {
  height: 34px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #287b59;
  border: 1px solid #cfe8da;
  border-radius: 999px;
  background: #f3fbf6;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #2f9e6b;
  box-shadow: 0 0 0 4px rgba(47, 158, 107, 0.12);
}

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

.catering-stat-card {
  min-width: 0;
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
  border: 1px solid #e1e6eb;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(16, 24, 40, 0.05);
}

.catering-stat-card::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 90px;
  height: 90px;
  border-radius: 999px;
  opacity: 0.12;
}

.catering-stat-card.accent-green {
  border-top: 3px solid #2f9e6b;
}

.catering-stat-card.accent-green::after {
  background: #2f9e6b;
}

.catering-stat-card.accent-amber {
  border-top: 3px solid #d28a17;
}

.catering-stat-card.accent-amber::after {
  background: #d28a17;
}

.catering-stat-card.accent-blue {
  border-top: 3px solid #3c78c4;
}

.catering-stat-card.accent-blue::after {
  background: #3c78c4;
}

.catering-stat-card.accent-red {
  border-top: 3px solid #c50806;
}

.catering-stat-card.accent-red::after {
  background: #c50806;
}

.catering-stat-card span,
.catering-stat-card small {
  display: block;
}

.catering-stat-card span {
  color: #67717c;
  font-size: 13px;
  font-weight: 700;
}

.catering-stat-card strong {
  display: block;
  margin-top: 11px;
  color: #1f252b;
  font-size: 30px;
  line-height: 1;
}

.catering-stat-card small {
  margin-top: 9px;
  color: #9099a2;
  font-size: 11px;
  line-height: 1.35;
}

.catering-settings-layout {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(360px, 0.95fr);
  gap: 14px;
}

.catering-settings-panel,
.catering-guide-panel,
.catering-data-panel {
  overflow: hidden;
}

.panel-caption {
  margin: 6px 0 0;
  color: #8a949d;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 400;
}

.service-badge {
  height: 26px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  color: #68747e;
  border-radius: 999px;
  background: #f1f4f6;
  font-size: 12px;
  font-weight: 700;
}

.service-badge.open {
  color: #197148;
  background: #e5f6ec;
}

.service-badge.closed {
  color: #a94438;
  background: #ffebe8;
}

.catering-settings-body {
  padding: 16px 18px 18px;
}

.toggle-row {
  min-height: 58px;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
}

.toggle-row:last-of-type {
  border-bottom: 0;
}

.toggle-row span {
  min-width: 0;
}

.toggle-row strong,
.toggle-row small {
  display: block;
}

.toggle-row strong {
  color: #303940;
  font-size: 13px;
}

.toggle-row small {
  margin-top: 5px;
  color: #8a949d;
  font-size: 11px;
  line-height: 1.35;
}

.toggle-row input,
.checkbox-line input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: #237b55;
}

.catering-settings-body .wide {
  margin-top: 2px;
}

.form-message {
  min-height: 18px;
  margin: 10px 0 0;
  color: #b12b24;
  font-size: 12px;
}

.catering-flow {
  padding: 16px 18px 20px;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flow-step > span {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  color: #237b55;
  border: 1px solid #cfe8da;
  border-radius: 9px;
  background: #f3fbf6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.flow-step strong,
.flow-step small {
  display: block;
}

.flow-step strong {
  color: #303940;
  font-size: 13px;
}

.flow-step small {
  margin-top: 4px;
  color: #8a949d;
  font-size: 11px;
}

.flow-line {
  width: 1px;
  height: 18px;
  margin: 4px 0 4px 16px;
  background: #dfe8e3;
}

.catering-tabbar {
  margin: 20px 0 12px;
  padding: 0 4px;
  border-bottom: 1px solid #dfe5ea;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.catering-tab {
  height: 40px;
  padding: 0 16px;
  color: #74808a;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 13px;
  font-weight: 700;
}

.catering-tab:hover {
  color: #237b55;
  border-color: #bfe2ce;
  background: #f6fbf8;
  box-shadow: none;
  transform: none;
}

.catering-tab.active {
  color: #1f7651;
  border-bottom-color: #237b55;
  background: transparent;
  box-shadow: none;
}

.catering-data-panel {
  min-height: 390px;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catering-table {
  min-width: 980px;
}

.catering-table th,
.catering-table td {
  padding: 12px 14px;
}

.catering-table th:nth-child(1) {
  width: 220px;
}

.catering-table th:nth-child(2) {
  width: 110px;
}

.catering-table th:nth-child(3) {
  width: 100px;
}

.catering-table th:nth-child(4) {
  width: 110px;
}

.catering-table th:nth-child(5) {
  width: 120px;
}

.catering-table th:last-child {
  width: 190px;
}

.product-cell,
.order-cell,
.ticket-cell {
  min-width: 0;
}

.product-cell strong,
.order-cell strong,
.ticket-cell strong {
  display: block;
  color: #2f3840;
  font-size: 13px;
}

.product-cell small,
.order-cell small,
.ticket-cell small {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #8b959e;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-cell small {
  max-width: 190px;
}

.order-cell small,
.ticket-cell small {
  max-width: 190px;
}

.money-text {
  color: #b90706;
  font-weight: 800;
}

.stock-text {
  color: #42505a;
  font-weight: 700;
}

.stock-text.low {
  color: #b36a05;
}

.stock-text.out {
  color: #b12b24;
}

.status-pill,
.mode-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.enabled,
.status-pill.pending,
.status-pill.served,
.status-pill.valid {
  color: #167044;
  background: #e3f5ea;
}

.status-pill.preparing {
  color: #95620c;
  background: #fff0c6;
}

.status-pill.pending_payment {
  color: #95620c;
  background: #fff0c6;
}

.status-pill.refund_pending {
  color: #ae3b30;
  background: #ffe4e0;
}

.status-pill.refunded,
.status-pill.cancelled,
.status-pill.disabled {
  color: #697580;
  background: #eef1f4;
}

.mode-pill.seat {
  color: #2f6bb0;
  background: #e8f1fb;
}

.mode-pill.walk_in {
  color: #7b5c13;
  background: #fff4d8;
}

.catering-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.catering-actions button {
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
}

.catering-actions button.action-green {
  color: #197148;
  border-color: #c9e8d6;
  background: #f1fbf5;
}

.catering-actions button.action-amber {
  color: #95620c;
  border-color: #eedaa7;
  background: #fffaf0;
}

.catering-actions button.action-red {
  color: #b12b24;
  border-color: #efc8c3;
  background: #fff7f5;
}

.catering-actions button.action-blue {
  color: #2f6bb0;
  border-color: #d3e2f5;
  background: #f5f9ff;
}

.catering-orders-table {
  min-width: 1260px;
}

.catering-orders-table th:nth-child(1) {
  width: 190px;
}

.catering-orders-table th:nth-child(2) {
  width: 150px;
}

.catering-orders-table th:nth-child(3) {
  width: 260px;
}

.catering-orders-table th:nth-child(4) {
  width: 90px;
}

.catering-orders-table th:nth-child(5) {
  width: 120px;
}

.catering-orders-table th:nth-child(6) {
  width: 120px;
}

.order-items-text {
  color: #4c5861;
  line-height: 1.55;
  word-break: break-word;
}

.order-items-text span {
  display: block;
}

.order-place {
  margin-top: 6px;
  color: #5b6872;
  font-size: 12px;
  line-height: 1.45;
}

.order-place strong {
  color: #2f3840;
}

.refund-alert {
  margin-top: 7px;
  color: #b12b24;
  font-size: 11px;
  line-height: 1.35;
}

.table-muted {
  color: #8a949d;
  font-size: 12px;
}

.catering-filters {
  grid-template-columns: 116px 116px 200px 70px;
}

.catering-ticket-filters {
  grid-template-columns: 220px 70px;
}

.catering-product-modal {
  width: 600px;
}

.modal-caption {
  margin: 6px 0 0;
  color: #8a949d;
  font-size: 12px;
  font-weight: 400;
}

.catering-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}

.catering-form-grid label {
  min-width: 0;
}

.form-span-two {
  grid-column: 1 / -1;
}

.form-checkboxes {
  min-height: 66px;
  padding-top: 4px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.checkbox-line {
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  color: #4e5962 !important;
  cursor: pointer;
}

.checkbox-line input {
  margin: 0;
}

.checkbox-line span {
  color: #4e5962;
  font-size: 13px;
}

.catering-product-modal .wide {
  margin-top: 6px;
}

@media (max-width: 1320px) {
  .catering-settings-layout {
    grid-template-columns: 1fr 1fr;
  }

  .catering-filters {
    grid-template-columns: 108px 108px 170px 66px;
  }
}
