@import url("./styles-main.css");

/* INTAVERGE Express brand overrides. The imported stylesheet retains the
   complete, previously verified application layout and component rules. */
:root{
    --main-accent-color:#092841;
    --secondary-accent-color:#00adcd;
    --accent-main:var(--main-accent-color);
    --accent-secondary:var(--secondary-accent-color);
    --blue:var(--main-accent-color);
    --red:var(--secondary-accent-color);
    --brand-text:#000;
    --ink:var(--brand-text);
    --muted:#454545;
}

.login-page{
    background:linear-gradient(135deg,var(--main-accent-color) 0 38%,#eee 38%)
}
.leaflet-tooltip.gps-label{
    background:var(--main-accent-color)
}
.leaflet-tooltip.gps-label.online{
    background:var(--main-accent-color)
}
.leaflet-tooltip.gps-label.offline{
    background:#7a8494
}
.group-callers .radio-name{
    color:var(--main-accent-color)
}
.group.call-active{
    border-color:var(--secondary-accent-color)
}
.activity-play{
    color:var(--main-accent-color)
}
.activity-play.is-playing{
    background:var(--secondary-accent-color)
}

/* Shared radio-list widget when embedded over the GPS kiosk map. */
.gps-page #gps-radios{
    position:absolute;
    z-index:700;
    left:16px;
    top:16px;
    width:min(340px,calc(100% - 32px));
    max-height:calc(100% - 78px);
    pointer-events:auto
}
.gps-radios-panel{
    position:relative;
    display:flex;
    flex-direction:column;
    max-height:100%;
    box-shadow:0 8px 24px rgba(9,40,65,.22)
}
.gps-radios-panel .card-body{
    display:flex;
    flex:1;
    flex-direction:column;
    min-height:0
}
.gps-radios-panel .radio-scroll{
    flex:1;
    min-height:0;
    max-height:calc(100vh - 260px);
    overflow:auto
}
.gps-radios-panel .widget-collapse{
    position:absolute;
    right:12px;
    top:10px;
    z-index:1;
    border:1px solid #ccd6e6;
    border-radius:5px;
    background:#fff;
    color:var(--main-accent-color);
    font-weight:700;
    line-height:22px;
    min-width:25px
}
.gps-radios-panel .card-head{
    padding-right:45px
}
.card-badges{
    display:flex;
    align-items:center;
    gap:6px
}
.badge.gps-live-badge{
    background:var(--green);
    color:#fff
}
.gps-radios-panel .widget-collapsed{
    display:none
}
.gps-radios-panel tr{
    cursor:pointer
}
.gps-radios-panel tr.is-selected td{
    background:#e5f6fa
}
.gps-widget-controls{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin:0 0 10px;
    padding:7px 9px
}
.radio-widget-controls{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin:0 0 10px;
    padding:7px 9px
}
.radio-widget-controls .device-order{
    margin:0
}
.gps-selection-actions{
    display:flex;
    align-items:center;
    gap:6px
}
.gps-select-all,.gps-select-none{
    border:0;
    border-radius:999px;
    background:#e8ebf5;
    color:var(--main-accent-color);
    padding:4px 9px;
    font:inherit;
    font-size:12px;
    font-weight:650;
    cursor:pointer
}
.gps-select-all:disabled,.gps-select-none:disabled{
    background:#eef0f4;
    color:#99a3b1;
    cursor:default
}
.gps-marker{
    background:transparent;
    border:0
}
.gps-marker span{
    display:block;
    width:18px;
    height:18px;
    border:2px solid #fff;
    border-radius:50% 50% 50% 0;
    box-shadow:0 1px 5px rgba(0,0,0,.5);
    transform:rotate(-45deg)
}
.gps-marker span::after{
    content:'';
    display:block;
    width:6px;
    height:6px;
    margin:4px;
    border-radius:50%;
    background:#fff
}
.gps-marker.online span{
    background:var(--main-accent-color)
}
.gps-marker.offline span{
    background:#7a8494
}
.gps-page .leaflet-tooltip-pane{
    z-index:750
}
.leaflet-bottom.leaflet-right .gps-map-tools{
    position:absolute;
    right:10px;
    bottom:26px;
    display:flex;
    margin:0;
    gap:4px;
    border:0;
    background:transparent;
    box-shadow:none
}
.gps-map-tools button{
    display:grid;
    width:30px;
    height:30px;
    place-items:center;
    border:1px solid #a9b4c3;
    border-radius:4px;
    background:#fff;
    color:var(--main-accent-color);
    box-shadow:0 1px 5px rgba(0,0,0,.35);
    font-size:19px;
    line-height:1;
    cursor:pointer
}
.gps-map-tools button:hover{
    background:#f2f6fb
}
.gps-page #gps-route-control-host{
    position:absolute;
    inset:0;
    z-index:800;
    pointer-events:none
}
.gps-route-control{
    position:absolute;
    top:50%;
    left:50%;
    width:min(430px,calc(100% - 32px));
    max-height:calc(100% - 32px);
    transform:translate(-50%,-50%);
    pointer-events:auto;
    background:#fff;
    border:1px solid #cbd7e7;
    border-radius:10px;
    box-shadow:0 14px 38px rgba(9,40,65,.32);
    overflow:hidden;
    transition:top .28s ease,left .28s ease,right .28s ease,transform .28s ease,width .28s ease
}
.gps-route-control.is-docked{
    top:16px;
    right:16px;
    left:auto;
    max-height:calc(100% - 74px);
    transform:none;
    width:min(390px,calc(100% - 32px))
}
.gps-route-control-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:12px 14px;
    border-bottom:1px solid #d9e1ed;
    background:#f7f9fc
}
.gps-route-control-head h2{
    margin:0;
    color:var(--main-accent-color);
    font-size:17px
}
.gps-route-control-actions,.gps-route-actions{
    display:flex;
    align-items:center;
    gap:8px
}
.gps-route-collapse,.gps-route-close{
    width:28px;
    height:28px;
    padding:0;
    border:1px solid #c5d0df;
    border-radius:6px;
    background:#fff;
    color:var(--main-accent-color);
    font-size:22px;
    line-height:22px;
    cursor:pointer
}
.gps-route-close{
    border-color:#cf0800;
    background:#cf0800;
    color:#fff
}
.gps-route-close:hover{
    background:#a80600
}
.gps-route-control-body{
    display:grid;
    gap:12px;
    max-height:calc(100vh - 106px);
    padding:14px;
    overflow:hidden
}
.gps-route-control.is-collapsed .gps-route-control-body{
    display:none
}
.gps-route-control-body label{
    display:grid;
    gap:5px;
    color:var(--ink);
    font-size:13px;
    font-weight:600
}
.gps-route-date-fields{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px
}
.gps-route-status{
    min-height:20px;
    margin:0;
    color:var(--ink);
    font-size:13px
}
.gps-route-status.is-loading{
    color:var(--main-accent-color)
}
.gps-route-status.is-ready{
    color:#157a46;
    font-weight:600
}
.gps-route-status.is-empty,.gps-route-status.is-error{
    color:#a42b25;
    font-weight:600
}
.gps-route-control .button{
    justify-self:start
}
.gps-route-points{
    border-top:1px solid #d9e1ed
}
.gps-route-points-toggle{
    display:flex;
    width:100%;
    align-items:center;
    justify-content:space-between;
    border:0;
    background:#f7f9fc;
    color:var(--main-accent-color);
    padding:9px 8px;
    font:inherit;
    font-size:13px;
    font-weight:700;
    cursor:pointer
}
.gps-route-points-body{
    overflow:hidden
}
.table-wrap.table-wrap-gps-route-points{
    max-height:min(32vh,245px);
    overflow:auto
}
.gps-route-points.is-collapsed .gps-route-points-body{
    display:none
}
.gps-route-points table{
    font-size:12px
}
.gps-route-points th,.gps-route-points td{
    padding:7px 6px
}
.gps-route-points tr[data-route-point]{
    cursor:pointer
}
.gps-route-points tr[data-route-point]:hover td{
    background:#e5f6fa
}
.gps-route-points tr[data-route-point].is-selected td{
    background:#d6f0f6
}
.gps-page .gps-status{
    bottom:14px
}

