/* SGES layout stability: reserve vertical scrollbar space on all pages.
   Prevents the centered Operations shell moving horizontally when navigating
   between short and long pages at the same viewport width. */
html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

:root{
    --blue:#173b88;
    --deep:#082f72;
    --orange:#f35a18;
    --paper:#fffdf9;
    --ink:#10285e;
    --line:#ccd8ea;
    --green:#188c45;
    --red:#b42318;
    --muted:#60708d;
}

*{
    box-sizing:border-box;
}

body{
    margin:0;
    background:#eef3f8;
    font-family:Arial,Helvetica,sans-serif;
    color:var(--ink);
}

a{
    color:inherit;
}

.shell{
    max-width:1100px;
    margin:auto;
    padding:18px;
}


/* ============================================================
   GENERAL NAVIGATION
   ============================================================ */

.top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    margin-bottom:18px;
}

.top img{
    width:min(330px,65%);
    height:auto;
}

.nav{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.btn,
button{
    border:0;
    border-radius:12px;
    background:var(--deep);
    color:#fff;
    padding:11px 15px;
    font-weight:800;
    text-decoration:none;
    cursor:pointer;
    font:inherit;
}

.btn,
button{
    font-weight:800;
}

.orange{
    background:var(--orange);
}

.green{
    background:var(--green);
}

.red{
    background:var(--red);
}

.secondary{
    background:#fff;
    color:var(--deep);
    border:1px solid var(--line);
}


/* ============================================================
   CARDS / FORMS
   ============================================================ */

.card{
    background:#fff;
    border:1px solid var(--line);
    border-radius:18px;
    padding:24px;
    margin-bottom:18px;
}

.card h2{
    font-size:24px;
    line-height:1.2;
    margin:0 0 16px;
}

.card > p.muted{
    margin:-5px 0 18px;
    line-height:1.5;
}

.grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
}

.grid > div{
    min-width:0;
}

label{
    display:block;
    font-size:13px;
    font-weight:800;
    margin-bottom:7px;
}

input,
select,
textarea{
    width:100%;
    min-height:44px;
    font:inherit;
    padding:11px;
    border:1px solid #aebdd3;
    border-radius:10px;
    background:#fff;
    color:var(--ink);
}

textarea{
    min-height:80px;
}

.formactions{
    display:flex;
    align-items:center;
    gap:18px;
    flex-wrap:wrap;
    margin-top:16px;
}

.formactions a{
    font-weight:700;
    text-underline-offset:3px;
}

.formactions button{
    flex:0 0 auto;
}


/* ============================================================
   TABLES
   ============================================================ */

table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
}

th,
td{
    text-align:left;
    padding:10px;
    border-bottom:1px solid var(--line);
    vertical-align:top;
}


/* ============================================================
   TEXT / STATUS
   ============================================================ */

.muted{
    color:var(--muted);
}

.status{
    font-weight:900;
}

.ok{
    color:var(--green);
}

.bad{
    color:var(--red);
}

.notice{
    border-radius:12px;
    padding:12px 14px;
    margin-bottom:14px;
    font-weight:800;
}

.notice.ok{
    background:#e9f7ee;
}

.notice.bad{
    background:#fff0ee;
}

.code{
    font-family:monospace;
    font-size:13px;
}

.small{
    font-size:12px;
    line-height:1.5;
    margin:14px 0 0;
}


/* ============================================================
   USER BAR
   ============================================================ */

.userbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:24px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:16px;
    padding:16px 18px;
    margin-bottom:18px;
    box-shadow:0 1px 2px #10285e0a;
}

.identity{
    display:flex;
    flex-direction:column;
    gap:5px;
    min-width:0;
}

.identity > strong{
    display:block;
    font-size:18px;
    line-height:1.15;
}

.identity > span{
    display:block;
    font-size:14px;
    line-height:1.4;
    color:var(--muted);
}

.identity .mode{
    color:var(--deep);
    font-weight:900;
}

.identity .adminmode{
    color:var(--red);
}

.userbar .nav{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px;
    flex-wrap:wrap;
}

.userbar .btn{
    white-space:nowrap;
}


/* ============================================================
   PAGE HEADER
   ============================================================ */

.pagehead{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:20px;
    margin:8px 0 18px;
}

.pagehead h1{
    font-size:34px;
    line-height:1.1;
    margin:0 0 7px;
}

.pagehead p{
    margin:0;
    line-height:1.45;
}


/* ============================================================
   ACCOUNT FACTS
   ============================================================ */

.accountfacts{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
}

.accountfacts .fact{
    display:flex;
    flex-direction:column;
    gap:6px;
    border:1px solid var(--line);
    border-radius:12px;
    padding:14px 16px;
    background:#fbfcfe;
    min-width:0;
}

.accountfacts .fact span,
.sessiondetail span{
    display:block;
    font-size:12px;
    line-height:1.2;
    color:var(--muted);
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.03em;
}

.accountfacts .fact strong{
    display:block;
    font-size:16px;
    line-height:1.35;
    overflow-wrap:anywhere;
}


/* ============================================================
   ACCOUNT SESSION LIST
   ============================================================ */

.sectiontitle{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
    margin-bottom:8px;
}

.sectiontitle h2{
    margin-bottom:6px;
}

.sectiontitle p{
    margin:0;
    line-height:1.45;
}

.pill{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid var(--line);
    background:#f6f8fb;
    border-radius:999px;
    padding:6px 10px;
    font-size:12px;
    font-weight:900;
    white-space:nowrap;
}

.pill.current{
    background:#e9f7ee;
    color:var(--green);
    border-color:#b9dfc7;
}

.sessionlist{
    border-top:1px solid var(--line);
    margin-top:14px;
}

.sessionrow{
    border-bottom:1px solid var(--line);
}

.sessionrow summary{
    list-style:none;
    cursor:pointer;
    display:flex;
    justify-content:space-between;
    gap:18px;
    align-items:center;
    padding:16px 2px;
}

.sessionrow summary::-webkit-details-marker{
    display:none;
}

.sessionrow summary::before{
    content:'›';
    font-size:22px;
    font-weight:900;
    line-height:1;
    transform:rotate(0deg);
    transition:transform .15s;
}

.sessionrow[open] summary::before{
    transform:rotate(90deg);
}

.sessionmain{
    display:flex;
    flex:1;
    min-width:0;
    flex-direction:column;
    gap:5px;
}

.sessionmain strong{
    font-size:16px;
    line-height:1.25;
}

.sessionmain span{
    font-size:13px;
    line-height:1.4;
    color:var(--muted);
}

.sessiondetail{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    background:#f7f9fc;
    border:1px solid #e5ebf3;
    border-radius:12px;
    padding:14px 16px;
    margin:0 0 14px;
}

.sessiondetail div{
    line-height:1.45;
    overflow-wrap:anywhere;
}

.sessiondetail span{
    margin-bottom:5px;
}


/* ============================================================
   LOGIN
   ============================================================ */

.login-shell{
    max-width:560px;
    padding-top:14px;
}

.login-language{
    display:flex;
    justify-content:flex-end;
    margin-bottom:8px;
}

.login-card{
    padding:28px;
}

.login-logo{
    display:block;
    width:100%;
    height:auto;
    border-radius:14px;
    margin-bottom:8px;
}

.login-card h2{
    margin-top:6px;
}

.login-forgot{
    margin:18px 0 0;
}

.login-forgot a{
    font-weight:700;
    text-underline-offset:3px;
}


/* ============================================================
   EXISTING SESSION LOGIN WARNING
   ============================================================ */

.login-conflict h2{
    font-size:25px;
    margin:6px 0 14px;
}

.login-conflict > p{
    font-size:16px;
    line-height:1.5;
    margin:10px 0;
}

.login-session-list{
    display:grid;
    gap:10px;
    margin:20px 0;
}

.login-session{
    border:1px solid var(--line);
    border-radius:12px;
    padding:13px 14px;
    background:#f8fafd;
}

