/* ==========================================================================
   Park X — application shell
   Colour variables are injected by the layout from the settings table, so an
   admin can restyle the whole app without anyone editing CSS.
   ========================================================================== */

:root {
    --px-radius: 10px;
    --px-radius-sm: 7px;
    --px-sidebar-w: 258px;
    --px-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
    --px-shadow-lg: 0 8px 24px rgba(16, 24, 40, .10);
    --px-border: #E4E8ED;
    --px-muted: #6B7684;
    --px-heading: #1B2027;
}

* {
    -webkit-tap-highlight-color: transparent;
}

body {
    background: var(--px-body-bg);
    color: #2B333D;
    font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    font-size: .925rem;
    min-height: 100vh;
}

a {
    color: var(--px-primary);
    text-decoration: none;
}

a:hover {
    color: var(--px-primary-dark);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--px-heading);
    font-weight: 600;
}

/* ------------------------------------------------------------------ branding */

.px-logo {
    align-items: center;
    display: inline-flex;
    gap: .6rem;
}

.px-logo__mark {
    flex: 0 0 auto;
}

.px-logo__text {
    display: inline-flex;
    line-height: 1;
}

/* The client's own logo sits BESIDE the Park X logo, never replacing it. */
.px-cobrand {
    align-items: center;
    display: inline-flex;
    gap: .75rem;
}

.px-cobrand__divider {
    background: rgba(255, 255, 255, .22);
    flex: 0 0 1px;
    height: 26px;
    width: 1px;
}

.px-cobrand__logo {
    max-height: 30px;
    max-width: 110px;
    object-fit: contain;
}

/* ------------------------------------------------------------------- sidebar */

.px-sidebar {
    background: var(--px-sidebar-bg);
    bottom: 0;
    display: flex;
    flex-direction: column;
    left: 0;
    position: fixed;
    top: 0;
    transition: transform .22s ease;
    width: var(--px-sidebar-w);
    z-index: 1040;
}

.px-sidebar__head {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    display: flex;
    flex: 0 0 auto;
    height: 62px;
    padding: 0 1.1rem;
}

.px-sidebar__place {
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    padding: .85rem 1.1rem;
}

.px-sidebar__place-label {
    color: rgba(255, 255, 255, .42);
    font-size: .68rem;
    letter-spacing: .09em;
    text-transform: uppercase;
}

/* ---------------------------------------------------------------- dues notice */

.px-dues {
    align-items: flex-start;
    border-radius: var(--px-radius);
    display: flex;
    gap: .85rem;
    margin-bottom: 1rem;
    padding: .9rem 1rem;
}

.px-dues--warning {
    background: #FFF6E5;
    border: 1px solid #F0C46A;
    color: #6B4A05;
}