.footer-system-status{
    border:0;
    background:transparent;
    color:#fff;
    padding:0;
    font:inherit;
}
.footer-system-status:hover{
    text-decoration:none;
}
.footer-system-status.is-static{
    cursor:default;
    text-decoration:none
}
.footer-system-status{
    border-radius:999px;
    padding:3px 9px
}
.system-health-ok{
    background:#218c52
}
.system-health-warning{
    background:#d97808
}
.system-health-error{
    background:#cf0800
}
.system-health-pending{
    background:#667085
}
.statusbar{
    overflow:visible
}

.status-user-presence{
    position:relative
}
.status-user{
    border:0;
    background:transparent;
    color:#fff;
    padding:0;
    font:inherit;
    font-weight:650;
    cursor:default
}
.status-user-presence .status-user{
    cursor:default
}
.logged-in-users-card{
    position:absolute;
    z-index:1300;
    right:0;
    bottom:calc(100% + 9px);
    width:min(330px,calc(100vw - 28px));
    max-height:min(420px,calc(100vh - 110px));
    overflow:auto;
    padding:14px;
    border:1px solid #ccd6e6;
    border-radius:9px;
    background:#fff;
    box-shadow:0 8px 24px rgba(9,40,65,.28);
    color:var(--ink);
    opacity:0;
    pointer-events:none;
    transform:translateY(10px);
    transition:opacity .18s ease,transform .18s ease
}
.status-user-presence:hover .logged-in-users-card{
    opacity:1;
    pointer-events:auto;
    transform:translateY(0)
}
.logged-in-users-card h2{
    margin:0 0 9px;
    color:var(--main-accent-color);
    font-size:16px
}
.logged-in-users-card ul{
    display:grid;
    gap:7px;
    margin:0;
    padding:0;
    list-style:none
}
.logged-in-users-card li{
    display:grid;
    gap:2px;
    padding:8px 0;
    border-top:1px solid #d9e1ed;
    font-size:12px
}
.logged-in-users-card li:first-child{
    border-top:0
}
.logged-in-users-card strong{
    color:var(--main-accent-color);
    font-size:13px
}
.logged-in-users-card li span{
    color:var(--ink)
}
.logged-in-users-empty{
    color:var(--muted)
}

