:root {
  --ink: #1c2230;
  --muted: #6a727d;
  --line: rgba(28, 34, 48, 0.08);
  --navy: #111827;
  --navy-strong: #0b1220;
  --gold: #1fb6a6;
  --copper: #2563eb;
  --emerald: #0f9f8c;
  --panel: rgba(255, 251, 245, 0.88);
  --shadow: 0 22px 60px rgba(65, 44, 14, 0.12);
  --home-card: rgba(255, 252, 248, 0.94);
  --home-stroke: rgba(73, 45, 28, 0.09);
  --home-hero: rgba(49, 24, 28, 0.76);
  --home-dark: #23171a;
  --cream: #f8f3ee;
  --app-header-height: 96px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f2ece6 0%, #f8f4f0 100%);
}

button,
input,
select {
  font: inherit;
}

.page-wrap {
  min-height: 100vh;
}

.main-content {
  display: none;
}

.app-shell {
  position: relative;
  min-height: 100vh;
}

.app-shell-main {
  min-width: 0;
}

.app-header,
.app-sidebar {
  border-radius: 28px;
  background:
    radial-gradient(circle at 16% 18%, rgba(214, 234, 230, 0.12), transparent 20%),
    radial-gradient(circle at 84% 84%, rgba(181, 219, 211, 0.06), transparent 24%),
    repeating-linear-gradient(
      172deg,
      rgba(46, 58, 56, 0.16) 0 6px,
      rgba(28, 33, 32, 0.14) 6px 12px,
      rgba(62, 77, 74, 0.1) 12px 18px
    ),
    linear-gradient(180deg, rgba(42, 51, 50, 0.98), rgba(28, 33, 32, 1));
  border: 1px solid rgba(77, 108, 102, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(222, 244, 239, 0.08),
    inset 0 -10px 18px rgba(9, 13, 12, 0.22),
    0 12px 24px rgba(10, 15, 14, 0.12);
  color: #f5efe9;
}

.app-sidebar {
  position: fixed;
  top: var(--app-header-height);
  left: 0;
  bottom: 0;
  z-index: 24;
  display: grid;
  gap: 22px;
  align-content: start;
  width: 320px;
  padding: 24px 18px 22px;
  border-radius: 0 28px 0 0;
  overflow: auto;
  visibility: visible;
  transition: transform 220ms ease, opacity 220ms ease, width 220ms ease, padding 220ms ease, margin 220ms ease;
}

.app-sidebar-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 8px 8px 0;
}

.app-sidebar-mark {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  font-size: 28px;
}

.app-sidebar-brand strong,
.app-header-copy strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
  color: #f8f1e9;
}

.app-sidebar-brand span {
  display: block;
  margin-top: 4px;
  color: rgba(233, 245, 241, 0.66);
  font-size: 13px;
}

.app-sidebar-nav {
  display: grid;
  gap: 10px;
}

