/*
 * Coffee Circle UI foundations, designed Persian-first.
 * Semantic tokens override scattered legacy styles incrementally.
 * Vazirmatn Variable font is self-hosted and licensed under OFL-1.1.
 */
:root {
  /* Semantic colors, radii and focus ring are generated from DTCG tokens.
     Spacing aliases below map to a small self-hosted Open Props subset. */
  --cc-space-1: var(--size-1, .25rem);
  --cc-space-2: var(--size-2, .5rem);
  --cc-space-3: .75rem;
  --cc-space-4: var(--size-3, 1rem);
  --cc-space-5: var(--size-4, 1.25rem);
  --cc-space-6: var(--size-5, 1.5rem);
}

html {scroll-padding-block-start:1rem}
html[lang="fa"] body,
html[lang="fa"] button,html[lang="fa"] input,
html[lang="fa"] select,html[lang="fa"] textarea,
html[lang="fa"] h1,html[lang="fa"] h2,html[lang="fa"] h3,
html[lang="fa"] .brand-name,html[lang="fa"] .drink-choice strong,
html[lang="fa"] .number,html[lang="fa"] .stat-number {
  font-family:"Vazirmatn Variable",Tahoma,system-ui,sans-serif;
}
html[lang="en"] body,html[lang="en"] button,
html[lang="en"] input,html[lang="en"] select,
html[lang="en"] textarea,html[lang="en"] h1,
html[lang="en"] h2,html[lang="en"] h3,
html[lang="en"] .number,html[lang="en"] .stat-number,
html[lang="en"] .brand-name {
  font-family:system-ui,"Segoe UI",sans-serif;
}
html[lang="fa"] .eyebrow,html[lang="fa"] .nav-section,
html[lang="fa"] .section-kicker {text-transform:none;letter-spacing:0}
html[lang="fa"] p,html[lang="fa"] .subtitle,
html[lang="fa"] .info-line {line-height:1.85}
body {color:var(--cc-text);background:var(--cc-background)}
.btn-primary {background:var(--cc-brand);color:var(--cc-on-brand)}
.btn,.drink-choice {transition-timing-function:var(--ease-out-3,ease-out)}
.btn-primary:hover {background:var(--cc-brand-strong)}
.btn:focus-visible,.drink-choice:focus-visible,
.mobile-nav button:focus-visible,.language-switch button:focus-visible {
  outline:3px solid var(--cc-focus);outline-offset:2px;
}
.drink-choice {text-align:start;min-height:148px;gap:var(--cc-space-4)}
.drink-choice strong {line-height:1.6}
.panel,.stat {border-color:var(--cc-border);border-radius:var(--cc-radius-card)}
.quick-entry {background:var(--cc-surface);border:1px solid var(--cc-border);
  border-radius:var(--cc-radius-card);padding:var(--cc-space-4) var(--cc-space-5);
  margin-block-end:var(--cc-space-6)}
.quick-entry label {font-size:14px;margin-block-end:var(--cc-space-2)}
.quick-entry-controls {display:flex;gap:var(--cc-space-2);align-items:stretch}
.quick-entry-controls input {flex:1;min-inline-size:0}
.quick-entry-controls button {min-height:46px;flex-shrink:0}
.quick-entry-help {font-size:12px;color:var(--cc-text-muted);margin-block-start:var(--cc-space-2)}
.chart-caption{font-size:13px;color:var(--cc-text-muted);margin-block-end:var(--cc-space-3)}
.coffee-chart-wrap{position:relative;inline-size:100%;block-size:clamp(180px,35vh,290px);
  margin-block-end:var(--cc-space-3)}
.finance-state{border:1px solid var(--cc-border);border-radius:var(--cc-radius-card);
  padding:var(--cc-space-4);background:var(--cc-surface)}
.finance-state p{font-size:13px;line-height:1.7;color:var(--cc-text-muted);
  margin-block-start:var(--cc-space-3)}