/* Manager-facing System Status dashboard. */
.status-dashboard{
    display:grid;
    grid-template-columns:repeat(12,minmax(0,1fr));
    gap:14px;
    align-items:stretch
}
.status-dashboard-widget{
    grid-column:span 3;
    min-width:0;
    padding:16px;
    border:1px solid #ccd6e6;
    border-radius:10px;
    background:#fff;
    box-shadow:0 2px 7px rgba(9,40,65,.08)
}
.status-dashboard-widget-users,.status-dashboard-widget-resources{
    grid-column:span 6
}
.status-dashboard-widget-licence{
    grid-column:span 3
}
.status-licence-information{
    display:grid;
    gap:14px
}
.status-licence-information dl{
    display:grid;
    grid-template-columns:auto 1fr;
    gap:7px 12px;
    margin:0;
    font-size:13px
}
.status-licence-information dt{
    font-weight:700
}
.status-licence-information dd{
    margin:0
}
.status-dashboard-widget h2{
    margin:0 0 12px;
    color:var(--main-accent-color);
    font-size:17px
}
.status-widget-loader{
    display:grid;
    min-height:130px;
    place-content:center;
    justify-items:center;
    gap:11px;
    color:var(--ink);
    font-size:13px;
    font-weight:600
}
.status-widget-loader .page-loader-spinner{
    width:34px;
    height:34px;
    border-width:4px
}
.status-metrics{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(112px,1fr));
    gap:9px
}
.status-metric{
    display:grid;
    gap:4px;
    min-height:62px;
    padding:9px;
    border-radius:7px;
    background:#f4f7fb
}
.status-metric span,.status-resource-list small{
    color:var(--ink);
    font-size:11px;
    font-weight:600
}
.status-metric strong{
    color:var(--main-accent-color);
    font-size:17px
}
.status-chart{
    display:flex;
    align-items:flex-end;
    grid-column:1 / -1;
    height:72px;
    gap:3px;
    padding:5px 0 0;
    border-top:1px solid #e0e6ef
}
.status-chart span{
    display:flex;
    flex:1 1 0;
    align-items:flex-end;
    min-width:3px;
    height:100%
}
.status-chart i{
    width:100%;
    height:var(--bar);
    border-radius:3px 3px 0 0;
    background:var(--secondary-accent-color)
}
.status-ranking{
    display:grid;
    gap:7px;
    margin:0;
    padding:0;
    list-style:none
}
.status-ranking li,.status-resource-list>div{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:9px;
    padding:7px 0;
    border-top:1px solid #e0e6ef
}
.status-ranking li:first-child,.status-resource-list>div:first-child{
    border-top:0
}
.status-ranking strong,.status-resource-list strong{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap
}
.status-ranking span{
    color:var(--main-accent-color);
    font-weight:700;
    white-space:nowrap
}
.status-resource-list>div{
    justify-content:flex-start
}
.status-resource-list small{
    margin-left:auto
}
.status-resource-list .resource-dot{
    flex:0 0 auto;
    width:9px;
    height:9px;
    margin-right:0;
    border-radius:50%;
    background:#cf0800
}
.status-resource-list .resource-ok{
    background:#218c52
}
.status-resource-list .resource-warning{
    background:#d97808
}
.status-resource-list .resource-muted{
    background:#98a2b3
}
.status-resource-list .resource-error{
    background:#cf0800
}
.status-empty,.status-dashboard-updated{
    margin:0;
    color:var(--ink)
}
.status-dashboard-updated{
    margin-top:10px;
    font-size:12px
}
.status-compatibility{
    margin-top:16px;
    padding:0 15px 15px;
    border:1px solid #ccd6e6;
    border-radius:10px;
    background:#fff
}
.status-compatibility summary{
    padding:13px 0;
    color:var(--main-accent-color);
    font-weight:700;
    cursor:pointer
}
.system-status-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:16px;
    padding:16px;
    border:1px solid #ccd6e6;
    border-radius:10px;
    background:#fff;
    box-shadow:0 2px 7px rgba(9,40,65,.08)
}
.system-status-header h1{
    margin:0;
    color:var(--main-accent-color);
    font-size:25px
}
.system-status-header p{
    margin:6px 0 0;
    color:var(--ink);
    font-size:14px
}
.system-status-header-meta{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
    flex-wrap:wrap
}
.system-status-updated,.system-status-summary{
    display:inline-flex;
    align-items:center;
    gap:6px;
    min-height:31px;
    padding:0 11px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
    white-space:nowrap
}
.system-status-updated{
    background:#e8ebf5;
    color:var(--ink)
}
.system-status-summary{
    color:#fff
}
.system-status-summary i{
    width:8px;
    height:8px;
    border-radius:50%;
    background:currentColor;
    box-shadow:0 0 0 2px #ffffff55
}
.system-status-summary-ok{
    background:#218c52
}
.system-status-summary-warning{
    background:#d97808
}
.system-status-summary-error{
    background:#cf0800
}
.page.system-status-page:not(.kiosk){
    overflow-y:auto
}
.status-user-table-wrap{
    overflow-x:auto
}
.status-user-table{
    width:100%;
    min-width:360px;
    border-collapse:collapse;
    font-size:12px
}
.status-user-table th,.status-user-table td{
    padding:8px 6px;
    border-top:1px solid #e0e6ef;
    text-align:left;
    white-space:nowrap
}
.status-user-table thead th{
    border-top:0;
    color:var(--muted);
    font-size:10px;
    letter-spacing:.04em;
    text-transform:uppercase
}
.status-user-table td:first-child{
    color:var(--main-accent-color)
}