.login-session-device{
    display:block;
    font-size:15px;
    line-height:1.35;
    overflow-wrap:anywhere;
}

.login-session-meta{
    display:flex;
    flex-direction:column;
    gap:3px;
    margin-top:6px;
    color:var(--muted);
    font-size:12px;
    line-height:1.4;
}

.login-conflict-actions{
    display:flex;
    align-items:stretch;
    gap:10px;
    margin-top:20px;
}

.login-conflict-actions form:first-child{
    flex:1;
}

.login-conflict-actions form:last-child{
    flex:0 0 auto;
}

.login-continue{
    width:100%;
    min-height:48px;
    background:var(--deep);
    padding:12px 18px;
}

.login-cancel{
    min-height:48px;
    background:#fff;
    color:var(--deep);
    border:1px solid var(--line);
    padding:12px 18px;
}


/* ============================================================
   PUBLIC TICKET
   ============================================================ */

.ticket-wrap{
    max-width:520px;
    margin:auto;
    padding:14px;
}

.ticket{
    background:var(--paper);
    border-radius:28px;
    overflow:hidden;
    box-shadow:0 10px 35px #001b4930;
}

.ticket-logo{
    background:var(--blue);
    padding:15px 20px;
}

.ticket-logo img{
    display:block;
    width:100%;
    border-radius:9px;
}

.hero{
    padding:25px 18px;
    text-align:center;
}

.hero h1{
    margin:0;
    font-size:39px;
    line-height:1;
    color:var(--deep);
}

.hero h1 span{
    display:inline-block;
    background:var(--orange);
    color:#fff;
    padding:7px 13px;
    margin-top:7px;
    transform:rotate(-1deg);
}

.details{
    padding:0 18px 10px;
}

.row{
    border:1px solid var(--line);
    border-radius:18px;
    padding:12px 14px;
    margin:9px 0;
    background:#fff;
}

.label{
    font-size:12px;
    font-weight:800;
}

.value{
    font-size:19px;
    font-weight:900;
    margin-top:3px;
}

.actions{
    display:grid;
    gap:9px;
    padding:4px 18px 20px;
}

.actions a{
    text-align:center;
    border-radius:25px;
    padding:14px;
    text-decoration:none;
    color:#fff;
    font-weight:900;
    background:var(--deep);
}

.actions a.wa{
    background:var(--green);
}

.ticket-footer{
    background:var(--deep);
    color:#fff;
    text-align:center;
    padding:17px;
    font-size:19px;
    font-style:italic;
}

.banner{
    margin:0 18px 12px;
    padding:12px;
    border-radius:12px;
    text-align:center;
    font-weight:900;
}

.banner.ok{
    background:#e9f7ee;
}

.banner.bad{
    background:#fff0ee;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media(max-width:760px){

    .userbar{
        align-items:flex-start;
        flex-direction:column;
    }

    .userbar .nav{
        justify-content:flex-start;
    }

    .pagehead{
        align-items:flex-start;
        flex-direction:column;
    }

    .accountfacts{
        grid-template-columns:1fr;
    }

    .sessiondetail{
        grid-template-columns:1fr;
    }

    .pagehead h1{
        font-size:30px;
    }

    .card{
        padding:18px;
    }
}


@media(max-width:650px){

    .grid{
        grid-template-columns:1fr;
    }

    .shell{
        padding:10px;
    }

    th:nth-child(4),
    td:nth-child(4){
        display:none;
    }

    .hero h1{
        font-size:32px;
    }
}


@media(max-width:520px){

    .login-shell{
        padding:10px;
    }

    .login-card{
        padding:18px;
    }

    .login-conflict-actions{
        flex-direction:column;
    }

    .login-conflict-actions form{
        width:100%;
    }

    .login-cancel{
        width:100%;
    }
}


@media(max-width:480px){

    .userbar .nav,
    .userbar .btn,
    .formactions button{
        width:100%;
    }

    .userbar .btn{
        text-align:center;
    }

    .sessionrow summary{
        align-items:flex-start;
    }

    .pill{
        margin-left:auto;
    }
}
/* ============================================================
   OPERATIONS DASHBOARD v1
   ============================================================ */
