:root {
  --ink: #151224;
  --muted: #6f6878;
  --line: #e6dfe9;
  --soft: #fff7fc;
  --pink: #e64691;
  --pink-2: #f48ac2;
  --purple: #8c56b8;
  --deep: #140f20;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 1080px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 83% 8%, rgba(236, 73, 151, 0.08), transparent 28%),
    linear-gradient(135deg, #fffaff 0%, #fbf8fd 42%, #ffffff 100%);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  font-weight: 700;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  overflow: hidden;
  padding: 18px 18px 20px;
  color: #fff;
  background:
    radial-gradient(circle at 50% 72%, rgba(196, 92, 178, 0.24), transparent 26%),
    linear-gradient(180deg, rgba(23, 15, 35, 0.98), rgba(17, 13, 27, 0.98)),
    #150e20;
  box-shadow: inset -1px 0 rgba(255, 255, 255, 0.08);
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 90% 7%, #f7a0d2 0 1px, transparent 2px),
    radial-gradient(circle at 20% 42%, #a67fc1 0 1px, transparent 2px),
    radial-gradient(circle at 7% 80%, #ee73bd 0 1px, transparent 2px);
  pointer-events: none;
}

.brand,
.nav {
  position: relative;
  z-index: 2;
}

.mobile-menu-toggle {
  display: none;
}

.brand {
  height: 150px;
  text-align: center;
}

.brand-mark {
  display: grid;
  place-items: center;
  height: 116px;
  overflow: hidden;
}

.brand-logo {
  width: 158px;
  max-width: 100%;
  height: 116px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(246, 124, 197, 0.22));
}

.brand-sub {
  margin-top: -2px;
  font-size: 18px;
  letter-spacing: 1px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - 370px);
  overflow-y: auto;
  padding-right: 3px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 50px;
  padding: 0 16px;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 15px;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  color: #cbb4df;
}

.nav-item.active {
  background: linear-gradient(135deg, #ff86c4, #df3f8c);
  box-shadow: 0 14px 24px rgba(224, 65, 142, 0.25);
}

.nav-item.active svg {
  color: #fff;
}

.nav-line {
  height: 1px;
  margin: 6px 14px 4px;
  background: rgba(255, 255, 255, 0.09);
}

.characters {
  position: absolute;
  left: -42px;
  bottom: -92px;
  z-index: 0;
  width: 320px;
  max-width: none;
  opacity: 0.9;
  pointer-events: none;
}

.app {
  min-width: 0;
  margin-left: 260px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 76px;
  padding: 0 24px 0 30px;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.page-title,
.userbar,
.panel-title {
  display: flex;
  align-items: center;
}

.page-title {
  gap: 15px;
}

.page-title h1 {
  margin: 0;
  font-size: 22px;
}

.bat,
.ornament,
.spark {
  color: #5d376e;
}

.spark {
  font-size: 23px;
}

.spark.small {
  font-size: 14px;
}

.userbar {
  gap: 16px;
  font-size: 15px;
  min-width: 0;
  white-space: nowrap;
}

.app-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 13px;
  color: var(--purple);
  background: #fff;
  border: 1px solid #e4d7ec;
  border-radius: 18px;
  text-decoration: none;
}

.app-link svg {
  width: 17px;
}

.ornament {
  font-size: 24px;
  letter-spacing: 4px;
}

.role {
  padding: 8px 14px;
  color: var(--pink);
  background: #fff0f8;
  border: 1px solid #ffd3e8;
  border-radius: 18px;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #f4c8e2;
}

.userbar svg {
  width: 18px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 12px;
  padding: 26px 18px 18px;
}

.stat-card,
.filters,
.panel {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 8px 26px rgba(67, 44, 77, 0.04);
}

.stat-card {
  display: flex;
  align-items: center;
  min-height: 142px;
  padding: 24px 18px;
  gap: 16px;
  overflow: hidden;
  position: relative;
}

.stat-card > div:not(.stat-icon) {
  min-width: 0;
  flex: 1 1 auto;
}

.stat-card::after {
  content: "🦇";
  position: absolute;
  right: -8px;
  bottom: 16px;
  color: rgba(99, 54, 121, 0.07);
  font-size: 72px;
}

.stat-icon {
  display: grid;
  place-items: center;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.stat-icon svg {
  width: 36px;
  height: 36px;
}

.yen-symbol {
  font-size: 48px;
  line-height: 1;
}

.stat-icon.pink {
  color: var(--pink);
  background: #ffe7f4;
}

.stat-icon.purple {
  color: var(--purple);
  background: #f0e4fa;
}

.stat-card h2 {
  margin: 0 0 16px;
  font-size: 16px;
}

.amount {
  margin: 0 0 18px;
  font-size: 27px;
  line-height: 1;
  letter-spacing: 1px;
}

.amount span {
  font-size: 19px;
}

.delta {
  margin: 0;
  font-size: 16px;
}

.delta a {
  margin-left: 16px;
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.outline {
  width: 100%;
  max-width: 176px;
  height: 42px;
  color: var(--purple);
  background: #fff;
  border: 1px solid #a974d0;
  border-radius: 6px;
  font: inherit;
}

.unpaid .amount {
  font-size: 26px;
  white-space: nowrap;
}

.unpaid .outline {
  font-size: 14px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 18px;
  align-items: end;
  min-height: 168px;
  margin: 0 18px 18px;
  padding: 28px 22px 18px;
}

label span {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
}

.field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  padding: 0 12px;
  color: #2c2733;
  background: #fff;
  border: 1px solid #dcd5e0;
  border-radius: 6px;
  font-size: 14px;
  white-space: nowrap;
}

.field input,
.field select {
  width: 100%;
  min-width: 0;
  color: #2c2733;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
}

.field select {
  appearance: none;
}

.field input::placeholder {
  color: #8e8494;
}

.field svg {
  flex: 0 0 auto;
  width: 19px;
  color: #272236;
}

.field.date {
  cursor: pointer;
}

.field.date svg {
  pointer-events: none;
}

.field b {
  padding: 0 15px;
  font-size: 17px;
}

.search {
  color: #8e8494;
}

.filter-actions {
  display: flex;
  align-items: end;
  gap: 12px;
  justify-content: flex-end;
}

.filter-actions button {
  height: 46px;
  border-radius: 6px;
  font: inherit;
}

.clear {
  width: 90px;
  background: #fff;
  border: 1px solid #bdb2c8;
}

.search-btn {
  width: 90px;
  color: #fff;
  background: linear-gradient(135deg, #ee5aa1, #df347f);
  border: 0;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(284px, 316px);
  gap: 16px;
  padding: 0 18px 20px;
}

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

body.page-sales .content-grid,
body.page-casts .content-grid {
  grid-template-columns: 1fr;
}

body.page-sales .side-panels,
body.page-casts #sales,
body.page-casts .news,
body.page-tickets #attendance,
body.page-attendance #tickets {
  display: none;
}

body.page-casts .cast-panel {
  max-width: 760px;
}

body.page-tickets .management-grid,
body.page-attendance .management-grid {
  grid-template-columns: 1fr;
}

body.page-attendance .payment-filter {
  display: none;
}

.sales-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px 14px;
}

.segmented-control {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: #fff7fc;
  border: 1px solid #eaddeb;
  border-radius: 7px;
}

.segmented-control button {
  min-width: 78px;
  height: 36px;
  padding: 0 12px;
  color: #4b365b;
  background: transparent;
  border: 0;
  border-radius: 5px;
  font: inherit;
  cursor: pointer;
}

.segmented-control button.selected {
  color: #fff;
  background: linear-gradient(135deg, #ff86c4, #df3f8c);
}

.sales-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 0 18px 14px;
}

.sales-summary-card {
  min-height: 68px;
  padding: 11px 12px;
  background: #fff7fc;
  border: 1px solid #eaddeb;
  border-radius: 7px;
}

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

.sales-summary-card strong {
  display: block;
  color: #1b1526;
  font-size: 18px;
  line-height: 1;
}

.panel {
  overflow: hidden;
}

.table-panel {
  min-height: 522px;
  overflow-x: auto;
}

body.page-tickets .table-panel {
  overflow-x: visible;
}

body.page-dashboard #sales {
  overflow-x: visible;
}

body.page-dashboard #sales table {
  table-layout: fixed;
}