/* Gateway management is deliberately a finite, scrollable snapshot page. */
.page.manage-page:not(.kiosk){
    min-height:0;
    overflow-y:scroll;
    overscroll-behavior:contain;
    scrollbar-gutter:stable
}
.manage-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:16px;
    padding:16px;
    border:1px solid #ccd6e6;
    border-radius:10px;
    background:#fff;
    box-shadow:0 2px 7px rgba(9,40,65,.08)
}
.manage-header h1,.manage-editor-card h1{
    margin:0;
    color:var(--main-accent-color);
    font-size:25px
}
.manage-header p,.manage-card-head p{
    margin:6px 0 0;
    color:var(--ink);
    font-size:14px
}
.manage-cards{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
    align-items:start
}
.manage-card,.manage-editor-card{
    min-width:0;
    overflow:hidden;
    border:1px solid #ccd6e6;
    border-radius:10px;
    background:#fff;
    box-shadow:0 2px 7px rgba(9,40,65,.08)
}
.manage-card-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:15px 16px;
    border-bottom:1px solid #e0e6ef
}
.manage-card-head h2{
    margin:0;
    color:var(--main-accent-color);
    font-size:18px
}
.manage-card-body{
    padding:0 16px 16px
}
.manage-table-wrap{
    max-height:400px
}
.manage-actions{
    display:flex;
    gap:6px
}
.icon-button{
    min-width:30px;
    min-height:30px;
    border:1px solid #ccd6e6;
    border-radius:6px;
    background:#fff;
    color:var(--main-accent-color);
    font-weight:700
}
.icon-button.danger{
    color:#b6251e
}
.icon-button:disabled{
    cursor:not-allowed;
    opacity:.55
}
.manage-editor-card{
    flex:0 0 auto;
    width:min(100%,1080px);
    max-width:1080px;
    margin:0 auto
}
.manage-editor-form{
    display:grid;
    gap:16px;
    padding:22px
}
.manage-editor-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
    align-items:start
}
.manage-fieldset{
    display:grid;
    gap:12px;
    padding:15px;
    border:1px solid #ccd6e6;
    border-radius:8px
}
.manage-gps-fields{
    grid-column:1 / -1;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:start
}
.manage-gps-option{
    display:grid;
    gap:12px
}
.manage-fieldset input[readonly]{
    background:#f4f6fa;
    color:#4b5563;
    cursor:not-allowed
}
.manage-fieldset legend{
    padding:0 5px;
    color:var(--main-accent-color);
    font-weight:700
}
.manage-additional-data summary{
    grid-column:1 / -1;
    color:var(--main-accent-color);
    font-weight:700;
    cursor:pointer
}
.manage-additional-data{
    grid-column:1 / -1;
    grid-template-columns:repeat(2,minmax(0,1fr))
}
.manage-fieldset label:not(.check){
    display:grid;
    gap:6px;
    color:var(--ink);
    font-size:13px;
    font-weight:650
}
.manage-multiselect{
    min-height:88px;
    padding:6px
}
.manage-field-hint{
    margin:0;
    color:var(--ink);
    font-size:13px
}
.form-text{
    color:var(--muted);
    font-size:12px;
    font-weight:400
}
.manage-fieldset.is-disabled{
    display:none
}
.manage-form-actions{
    display:flex;
    gap:10px;
    justify-content:flex-end
}
.manage-form-message{
    min-height:20px;
    margin:0;
    color:#b6251e
}
@media (max-width:820px){
    .manage-cards{
        grid-template-columns:1fr
    }
    .manage-editor-grid,.manage-gps-fields{
        grid-template-columns:1fr
    }
    .manage-additional-data{
        grid-template-columns:1fr
    }
}
@media (max-width:1000px){
    .status-dashboard-widget{
        grid-column:span 6
    }
    .status-dashboard-widget-users,.status-dashboard-widget-resources{
        grid-column:span 6
    }
}
@media (max-width:620px){
    .status-dashboard-widget,.status-dashboard-widget-users,.status-dashboard-widget-resources{
        grid-column:1 / -1
    }
    .system-status-header{
        align-items:flex-start;
        flex-direction:column
    }
    .system-status-header-meta{
        justify-content:flex-start
    }
}