.app-nav-button {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(222, 244, 239, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  color: #f5efe9;
  text-align: left;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.app-nav-button:hover {
  transform: translateX(4px);
  background: rgba(222, 244, 239, 0.08);
  border-color: rgba(222, 244, 239, 0.16);
}

.app-nav-button.is-active {
  background: linear-gradient(180deg, rgba(222, 244, 239, 0.16), rgba(222, 244, 239, 0.08));
  border-color: rgba(222, 244, 239, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.app-nav-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(222, 244, 239, 0.08);
  color: rgba(240, 249, 246, 0.82);
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.app-nav-copy strong {
  display: block;
  font-size: 16px;
  color: #f8f1e9;
}

.app-nav-copy small {
  display: block;
  margin-top: 4px;
  color: rgba(233, 245, 241, 0.66);
  font-size: 12px;
}

.app-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--app-header-height);
  margin-bottom: 0;
  padding: 16px 24px;
  border-radius: 0;
}

.app-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.app-header-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: auto;
}

.header-gear-button {
  min-width: 104px;
  min-height: 104px;
  padding: 0 !important;
  border-radius: 24px;
  font-size: 90px !important;
  line-height: 1;
  font-weight: 700;
  color: #fff !important;
}

.header-home-button {
  min-width: 72px;
  min-height: 72px;
  padding: 0 !important;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(222, 244, 239, 0.14) !important;
}

.header-home-button svg {
  width: 40px;
  height: 40px;
  display: block;
}

.header-home-button path {
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-menu-button {
  width: 56px;
  height: 56px;
  display: inline-grid;
  place-items: center;
  gap: 6px;
  padding: 0;
  border: 1px solid rgba(222, 244, 239, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.app-menu-button span {
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: #f7efe7;
  display: block;
}

.app-screen-stack {
  min-width: 0;
  padding-top: var(--app-header-height);
}

.page-wrap.is-sidebar-collapsed .app-shell {
  grid-template-columns: minmax(0, 1fr);
}

.page-wrap.is-sidebar-collapsed .app-sidebar {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(calc(-100% - 12px));
}

.page-wrap.is-authenticated .login-screen {
  display: none;
}

.page-wrap.is-authenticated .main-content {
  display: block;
  padding: 0;
}

.login-screen {
  padding: 24px;
}

.login-panel {
  min-height: calc(100vh - 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8f3ee 0%, #f7f1eb 100%);
  box-shadow: 0 38px 90px rgba(38, 16, 18, 0.18);
}

.login-card,
.summary-card,
.panel,
.shortcut-card,
.inventory-card {
  border-radius: 26px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.login-card {
  width: min(100%, 1120px);
  margin: 0;
  padding: 52px;
  display: grid;
  gap: 24px;
  align-content: center;
  background: rgba(255, 252, 248, 0.98);
  border: 1px solid rgba(112, 72, 48, 0.1);
  box-shadow: 0 18px 48px rgba(50, 23, 21, 0.08);
}

.brand-lockup {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-bottom: 8px;
}

.brand-lockup strong {
  display: block;
  font-size: 28px;
  line-height: 1.25;
  color: #1f2636;
}

.brand-lockup span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 18px;
}

.brand-mark {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  border-radius: 34px;
  background: linear-gradient(135deg, #241519, #5d2b33);
  color: #fff8ef;
  font-family: "Outfit", sans-serif;
  font-weight: 800;
  font-size: 52px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 16px;
  color: var(--muted);
}

.field input,
.field select {
  width: 100%;
  padding: 20px 24px;
  border-radius: 28px;
  border: 1px solid rgba(28, 34, 48, 0.1);
  background: rgba(255, 255, 255, 0.92);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  font-size: 24px;
}

.field input:focus,
.field select:focus {
  border-color: rgba(93, 43, 51, 0.36);
  box-shadow: 0 0 0 4px rgba(93, 43, 51, 0.08);
  background: #fff;
}

.field.inline {
  grid-template-columns: 70px 1fr;
  align-items: center;
}

.login-actions,
.search-layout,
.search-toolbar,
.action-strip,
.order-entry,
.tab-bar,
.order-switches,
.payment-switches {
  display: flex;
  gap: 12px;
  align-items: center;
}

.grow {
  flex: 1;
}

.weekday-filter {
  min-width: 140px;
}

.member-search-shell {
  position: relative;
}

.member-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 108px;
  z-index: 10;
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(28, 34, 48, 0.08);
  box-shadow: 0 22px 40px rgba(28, 34, 48, 0.14);
}

.member-search-dropdown.is-hidden {
  display: none;
}

.action-field {
  justify-content: end;
}

.inline-table-input,
.slip-girl-count-input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(28, 34, 48, 0.12);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  color: #1b2434;
}

.danger-outline {
  color: #7b2f3d;
  border: 1px solid rgba(123, 47, 61, 0.2);
  background: rgba(123, 47, 61, 0.06);
}

.member-search-option {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 18px;
  background: rgba(28, 34, 48, 0.04);
  text-align: left;
  cursor: pointer;
}

.member-search-option strong,
.member-search-option span {
  display: block;
}

.member-search-option span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.hybrid-party-list {
  display: grid;
  gap: 14px;
}

.party-entry-card {
  position: relative;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(28, 34, 48, 0.08);
}

.party-entry-grid {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.party-entry-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.party-search-dropdown {
  position: absolute;
  left: 148px;
  right: 16px;
  top: calc(100% - 8px);
  z-index: 12;
}

.order-builder {
  margin-top: 18px;
  margin-bottom: 18px;
}

.order-entry {
  gap: 16px;
}

.primary-button,
.ghost-button,
.tab-chip,
.shortcut-card,
.mini-option,
.mini-cta,
.seat-action {
  border: 0;
  cursor: pointer;
}

.primary-button,
.ghost-button {
  padding: 18px 34px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 20px;
  font-weight: 700;
}

.primary-button {
  background: linear-gradient(135deg, #28171b, #6e313b);
  color: #fff;
}

.primary-button.danger {
  background: linear-gradient(135deg, #67261e, #b24734);
}

.ghost-button {
  background: rgba(93, 43, 51, 0.06);
  color: #5d2b33;
  border: 1px solid rgba(93, 43, 51, 0.14);
}

.primary-button:disabled,
.ghost-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.compact {
  padding: 11px 16px;
}

.full {
  width: 100%;
}

.screen,
.tab-screen,
.mode-screen {
  display: none;
  animation: rise 220ms ease;
}

.screen.is-visible,
.tab-screen.is-visible,
.mode-screen.is-visible {
  display: block;
}

.screen:not(#home):not(#seats) {
  padding: 24px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 16px;
}

#seats {
  width: 100%;
  min-height: calc(100vh - var(--app-header-height));
  margin: 0;
  padding: 24px;
}

#seats .content-columns {
  grid-template-columns: minmax(0, 1fr);
}

#seats .panel,
#seats .panel.wide {
  grid-column: 1 / -1;
  width: 100%;
}

#home {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: calc(100vh - var(--app-header-height));
  margin: 0;
  padding: 36px 36px 140px;
  border-radius: 0;
  background: url("./media/home-background-20260410-v3.png") center center / cover no-repeat;
  box-shadow: none;
}

#home::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(45, 32, 28, 0.07)),
    repeating-linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.03) 0 2px,
      rgba(0, 0, 0, 0.02) 2px 4px
    ),
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.03), transparent 26%);
  mix-blend-mode: multiply;
  opacity: 0.68;
  pointer-events: none;
}

#home::after {
  content: none;
}

.header-actions {
  display: flex;
  gap: 12px;
}

.hero-header h2,
.screen-header h3,
.panel h4,
.home-panel-head h3 {
  margin: 0;
}

.home-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  gap: 26px;
}

.hero-header {
  justify-content: flex-end;
  align-items: stretch;
  margin-bottom: 0;
}