body.page-dashboard #sales th,
body.page-dashboard #sales td {
  height: 56px;
  padding: 0 6px;
  font-size: 12px;
  line-height: 1.25;
  white-space: normal;
  word-break: keep-all;
}

body.page-dashboard #sales th {
  height: 44px;
}

body.page-dashboard #sales td:first-child,
body.page-dashboard #sales th:first-child {
  width: 22%;
}

body.page-attendance .table-panel {
  overflow-x: visible;
}

body.page-tickets #tickets {
  min-width: 0;
  width: 100%;
}

.panel-title {
  gap: 10px;
  height: 61px;
  padding: 0 22px;
}

.panel-title h2 {
  margin: 0;
  font-size: 22px;
}

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

thead {
  background: #fff4fa;
}

th,
td {
  height: 65px;
  padding: 0 12px;
  text-align: left;
  border-bottom: 1px solid #ede7ef;
  font-size: 14px;
  white-space: nowrap;
}

body.page-sales th,
body.page-sales td {
  padding: 0 8px;
  font-size: 12px;
}

th {
  height: 51px;
}

.heart {
  color: var(--purple);
  font-size: 20px;
}

.vip {
  color: #c8830a;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-width: 73px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 14px;
}

.badge.danger {
  color: var(--pink);
  background: #ffe5f1;
  border: 1px solid #ffd2e6;
}

.badge.paid {
  color: #7f55ae;
  background: #f0e6fb;
  border: 1px solid #e2d0f3;
}

.detail {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 12px;
  color: var(--purple);
  background: #fff;
  border: 1px solid #b98ddd;
  border-radius: 5px;
  font: inherit;
  font-size: 14px;
}

.detail svg {
  width: 16px;
}

.pagination,
.table-footer {
  display: flex;
}

.table-footer {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 70px;
  padding: 12px 20px;
  color: var(--muted);
  border-top: 1px solid #ede7ef;
  font-size: 13px;
}

.pagination {
  justify-content: center;
  gap: 10px;
  padding: 18px 0 24px;
}

.pagination button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #1e1828;
  background: #fff;
  border: 1px solid #e1dbe6;
  border-radius: 6px;
  font: inherit;
}

.pagination .current {
  color: #fff;
  background: linear-gradient(135deg, #ed66a8, #df2e85);
  border: 0;
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 16px;
  padding: 0 18px 24px;
}

body.page-settings .settings-panel:first-child,
body.page-settings .settings-panel:last-child {
  grid-column: 1 / -1;
}

.settings-panel {
  overflow: visible;
  padding-bottom: 18px;
}

.settings-form {
  display: grid;
  gap: 10px;
  padding: 0 18px 14px;
}

.admin-entry-form {
  display: grid;
  gap: 8px;
  padding: 0 18px 14px;
}

.ticket-entry-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  padding: 4px 22px 20px;
}

.ticket-entry-form .wide {
  grid-column: span 1;
}

.attendance-entry-form {
  grid-template-columns: 160px 220px 140px 140px 140px 104px;
  gap: 12px;
  align-items: end;
  padding: 4px 22px 20px;
}

.admin-entry-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.admin-entry-form label span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.admin-entry-form input,
.admin-entry-form select,
.editable-table-input,
.editable-table-select {
  min-width: 0;
  height: 36px;
  padding: 0 8px;
  color: #20172b;
  background: #fff;
  border: 1px solid #dcd5e0;
  border-radius: 5px;
  font: inherit;
  font-size: 12px;
}

.admin-entry-form button,
.row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  color: #fff;
  background: linear-gradient(135deg, #ff86c4, #df3f8c);
  border: 0;
  border-radius: 5px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.ticket-entry-form button {
  grid-column: 4;
  min-height: 36px;
}

.ticket-history-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 0 22px 16px;
}

.ticket-summary-card {
  min-height: 72px;
  padding: 12px 14px;
  background: #fff7fc;
  border: 1px solid #eaddeb;
  border-radius: 7px;
}

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

.ticket-summary-card strong {
  display: block;
  color: #1b1526;
  font-size: 21px;
  line-height: 1;
}

.row-action.delete {
  color: var(--pink);
  background: #fff;
  border: 1px solid #f0bdd8;
}

.editable-table-input,
.editable-table-select {
  width: 100%;
}

.ticket-edit-list {
  display: grid;
  gap: 12px;
  padding: 0 22px 22px;
}

.ticket-edit-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 12px;
  align-items: end;
  padding: 14px;
  background: linear-gradient(180deg, #fff, #fffafd);
  border: 1px solid #eaddeb;
  border-radius: 7px;
}

.ticket-edit-head {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 3px;
}

.ticket-edit-head strong {
  font-size: 15px;
}

.ticket-edit-head small {
  color: var(--muted);
  font-size: 12px;
}

.ticket-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  color: var(--purple);
  background: #f2e8fb;
  border: 1px solid #e2d0f3;
  border-radius: 999px;
  font-size: 12px;
}

.ticket-edit-card .wide {
  grid-column: span 2;
}

.ticket-edit-card label {
  display: grid;
  gap: 6px;
}

.ticket-edit-card label span {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.ticket-edit-actions {
  display: flex;
  gap: 6px;
  grid-column: 1 / -1;
  justify-content: flex-end;
  align-self: end;
}

.ticket-edit-actions .row-action {
  min-width: 58px;
}

.ticket-edit-actions .row-action.ghost {
  color: var(--purple);
  background: #fff;
  border-color: #caa8e2;
}

.ticket-order-detail {
  display: none;
  grid-column: 1 / -1;
  gap: 12px;
  padding: 14px;
  background: #fff7fc;
  border: 1px solid #efd7e8;
  border-radius: 7px;
}

.ticket-edit-card.show-detail .ticket-order-detail {
  display: grid;
}

.ticket-order-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ticket-order-meta div,
.ticket-order-totals span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
  background: #fff;
  border: 1px solid #eaddeb;
  border-radius: 7px;
}

.ticket-order-meta span,
.ticket-order-totals span {
  color: var(--muted);
  font-size: 11px;
}

