/* Loaded after wingz-theme.css and site.css on every page except the home page.
   The theme was written for the home page and styles every header and menu white; these rules give other pages their own colours. */
.site-shell,.adm-shell{--bg:#fff;--soft:#f6f6f7;--ink:#17191d;--mut:#5d636b;--line:#e6e7ea;--card:#fff;color-scheme:light;color:var(--ink)}
.site-shell{background:#fff}

/* Public header */









/* Content shared by customer, partner and admin pages */
.page .eyebrow{display:block;background:none;padding:0;border:0;border-radius:0;color:#c91019;font:800 11px 'DM Sans',sans-serif;letter-spacing:.16em}
.page h2{font-size:22px;line-height:1.25;max-width:none;margin:30px 0 10px;letter-spacing:-.02em}
.page h3{font-size:17px;margin:18px 0 8px}
.page p{color:#4d535b}
.page .btn{font-size:13px;border-radius:8px;justify-content:center}
.page .btn.ghost{border:1.5px solid var(--line);color:#17191d;background:#fff}
.page input,.page select,.page textarea{background:#fff;color:#17191d;border:1.5px solid #dcdfe3;border-radius:8px;font-size:14px;height:46px}
.page textarea{height:auto}
.page input[type=checkbox],.page input[type=radio]{width:18px;height:18px;vertical-align:middle;accent-color:#ed1c24}
.page input[type=file]{height:auto;padding:10px}
.page .panel{border-radius:12px}
.page .narrow{max-width:560px}
.page .list{border-radius:10px;overflow:hidden}
.page .list th{background:#f1f2f4;font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#4d535b}
.page .list tr:hover td{background:#fffafa}
.page .error{color:#b00d15;background:#fff0f0;border:1px solid #f3c4c6;border-radius:8px;padding:12px 14px;max-width:none}
.page .ok{color:#10632f;background:#eaf8ef;border:1px solid #bfe6cd;border-radius:8px;padding:12px 14px;font-weight:700}
.muted{color:#6b7179;font-size:14px}
@media(max-width:800px){.page .list{display:block;overflow-x:auto}.page h1{font-size:30px}}

/* Admin and partner frames */
.adm-side nav{color:#d6d6d8;font-size:13px}
.adm-side nav a{opacity:1}
.adm-side nav a:hover{text-decoration:none}
.adm-main .page{max-width:1240px}

/* Dashboard and reports */
.card{display:block;background:#fff;border:1px solid var(--line,#e6e7ea);border-radius:12px;padding:18px 20px;box-shadow:0 8px 28px #17191d0a;min-width:0}
.adm-main .page .card h2{margin:0 0 14px;font-size:16px}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin:14px 0}
.kpis .card span{display:block;font-size:12px;font-weight:700;color:#6b7179;text-transform:uppercase;letter-spacing:.05em}
.kpis .card strong{display:block;font:800 26px Sora,system-ui,sans-serif;margin-top:6px;overflow-wrap:anywhere}
a.card:hover{border-color:#ed1c24}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
.grid2 .list{margin:0}
@media(max-width:1000px){.grid2{grid-template-columns:1fr}}
.range{display:flex;gap:8px;flex-wrap:wrap;align-items:center;max-width:none}
.range a{border:1.5px solid #dcdfe3;border-radius:99px;padding:5px 14px;font-size:13px;font-weight:700;background:#fff}
.range a.on{background:#ed1c24;border-color:#ed1c24;color:#fff}
.chart small{color:#6b7179;font-size:12px}
.chart-bars{display:flex;align-items:flex-end;gap:2px;height:190px;border-bottom:1px solid #dcdfe3;border-top:1px dashed #e6e7ea}
.chart-bars span{flex:1;height:100%;display:flex;align-items:flex-end;min-width:0}
.chart-bars span:hover{background:#fff0f0}
.chart-bars b{display:block;width:100%;background:#ed1c24;border-radius:3px 3px 0 0}
.chart-axis{display:flex;justify-content:space-between}
.hbars{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.hbars li{display:grid;grid-template-columns:minmax(90px,38%) 1fr auto;gap:10px;align-items:center;font-size:13px}
.hbars span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hbars i{height:10px;background:#f1f2f4;border-radius:99px;overflow:hidden}
.hbars b{display:block;height:100%;background:#ed1c24;border-radius:99px}
.hbars em{font-style:normal;font-weight:700}
.filters{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end;margin:12px 0}
.filters input{width:190px}

/* Edit and delete links in tables, confirmation boxes */
.page .row-actions{white-space:nowrap}
.page .row-actions a,.page .row-actions button{display:inline-block;margin-right:12px;font:700 13px 'DM Sans',sans-serif;color:#17191d;background:none;border:0;padding:0;text-decoration:underline;cursor:pointer}
.page .row-actions .danger{color:#b00d15}
.page .confirm{border:2px solid #ed1c24;margin-bottom:18px}
.page .ok{color:#12643a;background:#ecf9f1;border:1px solid #bfe6cf;border-radius:8px;padding:12px 14px}
.page .scroll{overflow-x:auto;max-width:100%}
.page .scroll:has(>.list){max-height:520px;overflow:auto}

/* Stops of a bus trip */
.page .boarding{font-size:13px;line-height:1.7}
.page details>summary{cursor:pointer;font-weight:700;font-size:13px;margin:8px 0}
.page .stops{list-style:none;padding:0;margin:8px 0}
.page .stops li{display:flex;gap:14px;padding:8px 10px;border-left:3px solid #ed1c24;font-size:13px}
.page .stops li.off{border-left-color:#dcdfe3;opacity:.65}
.page .stops li.end{background:#fff4f4}
.page .stops time{font-weight:800;min-width:52px}
.page .stops time small{display:block;font-weight:400;color:#6e747c}
.page .stops em{display:block;font-style:normal;font-weight:700;color:#c91019;font-size:12px}

/* Trip calendar */
.page .cal{display:grid;grid-template-columns:repeat(7,minmax(88px,1fr));gap:6px;min-width:660px}
.page .cal-head{font:800 11px 'DM Sans',sans-serif;text-transform:uppercase;color:#6e747c;text-align:center}
.page .cal-day{display:block;min-height:84px;border:1.5px solid #e6e7ea;border-radius:8px;padding:8px;background:#fff;margin:0;cursor:pointer;color:#17191d;font-size:13px}
.page .cal-day.runs{border-color:#8fd0aa;background:#f2fbf6}
.page .cal-day.past{opacity:.5;cursor:default}
.page .cal-day:has(input:checked){border-color:#ed1c24;box-shadow:0 0 0 2px #ed1c2433}
.page .cal-day small{display:block;font-weight:600;font-size:11px;margin-top:4px;color:#12643a}
.page .cal-day small.Cancelled{color:#b00d15;text-decoration:line-through}
.page .weekdays{border:0;padding:0;margin:14px 0;display:flex;flex-wrap:wrap;gap:6px 16px}
.page .weekdays legend{font-weight:700;font-size:13px;margin-bottom:8px}
.page .weekdays label{display:flex;gap:6px;align-items:center;margin:0}
.page .cal-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:18px;align-items:start}
.page .cal-actions label{margin-top:12px}
.page .cal-wd{display:none;font-style:normal;color:#6e747c;font-size:12px}
@media(max-width:700px){
  .page .cal{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}
  .page .cal-head,.page .cal-blank{display:none}
  .page .cal-wd{display:inline}
  .page .cal-day{min-height:62px}
}
.page .badge.Approved{background:#e8f8ef;color:#12643a}
