/* رایزن لاله — ماژول‌های «عملیات هتل» و «اتاق‌ها و اقامت» */

/* ---------- چیدمان دوستونی ---------- */
.ox-two { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); align-items: stretch; }
.rm-two { grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); align-items: stretch; }

/* ---------- شبکه شاخص‌ها ---------- */
.ox-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1500px) { .ox-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .ox-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- نوارهای افقی ---------- */
.ox-bars { display: grid; gap: 8px; }
.ox-bar { display: grid; grid-template-columns: minmax(84px, 150px) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 12.5px; }
.ox-bar > span { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ox-bar b { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.ox-track { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.ox-track i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: var(--turq); }
.ox-track i.warn { background: var(--amber); }
.ox-track i.bad { background: var(--pom); }

/* ---------- ترکیب ورودها ---------- */
.ox-mix { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ox-mix li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.ox-mix li:last-child { border-bottom: 0; }
.ox-mix-ic { width: 28px; height: 28px; border-radius: 9px; background: var(--surface-3); color: var(--muted); display: grid; place-items: center; }
.ox-mix-ic svg { width: 15px; height: 15px; }
.ox-mix b { font-size: 15px; font-weight: 800; }

/* ---------- یادداشت و جمع‌بندی ---------- */
.ox-note { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; align-items: start; font-size: 12.5px; color: var(--ink-2); line-height: 1.9; margin-top: 12px; background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.ox-note svg { width: 17px; height: 17px; color: var(--muted); margin-top: 3px; }
.ox-note > span:only-child { grid-column: 1 / -1; }
.ox-verdict { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; font-size: 13px; line-height: 1.95; margin-top: 12px; padding: 12px 14px; border-radius: 12px; border-inline-start: 3px solid var(--line-strong); background: var(--surface-2); color: var(--ink-2); }
.ox-verdict svg { width: 18px; height: 18px; margin-top: 3px; }
.ox-verdict.ok { border-inline-start-color: var(--leaf); background: var(--leaf-tint); }
.ox-verdict.ok svg { color: var(--leaf); }
.ox-verdict.warn { border-inline-start-color: var(--amber); background: var(--amber-tint); }
.ox-verdict.warn svg { color: var(--amber); }
.ox-verdict.bad { border-inline-start-color: var(--pom); background: var(--pom-tint); }
.ox-verdict.bad svg { color: var(--pom); }

/* ---------- پذیرش ---------- */
.ox-ci { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.ox-ci > div { display: grid; gap: 2px; }
.ox-ci-label { font-size: 12.5px; color: var(--ink-2); }
.ox-ci b { font-size: 26px; font-weight: 800; letter-spacing: -0.3px; }
.ox-ci b small { font-size: 12px; font-weight: 500; color: var(--muted); margin-inline-start: 4px; }
.ox-ci b.pos { color: var(--leaf); }
.ox-ci b.neg { color: var(--pom); }
.ox-ci-foot { font-size: 11.5px; color: var(--faint); }
.ox-h4 { font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--ink-2); }

/* ---------- خانه‌داری ---------- */
.ox-hk { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; }
.ox-hk .cap-ring { width: 72px; height: 72px; }
.ox-hk .cr-track { stroke: var(--surface-3); }
.ox-hk .cr-text { fill: var(--ink); }
.ox-hk-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px 12px; }
.ox-hk-nums > div { display: grid; gap: 1px; }
.ox-hk-nums span { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.ox-hk-nums b { font-size: 15px; font-weight: 700; white-space: nowrap; }
.ox-hk-nums b.pos { color: var(--leaf); }
.ox-hk-nums b.neg { color: var(--pom); }

/* ---------- نمودارها ---------- */
.ox-clean { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; }
.ox-supply { fill: none; stroke: var(--leaf); stroke-width: 2.4; stroke-linejoin: round; }
.ox-demand { fill: none; stroke: var(--turq); stroke-width: 2.4; stroke-linejoin: round; stroke-dasharray: 5 4; }
.ox-gap { fill: var(--amber); opacity: 0.16; }
.ox-tight { stroke: var(--line-strong); stroke-width: 1.3; stroke-dasharray: 3 3; }
.ox-tight.tense { stroke: var(--pom); }
.ox-tight-dot { fill: var(--surface); stroke: var(--ink-2); stroke-width: 2.2; }
.ox-tight-dot.tense { stroke: var(--pom); }
.ox-tight-l { font-size: 11px; font-weight: 700; fill: var(--ink-2); text-anchor: start; font-family: var(--font-ui); }
.ox-tight-l.tense { fill: var(--pom); }

/* ---------- سه کار امروز ---------- */
.ox-actions-panel { display: flex; flex-direction: column; }
.ox-actions { list-style: none; counter-reset: a; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.ox-actions li { counter-increment: a; display: grid; gap: 4px; justify-items: start; padding-inline-start: 30px; position: relative; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ox-actions li:last-child { border-bottom: 0; padding-bottom: 0; }
.ox-actions li::before { content: counter(a, persian); position: absolute; inset-inline-start: 0; top: 0; width: 22px; height: 22px; border-radius: 7px; background: var(--gold-tint); color: var(--gold-deep); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.ox-actions b { font-size: 13.5px; }
.ox-actions span { font-size: 12.5px; color: var(--ink-2); line-height: 1.85; }
.ox-actions-panel > .btn { margin-top: auto; align-self: flex-start; }

/* ---------- نقشه اتاق‌ها ---------- */
.rm-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.rm-board { display: grid; gap: 5px; }
.rm-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; align-items: center; }
.rm-floor { font-size: 11.5px; color: var(--ink-2); display: grid; line-height: 1.5; }
.rm-floor small { color: var(--faint); font-size: 10.5px; }
.rm-rooms { display: flex; gap: 3px; flex-wrap: wrap; }
.rm-room { width: 26px; height: 22px; border-radius: 5px; border: 1px solid transparent; background: var(--surface-3); color: var(--ink-2); font-size: 9px; display: grid; place-items: center; padding: 0; transition: opacity 0.12s, transform 0.12s; }
.rm-room span { opacity: 0.75; font-variant-numeric: tabular-nums; }
.rm-room:hover { transform: translateY(-2px); outline: 2px solid var(--ink); outline-offset: 1px; }
.rm-room.dim { opacity: 0.16; }
.rm-room.st-occupied { background: var(--turq); color: #fff; }
.rm-room.st-arrival { background: var(--turq-soft); color: var(--turq-strong); }
.rm-room.st-ready { background: var(--leaf-tint); border-color: var(--leaf); color: var(--leaf); }
.rm-room.st-dirty { background: var(--amber); color: #3a2a05; }
.rm-room.st-cleaning { background: var(--amber-tint); border-color: var(--amber); color: var(--amber); }
.rm-room.st-ooo { background: var(--pom); color: #fff; }
.rm-legend { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 12px; }
.rm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rm-chip { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid transparent; }
.rm-chip.st-occupied { background: var(--turq); }
.rm-chip.st-arrival { background: var(--turq-soft); }
.rm-chip.st-ready { background: var(--leaf-tint); border-color: var(--leaf); }
.rm-chip.st-dirty { background: var(--amber); }
.rm-chip.st-cleaning { background: var(--amber-tint); border-color: var(--amber); }
.rm-chip.st-ooo { background: var(--pom); }

@media (max-width: 1240px) {
  .ox-two, .rm-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .ox-bar { grid-template-columns: 96px minmax(0, 1fr) auto; }
  .ox-hk { grid-template-columns: 64px minmax(0, 1fr); }
  .ox-hk .cap-ring { width: 60px; height: 60px; }
  .rm-row { grid-template-columns: 62px minmax(0, 1fr); }
  .rm-room { width: 22px; height: 19px; font-size: 8px; }
  .rm-room span { display: none; }
}
@media (max-width: 560px) {
  .rm-room { width: 17px; height: 16px; }
  .ox-ci b { font-size: 22px; }
}

/* ---------- تضاد بهتر در حالت تیره ---------- */
:root[data-theme='dark'] .rm-room.st-ready { background: rgba(88, 194, 138, 0.16); color: var(--leaf); }
:root[data-theme='dark'] .rm-room.st-cleaning { background: rgba(227, 166, 74, 0.18); }
:root[data-theme='dark'] .rm-room.st-arrival { color: #06281c; }
:root[data-theme='dark'] .rm-chip.st-ready { background: rgba(88, 194, 138, 0.16); }