/* Automation is a finite configuration workspace with a native modal editor. */
.page.automation-page:not(.kiosk){
    min-height:0;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-gutter:stable
}
.automation-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
    align-items:start
}
.automation-card{
    min-width:0;
    padding:0
}
.automation-card header{
    padding:15px 16px;
    border-bottom:1px solid var(--line)
}
.automation-card h2{
    margin:0;
    color:var(--main-accent-color);
    font-size:18px
}
.automation-card>div,.automation-card dl{
    margin:0;
    padding:16px
}
.automation-card p{
    margin:0 0 9px;
    line-height:1.5
}
.automation-card p:last-child{
    margin-bottom:0
}
.automation-card dl{
    display:grid;
    grid-template-columns:max-content 1fr;
    gap:9px 16px
}
.automation-card dt{
    font-weight:700
}
.automation-card dd{
    min-width:0;
    margin:0;
    overflow-wrap:anywhere
}
.automation-dialog{
    width:min(560px,calc(100% - 32px));
    padding:0;
    border:1px solid var(--line);
    border-radius:10px;
    background:var(--surface);
    box-shadow:0 18px 46px rgba(9,40,65,.35)
}
.automation-dialog::backdrop{
    background:rgba(9,40,65,.55)
}
.automation-email-form header,.automation-email-form footer{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:14px 16px;
    border-bottom:1px solid var(--line)
}
.automation-email-form footer{
    justify-content:flex-end;
    border-top:1px solid var(--line);
    border-bottom:0
}
.automation-email-form h2{
    margin:0;
    color:var(--main-accent-color);
    font-size:20px
}
.automation-dialog-close{
    width:32px;
    height:32px;
    padding:0;
    border:1px solid var(--line);
    border-radius:6px;
    background:var(--surface);
    color:var(--main-accent-color);
    font-size:22px;
    line-height:1;
    cursor:pointer
}
.automation-dialog-body{
    display:grid;
    gap:14px;
    padding:18px 16px
}
.automation-dialog-body label{
    display:grid;
    gap:6px;
    font-size:13px;
    font-weight:650
}
.automation-form-message{
    min-height:20px;
    margin:0;
    color:#b6251e
}
@media (max-width:820px){
    .automation-grid{
        grid-template-columns:1fr
    }
}
@media (max-width:620px){
    .automation-card dl{
        grid-template-columns:1fr;
        gap:5px
    }
    .automation-card dd+dt{
        margin-top:9px
    }
    .automation-email-form footer{
        align-items:stretch;
        flex-direction:column
    }
}