.ticket-order-meta strong,
.ticket-order-totals strong {
  color: var(--ink);
  font-size: 14px;
}

.ticket-order-table {
  overflow: hidden;
  background: #fff;
  border: 1px solid #eaddeb;
  border-radius: 7px;
}

.ticket-order-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) 100px 54px 110px 100px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid #f0e6ef;
  font-size: 13px;
}

.ticket-order-row:first-child {
  border-top: 0;
}

.ticket-order-row.head {
  color: var(--muted);
  background: #fff0f8;
  font-size: 12px;
}

.ticket-order-row b,
.ticket-order-row small {
  display: block;
}

.ticket-order-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.ticket-order-totals {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.menu-settings-form {
  grid-template-columns: 120px minmax(180px, 1fr) 100px 100px;
}

#menu-nomination {
  grid-column: 1;
}

#menu-payroll-category {
  grid-column: 2 / span 2;
}

#add-menu-item {
  grid-column: 4;
}

.staff-settings-form {
  grid-template-columns: minmax(0, 1fr) 100px;
}

#staff-name,
#staff-color,
#add-staff {
  grid-column: 1 / -1;
}

.tax-settings-form {
  grid-template-columns: repeat(2, minmax(160px, 1fr)) 100px;
  align-items: end;
}

.tax-settings-form label {
  display: grid;
  gap: 7px;
}

.adjustment-settings-form {
  grid-template-columns: minmax(160px, 0.55fr) minmax(220px, 1fr) 120px;
  align-items: end;
}

.adjustment-settings-form label {
  display: grid;
  gap: 7px;
}

.sync-settings-form {
  grid-template-columns: minmax(220px, 1fr) 110px 120px;
  align-items: end;
}

.sync-settings-form label {
  display: grid;
  gap: 7px;
}

.sync-info {
  display: grid;
  gap: 6px;
  padding: 12px;
  color: #2b2235;
  background: #fff7fc;
  border: 1px solid #eaddeb;
  border-radius: 7px;
}

.sync-info small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  word-break: break-all;
}

.settings-form input,
.settings-form select {
  min-width: 0;
  height: 42px;
  padding: 0 10px;
  color: #20172b;
  background: #fff;
  border: 1px solid #dcd5e0;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
}

.settings-form button,
.settings-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  color: #fff;
  background: linear-gradient(135deg, #ff86c4, #df3f8c);
  border: 0;
  border-radius: 6px;
  font: inherit;
}

.settings-list {
  display: grid;
  gap: 10px;
  padding: 0 18px;
}

.settings-group {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #fff7fc;
  border: 1px solid #eaddeb;
  border-radius: 7px;
}

.settings-group > strong {
  color: var(--purple);
}

.settings-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 110px 130px 42px;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 8px;
  background: #fff;
  border: 1px solid #e3dbe7;
  border-radius: 7px;
}

.menu-settings-row {
  grid-template-columns: minmax(180px, 1fr) 96px 96px 130px 42px;
}

.settings-row input {
  width: 100%;
  height: 34px;
  padding: 0 8px;
  border: 1px solid #e3dbe7;
  border-radius: 5px;
  font: inherit;
}

.settings-row select {
  width: 100%;
  height: 34px;
  padding: 0 8px;
  border: 1px solid #e3dbe7;
  border-radius: 5px;
  font: inherit;
}

.payroll-rate-row {
  grid-template-columns: minmax(120px, 1fr) 120px;
}

.settings-row button {
  min-height: 34px;
  color: var(--pink);
  background: #fff;
  border: 1px solid #f0bdd8;
}

.staff-master-list .settings-row {
  grid-template-columns: 1fr 42px;
}

.staff-master-list .avatar-chip {
  display: inline-grid;
  width: 32px;
  height: 32px;
  margin-right: 10px;
  font-size: 15px;
  vertical-align: middle;
}

.management-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  gap: 16px;
  padding: 0 18px 20px;
}

.management-grid .table-panel {
  min-height: 360px;
}

.payroll-panel {
  margin: 0 18px 20px;
  overflow: visible;
}

.payroll-controls {
  display: grid;
  grid-template-columns: 170px 160px 120px 140px 100px 90px;
  gap: 12px;
  align-items: end;
  padding: 0 18px 16px;
}

.payroll-controls .search-btn {
  height: 46px;
  width: 90px;
  border-radius: 6px;
  font: inherit;
}

.payroll-scroll {
  width: 100%;
  overflow: visible;
  border-top: 1px solid #ede7ef;
}

.payroll-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  font-size: 10px;
  background: #fff;
}

.payroll-table th,
.payroll-table td {
  height: 30px;
  padding: 0 2px;
  color: #111;
  text-align: center;
  border: 1px solid #252525;
  font-size: 10px;
  font-weight: 700;
  white-space: normal;
  line-height: 1.15;
}

.payroll-table thead th {
  height: 30px;
  background: #f0f0f0;
}

.payroll-name-row th {
  background: #fff;
  border-top: 3px solid #bfbfbf;
  font-size: 12px;
}

.payroll-table tbody th {
  background: #fff;
  font-weight: 700;
}

.payroll-table .zero {
  color: #111;
}

.payroll-table .payroll-input {
  width: 100%;
  min-width: 0;
  height: 25px;
  padding: 0 2px;
  text-align: right;
  background: #fffdfd;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  outline: 0;
  font: inherit;
}

.payroll-table .payroll-input:focus,
.editable-table-input:focus,
.editable-table-select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 2px rgba(230, 70, 145, 0.14);
}

.payroll-table .payroll-remote-input {
  min-width: 90px;
  text-align: right;
}

.payroll-table tfoot td,
.payroll-table tfoot th {
  height: 34px;
  background: #fafafa;
  border-color: #bfbfbf;
  font-size: 11px;
}

.payroll-total-label {
  text-align: right !important;
}

.panel-title-split {
  justify-content: space-between;
}

.panel-title-split > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-title-split strong {
  color: var(--purple);
  font-size: 13px;
}

.empty-table {
  height: 120px;
  color: var(--muted);
  text-align: center;
  white-space: normal;
}

.empty-side {
  margin: 0 20px 16px;
  padding: 24px 16px;
  color: var(--muted);
  background: #fff7fc;
  border: 1px solid #eaddeb;
  border-radius: 7px;
  font-size: 13px;
}

.side-panels {
  display: grid;
  gap: 16px;
  align-content: start;
}

.cast-panel {
  padding-bottom: 16px;
}

.cast-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  width: calc(100% - 40px);
  min-height: 66px;
  margin: 0 20px 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg, #fff, #fff8fc);
  border: 1px solid #e2dbe6;
  border-radius: 7px;
}

.rank {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: linear-gradient(135deg, #ed66a8, #8c56b8);
  border-radius: 50%;
  font-size: 16px;
}

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

.cast-row strong {
  margin-bottom: 5px;
  font-size: 15px;
}

.cast-row small {
  color: var(--muted);
  font-size: 12px;
}

.news {
  min-height: 230px;
}

.news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ede7ef;
}

.news-head .panel-title {
  height: 48px;
  padding-right: 8px;
}

.news-head h2 {
  font-size: 18px;
}