/* Locked state carries the brand red — this is the only screen the client sees. */
.px-dues--locked {
    background: var(--px-primary, #C8102E);
    border: 1px solid rgba(0, 0, 0, .12);
    color: #fff;
}

.px-dues__icon {
    flex: 0 0 auto;
    font-size: 1.35rem;
    line-height: 1.2;
}

.px-dues__body {
    flex: 1 1 auto;
    min-width: 0;
}

.px-dues__title {
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.px-dues__line {
    font-size: .9rem;
    margin-top: .15rem;
}

.px-dues__hint {
    font-size: .8rem;
    margin-top: .35rem;
    opacity: .85;
}

.px-dues__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .75rem;
    margin-top: .7rem;
}

.px-dues--locked code {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

/* Menu search. Outside the scrolling nav so it stays put. */
.px-sidebar__search {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    display: flex;
    flex: 0 0 auto;
    gap: .5rem;
    padding: .6rem .95rem;
    position: relative;
}

.px-nav-search__icon {
    color: rgba(255, 255, 255, .38);
    flex: 0 0 auto;
    font-size: .85rem;
}

.px-nav-search__input {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: var(--px-radius-sm);
    color: #fff;
    flex: 1 1 auto;
    font-size: .85rem;
    min-width: 0;
    padding: .32rem .55rem;
}

.px-nav-search__input::placeholder {
    color: rgba(255, 255, 255, .34);
}

.px-nav-search__input:focus {
    background: rgba(255, 255, 255, .09);
    border-color: var(--px-sidebar-active);
    outline: 0;
}

/* The native search clear button is invisible on a dark field, so it is hidden
   in favour of our own. */
.px-nav-search__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.px-nav-search__clear {
    align-items: center;
    background: none;
    border: 0;
    color: rgba(255, 255, 255, .5);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .7rem;
    padding: .2rem .25rem;
}

.px-nav-search__clear:hover {
    color: #fff;
}

.px-nav-empty {
    color: rgba(255, 255, 255, .4);
    font-size: .8rem;
    padding: .6rem .75rem;
}

.px-nav-empty span {
    color: #fff;
    font-weight: 600;
}

.px-sidebar__nav {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: .7rem .6rem 1.2rem;
}

.px-sidebar__group {
    color: rgba(255, 255, 255, .34);
    font-size: .67rem;
    font-weight: 600;
    letter-spacing: .1em;
    margin: 1.1rem .55rem .35rem;
    text-transform: uppercase;
}

.px-nav-link {
    align-items: center;
    border-radius: var(--px-radius-sm);
    color: var(--px-sidebar-text);
    display: flex;
    font-size: .9rem;
    gap: .7rem;
    margin-bottom: 2px;
    padding: .56rem .7rem;
    transition: background .14s ease, color .14s ease;
}

.px-nav-link:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
    text-decoration: none;
}

.px-nav-link.active {
    background: var(--px-sidebar-active);
    color: #fff;
    font-weight: 600;
}

.px-nav-link i {
    flex: 0 0 18px;
    font-size: 1.02rem;
    text-align: center;
}

/* Sections whose screens arrive in a later phase. */
.px-nav-link--soon {
    cursor: default;
    opacity: .38;
}

.px-nav-link--soon:hover {
    background: none;
    color: var(--px-sidebar-text);
}

.px-soon {
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 20px;
    font-size: .6rem;
    letter-spacing: .06em;
    margin-left: auto;
    padding: .05rem .38rem;
    text-transform: uppercase;
}

/* Get-the-app block, pinned between the scrolling menu and the footer. */
.px-sidebar__apps {
    border-top: 1px solid rgba(255, 255, 255, .07);
    flex: 0 0 auto;
    padding: .6rem .6rem .3rem;
}

.px-app-link {
    background: rgba(255, 255, 255, .05);
}

.px-app-link:hover {
    background: rgba(255, 255, 255, .11);
}

.px-app-link__cue {
    flex: 0 0 auto;
    font-size: .82rem;
    opacity: .55;
}

/* Inside the installed app there is nothing left to install, so the whole block
   goes. This is a media query rather than a JS-set attribute because the sidebar
   must never flash an install link before app.js runs at the end of <body>. The
   attribute rule below is the fallback for pre-16 iOS, which reports standalone
   only through navigator.standalone. */
@media (display-mode: standalone),
       (display-mode: minimal-ui),
       (display-mode: fullscreen),
       (display-mode: window-controls-overlay) {
    .px-sidebar__apps {
        display: none;
    }
}

html[data-px-standalone="true"] .px-sidebar__apps {
    display: none;
}

.px-sidebar__foot {
    border-top: 1px solid rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .34);
    flex: 0 0 auto;
    font-size: .72rem;
    padding: .8rem 1.1rem;
}

.px-sidebar__version {
    color: rgba(255, 255, 255, .24);
    font-size: .68rem;
    letter-spacing: .02em;
    margin-left: .4rem;
}

.px-sidebar__backdrop {
    background: rgba(11, 15, 20, .5);
    inset: 0;
    position: fixed;
    z-index: 1035;
}

/* -------------------------------------------------------------------- topbar */

.px-main {
    margin-left: var(--px-sidebar-w);
    min-height: 100vh;
}