/* Shared contextual Help panel and full Help page. */
:root{
    --help-panel-width:min(380px,92vw)
}
.help-tab{
    position:fixed;
    z-index:1200;
    top:50%;
    right:0;
    width:34px;
    height:130px;
    border:0;
    border-radius:8px 0 0 8px;
    background:var(--secondary-accent-color);
    box-shadow:0 4px 14px rgba(9,40,65,.3);
    color:#fff;
    cursor:pointer;
    transform:translateY(-50%);
    transition:transform .2s ease,opacity .2s ease
}
.help-tab span {
    display: block;
    font-family: sans-serif;
    transform-origin: center center;
    transform: rotate(90deg);
    -webkit-font-smoothing: antialiased;
    backface-visibility: hidden;
    will-change: transform;
}
.help-tab:hover{
    background:var(--main-accent-color);
    transform:translateY(-50%) translateX(-2px);
    width: 38px;
}
.help-tab.is-hidden{
    opacity:0;
    pointer-events:none
}
.help-panel{
    position:fixed;
    z-index:1150;
    top:58px;
    right:0;
    bottom:34px;
    display:flex;
    width:var(--help-panel-width);
    flex-direction:column;
    background:#fff;
    border-left:1px solid #cbd7e7;
    box-shadow:-8px 0 24px rgba(9,40,65,.22);
    transform:translateX(102%);
    transition:transform .24s ease;
    pointer-events:none
}
.help-panel.is-open{
    transform:translateX(0);
    pointer-events:auto
}
.help-panel-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:12px 14px;
    border-bottom:1px solid #d9e1ed;
    background:#f7f9fc;
    color:var(--main-accent-color)
}
.help-panel-head span{
    display:block;
    font-size:12px;
    font-weight:700;
    letter-spacing:.05em;
    text-transform:uppercase
}
.help-panel-head strong{
    font-size:18px
}
.help-panel-head>div:last-child{
    display:flex;
    gap:7px
}
.help-pin,.help-close{
    display:grid;
    width:34px;
    height:28px;
    place-items:center;
    border:1px solid #c5d0df;
    border-radius:6px;
    background:#fff;
    color:var(--main-accent-color);
    font-family: system-ui;
    cursor:pointer
}
.help-pin[aria-pressed="true"]{
    background:#e5f6fa;
    border-color:var(--secondary-accent-color)
}
.help-close{
    font-size:22px
}
.help-close:hover{
    border-color:var(--secondary-accent-color);
    background:var(--secondary-accent-color);
    color:#fff
}
.help-panel-body{
    min-height:0;
    overflow:auto;
    padding:16px
}
.help-page-content+ .help-page-content{
    margin-top:30px;
    padding-top:26px;
    border-top:2px solid #d9e1ed
}
.help-page-content header{
    margin-bottom:18px
}
.help-page-content h2{
    margin:0;
    color:var(--main-accent-color);
    font-size:23px
}
.help-page-content header p,.help-section p{
    margin:7px 0 0;
    color:var(--ink);
    font-size:14px;
    line-height:1.5
}
.help-section{
    scroll-margin-top:12px;
    padding:13px 0;
    border-top:1px solid #e1e6ef
}
.help-section h3{
    margin:0;
    color:var(--main-accent-color);
    font-size:16px
}
.help-page{
    display:flex;
    grid-template-columns:none;
    grid-template-rows:none;
    flex-direction:column;
    gap:14px;
    overflow:hidden
}
.help-page .page-title{
    flex:0 0 auto;
    margin:0
}
.help-guide{
    display:block;
    width:100%;
    max-width:1100px;
    flex:1;
    min-height:0;
    margin:0 auto;
    padding:24px;
    overflow:auto
}
.help-guide .help-page-content+ .help-page-content{
    margin-top:36px
}
.shell.help-pinned .page{
    width:calc(100% - var(--help-panel-width));
    max-width:none;
    margin:0
}
@media (max-width:850px){
    .help-panel{
        top:62px
    }
    .shell.help-pinned .page{
        width:100%;
        margin-right:0
    }
    .shell.help-pinned .help-panel{
        width:min(420px,100vw)
    }
}
@media (max-width:700px){
    .gps-page #gps-radios{
        width:min(300px,calc(100% - 20px));
        left:10px;
        top:10px
    }
    .gps-radios-panel .radio-scroll{
        max-height:calc(100vh - 230px)
    }
}
.licence-status {
    align-items: center;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: .75rem;
    font-weight: 700;
    gap: .35rem;
    padding: .32rem .65rem;
}