.hero-status-card {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: #f7efe7;
  border: 0;
  text-shadow: 0 2px 12px rgba(63, 20, 17, 0.24);
  font-family: "Outfit", "Noto Sans JP", sans-serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.home-shortcuts-panel {
  width: 100%;
  padding: 12px 0 34px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.home-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 22px;
}

.shortcut-card {
  position: relative;
  overflow: hidden;
  min-height: 168px;
  padding: 24px 24px 22px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 16% 18%, rgba(214, 234, 230, 0.12), transparent 20%),
    radial-gradient(circle at 84% 84%, rgba(181, 219, 211, 0.06), transparent 24%),
    repeating-linear-gradient(
      172deg,
      rgba(46, 58, 56, 0.16) 0 6px,
      rgba(28, 33, 32, 0.14) 6px 12px,
      rgba(62, 77, 74, 0.1) 12px 18px
    ),
    linear-gradient(180deg, rgba(42, 51, 50, 0.98), rgba(28, 33, 32, 1));
  border: 1px solid rgba(77, 108, 102, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(222, 244, 239, 0.08),
    inset 0 -10px 18px rgba(9, 13, 12, 0.22),
    0 12px 24px rgba(10, 15, 14, 0.12);
  display: grid;
  align-content: space-between;
  justify-items: start;
  text-align: left;
  color: #f5efe9;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, filter 180ms ease;
}

.shortcut-card:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(222, 244, 239, 0.12),
    inset 0 -10px 18px rgba(9, 13, 12, 0.28),
    0 16px 26px rgba(10, 15, 14, 0.16);
  border-color: rgba(114, 154, 146, 0.28);
}

.shortcut-card.is-bubbling {
  transform: translateY(2px) scale(0.985);
  filter: saturate(0.96);
}

.shortcut-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 54%);
  pointer-events: none;
}

.shortcut-card::after {
  content: none;
}

.shortcut-card strong {
  position: relative;
  z-index: 1;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  white-space: normal;
}

.shortcut-card small {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 8px;
  color: rgba(233, 245, 241, 0.66);
  font-size: 13px;
}

.shortcut-index {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  margin-bottom: 18px;
  padding: 0 10px;
  border-radius: 12px;
  background: rgba(222, 244, 239, 0.08);
  color: rgba(240, 249, 246, 0.82);
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 13px;
}

.accent-primary,
.accent-secondary,
.accent-neutral,
.accent-soft {
  background:
    radial-gradient(circle at 16% 18%, rgba(214, 234, 230, 0.12), transparent 20%),
    radial-gradient(circle at 84% 84%, rgba(181, 219, 211, 0.06), transparent 24%),
    repeating-linear-gradient(
      172deg,
      rgba(46, 58, 56, 0.16) 0 6px,
      rgba(28, 33, 32, 0.14) 6px 12px,
      rgba(62, 77, 74, 0.1) 12px 18px
    ),
    linear-gradient(180deg, rgba(42, 51, 50, 0.98), rgba(28, 33, 32, 1));
  color: #f5efe9;
}


.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.summary-card {
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 252, 0.92));
}

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

.summary-card strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 30px;
}

.tone-navy {
  border-top: 6px solid var(--navy);
}

.tone-copper {
  border-top: 6px solid var(--copper);
}

.tone-emerald {
  border-top: 6px solid var(--emerald);
}

.content-columns {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.panel {
  grid-column: span 4;
  padding: 20px;
}

.panel.wide {
  grid-column: span 8;
}

.order-status-panel {
  margin-bottom: 16px;
}

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

.customer-preview,
.table-like,
.stack-item,
.seat-select,
.receipt-preview,
.formula-box,
.shift-graph,
.empty-state,
.free-layout-stage,
.report-box {
  background: rgba(255, 255, 255, 0.58);
  border-radius: 20px;
}

.customer-preview,
.table-like,
.receipt-preview,
.formula-box,
.empty-state,
.report-box {
  padding: 14px 16px;
}

.empty-state {
  color: var(--muted);
}

.preview-main {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.preview-main span {
  font-size: 13px;
  color: var(--muted);
}

.preview-grid,
.editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.multi-guest-list {
  display: grid;
  gap: 10px;
}

.check-grid {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  white-space: nowrap;
}

.check-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  accent-color: #0b5f91;
}

.preview-grid div,
.stack-item {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.preview-grid span,
.stack-item span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--muted);
}

.slip-customer-inline-input {
  width: 100%;
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: "Noto Sans JP", sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.slip-customer-inline-input::placeholder {
  color: rgba(28, 39, 59, 0.44);
}

.order-status-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.order-status-step {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(28, 34, 48, 0.08);
}

.order-status-step.is-current {
  border-color: rgba(93, 43, 51, 0.22);
  box-shadow: inset 0 0 0 1px rgba(93, 43, 51, 0.08);
}

.order-status-step.is-last {
  background: rgba(111, 49, 59, 0.08);
}

.order-status-step span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.top-gap {
  margin-top: 14px;
}

.mode-screen .content-columns {
  margin-top: 24px;
}

#slip-create .content-columns {
  grid-template-columns: minmax(0, 1fr);
}

#slip-create .panel,
#slip-create .panel.wide {
  grid-column: 1 / -1;
  width: 100%;
}

#mode-visiter .panel.wide {
  grid-column: 1 / -1;
}

#mode-visiter .headcount-grid {
  margin-top: 22px;
}

#mode-visiter .seat-select {
  margin-top: 22px;
}

.full-span {
  grid-column: 1 / -1;
}

.headcount-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mini-option {
  padding: 12px 10px;
  border-radius: 14px;
  background: rgba(28, 34, 48, 0.06);
}

.mini-option.is-selected {
  background: rgba(29, 135, 112, 0.14);
  color: #146d5b;
}

.tab-bar,
.order-switches {
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tab-chip {
  padding: 11px 16px;
  border-radius: 999px;
  background: rgba(28, 34, 48, 0.06);
}

.tab-chip.is-current {
  background: linear-gradient(135deg, #111827, #123d92);
  color: #fff;
}

.seat-select {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.seat-layout-picker {
  position: relative;
  min-height: 300px;
  margin-top: 14px;
  padding: 12px;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.14)),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 35px,
      rgba(28, 34, 48, 0.04) 35px,
      rgba(28, 34, 48, 0.04) 36px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 35px,
      rgba(28, 34, 48, 0.04) 35px,
      rgba(28, 34, 48, 0.04) 36px
    );
}

