.tpv-page { background: #f2f2f7; }
.tpv-toolbar-shell { position: sticky; top: 0; z-index: 40; padding: 12px clamp(14px, 3vw, 34px); background: rgba(242,242,247,.95); backdrop-filter: blur(18px); }
.tpv-toolbar-shell .app-toolbar { background: #fff; border-radius: 18px; }
.tpv-section-menu { position: absolute; z-index: 50; top: calc(100% + 8px); right: 6px; width: min(290px, calc(100% - 12px)); border-radius: 16px; overflow: hidden; background: #fafafa; box-shadow: 0 12px 36px #0003; }
.tpv-section-menu button { display: block; width: 100%; padding: 15px 18px; border: 0; border-bottom: 1px solid #ededf0; background: transparent; color: #222; font-size: 15px; text-align: left; }
.tpv-section-menu button:hover { background: #f0f0f4; }
.tpv-page .operation-section { scroll-margin-top: 100px; }
.tpv-record { min-width: 0; }
.tpv-record > .order-card { height: 100%; }
.tpv-record-summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #ededf0; list-style: none; cursor: pointer; }
.tpv-record-summary::-webkit-details-marker { display: none; }
.tpv-record-summary > span { flex: 1; min-width: 0; display: grid; gap: 4px; }
.tpv-record-summary strong { font-size: 15px; overflow-wrap: anywhere; }
.tpv-record-summary small { font-size: 12px; color: #73737b; }
.tpv-record-summary b { font-size: 13px; white-space: nowrap; }
.tpv-record-summary::after { content: "+"; width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 50%; background: #242424; color: #fff; font-size: 19px; font-weight: 900; line-height: 1; }
details.tpv-record[open] > .tpv-record-summary::after { content: "−"; }
.tpv-record:not([open]) > .order-card { display: none; }
.tpv-record-summary:focus-visible { outline: 2px solid #666; outline-offset: -2px; }
.operation-action svg { width: 21px; height: 21px; flex-shrink: 0; }
.operation-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
#mobileSales { display: none; }
@media (max-width: 760px) {
  .tpv-toolbar-shell { padding: max(7px, env(safe-area-inset-top)) 12px 8px; }
  .tpv-page .kitchen-layout { padding: 6px 12px 40px; }
  .tpv-page .operation-toolbar { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; }
  .tpv-page .operation-toolbar > .muted { flex: 1; min-width: 0; margin: 0; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tpv-page .operation-toolbar .nav { display: flex; flex-wrap: nowrap; flex-shrink: 0; gap: 4px; }
  .tpv-page .operation-toolbar .operation-action { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #242424; box-shadow: none; }
  .operation-action .action-label { display: none; }
  .tpv-page .operation-toolbar .btn { width: auto; min-height: 44px; }
  .tpv-page .operation-section { border: 0; border-radius: 16px; background: #fff; overflow: hidden; }
  .tpv-page .operation-section-summary { padding: 16px; }
  .tpv-page .operation-section-summary h2 { font-size: 18px; }
  .tpv-page .operation-section-summary p { display: none; }
  .tpv-page .operation-section-content { padding: 0; }
  .tpv-page .orders-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; }
  .tpv-record, .tpv-sale { border-top: 1px solid #ededf0; }
  .tpv-record-summary { padding: 16px; }
  .tpv-record-summary strong { font-size: 16px; }
  .tpv-record-summary b { font-size: 14px; }
  .tpv-record > .order-card { height: auto; border: 0; border-radius: 0; box-shadow: none; padding: 0 14px 16px; }
  .tpv-record:not([open]) > .order-card { display: none; }
  .tpv-record > .order-card > .order-meta:first-child { display: none; }
  .tpv-page .operation-area-block { padding: 12px; border-radius: 12px; }
  .tpv-page .operation-area-head { flex-wrap: wrap; gap: 8px; }
  .tpv-page .kitchen-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .tpv-page .kitchen-actions .btn { flex: 1 1 120px; min-height: 44px; white-space: normal; }
  .tpv-page .sales-summary { margin: 12px; grid-template-columns: 1fr 1fr; }
  .tpv-page .sales-date-picker { grid-column: 1 / -1; }
  .tpv-page #salesSection .table-wrap { display: none; }
  #mobileSales { display: block; }
  .tpv-sale dl { margin: 0; padding: 0 16px 16px; display: grid; gap: 10px; }
  .tpv-sale dl > div { display: flex; justify-content: space-between; gap: 14px; font-size: 13px; }
  .tpv-sale dt { color: #73737b; }
  .tpv-sale dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
  .tpv-page input, .tpv-page select { font-size: 16px; }
}
.tpv-round-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px; }
.tpv-round-head p { display:flex; align-items:center; gap:8px; margin:0; }
.tpv-ready-btn { min-height:36px; padding:0 12px; font-size:12px; }