.operations-shell{max-width:1280px}.ops-brandbar{display:grid;grid-template-columns:280px minmax(260px,1fr) auto;gap:18px;align-items:center;margin:4px 0 14px}.ops-brand img{display:block;width:100%;height:auto}.ops-search form{display:flex;gap:8px}.ops-search input{min-width:0}.ops-search button{white-space:nowrap}.ops-mainnav{display:flex;gap:4px;overflow-x:auto;background:#fff;border:1px solid var(--line);border-radius:14px;padding:5px;margin-bottom:20px}.ops-mainnav a{padding:10px 13px;border-radius:10px;text-decoration:none;font-weight:800;white-space:nowrap}.ops-mainnav a:hover,.ops-mainnav a.active{background:#eef3fb;color:var(--deep)}.ops-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:8px 0 22px}.ops-heading h1{font-size:38px;margin:0 0 5px}.ops-heading p{margin:0;color:var(--muted)}.ops-date{font-weight:800;color:var(--muted);white-space:nowrap}.ops-section{margin-bottom:20px}.ops-section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.ops-section-title h2{margin:0;font-size:22px}.ops-section-title p{margin:5px 0 0;color:var(--muted);line-height:1.4}.ops-section-title a{font-weight:800;text-decoration:none;white-space:nowrap}.ops-quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.ops-action{display:flex;gap:12px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;text-decoration:none;min-width:0;box-shadow:0 1px 2px #10285e08}.ops-action:hover{border-color:#8ca7cf;box-shadow:0 4px 14px #10285e12}.ops-action-icon{display:flex;align-items:center;justify-content:center;flex:0 0 42px;height:42px;border-radius:12px;background:var(--deep);color:#fff;font-weight:900}.ops-action strong,.ops-action small{display:block}.ops-action strong{font-size:15px}.ops-action small{color:var(--muted);font-size:12px;line-height:1.35;margin-top:3px}.ops-two-col{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:18px}.ops-two-col.equal{grid-template-columns:1fr 1fr}.ops-panel{padding:20px}.ops-class-list{display:grid;gap:8px}.ops-class-row{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #e1e8f2;border-radius:12px;padding:13px 14px;text-decoration:none;background:#fbfcfe}.ops-class-row:hover{border-color:#8ca7cf;background:#fff}.ops-class-row strong,.ops-class-row span{display:block}.ops-class-row>div:first-child>span{color:var(--muted);font-size:13px;margin-top:4px}.ops-class-meta{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap}.ops-metrics{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}.ops-metrics>div{border:1px solid #e1e8f2;background:#fbfcfe;border-radius:12px;padding:14px}.ops-metrics strong{display:block;font-size:28px;color:var(--deep)}.ops-metrics span{display:block;font-size:12px;color:var(--muted);margin-top:3px}.ops-full{display:block;text-align:center}.ops-coming-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}.ops-coming-grid h3{margin:0 0 10px}.ops-coming-row{display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid #e8edf4}.ops-coming-row span{color:var(--muted);white-space:nowrap}.ops-coming-row a{text-decoration:none}
@media(max-width:980px){.ops-brandbar{grid-template-columns:220px 1fr}.ops-brandbar>div:last-child{grid-column:1/-1;justify-self:end}.ops-quick-grid{grid-template-columns:1fr 1fr}.ops-two-col{grid-template-columns:1fr}.ops-two-col.equal{grid-template-columns:1fr}}
@media(max-width:650px){.ops-brandbar{grid-template-columns:1fr}.ops-brand{max-width:280px}.ops-brandbar>div:last-child{grid-column:auto;justify-self:start}.ops-search form{display:grid;grid-template-columns:1fr auto}.ops-heading{align-items:flex-start;flex-direction:column}.ops-heading h1{font-size:32px}.ops-quick-grid{grid-template-columns:1fr 1fr}.ops-action{align-items:flex-start;flex-direction:column}.ops-coming-grid{grid-template-columns:1fr}.ops-class-row{align-items:flex-start;flex-direction:column}.ops-class-meta{justify-content:flex-start}}
@media(max-width:430px){.ops-quick-grid{grid-template-columns:1fr}.ops-search form{grid-template-columns:1fr}.ops-search button{width:100%}}


/* ============================================================
   SGES AUTHENTICATED APPLICATION HEADER
   ============================================================ */
.staff-app-header{margin:0 0 16px}
.staff-brand-row{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:10px}
.staff-brand{display:block;width:min(330px,65%);text-decoration:none}
.staff-brand img{display:block;width:100%;height:auto}
.staff-language{display:flex;align-items:center;justify-content:flex-end;flex:0 0 auto}
.staff-userbar{margin-bottom:0}
.staff-user-left{display:flex;align-items:center;gap:18px;min-width:0}
.staff-identity{display:flex;flex-direction:column;gap:3px;min-width:140px}
.staff-identity>strong{font-size:18px;line-height:1.15}
.staff-mode{font-size:14px;line-height:1.3;color:var(--muted);font-weight:800}
.staff-mode.adminmode{color:var(--red)}
.staff-account-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.staff-logout{margin-left:auto;white-space:nowrap}
.ops-searchbar{margin:0 0 12px}
.ops-searchbar .ops-search{width:100%}

@media(max-width:760px){
    .staff-userbar{flex-direction:row;align-items:center}
    .staff-user-left{align-items:flex-start;flex-direction:column;gap:10px}
    .staff-account-actions{align-items:stretch}
}
@media(max-width:560px){
    .staff-brand-row{align-items:center}
    .staff-brand{width:min(260px,68%)}
    .staff-userbar{align-items:stretch;flex-direction:column}
    .staff-user-left{width:100%}
    .staff-account-actions{width:100%;display:grid;grid-template-columns:1fr}
    .staff-account-actions .btn,.staff-logout{width:100%;text-align:center}
}


/* ============================================================
   HEADER COMPACTNESS / ALIGNMENT REFINEMENT
   ============================================================ */
.staff-brand{
    width:auto;
    max-width:min(330px,65%);
}
.staff-brand img{
    width:auto;
    max-width:100%;
    height:76px;
    object-fit:contain;
    object-position:left center;
}
.staff-userbar{
    min-height:58px;
}
.staff-user-left{
    flex:1 1 auto;
    min-width:0;
}
.staff-identity{
    flex:0 0 165px;
    min-width:165px;
}
.staff-identity>strong,
.staff-mode{
    position:relative;
    z-index:1;
}
.staff-account-actions{
    flex:0 1 auto;
}
.staff-logout{
    flex:0 0 auto;
}

@media(max-width:760px){
    .staff-brand img{height:66px}
    .staff-identity{flex:0 0 auto;min-width:0}
}
@media(max-width:560px){
    .staff-brand{max-width:72%}
    .staff-brand img{height:58px}
}


/* ============================================================
   MOBILE HEADER — KEEP IDENTITY / ACCOUNT / ADMIN / LOGOUT INLINE
   ============================================================ */
@media (min-width:421px) and (max-width:760px){
    .staff-userbar{
        display:flex;
        flex-direction:row;
        align-items:center;
        gap:8px;
        padding:10px 12px;
    }
    .staff-user-left{
        display:flex;
        flex:1 1 auto;
        min-width:0;
        flex-direction:row;
        align-items:center;
        gap:8px;
    }
    .staff-identity{
        flex:0 1 105px;
        min-width:82px;
    }
    .staff-identity>strong{
        font-size:14px;
    }
    .staff-mode{
        font-size:11px;
        white-space:nowrap;
    }
    .staff-account-actions{
        display:flex;
        flex:0 1 auto;
        width:auto;
        flex-direction:row;
        align-items:center;
        gap:6px;
        flex-wrap:nowrap;
    }
    .staff-account-actions .btn,
    .staff-logout{
        width:auto;
        min-height:36px;
        padding:8px 10px;
        font-size:12px;
        line-height:1.1;
        white-space:nowrap;
        text-align:center;
    }
    .staff-logout{
        flex:0 0 auto;
        margin-left:auto;
    }
}


/* ============================================================
   HEADER CLOCK + LOCKED ICON COMMAND BAR
   ============================================================ */
.staff-brand-row{
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
}
.staff-clock{
    justify-self:center;
    display:flex;
    align-items:baseline;
    justify-content:center;
    gap:8px;
    min-width:0;
    color:var(--deep);
    font-weight:800;
    white-space:nowrap;
}
.staff-clock-date{font-size:14px}
.staff-clock-time{font-size:14px;font-variant-numeric:tabular-nums}
.staff-language{justify-self:end}

.ops-commandbar{
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    align-items:center;
    gap:10px;
    margin:0 0 14px;
}
.ops-iconnav{
    display:flex;
    align-items:center;
    gap:5px;
    padding:4px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:12px;
}
.ops-nav-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width:40px;
    height:40px;
    flex:0 0 40px;
    border-radius:9px;
    color:var(--deep);
    text-decoration:none;
}
.ops-nav-icon:hover,
.ops-nav-icon.active{
    background:#eef3fb;
}
.ops-nav-icon svg{
    display:block;
    width:24px;
    height:24px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.ops-commandbar .ops-search{min-width:0}
.ops-commandbar .ops-search form{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:8px;
}
.ops-commandbar .ops-search input{min-width:0}
.ops-commandbar .ops-search button{white-space:nowrap}

@media(max-width:650px){
    .staff-brand-row{grid-template-columns:auto 1fr auto;gap:8px}
    .staff-clock{gap:4px;flex-direction:column;align-items:center;line-height:1.05}
    .staff-clock-date,.staff-clock-time{font-size:10px}
    .ops-commandbar{gap:6px}
    .ops-iconnav{gap:2px;padding:3px}
    .ops-nav-icon{width:36px;height:36px;flex-basis:36px}
    .ops-nav-icon svg{width:22px;height:22px}
    .ops-commandbar .ops-search form{gap:5px}
    .ops-commandbar .ops-search button{padding-left:10px;padding-right:10px}
}
@media(max-width:430px){
    .staff-clock-date{display:none}
    .staff-clock-time{font-size:11px}
    .ops-commandbar{grid-template-columns:auto minmax(0,1fr)}
    .ops-nav-icon{width:32px;height:34px;flex-basis:32px}
    .ops-nav-icon svg{width:20px;height:20px}
    .ops-commandbar .ops-search button{padding-left:8px;padding-right:8px;font-size:12px}
}


/* ============================================================
   NAV ICON ASSET HOTFIX — EXTERNAL, SIZE-SAFE SVG FILES
   ============================================================ */
.ops-nav-icon{
    overflow:hidden;
}
.ops-nav-icon img{
    display:block;
    width:24px;
    height:24px;
    max-width:24px;
    max-height:24px;
    object-fit:contain;
}
@media(max-width:650px){
    .ops-nav-icon img{
        width:22px;
        height:22px;
        max-width:22px;
        max-height:22px;
    }
}
@media(max-width:430px){
    .ops-nav-icon img{
        width:20px;
        height:20px;
        max-width:20px;
        max-height:20px;
    }
}


/* ============================================================
   LOCKED PRIMARY COMMAND BAR — TOUCH-SIZED ROUNDED SQUARES
   ============================================================ */
.ops-commandbar{
    display:flex;
    flex-wrap:nowrap;
    align-items:center;
    gap:8px;
    width:100%;
    margin:0 0 14px;
}
.ops-iconnav{
    display:flex;
    flex:0 0 auto;
    flex-wrap:nowrap;
    align-items:center;
    gap:6px;
    padding:0;
    background:transparent;
    border:0;
    border-radius:0;
}
.ops-nav-icon{
    box-sizing:border-box;
    display:flex;
    align-items:center;
    justify-content:center;
    width:48px;
    height:48px;
    min-width:48px;
    min-height:48px;
    flex:0 0 48px;
    padding:0;
    overflow:hidden;
    border:1px solid #c8d5e8;
    border-radius:12px;
    background:#fff;
    color:#173b88;
    text-decoration:none;
    touch-action:manipulation;
}
.ops-nav-icon:hover,
.ops-nav-icon:focus-visible{
    background:#f3f7fd;
    border-color:#9eb5d8;
    outline:none;
}
.ops-nav-icon.active{
    background:#e8f1ff;
    border-color:#b8cbe8;
}
.ops-nav-icon img{
    display:block;
    width:28px;
    height:28px;
    min-width:28px;
    min-height:28px;
    max-width:28px;
    max-height:28px;
    object-fit:contain;
}
.ops-commandbar .ops-search{
    flex:1 1 auto;
    min-width:0;
    width:auto;
}
.ops-commandbar .ops-search form{
    display:flex;
    align-items:center;
    gap:8px;
    width:100%;
    margin:0;
}
.ops-commandbar .ops-search input{
    flex:1 1 auto;
    min-width:0;
    height:48px;
    box-sizing:border-box;
}
.ops-commandbar .ops-search button{
    flex:0 0 auto;
    min-height:48px;
    box-sizing:border-box;
    white-space:nowrap;
}

@media(max-width:760px){
    .ops-commandbar{gap:6px}
    .ops-iconnav{gap:4px}
    .ops-nav-icon{
        width:44px;
        height:44px;
        min-width:44px;
        min-height:44px;
        flex-basis:44px;
        border-radius:10px;
    }
    .ops-nav-icon img{
        width:26px;
        height:26px;
        min-width:26px;
        min-height:26px;
        max-width:26px;
        max-height:26px;
    }
    .ops-commandbar .ops-search input,
    .ops-commandbar .ops-search button{
        min-height:44px;
        height:44px;
    }
}


/* ============================================================
   SELF-CONTAINED NAV BUTTON ASSETS
   Visible rounded-square edge/background now lives inside each SVG.
   CSS below controls only sizing and command-row layout.
   ============================================================ */
.ops-commandbar{
    display:flex !important;
    flex-flow:row nowrap !important;
    align-items:center !important;
    gap:8px !important;
    width:100% !important;
}
.ops-iconnav{
    display:flex !important;
    flex-flow:row nowrap !important;
    align-items:center !important;
    gap:6px !important;
    flex:0 0 auto !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
}
.ops-nav-icon{
    display:block !important;
    width:48px !important;
    height:48px !important;
    min-width:48px !important;
    min-height:48px !important;
    flex:0 0 48px !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    overflow:visible !important;
}
.ops-nav-icon img{
    display:block !important;
    width:48px !important;
    height:48px !important;
    min-width:48px !important;
    min-height:48px !important;
    max-width:48px !important;
    max-height:48px !important;
}
.ops-commandbar .ops-search{
    flex:1 1 0 !important;
    min-width:0 !important;
    width:auto !important;
}
.ops-commandbar .ops-search form{
    display:flex !important;
    flex-flow:row nowrap !important;
    align-items:center !important;
    gap:8px !important;
    width:100% !important;
}
.ops-commandbar .ops-search input{
    flex:1 1 0 !important;
    min-width:0 !important;
}


/* ============================================================
   APPROVED NAV ARTWORK — EXACT USER-APPROVED GRAPHICS
   ============================================================ */
.ops-nav-icon img{
    display:block !important;
    width:48px !important;
    height:48px !important;
    min-width:48px !important;
    min-height:48px !important;
    max-width:48px !important;
    max-height:48px !important;
    object-fit:contain !important;
}


/* ============================================================
   PRIMARY COMMAND BAR — SOLID SGES BLUE / WHITE ICONS
   Locked 03 Oct 2026
   ============================================================ */
.ops-commandbar{
    display:flex !important;
    flex-flow:row nowrap !important;
    align-items:center !important;
    gap:8px !important;
    width:100% !important;
}
.ops-iconnav{
    display:flex !important;
    flex-flow:row nowrap !important;
    align-items:center !important;
    gap:8px !important;
    flex:0 0 auto !important;
    padding:0 !important;
    border:0 !important;
    background:transparent !important;
}
.ops-nav-icon{
    box-sizing:border-box !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:56px !important;
    height:56px !important;
    min-width:56px !important;
    min-height:56px !important;
    flex:0 0 56px !important;
    padding:10px !important;
    border:0 !important;
    border-radius:12px !important;
    background:#1E3A8B !important;
    overflow:hidden !important;
    touch-action:manipulation;
}
.ops-nav-icon:hover,
.ops-nav-icon:focus-visible{
    background:#173477 !important;
    outline:3px solid rgba(244,121,32,.28) !important;
    outline-offset:2px;
}
.ops-nav-icon.active{
    background:#1E3A8B !important;
    box-shadow:inset 0 -4px 0 #F47920 !important;
}
.ops-nav-icon img{
    display:block !important;
    width:34px !important;
    height:34px !important;
    min-width:34px !important;
    min-height:34px !important;
    max-width:34px !important;
    max-height:34px !important;
    object-fit:contain !important;
}
.ops-commandbar .ops-search{
    flex:1 1 0 !important;
    min-width:0 !important;
    width:auto !important;
}
.ops-commandbar .ops-search form{
    display:flex !important;
    flex-flow:row nowrap !important;
    align-items:stretch !important;
    gap:8px !important;
    width:100% !important;
    margin:0 !important;
}
.ops-commandbar .ops-search input,
.ops-commandbar .ops-search button{
    box-sizing:border-box !important;
    height:56px !important;
    min-height:56px !important;
}
.ops-commandbar .ops-search input{
    flex:1 1 0 !important;
    min-width:0 !important;
}
.ops-commandbar .ops-search button{
    flex:0 0 auto !important;
    border-radius:12px !important;
    background:#1E3A8B !important;
    white-space:nowrap !important;
}

/* Maintain the same 56px touch/control height on mobile. */
@media(max-width:760px){
    .ops-commandbar{gap:6px !important}
    .ops-iconnav{gap:5px !important}
    .ops-nav-icon{
        width:56px !important;
        height:56px !important;
        min-width:56px !important;
        min-height:56px !important;
        flex-basis:56px !important;
    }
    .ops-nav-icon img{
        width:34px !important;
        height:34px !important;
        min-width:34px !important;
        min-height:34px !important;
        max-width:34px !important;
        max-height:34px !important;
    }
    .ops-commandbar .ops-search input,
    .ops-commandbar .ops-search button{
        height:56px !important;
        min-height:56px !important;
    }
}


/* Current page: grey, visibly selected, and non-interactive. */
.ops-nav-icon.active,
.ops-nav-icon[aria-current="page"]{
    background:#7A8496 !important;
    box-shadow:none !important;
    border:0 !important;
    cursor:default !important;
    pointer-events:none !important;
    outline:none !important;
}
.ops-nav-icon.active:hover,
.ops-nav-icon.active:focus,
.ops-nav-icon.active:focus-visible,
.ops-nav-icon[aria-current="page"]:hover,
.ops-nav-icon[aria-current="page"]:focus,
.ops-nav-icon[aria-current="page"]:focus-visible{
    background:#7A8496 !important;
    box-shadow:none !important;
    outline:none !important;
}


/* Quick Actions — stronger Register Person and Find Person graphics only. */
.ops-action-icon-plus{
    font-size:25px !important;
    line-height:1 !important;
    font-weight:800 !important;
}
.ops-action-icon-search{
    position:relative !important;
}
.ops-search-glyph{
    position:relative !important;
    display:block !important;
    width:16px !important;
    height:16px !important;
    box-sizing:border-box !important;
    border:3px solid #FFFFFF !important;
    border-radius:50% !important;
}
.ops-search-glyph::after{
    content:"" !important;
    position:absolute !important;
    width:8px !important;
    height:3px !important;
    right:-6px !important;
    bottom:-3px !important;
    border-radius:2px !important;
    background:#FFFFFF !important;
    transform:rotate(45deg) !important;
    transform-origin:center !important;
}

/* Standard primary-navigation disabled state for reserved destinations. */
.ops-iconnav .ops-nav-icon.disabled{
    opacity:.55;
    cursor:not-allowed;
    pointer-events:none;
}

/* Operations history controls: approved production placeholders.
   Behavior is intentionally deferred; all controls remain disabled. */
.operations-history-controls{display:inline-flex;align-items:center;gap:7px;margin:0 10px;vertical-align:middle;flex:0 0 auto}
.operations-page-history-controls,.operations-edit-history-controls{display:inline-flex;gap:6px}
.operations-history-divider{width:1px;height:26px;background:#cbd5e1;margin:0 1px}
.operations-history-button{width:38px;height:38px;padding:0;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d6dde6;border-radius:9px;background:#f8fafc;color:#aeb8c5;box-shadow:none;cursor:not-allowed}
.operations-history-button svg{width:25px;height:25px;display:block}
.operations-history-button svg *{fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:560px){
    .operations-history-controls{margin:0 6px;gap:5px}
    .operations-page-history-controls,.operations-edit-history-controls{gap:4px}
    .operations-history-button{width:36px;height:36px}
    .operations-history-button svg{width:24px;height:24px}
}


/* Operations history controls — component-level cascade correction.
   These rules intentionally override generic shared-header button styling. */
.staff-header .operations-history-controls .operations-history-button,
.staff-header button.operations-history-button,
.operations-history-controls button.operations-history-button{
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
    padding:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    border:1px solid #d6dde6 !important;
    border-radius:9px !important;
    background:#f8fafc !important;
    color:#aeb8c5 !important;
    box-shadow:none !important;
    cursor:not-allowed !important;
    opacity:1 !important;
}
.staff-header .operations-history-controls .operations-history-button svg,
.operations-history-controls button.operations-history-button svg{
    width:25px !important;
    height:25px !important;
    display:block !important;
    opacity:1 !important;
}
.staff-header .operations-history-controls .operations-history-button svg *,
.operations-history-controls button.operations-history-button svg *{
    fill:none !important;
    stroke:currentColor !important;
    stroke-width:3 !important;
    stroke-linecap:round !important;
    stroke-linejoin:round !important;
}


/* SGES UI CONSISTENCY 2026-10-15 — scoped to approved forms.
   Keep scheduling clock, navigation icons and other widgets untouched. */
#sges-appointment-form select,
#sges-appointment-form input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]),
.sges-person-form select,
.sges-person-form input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]),
.sges-group-create-form select,
.sges-group-create-form input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]),
.sges-group-create-form .standard-settings select {
  box-sizing:border-box;
  height:48px;
  min-height:48px;
  font-size:16px;
  line-height:1.3;
  padding:10px 12px;
}
#sges-appointment-form label,
.sges-person-form label,
.sges-group-create-form label {line-height:1.4;}
#sges-appointment-form .muted,
.sges-person-form .muted,
.sges-group-create-form .muted {line-height:1.5;}
.sges-person-form > .grid,
.sges-person-form > div:not(.grid) {margin-bottom:18px;}
.sges-person-form > h2 {margin:24px 0 16px;}
.sges-person-form .sges-birthday-controls input {height:48px;min-height:48px;}
.sges-person-form .sges-birthday-help {margin-top:10px;line-height:1.5;}
.sges-person-form .sges-same-phone {display:flex;align-items:center;gap:8px;margin-top:9px;}
.sges-person-form .sges-same-phone input {width:18px;height:18px;min-height:18px;flex:none;}
.sges-group-create-form .group-form {row-gap:20px;}
.sges-group-create-form .standard-schedule {margin-top:12px;}
.sges-group-create-form .standard-settings {row-gap:16px;}