.seat-layout-node {
  position: absolute;
  width: 110px;
  min-height: 76px;
  padding: 10px;
  border: 1px solid rgba(28, 34, 48, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 24px rgba(28, 34, 48, 0.08);
  text-align: left;
}

.seat-layout-node.is-selected {
  box-shadow: 0 0 0 2px rgba(18, 61, 146, 0.28), 0 12px 24px rgba(28, 34, 48, 0.08);
  border-color: rgba(18, 61, 146, 0.36);
}

.seat-layout-node.is-occupied {
  border-color: rgba(178, 71, 52, 0.28);
}

.seat-layout-node strong,
.seat-layout-node span {
  display: block;
}

.seat-layout-node span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.seat-mini {
  padding: 14px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(28, 34, 48, 0.08);
}

.seat-mini.selected {
  background: rgba(37, 99, 235, 0.14);
}

.table-like.large {
  overflow-x: auto;
}

.table-row {
  display: grid;
  gap: 12px;
  align-items: center;
  padding: 12px 8px;
}

.table-row + .table-row {
  border-top: 1px solid var(--line);
}

.table-row.head {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.table-row.three {
  grid-template-columns: 1fr 1fr 0.8fr;
}

.table-row.four {
  grid-template-columns: 1.1fr 0.8fr 0.8fr 1fr;
}

.table-row.five {
  grid-template-columns: 1.2fr 0.7fr 0.8fr 0.9fr 0.9fr;
}

.table-row.six {
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr 1fr 0.8fr;
}

.table-row.eight {
  grid-template-columns: 1fr 1fr 0.6fr 0.8fr 0.7fr 0.9fr 0.7fr 0.7fr;
}

.table-row.order-summary {
  grid-template-columns: 1.1fr 0.8fr 0.8fr 1fr 0.8fr;
}

.table-row.seven {
  grid-template-columns: 1fr 0.7fr 0.7fr 0.7fr 1.2fr 0.9fr 0.8fr;
}

.table-row.nine {
  grid-template-columns: 0.55fr 0.7fr 0.9fr 1.1fr 0.7fr 0.8fr 0.65fr 0.7fr 0.7fr;
}

.table-row.ten {
  grid-template-columns: 0.5fr 0.7fr 0.8fr 1.2fr 0.7fr 0.9fr 0.9fr 0.6fr 0.7fr 0.95fr;
}

.mini-cta {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(31, 182, 166, 0.16);
}

.entry-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: #fff8f3;
}

.entry-mark.is-member {
  background: linear-gradient(135deg, #19325f, #2f66d3);
}

.entry-mark.is-visitor {
  background: linear-gradient(135deg, #5b222c, #8b4857);
}

.table-action-cell {
  display: flex;
  justify-content: center;
}

.slip-party-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.slip-party-action-button {
  min-width: 88px;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  line-height: 1.2;
}

.table-row.is-clickable {
  cursor: pointer;
  transition: background 140ms ease;
}

.table-row.is-clickable:hover {
  background: rgba(37, 99, 235, 0.06);
}

.table-row.is-selected {
  background: rgba(31, 182, 166, 0.1);
}

#slip-detail-sections {
  margin-top: 20px;
}

#slip-detail-sections[hidden] {
  display: none;
}

.receipt-preview {
  min-height: 340px;
}

.receipt-paper {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  border: 1px solid rgba(28, 34, 48, 0.08);
}

.receipt-paper h5 {
  margin: 0 0 12px;
  font-size: 18px;
}

.receipt-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(28, 34, 48, 0.12);
}

.receipt-line-editable {
  align-items: center;
}

.receipt-name-input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(28, 34, 48, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  text-align: right;
  color: var(--ink);
}

.receipt-name-input:focus {
  outline: none;
  border-color: rgba(87, 34, 43, 0.42);
  box-shadow: 0 0 0 4px rgba(87, 34, 43, 0.08);
}

.receipt-total {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 2px solid rgba(28, 34, 48, 0.14);
  display: flex;
  justify-content: space-between;
  font-weight: 800;
}

.history-slip-list {
  display: grid;
  gap: 12px;
}

.history-slip-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(28, 34, 48, 0.08);
}

.history-slip-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 14px;
}

.history-slip-head strong {
  display: block;
  font-size: 17px;
}

.history-slip-head p,
.history-slip-head span {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.history-slip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.history-slip-grid div {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
}

.history-slip-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.history-slip-grid strong {
  display: block;
  line-height: 1.45;
}

.shift-graph {
  padding: 18px;
  overflow-x: auto;
}

.shift-axis {
  display: grid;
  grid-template-columns: 120px repeat(25, minmax(24px, 1fr));
  gap: 4px;
  align-items: center;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
}

.shift-axis span:first-child {
  opacity: 0;
}

.shift-legend {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.cast-cost-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.metric-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(28, 34, 48, 0.08);
}

.metric-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.metric-card strong {
  display: block;
  font-size: 24px;
}

.metric-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.metric-card input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(28, 34, 48, 0.1);
  background: rgba(255, 255, 255, 0.92);
  font-size: 18px;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 6px;
}

.legend-start {
  background: #111827;
}

.legend-active {
  background: #1fb6a6;
}

.legend-end {
  background: #2563eb;
}

.shift-grid {
  display: grid;
  gap: 10px;
}

.shift-row {
  display: grid;
  grid-template-columns: 120px repeat(24, minmax(24px, 1fr));
  gap: 8px;
  align-items: center;
}

