.caseta-pos {
  --cp-night: #1c2a2d;
  --cp-muted-light: #b7c5c2;
  --cp-accent: #efbd54;
  container: caseta / inline-size;
  color: var(--ink);
}
.caseta-pos .cp-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.caseta-pos h1, .caseta-pos h2, .caseta-pos p { margin: 0; }
.cp-title h1 { font-size: clamp(2rem, 3.7vw, 3.25rem); font-weight: 650; letter-spacing: -.032em; }
.cp-shift {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0 2px;
  font-size: .83rem;
  font-weight: 650;
}
.cp-shift i { width: 8px; height: 8px; border-radius: 50%; background: #39795d; }
.cp-shift:hover, .cp-text-button:hover, .cp-table-action:hover { text-decoration: underline; text-underline-offset: 3px; }
.caseta-pos .cp-notice {
  padding: 12px 14px;
  margin-bottom: 16px;
  border-left: 3px solid #a87b20;
  background: #fff3d7;
  color: #5c461b;
  line-height: 1.45;
  font-size: .875rem;
}
.cp-overview {
  display: grid;
  grid-template-columns: minmax(8rem, .65fr) minmax(0, 3fr);
  align-items: stretch;
  gap: clamp(16px, 2.3vw, 34px);
  padding: clamp(18px, 2.4vw, 30px);
  background: var(--cp-night);
  color: #fff;
  border-radius: 12px;
  margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}
.cp-capacity { display: grid; align-content: center; justify-items: start; gap: 4px; }
.cp-capacity > span { font-size: .88rem; font-weight: 700; }
.cp-capacity > strong { font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: .98; letter-spacing: -.065em; }
.cp-capacity small, .cp-zones small, .cp-no-zones small { font-size: .76rem; color: var(--cp-muted-light); }
.cp-zones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  align-content: center;
  gap: 20px;
  padding: 0 0 0 clamp(16px, 2.4vw, 32px);
  margin: 0;
  border-left: 1px solid #425153;
  list-style: none;
}
.cp-zone-line { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; line-height: 1.28; }
.cp-zone-line strong { overflow-wrap: anywhere; font-size: .9rem; }
.cp-zone-line > span { color: var(--cp-accent); font-size: .77rem; font-weight: 700; }
.cp-meter { height: 6px; overflow: hidden; background: #4e5d5d; border-radius: 1px; margin: 9px 0 5px; }
.cp-meter > i { display: block; height: 100%; background: var(--cp-accent); }
.cp-no-zones { display: grid; align-content: center; justify-items: start; gap: 5px; }
.cp-no-zones button { background: transparent; border: 0; color: var(--cp-accent); padding: 10px 0; font-weight: 700; text-decoration: underline; }
.cp-workspace { display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(17rem, .92fr); gap: 16px; align-items: start; }
.cp-panel { min-width: 0; background: white; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cp-admissions { display: grid; gap: 16px; min-width: 0; }
.cp-rate-choice { display: grid; gap: 5px; min-width: 0; }
.cp-rate-choice output { font-size: .81rem; line-height: 1.4; color: var(--muted); }
.cp-panel > header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; gap: 12px; border-bottom: 1px solid var(--line); }
.cp-panel h2 { font-size: 1.17rem; line-height: 1.2; letter-spacing: -.03em; }
.cp-panel kbd, .cp-count { font: 650 .76rem/1.1 Inter, Arial, sans-serif; color: #53605e; }
.cp-panel kbd { border: 1px solid #cbd2ce; border-bottom-width: 2px; border-radius: 4px; padding: 3px 5px; }
.cp-count { padding: 4px 9px; border-radius: 12px; background: #edf1ed; }
.cp-body { padding: 18px 20px 20px; }
.cp-panel fieldset { display: grid; gap: 15px; margin: 0; padding: 0; min-width: 0; border: 0; }
.cp-panel fieldset:disabled .btn { opacity: .55; cursor: not-allowed; }
.cp-panel input, .cp-panel select { min-width: 0; }
.cp-panel .cp-plate-input, .cp-lookup input { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.cp-panel .cp-plate-input { font-size: 1.6rem; line-height: 1; padding: 8px 12px; }
.cp-note { font-size: .83rem; color: #52605d; }
.cp-note summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 7px 0; }
.cp-note[open] label { margin-top: 4px; }
.cp-filter { padding: 14px 20px 8px; }
.cp-inside .data-table td, .cp-inside .data-table th { padding: 9px clamp(8px, 1.1vw, 18px); }
.cp-inside .data-table td:first-child, .cp-inside .data-table th:first-child { padding-left: 20px; }
.cp-inside .data-table td:last-child, .cp-inside .data-table th:last-child { text-align: right; padding-right: 20px; }
.cp-inside td small { display: block; color: var(--muted); margin-top: 3px; }
.cp-plate { font-family: ui-monospace, Menlo, monospace; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.cp-table-action, .cp-text-button {
  border: 0;
  background: transparent;
  color: #1d6050;
  font-size: .8rem;
  font-weight: 700;
  padding: 9px 0;
  min-height: 40px;
  cursor: pointer;
}
.cp-table-action { white-space: nowrap; }
.cp-table-action > span { margin-left: 2px; }
.cp-no-results { display: none; color: var(--muted); padding: 20px; font-size: .875rem; }
.cp-inside:has(tbody tr):not(:has(tbody tr:not([hidden]))) .cp-no-results { display: block; }
.cp-lookup { display: grid; gap: 6px; }
.cp-lookup > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 6px; }
.cp-empty { display: grid; justify-items: center; text-align: center; align-content: center; gap: 5px; min-height: 110px; padding: 20px 8px; }
.cp-checkout .cp-empty { min-height: 190px; }
.cp-empty p, .cp-meta, .cp-validity { color: var(--muted); font-size: .81rem; line-height: 1.47; }
.cp-empty strong { font-size: .96rem; }
.cp-ticket-shape {
  position: relative;
  width: 46px;
  height: 30px;
  border: 2px solid #8b9995;
  border-radius: 5px;
  margin-bottom: 10px;
  transform: rotate(-8deg);
  background: #f4f6f3;
}
.cp-ticket-shape::after { content: ''; position: absolute; left: 62%; inset-block: 2px; border-left: 2px dashed #8b9995; }
.cp-quote { margin-top: 20px; }
.cp-quote-id, .cp-total, .cp-validity, .cp-lines > div, .cp-confirmation { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cp-quote-id { margin-bottom: 4px; flex-wrap: wrap; }
.cp-quote-id .cp-plate { font-size: 1.35rem; }
.cp-quote-id > span:nth-child(2) { color: var(--muted); font-size: .81rem; }
.cp-lines { margin: 15px 0 8px; padding: 12px 0 0; border-top: 1px dashed #c8ceca; font-size: .84rem; }
.cp-lines > div { padding: 3px 0; }
.cp-lines dt { color: var(--muted); }
.cp-lines dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.cp-total { padding: 13px 0 0; border-top: 1px solid var(--line); margin-top: 14px; }
.cp-total span { font-size: .85rem; font-weight: 700; }
.cp-total strong { font-size: clamp(1.7rem, 3.3vw, 2.7rem); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.cp-validity .cp-text-button { min-height: 36px; }
.cp-payment { margin-top: 10px; }
.cp-payment .cp-reference-field p { margin-top: 5px; }
.cp-payment:has(option:checked):not(:has(option[value="cash"]:checked)) .cp-cash-field,
.cp-payment:has(option:checked):not(:has(option[value="card"]:checked, option[value="transfer"]:checked)) .cp-reference-field,
.cp-payment:has(option:checked):not(:has(option[value="courtesy"]:checked)) .cp-reason-field { display: none; }
.cp-confirmation { flex-wrap: wrap; background: #eaf3eb; padding: 12px; margin-top: 14px; border-radius: 6px; font-size: .86rem; gap: 4px 12px; }
.cp-confirmation strong { overflow-wrap: anywhere; }
.cp-tabs { display: none; }
@container caseta (min-width: 60rem) {
  .cp-entry fieldset { grid-template-columns: minmax(8rem, .72fr) minmax(0, 1.35fr); align-items: start; }
  .cp-entry .cp-plate-input { height: 45px; }
  .cp-entry .cp-note[open] { grid-column: 1 / -1; }
}
@container caseta (max-width: 43rem) {
  .cp-overview { grid-template-columns: minmax(6rem, .6fr) minmax(0, 1.6fr); }
  .cp-zones { grid-template-columns: 1fr; gap: 12px; max-height: 11.25rem; overflow: auto; }
  .cp-tabs { display: flex; margin: 0 0 13px; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: #eeefea; }
  .cp-tabs button { border: 0; flex: 1; min-height: 44px; border-radius: 6px; font-size: .86rem; font-weight: 700; background: transparent; color: var(--muted); }
  .cp-tabs button[aria-pressed="true"] { background: var(--cp-night); color: white; }
  .cp-workspace { grid-template-columns: minmax(0, 1fr); }
  .cp-admissions { display: contents; }
  .cp-workspace .cp-panel { display: none; }
  .cp-workspace .cp-panel.is-current { display: block; }
  .cp-panel kbd { display: none; }
  .cp-table-action { min-height: 44px; }
}
@container caseta (max-width: 26rem) {
  .cp-panel > header, .cp-body, .cp-filter { padding-inline: 14px; }
  .cp-inside .data-table td:first-child, .cp-inside .data-table th:first-child { padding-left: 12px; }
  .cp-inside .data-table td:last-child, .cp-inside .data-table th:last-child { padding-right: 12px; }
  .cp-inside .data-table td, .cp-inside .data-table th { padding-inline: 6px; }
  .cp-table-action > span { display: none; }
}