.auth-tabs button:not(.active) {color:#40574a}
.data-table {text-align:start}
.row-end {text-align:end}
.group-pill,.nav-link,.group-list button {text-align:start}
.sidebar {overflow-y:auto;overscroll-behavior-y:contain;scrollbar-gutter:stable}
.side-footer {flex-shrink:0}
.status {letter-spacing:0;line-height:1.65}
.status.unknown {background:#fff0d7;color:#754914}
.status.debited {background:#eae8fb;color:#59418e}
.status.refunded,.status.returned {background:#e7eaeb;color:#404d53}
.status.reopening_requested {background:#fff0d7;color:#805319}
.status.failed,.status.rejected {background:#fce8e4;color:var(--cc-danger)}
.status.paid,.status.confirmed {background:#e5f3e9;color:var(--cc-success)}
.breadcrumbs {min-inline-size:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar > div:first-child {min-inline-size:0}
.row-main {min-inline-size:0}
.row-main strong {white-space:normal;overflow-wrap:anywhere}
.group-pill > span:nth-child(2) {min-inline-size:0;overflow-wrap:anywhere}
.group-pill strong {overflow-wrap:anywhere}
bdi {unicode-bidi:isolate}
html[dir="rtl"] .icon-directional {transform:rotate(180deg)}
.code-ltr,code,input[type="email"],input[type="url"],input[type="number"] {
  direction:ltr;unicode-bidi:isolate;
}
input[type="email"],input[type="url"] {text-align:start}
#toast {right:auto;left:auto;inset-inline-end:22px}
.mobile-nav {left:auto;right:auto;inset-inline:0}
.auth-beans {left:auto;right:auto;inset-inline-end:-20px}
.mobile-menu,.language-switch button {min-width:36px}
.page-head .btn,.form-actions .btn {min-height:44px}
input,select,textarea {min-height:46px}
dialog {text-align:start}
dialog #modal-body {padding-inline:clamp(18px,4vw,28px)}
@media (max-width:760px) {
  .content {padding-block-end:max(110px,calc(100px + env(safe-area-inset-bottom)))}
  .mobile-nav button {min-height:44px;min-width:44px;align-content:center}
  .topbar {gap:8px}
  .topbar-actions {gap:8px;flex-shrink:0}
  .toast-item {max-inline-size:min(90vw,360px)}
  #toast {inset-block-end:calc(72px + env(safe-area-inset-bottom))}
}
@media (max-width:360px) {
  .quick-entry-controls {flex-direction:column}
  .quick-entry-controls button {inline-size:100%}
  .content {padding-inline:12px}
  .topbar {padding-inline:10px}
  .language-switch button {padding-inline:6px}
  .breadcrumbs {max-inline-size:110px}
  .drink-choice {padding-inline:12px}
}

/* A focused, two-choice kitchen workflow. Both choices reset after saving. */
.hostess-workspace {min-height:100vh;background:var(--cc-background)}
.hostess-header {background:var(--cc-surface);border-bottom:1px solid var(--cc-border);
  display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;
  padding:1rem clamp(16px,4vw,48px)}
.hostess-brand {display:flex;align-items:center;gap:12px}
.hostess-brand strong,.hostess-brand small {display:block}
.hostess-brand small {font-size:12px;color:var(--cc-text-muted)}
.hostess-controls {display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.hostess-controls .language-switch {margin-bottom:0}
.hostess-content {max-width:1040px;margin:auto;padding:clamp(22px,5vw,52px) 16px 64px}
.hostess-content > .subtitle {margin-block:12px 24px}
.hostess-layout {display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:20px;align-items:start}
.hostess-panel .panel-body {padding-top:4px}
.hostess-panel h2,.hostess-layout .panel-head h2 {font-size:18px}
.hostess-panel select {min-height:58px;font-size:16px;cursor:pointer}
.hostess-panel label {font-size:15px}
.hostess-panel .field {margin-bottom:23px}
.hostess-submit {min-height:54px;font-size:16px}
.hostess-review {font-size:13px;color:var(--cc-text-muted);line-height:1.7;margin-top:18px;
  display:flex;gap:10px;align-items:flex-start}
.hostess-review svg {flex-shrink:0}
.auth-tabs {flex-wrap:wrap}
.hostess-panel form > button[data-action="office-register-person"] {margin-block-end:20px}
.hostess-layout .list-row {flex-wrap:wrap}
@media (max-width:760px) {
  .hostess-layout {grid-template-columns:1fr}
  .hostess-header {align-items:flex-start}
  .hostess-controls {width:100%}
  .hostess-controls .btn {flex:1}
}