.shift-name {
  font-weight: 700;
  font-size: 13px;
}

.shift-track {
  position: relative;
  height: 26px;
  border-radius: 999px;
  grid-column: 2 / -1;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 248, 251, 0.86));
  overflow: hidden;
}

.shift-bar {
  position: absolute;
  top: 3px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #111827 0%, #123d92 55%, #1fb6a6 100%);
  box-shadow: 0 8px 22px rgba(18, 61, 146, 0.18);
}

.shift-time-labels {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  pointer-events: none;
  color: rgba(17, 24, 39, 0.58);
  font-size: 10px;
}

.free-layout-stage {
  position: relative;
  min-height: 520px;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.08)),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 39px,
      rgba(28, 34, 48, 0.05) 39px,
      rgba(28, 34, 48, 0.05) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 39px,
      rgba(28, 34, 48, 0.05) 39px,
      rgba(28, 34, 48, 0.05) 40px
    );
}

#seats .free-layout-stage {
  min-height: calc(100vh - 190px);
  width: 100%;
}

.counter-group-background {
  position: absolute;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(190, 231, 255, 0.68), rgba(167, 218, 255, 0.52));
  border: 1px solid rgba(79, 160, 214, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  cursor: grab;
  z-index: 0;
}

.layout-table {
  position: absolute;
  width: 140px;
  height: 188px;
  padding: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(28, 34, 48, 0.1);
  box-shadow: var(--shadow);
  cursor: grab;
  z-index: 1;
  overflow: hidden;
}

.layout-table.occupied {
  border-color: rgba(200, 110, 75, 0.4);
}

.layout-table-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: calc(12px * var(--seat-scale, 1));
}

.layout-table h5 {
  margin: 0 0 6px;
  font-size: calc(18px * var(--seat-scale, 1));
}

.layout-table p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: calc(13px * var(--seat-scale, 1));
}

.seat-action {
  width: 100%;
  margin-top: auto;
  padding: calc(9px * var(--seat-scale, 1)) calc(12px * var(--seat-scale, 1));
  border-radius: 999px;
  background: rgba(18, 61, 146, 0.12);
  font-size: calc(16px * var(--seat-scale, 1));
}

.seat-action.is-create {
  background: rgba(15, 159, 140, 0.14);
  color: #0f5d57;
}

.seat-action.is-view {
  background: rgba(18, 61, 146, 0.14);
  color: #123d92;
}

.layout-table.is-selected {
  box-shadow: 0 0 0 2px rgba(18, 61, 146, 0.25), var(--shadow);
}

.seat-meta {
  display: flex;
  gap: calc(8px * var(--seat-scale, 1));
  margin: calc(8px * var(--seat-scale, 1)) 0 calc(10px * var(--seat-scale, 1));
  flex-wrap: wrap;
}

.seat-chip {
  padding: calc(4px * var(--seat-scale, 1)) calc(8px * var(--seat-scale, 1));
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.06);
  color: var(--muted);
  font-size: calc(11px * var(--seat-scale, 1));
}

.layout-resize-edge {
  position: absolute;
  border: 0;
  background: transparent;
  z-index: 3;
}

.layout-resize-edge.is-n {
  top: -6px;
  left: 12px;
  right: 12px;
  height: 14px;
  cursor: ns-resize;
}

.layout-resize-edge.is-e {
  top: 12px;
  right: -6px;
  bottom: 12px;
  width: 14px;
  cursor: ew-resize;
}

.layout-resize-edge.is-s {
  left: 12px;
  right: 12px;
  bottom: -6px;
  height: 14px;
  cursor: ns-resize;
}

.layout-resize-edge.is-w {
  top: 12px;
  left: -6px;
  bottom: 12px;
  width: 14px;
  cursor: ew-resize;
}

.layout-resize-edge.is-ne {
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  cursor: nesw-resize;
}

.layout-resize-edge.is-nw {
  top: -6px;
  left: -6px;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
}

.layout-resize-edge.is-se {
  right: -6px;
  bottom: -6px;
  width: 18px;
  height: 18px;
  cursor: nwse-resize;
}

.layout-resize-edge.is-sw {
  left: -6px;
  bottom: -6px;
  width: 18px;
  height: 18px;
  cursor: nesw-resize;
}

.layout-resize-edge.is-n::before,
.layout-resize-edge.is-e::before,
.layout-resize-edge.is-s::before,
.layout-resize-edge.is-w::before,
.layout-resize-edge.is-ne::before,
.layout-resize-edge.is-nw::before,
.layout-resize-edge.is-se::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
}

.layout-resize-edge.is-sw::before {
  content: "";
  position: absolute;
  inset: 0;
}

.counter-group-resize-edge.is-e {
  right: -8px;
}

.counter-group-resize-edge.is-s {
  bottom: -8px;
}

.counter-group-resize-edge.is-se {
  right: -8px;
  bottom: -8px;
}

.seat-editor-card {
  display: grid;
  gap: 14px;
}

.seat-editor-meta {
  display: grid;
  gap: 10px;
}