.news-head a {
  margin-right: 18px;
  color: var(--pink);
  font-size: 12px;
  text-decoration: none;
}

.news ul {
  list-style: none;
  margin: 0;
  padding: 6px 22px 12px;
}

.news li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.55;
}

.news li span {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: #ee9ac8;
}

.news p {
  margin: 0;
  font-weight: 600;
}

@media (max-width: 1500px) {
  .ticket-entry-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ticket-entry-form button {
    grid-column: 4;
  }

  .ticket-edit-card {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ticket-edit-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (max-width: 1300px) {
  body {
    min-width: 980px;
  }

  .sidebar {
    width: 232px;
    padding-inline: 14px;
  }

  .app {
    margin-left: 232px;
  }

  .brand {
    height: 116px;
  }

  .word {
    font-size: 46px;
    letter-spacing: 8px;
  }

  .cross {
    left: 100px;
  }

  .brand-sub {
    font-size: 15px;
  }

  .nav {
    max-height: calc(100vh - 330px);
  }

  .nav-item {
    height: 46px;
    font-size: 14px;
  }

  .characters {
    width: 220px;
  }

  .filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sales-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ticket-entry-form,
  .attendance-entry-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .attendance-entry-form button {
    grid-column: 3;
  }

  .ticket-edit-card .wide {
    grid-column: span 1;
  }

  .filter-actions {
    grid-column: auto;
    justify-content: flex-end;
  }

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

  .content-grid {
    grid-template-columns: 1fr;
  }

  .management-grid,
  .admin-settings-grid {
    grid-template-columns: 1fr;
  }

  .payroll-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  body {
    min-width: 0;
    overflow-x: hidden;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 44px;
    align-items: center;
    width: 100%;
    min-height: 0;
    padding: 8px 10px;
    overflow: visible;
    box-shadow: 0 10px 28px rgba(20, 15, 32, 0.18);
  }

  .brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 58px;
  }

  .brand-mark {
    height: 52px;
  }

  .brand-logo {
    width: 94px;
    height: 52px;
  }

  .brand-sub,
  .characters {
    display: none;
  }

  .mobile-menu-toggle {
    position: relative;
    z-index: 45;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
  }

  .mobile-menu-toggle svg {
    width: 24px;
    height: 24px;
  }

  .nav {
    grid-column: 1 / -1;
    display: none;
    grid-template-columns: 1fr;
    gap: 7px;
    max-height: none;
    overflow: visible;
    padding: 8px 0 2px;
  }

  .nav-line {
    display: none;
  }

  body.mobile-nav-open .nav {
    display: grid;
  }

  .nav-item {
    width: 100%;
    height: 44px;
    gap: 8px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 13px;
  }

  .nav-item svg {
    width: 18px;
    height: 18px;
  }

  .app {
    margin-left: 0;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    height: auto;
    gap: 10px;
    padding: 14px 14px 12px;
  }

  .page-title {
    gap: 9px;
  }

  .page-title h1 {
    font-size: 21px;
  }

  .userbar {
    width: 100%;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    font-size: 13px;
  }

  .ornament {
    display: none;
  }

  .app-link {
    height: 34px;
    padding: 0 11px;
  }

  .role {
    padding: 7px 11px;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 10px 10px;
  }

  .stat-card {
    min-height: 112px;
    padding: 18px 14px;
  }

  .stat-icon {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
  }

  .stat-icon svg {
    width: 28px;
    height: 28px;
  }

  .amount {
    font-size: 24px;
  }

  .filters {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    margin: 0 10px 12px;
    padding: 16px 14px;
  }

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

  .filter-actions button,
  .clear,
  .search-btn {
    width: 100%;
  }

  .content-grid,
  .management-grid,
  .admin-settings-grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
    padding: 0 10px 14px;
  }

  .side-panels {
    display: grid;
    gap: 12px;
  }

  .sales-toolbar {
    align-items: stretch;
    flex-direction: column;
    padding: 0 14px 12px;
  }

  .segmented-control {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .segmented-control:first-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .segmented-control button {
    min-width: 0;
    padding: 0 6px;
    font-size: 12px;
  }

  .sales-summary,
  .ticket-history-summary,
  .ticket-order-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-inline: 14px;
  }

  .panel-title {
    min-height: 56px;
    height: auto;
    padding: 14px;
  }

  .panel-title h2 {
    font-size: 20px;
  }

  .table-panel {
    min-height: 0;
    overflow-x: auto;
  }

  body.page-dashboard #sales {
    overflow-x: auto;
  }

  table {
    min-width: 760px;
  }

  .ticket-entry-form,
  .attendance-entry-form,
  .ticket-edit-card,
  .payroll-controls,
  .menu-settings-form,
  .staff-settings-form,
  .tax-settings-form,
  .adjustment-settings-form,
  .sync-settings-form {
    grid-template-columns: 1fr;
    padding-inline: 14px;
  }

  .ticket-entry-form button,
  .attendance-entry-form button,
  #menu-nomination,
  #menu-payroll-category,
  #add-menu-item {
    grid-column: 1 / -1;
  }

  .ticket-edit-list,
  .settings-list {
    padding-inline: 14px;
  }

  .ticket-edit-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .ticket-edit-card .wide,
  .ticket-order-detail,
  .ticket-edit-actions {
    grid-column: 1 / -1;
  }

  .ticket-edit-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ticket-order-meta,
  .complete-receipt div {
    grid-template-columns: 1fr;
  }

  .settings-row,
  .menu-settings-row,
  .payroll-rate-row,
  .staff-master-list .settings-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .settings-row button {
    width: 100%;
  }

  .payroll-scroll {
    margin-inline: 10px;
    overflow-x: auto;
  }

  .payroll-table {
    min-width: 1180px;
  }
}

@media (max-width: 520px) {
  .welcome {
    display: none;
  }

  .stats .stat-card:nth-child(4) {
    align-items: flex-start;
    flex-direction: column;
  }

  .unpaid .outline {
    max-width: none;
  }

  .sales-summary,
  .ticket-history-summary,
  .ticket-order-totals {
    grid-template-columns: 1fr;
  }
}

.field-app {
  min-width: 1180px;
}

.field-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  padding: 0 28px;
  background:
    linear-gradient(90deg, rgba(24, 15, 36, 0.98), rgba(42, 24, 56, 0.96)),
    var(--deep);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.field-brand,
.field-actions,
.field-section-title,
.cast-select,
.clock-buttons,
.ticket-total {
  display: flex;
  align-items: center;
}

.field-brand {
  gap: 18px;
}

.mini-logo {
  display: grid;
  place-items: center;
  width: 76px;
  height: 52px;
  color: #ffd5f2;
  border: 1px solid rgba(255, 147, 206, 0.35);
  border-radius: 9px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  letter-spacing: 4px;
}

.field-brand h1,
.field-brand p {
  margin: 0;
}

.field-brand h1 {
  font-size: 23px;
}

.field-brand p {
  margin-top: 5px;
  color: #d9c9e4;
  font-size: 13px;
}

.field-actions {
  gap: 12px;
}

.field-actions a,
.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 15px;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  text-decoration: none;
  font-size: 14px;
}