.px-topbar {
    align-items: center;
    background: var(--px-topbar-bg);
    border-bottom: 1px solid var(--px-border);
    display: flex;
    gap: .9rem;
    height: 62px;
    padding: 0 1.25rem;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.px-topbar__toggle {
    background: none;
    border: 0;
    color: var(--px-heading);
    display: none;
    font-size: 1.35rem;
    line-height: 1;
    padding: .2rem .4rem;
}

.px-topbar__title {
    font-size: 1.02rem;
    font-weight: 600;
    margin: 0;
}

.px-clock {
    color: var(--px-muted);
    font-size: .86rem;
    font-variant-numeric: tabular-nums;
}

.px-avatar {
    align-items: center;
    background: var(--px-primary);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 32px;
    font-size: .8rem;
    font-weight: 600;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.px-content {
    padding: 1.25rem;
}

@media (min-width: 1400px) {
    .px-content {
        padding: 1.5rem 1.75rem;
    }
}

/* --------------------------------------------------------------------- cards */

.card {
    border: 1px solid var(--px-border);
    border-radius: var(--px-radius);
    box-shadow: var(--px-shadow);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid var(--px-border);
    font-weight: 600;
    padding: .8rem 1.1rem;
}

.card-body {
    padding: 1.1rem;
}

/* KPI tiles on the POS dashboard */
.px-stat {
    align-items: center;
    display: flex;
    gap: .95rem;
}

.px-stat__icon {
    align-items: center;
    border-radius: var(--px-radius);
    display: inline-flex;
    flex: 0 0 46px;
    font-size: 1.3rem;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.px-stat__value {
    color: var(--px-heading);
    font-size: 1.55rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    line-height: 1.1;
}

.px-stat__label {
    color: var(--px-muted);
    font-size: .78rem;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.px-tint-primary {
    background: color-mix(in srgb, var(--px-primary) 12%, white);
    color: var(--px-primary);
}

.px-tint-accent {
    background: color-mix(in srgb, var(--px-accent) 14%, white);
    color: var(--px-accent-dark);
}

.px-tint-slate {
    background: #EEF1F5;
    color: #566270;
}

/* ------------------------------------------------------------------ controls */

.form-label {
    color: #46505C;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: .3rem;
}

.form-control, .form-select {
    border-color: #D6DBE1;
    border-radius: var(--px-radius-sm);
    font-size: .92rem;
    padding: .5rem .7rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--px-primary);
    box-shadow: 0 0 0 .18rem color-mix(in srgb, var(--px-primary) 18%, transparent);
}

.btn {
    border-radius: var(--px-radius-sm);
    font-size: .9rem;
    font-weight: 600;
    padding: .5rem .95rem;
}

.btn-primary {
    background: var(--px-primary);
    border-color: var(--px-primary);
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background: var(--px-primary-dark);
    border-color: var(--px-primary-dark);
}

.btn-accent {
    background: var(--px-accent);
    border-color: var(--px-accent);
    color: #fff;
}

.btn-accent:hover, .btn-accent:focus {
    background: var(--px-accent-dark);
    border-color: var(--px-accent-dark);
    color: #fff;
}

.btn-outline-primary {
    border-color: var(--px-primary);
    color: var(--px-primary);
}

.btn-outline-primary:hover {
    background: var(--px-primary);
    border-color: var(--px-primary);
}

/* POS actions need to be hittable on a gate tablet. */
.btn-pos {
    font-size: 1rem;
    padding: .7rem 1.3rem;
}

/* -------------------------------------------------------------------- tables */

.table {
    font-size: .89rem;
    margin-bottom: 0;
}

.table > thead > tr > th {
    background: #F7F9FB;
    border-bottom: 1px solid var(--px-border);
    color: #54606E;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.table > tbody > tr > td {
    border-color: #EEF1F4;
    vertical-align: middle;
}

.px-plate {
    background: #F4F6F8;
    border: 1px solid #DFE4EA;
    border-radius: 5px;
    display: inline-block;
    font-family: 'Consolas', 'SF Mono', ui-monospace, monospace;
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: .12rem .45rem;
}

.px-num {
    font-variant-numeric: tabular-nums;
    text-align: right;
}

/* Wide tables scroll inside their card rather than the page. */
.px-table-scroll {
    overflow-x: auto;
}

/* -------------------------------------------------------------------- alerts */

.alert {
    border: 0;
    border-left: 4px solid transparent;
    border-radius: var(--px-radius-sm);
    font-size: .9rem;
}

.alert-success {
    background: #E8F6EE;
    border-left-color: #1D9A5B;
    color: #14603A;
}

.alert-danger {
    background: #FDECEE;
    border-left-color: var(--px-primary);
    color: #8C1020;
}

.alert-warning {
    background: #FFF6E5;
    border-left-color: #D89A16;
    color: #7A5806;
}

.alert-info {
    background: #E8F4F5;
    border-left-color: var(--px-accent);
    color: #0A5658;
}

/* A cash amount the operator must collect — deliberately unmissable. */
.px-collect {
    background: #E8F6EE;
    border: 1px solid #B7E3C9;
    border-radius: var(--px-radius);
    padding: 1rem 1.2rem;
    text-align: center;
}

.px-collect__amount {
    color: #14603A;
    font-size: 2.1rem;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    line-height: 1.1;
}

/* --------------------------------------------------------------------- login */

/* A daytime Bangladeshi street: traffic along the road, a parking lot with a
   "P" sign, and one car that spots it, brakes, turns in and parks. Light
   palette. Every vehicle's wheels rest on the road surface — see the geometry
   note in partials/auth-scene.php. */
.px-auth {
    align-items: center;
    background: linear-gradient(180deg, #BFDFF2 0%, #DCEFF9 38%, #EFF7FB 68%, #F7FBFD 100%);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    padding: 1.5rem;
    position: relative;
}

.px-auth__bg {
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
}

/* Anchored to the bottom of the viewport so the road is always the ground line,
   whatever the window height. min-width keeps the lot and sign on screen on
   narrow windows rather than squashing the scene. */
.px-scene {
    bottom: 0;
    display: block;
    left: 50%;
    /* Render at least 1:1 with the viewBox so the street reads at a believable
       size instead of shrinking into a strip along the bottom edge. Narrower
       windows crop the sides; everything that matters lives inside x 200–1440. */
    min-width: 1600px;
    position: absolute;
    transform: translateX(-50%);
    width: 100%;
}

/* ---------------------------------------------------------------- traffic */

.px-veh,
.px-hero {
    will-change: transform;
}

/* Vehicles sharing a direction use the SAME duration with offset delays, so the
   gap between them is constant and one can never drive through the other. */
.px-veh--rickshaw { animation: px-drive-east 30s linear infinite; }
.px-veh--cng      { animation: px-drive-east 30s linear infinite; animation-delay: -15s; }
.px-veh--bus      { animation: px-drive-west 24s linear infinite; }
.px-veh--van      { animation: px-drive-west 24s linear infinite; animation-delay: -12s; }

@keyframes px-drive-east {
    from { transform: translateX(-260px); }
    to   { transform: translateX(1760px); }
}

/* Westbound vehicles are mirrored, so the flip rides along with the motion. */
@keyframes px-drive-west {
    from { transform: translateX(1760px) scaleX(-1); }
    to   { transform: translateX(-260px) scaleX(-1); }
}

/* ------------------------------------- the hero car: cruise, spot, turn, park
   -84 on Y lifts it from the near-lane wheel line (598) onto the lot surface
   (512); the slight scale-down sells the move away from the viewer. */
.px-hero {
    animation: px-hero-park 26s ease-in-out infinite;
}

@keyframes px-hero-park {
    0%        { opacity: 0; transform: translate(-260px, 0) scale(1); }
    4%        { opacity: 1; transform: translate(-120px, 0) scale(1); }
    30%       { transform: translate(600px, 0) scale(1); }
    /* slowing as the sign comes into view */
    44%       { transform: translate(880px, 0) scale(1); }
    /* swinging off the road into the bay */
    58%       { transform: translate(1110px, -88px) scale(.88); }
    66%       { transform: translate(1178px, -106px) scale(.85); }
    /* parked, engine off */
    90%       { opacity: 1; transform: translate(1178px, -106px) scale(.85); }
    97%, 100% { opacity: 0; transform: translate(1178px, -106px) scale(.85); }
}

/* Brake lights flare exactly while it slows and turns in. */
.px-hero__brake {
    animation: px-brake 26s linear infinite;
    opacity: 0;
}

@keyframes px-brake {
    0%, 38%   { opacity: 0; }
    43%, 64%  { opacity: 1; }
    70%, 100% { opacity: 0; }
}

/* The sign gives a small nudge at the moment the driver notices it. */
.px-sign {
    animation: px-sign-pulse 26s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: 50% 100%;
}

@keyframes px-sign-pulse {
    0%, 34%   { transform: scale(1); }
    41%       { transform: scale(1.1); }
    48%, 100% { transform: scale(1); }
}

/* --------------------------------------------------------- ambient movement */

.px-palm {
    animation: px-sway 9s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: 50% 100%;
}

.px-palm--2 {
    animation-delay: -3s;
    animation-duration: 11.5s;
}

@keyframes px-sway {
    0%, 100% { transform: rotate(-1.2deg); }
    50%      { transform: rotate(1.2deg); }
}

.px-cloud {
    animation: px-cloud-drift 80s linear infinite;
}

.px-cloud--2 {
    animation-delay: -34s;
    animation-duration: 110s;
}

@keyframes px-cloud-drift {
    from { transform: translateX(-340px); }
    to   { transform: translateX(1760px); }
}

@media (prefers-reduced-motion: reduce) {
    .px-veh,
    .px-hero,
    .px-hero__brake,
    .px-sign,
    .px-palm,
    .px-cloud {
        animation: none !important;
    }

    /* Leave the car parked in the bay so the scene still tells the story. */
    .px-hero {
        opacity: 1;
        transform: translate(1178px, -106px) scale(.85);
    }
}

.px-auth__inner {
    max-width: 412px;
    position: relative;
    width: 100%;
    z-index: 1;
}

.px-auth__card {
    background: #fff;
    border: 1px solid rgba(23, 44, 66, .08);
    border-radius: 14px;
    box-shadow: 0 20px 46px rgba(23, 44, 66, .18), 0 2px 6px rgba(23, 44, 66, .07);
    max-width: 412px;
    padding: 1.9rem;
    width: 100%;
}

.px-auth__brand {
    margin-bottom: 1.35rem;
    text-align: center;
}

/* Dark type: the backdrop is light now, white text was invisible. */
/* Inside the card, not on the scene behind it — so no text-shadow to lift it off
   the artwork, and a rule to separate it from whatever the card is showing. */
.px-auth__vendor {
    border-top: 1px solid var(--px-border);
    color: var(--px-muted);
    font-size: .76rem;
    margin-top: 1.5rem;
    padding-top: .9rem;
    text-align: center;
}

/* -------------------------------------------------------------------- misc */

.px-empty {
    color: var(--px-muted);
    padding: 2.4rem 1rem;
    text-align: center;
}

.px-empty i {
    display: block;
    font-size: 2.1rem;
    margin-bottom: .6rem;
    opacity: .4;
}

.badge {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .02em;
    padding: .32em .6em;
}

.px-readonly-note {
    background: #F7F9FB;
    border: 1px dashed #D6DBE1;
    border-radius: var(--px-radius-sm);
    color: var(--px-muted);
    font-size: .82rem;
    padding: .6rem .8rem;
}

/* DataTables trimming.
   Only border and type are restyled — padding is left to Bootstrap's
   .form-select/.form-control, because .form-select reserves the right-hand
   padding its dropdown chevron sits in. Overriding that padding puts the
   selected value underneath the arrow. */
div.dt-container .dt-search input,
div.dt-container .dt-length select {
    border: 1px solid #D6DBE1;
    border-radius: var(--px-radius-sm);
    font-size: .88rem;
}

div.dt-container .dt-length select {
    min-width: 5rem;
    width: auto;
}

div.dt-container .dt-search input {
    min-width: 12rem;
}

/* DataTables' Bootstrap5 layout wraps its controls in .row, which carries
   Bootstrap's -12px gutter margins. Inside a card-body with no padding to
   absorb them the row sticks 12px past the container and produces a horizontal
   scrollbar on a table that actually fits. Zero the margins, then give the
   control rows real padding so they are not flush against the card edge. */
div.dt-container > .row {
    margin-left: 0;
    margin-right: 0;
}

div.dt-container > .row:not(.dt-layout-table) {
    padding: .15rem 1.1rem;
}

div.dt-container > .row.dt-layout-table {
    margin-top: 0 !important;
}

div.dt-container > .row.dt-layout-table > [class*="col"] {
    padding-left: 0;
    padding-right: 0;
}

/* DataTables reserves 30px on every sortable header for its sort icon. Across a
   nine-column table that is 270px of padding, which pushes the table wider than
   its container and crowds the label away from its own sort arrow. */
table.dataTable thead > tr > th.dt-orderable-asc,
table.dataTable thead > tr > th.dt-orderable-desc,
table.dataTable thead > tr > th.dt-ordering-asc,
table.dataTable thead > tr > th.dt-ordering-desc {
    padding-right: 1.35rem;
}

table.dataTable thead > tr > th span.dt-column-order {
    right: 3px;
}

div.dt-container .dt-paging .dt-paging-button.current {
    background: var(--px-primary) !important;
    border-color: var(--px-primary) !important;
    color: #fff !important;
}

/* Collapsible step-by-step block. */
.px-steps > summary {
    color: var(--px-heading);
    cursor: pointer;
    font-size: .9rem;
    font-weight: 600;
    list-style: none;
    padding: .3rem 0;
}

.px-steps > summary::-webkit-details-marker {
    display: none;
}

.px-steps > summary::before {
    content: "\F282";               /* bi-chevron-down */
    display: inline-block;
    font-family: 'bootstrap-icons';
    font-size: .78rem;
    margin-right: .45rem;
    transform: rotate(-90deg);
    transition: transform .15s ease;
}

.px-steps[open] > summary::before {
    transform: rotate(0deg);
}

/* An amount that was never recorded, as opposed to an amount of zero. */
.px-unset {
    color: var(--px-muted);
    font-size: .78rem;
}

/* ------------------------------------------------------ lightweight charts */
/* CSS-only bars and columns — no charting library, so nothing to load. */

.px-bar-row {
    align-items: center;
    display: grid;
    gap: .6rem;
    grid-template-columns: minmax(80px, 30%) 1fr auto;
    margin-bottom: .45rem;
}

.px-bar-label {
    color: #46505C;
    font-size: .84rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.px-bar-track {
    background: #EEF1F5;
    border-radius: 4px;
    height: 16px;
    overflow: hidden;
}

.px-bar-fill {
    background: var(--px-primary);
    border-radius: 4px;
    height: 100%;
    min-width: 2px;
    transition: width .3s ease;
}

.px-bar-fill--accent {
    background: var(--px-accent);
}

.px-bar-value {
    font-size: .82rem;
    font-variant-numeric: tabular-nums;
    min-width: 74px;
    text-align: right;
}

/* Vertical columns, used for by-hour distributions. */
.px-columns {
    align-items: flex-end;
    display: flex;
    gap: 3px;
    height: 130px;
    padding-top: .5rem;
}

.px-column {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    height: 100%;
    justify-content: flex-end;
    min-width: 0;
}

.px-column__fill {
    background: var(--px-accent);
    border-radius: 3px 3px 0 0;
    min-height: 2px;
}

.px-column__tick {
    color: var(--px-muted);
    font-size: .62rem;
    overflow: hidden;
    padding-top: 3px;
    text-align: center;
    white-space: nowrap;
}

.px-column--peak .px-column__fill {
    background: var(--px-primary);
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 991.98px) {
    .px-sidebar {
        transform: translateX(-100%);
    }

    .px-sidebar.is-open {
        box-shadow: var(--px-shadow-lg);
        transform: translateX(0);
    }

    .px-main {
        margin-left: 0;
    }

    .px-topbar__toggle {
        display: inline-block;
    }
}

/* ---------------------------------------------------------------------- print */

@media print {
    .px-sidebar,
    .px-topbar,
    .px-no-print {
        display: none !important;
    }

    .px-main {
        margin-left: 0;
    }

    .card {
        border: 0;
        box-shadow: none;
    }

    body {
        background: #fff;
    }
}