.seat-editor-row {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.seat-editor-row span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.daily-report-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.analytics-toolbar {
  align-items: center;
}

.analytics-metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.analytics-toolbar {
  align-items: end;
}

.analytics-binder {
  display: flex;
  align-items: end;
  gap: 8px;
  margin-left: auto;
}

.analytics-binder-tab {
  min-width: 120px;
  padding: 14px 18px;
  border: 0;
  border-radius: 18px 18px 0 0;
  background: rgba(17, 24, 39, 0.08);
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.analytics-binder-tab.is-current {
  background: linear-gradient(135deg, #122138 0%, #1b3f8a 100%);
  color: #fff;
  transform: translateY(-4px);
}

.inline-field-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.report-box.large {
  grid-column: span 2;
}

.report-box h4 {
  margin: 0 0 12px;
}

.report-lines {
  display: grid;
  gap: 8px;
}

.report-lines div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.report-memo {
  min-height: 120px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.shift-week-label {
  min-width: 220px;
  justify-content: center;
}

.shift-approval-week-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
}

.shift-approval-inline-metrics {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  margin-right: auto;
}

.shift-approval-inline-metrics .stack-item {
  min-width: 220px;
  padding: 18px 20px;
}

.shift-approval-inline-metrics .stack-item strong {
  font-size: 16px;
}

.shift-approval-inline-metrics .stack-item span {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}

#shift-approval-day-filter {
  min-width: 132px;
  padding: 12px 18px;
  font-size: 18px;
  border-radius: 999px;
}

.shift-approval-day-card {
  cursor: pointer;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 251, 0.9));
  border: 1px solid rgba(28, 34, 48, 0.08);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.shift-approval-day-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(28, 34, 48, 0.08);
}

.shift-approval-day-card.is-active {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.12);
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(244, 248, 251, 0.94));
}

.shift-approval-day-card strong {
  display: block;
  font-size: 18px;
}

.shift-approval-day-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.shift-approval-metrics {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.shift-approval-metrics span {
  color: var(--muted);
  font-size: 13px;
}

.legend-planned {
  background: #ef4444;
}

.shift-approval-planner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.shift-approval-legend {
  margin-top: 8px;
}

.shift-approval-axis {
  margin-bottom: 18px;
  grid-template-columns: 180px 84px 84px 96px 72px repeat(15, minmax(24px, 1fr));
  gap: 8px;
}

.shift-approval-axis span:nth-child(-n + 5) {
  display: flex;
  align-items: center;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.shift-approval-axis span:nth-child(n + 6) {
  text-align: center;
}

.shift-approval-grid {
  display: grid;
  gap: 14px;
}

.shift-approval-row {
  display: grid;
  grid-template-columns: 180px 84px 84px 96px 72px repeat(15, minmax(24px, 1fr));
  gap: 8px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(28, 34, 48, 0.08);
}

.shift-approval-row.is-selected {
  border-color: rgba(37, 99, 235, 0.24);
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.08);
}

.shift-approval-person {
  display: grid;
  gap: 4px;
}

.shift-approval-person strong {
  font-size: 18px;
}

.shift-approval-person small {
  color: var(--muted);
  font-size: 13px;
}

.shift-approval-cell {
  font-size: 14px;
  color: var(--text);
}

.shift-approval-cell strong {
  display: block;
  font-size: 14px;
}

.shift-approval-cell small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.shift-approval-track-wrap {
  min-width: 0;
  grid-column: 6 / -1;
}

.shift-approval-track {
  position: relative;
  height: 42px;
  border-radius: 18px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(17, 24, 39, 0.04) 0,
      rgba(17, 24, 39, 0.04) calc(6.666% - 1px),
      transparent calc(6.666% - 1px),
      transparent 6.666%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 251, 0.9));
  overflow: visible;
}

.shift-approval-bar {
  position: absolute;
  top: 8px;
  height: 24px;
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(28, 34, 48, 0.12);
}

.shift-approval-bar.is-requested {
  background: linear-gradient(90deg, #1d4ed8 0%, #60a5fa 100%);
  opacity: 0.92;
}

.shift-approval-bar.is-planned {
  background: linear-gradient(90deg, #b91c1c 0%, #ef4444 100%);
  z-index: 2;
}

.shift-approval-bar-handle {
  position: absolute;
  top: 2px;
  width: 12px;
  height: 20px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.14);
  cursor: ew-resize;
}

.shift-approval-bar-handle.is-start {
  left: 4px;
}

.shift-approval-bar-handle.is-end {
  right: 4px;
}

.shift-approval-day-card.is-confirmed {
  border-color: rgba(185, 28, 28, 0.28);
  box-shadow: 0 18px 34px rgba(239, 68, 68, 0.14);
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.98), rgba(255, 255, 255, 0.92));
}

.shift-approval-add-row {
  padding-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.modal-card.modal-card-wide {
  width: min(1320px, calc(100vw - 32px));
  max-width: none;
}

.shift-week-confirm-modal-card {
  overflow: visible;
}

.shift-week-confirm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 20px;
  align-items: stretch;
}

.shift-week-confirm-card {
  min-height: 420px;
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(28, 34, 48, 0.08);
  overflow: hidden;
}

.shift-week-confirm-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.shift-week-confirm-axis {
  display: grid;
  grid-template-columns: 170px repeat(15, minmax(28px, 1fr));
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
}

.shift-week-confirm-axis span:first-child {
  color: var(--text);
  font-weight: 700;
}

.shift-week-confirm-axis span:nth-child(n + 2) {
  text-align: center;
}

.shift-week-confirm-row {
  display: grid;
  grid-template-columns: 170px repeat(15, minmax(28px, 1fr));
  gap: 8px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(247, 248, 251, 0.92);
  border: 1px solid rgba(28, 34, 48, 0.08);
}

.shift-week-confirm-meta {
  font-size: 14px;
}

.shift-week-confirm-meta strong {
  display: block;
  font-size: 18px;
}

.shift-week-confirm-track {
  position: relative;
  height: 32px;
  grid-column: 2 / -1;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(17, 24, 39, 0.04) 0,
      rgba(17, 24, 39, 0.04) calc(6.666% - 1px),
      transparent calc(6.666% - 1px),
      transparent 6.666%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 251, 0.9));
}