.field-actions svg {
  width: 18px;
}

.sync-pill {
  color: #ffc9e7;
}

.field-shell {
  padding: 20px;
}

.timecard-board {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.field-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 8px 26px rgba(67, 44, 77, 0.04);
}

.field-section-title {
  gap: 10px;
  height: 58px;
  padding: 0 20px;
  border-bottom: 1px solid #eee7f0;
}

.field-section-title svg {
  width: 23px;
  color: var(--purple);
}

.field-section-title h2 {
  margin: 0;
  font-size: 20px;
}

.cast-status {
  padding-bottom: 18px;
}

.cast-select {
  gap: 14px;
  margin: 18px 20px 16px;
  padding: 14px;
  background: #fff7fc;
  border: 1px solid #eaddeb;
  border-radius: 8px;
}

.cast-select img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid #f1c2df;
}

.cast-select span,
.time-status span,
.live-grid span,
.link-card span,
.ticket-total span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.cast-select strong {
  display: block;
  margin-top: 5px;
  font-size: 21px;
}

.time-status {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0 20px 16px;
}

.time-status div,
.live-grid div {
  padding: 14px;
  background: #fff;
  border: 1px solid #e8e0eb;
  border-radius: 8px;
}

.time-status strong,
.live-grid strong {
  display: block;
  margin-top: 7px;
  font-size: 22px;
}

.clock-buttons {
  gap: 10px;
  margin: 0 20px;
}

.clock-buttons button,
.ticket-total button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 18px;
  background: #fff;
  border: 1px solid #d9cfe0;
  border-radius: 7px;
  font: inherit;
}

.clock-buttons button {
  flex: 1;
}

.clock-buttons button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  box-shadow: none;
}

.primary-action {
  color: #fff;
  background: linear-gradient(135deg, #ed5aa0, #df3b88) !important;
  border: 0 !important;
  box-shadow: 0 10px 18px rgba(225, 59, 136, 0.18);
}

.live-summary {
  min-height: 220px;
}

.live-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 20px;
}

.ticket-workspace {
  display: grid;
  grid-template-columns: minmax(740px, 1fr) 340px;
  gap: 16px;
  margin-bottom: 16px;
}

.ticket-form {
  padding-bottom: 20px;
}

.ticket-fields {
  display: grid;
  grid-template-columns: 160px minmax(220px, 1fr) 220px 180px;
  gap: 14px;
  padding: 18px 20px;
}

.order-list {
  margin: 0 20px 18px;
  border: 1px solid #ece4ef;
  border-radius: 8px;
  overflow: hidden;
}

.order-head,
.order-row {
  display: grid;
  grid-template-columns: 1fr 100px 140px;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid #ece4ef;
}

.order-head {
  color: #6c5f75;
  background: #fff4fa;
  font-size: 13px;
}

.order-row:last-child {
  border-bottom: 0;
}

.order-row b {
  text-align: right;
}

.ticket-total {
  justify-content: space-between;
  gap: 16px;
  margin: 0 20px;
  padding: 16px;
  background: #fff7fc;
  border: 1px solid #eaddeb;
  border-radius: 8px;
}

.ticket-total div {
  margin-left: auto;
  text-align: right;
}

.ticket-total strong {
  display: block;
  margin-top: 4px;
  font-size: 30px;
}

.linked-preview {
  padding-bottom: 12px;
}

.link-card {
  margin: 12px 18px;
  padding: 14px;
  background: #fff;
  border: 1px solid #e5ddea;
  border-radius: 8px;
}

.link-card strong {
  display: block;
  margin-top: 6px;
  color: #342742;
  font-size: 14px;
}

.pink-link {
  background: linear-gradient(135deg, #fff4fa, #f4e9fb);
}

.recent-tickets {
  overflow: hidden;
}

.ipad-app {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 9% 10%, rgba(230, 70, 145, 0.22), transparent 22%),
    radial-gradient(circle at 88% 84%, rgba(140, 86, 184, 0.18), transparent 30%),
    linear-gradient(180deg, #171020 0%, #21172b 100%);
  color: #1c1630;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  font-weight: 700;
}

.ipad-shell {
  width: min(100%, 1024px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 14px 14px 24px;
}

.ipad-brandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  margin-bottom: 12px;
  padding: 0 18px;
  color: #fff;
  background:
    radial-gradient(circle at 5% 50%, rgba(237, 90, 160, 0.18), transparent 35%),
    linear-gradient(135deg, rgba(20, 15, 32, 0.96), rgba(34, 22, 45, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  box-shadow: 0 18px 34px rgba(20, 15, 32, 0.24);
}

.ipad-brandmark {
  display: flex;
  align-items: center;
  min-width: 0;
}

.ipad-brandmark img {
  display: block;
  width: 230px;
  max-width: 32vw;
  height: 61px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 15px rgba(255, 213, 242, 0.18));
}

.ipad-clock {
  display: grid;
  justify-items: end;
  gap: 3px;
  min-width: 190px;
  padding: 8px 16px;
  color: #ffd5f2;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 9px;
}

.ipad-clock span {
  color: #d9c9e4;
  font-size: 12px;
}

.ipad-clock strong {
  color: #fff;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 1px;
  font-variant-numeric: tabular-nums;
}

.ipad-syncbar {
  display: grid;
  justify-items: end;
  gap: 5px;
  min-width: 154px;
}

.ipad-syncbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 13px;
  color: #fff;
  background: linear-gradient(135deg, #ff86c4, #df3f8c);
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-size: 13px;
  box-shadow: 0 12px 24px rgba(224, 65, 142, 0.22);
}

.ipad-syncbar svg {
  width: 16px;
}

.ipad-syncbar small {
  color: #d9c9e4;
  font-size: 11px;
}

.ipad-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  min-height: 72px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 8px 26px rgba(67, 44, 77, 0.08);
  backdrop-filter: blur(14px);
}

.ipad-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 54px;
  color: #4b365b;
  border-radius: 6px;
  text-decoration: none;
  font-size: clamp(17px, 2.2vw, 22px);
  white-space: nowrap;
}

.ipad-tab svg {
  width: 22px;
  height: 22px;
}

.ipad-tab.active {
  color: #fff;
  background: linear-gradient(135deg, #ff86c4, #df3f8c);
  box-shadow: 0 12px 24px rgba(224, 65, 142, 0.26);
}

.ipad-view {
  display: none;
}

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

.ipad-card {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 8px 26px rgba(67, 44, 77, 0.05);
}

.ticket-head-card {
  padding: 18px;
}

.ticket-subgrid {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
  margin-top: 14px;
}

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

.ticket-subgrid button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  color: #20172b;
  background: #fff;
  border: 1px solid #e3dbe7;
  border-radius: 7px;
  font: inherit;
  font-size: 16px;
  text-align: left;
}

.ticket-subgrid button svg {
  width: 17px;
  height: 17px;
  color: var(--purple);
}

.table-button-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 9px;
}

.table-button-grid button {
  min-height: 62px;
  color: #4b365b;
  background: #fff;
  border: 1px solid #e3dbe7;
  border-radius: 7px;
  font: inherit;
  font-size: 17px;
}

