/* The daily till keeps the same controls in all four languages. */
.rb-sales.rb-day {
  --s-line: #373739;
  --s-card: #1c1c1e;
  --s-well: #101012;
  --s-gold: var(--gold, #ebc98e);
  --s-faint: #bfbdb7;
  --day-cash: #b5e0c9;
  --day-twint: #d2c9ff;
  gap: 14px;
}
.rb-day > .s-space:first-child {flex-wrap:nowrap; gap:6px}
.rb-day > .s-space h1 {margin:0; line-height:1.15}
.rb-day .s-tools {flex-shrink:0}
.rb-day .s-tools button {border-radius:24px}
.rb-day .s-tools [data-s^="voice"] {padding-inline:14px; background:#2d261b}
.rb-day [data-note].s-ok {
  /* The common toast displays the receipt. Avoid displacing the next payment. */
  position:absolute;
  clip-path:inset(50%);
  width:1px;
  height:1px;
  overflow:hidden;
  padding:0;
}
/* Keep the payment keys available while a previous receipt is visible. */
body:has(.rb-day) #toast {
  top:calc(12px + env(safe-area-inset-top));
  bottom:auto;
  pointer-events:none;
  text-align:center;
}
.rb-day .s-overview .s-hero {
  background:linear-gradient(114deg,#30281e 0%,#201f1d 55%,#1a1a1d 100%);
  border-color:#5d4f36;
  border-radius:18px;
  padding:0 18px 15px;
  gap:10px;
}
.rb-day details[data-fold="date"] {padding:0;background:none;border:0;border-radius:0}
.rb-day details[data-fold="date"] summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:4px 10px;
  min-height:45px;
  border-bottom:1px solid #fff2;
  padding-block:7px;
  font-size:.91rem;
}
.rb-day .day-date,.rb-day .day-history {
  display:inline-flex;
  align-items:center;
  gap:7px;
  vertical-align:middle;
}
.rb-day .day-date .s-icon,.rb-day .day-history .s-icon {width:19px;height:19px;color:var(--s-gold)}
.rb-day .day-date .s-icon:last-child {width:15px}
.rb-day details[open] .day-date .s-icon:last-child {transform:rotate(180deg)}
.rb-day details[data-fold="date"] summary::-webkit-details-marker,
.rb-day details[data-fold="other"] summary::-webkit-details-marker {display:none}
.rb-day .s-dayfilters {padding-bottom:10px}
.rb-day .day-totals {
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:6px 12px;
}
.rb-day .day-totals small {font-size:.8rem}
.rb-day .day-totals .s-value {font-size:1.27rem;color:var(--ink);line-height:1.28}
.rb-day .day-totals > :first-child .s-value {font-size:1.78rem;color:var(--s-gold)}
.rb-day .s-overview .s-track {height:4px;gap:2px;background:#ffffff12}
.rb-day .s-overview .s-track i {background:var(--day-cash)}
.rb-day .s-overview .s-track i+i {background:var(--day-twint)}
.rb-day .day-payments {
  display:flex;align-items:center;justify-content:space-between;
  gap:4px 12px;flex-wrap:wrap;color:#e9e7e2;font-size:.87rem;
}
.rb-day .day-payments > span {display:inline-flex;align-items:center;gap:6px}
.rb-day .day-payments > span::before {content:"";width:7px;height:7px;border-radius:50%;background:var(--day-cash)}
.rb-day .day-payments > span+span::before {background:var(--day-twint)}
.rb-day .day-methods {
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:0;
  border:0;
  background:none;
}
.rb-day .s-tabs {background:#151517;padding:3px;border-radius:14px}
.rb-day .s-tabs button {font-size:.91rem;min-height:44px}
.rb-day .s-tabs button[aria-pressed="true"] {
  background:var(--s-gold);
  border-color:transparent;
  color:#21190f;
}
.rb-day .s-entry .s-tiles {gap:10px}
.rb-day .s-entry .s-tiles button.s-tile {
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  min-height:86px;
  gap:12px;
  padding:12px;
  background:linear-gradient(135deg,#252527,#1c1c1e);
  border-color:#404042;
  border-radius:15px;
}
.rb-day .s-entry .s-tiles button.s-tile > .s-icon {
  width:34px;
  height:34px;
  margin:0;
  stroke-width:1.5;
  color:var(--s-gold);
}
.rb-day .day-service {display:grid;min-width:0;gap:2px}
.rb-day .day-service b {font-size:.94rem;line-height:1.23;font-weight:570}
.rb-day .day-service .s-money {font-size:1.36rem;font-weight:700;color:#fffaf0}
.rb-day .day-service .s-money > span {font-size:.64em;color:var(--s-faint);font-weight:500}
.rb-day .s-entry .s-tiles button.s-tile[aria-pressed="true"] {
  background:linear-gradient(125deg,#473925,#30291c);
  border-color:var(--s-gold);
  box-shadow:inset 0 0 0 1px var(--s-gold);
}
.rb-day .s-tile .s-mark {
  inset-block-start:-5px;inset-inline-end:-3px;
  min-width:22px;width:auto;padding:2px;height:22px;
  border:2px solid #131315;font-size:.78rem;
}
.rb-day .s-entry .s-tiles .s-mark .s-icon {width:13px;height:13px;stroke-width:3;color:#1d180f;margin:0}
.rb-day .s-entry .s-checkout {
  position:static;
  order:0;
  background:#19191b;
  border-color:#403e39;
  border-radius:16px;
  box-shadow:none;
  padding:13px;
}
.rb-day .s-checkout:has(.s-pay button:enabled) {position:static;border-color:#806740}
.rb-day .s-checkout .s-space {line-height:1.25}
.rb-day .s-checkout .s-space small {display:block;font-size:.78rem}
.rb-day .s-checkout .s-value {font-size:1.7rem;color:var(--s-gold)}
.rb-day .s-pay {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.rb-day .s-checkout .s-pay button,.rb-day .s-fast button {
  min-height:56px;
  font-weight:700;
  border-radius:13px;
  gap:8px;
}
.rb-day button.s-cash {background:var(--day-cash);color:#102d20;border-color:transparent}
.rb-day button.s-twint {background:var(--day-twint);color:#211735;border-color:transparent}
.rb-day .s-pay button:disabled {opacity:.66;filter:saturate(.68)}
.rb-day .s-fast b {display:flex;align-items:center;gap:5px;justify-content:center;flex-wrap:wrap}
.rb-day .s-fast b:nth-child(2) {color:var(--day-cash)}
.rb-day .s-fast b:nth-child(3) {color:var(--day-twint)}
.rb-day .s-fast input {min-height:56px}
.rb-day .day-options details {background:transparent}
.rb-day .day-options summary {display:flex;align-items:center;gap:8px;padding-block:12px}
.rb-day .day-options summary .s-icon {color:var(--s-gold);width:19px}
.rb-day .day-options details[open] summary .s-icon {transform:rotate(45deg)}
.rb-day .s-batch {cursor:pointer;min-height:44px;padding-inline:7px}
.rb-day .day-recent {display:block;font-size:.85rem;font-weight:500;color:var(--s-faint);margin-top:3px}
.rb-day [data-s="close"] {min-height:54px}
.rb-day [data-s^="remove:"] {color:#ffb6ad}
.rb-day [data-s^="edit:"] {color:var(--s-gold)}
.rb-day :is(input,button,summary) {scroll-margin-block:75px 105px}
.rb-day:lang(ar) :is(button,summary,b,small) {letter-spacing:normal;line-height:1.48}
@media (max-width:790px) {
  .rb-sales.rb-day,.rb-day .s-daily,.rb-day .s-side {gap:10px}
  .rb-day > .s-space h1 {font-size:clamp(1.58rem,7.5vw,1.94rem)}
  .rb-day .s-tools [data-s^="voice"] {font-size:.88rem;padding-inline:10px}
  .rb-day .s-overview .s-hero {padding:0 13px 10px;gap:6px}
  .rb-day .s-overview .s-tag {font-size:.76rem}
  .rb-day .day-totals small {font-size:.76rem}
  .rb-day .day-totals .s-value {font-size:1.15rem}
  .rb-day .day-totals > :first-child .s-value {font-size:1.53rem}
  .rb-day .day-payments {font-size:.81rem}
  .rb-day .s-entry .s-tiles {gap:8px}
  .rb-day .s-entry .s-tiles button.s-tile {min-height:70px;gap:9px;padding:9px}
  .rb-day .s-entry .s-tiles button.s-tile > .s-icon {width:27px;height:27px}
  .rb-day .day-service b {font-size:.86rem}
  .rb-day .day-service .s-money {font-size:1.2rem}
  .rb-day .s-tabs button {font-size:.83rem}
  .rb-day .s-entry .s-checkout {padding:10px}
  .rb-day .s-checkout .s-value {font-size:1.48rem}
  .rb-day .s-checkout .s-pay button {min-height:54px;font-size:1rem}
}
@media (max-width:350px) {
  .rb-day > .s-space:first-child {flex-wrap:wrap}
  .rb-day .s-entry .s-tiles button.s-tile {padding:8px;gap:5px}
  .rb-day .s-entry .s-tiles button.s-tile > .s-icon {width:21px;height:21px}
  .rb-day .day-service b,.rb-day .s-tabs button {font-size:.8rem}
}
@media (prefers-reduced-motion:no-preference) {
  .rb-day button:enabled:active {transform:scale(.975)}
  .rb-day .s-tile .s-mark {animation:day-check .18s ease-out}
  @keyframes day-check {from{transform:scale(.45);opacity:.35}}
}
