/* Ronove – Simply Supportive. Brand: navy #303391, sky #00abec (green kept for "done" states) */
:root {
  --blue: #303391; --blue-d: #262a7a; --sky: #00abec; --green: #6fbf52; --green-d: #4f9e34; --head: #23286b; --text: #50677a; --muted: #8597a6;
  --line: #e3eaf1; --bg: #f3f6f9; --red: #d9534f; --amber: #f0a43a; --r: 14px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "Open Sans", Roboto, Arial, sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--blue-d); }
h1, h2 { color: var(--head); line-height: 1.25; margin: 0 0 8px; }
h1 { font-size: 24px; } h2 { font-size: 18px; }
p { margin: 0 0 10px; }
small, .small { font-size: 13.5px; } .muted { color: var(--muted); } .warn { color: #b8711a; }
.sr { position: absolute; left: -9999px; }
[hidden] { display: none !important; }

/* shell */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(8px + var(--safe-t)) 16px 8px; background: #fff; border-bottom: 1px solid var(--line); min-height: 60px; }
.bar-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; } .bar-logo img { height: 34px; width: auto; display: block; } .bar-logo span { font-size: 12px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; line-height: 1.2; }
.bar-back { font-weight: 600; text-decoration: none; font-size: 17px; padding: 8px 0; }
.bar-me { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--sky), var(--blue)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; text-decoration: none; }
.main { max-width: 640px; margin: 0 auto; padding: 18px 16px calc(96px + var(--safe-b)); }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; background: #fff; border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
.tabs svg { width: 24px; height: 24px; fill: currentColor; }
.tabs a.on { color: var(--blue-d); }
@media (min-width: 900px) {
  .tabs { top: 60px; bottom: auto; left: 50%; transform: translateX(-50%); max-width: 640px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 12px 12px; }
  .tabs a { flex-direction: row; justify-content: center; gap: 6px; font-size: 13.5px; padding: 10px; }
  .tabs svg { width: 18px; height: 18px; }
  .signed-in .main { padding-top: 70px; padding-bottom: 40px; }
}

