/* RoadLeopard: solid header on light pages, and the management dashboard. */

/* Pages with a light top start with the dark header bar, before JS runs too. */
body.header-solid #site-header { background-color: rgb(13 17 23 / .92); border-color: rgb(255 255 255 / .1); backdrop-filter: blur(12px); }
.rl-tabs a[aria-current="page"] { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }

/* Management dashboard */
.m-eyebrow { color: var(--color-mute); margin-bottom: .35rem; }
.m-tabs { margin-bottom: 1.25rem; }
.m-count { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; margin-left: .35rem; padding: 0 .35rem; border-radius: 999px; background: var(--color-sign); color: var(--color-ink); font-size: .75rem; font-weight: 700; }
.m-h2 { display: flex; align-items: baseline; gap: .75rem; margin: 1.5rem 0 .75rem; font-weight: 700; font-size: 1.05rem; }
.m-tag { display: inline-block; padding: .05rem .4rem; border-radius: .35rem; background: #eceae3; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; color: #3d4350; vertical-align: middle; }
.m-kpis { display: grid; gap: .9rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .m-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .m-kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.m-kpi { display: flex; flex-direction: column; gap: .4rem; padding: 1.1rem 1.25rem; background: #fff; border: 1.5px solid #e6e0d1; border-radius: 1rem; color: var(--color-ink); text-decoration: none; min-width: 0; }
.m-kpi strong { font-family: var(--font-display, inherit); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.m-kpi strong small { font-size: .9rem; font-weight: 600; color: var(--color-mute); }
.m-kpi-label { font-size: .85rem; font-weight: 600; color: var(--color-mute); }
.m-kpi.is-pos strong { color: #0f7a45; }
.m-kpi.is-neg strong { color: #b42318; }
.m-kpi.is-link { transition: border-color .2s, transform .2s; }
.m-kpi.is-link:hover, .m-kpi.is-link:focus-visible { border-color: var(--color-ink); transform: translateY(-2px); }
.m-grid { display: grid; gap: 1.25rem; margin-top: 1.25rem; }
@media (min-width: 900px) { .m-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .m-span-2 { grid-column: 1 / -1; } .m-grid-fin { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }
.m-legend { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--color-mute); }
.m-key { display: inline-block; width: .8rem; height: .8rem; border-radius: .2rem; margin-left: .5rem; }
.m-key.is-in { background: #f5b800; }
.m-key.is-out { background: #2b3340; }
.m-bar.is-in { fill: #f5b800; }
.m-bar.is-out { fill: #2b3340; }
.m-chart { width: 100%; height: auto; display: block; }
.m-grid-line { stroke: #eee8da; stroke-width: 1; }
.m-axis { font-size: 11px; fill: #6b7280; font-family: inherit; }
.m-axis.is-now { font-weight: 700; fill: var(--color-ink); }
.m-details { margin-top: .75rem; }
.m-details summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.m-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.m-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.m-pills a { padding: .4rem .8rem; border-radius: 999px; border: 1.5px solid #e6e0d1; background: #fff; font-size: .85rem; font-weight: 600; color: var(--color-ink); text-decoration: none; }
.m-pills a span { color: var(--color-mute); font-weight: 500; }
.m-pills a[aria-current] { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }
.m-pills a[aria-current] span { color: #cfd3da; }
.m-search { display: flex; gap: .5rem; }
.m-search .field { min-width: 14rem; }
.rl-card.m-flush { padding: 0; overflow: hidden; }
.m-pad { padding: 1.25rem 1.5rem 0; }
.m-flush .rl-empty { margin: 1.25rem 1.5rem 1.5rem; }
.m-table th { font-size: .8rem; color: var(--color-mute); font-weight: 600; background: #faf8f2; }
.m-table th:first-child, .m-table td:first-child { padding-left: 1.25rem; }
.m-table th:last-child, .m-table td:last-child { padding-right: 1.25rem; }
.m-table td { vertical-align: top; }
.m-table .rl-badge { margin-top: .3rem; margin-right: .25rem; }
.m-strong { font-weight: 700; }
.m-sub { display: block; color: var(--color-mute); font-size: .8rem; }
.m-back { margin-bottom: .5rem; font-weight: 600; }
.m-back a { color: var(--color-ink); }
.m-app-head { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.m-title { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.05; }
.m-fields { display: grid; gap: .45rem; margin-top: .75rem; }
.m-fields label, .m-fields legend { font-weight: 600; font-size: .9rem; margin-top: .35rem; }
.m-fields .btn { justify-self: start; margin-top: .6rem; }
.m-two { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m-two > div, .m-three > div { display: grid; gap: .45rem; align-content: start; }
.m-three { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .m-three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.m-mono { font-family: var(--font-mono, monospace); font-size: .9rem; }
.m-mini { width: auto !important; min-height: 2.4rem; padding: .3rem .6rem; }
.m-savebar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.25rem; padding: .9rem 1.25rem; background: rgb(255 255 255 / .95); border: 1.5px solid #e6e0d1; border-radius: 1rem; backdrop-filter: blur(8px); box-shadow: 0 -6px 20px rgb(13 17 23 / .06); }
.m-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.m-chip { padding: .35rem .75rem; border-radius: 999px; background: #fff; border: 1.5px solid #e6e0d1; font-size: .85rem; }
.m-cars { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.m-car { display: flex; flex-direction: column; }
.m-car-img { aspect-ratio: 16 / 9; margin: -1.5rem -1.5rem 0; border-radius: 1.25rem 1.25rem 0 0; overflow: hidden; background: #f3f1ea; display: grid; place-items: center; }
.m-car-img img { width: 100%; height: 100%; object-fit: cover; }
.m-car-img svg { width: 78%; height: auto; }
.m-car-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; margin-top: 1rem; }
.m-car-edit { margin-top: auto; align-self: flex-start; }
.m-car .rl-facts { margin-bottom: 1rem; }
.m-car-photo { width: 100%; border-radius: .9rem; }
.rl-badge.m-st-available { background: #dcf5e6; color: #0f5132; }
.rl-badge.m-st-rented { background: #fff1c2; color: #6b4e00; }
.rl-badge.m-st-maintenance { background: #fde2de; color: #8a1c10; }
.rl-badge.m-st-retired { background: #eceae3; color: #3d4350; }
.m-pos { color: #0f7a45; }
.m-neg { color: #b42318; }
.m-danger { margin-top: 1rem; background: none; border: 0; padding: 0; color: #b42318; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.m-x { width: 2rem; height: 2rem; border-radius: 999px; border: 1.5px solid #e6e0d1; background: #fff; color: #8a1c10; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.m-x:hover { border-color: #b42318; }
.m-month { display: flex; align-items: center; gap: .5rem; }
.m-month .btn { min-height: 2.75rem; padding: 0 1rem; }
.m-kind { display: flex; gap: 1.25rem; border: 0; padding: 0; margin: 0; }
.m-kind label { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; margin: 0; }
.rl-manage .field { width: 100%; }
@media (max-width: 600px) { .m-search { width: 100%; } .m-search .field { min-width: 0; } .m-two { grid-template-columns: 1fr; } }

/* Fleet operations, charges, reports and settings */
.m-hint:empty { display: none; }
.m-hint.is-found { color: #0f5132; font-weight: 600; }
.m-check { display: flex !important; align-items: center; gap: .5rem; font-weight: 600; }
.m-bill { display: grid; gap: .45rem; padding: .75rem .9rem; border-radius: .75rem; background: #faf8f2; border: 1.5px dashed #e6e0d1; }
.m-bill[hidden], [data-bill-fields][hidden] { display: none; }
.m-gap { margin-top: 1.25rem; }
.m-gap-s { margin: .75rem 0 .25rem; }
.m-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; padding-bottom: .75rem; }
.m-note { margin: -.25rem 0 .5rem; }
.m-actions { white-space: nowrap; }
.m-actions form { display: inline; }
.m-link { background: none; border: 0; padding: 0 .35rem 0 0; color: var(--color-ink); font: inherit; font-size: .85rem; font-weight: 600; text-decoration: underline; cursor: pointer; }
.m-report th[scope="row"] { font-weight: 600; text-align: left; }
.m-report td, .m-report th { text-align: right; }
.m-report th:first-child { text-align: left; }
.m-share { min-width: 9rem; text-align: left !important; }
.m-share small { margin-left: .4rem; color: var(--color-mute); font-size: .8rem; }
.m-sharebar { display: inline-block; height: .6rem; min-width: 2px; border-radius: 999px; background: #f5b800; vertical-align: middle; max-width: 6rem; }
.m-steps { margin: .75rem 0 0; padding-left: 1.2rem; display: grid; gap: .6rem; }
.m-code { display: inline-block; margin-top: .3rem; padding: .3rem .5rem; border-radius: .4rem; background: #f3f1ea; font-size: .82rem; overflow-wrap: anywhere; }
.m-kpis-4 { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)) !important; }
.rl-list form { flex: none; }
.btn.rl-pay { min-height: 2.6rem; padding: 0 1.1rem; font-size: .9rem; }
.rl-card .m-pills a, .rl-card .m-pills a:not(.btn) { text-decoration: none; }
.m-report tbody th { background: none; font-size: .95rem; color: var(--color-ink); }