.licence-status i {
    background: currentColor;
    border: 2px solid rgba(255,255,255,.65);
    border-radius: 50%;
    height: .55rem;
    width: .55rem;
}
.licence-status-active {
    background: #218c4b;
}
.licence-status-expiring {
    background: #d87800;
}
.licence-status-expired {
    background: #b42318;
}

/* The shell owns the viewport: notices take page space rather than extending it. */
html,body,#app{
    height:100%;
    overflow:hidden
}
.shell{
    display:flex;
    flex-direction:column;
    height:100vh;
    min-height:0
}
.shell>.topbar,.shell>.statusbar,.shell>.licence-banner{
    flex:0 0 auto
}
.shell>.page,.shell>.page:not(.kiosk),.shell>.kiosk{
    flex:1 1 auto;
    width:100%;
    height:auto;
    min-height:0;
    margin:0 auto;
    overflow:auto
}
.licence-banner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:10px 16px;
    color:#fff;
    font-size:13px;
    font-weight:650
}
.licence-banner-expiring{
    background:#d87800
}
.licence-banner-expired{
    background:#b42318
}
.licence-banner button{
    width:28px;
    height:28px;
    border:1px solid #ffffff99;
    border-radius:5px;
    background:transparent;
    color:#fff;
    font-size:21px;
    line-height:1;
    cursor:pointer
}
@media (max-width:850px){
    html,body,#app{
        height:auto;
        overflow:auto
    }
    .shell{
        height:auto;
        min-height:100vh
    }
    .shell>.page,.shell>.page:not(.kiosk),.shell>.kiosk{
        flex:none;
        min-height:0;
        overflow:visible
    }
}