.table-button-grid button.selected,
.staff-add-grid button.selected {
  color: #fff;
  background: linear-gradient(135deg, #ff86c4, #df3f8c);
  border: 0;
  box-shadow: 0 12px 24px rgba(224, 65, 142, 0.2);
}

.table-button-grid button.is-held:not(.selected) {
  color: #7a3f98;
  background: #f4e9fb;
  border-color: #d9bde9;
}

.table-button-grid button.is-draft:not(.selected) {
  color: #8b2c5f;
  background: #fff2f8;
  border-color: #efb9d5;
}

.table-button-grid button.is-synced:not(.selected) {
  color: #6d6573;
  background: #f7f5f8;
  border-color: #ded7e2;
}

.table-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

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

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d8d0dc;
}

.dot.active {
  background: var(--pink);
}

.dot.held {
  background: var(--purple);
}

.dot.synced {
  background: #8a8191;
}

.ticket-staff-card {
  padding: 18px;
}

.table-timer-card {
  padding: 18px;
}

.timer-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
}

.timer-grid button {
  display: grid;
  gap: 6px;
  align-content: center;
  min-height: 72px;
  color: #4b365b;
  background: #fff;
  border: 1px solid #e3dbe7;
  border-radius: 7px;
  font: inherit;
}

.timer-grid strong,
.timer-grid span {
  display: block;
}

.timer-grid strong {
  font-size: 18px;
}

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

.timer-grid .warning {
  color: #fff;
  background: linear-gradient(135deg, #ff86c4, #df3f8c);
  border: 0;
  box-shadow: 0 12px 24px rgba(224, 65, 142, 0.24);
  animation: timerPulse 1.2s ease-in-out infinite;
}

.timer-grid .warning span {
  color: #fff;
}

.timer-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.timer-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
  color: var(--purple);
  background: #fff;
  border: 1px solid #b98ddd;
  border-radius: 7px;
  font: inherit;
}

@keyframes timerPulse {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-2px);
  }
}

.staff-add-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.staff-add-grid button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 76px;
  color: #2d2038;
  background: #fff;
  border: 1px solid #e7dce9;
  border-radius: 7px;
  font: inherit;
}

.staff-add-grid .staff-empty {
  grid-column: 1 / -1;
  min-height: 58px;
}

.staff-add-grid button.selected .avatar-chip {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.assigned-staff {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  background: #fff7fc;
  border: 1px solid #eaddeb;
  border-radius: 7px;
}

.assigned-staff > span {
  color: var(--muted);
  font-size: 13px;
}

#assigned-staff-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#assigned-staff-list b {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  color: var(--purple);
  background: #f0e6fb;
  border: 1px solid #e2d0f3;
  border-radius: 6px;
  font-size: 14px;
}

#assigned-staff-list em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.ticket-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 14px;
}

.menu-card,
.order-card {
  padding: 18px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

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

.heading-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  color: var(--purple);
  background: #fff;
  border: 1px solid #b98ddd;
  border-radius: 7px;
  font: inherit;
  font-size: 13px;
}

.heading-actions svg {
  width: 17px;
  height: 17px;
}

.section-heading h2 {
  margin: 0;
  color: #20172b;
  font-size: 18px;
}

.section-heading span {
  color: var(--purple);
  font-size: 13px;
}

.category-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.category-row button,
.menu-grid button {
  min-height: 48px;
  color: #4b365b;
  background: #fff;
  border: 1px solid #e3dbe7;
  border-radius: 7px;
  font: inherit;
}

.category-row button.selected {
  color: #fff;
  background: linear-gradient(135deg, #8c56b8, #5d376e);
  border: 0;
}

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

.menu-grid button {
  display: grid;
  align-content: center;
  justify-items: start;
  min-height: 86px;
  padding: 14px;
  text-align: left;
}

.menu-grid strong,
.menu-grid span {
  display: block;
}

.menu-grid span {
  margin-top: 8px;
  color: var(--pink);
  font-size: 18px;
}

.order-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  min-height: 66px;
  border-bottom: 1px solid #eee7f0;
}

.order-item strong,
.order-item span {
  display: block;
}

.order-item span,
.order-note {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.order-item b {
  color: #20172b;
  font-size: 17px;
}

.qty-controls {
  display: inline-grid;
  grid-template-columns: 34px 32px 34px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #dfd3e5;
  border-radius: 6px;
}

.qty-controls button {
  height: 34px;
  color: var(--purple);
  background: #fff;
  border: 0;
  font: inherit;
}

.qty-controls b {
  display: grid;
  place-items: center;
  height: 34px;
  background: #f8f1fb;
  font-size: 14px;
}

.empty-order {
  padding: 14px;
  color: var(--muted);
  text-align: center;
  background: #fff;
  border: 1px dashed #ddcfe5;
  border-radius: 7px;
}

.order-note {
  margin-top: 14px;
  padding: 12px;
  background: #fff7fc;
  border: 1px solid #eaddeb;
  border-radius: 7px;
}

.payment-state {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 12px;
  color: #4b365b;
  background: #fff;
  border: 1px solid #e3dbe7;
  border-radius: 7px;
}

.payment-state span,
.payment-state small {
  color: var(--muted);
  font-size: 12px;
}

.payment-state strong {
  color: #20172b;
  font-size: 18px;
}

.payment-state.paid {
  background: linear-gradient(135deg, #fff7fc, #f4e9fb);
  border-color: #e2d0f3;
}

.payment-state.paid strong {
  color: var(--pink);
}

.ticket-total-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  background:
    radial-gradient(circle at 10% 50%, rgba(237, 90, 160, 0.14), transparent 28%),
    rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 16px 34px rgba(20, 15, 32, 0.18);
}

.ticket-total-bar div {
  margin-right: auto;
}

.ticket-total-bar span,
.ticket-total-bar strong {
  display: block;
}

.ticket-total-bar span {
  color: var(--muted);
  font-size: 13px;
}

.ticket-total-bar strong {
  color: #171020;
  font-size: 34px;
}

.ticket-total-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 148px;
  min-height: 56px;
  border-radius: 7px;
  font: inherit;
  font-size: 16px;
}

.ticket-total-bar button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}

.ghost-action {
  color: var(--purple);
  background: #fff;
  border: 1px solid #b98ddd;
}

.sync-action {
  color: #fff;
  background: linear-gradient(135deg, #ff86c4, #df3f8c);
  border: 0;
  box-shadow: 0 12px 24px rgba(224, 65, 142, 0.22);
}

.paid-action {
  color: #fff;
  background: linear-gradient(135deg, #8c56b8, #5d376e);
  border: 0;
}

.danger-action {
  color: #8b2c5f;
  background: #fff;
  border: 1px solid #f0bdd8;
}

.held-card,
.history-card {
  padding: 18px;
}

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

.held-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 12px;
  color: #20172b;
  background: #fff;
  border: 1px solid #e3dbe7;
  border-radius: 7px;
  font: inherit;
}

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

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

.history-summary div {
  padding: 14px;
  background: #fff;
  border: 1px solid #e3dbe7;
  border-radius: 7px;
}

.history-summary span,
.history-summary strong {
  display: block;
}

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

.history-summary strong {
  margin-top: 6px;
  color: #20172b;
  font-size: 18px;
}

.history-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.history-list .history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 10px 12px;
  color: #20172b;
  background: #fff;
  border: 1px solid #e3dbe7;
  border-radius: 7px;
}

