/* OHAIDO free cleaning schedule tool. Loaded after /assets/site.css and uses its tokens. */

.cs-lang { margin-top: 18px; font-size: .92rem; }
.cs-privacy { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 20px; background: #12302b; border: 1px solid #2f6b5d; color: #c9f5e6; border-radius: var(--radius-sm); padding: 14px 16px; font-weight: 600; }
.cs-privacy svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--signal); }

.cs-section { padding: clamp(32px, 5vw, 56px) 0; }
.cs-section + .cs-section { padding-top: 0; }

.cs-drop { display: grid; place-items: center; gap: 10px; width: 100%; min-height: 190px; padding: 28px 20px; border: 2px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; text-align: center; cursor: pointer; transition: border-color .15s, background-color .15s; }
.cs-drop:hover, .cs-drop.is-over { border-color: var(--accent); background: #17163a; }
.cs-drop:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.cs-drop svg { width: 34px; height: 34px; color: var(--accent); }
.cs-drop-title { font-size: 1.15rem; font-weight: 750; }
.cs-drop-or { color: var(--text-soft); font-size: .95rem; }
.cs-drop-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: var(--radius-sm); background: var(--accent-strong); color: #fff; font-weight: 700; font-size: .95rem; }
.cs-drop-limits { color: var(--muted); font-size: .86rem; }
.cs-js-only { display: none; }
.js .cs-js-only { display: block; }
.js .cs-nojs { display: none; }

.cs-errors { margin: 16px 0 0; padding: 14px 16px 14px 36px; background: #2a1a24; border: 1px solid #6b3341; color: #ffd4da; border-radius: var(--radius-sm); }
.cs-errors li + li { margin-top: 4px; }

.cs-files { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
/* Cards in a row stretch to the tallest card. Inside a card, rows are sized to their content and never share out
   that extra height (max-content rows are not "auto" rows, so the grid never stretches them, whatever align-content
   says), items sit at the top of their row, and the input keeps its natural height. */
.cs-file { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; grid-auto-rows: max-content; gap: 6px; align-content: start; align-items: start; }
.cs-file label { font-size: .86rem; font-weight: 650; color: var(--text-soft); }
.cs-file input { align-self: start; height: auto; width: 100%; min-width: 0; min-height: 44px; background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; font: inherit; font-size: .98rem; }
.cs-file input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.cs-file-meta { margin: 0; color: var(--muted); font-size: .84rem; word-break: break-word; }
.cs-note { margin: 0; font-size: .86rem; color: var(--text-soft); }
.cs-note-warn { color: var(--warn); }

.cs-controls { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; margin-top: 24px; }
.cs-controls .period-toggle { margin: 0; }
.cs-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-status { min-height: 1.6em; margin: 12px 0 0; color: var(--signal); font-size: .92rem; font-weight: 600; }
.cs-text { margin-bottom: 40px; }
.cs-text-head { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; }
.cs-text-head h2 { margin: 8px 0 0; }
.cs-text .cs-fallback { min-height: 200px; white-space: pre; overflow-wrap: normal; overflow-x: auto; }
.cs-fallback { width: 100%; min-height: 160px; margin-top: 10px; background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); border-radius: 8px; padding: 12px; font: inherit; font-size: .9rem; }

.cs-range { color: var(--text-soft); margin: 0 0 20px; }
.cs-results h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-top: 8px; }
.cs-results h3 { font-size: 1rem; color: var(--text-soft); text-transform: uppercase; letter-spacing: .08em; margin: 26px 0 10px; }
.cs-combined { margin-bottom: 40px; }
.cs-apartment { border-top: 1px solid var(--line); padding: 32px 0 8px; word-break: break-word; }
.cs-table-wrap { margin-bottom: 4px; }
.cs-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.cs-table th, .cs-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cs-table thead th { color: var(--text-soft); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; background: var(--surface-2); }
.cs-table tbody tr:last-child td { border-bottom: 0; }
.cs-table td:first-child { white-space: nowrap; }
.cs-flag { display: inline-block; font-size: .8rem; font-weight: 800; color: #2b1606; background: var(--warn); border-radius: 999px; padding: 2px 10px; }

.cs-warnings { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cs-warnings li { padding: 10px 14px; border-radius: var(--radius-sm); border-left: 4px solid; background: var(--surface); color: var(--text); }
.cs-warn-high { border-color: var(--alert) !important; }
.cs-warn-med { border-color: var(--warn) !important; }

.cs-limits { margin: 0; padding-left: 1.2em; color: var(--text-soft); display: grid; gap: 6px; max-width: 72ch; }

@media (max-width: 560px) {
  .cs-controls { flex-direction: column; align-items: stretch; }
  .cs-actions .btn { flex: 1 1 100%; }
  .cs-table th, .cs-table td { padding: 9px 10px; font-size: .9rem; }
}

/* ---------- Print / save as PDF: the schedule only, black on white ---------- */
@media print {
  @page { margin: 14mm; }
  html, body { background: #fff !important; color: #000 !important; font-size: 11pt; }
  .site-header, .site-footer, .skip-link, .cs-input-section, .cs-controls, .cs-files, .cs-errors, .cs-cta, .cs-about, .cs-lang, .cs-privacy, .cs-fallback, .cs-text, .cs-status, .page-head .lede { display: none !important; }
  .page-head { padding: 0 0 8pt; border: 0; }
  .page-head h1 { font-size: 18pt; color: #000; margin: 0 0 4pt; }
  .eyebrow { display: none; }
  .wrap { max-width: none; padding: 0; }
  .cs-section { padding: 0; }
  .cs-range, .muted, .cs-results h3 { color: #000 !important; }
  .cs-results h2 { font-size: 14pt; color: #000; break-after: avoid; }
  .cs-results h3 { break-after: avoid; }
  .cs-apartment { border-top: 1px solid #000; break-inside: auto; }
  .table-scroll { overflow: visible !important; border: 0 !important; background: none !important; }
  .cs-table { font-size: 10pt; }
  .cs-table th, .cs-table td { border: 1px solid #555 !important; color: #000 !important; background: #fff !important; padding: 4pt 6pt; }
  .cs-table tr { break-inside: avoid; }
  .cs-flag { color: #000 !important; background: none !important; border: 1px solid #000; }
  .cs-warnings li { background: none !important; color: #000 !important; border: 1px solid #000 !important; border-left-width: 4px !important; }
  a { color: #000; }
}