/* Shared Bootstrap-compatible traffic-light pills used by the app shell. */
.badge.rounded-pill{
    border-radius:999px
}
.badge.bg-success{
    background:#198754;
    color:#fff
}
.badge.bg-warning{
    background:#ffc107
}
.badge.bg-danger{
    background:#dc3545;
    color:#fff
}
.badge.bg-light{
    background:#f8f9fa;
    color:#212529
}
.badge.text-dark{
    color:#212529
}
.status-pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    min-height:24px;
    height:24px;
    padding:0 9px;
    border:0;
    font-family:inherit;
    font-size:12px;
    font-weight:650;
    line-height:1;
    white-space:nowrap
}
.topbar .status-pill{
    min-height:28px;
    height:28px
}
.traffic-light{
    display:inline-block;
    flex:0 0 auto;
    width:8px;
    height:8px;
    border:1px solid rgba(255,255,255,.7);
    border-radius:50%;
    background:#fff
}
.status-pill.bg-success .traffic-light,
.status-pill.bg-light .traffic-light {
    background:#64dc91
}
.status-pill.bg-success .traffic-light {
    border:1px solid rgba(255,255,255,.8);
}
.status-pill.bg-light .traffic-light {
    border-color:rgba(25,135,84,.35)
}
.status-pill .traffic-light{
    margin:0
}
.statusbar .status-pill {
    min-height: 24px;
    height: 24px
}
.statusbar .module-status{
    padding:0 9px
}
.status-pill.module-status.schedule.offline{
    background:#f8f9fa;
    color:#212529
}
.footer-system-status{
    padding:0 9px;
    text-decoration:none
}
.app-menu{
    position:relative
}
.app-menu .dropdown-toggle{
    min-height:28px;
    padding:0 10px;
    border:1px solid #ffffff66;
    border-radius:999px;
    background:transparent;
    color:#fff;
    font:inherit;
    cursor:pointer
}
.app-menu .dropdown-menu{
    position:absolute;
    z-index:1200;
    top:calc(100% + 8px);
    right:0;
    display:none;
    min-width:190px;
    padding:6px;
    border:1px solid #ccd6e6;
    border-radius:8px;
    background:#fff;
    box-shadow:0 8px 24px rgba(9,40,65,.22)
}
.app-menu.show .dropdown-menu{
    display:block
}
.app-menu .dropdown-item{
    display:block;
    width:100%;
    padding:9px 11px;
    border:0;
    border-radius:5px;
    background:transparent;
    color:var(--main-accent-color);
    font:inherit;
    font-weight:650;
    text-align:left;
    cursor:pointer
}
.app-menu .dropdown-item:hover,.app-menu .dropdown-item:focus{
    background:#eef5fa
}
.app-menu .dropdown-divider{
    height:1px;
    margin:5px 0;
    background:#dce3ec
}
.licence-status{
    padding:0 9px
}
.status-licence-information .badge{
    vertical-align:middle
}
.manage-licence-card .manage-card-body{
    padding:16px
}