/* SGES Mobile Phase 1 R3 — desktop unchanged; mobile-only presentation.
   Rules below intentionally override the legacy !important commandbar sizing. */
.staff-userbar > nav.sges-mobile-tools { display:none !important; }
@media screen and (max-width:767px) {
  html,body {max-width:100%;overflow-x:clip;}
  .shell.operations-shell {width:100% !important;max-width:100% !important;min-width:0 !important;box-sizing:border-box !important;padding:10px 12px calc(90px + env(safe-area-inset-bottom,0px)) !important;margin:0 auto !important;}
  .staff-app-header {margin-bottom:12px !important;}
  .staff-brand-row {display:grid !important;grid-template-columns:minmax(0,1fr) auto auto !important;align-items:center !important;gap:6px !important;margin-bottom:9px !important;}
  .staff-brand {width:100% !important;min-width:0 !important;max-width:210px !important;}
  .staff-brand img {display:block !important;width:100% !important;height:auto !important;max-height:55px !important;object-fit:contain !important;}
  .staff-clock {min-width:0 !important;white-space:normal !important;text-align:center !important;font-size:11px !important;}
  .staff-clock-date {display:none !important;}
  .staff-clock-time {font-size:11px !important;white-space:nowrap !important;}
  .staff-language {display:flex !important;gap:3px !important;}
  .staff-language a,.staff-language button {font-size:12px !important;padding:6px !important;min-width:32px !important;min-height:34px !important;width:auto !important;height:auto !important;}
  .userbar.staff-userbar {display:flex !important;flex-direction:column !important;align-items:stretch !important;min-height:0 !important;gap:8px !important;padding:10px 12px !important;margin:0 !important;}
  .staff-userbar .staff-user-left {display:block !important;width:100% !important;min-width:0 !important;flex:0 0 auto !important;}
  .staff-userbar .staff-identity {display:flex !important;flex-direction:column !important;min-width:0 !important;gap:1px !important;flex:0 0 auto !important;}
  .staff-userbar .staff-identity>strong {font-size:16px !important;}
  .staff-userbar .staff-mode {font-size:12px !important;}
  .staff-userbar .staff-account-actions,
  .staff-userbar > .operations-history-controls,
  .staff-userbar > .staff-logout {display:none !important;}
  .staff-userbar > nav.sges-mobile-tools {display:flex !important;flex-flow:row nowrap !important;align-items:center !important;justify-content:space-between !important;gap:7px !important;margin:0 !important;width:100% !important;min-width:0 !important;}
  .staff-userbar > nav.sges-mobile-tools .sges-mobile-tool {appearance:none !important;-webkit-appearance:none !important;display:flex !important;align-items:center !important;justify-content:center !important;flex:1 1 0 !important;min-width:0 !important;max-width:66px !important;height:44px !important;padding:9px !important;border:0 !important;border-radius:10px !important;background:#1e3a8b !important;color:#fff !important;text-decoration:none !important;box-sizing:border-box !important;cursor:pointer !important;}
  .staff-userbar > nav.sges-mobile-tools .sges-mobile-tool:disabled {background:#e4e9f0 !important;color:#91a0b5 !important;cursor:not-allowed !important;}
  .staff-userbar > nav.sges-mobile-tools .sges-mobile-signout {background:#e44728 !important;}
  .staff-userbar > nav.sges-mobile-tools .sges-mobile-admin-on {background:#f47920 !important;}
  .staff-userbar > nav.sges-mobile-tools .sges-mobile-tool svg {display:block !important;width:24px !important;height:24px !important;min-width:24px !important;min-height:24px !important;max-width:24px !important;max-height:24px !important;fill:none !important;stroke:currentColor !important;stroke-width:2 !important;stroke-linecap:round !important;stroke-linejoin:round !important;overflow:visible !important;}
  .staff-userbar > nav.sges-mobile-tools .sges-mobile-tool svg * {fill:none !important;stroke:currentColor !important;stroke-width:2 !important;stroke-linecap:round !important;stroke-linejoin:round !important;}
  .operations-shell .ops-commandbar {display:block !important;width:100% !important;min-width:0 !important;margin:0 0 14px !important;}
  .operations-shell .ops-commandbar .ops-iconnav {position:fixed !important;left:0 !important;right:0 !important;bottom:0 !important;z-index:950 !important;box-sizing:border-box !important;display:flex !important;flex-flow:row nowrap !important;justify-content:space-around !important;align-items:center !important;gap:4px !important;width:100% !important;max-width:100vw !important;margin:0 !important;padding:7px 7px calc(8px + env(safe-area-inset-bottom,0px)) !important;border:1px solid #ccd7e9 !important;border-radius:14px 14px 0 0 !important;background:#fff !important;box-shadow:0 -3px 14px #10285e18 !important;overflow-x:auto !important;}
  .operations-shell .ops-iconnav .ops-nav-icon {display:flex !important;align-items:center !important;justify-content:center !important;flex:1 1 0 !important;width:auto !important;height:50px !important;min-width:0 !important;min-height:50px !important;max-width:64px !important;padding:7px !important;border-radius:10px !important;box-sizing:border-box !important;}
  .operations-shell .ops-iconnav .ops-nav-icon img {display:block !important;width:30px !important;height:30px !important;min-width:0 !important;min-height:0 !important;max-width:30px !important;max-height:30px !important;object-fit:contain !important;}
  .operations-shell .ops-commandbar .ops-search {display:block !important;flex:none !important;width:100% !important;min-width:0 !important;}
  .operations-shell .ops-commandbar .ops-search form {display:flex !important;flex-flow:row nowrap !important;gap:6px !important;width:100% !important;min-width:0 !important;}
  .operations-shell .ops-commandbar .ops-search input {flex:1 1 0 !important;width:0 !important;min-width:0 !important;height:46px !important;min-height:46px !important;font-size:16px !important;}
  .operations-shell .ops-commandbar .ops-search button {flex:0 0 auto !important;width:auto !important;height:46px !important;min-height:46px !important;padding:8px 12px !important;font-size:13px !important;}
  .operations-shell .ops-quick-grid {display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:9px !important;}
  .operations-shell .ops-quick-grid .ops-action {display:flex !important;flex-flow:column nowrap !important;align-items:flex-start !important;gap:8px !important;min-width:0 !important;padding:12px !important;border-radius:13px !important;}
  .operations-shell .ops-quick-grid .ops-action-icon {display:flex !important;align-items:center !important;justify-content:center !important;flex:0 0 42px !important;width:42px !important;min-width:42px !important;max-width:42px !important;height:42px !important;min-height:42px !important;max-height:42px !important;font-size:19px !important;line-height:1 !important;border-radius:10px !important;box-sizing:border-box !important;}
  .operations-shell .ops-quick-grid .ops-action>span:last-child {min-width:0 !important;overflow-wrap:anywhere !important;}
  .operations-shell .ops-quick-grid .ops-action strong {font-size:14px !important;line-height:1.3 !important;}
  .operations-shell .ops-quick-grid .ops-action small {font-size:11px !important;line-height:1.35 !important;}
  .operations-shell .ops-two-col,.operations-shell .ops-two-col.equal,.operations-shell .ops-coming-grid {grid-template-columns:minmax(0,1fr) !important;}
  .operations-shell .ops-panel,.operations-shell .card {box-sizing:border-box !important;min-width:0 !important;max-width:100% !important;}
  .operations-shell .ops-class-row {min-width:0 !important;}
  .operations-shell input,.operations-shell select,.operations-shell textarea {box-sizing:border-box !important;max-width:100% !important;}
}
@media screen and (max-width:375px) {
  .operations-shell .ops-quick-grid {grid-template-columns:minmax(0,1fr) !important;}
  .staff-brand {max-width:165px !important;}
}


/* SGES MOBILE R4 — final cascade, scoped to authenticated Operations. */
@media screen and (max-width:767px) {
  html,body {overflow-x:clip !important;}
  body .shell.operations-shell {width:100% !important;max-width:100% !important;min-width:0 !important;box-sizing:border-box !important;padding:10px 12px calc(92px + env(safe-area-inset-bottom,0px)) !important;}
  body .staff-brand-row {display:grid !important;grid-template-columns:minmax(0,1fr) auto auto !important;gap:5px !important;align-items:center !important;}
  body .staff-brand {max-width:195px !important;min-width:0 !important;width:100% !important;}
  body .staff-brand img {display:block !important;width:100% !important;max-width:100% !important;height:auto !important;max-height:54px !important;}
  body .staff-clock-date {display:none !important;}
  body .staff-clock-time {font-size:11px !important;white-space:nowrap !important;}
  body .staff-language {display:flex !important;gap:3px !important;}
  body .staff-language a {padding:6px !important;min-width:32px !important;}
  body .userbar.staff-userbar {display:flex !important;flex-flow:column nowrap !important;align-items:stretch !important;gap:8px !important;min-height:0 !important;padding:10px 12px !important;}
  body .staff-userbar .staff-user-left {display:block !important;flex:none !important;min-width:0 !important;width:100% !important;}
  body .staff-userbar .staff-identity {display:flex !important;flex-flow:column nowrap !important;gap:1px !important;min-width:0 !important;}
  body .staff-userbar .staff-account-actions,body .staff-userbar > .operations-history-controls,body .staff-userbar > .staff-logout {display:none !important;}
  body .staff-userbar > nav.sges-mobile-tools {display:flex !important;flex-flow:row nowrap !important;align-items:center !important;justify-content:space-between !important;gap:6px !important;margin:0 !important;width:100% !important;}
  body .staff-userbar > nav.sges-mobile-tools > .sges-mobile-tool {display:flex !important;flex:1 1 0 !important;align-items:center !important;justify-content:center !important;box-sizing:border-box !important;min-width:0 !important;max-width:64px !important;height:44px !important;padding:8px !important;border-radius:10px !important;background:#1e3a8b !important;color:#fff !important;}
  body .staff-userbar > nav.sges-mobile-tools > .sges-mobile-tool:disabled {background:#e4e9f0 !important;color:#91a0b5 !important;}
  body .staff-userbar > nav.sges-mobile-tools > .sges-mobile-signout {background:#e44728 !important;}
  body .staff-userbar > nav.sges-mobile-tools > .sges-mobile-admin-on {background:#f47920 !important;}
  body .staff-userbar > nav.sges-mobile-tools svg {display:block !important;width:24px !important;height:24px !important;min-width:24px !important;min-height:24px !important;max-width:24px !important;max-height:24px !important;fill:none !important;stroke:currentColor !important;stroke-width:2 !important;}
  body .staff-userbar > nav.sges-mobile-tools svg * {fill:none !important;stroke:currentColor !important;stroke-width:2 !important;}
  body .operations-shell .ops-commandbar {display:block !important;width:100% !important;min-width:0 !important;margin:0 0 14px !important;}
  body .operations-shell .ops-commandbar > nav.ops-iconnav {position:fixed !important;top:auto !important;left:0 !important;right:0 !important;bottom:0 !important;z-index:950 !important;display:flex !important;flex-flow:row nowrap !important;justify-content:space-around !important;align-items:center !important;box-sizing:border-box !important;width:100% !important;max-width:100vw !important;margin:0 !important;padding:7px 6px calc(8px + env(safe-area-inset-bottom,0px)) !important;gap:3px !important;background:#fff !important;border:1px solid #ccd7e9 !important;border-radius:14px 14px 0 0 !important;box-shadow:0 -3px 14px #10285e18 !important;overflow-x:auto !important;}
  body .operations-shell .ops-iconnav > a.ops-nav-icon {display:flex !important;flex:1 1 0 !important;align-items:center !important;justify-content:center !important;width:auto !important;min-width:0 !important;max-width:64px !important;height:50px !important;min-height:50px !important;padding:7px !important;}
  body .operations-shell .ops-iconnav > a.ops-nav-icon img {width:30px !important;height:30px !important;min-width:0 !important;min-height:0 !important;max-width:30px !important;max-height:30px !important;object-fit:contain !important;}
  body .operations-shell .ops-commandbar > .ops-search {display:block !important;flex:none !important;width:100% !important;min-width:0 !important;}
  body .operations-shell .ops-commandbar .ops-search form {display:flex !important;flex-flow:row nowrap !important;gap:6px !important;width:100% !important;}
  body .operations-shell .ops-commandbar .ops-search input {flex:1 1 0 !important;width:0 !important;min-width:0 !important;height:46px !important;min-height:46px !important;font-size:16px !important;}
  body .operations-shell .ops-commandbar .ops-search button {flex:0 0 auto !important;width:auto !important;height:46px !important;min-height:46px !important;padding:8px 12px !important;}
  body .operations-shell .ops-quick-grid {display:grid !important;grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:9px !important;}
  body .operations-shell .ops-quick-grid .ops-action {display:flex !important;flex-flow:column nowrap !important;align-items:flex-start !important;gap:8px !important;padding:12px !important;min-width:0 !important;}
  body .operations-shell .ops-quick-grid .ops-action-icon {display:flex !important;align-items:center !important;justify-content:center !important;flex:0 0 42px !important;width:42px !important;min-width:42px !important;max-width:42px !important;height:42px !important;min-height:42px !important;max-height:42px !important;line-height:1 !important;box-sizing:border-box !important;}
  body .operations-shell .ops-two-col,body .operations-shell .ops-two-col.equal,body .operations-shell .ops-coming-grid {grid-template-columns:minmax(0,1fr) !important;}
}
@media screen and (min-width:768px) {body .staff-userbar > nav.sges-mobile-tools {display:none !important;}}

/* SGES R5 — approved 6-destination mobile dashboard, desktop unchanged. */
.sges-r5-today,.sges-r5-payment-action,.sges-r5-nav-label{display:none !important}
@media screen and (max-width:767px){
 body .shell.operations-shell{padding:8px 10px calc(84px + env(safe-area-inset-bottom,0px)) !important}
 body .staff-brand-row{margin-bottom:6px !important}
 body .staff-userbar{display:grid !important;grid-template-columns:minmax(0,1fr) auto !important;align-items:center !important;gap:8px !important;padding:9px !important}
 body .staff-userbar .staff-user-left{grid-column:1 !important;grid-row:1 !important}
 body .staff-userbar > nav.sges-mobile-tools{grid-column:2 !important;grid-row:1 !important;width:auto !important;gap:5px !important}
 body .staff-userbar > nav.sges-mobile-tools > .sges-mobile-tool{flex:0 0 39px !important;width:39px !important;height:39px !important;padding:8px !important}
 body .staff-userbar > nav.sges-mobile-tools svg{width:21px !important;height:21px !important;min-width:21px !important;min-height:21px !important;max-width:21px !important;max-height:21px !important}
 body .operations-shell .ops-commandbar{margin-bottom:10px !important}
 body .operations-shell .ops-commandbar .ops-search input{height:42px !important;min-height:42px !important;border-radius:10px !important}
 body .operations-shell .ops-commandbar .ops-search button{height:42px !important;min-height:42px !important}
 body .operations-shell .ops-iconnav > a.ops-nav-locations,body .operations-shell .ops-iconnav > a.ops-nav-administration{display:none !important}
 body .operations-shell .ops-commandbar > nav.ops-iconnav{overflow-x:hidden !important;border-radius:13px 13px 0 0 !important;padding:5px 4px calc(6px + env(safe-area-inset-bottom,0px)) !important}
 body .operations-shell .ops-iconnav > a.ops-nav-icon{display:flex !important;flex-direction:column !important;gap:3px !important;max-width:none !important;min-height:54px !important;height:54px !important;padding:5px 1px !important;text-align:center !important;text-decoration:none !important}
 body .operations-shell .ops-iconnav > a.ops-nav-icon img{width:24px !important;height:24px !important;max-width:24px !important;max-height:24px !important}
 body .operations-shell .ops-iconnav .sges-r5-nav-label{display:block !important;font-size:9px !important;line-height:1.1 !important;font-weight:700 !important;white-space:nowrap !important}
 body .operations-shell .sges-r5-today{display:block !important;margin:9px 0 16px !important}
 body .sges-r5-today-head{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:9px}
 body .sges-r5-today-head h2{font-size:19px;margin:0;color:#0d3275}
 body .sges-r5-today-head small{font-size:11px;color:#536781}
 body .sges-r5-today-head a{font-size:11px;font-weight:700;white-space:nowrap;text-decoration:none}
 body .sges-r5-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 body .sges-r5-stats a{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:79px;gap:2px;border:1px solid #dbe4f2;border-radius:12px;background:white;text-decoration:none;color:#0d3275}
 body .sges-r5-stats span{font-size:18px;line-height:1}
 body .sges-r5-stats strong{font-size:21px;line-height:1.1}
 body .sges-r5-stats small{font-size:10px;text-align:center;color:#526780}
 body .operations-shell .ops-section{margin-bottom:12px !important}
 body .operations-shell .ops-section-title{margin-bottom:8px !important}
 body .operations-shell .ops-section-title h2{font-size:19px !important}
 body .operations-shell .ops-quick-grid{display:flex !important;flex-direction:column !important;gap:7px !important}
 body .operations-shell .ops-quick-grid .ops-action{display:flex !important;flex-direction:row !important;align-items:center !important;gap:11px !important;min-height:62px !important;padding:9px 11px !important;border-radius:12px !important}
 body .operations-shell .ops-quick-grid .ops-action::after{content:'›';margin-left:auto;font-size:24px;font-weight:600;color:#193e83}
 body .operations-shell .ops-quick-grid .ops-action-icon{flex:0 0 39px !important;width:39px !important;min-width:39px !important;max-width:39px !important;height:39px !important;min-height:39px !important;max-height:39px !important;font-size:17px !important}
 body .operations-shell .ops-quick-grid .ops-action strong{font-size:13px !important}
 body .operations-shell .ops-quick-grid .ops-action small{font-size:11px !important}
 body .operations-shell .ops-quick-grid .sges-r5-desktop-find{display:none !important}
 body .operations-shell .ops-quick-grid .sges-r5-payment-action{display:flex !important}
}
@media screen and (max-width:390px){body .staff-userbar > nav.sges-mobile-tools > .sges-mobile-tool{flex-basis:34px !important;width:34px !important;height:36px !important}body .staff-userbar > nav.sges-mobile-tools{gap:3px !important}}

/* SGES R6 — approved mobile dashboard reference, 2026-10-17.
   Only applies to the dashboard at phone widths. Desktop styles are untouched. */
@media screen and (max-width:767px) {
  body.sges-dashboard-page {background:#edf3fa !important;}
  body.sges-dashboard-page .shell.operations-shell {padding:0 10px calc(88px + env(safe-area-inset-bottom,0px)) !important;}
  body.sges-dashboard-page .staff-app-header {margin:0 -10px 8px !important;}
  body.sges-dashboard-page .staff-brand-row {background:#0d3275 !important;padding:12px 12px 10px !important;margin:0 !important;min-height:68px !important;grid-template-columns:minmax(0,1fr) auto !important;}
  body.sges-dashboard-page .staff-brand {max-width:225px !important;}
  body.sges-dashboard-page .staff-brand img {max-height:58px !important;}
  body.sges-dashboard-page .staff-clock {display:none !important;}
  body.sges-dashboard-page .staff-language {grid-column:2 !important;}
  body.sges-dashboard-page .userbar.staff-userbar {margin:0 10px !important;border-radius:0 0 12px 12px !important;grid-template-columns:minmax(90px,1fr) auto !important;gap:5px !important;padding:9px 9px !important;}
  body.sges-dashboard-page .staff-userbar .staff-identity>strong {font-size:15px !important;}
  body.sges-dashboard-page .staff-userbar .staff-mode {font-size:11px !important;}
  body.sges-dashboard-page .staff-userbar > nav.sges-mobile-tools {gap:5px !important;}
  body.sges-dashboard-page .staff-userbar > nav.sges-mobile-tools > .sges-mobile-tool {flex:0 0 37px !important;width:37px !important;max-width:37px !important;height:39px !important;}
  body.sges-dashboard-page .ops-commandbar {margin:9px 0 13px !important;}
  body.sges-dashboard-page .ops-search form {position:relative !important;display:block !important;}
  body.sges-dashboard-page .ops-search form::before {content:'⌕';position:absolute;left:13px;top:7px;font-size:28px;line-height:30px;color:#0d3275;pointer-events:none;z-index:1;}
  body.sges-dashboard-page .ops-search input {width:100% !important;height:44px !important;min-height:44px !important;padding-left:45px !important;border-radius:11px !important;font-size:14px !important;}
  body.sges-dashboard-page .ops-search button {position:absolute !important;width:1px !important;height:1px !important;min-height:0 !important;overflow:hidden !important;clip-path:inset(50%) !important;padding:0 !important;border:0 !important;}
  body.sges-dashboard-page .sges-r5-today {margin:12px 0 18px !important;}
  body.sges-dashboard-page .sges-r5-today-head h2 {font-size:23px !important;}
  body.sges-dashboard-page .sges-r5-today-head small {font-size:12px !important;}
  body.sges-dashboard-page .sges-r5-stats {gap:7px !important;}
  body.sges-dashboard-page .sges-r5-stats a {min-height:106px !important;padding:9px 3px !important;gap:3px !important;}
  body.sges-dashboard-page .sges-r5-stats span {font-size:24px !important;}
  body.sges-dashboard-page .sges-r5-stats strong {font-size:24px !important;}
  body.sges-dashboard-page .sges-r5-stats small {font-size:12px !important;}
  body.sges-dashboard-page .ops-section-title h2 {font-size:23px !important;}
  body.sges-dashboard-page .ops-quick-grid {display:flex !important;flex-direction:column !important;gap:3px !important;}
  body.sges-dashboard-page .ops-quick-grid > a.ops-action {display:flex !important;flex-direction:row !important;align-items:center !important;min-height:74px !important;gap:13px !important;padding:10px 12px !important;}
  body.sges-dashboard-page .ops-quick-grid .ops-action-icon {flex:0 0 49px !important;width:49px !important;height:49px !important;min-width:49px !important;min-height:49px !important;max-width:49px !important;max-height:49px !important;font-size:20px !important;}
  body.sges-dashboard-page .ops-quick-grid .ops-action>span:last-of-type {flex:1 1 auto !important;min-width:0 !important;}
  body.sges-dashboard-page .ops-quick-grid .ops-action strong {font-size:14px !important;}
  body.sges-dashboard-page .ops-quick-grid .ops-action small {font-size:11px !important;}
  body.sges-dashboard-page .ops-quick-grid .ops-action::after {flex:0 0 auto !important;align-self:center !important;margin-left:auto !important;font-size:28px !important;}
  body.sges-dashboard-page .ops-quick-grid .sges-r5-desktop-find {display:none !important;}
  body.sges-dashboard-page .ops-quick-grid .sges-r5-payment-action {display:flex !important;}
  /* Mobile dashboard shows the four primary actions; full operational panels remain on desktop. */
  body.sges-dashboard-page .ops-section ~ .ops-two-col,
  body.sges-dashboard-page .ops-section ~ .ops-coming-grid {display:none !important;}
  body.sges-dashboard-page .ops-commandbar > nav.ops-iconnav {border-radius:14px 14px 0 0 !important;padding:7px 5px calc(8px + env(safe-area-inset-bottom,0px)) !important;}
  body.sges-dashboard-page .ops-iconnav > a.ops-nav-icon {flex:1 1 0 !important;min-width:0 !important;max-width:none !important;height:57px !important;min-height:57px !important;gap:3px !important;background:transparent !important;color:#0d3275 !important;}
  body.sges-dashboard-page .ops-iconnav > a.ops-nav-icon.active {background:#0d3275 !important;color:#fff !important;}
  body.sges-dashboard-page .ops-iconnav .sges-r5-nav-label {display:block !important;font-size:10px !important;color:inherit !important;line-height:1.15 !important;}
  body.sges-dashboard-page .ops-iconnav > a.ops-nav-icon img {width:25px !important;height:25px !important;max-width:25px !important;max-height:25px !important;}
  body.sges-dashboard-page .ops-iconnav > a.ops-nav-locations,
  body.sges-dashboard-page .ops-iconnav > a.ops-nav-administration {display:none !important;}
}
@media screen and (max-width:390px) {
 body.sges-dashboard-page .staff-userbar > nav.sges-mobile-tools > .sges-mobile-tool {flex-basis:32px !important;width:32px !important;max-width:32px !important;}
}

/* R20 desktop navigation: labels are exclusively for mobile footer. */
@media screen and (min-width:768px) {
  body .ops-commandbar .ops-iconnav .sges-r5-nav-label { display:none !important; }
  body .ops-commandbar .ops-iconnav > a.ops-nav-icon { position:relative; flex-shrink:0 !important; }
}

/* R27 — Unified full-width desktop Operations shell.
   Applies to shared header, userbar, navigation and content in the same shell.
   Existing mobile rules and fixed/sticky header positions remain unchanged. */
@media screen and (min-width:768px) {
  body .shell.operations-shell {
    width:100%; max-width:none; min-width:0; box-sizing:border-box;
    margin-inline:auto; padding-inline:clamp(16px,1.35vw,28px);
  }
  body .operations-shell .staff-header,
  body .operations-shell .staff-userbar,
  body .operations-shell .ops-commandbar {max-width:none;min-width:0;}
}

/* SGES R37F — compact mobile Quick Actions on non-Home Operations pages.
   Keep desktop and dedicated mobile Home dashboard unchanged. */
@media screen and (max-width:767px) {
  body:not(.sges-dashboard-page) .operations-shell .ops-quick-grid {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
  }
  body:not(.sges-dashboard-page) .operations-shell .ops-quick-grid > a.ops-action {
    display:flex !important;
    flex-flow:row nowrap !important;
    align-items:center !important;
    gap:7px !important;
    min-height:62px !important;
    height:auto !important;
    padding:7px 8px !important;
    border-radius:12px !important;
    box-sizing:border-box !important;
    min-width:0 !important;
  }
  body:not(.sges-dashboard-page) .operations-shell .ops-quick-grid > a.ops-action .ops-action-icon {
    display:flex !important;
    flex:0 0 36px !important;
    width:36px !important;
    min-width:36px !important;
    max-width:36px !important;
    height:36px !important;
    min-height:36px !important;
    max-height:36px !important;
    border-radius:9px !important;
    font-size:17px !important;
  }
  body:not(.sges-dashboard-page) .operations-shell .ops-quick-grid > a.ops-action > span:last-of-type {
    min-width:0 !important;
    flex:1 1 auto !important;
  }
  body:not(.sges-dashboard-page) .operations-shell .ops-quick-grid > a.ops-action strong {
    font-size:12px !important;
    line-height:1.25 !important;
  }
  body:not(.sges-dashboard-page) .operations-shell .ops-quick-grid > a.ops-action small {
    display:block !important;
    font-size:10px !important;
    line-height:1.25 !important;
    margin-top:2px !important;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  body:not(.sges-dashboard-page) .operations-shell .ops-quick-grid > a.ops-action::after {
    content:'›';
    flex:0 0 auto !important;
    margin-left:0 !important;
    font-size:17px !important;
    line-height:1 !important;
  }
}

/* SGES R37G — Payments mobile header clearance correction.
   The fixed-footer bottom padding belongs to the content shell, not to the
   separate Payments header shell. Keeps desktop and dashboard untouched. */
@media screen and (max-width:767px) {
  body:not(.sges-dashboard-page) .shell.operations-shell.sges-payments-sticky-header {
    padding-bottom:0 !important;
  }
}
