/* ==========================================================
   RentyCloud — rental screens (on top of kit + app.css). Own classes use the rc- prefix.
   ========================================================== */
.rc-logo { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; min-width: 0; }
.rc-logo:hover { color: var(--ink); }
.rc-logo .mk { flex: 0 0 auto; display: grid; }
.rc-logo .mk img { width: 64px; height: auto; display: block; }
.rc-logo .nm { display: grid; gap: 2px; line-height: 1.2; min-width: 0; justify-items: start; }
.rc-logo .nm img { width: 132px; height: auto; display: block; }
.rc-logo .lg-d { display: none !important; }
[data-bs-theme="dark"] .rc-logo:not(.on-dark) .lg-l { display: none !important; }
[data-bs-theme="dark"] .rc-logo:not(.on-dark) .lg-d { display: block !important; }
.rc-logo .nm small { color: var(--muted); font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.rc-logo.on-dark, .rc-logo.on-dark:hover { color: #fff; }
.rc-logo.on-dark .nm small { color: var(--side-ink); }
.side-mini .rc-logo .nm { display: none; }
.sd-nav a.sd-new { margin: 4px 0 6px; background: var(--brand); color: #fff; justify-content: flex-start; }
.sd-nav a.sd-new:hover { background: var(--brand-ink); color: #fff; }
.rc-art { background: linear-gradient(160deg, var(--deep-2), var(--deep)); color: #fff; }

/* page head */
.rc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 4px; }
.rc-head h1 { font-size: clamp(24px, 2.4vw, 32px); margin: 0; }
.rc-head p { color: var(--muted); margin: .25rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.rc-head-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.rc-back { padding-inline: 0; margin-bottom: .1rem; }
.min-w-0 { min-width: 0; }
.ad-content > .box, .ad-content > .grid-2, .ad-content > .tcard, .ad-content > .tbl-frame, .ad-content > .kpis, .ad-content > .rc-split, .ad-content > form, .ad-content > section { margin-top: 0; }
.ad-content { display: grid; gap: clamp(16px, 1.6vw, 22px); align-content: start; }
.ad-content > * { min-width: 0; }

/* greeting + task tiles (AdminLab overview) */
.rc-hello { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.rc-hello h1 { margin: 0; font-size: clamp(26px, 2.6vw, 34px); }
.rc-date { margin: 0; color: var(--muted); font-weight: 700; }
.rc-tasks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rc-task { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: transform var(--ease), border-color var(--ease); }
.rc-task:hover { transform: translateY(-2px); border-color: rgba(var(--brand-rgb), .45); color: var(--ink); }
.rc-task > i { grid-row: span 2; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: rgba(var(--brand-rgb), .1); color: var(--brand-ink); font-size: 1.4rem; }
.rc-task b { font-size: 30px; line-height: 1.1; }
.rc-task span { color: var(--muted); font-weight: 700; }
.rc-task.is-bad { border-color: rgba(220, 38, 38, .35); background: var(--danger-bg); }
.rc-task.is-bad > i { background: var(--danger); color: #fff; }
.rc-task.is-warn { border-color: rgba(95, 74, 166, .3); background: var(--warn-bg); }
.rc-task.is-warn > i { background: var(--warn); color: #fff; }
@media (max-width: 991.98px) { .rc-tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .rc-task { padding: 14px; column-gap: 10px; } .rc-task > i { width: 42px; height: 42px; } .rc-task b { font-size: 24px; } }

.rc-kpis { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.rc-kpis .kpi { margin: 0; }
.kpi .val small { font-size: 16px; color: var(--muted); font-weight: 700; }
.rc-val-sm { font-size: 20px !important; }
.rc-kpi-lead { background: linear-gradient(160deg, var(--deep-2), var(--deep)); color: #fff; border-color: transparent; }
.rc-kpi-lead .lbl, .rc-kpi-lead .kpi-note, .rc-kpi-lead .val small { color: #c9d6e4 !important; }
.rc-kpi-lead .lbl i { background: rgba(255,255,255,.12); color: #fff; }
.rc-kpi-lead .val { color: #fff; }
.rc-kpi-bad .val { color: var(--danger); }
.rc-kpi-ok .val { color: var(--ok); }
.rc-fleet { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.15); margin: 6px 0 4px; }
.rc-fleet i { display: block; height: 100%; }
.rc-fleet .f { background: #4ade80; } .rc-fleet .r { background: #60a5fa; } .rc-fleet .m { background: #b9a6ff; }
.rc-methods { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.rc-methods li { display: flex; justify-content: space-between; gap: 10px; }

.rc-expiring { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.rc-expiring a { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); text-decoration: none; }
.rc-expiring span { color: var(--muted); }
.rc-expiring .d { font-weight: 700; color: var(--warn); }
.rc-expiring li.is-bad a { background: var(--danger-bg); border-color: rgba(220,38,38,.3); }
.rc-expiring li.is-bad .d { color: var(--danger); }

/* tables: cards on phones (AdminLab card layout for plain tables) */
.rc-cards td .th-sub { display: block; }
@media (max-width: 760px) {
  .tbl.rc-cards thead { display: none; }
  .tbl.rc-cards, .tbl.rc-cards tbody, .tbl.rc-cards tr, .tbl.rc-cards td { display: block; width: 100%; }
  .tbl.rc-cards { min-width: 0 !important; }
  .tbl.rc-cards tr { padding: 12px 14px; border-top: 1px solid var(--line); }
  .tbl.rc-cards td { border: 0; padding: 3px 0; }
  .tbl.rc-cards td[data-label]::before { content: attr(data-label); display: inline-block; min-width: 92px; color: var(--muted); font-size: 15px; font-weight: 700; }
  .tbl.rc-cards td.th-table-empty::before { content: none; }
  .tbl.rc-cards td .th-sub { display: inline; margin-inline-start: 6px; }
}
.tbl tr.rc-sum td { font-weight: 800; background: var(--surface-2); }
.rc-plate { display: inline-block; padding: 0 .5rem; border-radius: 6px; border: 1.5px solid var(--ink); font-weight: 800; font-size: 15px; line-height: 1.6; white-space: nowrap; background: var(--surface); }
.rc-search { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.rc-search .tsearch { flex: 1 1 320px; }
.rc-search > div { min-width: 170px; }
.rc-tabs { flex-wrap: wrap; }
.rc-tabs a { text-decoration: none; }
.rc-inline-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rc-inline-form .tg-sel { min-width: 140px; }

/* two columns: form + side */
.rc-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(16px, 1.6vw, 22px); align-items: start; }
.rc-split > .box { margin-top: 0; }
.rc-side { display: grid; gap: 14px; }
.rc-side .box { margin: 0; }
@media (max-width: 991.98px) { .rc-split { grid-template-columns: minmax(0, 1fr); } }
.rc-narrow-form { max-width: 560px; }
.rc-dl { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 8px 16px; margin: 0; }
.rc-dl dt { color: var(--muted); font-weight: 700; }
.rc-dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.rc-dl-tight { gap: 4px 12px; font-size: 16px; }
.rc-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.rc-docs a { display: grid; gap: 4px; color: var(--muted); text-decoration: none; font-size: 15px; }
.rc-docs img { width: 100%; aspect-ratio: 1.58; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }

/* wizard forms */
.rc-wiz { padding: clamp(18px, 2.4vw, 32px); }
.wz-card-in .sub { color: var(--muted); font-size: 15px; line-height: 1.6; }
.wz-card > input:checked + .wz-card-in .sub { color: #c9d6e4; }
.wz-card > input:checked + .wz-card-in .sub .rc-plate { color: var(--ink); }
.wz-card > input:disabled + .wz-card-in { opacity: .55; cursor: not-allowed; }
.wz-card[hidden] { display: none; }
.rc-cards-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.rc-cards-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.rc-pick { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); max-height: 520px; overflow-y: auto; padding: 4px; }
.rc-pick-head { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.rc-pick-head .tsearch { flex: 1 1 260px; }
.rc-consent { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }

/* document photos */
.rc-scan { display: grid; gap: 16px; }
.rc-qr { display: flex; gap: 18px; align-items: center; padding: 16px; border-radius: 18px; background: var(--surface-2); border: 1px dashed var(--line); }
.rc-qr p { margin: .2rem 0 .6rem; }
.rc-qr-code { width: 150px; height: 150px; flex: 0 0 auto; padding: 6px; border-radius: 12px; background: #fff; }
.rc-qr-code svg { display: block; width: 100%; height: 100%; }
@media (max-width: 560px) { .rc-qr { flex-direction: column; text-align: center; } }
.rc-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.rc-slot, .rc-photo { position: relative; display: grid; gap: 4px; justify-items: center; text-align: center; padding: 12px; border-radius: 16px; border: 1.5px dashed var(--line); background: var(--surface); cursor: pointer; transition: border-color var(--ease), background var(--ease); }
.rc-slot:hover, .rc-photo:hover { border-color: rgba(var(--brand-rgb), .5); }
.rc-slot[hidden] { display: none; }
.rc-slot .ph, .rc-photo .ph { width: 100%; aspect-ratio: 1.58; display: grid; place-items: center; border-radius: 10px; background: var(--surface-2); color: var(--brand-ink); font-size: 1.6rem; overflow: hidden; }
.rc-slot .ph img, .rc-photo .ph img { width: 100%; height: 100%; object-fit: cover; }
.rc-slot b, .rc-photo b { font-size: 15px; }
.rc-slot .st { color: var(--muted); font-size: 15px; }
.rc-slot.is-done, .rc-photo.is-done { border-style: solid; border-color: var(--ok); }
.rc-slot.is-done .st { color: var(--ok); font-weight: 700; }
.rc-slot.is-bad { border-color: var(--danger); }
.rc-slot.is-bad .st { color: var(--danger); }
.rc-slot.is-busy { opacity: .7; }
.rc-slot input, .rc-photo input { position: absolute; }
.rc-with-photos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 18px; align-items: start; }
.rc-ref { display: grid; gap: 8px; }
.rc-ref img { width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.rc-ref:empty::before { content: "تظهر صور الوثيقة هنا."; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .rc-with-photos { grid-template-columns: minmax(0, 1fr); } .rc-ref { grid-template-columns: repeat(2, minmax(0, 1fr)); order: -1; } }
.rc-filled { background: color-mix(in srgb, var(--ok) 7%, var(--surface)); }

/* renter's phone page */
.rc-bare { padding-bottom: 32px; }
.rc-phone { max-width: 640px; margin: 18px auto; text-align: center; padding: clamp(20px, 4vw, 32px); }
.rc-phone h1 { font-size: 26px; margin: 10px 0 4px; }
.rc-phone .rc-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
.rc-phone-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: rgba(var(--brand-rgb), .12); color: var(--brand-ink); font-size: 1.8rem; }
.rc-phone-ic.bad { background: var(--danger-bg); color: var(--danger); }
.rc-phone-done { margin: 16px 0 0; padding: 12px; border-radius: 14px; background: var(--ok-bg); color: var(--ok); font-weight: 800; }
.rc-more { margin-top: 14px; text-align: start; }
.rc-more summary { cursor: pointer; font-weight: 700; color: var(--brand-ink); min-height: 44px; display: flex; align-items: center; }

/* price */
.rc-split-quote { grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); }
.rc-quote { padding: 18px; border-radius: 18px; background: linear-gradient(160deg, var(--deep-2), var(--deep)); color: #fff; display: grid; gap: 8px; }
.rc-quote > b { font-size: 18px; }
.rc-quote dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; }
.rc-quote dt { color: #c9d6e4; font-weight: 600; }
.rc-quote dd { margin: 0; text-align: end; font-weight: 700; }
.rc-quote-sum { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.18); }
.rc-quote-sum b { font-size: 26px; }
.rc-quote .hint { color: #c9d6e4; }
.rc-quote .hint.text-danger { color: #fecaca !important; }
.rc-due { min-height: 52px; display: flex; align-items: center; padding: 0 1rem; border-radius: var(--radius-sm); background: var(--surface-2); font-weight: 800; }
.rc-stepper { display: flex; gap: 6px; align-items: center; }
.rc-stepper .fm-input { text-align: center; }
.rc-stepper .icon-btn { flex: 0 0 auto; border: 1.5px solid var(--line); }
.rc-settle-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rc-settle-lines li { display: flex; justify-content: space-between; gap: 10px; }
.rc-settle-lines small { display: block; color: #c9d6e4; font-size: 15px; }
.rc-settle-lines .muted { color: #c9d6e4 !important; }

/* inspection */
.rc-inspect { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: 22px; align-items: start; }
@media (max-width: 860px) { .rc-inspect { grid-template-columns: minmax(0, 1fr); } }
.rc-acc { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 12px; }
.rc-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr)); gap: 10px; }
.rc-fuel { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; direction: ltr; }
.rc-fuel label { position: relative; cursor: pointer; }
.rc-fuel input { position: absolute; opacity: 0; inset: 0; }
.rc-fuel span { display: block; height: 44px; border-radius: 6px; background: var(--surface-2); border: 1.5px solid var(--line); }
.rc-fuel label:has(~ label input:checked) span, .rc-fuel input:checked + span { background: var(--brand); border-color: var(--brand); }
.rc-fuel input:focus-visible + span { outline: 3px solid rgba(var(--brand-rgb), .45); outline-offset: 1px; }
.rc-fuel-l { display: flex; justify-content: space-between; direction: ltr; color: var(--muted); font-size: 15px; margin-top: 2px; }
.rc-dmg { padding: 14px; border-radius: 18px; background: var(--surface-2); }
.rc-dmg-kinds { margin-bottom: 10px; flex-wrap: wrap; }
.rc-dmg-canvas { max-width: 240px; margin: 0 auto; }
.dmg-car { display: block; width: 100%; height: auto; cursor: crosshair; touch-action: manipulation; }
.dmg-car .body { fill: var(--surface); stroke: var(--ink); stroke-width: 2.5; }
.dmg-car .glass { fill: rgba(var(--brand-rgb), .15); stroke: var(--muted); stroke-width: 1.5; }
.dmg-car .roof { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 3; }
.dmg-car .wheel { fill: var(--ink); }
.dmg-car .lbl { fill: var(--muted); font: 700 11px var(--font); text-anchor: middle; }
.dmg-car .mk { stroke: #fff; stroke-width: 2.5; }
.dmg-car .mk.dent { fill: #dc2626; } .dmg-car .mk.scratch { fill: #d97706; } .dmg-car .mk.missing { fill: #5f4aa6; } .dmg-car .mk.broken { fill: #111827; }
.dmg-car .mk.old { fill: #94a3b8; opacity: .55; stroke-width: 1.5; }
.dmg-car .mk-n { fill: #fff; font: 800 13px var(--font); text-anchor: middle; pointer-events: none; }
.rc-dmg-list { margin: 10px 0; padding-inline-start: 1.4rem; display: grid; gap: 6px; }
.rc-dmg-list li { display: flex; align-items: center; gap: 8px; }
.rc-dmg-list li b { white-space: nowrap; min-width: 84px; }
.rc-dmg-view svg { max-width: 170px; display: block; margin: 0 auto; }
.rc-insp { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 560px) { .rc-insp { grid-template-columns: minmax(0, 1fr); } }
.rc-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rc-thumbs img { width: 84px; height: 62px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* terms + signatures */
.rc-terms { margin-top: 16px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2); max-height: 360px; overflow-y: auto; }
.rc-terms h3 { font-size: 18px; display: flex; gap: 8px; align-items: center; }
.rc-terms ol { margin: 8px 0 0; padding-inline-start: 1.4rem; display: grid; gap: 6px; line-height: 1.8; }
.rc-sigs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; margin-top: 16px; }
.rc-sig { display: grid; gap: 4px; }
.rc-sig canvas { width: 100%; height: 170px; border-radius: 14px; border: 1.5px dashed var(--line); background: #fff; touch-action: none; cursor: crosshair; }
.rc-sig canvas.is-signed { border-style: solid; border-color: var(--ok); }
.rc-sig .btx-text { justify-self: start; }
.rc-sig-view { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)) minmax(0, 1fr); gap: 16px; align-items: start; }
.rc-sig-view figure { margin: 0; }
.rc-sig-view img { width: 100%; height: 110px; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.rc-sig-view figcaption { color: var(--muted); font-size: 15px; text-align: center; }
@media (max-width: 760px) { .rc-sig-view { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .rc-sig-view dl { grid-column: 1 / -1; } }
.rc-hash { direction: ltr; unicode-bidi: isolate; font-size: 15px; }

/* contract page */
.rc-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.rc-strip > div { padding: 12px 16px; border-inline-start: 1px solid var(--line); display: grid; }
.rc-strip > div:first-child { border-inline-start: 0; }
.rc-strip span { color: var(--muted); font-size: 15px; font-weight: 700; }
.rc-strip b { font-size: 16px; }
@media (max-width: 991.98px) { .rc-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } .rc-strip > div:nth-child(3n+1) { border-inline-start: 0; } .rc-strip > div:nth-child(n+4) { border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .rc-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rc-strip > div { border-inline-start: 0 !important; border-top: 1px solid var(--line); } .rc-strip > div:nth-child(2n) { border-inline-start: 1px solid var(--line) !important; } .rc-strip > div:nth-child(-n+2) { border-top: 0; } }
.rc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rc-actions form { margin: 0; }
.rc-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rc-timeline li { position: relative; padding-inline-start: 20px; line-height: 1.7; }
.rc-timeline li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }
.th-table-fit { min-width: 0 !important; }
.tg-note-dlg .fm-seg { margin-bottom: 4px; }

/* settings */
.rc-settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: start; }
.rc-settings > div { display: grid; gap: 18px; }
.rc-settings > div > .box { margin: 0; }
.rc-settings-nav { position: sticky; top: 90px; display: grid; gap: 4px; }
.rc-settings-nav a { padding: 10px 14px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 700; }
.rc-settings-nav a:hover { background: var(--surface-2); }
@media (max-width: 991.98px) { .rc-settings { grid-template-columns: minmax(0, 1fr); } .rc-settings-nav { position: static; display: flex; flex-wrap: wrap; } }
.rc-vars { display: flex; flex-wrap: wrap; gap: 6px; }
.rc-vars .tagx { border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: 4px 10px; font: 600 15px var(--font); cursor: pointer; min-height: 40px; }
.rc-vars code { direction: ltr; unicode-bidi: isolate; color: var(--brand-ink); }
.rc-terms-edit { font-size: 16px; line-height: 1.9; }
.rc-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.rc-roles .box { margin: 0; }
.rc-class-form + .rc-class-form { margin-top: 0; }
.rc-new-box { border-style: dashed; }

/* short lists inside a box: no forced table width */
.rc-today .tbl, .box > .tbl-frame > .tbl.rc-cards { min-width: 0; }
.rc-sig-err { margin: .4rem 0 0; color: var(--danger); font-weight: 700; font-size: 15px; }
.rc-sig-err[hidden] { display: none; }

/* FormLab segmented choice (.fm-seg), copied from formlab.html form base */
.fm-seg { display: flex; padding: 4px; gap: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.fm-seg label { flex: 1; position: relative; }
.fm-seg input { position: absolute; opacity: 0; pointer-events: none; }
.fm-seg span { display: flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: 0 .6rem; border-radius: 10px; font-weight: 700; color: var(--muted); cursor: pointer; text-align: center; transition: all var(--ease); }
.fm-seg input:checked + span { background: var(--surface); color: var(--brand-ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.fm-seg input:focus-visible + span { outline: 3px solid rgba(var(--brand-rgb), .45); outline-offset: 1px; }
.rc-dmg .fm-seg { background: var(--surface); }
.rc-dmg .fm-seg label { flex: 1 1 40%; }
.rc-dmg .fm-seg input:checked + span { background: var(--brand); color: #fff; }
.rc-fs { border: 0; padding: 0; margin: 0; min-width: 0; }
.rc-fs > legend.fm-label { float: none; width: auto; font-size: inherit; margin-bottom: .35rem; }
.rc-vars .tagx { white-space: normal; max-width: 100%; text-align: start; }
.rc-vars code { font-size: 15px; overflow-wrap: anywhere; }
.tcard .tbar { flex-wrap: wrap; }
.tcard .utabs { flex-wrap: wrap; max-width: 100%; }

/* ===== phase 2 ===== */
.rc-tasks { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.rc-tasks-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
@media (max-width: 991.98px) { .rc-tasks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* fleet timeline: one row per car, days across (first day on the right) */
.rc-tl-box { overflow: hidden; }
.rc-tl-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.rc-tl { overflow-x: auto; }
.rc-tl-row { display: grid; grid-template-columns: 200px minmax(700px, 1fr); border-bottom: 1px solid var(--line); }
.rc-tl-head { position: sticky; top: 0; background: var(--surface); z-index: 2; }
.rc-tl-car { padding: 8px 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; border-inline-end: 1px solid var(--line); font-size: 15px; min-width: 0; }
.rc-tl-car a { color: var(--ink); text-decoration: none; }
.rc-tl-track { position: relative; display: grid; grid-template-columns: repeat(var(--days), 1fr); min-height: 52px; }
.rc-tl-day { display: grid; place-items: center; padding: 4px 0; line-height: 1.3; border-inline-start: 1px solid var(--line); }
.rc-tl-day small { color: var(--muted); font-size: 15px; }
.rc-tl-day.is-today { background: rgba(var(--brand-rgb), .1); color: var(--brand-ink); font-weight: 800; }
.rc-tl-cell { border-inline-start: 1px solid var(--line); }
.rc-tl-cell.is-wk, .rc-tl-day.is-wk { background: var(--surface-2); }
.rc-tl-bar { position: absolute; top: 10px; bottom: 10px; display: flex; align-items: center; padding: 0 8px; border-radius: 9px; color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; overflow: hidden; white-space: nowrap; z-index: 1; }
.rc-tl-bar span { overflow: hidden; text-overflow: ellipsis; }
.rc-tl-bar.contract { background: var(--brand); }
.rc-tl-bar.late { background: var(--danger); }
.rc-tl-bar.booking { background: #6d55c4; }
.rc-tl-bar:hover { color: #fff; filter: brightness(1.08); }
.rc-tl-legend, .rc-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; color: var(--muted); font-size: 15px; }
.rc-tl-legend span, .rc-legend span { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-inline-end: -8px; }
.rc-tl-legend .contract, .rc-legend .s0 { background: var(--brand); } .rc-tl-legend .late { background: var(--danger); } .rc-tl-legend .booking { background: #6d55c4; } .rc-legend .s1 { background: #cbd5e1; }
.rc-row-soon td { background: color-mix(in srgb, #6d55c4 7%, transparent); }

/* maintenance */
.rc-maint { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 10px; }
.rc-maint-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.rc-maint-item > i { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: rgba(var(--brand-rgb), .1); color: var(--brand-ink); font-size: 1.2rem; }
.rc-maint-item > div { flex: 1; }
.rc-maint-item.is-late { border-color: rgba(220,38,38,.35); background: var(--danger-bg); }
.rc-maint-item.is-late > i { background: var(--danger); color: #fff; }
.rc-maint-item.is-soon { border-color: rgba(95,74,166,.3); background: var(--warn-bg); }
.rc-maint-item.is-soon > i { background: var(--warn); color: #fff; }

/* reports */
.rc-occ { display: inline-block; width: 70px; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; vertical-align: middle; margin-inline-end: 6px; }
.rc-occ i { display: block; height: 100%; background: var(--brand); }
.rc-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rc-bars li { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 10px; }
.rc-bars i { display: block; height: 12px; border-radius: 999px; background: var(--brand); min-width: 4px; }

/* payment page */
.rc-phone-ic.ok { background: var(--ok-bg); color: var(--ok); }
.rc-pay h1 { font-size: 34px; }
.rc-pay-dl { text-align: start; margin: 14px 0; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }

.rc-kpis { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.rc-kpis > * { flex-basis: 180px; }
.rc-kpis .kpi .val { font-size: clamp(20px, 1.6vw, 28px); white-space: nowrap; }

/* ===== phase 3 ===== */
.rc-setup { display: flex; gap: 20px; align-items: center; border-color: rgba(var(--brand-rgb), .35); }
.rc-ring { --p: 0; width: 96px; height: 96px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--surface-2) 0); }
.rc-ring b { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); font-size: 20px; }
.rc-setup-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.rc-setup-list li { display: flex; align-items: center; gap: 6px; }
.rc-setup-list li.is-done { color: var(--muted); }
.rc-setup-list li.is-done i { color: var(--ok); }
@media (max-width: 560px) { .rc-setup { flex-direction: column; align-items: flex-start; } }
.rc-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.rc-plan { display: grid; gap: 4px; align-content: start; padding: 18px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--surface); }
.rc-plan.is-cur { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .12); }
.rc-plan > b { font-size: 20px; }
.rc-plan-price { font-size: 26px; font-weight: 800; }
.rc-plan-price small { font-size: 15px; color: var(--muted); font-weight: 600; }
.rc-plan-cars { color: var(--muted); font-weight: 700; }
.rc-trips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 14px; }
.rc-trip { margin: 0; display: grid; gap: 6px; }
.rc-trip header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rc-trip.is-done, .rc-trip.is-cancelled { opacity: .65; }
.rc-trip.is-on_way { border-color: var(--brand); }
.rc-trip-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.rc-trip-acts > .th-sub { margin-inline-end: auto; }
.rc-map-box { overflow: hidden; }
.rc-map { width: 100%; height: 520px; }
@media (max-width: 760px) { .rc-map { height: 380px; } }
.rc-map-tip { font: 700 13px var(--font); padding: 0 6px; }
.rc-alerts li.is-new b { color: var(--danger); }
.rc-howto { display: grid; gap: 6px; margin-top: 8px; }
.rc-howto code { overflow-wrap: anywhere; }
.rc-book-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 420px); gap: 24px; align-items: center; padding: clamp(18px, 4vw, 40px) 0 10px; }
.rc-book-hero h1 { font-size: clamp(28px, 3.6vw, 44px); }
.rc-book-hero p { color: var(--muted); font-size: 18px; }
.rc-book-contact { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.rc-book-contact a { font-weight: 700; text-decoration: none; }
.rc-book-dates { display: grid; gap: 12px; margin: 0; }
.rc-book-price { font-size: 18px; color: var(--brand-ink); }
.wz-card > input:checked + .wz-card-in .rc-book-price { color: #fff; }
@media (max-width: 860px) { .rc-book-hero { grid-template-columns: minmax(0, 1fr); } }
.rc-admin-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 16px; border-radius: var(--radius); background: var(--deep); color: #fff; }
.rc-admin-nav a { color: #c3d2e2; text-decoration: none; font-weight: 700; padding: 6px 10px; border-radius: 10px; }
.rc-admin-nav a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }
.rc-admin-nav form { margin-inline-start: auto; }
.rc-admin-nav .btx-ghost { color: #fff; }

/* settings: one option per block, separated by a line */
.rc-opt { padding-block: 16px; border-top: 1px solid var(--line); }
.rc-opt:first-of-type { border-top: 0; }
.rc-opt-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; margin-bottom: .7rem; }
.rc-opt-h b { font-size: 17px; }
.rc-opt > .hint { display: block; margin-top: .6rem; }

/* contract and booking duration: days / return time, or hours */
.rc-dur:has(input[name="by"][value="hours"]:checked) .rc-by-x { display: none; }
.rc-dur:not(:has(input[name="by"][value="hours"]:checked)) .rc-by-hours { display: none; }
/* the lockup keeps the identity's order (mark left of the wordmark) on Arabic pages */
.rc-logo { direction: ltr; }
[dir="rtl"] .rc-logo .nm small { direction: rtl; text-align: right; }
.rc-art-logo { display: block; width: 220px; height: auto; margin-bottom: 1.4rem; }

/* ---------- traffic fines: counts, bulk bar, the police report import (2026-10-24) ---------- */
.rc-fine-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-block: 14px; }
.rc-fine-chip { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.rc-fine-chip > i { grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; font-size: 1.25rem; background: var(--surface-2); color: var(--muted); }
.rc-fine-chip > b { font-size: 1.35rem; line-height: 1.2; color: var(--ink); }
.rc-fine-chip > span { color: var(--muted); font-size: 15px; }
.rc-fine-chip.t-ok > i { background: var(--ok-bg); color: var(--ok); }
.rc-fine-chip.t-warn { border-color: rgba(95, 74, 166, .3); background: var(--warn-bg); }
.rc-fine-chip.t-warn > i { background: var(--warn); color: #fff; }
.rc-fine-chip.t-bad > i { background: var(--danger-bg); color: var(--danger); }
.rc-fine-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px; }
.rc-fine-dep { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 600; cursor: pointer; }
.rc-fine-dep > input { width: 20px; height: 20px; accent-color: var(--brand); }
.rc-fine-ck { width: 44px; text-align: center; }
.rc-fine-ck > input { width: 20px; height: 20px; accent-color: var(--brand); }
.rc-fine-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rc-fine-pick > select { min-width: 220px; flex: 1 1 220px; }
.rc-fine-manual > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .5rem; min-height: 44px; margin: 0; }
.rc-fine-manual > summary::-webkit-details-marker { display: none; }
.rc-fine-manual[open] > summary { margin-bottom: 12px; }
.rc-steps-list { margin: 0 0 12px; padding-inline-start: 1.3rem; display: grid; gap: .5rem; line-height: 1.8; }
.rc-sub { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
@media (max-width: 767.98px) { .rc-fine-ck { width: auto; text-align: start; } }

.rc-fine-acts { display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: max-content; max-width: 190px; margin-inline-start: auto; }
.rc-fine-acts .icon-btn { align-self: flex-end; }
.rc-fine-acts > form { display: contents; }
.rc-fine-when { min-width: 140px; }
@media (max-width: 767.98px) { .rc-fine-acts { flex-direction: row; flex-wrap: wrap; max-width: none; width: auto; margin-inline-start: 0; } }