.shift-week-confirm-bar {
  position: absolute;
  top: 5px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, #b91c1c 0%, #ef4444 100%);
  box-shadow: 0 10px 20px rgba(28, 34, 48, 0.12);
}

.shift-week-confirm-actions {
  justify-content: flex-end;
}

.shift-week-confirm-tabs {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-top: 32px;
}

.shift-week-confirm-tab {
  width: 64px;
  height: 72px;
  border: 0;
  border-radius: 0 16px 16px 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transform: translateX(0);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.shift-week-confirm-tab:hover,
.shift-week-confirm-tab.is-active {
  transform: translateX(-8px);
  box-shadow: 0 14px 24px rgba(28, 34, 48, 0.18);
}

.shift-week-confirm-tab[data-shift-week-confirm-index="0"] { background: #ef4444; }
.shift-week-confirm-tab[data-shift-week-confirm-index="1"] { background: #16a34a; }
.shift-week-confirm-tab[data-shift-week-confirm-index="2"] { background: #2563eb; }
.shift-week-confirm-tab[data-shift-week-confirm-index="3"] { background: #eab308; color: #111827; }
.shift-week-confirm-tab[data-shift-week-confirm-index="4"] { background: #6b7280; }
.shift-week-confirm-tab[data-shift-week-confirm-index="5"] { background: #7c3aed; }
.shift-week-confirm-tab[data-shift-week-confirm-index="6"] { background: #f97316; }

.shift-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.shift-status-badge.pending {
  background: rgba(193, 96, 35, 0.12);
  color: #9b4f15;
}

.shift-status-badge.approved {
  background: rgba(31, 182, 166, 0.16);
  color: #0a7a6d;
}

.shift-status-badge.returned {
  background: rgba(165, 36, 66, 0.12);
  color: #8a1d39;
}

.table-row.shift-approval {
  grid-template-columns: 0.9fr 0.72fr 0.72fr 0.72fr 0.72fr 0.85fr 1.2fr;
}

.table-row.shift-approval strong {
  display: block;
}

.table-row.shift-approval small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.shift-approval-add-row {
  padding-top: 18px;
}

.inventory-board {
  display: grid;
  gap: 14px;
}

.inventory-add-grid {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(220px, 1.05fr) minmax(180px, 0.85fr) minmax(320px, 1.15fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: -10px;
}

#inventory-note-input {
  font-size: 14px;
}

#inventory-note-input::placeholder {
  font-size: 14px;
}

#inventory-add-button {
  min-width: 190px;
}

.inventory-delete-button {
  background: rgba(178, 71, 52, 0.12);
  color: #8f3425;
}

.ghost-button.is-applied {
  background: rgba(17, 24, 39, 0.08);
  color: #4b5563;
  border-color: rgba(17, 24, 39, 0.12);
  box-shadow: none;
}

.order-summary-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.order-summary-qty-input {
  width: 96px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(28, 34, 48, 0.1);
  background: rgba(255, 255, 255, 0.94);
}

.inventory-tab-bar {
  margin-bottom: 16px;
}

.inventory-graph-head,
.inventory-graph-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) minmax(260px, 3fr) 120px 170px 220px;
  gap: 14px;
  align-items: center;
}

.inventory-graph-head {
  padding: 0 8px 10px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.inventory-graph-row {
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(28, 34, 48, 0.06);
}

.inventory-item-meta {
  display: grid;
  gap: 4px;
}

.inventory-item-name {
  font-weight: 700;
  color: #10213f;
}

.inventory-item-sub {
  color: var(--muted);
  font-size: 13px;
}

.inventory-bar-track {
  position: relative;
  height: 18px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
  overflow: hidden;
}

.inventory-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #111827 0%, #123d92 55%, #1fb6a6 100%);
}

.inventory-bar-fill-order {
  background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%);
}

.inventory-stock-value {
  font-weight: 700;
  color: #123d92;
}

.inventory-stock-plus {
  color: #dc2626;
}

.payment-switches {
  flex-wrap: nowrap;
  gap: 10px;
}

.receipt-actions {
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.payment-switches .tab-chip {
  white-space: nowrap;
}

.receipt-action-buttons {
  display: flex;
  gap: 12px;
  margin-left: auto;
}

.inventory-order-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  justify-items: start;
}

.inventory-order-label {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.inventory-order-count {
  min-width: 34px;
  font-size: 18px;
  text-align: left;
}

.inventory-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.inventory-actions button {
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(28, 34, 48, 0.06);
  cursor: pointer;
}

.ghost-button.inventory-apply-button {
  min-width: 132px;
  justify-content: center;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}

.ghost-button.inventory-apply-button:enabled,
.ghost-button.inventory-apply-button:enabled:active,
.ghost-button.inventory-apply-button:enabled:focus-visible {
  background: linear-gradient(135deg, #28171b 0%, #6e313b 100%);
  color: #fff;
  border: 0;
  box-shadow: var(--shadow);
}

.inventory-apply-button.is-applied {
  background: rgba(17, 24, 39, 0.08);
  color: #6b7280;
  border-color: rgba(17, 24, 39, 0.1);
  box-shadow: none;
}

.modal-shell {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(11, 18, 32, 0.54);
  z-index: 50;
}

.modal-shell.is-open {
  display: grid;
}

.modal-card {
  width: min(820px, 100%);
  max-height: 80vh;
  overflow: auto;
  padding: 26px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 255, 0.98)),
    linear-gradient(135deg, #e4f0ff, #f4fffd);
  box-shadow: 0 32px 80px rgba(11, 18, 32, 0.28);
}

.modal-meta {
  margin-bottom: 12px;
  color: var(--muted);
}

.modal-copy {
  margin-bottom: 16px;
  color: var(--muted);
}

.modal-copy:empty {
  display: none;
}

.inventory-apply-list {
  display: grid;
  gap: 10px;
}

.inventory-apply-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(120px, 0.9fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.inventory-apply-row.is-current {
  border: 1px solid rgba(93, 43, 51, 0.18);
  box-shadow: inset 0 0 0 1px rgba(93, 43, 51, 0.08);
}

.inventory-apply-row span {
  color: var(--muted);
}

.order-picker-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.category-picker-grid {
  margin-bottom: 16px;
}

.order-category-card {
  min-height: 108px;
  border-radius: 24px;
  border: 1px solid rgba(77, 108, 102, 0.22);
  background:
    radial-gradient(circle at 28% 22%, rgba(214, 234, 230, 0.16), transparent 18%),
    radial-gradient(circle at 72% 74%, rgba(181, 219, 211, 0.06), transparent 22%),
    repeating-linear-gradient(
      172deg,
      rgba(46, 58, 56, 0.18) 0 6px,
      rgba(28, 33, 32, 0.16) 6px 12px,
      rgba(62, 77, 74, 0.12) 12px 18px
    ),
    linear-gradient(180deg, rgba(42, 51, 50, 0.98), rgba(28, 33, 32, 1));
  box-shadow:
    inset 0 1px 0 rgba(222, 244, 239, 0.1),
    inset 0 -12px 18px rgba(9, 13, 12, 0.26),
    0 16px 28px rgba(10, 15, 14, 0.18);
  color: #f5efe9;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.order-category-card:hover {
  transform: translateY(-2px);
  border-color: rgba(114, 154, 146, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(222, 244, 239, 0.14),
    inset 0 -12px 18px rgba(9, 13, 12, 0.3),
    0 20px 34px rgba(10, 15, 14, 0.24);
}

.order-picker-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(18, 61, 146, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(238, 247, 255, 0.9)),
    linear-gradient(135deg, #f4fbff, #ecfff9);
  box-shadow: 0 16px 36px rgba(18, 61, 146, 0.08);
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.order-picker-card:hover {
  transform: translateY(-2px);
  border-color: rgba(18, 61, 146, 0.24);
  box-shadow: 0 22px 42px rgba(18, 61, 146, 0.14);
}

.order-picker-card .eyebrow {
  margin-bottom: 10px;
}

.order-picker-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
  color: #10213f;
}

.order-picker-price {
  font-size: 24px;
  font-weight: 800;
  color: #123d92;
}

.order-picker-note {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.order-picker-note:empty {
  display: none;
}

.order-picker-card button {
  width: 100%;
}

#open-order-modal-button {
  min-width: 124px;
  white-space: nowrap;
}

#confirm-print-button {
  min-width: 104px;
  white-space: nowrap;
}

#close-active-slip-button {
  min-width: 104px;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .home-shortcuts,
  .summary-grid,
  .inventory-board,
  .daily-report-layout,
  .analytics-metric-grid,
  .analytics-chart-grid,
  .cast-cost-summary,
  .order-picker-grid,
  .shift-approval-week-board,
  .shift-approval-planner,
  .shift-approval-plan-summary {
    grid-template-columns: 1fr;
  }

  .shift-approval-inline-metrics {
    margin-left: 0;
    flex-wrap: wrap;
  }

  .panel,
  .panel.wide {
    grid-column: span 12;
  }

  .home-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .app-sidebar {
    width: min(320px, 86vw);
  }
}

@media (max-width: 760px) {
  .login-screen,
  .main-content {
    padding: 16px;
  }

  .login-card {
    padding: 22px;
    margin: 16px;
  }

  .brand-lockup {
    gap: 16px;
  }

  .brand-mark {
    width: 78px;
    height: 78px;
    border-radius: 22px;
    font-size: 34px;
  }

  .brand-lockup strong {
    font-size: 22px;
  }

  .brand-lockup span {
    font-size: 15px;
  }

  .field input,
  .field select {
    font-size: 18px;
    padding: 18px 20px;
  }

  .home-shell {
    gap: 18px;
  }

  .app-header {
    min-height: 86px;
    padding: 14px 16px;
  }

  .app-header-status {
    display: none;
  }

  .app-header-copy strong {
    font-size: 18px;
  }

  .app-menu-button {
    width: 50px;
    height: 50px;
  }

  .app-sidebar {
    top: 86px;
    width: min(320px, 92vw);
    padding: 18px 14px 18px;
  }

  .app-screen-stack {
    padding-top: 86px;
  }

  .screen-header,
  .header-actions,
  .search-layout,
  .search-toolbar,
  .action-strip,
  .order-entry {
    flex-direction: column;
    align-items: stretch;
  }

  .inventory-add-grid {
    grid-template-columns: 1fr;
  }

  .preview-grid,
  .editor-grid,
  .party-entry-grid,
  .headcount-grid,
  .seat-select,
  .daily-report-layout,
  .cast-cost-summary,
  .shift-approval-detail-grid,
  .shift-axis,
  .shift-row,
  .shift-approval-copy-grid {
    grid-template-columns: 1fr;
  }

  .shift-approval-row {
    grid-template-columns: 1fr;
  }

  .shift-row,
  .table-row,
  .table-row.three,
  .table-row.four,
  .table-row.five,
  .table-row.six,
  .table-row.eight,
  .table-row.nine,
  .table-row.seven,
  .table-row.ten {
    grid-template-columns: 1fr;
  }

.shortcut-card {
    min-height: 152px;
    padding: 22px 22px 28px;
  }

  .shortcut-card strong {
    font-size: 18px;
  }
}