/* blocks */
.card { background: #fff; border-radius: var(--r); padding: 16px; margin: 0 0 14px; box-shadow: 0 1px 2px rgba(34,54,74,.06), 0 6px 18px rgba(34,54,74,.05); }
.card.empty { color: var(--muted); text-align: center; padding: 22px 16px; }
.hello { font-size: 26px; margin-bottom: 2px; }
.section { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 22px 0 10px; }
.day-label { font-weight: 700; color: var(--head); margin: 14px 0 6px; font-size: 14px; }
.note { display: block; border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; font-size: 15px; text-decoration: none; color: var(--head); }
.note-ok { background: #e9f6e3; color: #2f6a1d; } .note-error { background: #fdecec; color: #a33b38; } .note-warn { background: #fff4e0; color: #8a5a0f; } .note-info { background: #eaf4fd; color: #2a5a83; }
.job-head .note { margin: 10px 0 0; }

/* job list */
.job { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: var(--r); padding: 14px; margin-bottom: 10px; text-decoration: none; color: var(--text); box-shadow: 0 1px 2px rgba(34,54,74,.06), 0 6px 18px rgba(34,54,74,.05); border-left: 5px solid var(--sky); }
.job:active { transform: scale(.99); }
.job-live { border-left-color: var(--amber); background: #fffaf2; }
.job.st-completed { border-left-color: var(--green); } .job.st-cancelled { opacity: .55; border-left-color: #c9d3dc; }
.job-time { flex: 0 0 62px; font-weight: 700; color: var(--head); font-size: 16px; line-height: 1.2; } .job-time small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.job-main { flex: 1; min-width: 0; display: flex; flex-direction: column; } .job-main strong { color: var(--head); font-size: 16.5px; } .job-main small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.job-tag { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.chev { width: 9px; height: 9px; border-right: 2px solid #b5c3cf; border-bottom: 2px solid #b5c3cf; transform: rotate(-45deg); }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #eef3f8; color: var(--head); }
.tag-live { background: #fff1db; color: #a8650b; } .tag-done { background: #e6f5df; color: #3b7a26; } .tag-plan { background: #eaf4fd; color: #2a6aa8; } .tag-off { background: #eef1f4; color: #6d7d8b; } .tag-late { background: #fdecec; color: #a33b38; }
.rate-nudge { display: block; margin: -4px 0 12px 8px; font-weight: 600; font-size: 14px; }

/* buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 10px 16px; border-radius: 12px; border: 1px solid #cfdbe6; background: #fff; color: var(--head); font-family: inherit; font-weight: 600; font-size: 15.5px; text-decoration: none; cursor: pointer; }
.btn:disabled { opacity: .55; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; } .btn-primary:active { background: var(--blue-d); }
.btn-ghost { background: transparent; }
.btn-out { background: var(--green); border-color: var(--green); color: #fff; }
.btn-block { display: flex; width: 100%; margin: 6px 0 14px; } .btn-lg { min-height: 54px; font-size: 17px; } .btn-sm { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn-big { min-height: 64px; font-size: 18px; flex: 1; }
.btn-scan svg { width: 22px; height: 22px; fill: currentColor; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.form { display: flex; flex-direction: column; gap: 8px; }
.form label { font-weight: 600; color: var(--head); font-size: 14.5px; margin-top: 4px; }
input, select, textarea { width: 100%; font-family: inherit; font-size: 16px; padding: 12px; border: 1px solid #cfdbe6; border-radius: 10px; background: #fff; color: var(--head); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.check { display: flex !important; align-items: center; gap: 10px; font-weight: 500 !important; } .check input { width: 22px; height: 22px; flex: 0 0 22px; }

/* job page */
.job-head h1 { margin-top: 2px; } .addr { color: var(--head); }
.clock-card { border: 2px solid var(--sky); }
.clock-btns { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 6px; }
.clock-status { font-weight: 600; color: var(--head); } .clock-status.good { color: var(--green-d); } .clock-status.warn { color: #a8650b; } .clock-status.bad { color: var(--red); }
.clock-log { margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 14px; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { border-bottom: 1px solid var(--line); } .checks li:last-child { border: 0; }
.checks label { display: flex; align-items: center; gap: 12px; padding: 12px 2px; cursor: pointer; color: var(--head); }
.checks input { width: 26px; height: 26px; flex: 0 0 26px; accent-color: var(--green); }
.checks input:checked + span { color: var(--muted); text-decoration: line-through; }
.checks label.saving { opacity: .6; }
.photo-btns { display: flex; gap: 8px; } .photo-btn { flex: 1; padding: 10px 6px; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.thumbs a { display: block; border-radius: 10px; overflow: hidden; background: #eef3f8; text-decoration: none; color: var(--text); font-size: 12px; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; } .thumbs span { display: block; padding: 3px 6px; }

/* scanner */
.scanner { width: min(480px, 100vw); max-width: 100vw; border: 0; border-radius: 16px; padding: 0; background: #000; color: #fff; }
.scanner::backdrop { background: rgba(0,0,0,.8); }
.scanner-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; }
.x { background: none; border: 0; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; padding: 0 6px; }
.scanner-view { position: relative; aspect-ratio: 1; background: #111; }
.scanner-view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner-frame { position: absolute; inset: 18%; border: 3px solid rgba(255,255,255,.9); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); }
.scanner-msg { padding: 12px 16px 16px; margin: 0; text-align: center; }

/* rating */
.stars-input { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars-input input { position: absolute; opacity: 0; width: 1px; }
.stars-input label { font-size: 40px; color: #d5dee6; cursor: pointer; margin: 0 !important; line-height: 1; }
.stars-input input:checked ~ label, .stars-input label:hover, .stars-input label:hover ~ label { color: var(--amber); }
.stars-input input:focus-visible + label { outline: 2px solid var(--blue); border-radius: 4px; }

/* hours */
.weeknav { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 12px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stats div { background: #fff; border-radius: 12px; padding: 12px; text-align: center; } .stats span { display: block; font-size: 12.5px; color: var(--muted); } .stats strong { font-size: 20px; color: var(--head); }
.shift { display: flex; justify-content: space-between; gap: 10px; } .shift-t { text-align: right; font-weight: 600; color: var(--head); white-space: nowrap; }
.devices { padding-left: 18px; }

/* sign-in */
body.auth { background: linear-gradient(160deg, #e6f6fd 0%, #eceefa 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px 16px; }
.auth-card { background: #fff; border-radius: 20px; box-shadow: 0 20px 60px rgba(34,54,74,.15); padding: 30px 24px 24px; width: 100%; max-width: 420px; text-align: center; }
.auth-card .form { text-align: left; margin: 16px 0; }
.auth-logo { width: 240px; max-width: 80%; height: auto; margin-bottom: 14px; }
.big-icon { font-size: 44px; } .dev { background: #fff7e6; border-radius: 8px; padding: 8px; font-size: 14px; }

/* invoices (shared document) */
.invoice-wrap { overflow-x: auto; }
.invoice-doc { color: #33475a; font-size: 14px; min-width: 300px; }
.inv-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.inv-logo { width: 150px; height: auto; display: block; margin-bottom: 6px; }
.inv-meta h2 { font-size: 20px; text-transform: uppercase; letter-spacing: .04em; color: var(--blue-d); }
.inv-meta table, .inv-lines { border-collapse: collapse; } .inv-meta th { text-align: left; padding: 2px 12px 2px 0; color: var(--muted); font-weight: 600; }
.inv-to h3, .inv-pay h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 4px; }
.inv-lines { width: 100%; margin: 16px 0; } .inv-lines th, .inv-lines td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.inv-lines thead th { background: #f2f7fc; color: var(--head); font-size: 12.5px; } .inv-lines .num { text-align: right; white-space: nowrap; }
.inv-lines tfoot th { text-align: right; font-weight: 600; border: 0; } .inv-lines tfoot td { border: 0; }
.inv-total th, .inv-total td { font-size: 17px; color: var(--head); font-weight: 700; border-top: 2px solid var(--head) !important; }
.inv-paid { display: inline-block; border: 3px solid var(--green); color: #3b7a26; font-weight: 800; letter-spacing: .08em; padding: 6px 14px; border-radius: 6px; transform: rotate(-3deg); }
.inv-pay { background: #f6f9fc; border-radius: 8px; padding: 12px 14px; }
.inv-foot { margin-top: 22px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); text-align: center; }

@media print {
  .bar, .tabs, .no-print, .note { display: none !important; }
  body { background: #fff; } .main { padding: 0; max-width: none; } .card { box-shadow: none; padding: 0; }
  .inv-lines thead th, .inv-pay { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* employee self-service */
.menu-list { display: flex; flex-direction: column; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: 0 1px 2px rgba(34,54,74,.06), 0 6px 18px rgba(34,54,74,.05); }
.menu-list a { display: flex; align-items: center; gap: 10px; padding: 14px 16px; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line); }
.menu-list a:last-child { border-bottom: 0; } .menu-list a > span { flex: 1; display: flex; flex-direction: column; } .menu-list strong { color: var(--head); } .menu-list small { color: var(--muted); }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 8px; } .dl dt { color: var(--muted); } .dl dd { margin: 0; color: var(--head); font-weight: 600; text-align: right; }
.locked { background: #f7f9fb; } .sub { font-size: 16px; margin: 14px 0 0; }
ul.tight { margin: 6px 0 0; padding-left: 18px; }
.big-note { font-size: 16px; }
.rich h2 { font-size: 19px; margin-top: 18px; } .rich h3 { font-size: 16px; } .rich ul, .rich ol { padding-left: 20px; } .rich li { margin: 4px 0; }
.rich table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; } .rich th, .rich td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; }
.quiz fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 0 0 12px; }
.quiz legend { font-weight: 700; color: var(--head); padding: 0 4px; }
.quiz fieldset.wrong { border-color: var(--red); background: #fff6f6; } .quiz fieldset.right { border-color: var(--green); }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 8px 2px; cursor: pointer; } .opt input { width: 22px; height: 22px; flex: 0 0 22px; margin: 0; accent-color: var(--blue); }
.linkish { background: none; border: 0; color: var(--blue-d); font: inherit; font-size: 13.5px; text-decoration: underline; cursor: pointer; padding: 4px 0 0; }
.center { text-align: center; }

/* Ronove intro animation on the sign-in screen */
.intro { margin: -14px -8px 6px; border-radius: 14px; overflow: hidden; background: #fdfdfd; aspect-ratio: 16 / 9; }
.intro-video { width: 100%; height: 100%; display: block; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .intro-video { display: none; } .intro { background: #fdfdfd url(brand/ronove-intro-poster.jpg) center / cover no-repeat; } }

/* cleaning type and questions */
.ctype { display: flex; flex-direction: column; gap: 8px; }
.levels { border: 0; padding: 0; margin: 4px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.levels legend { font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.level-opt { display: flex; gap: 10px; align-items: flex-start; border: 2px solid #dde6ee; border-radius: 12px; padding: 10px 12px; cursor: pointer; font-weight: 400 !important; margin: 0 !important; }
.level-opt input { width: 20px; height: 20px; flex: 0 0 20px; margin: 2px 0 0; }
.level-opt span { display: flex; flex-direction: column; gap: 2px; } .level-opt small { color: #8597a6; font-size: 12.5px; line-height: 1.35; }
.level-opt:has(input:checked) { border-color: #3b93dd; background: #f2f8fe; }
.ctype-q { border: 1px solid #dde6ee; border-radius: 12px; padding: 10px 14px 14px; margin: 0; } .ctype-q legend { font-weight: 650; padding: 0 6px; font-size: 14px; }
.ctype-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 14px; } .ctype-grid .wide { grid-column: 1 / -1; }
.ctype-grid label { font-size: 13px; margin: 0 0 3px; display: block; }
.ctype-sum { background: #f4f8fc; border-radius: 10px; padding: 10px 12px; margin: 8px 0; } .ctype-sum strong { display: block; margin-bottom: 4px; }
.ctype-sum dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; font-size: 13.5px; } .ctype-sum dt { color: #8597a6; } .ctype-sum dd { margin: 0; }
.ctag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: #eceefa; color: #303391; } .ctag.deep { background: #303391; color: #fff; }
@media (max-width: 520px) { .levels { grid-template-columns: 1fr; } }

/* notifications, re-clean, reject sheet, complaints */
.bar-bell { position: relative; margin-left: auto; margin-right: 6px; color: var(--head); display: flex; padding: 6px; }
.bar-bell svg { width: 26px; height: 26px; fill: currentColor; } .bar-bell b { position: absolute; top: 0; right: 0; background: #d9534f; color: #fff; font-size: 11px; border-radius: 99px; padding: 0 6px; line-height: 18px; }
.notif { display: flex; flex-direction: column; gap: 3px; background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; text-decoration: none; color: var(--text); border-left: 4px solid #dde6ee; }
.notif.unread { border-left-color: var(--sky); background: #f5fbff; } .notif strong { color: var(--head); } .notif span { font-size: 14px; } .notif small { color: var(--muted); }
.notif.k-rejected, .notif.k-escalation { border-left-color: #d9534f; } .notif.k-accepted { border-left-color: var(--green); }
.reclean { border: 2px solid #d9534f; } .reclean h2 { color: #a33b38; }
.checks h3.room, .sheet h3.room { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 4px; }
.checks ul { list-style: none; padding: 0; margin: 0; }
.review-card { border: 2px solid var(--sky); }
.sheet { width: min(560px, 100vw); max-width: 100vw; max-height: 92vh; border: 0; border-radius: 18px 18px 0 0; padding: 0; margin: auto auto 0; }
@media (min-width: 640px) { .sheet { border-radius: 18px; margin: auto; } }
.sheet::backdrop { background: rgba(20,30,60,.55); } .sheet form { display: flex; flex-direction: column; }
.sheet-step { padding: 14px 16px calc(16px + var(--safe-b)); display: flex; flex-direction: column; gap: 8px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; } .sheet-head .x { color: var(--head); }
.sheet-body { max-height: 52vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 4px 10px; }
.updates { list-style: none; padding: 0; margin: 8px 0 0; font-size: 14px; } .updates li { border-top: 1px solid var(--line); padding: 6px 0; } .updates small { color: var(--muted); margin-right: 6px; }
/* e-signing in the app */
.pad{position:relative;border:2px dashed #b9c0dd;border-radius:12px;background:#fbfcff;touch-action:none;margin-bottom:6px}.pad canvas{display:block;width:100%;height:180px}
.pad .linkish{position:absolute;right:10px;top:6px;background:none;border:0;color:#303391;text-decoration:underline}.sig-img{max-width:100%;max-height:110px;background:#fff}
.doc-body{overflow-x:auto}.doc-body table{border-collapse:collapse;font-size:.9rem}.doc-body td,.doc-body th{border:1px solid #e3e8ef;padding:5px 7px}.decline{margin-top:12px}.decline summary{color:#6b7d8c}
.menu-list .badge{background:#e5484d;color:#fff;border-radius:99px;padding:1px 8px;font-size:.75rem;margin-left:auto;margin-right:6px}
.sign-nudge{display:block;text-decoration:none;font-weight:600}
/* available shifts */
.sub{font-size:1.05rem;margin:18px 0 8px}.cards{display:grid;gap:10px}
.shift{display:grid;grid-template-columns:56px 1fr auto;gap:12px;align-items:center;margin:0}.shift.mine{grid-template-columns:1fr auto}
.shift-when{text-align:center;background:#eef0fb;border-radius:12px;padding:8px 4px;color:#303391}.shift-when b{display:block;font-size:.8rem;text-transform:uppercase}.shift-when span{font-size:.95rem;font-weight:700}
.shift-pay{display:inline-block;margin-top:4px;font-weight:800;color:#14804a}.shift small{color:#6b7d8c}
.pill{display:inline-block;padding:2px 9px;border-radius:99px;font-size:.75rem;font-weight:700;margin-top:4px}.pill-ok{background:#e8f6ee;color:#14804a}.pill-wait{background:#fff6e5;color:#8a5a00}
.fl-card{border-left:4px solid #00abec}.linkish{background:none;border:0;color:#303391;text-decoration:underline;padding:6px;font:inherit}
@media(max-width:360px){.shift{grid-template-columns:48px 1fr}.shift-act{grid-column:1/-1}}
.shift.mine small{display:block;margin:2px 0}