.history-list strong,
.history-list span,
.history-list b,
.history-list small {
  display: block;
}

.history-list span,
.history-list small {
  color: var(--muted);
  font-size: 12px;
}

.history-list b {
  color: var(--pink);
  font-size: 18px;
  text-align: right;
}

.history-list small {
  margin-top: 4px;
  text-align: right;
}

.staff-summary-card {
  padding: 18px;
}

.staff-list-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  border-top: 1px solid #eee7f0;
}

.staff-list-row span {
  color: var(--muted);
  font-size: 14px;
}

.alarm-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 50% 35%, rgba(230, 70, 145, 0.34), transparent 28%),
    rgba(20, 15, 32, 0.92);
}

.alarm-overlay.show {
  display: grid;
}

.alarm-dialog {
  display: grid;
  place-items: center;
  width: min(100%, 760px);
  min-height: 520px;
  padding: 42px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 134, 196, 0.24), transparent 34%),
    linear-gradient(135deg, #21162c, #130d1e);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.alarm-mark {
  font-size: 58px;
}

.alarm-dialog p {
  margin: 8px 0 0;
  color: #ffd5f2;
  font-size: 20px;
}

.alarm-dialog h2 {
  margin: 12px 0;
  color: #fff;
  font-size: clamp(52px, 8vw, 86px);
  line-height: 1.05;
  text-shadow: 0 0 24px rgba(255, 134, 196, 0.42);
}

.alarm-dialog strong {
  color: #f4d9ef;
  font-size: 24px;
}

.alarm-dialog button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 230px;
  min-height: 62px;
  margin-top: 28px;
  color: #fff;
  background: linear-gradient(135deg, #ff86c4, #df3f8c);
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-size: 18px;
}

.payment-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(20, 15, 32, 0.82);
}

.payment-overlay.show {
  display: grid;
}

.edit-overlay,
.complete-overlay,
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 46;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(20, 15, 32, 0.76);
}

.edit-overlay.show,
.complete-overlay.show,
.confirm-overlay.show {
  display: grid;
}

.payment-dialog,
.edit-dialog,
.complete-dialog,
.confirm-dialog {
  width: min(100%, 760px);
  padding: 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.edit-dialog {
  width: min(100%, 520px);
}

.confirm-dialog {
  width: min(100%, 520px);
}

.confirm-dialog p {
  margin: 0;
  color: #20172b;
  font-size: 18px;
  line-height: 1.6;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  margin-top: 16px;
}

.choice-grid:empty {
  display: none;
}

.choice-grid button {
  min-height: 58px;
  color: var(--purple);
  background: #fff;
  border: 1px solid #d9c7e7;
  border-radius: 7px;
  font: inherit;
  font-size: 18px;
}

.choice-grid button.selected {
  color: #fff;
  background: linear-gradient(135deg, #ff86c4, #df3f8c);
  border: 0;
  box-shadow: 0 12px 24px rgba(224, 65, 142, 0.22);
}

.complete-dialog {
  display: grid;
  justify-items: center;
  width: min(100%, 620px);
  text-align: center;
}

.complete-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: #fff;
  background: linear-gradient(135deg, #ff86c4, #df3f8c);
  border-radius: 50%;
  font-size: 28px;
  box-shadow: 0 16px 32px rgba(224, 65, 142, 0.26);
}

.complete-dialog h2 {
  margin: 14px 0 6px;
  color: #20172b;
  font-size: 30px;
}

.complete-dialog p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.complete-receipt {
  display: grid;
  gap: 8px;
  width: 100%;
  margin-top: 18px;
}

.complete-receipt div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #e3dbe7;
  border-radius: 7px;
}

.complete-receipt span {
  color: var(--muted);
}

.complete-receipt strong {
  color: #20172b;
}

.complete-receipt .complete-total {
  min-height: 58px;
  background: #fff7fc;
  border-color: #eaddeb;
}

.complete-receipt .complete-total strong {
  color: var(--pink);
  font-size: 26px;
}

.complete-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-top: 16px;
}

.complete-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  border-radius: 7px;
  font: inherit;
  font-size: 16px;
}

#complete-close {
  color: var(--purple);
  background: #fff;
  border: 1px solid #b98ddd;
}

#complete-new {
  color: #fff;
  background: linear-gradient(135deg, #ff86c4, #df3f8c);
  border: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 70;
  transform: translate(-50%, 18px);
  min-width: 260px;
  max-width: calc(100vw - 32px);
  padding: 14px 18px;
  color: #fff;
  text-align: center;
  background: rgba(20, 15, 32, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

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

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

.edit-field input {
  width: 100%;
  min-height: 58px;
  padding: 0 14px;
  color: #20172b;
  background: #fff;
  border: 1px solid #e3dbe7;
  border-radius: 7px;
  font: inherit;
  font-size: 20px;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.payment-methods button {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 128px;
  padding: 16px;
  color: #2d2038;
  background: #fff;
  border: 1px solid #e3dbe7;
  border-radius: 8px;
  font: inherit;
}

.payment-methods button svg {
  width: 34px;
  height: 34px;
  color: var(--purple);
}

.payment-methods button span {
  color: var(--muted);
  font-size: 12px;
}

.payment-methods button.selected {
  color: #fff;
  background: linear-gradient(135deg, #ff86c4, #df3f8c);
  border: 0;
  box-shadow: 0 14px 26px rgba(224, 65, 142, 0.22);
}

.payment-methods button.selected svg,
.payment-methods button.selected span {
  color: #fff;
}

.payment-summary {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.payment-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #e3dbe7;
  border-radius: 7px;
}

.payment-summary span {
  color: var(--muted);
}

.payment-summary strong {
  color: #20172b;
  font-size: 22px;
}

.payment-summary .payment-grand {
  min-height: 64px;
  background: #fff7fc;
  border-color: #eaddeb;
}

.payment-summary .payment-grand strong {
  color: var(--pink);
  font-size: 32px;
}

.payment-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.payment-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 58px;
  border-radius: 7px;
  font: inherit;
  font-size: 17px;
}

#payment-cancel,
#edit-cancel {
  color: var(--purple);
  background: #fff;
  border: 1px solid #b98ddd;
}

#payment-confirm,
#edit-save {
  color: #fff;
  background: linear-gradient(135deg, #ff86c4, #df3f8c);
  border: 0;
}

.staff-picker {
  padding: 22px 24px 24px;
}

.staff-picker h2,
.month-head h2 {
  margin: 0;
  color: #20172b;
  font-size: clamp(15px, 1.8vw, 18px);
}

.staff-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.staff-chips button {
  display: grid;
  place-items: center;
  gap: 8px;
  width: 108px;
  min-height: 112px;
  padding: 12px 10px;
  color: #2d2038;
  background: #fff;
  border: 1px solid #e7dce9;
  border-radius: 7px;
  font: inherit;
  font-size: 15px;
}

.staff-chips button.selected {
  background: #fff8fc;
  border-color: #e64691;
  box-shadow: 0 0 0 3px rgba(230, 70, 145, 0.14), 0 12px 24px rgba(224, 65, 142, 0.15);
}

.avatar-chip {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #fff;
  border-radius: 50%;
  font-size: 22px;
}

.avatar-chip.coral {
  background: linear-gradient(135deg, #f48ac2, #df3f8c);
}

.avatar-chip.blue {
  background: linear-gradient(135deg, #8c56b8, #6e3d93);
}

.avatar-chip.amber {
  background: linear-gradient(135deg, #f48ac2, #8c56b8);
}

.avatar-chip.mint {
  background: linear-gradient(135deg, #b88ad5, #5d376e);
}

.clock-card {
  min-height: 300px;
  padding: 32px 24px 34px;
  text-align: center;
}

.today {
  margin: 0;
  color: #e64691;
  font-size: clamp(14px, 1.8vw, 17px);
}

.current-time {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-top: 26px;
  color: #171020;
  line-height: 1;
}

.current-time span {
  font-size: clamp(74px, 13vw, 116px);
  letter-spacing: 1px;
}

.current-time small {
  color: #8c56b8;
  font-size: clamp(34px, 5.8vw, 54px);
}

.selected-staff-line {
  margin: 14px 0 0;
  color: var(--purple);
  font-size: 16px;
}

.punch-actions {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 5vw, 42px);
  margin-top: 30px;
}

.punch-actions button {
  width: clamp(124px, 17vw, 150px);
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font: inherit;
  font-size: clamp(18px, 2.4vw, 24px);
}

.punch-actions button:disabled {
  cursor: not-allowed;
  color: #9b92a3 !important;
  background: #e6e2e9 !important;
  box-shadow: inset 0 -1px 0 rgba(80, 75, 100, 0.06) !important;
}

.punch-in {
  background: linear-gradient(135deg, #ff86c4, #df3f8c);
  box-shadow: 0 18px 36px rgba(224, 65, 142, 0.28);
}

.punch-out {
  color: #7a6e84;
  background: #ebe8ee;
  box-shadow: inset 0 -1px 0 rgba(80, 75, 100, 0.06);
}

.punch-out:not(:disabled) {
  color: #fff;
  background: linear-gradient(135deg, #ff86c4, #df3f8c);
  box-shadow: 0 18px 36px rgba(224, 65, 142, 0.28);
}

.month-card {
  min-height: 128px;
  padding: 20px 24px 26px;
}

.month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.month-head span {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  color: var(--purple);
  background: #f0e6fb;
  border: 1px solid #e2d0f3;
  border-radius: 6px;
  font-size: 14px;
}

.empty-log {
  margin: 28px 0 0;
  color: #9d75bd;
  text-align: center;
  font-size: 15px;
}

.timecard-log {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.timecard-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #e3dbe7;
  border-radius: 7px;
}

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

.timecard-row b {
  color: var(--pink);
}

@media (max-width: 720px) {
  .ipad-brandbar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .ipad-brandmark {
    justify-content: center;
  }

  .ipad-brandmark img {
    width: 180px;
    max-width: 70vw;
  }

  .ipad-clock,
  .ipad-syncbar {
    width: 100%;
    min-width: 0;
    justify-items: center;
  }

  .ipad-clock strong {
    font-size: 30px;
  }

  .ipad-syncbar button {
    width: 100%;
  }

  .ipad-shell {
    padding: 8px 10px 18px;
  }

  .ipad-tabs {
    min-height: 56px;
    padding: 6px;
    border-radius: 17px;
  }

  .ipad-tab {
    min-height: 44px;
    gap: 5px;
    font-size: 14px;
  }

  .ipad-tab svg {
    width: 17px;
    height: 17px;
  }

  .ticket-head-card,
  .ticket-staff-card,
  .table-timer-card,
  .menu-card,
  .order-card,
  .staff-summary-card {
    padding: 14px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .heading-actions {
    align-items: flex-end;
    flex-direction: column;
    gap: 7px;
  }

  .heading-actions button {
    min-height: 34px;
    font-size: 12px;
  }

  .table-button-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .table-button-grid button {
    min-height: 48px;
    font-size: 14px;
  }

  .ticket-subgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .ticket-subgrid button {
    min-height: 46px;
    font-size: 14px;
  }

  .staff-add-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

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

  .timer-grid button {
    min-height: 58px;
  }

  .timer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .timer-actions button {
    min-height: 42px;
    font-size: 13px;
  }

  .staff-add-grid button {
    min-height: 58px;
    font-size: 14px;
  }

  .assigned-staff {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ticket-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .category-row {
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
  }

  .category-row button {
    min-height: 42px;
    font-size: 13px;
  }

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

  .menu-grid button {
    min-height: 70px;
    padding: 11px;
    font-size: 13px;
  }

  .menu-grid span {
    font-size: 15px;
  }

  .order-item {
    grid-template-columns: 1fr auto;
    min-height: 54px;
  }

  .order-item > b {
    grid-column: 2;
  }

  .qty-controls {
    grid-column: 1 / -1;
    width: 110px;
  }

  .ticket-total-bar {
    bottom: 8px;
    gap: 8px;
    padding: 10px;
  }

  .ticket-total-bar strong {
    font-size: 24px;
  }

  .ticket-total-bar button {
    min-width: 94px;
    min-height: 48px;
    font-size: 13px;
  }

  .held-card,
  .history-card {
    padding: 14px;
  }

  .history-summary {
    grid-template-columns: 1fr;
  }

  .history-list .history-row {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 12px;
  }

  .history-list b,
  .history-list small {
    text-align: left;
  }

  .alarm-dialog {
    min-height: 430px;
    padding: 28px 18px;
  }

  .alarm-dialog strong {
    font-size: 18px;
  }

  .payment-dialog {
    padding: 16px;
  }

  .edit-dialog {
    padding: 16px;
  }

  .complete-dialog {
    padding: 18px;
  }

  .complete-actions {
    grid-template-columns: 1fr;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .complete-receipt div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
  }

  .edit-field input {
    min-height: 52px;
    font-size: 17px;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }

  .payment-methods button {
    display: flex;
    justify-content: flex-start;
    min-height: 64px;
  }

  .payment-summary .payment-grand strong {
    font-size: 24px;
  }

  .staff-picker {
    padding: 14px 16px 16px;
  }

  .staff-chips {
    gap: 10px;
    margin-top: 10px;
  }

  .staff-chips button {
    width: 66px;
    min-height: 72px;
    border-radius: 12px;
    font-size: 13px;
  }

  .avatar-chip {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .clock-card {
    min-height: 224px;
    padding: 22px 16px 26px;
  }

  .current-time {
    margin-top: 20px;
  }

  .punch-actions {
    margin-top: 20px;
  }

  .punch-actions button {
    width: 110px;
  }

  .ipad-card {
    margin-top: 12px;
  }

  .month-card {
    min-height: 100px;
    padding: 16px;
  }

  .empty-log {
    margin-top: 18px;
  }

  .timecard-row {
    grid-template-columns: 1fr auto;
    min-height: 54px;
    padding: 10px 12px;
  }

  .timecard-row span {
    grid-column: 1 / -1;
  }
}
