@import url("https://fonts.googleapis.com/css2?family=Allura&display=swap");

*{box-sizing:border-box}:root{--nav:#06294c;--nav2:#031b32;--blue:#0967c2;--green:#17863b;--red:#d22626;--bg:#eef3f8;--card:#fff;--line:#d7e0e9;--text:#142230;--muted:#6c7885}
html,body{margin:0;min-height:100%;font-family:Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--text)}a{text-decoration:none;color:inherit}button,input,select{font:inherit}.app{min-height:100vh}.app aside{position:fixed;left:0;top:0;bottom:0;width:245px;background:linear-gradient(var(--nav),var(--nav2));color:#fff;display:flex;flex-direction:column}.brand{height:75px;padding:14px 17px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #ffffff22}.brand>b,.login-brand>b{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--blue);font-size:18px;font-style:italic}.brand strong{display:block}.brand span{display:block;font-size:11px;opacity:.7;margin-top:3px}nav{padding:12px 10px}nav small{display:block;opacity:.5;font-size:10px;letter-spacing:.1em;padding:14px 10px 7px}nav a{display:block;padding:12px;border-radius:8px;margin:2px 0;font-size:14px}nav a:hover{background:#ffffff13}nav a.on{background:linear-gradient(90deg,#075eb4,#0c71d4)}aside footer{margin-top:auto;padding:16px;border-top:1px solid #ffffff22;font-size:11px;opacity:.6}.main{margin-left:245px}.main>header{height:68px;position:sticky;top:0;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 22px;z-index:20}.main>header h2{font-size:20px}.main>header #menu{display:none}.who{margin-left:auto;display:flex;gap:10px;align-items:center}.who span{text-align:right}.who b,.who small{display:block}.who small{color:var(--muted);font-size:10px;margin-top:2px}.who i{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#e7f1fb;color:var(--blue);font-style:normal;font-weight:900}.who>a{font-size:11px;color:var(--muted)}main{padding:22px;max-width:1700px;margin:auto}.hero{background:linear-gradient(115deg,#06478b,#0873d8);color:#fff;border-radius:14px;padding:24px 26px;display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:17px}.hero h1{font-size:29px;margin:5px 0}.hero p{margin:0;opacity:.85}.hero>div:last-child{display:flex;gap:8px;flex-wrap:wrap}.btn,button{min-height:42px;padding:0 14px;border:1px solid #c9d4df;border-radius:8px;background:#fff;color:#20364d;font-weight:800;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.primary,.btn.primary{background:var(--blue);border-color:var(--blue);color:#fff}.hero .btn{background:#ffffff12;color:#fff;border-color:#ffffff66}.hero .white{background:#fff;color:var(--blue)}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:17px}.stats>div,.card{background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:0 5px 18px #15304a10}.stats>div{padding:16px 17px}.stats span{display:block;color:var(--muted);font-size:10px;font-weight:900;letter-spacing:.07em}.stats b{display:block;font-size:31px;color:#0b569f;margin:7px 0 3px}.stats b.green{color:var(--green)}.stats b.red{color:var(--red)}.stats small{color:var(--muted)}.card{overflow:hidden;margin-bottom:17px}.cardhead{padding:16px 18px;border-bottom:1px solid var(--line)}.cardhead h3,.cardhead p{margin:0}.cardhead p{color:var(--muted);font-size:12px;margin-top:3px}.empty{padding:36px 18px;text-align:center;display:flex;flex-direction:column;gap:7px;color:var(--muted)}.empty b{font-size:18px;color:var(--text)}.empty.big{padding:60px 25px}.flash,.error{padding:12px 14px;border-radius:8px;margin-bottom:14px}.flash{background:#e5f5ea;color:#116c31}.error{background:#fde9e9;color:#a71b1b}table{width:100%;border-collapse:collapse;font-size:13px}th{background:#f4f7fa;text-align:left;color:#627080;font-size:10px;padding:11px 13px}td{padding:12px 13px;border-top:1px solid #e6ebf0}.link{color:var(--blue);font-weight:800}.pill{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:9px;font-style:normal;font-weight:900}.pill.ami{background:#e7f1fd;color:#075db6}.pill.dot{background:#e6f6eb;color:#15743a}.pill.evaluation{background:#f0e9ff;color:#6741b5}.toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}.toolbar form{display:flex;gap:7px;flex:1;max-width:720px}.toolbar input{flex:1}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:14px}.record{background:#fff;border:1px solid var(--line);border-radius:9px;padding:15px;min-height:150px}.record:not(div):hover{border-color:#9fc4e8;box-shadow:0 6px 16px #0d5a9c18}.record>div{display:flex;justify-content:space-between}.record>div span{font-size:10px;color:var(--muted)}.record>b{display:block;color:var(--blue);font-size:11px;margin-top:11px}.record h3{font-size:17px;margin:6px 0}.record p,.record small{color:var(--muted);font-size:12px}.formcard form{padding:18px}.formgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.wide2{grid-column:span 2}label{display:flex;flex-direction:column;gap:5px;font-size:11px;color:#596775;font-weight:800}input,select{min-height:43px;border:1px solid #c9d4df;border-radius:7px;padding:8px 10px;background:#fff}.actions{display:flex;justify-content:flex-end;gap:8px;margin-top:17px;padding-top:14px;border-top:1px solid var(--line)}.inspecthead{background:linear-gradient(110deg,#063f7b,#0869c8);color:#fff;border-radius:12px;padding:20px 22px;display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.inspecthead h1{font-size:27px;margin:4px 0}.inspecthead p{margin:0;opacity:.82}.inspecthead>div:last-child{text-align:right}.inspecthead>div:last-child b,.inspecthead>div:last-child span{display:block}.inspecthead span{font-size:11px;opacity:.8;margin-top:4px}.details{display:grid;grid-template-columns:repeat(6,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:9px;overflow:hidden;margin-bottom:14px}.details>div{background:#fff;padding:11px 12px}.details span{display:block;color:var(--muted);font-size:9px;text-transform:uppercase;font-weight:900}.details b{display:block;margin-top:4px;font-size:13px}.settings{padding:12px 18px}.settings>div{display:flex;justify-content:space-between;padding:11px 0;border-bottom:1px solid #e8edf2}.login{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 20% 15%,#0d6dcd,#064786 35%,#032747 80%);padding:20px}.login-card{width:min(430px,100%);background:#fff;border-radius:14px;padding:28px;box-shadow:0 22px 60px #0005}.login-brand{display:flex;align-items:center;gap:12px;margin-bottom:22px}.login-brand>b{background:var(--blue);color:#fff}.login-brand h1{margin:0;font-size:21px;color:#0b447b}.login-brand p{margin:2px 0 0;color:var(--muted);font-size:10px}.login-card h2{margin-bottom:0}.login-card .muted{margin-top:5px;color:var(--muted)}.login-card form{display:grid;gap:12px}.login-card button{width:100%}
@media(max-width:1100px){.stats{grid-template-columns:repeat(2,1fr)}.grid{grid-template-columns:repeat(2,1fr)}.formgrid{grid-template-columns:repeat(2,1fr)}.details{grid-template-columns:repeat(3,1fr)}}
@media(max-width:800px){.app aside{transform:translateX(-100%);z-index:50}.app aside.open{transform:none}.main{margin-left:0}.main>header #menu{display:block;margin-right:10px}.hero{align-items:flex-start;flex-direction:column}.grid{grid-template-columns:1fr}.details{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.stats,.formgrid,.details{grid-template-columns:1fr}.wide2{grid-column:auto}.toolbar{align-items:stretch;flex-direction:column}.who span,.who>a{display:none}.hero h1{font-size:24px}}

/* =====================================================================
   UR CES PHASE 2 AMI MANUFACTURER SELECTOR
   ===================================================================== */

.brand-logo-image {
    width: 90px;
    height: 54px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    background:#fff;
    border-radius:7px;
    padding:4px;
}

.brand-logo-image img {
    width:100%;
    height:100%;
    object-fit:contain;
}

.login-logo-image {
    width:180px;
    height:80px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    background:#fff;
}

.login-logo-image img {
    max-width:100%;
    max-height:100%;
    object-fit:contain;
}

.ami-start-head {
    margin-bottom:18px;
}

.ami-start-head .eyebrow {
    font-size:11px;
    font-weight:800;
    letter-spacing:.08em;
    color:#456789;
}

.ami-start-head h1 {
    margin:5px 0;
    font-size:30px;
}

.ami-start-head p {
    margin:0;
    color:#6e7d8c;
}

.ami-step {
    display:flex;
    align-items:center;
    gap:13px;
    padding:17px 18px;
    border-bottom:1px solid #dde5ec;
}

.ami-step > b {
    width:38px;
    height:38px;
    flex:0 0 38px;
    display:grid;
    place-items:center;
    border-radius:999px;
    background:#0870d5;
    color:white;
    font-size:16px;
}

.ami-step strong {
    display:block;
    font-size:16px;
}

.ami-step span {
    display:block;
    margin-top:3px;
    color:#728092;
    font-size:12px;
}

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

.manufacturer-card {
    min-height:165px;
    padding:14px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:8px;
    background:#fff;
    border:1px solid #d7e0e8;
    border-radius:9px;
    cursor:pointer;
}

.manufacturer-logo {
    width:100%;
    height:82px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    background:#fff;
}

.manufacturer-logo img {
    max-width:94%;
    max-height:76px;
    object-fit:contain;
}

.manufacturer-card > strong {
    font-size:14px;
}

.manufacturer-card > small {
    color:#728092;
}

.manufacturer-card:hover,
.manufacturer-card.selected,
.equipment-card:hover,
.equipment-card.selected,
.checklist-card:hover,
.checklist-card.selected {
    border-color:#0870d5;
    box-shadow:0 0 0 2px rgba(8,112,213,.15);
}

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

.equipment-card {
    min-height:95px;
    padding:16px;
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    background:#fff;
    border:1px solid #d7e0e8;
    border-radius:8px;
    cursor:pointer;
}

.equipment-card strong {
    font-size:17px;
}

.equipment-card span {
    margin-top:5px;
    color:#728092;
    font-size:11px;
}

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

.checklist-card {
    min-height:105px;
    padding:16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    text-align:left;
    background:#fff;
    border:1px solid #d7e0e8;
    border-radius:8px;
    cursor:pointer;
}

.checklist-card div {
    display:flex;
    flex-direction:column;
    gap:5px;
}

.checklist-card strong {
    font-size:14px;
}

.checklist-card span {
    font-size:11px;
    color:#728092;
}

.checklist-card em {
    flex:0 0 auto;
    padding:7px 9px;
    border-radius:999px;
    background:#e8f5ec;
    color:#15753a;
    font-size:10px;
    font-style:normal;
    font-weight:900;
}

.checklist-card.not-ready {
    opacity:.6;
}

.checklist-card.not-ready em {
    background:#fff1c7;
    color:#805900;
}

.selected-checklist {
    margin-top:18px;
    padding:15px 16px;
    border:1px solid #bad3ec;
    border-radius:8px;
    background:#eaf3fd;
}

.selected-checklist strong,
.selected-checklist span {
    display:block;
}

.selected-checklist span {
    margin-top:4px;
    color:#36516c;
}

@media(max-width:1250px) {

    .manufacturer-grid {
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}

@media(max-width:760px) {

    .manufacturer-grid {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .equipment-grid,
    .checklist-grid {
        grid-template-columns:1fr;
    }
}


/* PHASE 2 INTERACTIVE WORKSPACE */
.workspace-progress{background:#fff;border:1px solid var(--line);border-radius:10px;padding:13px 16px;margin-bottom:14px}
.workspace-progress>div:first-child{display:flex;justify-content:space-between;font-size:12px}
.progress-track{height:9px;background:#e5ebf1;border-radius:20px;overflow:hidden;margin-top:9px}
.progress-track i{display:block;height:100%;background:linear-gradient(90deg,#0870d5,#19a653);transition:width .2s}
.checklist-section-title{padding:14px 17px;background:#f3f7fb;border-bottom:1px solid var(--line)}
.checklist-section-title h3{margin:0;color:#074b8c}
.checklist-items{display:flex;flex-direction:column}
.checklist-row{padding:15px 17px;border-bottom:1px solid #e5ebf0}
.checklist-row:last-child{border-bottom:0}
.checklist-row.has-followup{border-left:5px solid #d22626;background:#fff8f8}
.item-copy{display:flex;gap:12px;align-items:flex-start}
.item-copy strong{font-size:14px;line-height:1.35}
.item-copy small{display:block;color:var(--muted);margin-top:4px}
.item-number{min-width:32px;height:32px;border-radius:8px;background:#e8f2fc;color:#075eaf;display:grid;place-items:center;font-weight:900}
.response-options{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0 0 44px}
.response-radio{position:absolute;opacity:0;pointer-events:none}
.response-button{min-width:72px;min-height:38px;padding:9px 13px;border:2px solid #c9d5df;border-radius:8px;background:#fff;color:#415466;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-size:11px;font-weight:900}
.response-radio:checked+.response-button{border-color:#0870d5;background:#0870d5;color:#fff;box-shadow:0 3px 9px #0870d544}
.response-radio:checked+.response-button.followup{border-color:#d22626;background:#d22626}
.item-comment{margin:10px 0 0 44px}
.item-comment textarea{width:100%;border:1px solid #c9d4df;border-radius:7px;padding:9px 10px;font:inherit;resize:vertical}
.workspace-savebar{position:sticky;bottom:10px;z-index:12;display:flex;justify-content:space-between;align-items:center;gap:15px;background:#fff;border:1px solid #b9c9d8;border-radius:11px;padding:13px 16px;margin:16px 0;box-shadow:0 9px 30px #17324d2b}
.workspace-savebar strong,.workspace-savebar span{display:block}
.workspace-savebar span{color:var(--muted);font-size:11px;margin-top:3px}
@media(max-width:700px){.response-options,.item-comment{margin-left:0}.workspace-savebar{align-items:stretch;flex-direction:column}.workspace-savebar button{width:100%}}


/* PHASE 2 GUIDED INTERACTIVE WORKSPACE */
.guided-workspace-nav{position:sticky;top:78px;z-index:11;background:#fff;border:1px solid var(--line);border-radius:11px;margin-bottom:14px;box-shadow:0 7px 22px #15304a1a}
.guided-nav-head{padding:13px 16px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line)}
.guided-nav-head small{display:block;color:var(--muted);font-size:9px;font-weight:900;letter-spacing:.08em}
.guided-nav-head strong{display:block;margin-top:3px;color:#064b8e}
.guided-count{font-size:12px;font-weight:900;color:#526579}
.guided-tabs{display:flex;gap:7px;padding:10px;overflow-x:auto}
.guided-tab{min-width:175px;min-height:58px;padding:8px 10px;display:grid;grid-template-columns:27px 1fr auto;gap:7px;align-items:center;text-align:left;background:#f7f9fb;border:1px solid #d4dee7}
.guided-tab>span{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:#dce8f3;color:#075da9}
.guided-tab>b{font-size:11px;line-height:1.2}
.guided-tab>em{font-size:9px;font-style:normal;color:var(--muted)}
.guided-tab.active{border-color:#0870d5;background:#eaf3fd;box-shadow:0 0 0 2px #0870d522}
.guided-tab.complete>span{background:#198b43;color:#fff}
.guided-tab.complete>em{color:#198b43;font-weight:900}
.checklist-row{transition:background .2s,border-color .2s}
.checklist-row.row-complete{background:#f7fcf8;border-left:5px solid #29a457}
.checklist-row.row-followup{background:#fff6f6;border-left:5px solid #d22626}
.response-radio:checked+.response-button.option-ok{background:#198b43;border-color:#198b43;color:#fff}
.response-radio:checked+.response-button.option-followup{background:#d22626;border-color:#d22626;color:#fff}
.response-radio:checked+.response-button.option-na{background:#657382;border-color:#657382;color:#fff}
.item-comment{display:none}
.item-comment.comment-open{display:block}
.comment-toggle{min-height:32px;margin:9px 0 0 44px;padding:0;border:0;background:transparent;color:#0870d5;font-size:11px}
.guided-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:12px 14px;margin-bottom:14px}
.guided-control-status{color:var(--muted);font-size:12px}
.guided-controls button:disabled{opacity:.4;cursor:not-allowed}
@media(max-width:700px){
 .guided-workspace-nav{top:70px}
 .guided-nav-head{align-items:flex-start;flex-direction:column;gap:5px}
 .guided-tab{min-width:145px}
 .guided-controls{display:grid;grid-template-columns:1fr 1fr}
 .guided-control-status{grid-column:1/-1;grid-row:1;text-align:center}
 .comment-toggle{margin-left:0}
}


/* PHASE 2 FOLLOW-UP MANAGEMENT */
.followup-hero{background:linear-gradient(115deg,#741515,#d52b2b);color:#fff;border-radius:14px;padding:22px 25px;display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.followup-hero h1{margin:4px 0;font-size:28px}
.followup-hero p{margin:0;opacity:.85}
.followup-hero-count{text-align:center}
.followup-hero-count b{display:block;font-size:35px}
.followup-hero-count span{font-size:9px;font-weight:900}
.followup-filters{display:flex;gap:7px;overflow-x:auto;margin-bottom:14px}
.followup-filters a{padding:9px 13px;background:#fff;border:1px solid var(--line);border-radius:8px;font-size:11px;font-weight:900}
.followup-filters a.on{background:#0967c2;border-color:#0967c2;color:#fff}
.followup-list{display:grid;gap:14px}
.followup-card{background:#fff;border:1px solid var(--line);border-left:6px solid #d22626;border-radius:11px;overflow:hidden;box-shadow:0 5px 18px #15304a10}
.followup-card.status-estimate{border-left-color:#e59b13}
.followup-card.status-approved{border-left-color:#0967c2}
.followup-card.status-repaired{border-left-color:#7357ba}
.followup-card.status-rechecked,.followup-card.status-closed{border-left-color:#198b43}
.followup-card-head{display:flex;justify-content:space-between;align-items:center;padding:13px 16px;background:#f7f9fb;border-bottom:1px solid var(--line)}
.followup-card-head>div{display:flex;align-items:center;gap:10px}
.followup-card-head a{color:#0967c2;font-weight:900}
.followup-card-head time{color:var(--muted);font-size:11px}
.followup-status{padding:5px 8px;border-radius:999px;background:#fde8e8;color:#a71919;font-size:9px;font-weight:900}
.followup-problem{display:flex;gap:12px;padding:17px}
.followup-problem h3{margin:0;font-size:17px}
.followup-problem p{margin:6px 0 0;color:var(--muted)}
.followup-number{min-width:36px;height:36px;border-radius:9px;background:#fde9e9;color:#bb2020;display:grid;place-items:center;font-weight:900}
.followup-equipment{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.followup-equipment>div{background:#fff;padding:11px 14px}
.followup-equipment span,.followup-answer span{display:block;color:var(--muted);font-size:9px;text-transform:uppercase;font-weight:900}
.followup-equipment b,.followup-answer b{display:block;margin-top:4px;font-size:12px}
.followup-answer{display:grid;grid-template-columns:1fr 2fr;gap:12px;padding:14px 17px;background:#fff9f9}
.followup-form{display:grid;grid-template-columns:220px 1fr auto;gap:12px;align-items:end;padding:16px}
.followup-form textarea{width:100%;border:1px solid #c9d4df;border-radius:7px;padding:9px 10px;font:inherit;resize:vertical}

/* DIAGNOSTICS */
.wide4{grid-column:span 4}
textarea{width:100%;border:1px solid #c9d4df;border-radius:7px;padding:10px;background:#fff;font:inherit;resize:vertical}
.diag-form{padding:18px}
.pill.diag{background:#fff1c7;color:#795500}
@media(max-width:560px){.wide4{grid-column:auto}}

/* FULL UNITED RENTALS CES SIDEBAR BRAND */
.brand.full-brand-logo{height:92px;padding:12px 16px;background:#fff;justify-content:center;border-bottom:1px solid #d7e0e9}
.brand.full-brand-logo img{display:block;width:100%;max-width:212px;height:66px;object-fit:contain}
.toolbox-hero{align-items:stretch;padding:28px 32px}
.toolbox-hero>div:first-child{min-width:360px;display:flex;flex-direction:column;justify-content:center}
.hero-ces-logo{display:inline-flex;align-items:center;justify-content:center;width:280px;min-height:82px;padding:10px 16px;background:#fff!important;border:2px solid #fff;border-radius:10px;margin-bottom:9px;box-shadow:0 6px 18px #00264b35;overflow:hidden}
.hero-ces-logo img{display:block;width:100%;height:58px;object-fit:contain;background:#fff}
.toolbox-hero h1{font-size:36px;margin:5px 0}
.toolbox-actions{max-width:760px;align-content:center;justify-content:flex-end}
.toolbox-actions .btn{min-width:132px;min-height:64px;padding:8px 20px;font-size:18px;border-radius:10px}
.toolbox-actions .toolbox-future{flex-direction:column;gap:4px;cursor:default;border-style:dashed;background:#043d78aa;color:#d7e9fa}
.toolbox-actions .toolbox-tool{flex-direction:column;gap:4px;background:#fff;color:#075db6;border-color:#fff}
.toolbox-future small{display:block;font-size:8px;letter-spacing:.12em;opacity:.72}
.toolbox-tool small{display:block;font-size:8px;letter-spacing:.12em;opacity:.68}
@media(max-width:800px){.toolbox-hero>div:first-child{min-width:0}.toolbox-actions{justify-content:flex-start}.toolbox-actions .btn{min-width:125px}.hero-ces-logo{width:min(255px,100%)}}

/* CES Toolbox - Parts and Freight Markup Calculator */
.calc-hero{background:linear-gradient(115deg,#06478b,#0873d8);color:#fff;border-radius:14px;padding:24px 26px;display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:17px}.calc-hero small{font-weight:900;letter-spacing:.12em;opacity:.75}.calc-hero h1{font-size:30px;margin:5px 0}.calc-hero p{margin:0;opacity:.82}.calculator-grid{display:grid;grid-template-columns:1fr 1.25fr;gap:17px}.calculator-card{overflow:visible}.calculator-title{display:flex;gap:12px;align-items:center;padding:17px 18px;border-bottom:1px solid var(--line)}.calculator-title>span{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:var(--blue);color:#fff;font-weight:900}.calculator-title h3,.calculator-title p{margin:0}.calculator-title p{font-size:12px;color:var(--muted);margin-top:3px}.calculator-body{padding:20px}.calculator-input>span{display:flex;align-items:center;border:2px solid #f1bd20;border-radius:9px;background:#fff7c7;overflow:hidden}.calculator-input>span b{font-size:22px;padding-left:14px;color:#5d5108}.calculator-input input{border:0;background:transparent;min-height:58px;font-size:24px;font-weight:900;width:100%;outline:0}.calculator-result{margin-top:17px;border-radius:11px;padding:18px}.primary-result{background:linear-gradient(120deg,#0757a4,#0b7add);color:#fff}.calculator-result small,.freight-results small{display:block;font-size:9px;font-weight:900;letter-spacing:.12em;opacity:.72}.calculator-result strong{display:block;font-size:38px;margin:5px 0}.calculator-result span{font-size:12px;opacity:.8}.calc-note{margin-top:15px;padding:11px 13px;background:#f3f6f9;border-radius:8px;color:#5e6c7a;font-size:12px}.freight-inputs{display:grid;grid-template-columns:1fr 1fr;gap:12px}.freight-results{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:17px}.freight-results>div{padding:14px;border:1px solid #cddbe8;border-radius:9px;background:#f7fbff}.freight-results strong{display:block;color:#075cad;font-size:25px;margin:5px 0}.freight-results span{font-size:9px;color:var(--muted)}.margin-reference-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.margin-mode{margin:12px 15px 0;padding:9px 12px;border-radius:7px;background:#edf6ff;color:#075cad;font-size:11px;font-weight:800}.margin-reference{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;padding:15px}.margin-reference>button{display:block;text-align:left;min-height:66px;border:1px solid var(--line);border-radius:8px;padding:9px 10px;background:#f8fafc;color:var(--text);cursor:pointer}.margin-reference>button:hover{border-color:#70afe9;background:#f0f8ff}.margin-reference span,.margin-reference b{display:block}.margin-reference span{font-size:10px;color:var(--muted)}.margin-reference b{font-size:12px;margin-top:3px}.margin-reference>button.active{border-color:#0873d8;background:#e8f4ff;box-shadow:0 0 0 2px #0873d822}.margin-reference>button.active b{color:#075cad}@media(max-width:1050px){.calculator-grid{grid-template-columns:1fr}.margin-reference{grid-template-columns:repeat(4,1fr)}}@media(max-width:650px){.freight-inputs,.freight-results{grid-template-columns:1fr}.margin-reference{grid-template-columns:repeat(2,1fr)}.calc-hero,.margin-reference-head{align-items:flex-start;flex-direction:column}}
@media(max-width:850px){
 .followup-equipment{grid-template-columns:repeat(2,1fr)}
 .followup-form{grid-template-columns:1fr}
 .followup-form button{width:100%}
}
@media(max-width:560px){
 .followup-hero{align-items:flex-start}
 .followup-answer,.followup-equipment{grid-template-columns:1fr}
}

.review-card{max-width:1100px;margin:auto}.review-list{border:1px solid #d7e1eb;border-radius:12px;overflow:hidden;margin:18px 0}.review-row{display:grid;grid-template-columns:44px 1fr 130px;gap:12px;padding:12px;border-bottom:1px solid #e3eaf1;align-items:start}.review-row span small{display:block;color:#64748b;margin-top:5px}.review-row strong{text-align:center}.review-row strong.bad{color:#b42318}.sign-form canvas{display:block;width:100%;max-width:760px;height:180px;border:2px solid #b7c9da;border-radius:10px;background:#fff;touch-action:none;margin-top:8px}

/* AMI cancel button alignment */
.actions {
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:12px;
    flex-wrap:wrap;
}
.actions .btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:52px;
    padding:0 28px;
    border:2px solid #c5d3df;
    border-radius:12px;
    background:#fff;
    color:#17324d;
    font-weight:800;
    text-decoration:none;
}
.actions .btn:hover {
    background:#edf4fa;
    border-color:#9eb4c7;
}

/* AMI equipment editor */
.equipment-editor{
 margin:20px 0;
 padding:0;
 border:1px solid #cbd9e6;
 border-radius:14px;
 background:#fff;
 overflow:hidden;
}
.equipment-editor summary{
 padding:18px 22px;
 color:#0759a5;
 font-size:18px;
 font-weight:900;
 cursor:pointer;
 background:#f5f9fd;
}
.equipment-editor form{
 padding:22px;
}
.equipment-fields{
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:16px;
}
.equipment-fields label{
 display:flex;
 flex-direction:column;
 gap:6px;
 font-weight:800;
 color:#334e68;
}
.equipment-fields input{
 width:100%;
 min-height:46px;
 padding:10px 12px;
 border:1px solid #bdccda;
 border-radius:9px;
 background:#fff;
 font:inherit;
}
@media(max-width:900px){
 .equipment-fields{grid-template-columns:1fr;}
}

/* DOT inspection workspace */
.dot-response-grid{
 display:grid;
 grid-template-columns:auto auto minmax(150px,210px);
 gap:10px;
 align-items:center;
 margin-left:44px;
}
.dot-choice{display:flex;gap:7px;align-items:center}
.dot-repair-date{display:none;align-items:center;gap:8px;margin:0;font-size:11px;font-weight:900;color:#526579}
.dot-repair-date.is-visible{display:flex}
.dot-repair-date input{min-height:38px;padding:7px 9px;border:1px solid #c9d4df;border-radius:7px}
.dot-response-grid .response-button{min-width:62px;text-align:center}
.dot-response-grid .option-followup{min-width:116px}
@media(max-width:760px){
 .dot-response-grid{grid-template-columns:1fr;margin-left:0}
 .dot-repair-date.is-visible{align-items:flex-start;flex-direction:column}
 .dot-repair-date input{width:100%}
}

/* PM module */
.pill.pm{background:#fff3d6;color:#8a5b00}

/* Evaluations Stage 1 */
.evaluation-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding:14px}
.evaluation-person-card{display:block;border:1px solid #d8e0e9;border-radius:12px;padding:17px;background:#fff;box-shadow:0 5px 15px #18344f0c}
.evaluation-person-card:hover{border-color:#9e82dc;box-shadow:0 8px 22px #6741b51c}.evaluation-person-card>div:first-child{display:flex;align-items:center;justify-content:space-between}.evaluation-person-card>div:first-child span{font-size:10px;font-weight:900;color:#6741b5}
.evaluation-person-card.complete>div:first-child span{color:#168344}.evaluation-person-card h3{margin:14px 0 4px;font-size:19px}.evaluation-person-card p{margin:0 0 13px;color:var(--muted)}
.evaluation-progress{height:8px;border-radius:999px;background:#e7edf3;overflow:hidden;margin-bottom:9px}.evaluation-progress i{display:block;height:100%;background:linear-gradient(90deg,#6741b5,#9b74e7)}.evaluation-person-card.complete .evaluation-progress i{background:#168344}.evaluation-person-card small{color:var(--muted)}
.evaluation-form-picker{grid-column:1/-1;border:1px solid #ccd8e3;border-radius:12px;margin:20px 0 0;padding:14px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.evaluation-form-picker legend{padding:0 8px;color:#6741b5;font-weight:900}.evaluation-form-picker>label{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:11px;padding:13px;border:1px solid #d8e0e8;border-radius:9px;cursor:pointer}.evaluation-form-picker input{width:22px;height:22px}.evaluation-form-picker b,.evaluation-form-picker small{display:block}.evaluation-form-picker small{margin-top:3px;color:var(--muted)}
.evaluation-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:16px}.evaluation-tabs a{display:grid;grid-template-columns:32px 1fr auto;gap:10px;align-items:center;padding:13px;background:#fff;border:1px solid #d7e0e9;border-radius:10px}.evaluation-tabs a:hover,.evaluation-tabs a.current{border-color:#805ac4;background:#f8f4ff}.evaluation-tabs a>span{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#eee7fb;color:#6741b5;font-weight:900}.evaluation-tabs b,.evaluation-tabs small{display:block}.evaluation-tabs small{margin-top:4px;color:var(--muted);font-size:10px}.evaluation-tabs em{font-style:normal;color:#168344;font-size:18px;font-weight:900}.evaluation-tabs.compact{margin-top:-3px}.evaluation-head{background:linear-gradient(110deg,#34205e,#7350b4)}
.evaluation-delete{padding:18px;display:flex;align-items:end;gap:12px}.evaluation-delete label{flex:1;max-width:360px}.danger{background:#b42318;color:#fff;border-color:#b42318}.evaluation-x-option{margin-left:44px}.evaluation-x-option .response-button{min-width:70px;text-align:center;font-size:18px}.evaluation-signatures{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:16px}.evaluation-signatures>div{border:1px solid #d7e1eb;border-radius:12px;padding:14px}.evaluation-signatures canvas{height:155px}
@media(max-width:1050px){.evaluation-grid,.evaluation-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.evaluation-grid,.evaluation-tabs,.evaluation-form-picker,.evaluation-signatures{grid-template-columns:1fr}.evaluation-delete{align-items:stretch;flex-direction:column}.evaluation-x-option{margin-left:0}}
.form-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:18px;padding:16px 0 4px;border-top:1px solid #d7e1eb;clear:both}.form-actions .button,.form-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:8px;font-weight:800;white-space:nowrap}.form-actions .button{background:#fff;border:1px solid #c9d4df;color:#20364d}.form-actions button{margin:0}


/* CES colorful sidebar icons */
#side nav a{display:flex;align-items:center;gap:11px;padding:9px 10px;font-weight:650;transition:background .16s ease,transform .16s ease}
#side nav a:hover{transform:translateX(2px)}
#side nav a.on{box-shadow:inset 3px 0 0 #fff,0 4px 14px #001c3866}
.navico{width:28px;height:28px;flex:0 0 28px;display:inline-flex;align-items:center;justify-content:center;border-radius:9px;color:#fff;font-size:15px;font-weight:900;line-height:1;box-shadow:0 3px 9px #001c3855,inset 0 1px 0 #ffffff55}
.ico-dash{background:linear-gradient(135deg,#2fa8ff,#0067d5)}
.ico-ami{background:linear-gradient(135deg,#35d07f,#078a49)}
.ico-pm{background:linear-gradient(135deg,#ffb23f,#e36500)}
.ico-dot{background:linear-gradient(135deg,#25d5e8,#087aa8)}
.ico-eval{background:linear-gradient(135deg,#b478ff,#6936c8)}
.ico-diag{background:linear-gradient(135deg,#ff6fad,#c52267)}
.ico-calc{background:linear-gradient(135deg,#ffe16a,#d99c00);color:#4c3500}
.ico-follow{background:linear-gradient(135deg,#ff746d,#c92828)}
.ico-reports{background:linear-gradient(135deg,#42d7c6,#087d78)}
.ico-library{background:linear-gradient(135deg,#6f9dff,#3948bd)}
.ico-users{background:linear-gradient(135deg,#d084ff,#8136ad)}
.ico-settings{background:linear-gradient(135deg,#9eb1c5,#50657b)}

/* CES MCI Codes */
.mci-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px 28px;margin-bottom:18px;border-radius:18px;background:linear-gradient(115deg,#073b75,#087ac2 58%,#11b9d0);color:#fff;box-shadow:0 12px 28px #075b9129}.mci-hero small{font-weight:900;letter-spacing:1px}.mci-hero h1{margin:5px 0;font-size:32px}.mci-hero p{margin:0;color:#e0f6ff}.mci-count{min-width:120px;padding:14px 18px;border:1px solid #ffffff66;border-radius:14px;background:#ffffff18;text-align:center}.mci-count b,.mci-count span{display:block}.mci-count b{font-size:32px}.mci-count span{font-size:11px;font-weight:800}.mci-tools{padding:18px;margin-bottom:18px}.mci-search{display:block;font-weight:900}.mci-search input{width:100%;margin-top:8px;min-height:50px;padding:12px 15px;border:2px solid #b9cee0;border-radius:11px;font-size:16px}.mci-search input:focus{outline:0;border-color:#0c82d8;box-shadow:0 0 0 4px #0c82d81a}.mci-categories{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.mci-categories button{padding:8px 13px;border:1px solid #bfd0de;border-radius:999px;background:#f4f8fb;color:#31516b;font-weight:800;cursor:pointer}.mci-categories button.active{border-color:#087ac2;background:#087ac2;color:#fff}.mci-table-card{padding:0;overflow:hidden}.mci-table-wrap{overflow:auto}.mci-table{min-width:1020px}.mci-table thead th,.mci-freight thead th{position:sticky;top:0;background:#0a4f87;color:#fff}.mci-table td{vertical-align:middle}.mci-category{display:inline-block;padding:5px 9px;border-radius:999px;background:#e7f3fb;color:#09649f;font-size:11px;font-weight:900}.mci-copy{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:8px 9px;border:1px solid #b7d5e9;border-radius:8px;background:#edf8ff;color:#075b98;text-align:left;cursor:pointer}.mci-copy:hover{border-color:#0785d4;background:#dff3ff}.mci-copy small{font-size:8px;letter-spacing:.5px}.mci-copy.gl{font-size:12px}.mci-freight{margin-top:18px}.mci-freight table{min-width:760px}.mci-toast{position:fixed;right:24px;bottom:24px;z-index:50;padding:12px 18px;border-radius:10px;background:#0d7d4d;color:#fff;font-weight:900;box-shadow:0 8px 24px #0003;opacity:0;transform:translateY(15px);pointer-events:none;transition:.2s}.mci-toast.show{opacity:1;transform:none}
@media(max-width:700px){.mci-hero{align-items:flex-start}.mci-count{min-width:86px}.mci-hero h1{font-size:25px}}


/* CES colorful dashboard tool cards */
.toolbox-hero{align-items:center}.toolbox-actions{display:grid!important;grid-template-columns:repeat(4,minmax(135px,1fr));gap:11px;min-width:min(760px,60%)}
.tool-card{min-height:72px;display:flex;align-items:center;gap:11px;padding:10px 13px;border:1px solid #ffffff75;border-radius:13px;color:#fff!important;text-decoration:none;box-shadow:0 7px 17px #002d5e35,inset 0 1px 0 #ffffff55;transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}
.tool-card:hover{transform:translateY(-3px);filter:saturate(1.15) brightness(1.06);box-shadow:0 11px 22px #00264e55,inset 0 1px 0 #ffffff77}
.tool-card i{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:12px;background:#ffffff26;border:1px solid #ffffff4d;color:#fff;font-size:23px;font-style:normal;font-weight:950;line-height:1;box-shadow:inset 0 1px 0 #ffffff55}
.tool-card i+span{min-width:0}.tool-card b,.tool-card small{display:block}.tool-card b{font-size:15px;line-height:1.05}.tool-card small{margin-top:6px;color:#fff!important;font-size:8px;letter-spacing:.7px;text-transform:uppercase;opacity:.9}
.tool-ami{background:linear-gradient(135deg,#23c973,#07884a)}.tool-pm{background:linear-gradient(135deg,#ffb12f,#e16700)}.tool-dot{background:linear-gradient(135deg,#27cee7,#087aa8)}.tool-eval{background:linear-gradient(135deg,#a96bfa,#6430bd)}.tool-diag{background:linear-gradient(135deg,#ff68a7,#bd1f62)}.tool-mci{background:linear-gradient(135deg,#268dff,#174fc5)}.tool-mci i{font-size:12px;letter-spacing:.5px}.tool-calc{background:linear-gradient(135deg,#ffd85a,#d88a00);color:#3d2900!important}.tool-calc i{color:#3d2900;background:#fff5bc88;border-color:#fff5bc}.tool-calc small{color:#3d2900!important}
@media(max-width:1350px){.toolbox-hero{align-items:flex-start;flex-direction:column}.toolbox-actions{width:100%;min-width:0}.toolbox-actions{grid-template-columns:repeat(4,minmax(125px,1fr))}}
@media(max-width:850px){.toolbox-actions{grid-template-columns:repeat(2,minmax(135px,1fr))}}
@media(max-width:480px){.toolbox-actions{grid-template-columns:1fr}.tool-card{min-height:64px}}

/* In-progress inspection deletion and MCI Excel validity */
.inspection-danger{display:flex;justify-content:flex-end;margin:-8px 0 16px}.danger-btn{border:1px solid #cf3535!important;background:#fff1f1!important;color:#ad1f1f!important}.danger-btn:hover{background:#cf3535!important;color:#fff!important}.mci-validity{display:inline-flex;align-items:center;gap:8px;margin-top:13px;padding:8px 12px;border:1px solid #ffffff66;border-radius:999px;background:#ffffff1c;font-weight:900}.mci-validity b{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#fff;color:#08794d}.mci-validity.warning b{color:#9b6500}.mci-validity.expired b{color:#b62020}.mci-validity.unknown b{color:#52697c}.mci-admin{margin-bottom:18px;padding:0;overflow:hidden}.mci-admin summary{padding:17px 20px;background:#eef7ff;color:#075b98;font-weight:900;cursor:pointer}.mci-admin form{padding:18px 20px}.mci-upload-grid{display:grid;grid-template-columns:2fr 1fr;gap:16px}.mci-upload-grid label{font-weight:850}.mci-upload-grid input{display:block;width:100%;margin-top:7px;min-height:46px;padding:9px 11px;border:1px solid #b8cad9;border-radius:9px;background:#fff}.mci-upload-note,.mci-source{color:#60778a;font-size:12px}.mci-source{margin:-8px 2px 16px}@media(max-width:700px){.mci-upload-grid{grid-template-columns:1fr}}


/* CES Portal responsive dynamic interface */
:root{--safe-left:env(safe-area-inset-left,0px);--safe-right:env(safe-area-inset-right,0px);--safe-bottom:env(safe-area-inset-bottom,0px)}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}body{overflow-x:hidden}.app aside{overflow-y:auto;overscroll-behavior:contain;transition:transform .24s ease,box-shadow .24s ease}.main,.main main,.card,.hero,.inspecthead{min-width:0}.main>header{padding-left:max(22px,var(--safe-left));padding-right:max(22px,var(--safe-right));backdrop-filter:saturate(150%) blur(10px)}main{width:100%}.btn,button,input,select,textarea{touch-action:manipulation}.btn,button{transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease}.btn:hover,button:hover{transform:translateY(-1px)}.btn:active,button:active{transform:translateY(0)}.card,.record,.stats>div{transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.record:not(div):hover,.stats>div:hover{transform:translateY(-2px)}.responsive-table-wrap{width:100%;overflow:auto;-webkit-overflow-scrolling:touch}.responsive-table-wrap table{min-width:720px}.dynamic-reveal{opacity:0;transform:translateY(10px)}.dynamic-reveal.is-visible{opacity:1;transform:none;transition:opacity .3s ease,transform .3s ease}.mobile-nav-shade{display:none}.mobile-nav-shade.open{display:block;position:fixed;inset:0;z-index:45;background:#001a30a8;backdrop-filter:blur(2px)}
@media(max-width:1200px){main{padding:18px}.manufacturer-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero>div:last-child{justify-content:flex-start}.mci-table,.mci-freight table{min-width:820px}}
@media(max-width:900px){.app aside{width:min(86vw,320px);padding-left:var(--safe-left);box-shadow:none}.app aside.open{box-shadow:18px 0 45px #00182d66}.main>header{height:62px}.main>header #menu{display:inline-grid;place-items:center;width:44px;height:44px;flex:0 0 44px;padding:0;font-size:0}.main>header #menu:after{content:'☰';font-size:22px}.main>header h2{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.who{gap:7px}.who i{width:34px;height:34px}.hero,.inspecthead{padding:20px}.hero h1,.inspecthead h1{font-size:25px}.hero>div:last-child{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.hero .btn{width:100%}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.formgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.manufacturer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.details{grid-template-columns:repeat(3,minmax(0,1fr))}.toolbar{align-items:stretch}.guided-workspace-nav{top:72px}.guided-tabs{scroll-snap-type:x proximity}.guided-tab{scroll-snap-align:start}.workspace-savebar{bottom:max(8px,var(--safe-bottom))}}
@media(max-width:640px){main{padding:12px 10px calc(18px + var(--safe-bottom))}.main>header{padding:0 10px}.who span,.who>a{display:none}.hero,.inspecthead{border-radius:11px;padding:17px 16px;gap:14px}.hero h1,.inspecthead h1{font-size:22px;line-height:1.15}.hero p,.inspecthead p{font-size:13px;line-height:1.4}.hero>div:last-child{grid-template-columns:1fr 1fr;gap:7px}.hero .btn{min-height:46px;padding:7px 9px;font-size:12px;text-align:center}.stats{gap:9px}.stats>div{padding:14px}.stats b{font-size:26px}.grid,.manufacturer-grid,.equipment-grid,.checklist-grid{grid-template-columns:1fr;padding:10px;gap:9px}.manufacturer-card{min-height:128px}.manufacturer-logo{height:66px}.record{min-height:132px;padding:13px}.formcard form{padding:13px}.formgrid,.details{grid-template-columns:1fr}.wide2{grid-column:auto}.actions{flex-direction:column-reverse;align-items:stretch}.actions .btn,.actions button{width:100%;min-height:46px}.toolbar{flex-direction:column}.toolbar form{width:100%;display:grid;grid-template-columns:1fr auto}.toolbar>.btn{width:100%}.inspecthead{align-items:flex-start;flex-direction:column}.inspecthead>div:last-child{text-align:left;display:flex;gap:10px;align-items:center}.details{gap:0;border-radius:10px}.details>div{display:grid;grid-template-columns:120px 1fr;gap:8px;align-items:center;border-bottom:1px solid var(--line)}.details>div:last-child{border-bottom:0}.details b{margin:0;text-align:right;overflow-wrap:anywhere}.checklist-row{padding:14px 12px}.item-copy{gap:9px}.item-copy strong{font-size:15px}.response-options,.item-comment{margin-left:0}.response-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.response-button{width:100%;min-width:0;min-height:46px}.dot-response-grid{grid-template-columns:1fr!important}.dot-choice{display:grid!important;grid-template-columns:1fr 1fr}.item-comment textarea{min-height:78px}.guided-nav-head{padding:11px 12px}.guided-tabs{padding:8px}.guided-tab{min-width:155px}.guided-controls{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}.guided-control-status{grid-column:1/-1;grid-row:1;text-align:center}.guided-controls button{min-height:46px}.workspace-savebar{position:sticky;display:grid;grid-template-columns:1fr 1fr;padding:11px;gap:8px}.workspace-savebar>div{grid-column:1/-1}.workspace-savebar .btn,.workspace-savebar button{width:100%;min-height:46px}.mci-hero{padding:19px 16px}.mci-hero h1{font-size:25px}.mci-count{min-width:80px;padding:10px}.mci-count b{font-size:25px}.mci-tools,.mci-admin form{padding:13px}.mci-categories{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;scroll-snap-type:x proximity}.mci-categories button{flex:0 0 auto;scroll-snap-align:start;min-height:42px}.mci-validity{font-size:12px}.inspection-danger{margin:0 0 12px}.inspection-danger form,.inspection-danger button{width:100%}.cardhead{padding:14px}.settings>div{gap:15px;align-items:flex-start}.settings>div b{text-align:right;overflow-wrap:anywhere}}
@media(max-width:390px){.hero>div:last-child,.stats,.response-options,.workspace-savebar{grid-template-columns:1fr}.workspace-savebar>div{grid-column:auto}.details>div{grid-template-columns:95px 1fr}.main>header h2{max-width:170px}.hero .btn{font-size:11px}.mci-hero{align-items:flex-start;flex-direction:column}.mci-count{width:100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.app aside,.btn,button,.card,.record,.stats>div,.dynamic-reveal,.dynamic-reveal.is-visible{transition:none!important}.dynamic-reveal{opacity:1;transform:none}}
.record{display:flex;flex-direction:column}.record>a{display:block;flex:1}.record>a>div{display:flex;justify-content:space-between}.record>a>div span{font-size:10px;color:var(--muted)}.record>a>b{display:block;color:var(--blue);font-size:11px;margin-top:11px}.record>a h3{font-size:17px;margin:6px 0}.record>a p,.record>a small{color:var(--muted);font-size:12px}.record:hover{border-color:#9fc4e8;box-shadow:0 6px 16px #0d5a9c18}.record form{margin-top:12px}.record form button{width:100%}.btn.danger{background:#fff1f1;color:#b42318;border-color:#efb3b3}.btn.danger:hover{background:#ffe0e0;border-color:#d64545}


/* CES User Management */
.users-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 26px;margin-bottom:17px;border-radius:14px;background:linear-gradient(115deg,#55309a,#794fd0 58%,#2989d8);color:#fff}.users-hero small{font-weight:900;letter-spacing:1px}.users-hero h1{margin:5px 0;font-size:30px}.users-hero p{margin:0;color:#eee8ff}.users-hero button{background:#fff;color:#5833a0;border-color:#fff}.users-table-card{padding:0}.users-table{min-width:920px}.users-table td:first-child b,.users-table td:first-child small{display:block}.users-table td:first-child small{margin-top:3px;color:var(--muted)}.users-table tr.inactive{opacity:.58;background:#f6f7f8}.user-role,.user-status{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:900}.user-role.admin{background:#eee4ff;color:#6335a4}.user-role.technician{background:#e3f2ff;color:#075e9d}.user-status.active{background:#e5f6ea;color:#14713a}.user-status.disabled{background:#f1f2f3;color:#69747e}.user-dialog{width:min(690px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:0;border:0;border-radius:15px;box-shadow:0 24px 75px #001d3866}.user-dialog::backdrop{background:#001b34b8;backdrop-filter:blur(3px)}.user-dialog form{padding:0}.user-dialog-head{display:flex;justify-content:space-between;align-items:center;padding:20px 22px;background:linear-gradient(110deg,#57339a,#177bc5);color:#fff}.user-dialog-head small{font-size:9px;font-weight:900;letter-spacing:1px}.user-dialog-head h2{margin:3px 0 0}.dialog-close{width:40px;min-height:40px;padding:0;border-color:#ffffff66;background:#ffffff1b;color:#fff;font-size:24px}.user-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px;padding:20px 22px}.user-form-grid label:last-child{grid-column:1/-1}.user-form-grid label small{font-weight:500;color:var(--muted)}.user-access{margin:0 22px 16px;padding:14px;border:1px solid var(--line);border-radius:10px}.user-access legend{padding:0 7px;color:#40566a;font-size:12px;font-weight:900}.user-access>div{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.user-access label,.active-user{flex-direction:row;align-items:center}.user-access input,.active-user input{min-height:0;width:18px;height:18px}.active-user{margin:0 22px}.user-dialog .actions{margin:18px 22px 0;padding-bottom:20px}@media(max-width:640px){.users-hero{align-items:stretch;flex-direction:column;padding:18px}.users-hero h1{font-size:25px}.users-hero button{width:100%}.user-dialog{width:calc(100% - 14px);max-height:calc(100dvh - 14px)}.user-dialog form{max-height:calc(100dvh - 14px);overflow:auto}.user-form-grid{grid-template-columns:1fr;padding:16px}.user-form-grid label:last-child{grid-column:auto}.user-access{margin:0 16px 14px}.user-access>div{grid-template-columns:1fr 1fr}.active-user{margin:0 16px}.user-dialog .actions{margin:16px 16px 0}}


/* CES Portal iPhone/mobile navigation hotfix */
.mobile-menu-shade{display:none}
@media(max-width:900px){
 html.mobile-menu-open,body.mobile-menu-open{overflow:hidden!important;touch-action:none}
 .app aside#side{display:flex!important;position:fixed!important;z-index:1002!important;top:0!important;bottom:0!important;left:0!important;width:min(86vw,340px)!important;max-width:340px!important;transform:translate3d(-105%,0,0)!important;visibility:hidden!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;transition:transform .22s ease,visibility .22s ease!important;padding-bottom:max(18px,env(safe-area-inset-bottom))!important}
 .app aside#side.open{transform:translate3d(0,0,0)!important;visibility:visible!important;box-shadow:20px 0 50px rgba(0,20,40,.38)!important}
 .main>header #menu{display:inline-grid!important;position:relative!important;z-index:1003!important;place-items:center!important;cursor:pointer!important;-webkit-tap-highlight-color:transparent!important}
 .mobile-menu-shade{position:fixed!important;inset:0!important;z-index:1001!important;width:100%!important;height:100%!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:rgba(0,22,42,.62)!important;backdrop-filter:blur(2px)!important;transform:none!important}
 .mobile-menu-shade.open{display:block!important}
 .app aside#side nav{flex:0 0 auto!important;padding-bottom:24px!important}
 .app aside#side nav a{min-height:46px!important;display:flex!important;align-items:center!important;font-size:15px!important}
}



/* Phase 2D practical critical-item colors (web only) */
.critical-marker{display:inline-grid;place-items:center;min-width:28px;height:26px;margin-right:8px;padding:0 6px;border-radius:7px;font-size:15px;font-weight:1000;line-height:1;vertical-align:middle;box-shadow:inset 0 0 0 1px #00000016}
.critical-marker.critical-single{background:#ffe36a;color:#5f4700;border:1px solid #e0b800}
.critical-marker.critical-double{background:#d92d2d;color:#fff;border:1px solid #a81313;box-shadow:0 2px 7px #a8131333}


/* Phase 2E class documents */
.class-document-answer{width:min(100%,760px)}
.class-document-answer input[type=text],.class-document-answer input[type=date],.class-document-answer textarea{width:100%;box-sizing:border-box;border:1px solid #b9cde0;border-radius:9px;padding:12px;font:inherit;background:#fff}
.class-document-answer textarea{resize:vertical;min-height:82px}
.class-document-options{justify-content:flex-start}
.class-doc-note{padding:12px 14px;border-radius:9px;background:#eef7ff;color:#174d78;margin:12px 0}


/* Phase 2E v3 once-per-class/session form cards */
.evaluation-form-picker label.class-session-form {
  background: linear-gradient(135deg,#fff8d9 0%,#ffefad 100%);
  border: 2px solid #d69e00;
  box-shadow: 0 4px 12px rgba(160,110,0,.16);
}
.evaluation-form-picker label.class-session-form:hover {
  background: linear-gradient(135deg,#fff3bd 0%,#ffe58a 100%);
  border-color: #b77900;
  box-shadow: 0 6px 16px rgba(160,110,0,.24);
  transform: translateY(-1px);
}
.evaluation-form-picker label.class-session-form b {
  color: #704800;
}
.evaluation-form-picker label.class-session-form small {
  color: #8a5900;
  font-weight: 800;
}
.evaluation-form-picker label.class-session-form input[type="checkbox"] {
  accent-color: #c78400;
}
.evaluation-form-picker label.class-session-form:has(input:checked) {
  background: linear-gradient(135deg,#ffe792 0%,#ffd35a 100%);
  border-color: #995f00;
  box-shadow: 0 0 0 3px rgba(214,158,0,.20),0 6px 16px rgba(160,110,0,.22);
}
@media (prefers-reduced-motion:reduce) {
  .evaluation-form-picker label.class-session-form:hover {transform:none}
}


/* Phase 2E v5 form colors and legend */
.phase2e-form-legend{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:8px 0 16px;padding:12px;background:#f5f8fb;border:1px solid #cbdbea;border-radius:12px}
.phase2e-form-legend span{display:grid;grid-template-columns:18px 1fr;column-gap:8px;align-items:center;color:#253b50}
.phase2e-form-legend i{grid-row:1/3;width:16px;height:16px;border-radius:5px;display:block}
.phase2e-form-legend b{font-size:13px;line-height:1.2}
.phase2e-form-legend small{font-size:11px;color:#65788a;line-height:1.25}
.phase2e-form-legend .legend-gold{background:#ffe18a;border:2px solid #c88900}
.phase2e-form-legend .legend-blue{background:#cde8ff;border:2px solid #1769aa}
.phase2e-form-legend .legend-white{background:#fff;border:2px solid #aebfce}

.evaluation-form-picker label.class-only-form,
.evaluation-form-picker label.class-only-form:hover{background:linear-gradient(135deg,#fff6c7 0%,#ffe48a 100%);border:2px solid #c88900;box-shadow:0 4px 12px rgba(160,110,0,.18)}
.evaluation-form-picker label.class-only-form b{color:#6f4700}
.evaluation-form-picker label.class-only-form small{color:#895900;font-weight:800}
.evaluation-form-picker label.class-only-form input[type="checkbox"]{accent-color:#c78400}
.evaluation-form-picker label.class-only-form:has(input:checked){background:linear-gradient(135deg,#ffe792 0%,#ffd35a 100%);border-color:#995f00;box-shadow:0 0 0 3px rgba(214,158,0,.20)}

.evaluation-form-picker label.optional-session-form,
.evaluation-form-picker label.optional-session-form:hover{background:linear-gradient(135deg,#edf7ff 0%,#cde8ff 100%);border:2px solid #5a9fd3;box-shadow:none;transform:none}
.evaluation-form-picker label.optional-session-form b{color:#174f7c}
.evaluation-form-picker label.optional-session-form small{color:#477797;font-weight:700}
.evaluation-form-picker label.optional-session-form input[type="checkbox"]{accent-color:#1769aa}
.evaluation-form-picker label.optional-session-form:has(input:checked){background:linear-gradient(135deg,#cdeaff 0%,#a9d6f7 100%);border-color:#1769aa;box-shadow:0 0 0 3px rgba(23,105,170,.14)}

.evaluation-form-picker label.student-form{background:#fff;border:1px solid #cad8e5}
@media(max-width:760px){.phase2e-form-legend{grid-template-columns:1fr}}


/* Phase 2E v6 per-student practical details */
.student-picker-note{margin:0 0 14px;color:#5b6f82}
.student-picker .student-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px;margin-bottom:14px;border:2px solid #bdd2e5;border-radius:14px;background:#f7fbff;align-items:end}
.student-picker .student-row-title{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;padding-bottom:8px;border-bottom:1px solid #d4e2ee}
.student-picker .student-row-title b{font-size:17px;color:#155a92}
.student-picker .student-row-title .remove-student{height:auto}
.student-picker .student-row label{margin:0}
@media(max-width:900px){.student-picker .student-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.student-picker .student-row{grid-template-columns:1fr}}


/* Phase 2E v7 equipment per student and practical form */
.student-picker-note{margin:0 0 14px;color:#5b6f82}
.student-picker .student-row{display:grid;grid-template-columns:2fr 1fr;gap:12px;padding:16px;margin-bottom:16px;border:2px solid #b9d0e4;border-radius:14px;background:#f7fbff;align-items:end}
.student-picker .student-row-title,.student-picker .student-form-details{grid-column:1/-1}
.student-picker .student-row-title{display:flex;align-items:center;justify-content:space-between;padding-bottom:8px;border-bottom:1px solid #d4e2ee}
.student-picker .student-row-title b{font-size:17px;color:#155a92}.student-picker .student-row-title .remove-student{height:auto}
.student-form-empty{padding:13px;border:1px dashed #9eb6ca;border-radius:9px;color:#61798d;background:#fff}
.student-practical-card{margin-top:12px;border:2px solid #6da8d3;border-radius:12px;overflow:hidden;background:#fff}
.student-practical-card h4{margin:0;padding:10px 12px;background:#e2f2ff;color:#174f7c;font-size:15px}
.student-practical-card>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px}.student-practical-card label{margin:0}
@media(max-width:900px){.student-practical-card>div{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.student-picker .student-row,.student-practical-card>div{grid-template-columns:1fr}}


/* Sidebar SVG icons v11 */
#side nav a{display:flex;align-items:center;gap:11px;position:relative;overflow:hidden}
.nav-icon-v11{width:29px;height:29px;flex:0 0 29px;display:grid;place-items:center;border-radius:9px;color:#fff;background:linear-gradient(145deg,#4e91ca,#1d5f9c);box-shadow:inset 0 1px 0 rgba(255,255,255,.32),0 4px 10px rgba(0,0,0,.20);transition:transform .2s ease,box-shadow .2s ease,filter .2s ease}
.nav-icon-v11 svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.nav-label-v11{min-width:0;line-height:1.15}
#side nav a:hover .nav-icon-v11{transform:translateY(-1px) scale(1.07);filter:saturate(1.15);box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 6px 14px rgba(0,0,0,.28)}
#side nav a.on .nav-icon-v11{transform:scale(1.08);box-shadow:0 0 0 3px rgba(255,255,255,.18),0 6px 16px rgba(0,0,0,.28)}
#side nav a[data-nav-icon="dashboard"] .nav-icon-v11{background:linear-gradient(145deg,#38a5ff,#0968d7)}
#side nav a[data-nav-icon="ami"] .nav-icon-v11{background:linear-gradient(145deg,#35d786,#079b56)}
#side nav a[data-nav-icon="pm"] .nav-icon-v11{background:linear-gradient(145deg,#ffad43,#ee6e08)}
#side nav a[data-nav-icon="dot"] .nav-icon-v11{background:linear-gradient(145deg,#34c9e7,#0885b5)}
#side nav a[data-nav-icon="evaluation"] .nav-icon-v11{background:linear-gradient(145deg,#c56cff,#7435d5)}
#side nav a[data-nav-icon="diagnostics"] .nav-icon-v11{background:linear-gradient(145deg,#ff5b99,#cc276b)}
#side nav a[data-nav-icon="mci"] .nav-icon-v11{background:linear-gradient(145deg,#64748b,#26364b)}
#side nav a[data-nav-icon="markup"] .nav-icon-v11{background:linear-gradient(145deg,#ffd95a,#e4a900);color:#3b2b00}
#side nav a[data-nav-icon="follow"] .nav-icon-v11{background:linear-gradient(145deg,#ff706b,#d73535)}
#side nav a[data-nav-icon="reports"] .nav-icon-v11{background:linear-gradient(145deg,#36d6c5,#089a91)}
#side nav a[data-nav-icon="library"] .nav-icon-v11{background:linear-gradient(145deg,#91a8ff,#536cdb)}
#side nav a[data-nav-icon="users"] .nav-icon-v11{background:linear-gradient(145deg,#d875ee,#8d35ba)}
#side nav a[data-nav-icon="settings"] .nav-icon-v11{background:linear-gradient(145deg,#a9bed1,#59758c)}
@media(prefers-reduced-motion:reduce){.nav-icon-v11{transition:none!important}}


/* CES Dashboard visual refresh v14 */
.dashboard-page, .page-dashboard, body.dashboard {
  background: #eef3f8;
}
.dashboard-page .card, .page-dashboard .card {
  border-color: #d6e1ec;
  box-shadow: 0 8px 24px rgba(10, 43, 78, .08);
}
.dashboard-page .hero, .page-dashboard .hero, .dashboard-hero {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 14px 32px rgba(5, 48, 94, .18);
  overflow: hidden;
}
.dashboard-page .grid, .page-dashboard .grid, .dashboard-grid {
  gap: 16px;
}
.dashboard-page .record, .page-dashboard .record, .dashboard-tile,
.dashboard-page .module-card, .page-dashboard .module-card {
  border: 1px solid #d6e1ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(10,43,78,.07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.dashboard-page .record:hover, .page-dashboard .record:hover, .dashboard-tile:hover,
.dashboard-page .module-card:hover, .page-dashboard .module-card:hover {
  transform: translateY(-3px);
  border-color: #2d83d7;
  box-shadow: 0 12px 24px rgba(10,72,130,.14);
}
.dashboard-page .record h3, .page-dashboard .record h3,
.dashboard-tile h3, .dashboard-page .module-card h3 { color: #0b2f55; }
@media (max-width: 760px) {
  .dashboard-page .grid, .page-dashboard .grid, .dashboard-grid { gap: 10px; }
  .dashboard-page .record, .page-dashboard .record, .dashboard-tile { border-radius: 11px; }
}


/* CES Dashboard visual refresh v15 */
.toolbox-hero {
  border-radius: 18px;
  padding: 28px 32px;
  background: linear-gradient(115deg,#084b91 0%,#086bc2 58%,#147ed2 100%);
  box-shadow: 0 14px 30px rgba(4,48,94,.18);
  border: 1px solid rgba(255,255,255,.25);
}
.hero-ces-logo { border-radius: 12px; box-shadow: 0 8px 18px rgba(0,0,0,.12); }
.toolbox-hero h1 { letter-spacing: -.025em; text-shadow: 0 2px 8px rgba(0,0,0,.16); }
.toolbox-actions { gap: 10px; }
.tool-card {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 7px 16px rgba(0,0,0,.12);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.tool-card:hover { transform: translateY(-3px); filter: brightness(1.06); box-shadow: 0 12px 22px rgba(0,0,0,.2); }
.tool-card i { border-radius: 11px; }
.stats { gap: 14px; margin: 16px 0; }
.stats > div { border-radius: 14px; border: 1px solid #d7e2ed; box-shadow: 0 5px 15px rgba(12,55,94,.07); }
.stats > div b { font-size: 30px; }
.card { border-radius: 14px; border-color: #d7e2ed; box-shadow: 0 6px 18px rgba(12,55,94,.07); }
.cardhead { background: linear-gradient(180deg,#fff,#f8fbfe); }
@media (max-width:760px) {
 .toolbox-hero { padding: 20px; border-radius: 13px; }
 .stats { gap: 9px; }
 .stats > div { border-radius: 11px; }
}


/* CES responsive dynamic dashboard v17 */
.toolbox-hero { display:grid; grid-template-columns:minmax(260px,1fr) minmax(420px,1.15fr); align-items:center; gap:24px; }
.toolbox-actions { display:grid; grid-template-columns:repeat(4,minmax(120px,1fr)); gap:10px; }
.tool-card { min-width:0; }
.tool-card span { min-width:0; }
.tool-card b,.tool-card small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.stats { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
.card table { width:100%; }
@media (max-width:1100px) {
 .toolbox-hero { grid-template-columns:1fr; }
 .toolbox-actions { grid-template-columns:repeat(4,minmax(110px,1fr)); }
}
@media (max-width:760px) {
 .toolbox-hero { padding:20px; gap:18px; }
 .toolbox-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .stats { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .card { overflow-x:auto; }
 .card table { min-width:650px; }
}
@media (max-width:430px) {
 .toolbox-actions,.stats { grid-template-columns:1fr; }
 .tool-card { min-height:54px; }
}


/* Risk Assessment reference lists v19 */
.risk-reference-card{border:1px solid #c6d9eb;overflow:hidden}
.risk-reference-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
.risk-reference-grid>div{padding:16px 20px;border-right:1px solid #dbe6ef}
.risk-reference-grid>div:last-child{border-right:0}
.risk-reference-grid h4{margin:0 0 10px;color:#0b579d;font-size:15px}
.risk-reference-grid ul,.risk-reference-grid ol{margin:0;padding-left:20px;columns:2;column-gap:24px;font-size:12px;line-height:1.55}
.risk-reference-grid li{break-inside:avoid;margin-bottom:2px}
.risk-hierarchy{padding:13px 20px;background:#fff5cf;border-top:1px solid #e8d587;color:#604b00;font-size:13px}
.class-document-answer input[list]{width:min(100%,760px);background:#fff}
@media(max-width:1000px){.risk-reference-grid{grid-template-columns:1fr}.risk-reference-grid>div{border-right:0;border-bottom:1px solid #dbe6ef}.risk-reference-grid>div:last-child{border-bottom:0}.risk-reference-grid ul,.risk-reference-grid ol{columns:2}}
@media(max-width:560px){.risk-reference-grid ul,.risk-reference-grid ol{columns:1}.risk-reference-grid>div{padding:14px}.risk-hierarchy{padding:12px 14px}}


/* Risk Assessment per-unit completion v27 */
.risk-unit-picker{margin:18px 0;padding:16px;border:2px solid #d69b00;border-radius:12px;background:#fff9e8}
.risk-unit-picker>p{margin:0 0 12px;color:#654c00}
.risk-unit-row{padding:14px;margin:10px 0;border:1px solid #e4c568;border-radius:10px;background:#fff}
.risk-unit-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.risk-unit-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.risk-unit-fields label{margin:0}
@media(max-width:900px){.risk-unit-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.risk-unit-fields{grid-template-columns:1fr}.risk-unit-title{align-items:flex-start;gap:10px}}


/* Risk Assessment multi-select v39 */
.risk-multi-select {
 position:relative;
 width:100%;
 max-width:900px;
}

.risk-multi-toggle {
 width:100%;
 min-height:46px;
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:12px;
 padding:10px 14px;
 border:1px solid #b9d1e8;
 border-radius:9px;
 background:#fff;
 color:#52677b;
 text-align:left;
 cursor:pointer;
}

.risk-multi-select.has-selections .risk-multi-toggle {
 border-color:#1374ce;
 background:#eef7ff;
 color:#07569d;
 font-weight:800;
}

.risk-multi-toggle b {
 font-size:20px;
 color:#0968bd;
}

.risk-multi-menu {
 margin-top:7px;
 padding:10px;
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:7px;
 border:1px solid #b9d1e8;
 border-radius:10px;
 background:#f7fbff;
 box-shadow:0 10px 24px rgba(14,55,91,.12);
}

.risk-multi-menu[hidden] {
 display:none;
}

.risk-multi-menu label {
 min-height:42px;
 margin:0;
 padding:8px 10px;
 display:flex;
 align-items:center;
 gap:9px;
 border:1px solid #d3e1ee;
 border-radius:8px;
 background:#fff;
 cursor:pointer;
 font-weight:700;
}

.risk-multi-menu label:has(input:checked) {
 border-color:#1475ce;
 background:#dceeff;
 color:#07569d;
 box-shadow:inset 3px 0 #1475ce;
}

.risk-multi-menu input {
 width:18px;
 height:18px;
 flex:0 0 auto;
 accent-color:#1475ce;
}

@media(max-width:760px) {
 .risk-multi-menu {
  grid-template-columns:1fr;
 }
}

/* Risk Assessment Hazard Clear button v51.2 */
.risk-hazard-entry {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 8px;
    align-items: stretch;
}

.risk-hazard-entry .risk-hazard-input {
    min-width: 0;
}

.risk-hazard-entry .risk-hazard-clear {
    width: auto;
    min-width: 82px;
    padding: 0 16px;
    border: 1px solid #d44;
    border-radius: 9px;
    background: #fff;
    color: #b42318;
    font-weight: 700;
    cursor: pointer;
}

.risk-hazard-entry .risk-hazard-clear:hover {
    background: #fff1f0;
}

@media (max-width: 600px) {
    .risk-hazard-entry {
        grid-template-columns: 1fr;
    }

    .risk-hazard-entry .risk-hazard-clear {
        min-height: 42px;
    }
}

/* Typed signature interface v52 */
.signature-method-options {
    display: grid;
    grid-template-columns: repeat(3,minmax(170px,1fr));
    gap: 10px;
}

.signature-type-panel {
    margin-top: 12px;
}

.typed-signature-preview {
    width: 100%;
    min-height: 82px;
    height: 82px;
    margin-top: 8px;
    padding: 2px 14px;
    overflow: hidden;
    border: 2px solid #bfd1e2;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transform: none !important;
    text-shadow: none;
}

.typed-signature-preview .typed-signature-image {
    display: block;
    width: auto;
    max-width: 88%;
    height: 72px;
    max-height: 72px;
    object-fit: contain;
    object-position: left center;
}

@media (max-width:760px) {
    .signature-method-options {
        grid-template-columns: 1fr;
    }
}


/* United Rentals AMI repair completion panel v57.4 */
.ur-followup-repair-card{border-top:4px solid #d99b00}
.ur-followup-repair-list{display:grid;gap:10px}
.ur-followup-repair-row{display:grid;grid-template-columns:46px minmax(220px,1fr) 120px 130px;gap:12px;align-items:center;padding:12px;border:1px solid #ccd8e5;border-radius:10px;background:#fff}
.ur-followup-repair-row>b{font-size:18px;color:#12304a;text-align:center}
.ur-followup-repair-row.is-repaired{background:#e6f6eb;border-color:#28a660}
.ur-repair-check{display:flex;align-items:center;gap:8px;margin:0}
.ur-repair-check input{width:24px;height:24px}
.ur-repair-initials{margin:0;font-size:12px;font-weight:700}
.ur-repair-initials input{margin-top:4px;text-transform:uppercase;font-size:16px;font-weight:800}
@media(max-width:760px){.ur-followup-repair-row{grid-template-columns:40px 1fr}.ur-repair-check,.ur-repair-initials{grid-column:2}}


/* T360_COMPACT_SIGNATURE_REVIEW_V65 */
.review-card .sign-form {
    padding: 16px 20px 18px;
}
.review-card .sign-form > h3 {
    margin: 12px 0 8px;
}
.review-card .result-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 420px;
    margin-bottom: 14px;
}
.review-card .result-toggle input[type="radio"],
.review-card .signature-method-options input[type="radio"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none;
}
.review-card .result-toggle .response-button {
    min-width: 86px;
    min-height: 42px;
    padding: 9px 16px;
}
.review-card .signature-method-options {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 8px;
    width: 100%;
    max-width: 760px;
    margin: 0 0 12px;
}
.review-card .signature-method-options .response-button {
    min-height: 42px;
    padding: 9px 12px;
    font-size: 13px;
    line-height: 1.2;
}
.review-card .signature-method-options input[type="radio"]:checked + .response-button {
    color: #fff;
    border-color: #0877d1;
    background: #0877d1;
    box-shadow: 0 0 0 2px rgba(8,119,209,.14);
}
.review-card .sign-form > label,
.review-card #electronicArea {
    display: block;
    width: 100%;
    max-width: 760px;
}
.review-card #electronicArea canvas,
.review-card #sigpad {
    display: block;
    width: 100% !important;
    max-width: 760px;
    height: 140px !important;
    margin-top: 6px;
    border: 2px solid #bfd1e2;
    border-radius: 9px;
    background: #fff;
    touch-action: none;
}
.review-card #clearSig,
.review-card [data-signature-draw] button[type="button"] {
    min-height: 38px;
    margin-top: 6px;
    padding: 7px 13px;
}
.review-card .typed-signature-preview {
    min-height: 82px;
    height: 82px;
    padding: 2px 14px;
}
.review-card .actions {
    margin-top: 16px;
}
@media (max-width:760px) {
    .review-card .sign-form {
        padding: 12px;
    }
    .review-card .signature-method-options {
        grid-template-columns: 1fr;
    }
    .review-card #electronicArea canvas,
    .review-card #sigpad {
        height: 125px !important;
    }
}


/* CES realistic typed signature */
.typed-signature-preview {
    height: 82px !important;
    min-height: 82px !important;
    padding: 3px 12px !important;
    transform: none !important;
}

.typed-signature-preview .typed-signature-image {
    display: block;
    width: auto;
    height: 72px !important;
    max-height: 72px !important;
    max-width: 95% !important;
    object-fit: contain;
    object-position: left center;
}


/* CES follow-up repair completion v60 */
.repair-completion-panel{
    margin:18px 0 20px;
    border:1px solid #d3dee8;
    border-radius:10px;
    overflow:hidden;
    background:#fff;
}

.repair-completion-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:14px 16px;
    background:#f4f8fc;
    border-bottom:1px solid #d3dee8;
}

.repair-completion-head h3{
    margin:0 0 3px;
}

.repair-completion-head p{
    margin:0;
    color:#647487;
    font-size:12px;
}

.repair-count{
    flex:0 0 auto;
    padding:5px 9px;
    border-radius:999px;
    background:#e7eef6;
    color:#34495e;
    font-size:11px;
    font-weight:800;
}

.repair-table{
    width:100%;
}

.repair-row{
    display:grid;
    grid-template-columns:65px minmax(250px,1fr) 125px 120px;
    align-items:center;
    min-height:52px;
    border-bottom:1px solid #e0e7ee;
}

.repair-row:last-child{
    border-bottom:0;
}

.repair-row > div{
    padding:9px 11px;
}

.repair-header{
    min-height:36px;
    background:#0b365b;
    color:#fff;
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.25px;
}

.repair-item-number{
    text-align:center;
    font-weight:900;
    font-size:14px;
}

.repair-description{
    font-size:13px;
    line-height:1.35;
}

.repair-check label{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    cursor:pointer;
    font-size:12px;
    font-weight:800;
}

.repair-check input[type="checkbox"]{
    width:19px;
    height:19px;
    accent-color:#168447;
}

.repair-initials{
    width:100% !important;
    min-height:38px !important;
    padding:7px 9px !important;
    text-transform:uppercase;
    text-align:center;
    font-weight:900;
}

.repair-done{
    background:#f2fbf5;
}

.repair-open{
    background:#fffaf3;
}

.repair-gate-message{
    padding:9px 14px;
    border-top:1px solid #d3dee8;
    background:#fff4df;
    color:#79520c;
    font-size:12px;
    font-weight:700;
}

@media(max-width:760px){
    .repair-row{
        grid-template-columns:48px minmax(130px,1fr) 92px 82px;
    }

    .repair-row > div{
        padding:7px 5px;
    }

    .repair-description{
        font-size:11px;
    }

    .repair-check label span{
        display:none;
    }
}

/* CES DIAGNOSTICS AI - PHASE 1B TROUBLE CODES */
.diag-fault-card{margin-top:18px;overflow:hidden}
.diag-section-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border-bottom:1px solid var(--line);background:linear-gradient(120deg,#f7fbff,#edf6ff)}
.diag-section-head small{display:block;color:#0870c9;font-size:9px;font-weight:900;letter-spacing:.13em}
.diag-section-head h2{margin:3px 0 2px;font-size:22px}
.diag-section-head p{margin:0;color:var(--muted);font-size:12px}
.diag-code-count{white-space:nowrap;border-radius:999px;padding:7px 11px;background:#075cad;color:#fff;font-size:10px;font-weight:900;letter-spacing:.08em}

.diag-fault-list{display:flex;flex-direction:column}
.diag-fault-row{display:grid;grid-template-columns:150px 1fr auto;gap:16px;align-items:center;padding:15px 18px;border-bottom:1px solid var(--line)}
.diag-fault-row:last-child{border-bottom:0}
.diag-fault-code small{display:block;color:var(--muted);font-size:8px;font-weight:900;letter-spacing:.11em}
.diag-fault-code strong{display:block;margin-top:3px;font-size:24px;color:#073b67}
.diag-fault-meta{display:flex;align-items:center;gap:10px}
.diag-fault-meta b{font-size:12px}
.diag-fault-info p{margin:6px 0 0;font-size:13px}
.diag-tech-note{display:block;margin-top:6px;color:#5c6976;white-space:pre-wrap}

.diag-status{display:inline-block;border-radius:999px;padding:4px 8px;font-size:9px;font-weight:900;letter-spacing:.06em}
.diag-status.active{background:#fde7e7;color:#b21f1f}
.diag-status.inactive{background:#e7f5eb;color:#16733a}
.diag-status.history{background:#fff1c7;color:#795500}
.diag-status.unknown{background:#e9eef3;color:#52616e}

.diag-fault-delete button{background:#fff;border:1px solid #e3b7b7;color:#aa2424;border-radius:7px;padding:7px 10px;font-weight:800;cursor:pointer}
.diag-fault-delete button:hover{background:#fff1f1}

.diag-fault-empty{padding:22px;text-align:center;color:var(--muted)}
.diag-fault-empty b,.diag-fault-empty span{display:block}
.diag-fault-empty b{color:var(--text);margin-bottom:3px}

.diag-fault-add{display:grid;grid-template-columns:1fr 1fr 180px;gap:13px;padding:18px 20px;border-top:1px solid var(--line);background:#fbfdff}
.diag-fault-add label{font-size:10px;font-weight:900;color:#44515d}
.diag-fault-add input,.diag-fault-add select,.diag-fault-add textarea{display:block;width:100%;margin-top:5px;border:1px solid #c9d4df;border-radius:7px;padding:9px 10px;background:#fff;font:inherit}
.diag-fault-wide{grid-column:span 3}
.diag-fault-submit{grid-column:span 3;display:flex;justify-content:flex-end}

@media(max-width:800px){
 .diag-fault-row{grid-template-columns:110px 1fr}
 .diag-fault-delete{grid-column:span 2}
 .diag-fault-add{grid-template-columns:1fr 1fr}
 .diag-fault-wide,.diag-fault-submit{grid-column:span 2}
}

@media(max-width:560px){
 .diag-section-head{align-items:flex-start;flex-direction:column}
 .diag-fault-row{grid-template-columns:1fr}
 .diag-fault-delete{grid-column:auto}
 .diag-fault-add{grid-template-columns:1fr}
 .diag-fault-wide,.diag-fault-submit{grid-column:auto}
 .diag-fault-submit button{width:100%}
}

/* CES DIAGNOSTICS - CODE PHOTO UPLOAD */
.diag-photo-section{border-top:1px solid var(--line);margin-top:4px}
.diag-photo-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 20px;background:#f7fafc}
.diag-photo-head small{display:block;color:#0870c9;font-size:9px;font-weight:900;letter-spacing:.12em}
.diag-photo-head h3{margin:3px 0;font-size:19px}
.diag-photo-head p{margin:0;color:var(--muted);font-size:12px}
.diag-photo-head>span{background:#e8f3fd;color:#075cad;border-radius:999px;padding:6px 9px;font-size:9px;font-weight:900}

.diag-photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:0 20px 18px}
.diag-photo-item{border:1px solid var(--line);border-radius:9px;background:#fff;overflow:hidden}
.diag-photo-image{display:block;height:175px;background:#e9eef3}
.diag-photo-image img{display:block;width:100%;height:100%;object-fit:cover}
.diag-photo-info{padding:10px 11px}
.diag-photo-info b,.diag-photo-info small{display:block}
.diag-photo-info small{margin-top:3px;color:var(--muted);font-size:9px}
.diag-analysis-status{display:inline-block;margin-top:7px;border-radius:999px;padding:4px 7px;background:#e9eef3;color:#52616e;font-size:8px;font-weight:900;letter-spacing:.05em}
.diag-analysis-status.completed{background:#e7f5eb;color:#16733a}
.diag-analysis-status.pending{background:#fff1c7;color:#795500}
.diag-analysis-status.failed{background:#fde7e7;color:#b21f1f}

.diag-photo-delete{padding:0 11px 11px}
.diag-photo-delete button{border:1px solid #e3b7b7;background:#fff;color:#aa2424;border-radius:7px;padding:6px 9px;font-weight:800;cursor:pointer}

.diag-photo-upload{display:grid;grid-template-columns:1fr 1.5fr auto;gap:12px;align-items:end;padding:18px 20px;background:#fbfdff;border-top:1px solid var(--line)}
.diag-photo-upload label{font-size:10px;font-weight:900;color:#44515d}
.diag-photo-upload input{display:block;width:100%;margin-top:5px;border:1px solid #c9d4df;border-radius:7px;padding:9px 10px;background:#fff;font:inherit}
.diag-photo-upload button{min-height:39px}
.diag-photo-help{margin:0;padding:0 20px 16px;color:var(--muted);font-size:10px;background:#fbfdff}

@media(max-width:900px){
 .diag-photo-grid{grid-template-columns:repeat(2,1fr)}
 .diag-photo-upload{grid-template-columns:1fr 1fr}
 .diag-photo-upload button{grid-column:span 2}
}

@media(max-width:560px){
 .diag-photo-head{align-items:flex-start;flex-direction:column}
 .diag-photo-grid{grid-template-columns:1fr}
 .diag-photo-upload{grid-template-columns:1fr}
 .diag-photo-upload button{grid-column:auto;width:100%}
}

/* CES DIAGNOSTICS - SKYJACK SERVICE INFORMATION */
.diag-service-card{margin-top:18px;overflow:hidden}
.diag-service-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border-bottom:1px solid var(--line);background:linear-gradient(120deg,#f7fbff,#eef8f2)}
.diag-service-head small{display:block;color:#0870c9;font-size:9px;font-weight:900;letter-spacing:.13em}
.diag-service-head h2{margin:3px 0 2px;font-size:22px}
.diag-service-head p{margin:0;color:var(--muted);font-size:12px}

.diag-service-source{white-space:nowrap;border-radius:999px;padding:7px 11px;background:#14783d;color:#fff;font-size:9px;font-weight:900;letter-spacing:.07em}
.diag-service-source.neutral{background:#697887}

.diag-machine-match{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:0;background:#fbfdff;border-bottom:1px solid var(--line)}
.diag-machine-match>div{padding:13px 18px;border-right:1px solid var(--line)}
.diag-machine-match>div:last-child{border-right:0}
.diag-machine-match small{display:block;color:var(--muted);font-size:8px;font-weight:900;letter-spacing:.1em}
.diag-machine-match strong{display:block;margin-top:3px;font-size:13px;color:#173d5d}

.diag-service-list{display:flex;flex-direction:column}
.diag-service-row{display:grid;grid-template-columns:180px 220px 1fr minmax(250px,auto);gap:14px;align-items:center;padding:14px 18px;border-bottom:1px solid var(--line)}
.diag-service-row:last-child{border-bottom:0}

.diag-service-type span{display:block;color:#0870c9;font-size:9px;font-weight:900;letter-spacing:.08em}
.diag-service-type strong{display:block;margin-top:3px;font-size:14px}

.diag-service-range small{display:block;color:var(--muted);font-size:8px;font-weight:900}
.diag-service-range b{display:block;margin-top:2px;font-size:12px}
.diag-service-range em{display:block;margin-top:3px;color:var(--muted);font-size:9px;font-style:normal}

.diag-service-tags{display:flex;gap:9px;flex-wrap:wrap}
.diag-service-tags span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:34px;
    padding:7px 14px;
    border-radius:999px;
    background:#e7f3fb;
    color:#16618e;
    font-size:13px;
    font-weight:900;
    letter-spacing:.15px;
}

.diag-service-actions{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.diag-service-actions .btn{padding:7px 9px;font-size:10px}

.diag-service-empty{padding:24px 20px;text-align:center;color:var(--muted)}
.diag-service-empty b,.diag-service-empty span{display:block}
.diag-service-empty b{color:var(--text);margin-bottom:4px}

.diag-service-warning{padding:10px 18px;background:#fff4df;border-bottom:1px solid #efd8aa;color:#78530c;font-size:11px;font-weight:700}

@media(max-width:1000px){
 .diag-service-row{grid-template-columns:160px 180px 1fr}
 .diag-service-actions{grid-column:span 3;justify-content:flex-start}
}

@media(max-width:700px){
 .diag-service-head{align-items:flex-start;flex-direction:column}
 .diag-machine-match{grid-template-columns:1fr}
 .diag-machine-match>div{border-right:0;border-bottom:1px solid var(--line)}
 .diag-service-row{grid-template-columns:1fr}
 .diag-service-actions{grid-column:auto;justify-content:flex-start}
}

/* =====================================================================
   CES TOOLBOX PORTAL v3.01
   TARGET PREVIEW LAYOUT
   ===================================================================== */

:root{
 --v301-bg:#031422;
 --v301-panel:#071c2d;
 --v301-panel2:#092238;
 --v301-line:#24445e;
 --v301-blue:#0588e8;
}

/* -------------------------------------------------------
   PAGE SHELL
   ------------------------------------------------------- */

html,
body{
 background:var(--v301-bg);
}

.app{
 min-height:100vh;
 background:var(--v301-bg);
}

.app aside{
 width:270px;
 background:
   radial-gradient(circle at 20% 15%,rgba(0,116,205,.13),transparent 26%),
   linear-gradient(180deg,#061a2b 0%,#020e19 100%);
 border-right:1px solid #18364e;
 box-shadow:8px 0 28px rgba(0,0,0,.28);
}

.main{
 margin-left:270px;
 min-height:100vh;
 background:
   radial-gradient(circle at 72% 5%,rgba(0,112,205,.08),transparent 30%),
   linear-gradient(135deg,#031321,#061827);
}

/* -------------------------------------------------------
   HEADER
   ------------------------------------------------------- */

.main>header{
 height:88px;
 padding:0 30px;
 background:#020d18;
 border-bottom:1px solid #19364e;
 color:#fff;
 box-shadow:0 5px 20px rgba(0,0,0,.24);
}

.main>header h2{
 margin:0;
 font-size:25px;
 font-weight:900;
 color:#fff;
}

.who b{
 color:#fff;
 font-size:14px;
}

.who small,
.who>a{
 color:#9cafc0;
}

.who i{
 width:40px;
 height:40px;
 background:#087cd3;
 color:#fff;
}

/* -------------------------------------------------------
   SIDEBAR BRAND
   ------------------------------------------------------- */

.brand.full-brand-logo{
 height:96px;
 padding:17px 22px;
 background:#020d18;
 border-bottom:1px solid #19364e;
 justify-content:center;
}

.brand.full-brand-logo img{
 display:block;
 width:100%;
 max-width:220px;
 height:60px;
 object-fit:contain;

 /* white logo treatment for dark sidebar */
 filter:grayscale(1) brightness(0) invert(1);
 opacity:.96;
}

/* -------------------------------------------------------
   SIDEBAR NAV
   ------------------------------------------------------- */

nav{
 padding:13px 12px 18px;
}

nav small{
 padding:15px 9px 7px;
 color:#8098ac;
 opacity:1;
 font-size:9px;
 letter-spacing:.14em;
}

nav a{
 min-height:43px;
 margin:2px 0;
 padding:8px 10px;
 border-radius:7px;
 color:#fff;
 font-size:13px;
 font-weight:750;
 display:flex;
 align-items:center;
 transition:.15s ease;
}

nav a:hover{
 background:#0b2b46;
 transform:translateX(2px);
}

nav a.on{
 background:linear-gradient(90deg,#075baa,#087bd9);
 box-shadow:
   inset 3px 0 #35b5ff,
   0 5px 12px rgba(0,91,175,.30);
}

.navico{
 width:31px!important;
 height:31px!important;
 min-width:31px!important;
 margin-right:10px!important;
 border-radius:8px!important;
 display:inline-grid!important;
 place-items:center!important;
 font-size:11px!important;
 line-height:1!important;
 box-shadow:
   inset 0 0 0 1px rgba(255,255,255,.20),
   0 3px 9px rgba(0,0,0,.24);
}

/* -------------------------------------------------------
   MAIN DASHBOARD WIDTH
   ------------------------------------------------------- */

.main main{
 width:100%;
 max-width:1450px;
 margin:0 auto;
 padding:22px 24px 34px;
}

/* -------------------------------------------------------
   HERO
   ------------------------------------------------------- */

.toolbox-v3{
 min-height:272px;
 margin:0 0 18px;
 padding:26px 28px;

 display:grid!important;
 grid-template-columns:430px minmax(0,1fr);
 align-items:center;
 gap:32px;

 color:#fff;

 background:
   radial-gradient(circle at 17% 45%,rgba(0,132,225,.16),transparent 27%),
   radial-gradient(circle at 78% 18%,rgba(0,111,204,.12),transparent 30%),
   linear-gradient(125deg,#062440 0%,#063154 45%,#051928 100%);

 border:1px solid #0874ba;
 border-radius:17px;

 box-shadow:
   inset 0 0 42px rgba(0,106,190,.08),
   0 13px 30px rgba(0,0,0,.25);
}

.toolbox-v3>div:first-child{
 min-width:0!important;
 width:100%;
 max-width:430px;
}

/* Hero United Rentals CES branding */
.toolbox-v3 .hero-ces-logo{
 width:235px;
 height:76px;
 min-height:76px;
 margin:0 0 13px;
 padding:9px 14px;

 display:flex;
 align-items:center;
 justify-content:center;

 background:#fff!important;
 border:0!important;
 border-radius:9px;

 box-shadow:0 7px 20px rgba(0,0,0,.30);
}

.toolbox-v3 .hero-ces-logo img{
 display:block;
 width:100%;
 height:56px;
 object-fit:contain;
 background:#fff;
}

.toolbox-v3 h1{
 margin:0 0 7px;
 color:#fff;
 font-size:31px;
 line-height:1.05;
 font-weight:900;
 letter-spacing:-.025em;
}

.toolbox-v3 p{
 max-width:415px;
 margin:0;
 color:#c6d7e5;
 opacity:1;
 font-size:13px;
 line-height:1.48;
}

/* -------------------------------------------------------
   HERO TOOL GRID
   Exact 5 across x 2 rows like preview
   ------------------------------------------------------- */

.toolbox-v3 .toolbox-actions{
 width:100%!important;
 max-width:none!important;

 display:grid!important;
 grid-template-columns:repeat(5,minmax(0,1fr))!important;
 gap:10px!important;

 align-content:center;
 justify-content:stretch!important;
}

/* Module cards */
.toolbox-v3 .tool-card{
 width:auto!important;
 min-width:0!important;
 max-width:none!important;

 height:88px!important;
 min-height:88px!important;

 padding:10px 10px!important;

 display:flex!important;
 flex-direction:row!important;
 align-items:center!important;
 justify-content:flex-start!important;
 gap:9px!important;

 overflow:hidden;

 border:1px solid rgba(255,255,255,.32)!important;
 border-radius:10px!important;

 box-shadow:
   inset 0 1px 0 rgba(255,255,255,.22),
   0 6px 15px rgba(0,0,0,.27)!important;

 transition:
   transform .14s ease,
   filter .14s ease,
   box-shadow .14s ease;
}

.toolbox-v3 .tool-card:hover{
 transform:translateY(-2px);
 filter:brightness(1.08);
 box-shadow:
   inset 0 1px 0 rgba(255,255,255,.25),
   0 9px 20px rgba(0,0,0,.34)!important;
}

/* Module icons */
.toolbox-v3 .tool-card>i{
 width:40px!important;
 height:40px!important;
 min-width:40px!important;

 margin:0!important;

 display:grid!important;
 place-items:center!important;

 border-radius:9px!important;

 background:rgba(255,255,255,.17)!important;
 border:1px solid rgba(255,255,255,.26);

 color:#fff!important;

 font-size:16px!important;
 font-style:normal!important;
 font-weight:900!important;
 line-height:1!important;

 box-shadow:
   inset 0 0 14px rgba(255,255,255,.09),
   0 3px 9px rgba(0,0,0,.22);
}

.toolbox-v3 .tool-card>span{
 display:block;
 min-width:0;
 flex:1;
}

.toolbox-v3 .tool-card b{
 display:block;
 overflow:hidden;

 color:#fff;

 font-size:13px;
 line-height:1.12;
 font-weight:900;

 white-space:nowrap;
 text-overflow:ellipsis;
}

.toolbox-v3 .tool-card small{
 display:block;

 margin-top:5px;

 overflow:hidden;

 color:rgba(255,255,255,.78);

 font-size:7px;
 line-height:1.15;
 font-weight:700;

 text-transform:uppercase;
 white-space:nowrap;
 text-overflow:ellipsis;
}

/* Module gradients */
.toolbox-v3 .tool-ami{
 background:linear-gradient(135deg,#0ca54c,#07672f)!important;
}

.toolbox-v3 .tool-pm{
 background:linear-gradient(135deg,#f79a06,#a94f00)!important;
}

.toolbox-v3 .tool-dot{
 background:linear-gradient(135deg,#05b0d5,#087398)!important;
}

.toolbox-v3 .tool-eval{
 background:linear-gradient(135deg,#8b5be5,#51269b)!important;
}

.toolbox-v3 .tool-diag{
 background:linear-gradient(135deg,#e83779,#941849)!important;
}

.toolbox-v3 .tool-mci{
 background:linear-gradient(135deg,#087ee8,#064b9a)!important;
}

.toolbox-v3 .tool-calc{
 background:linear-gradient(135deg,#eaae05,#9e6500)!important;
}

.toolbox-v3 .tool-oncall{
 background:linear-gradient(135deg,#f06e06,#a33900)!important;
}

.toolbox-v3 .tool-schedule{
 background:linear-gradient(135deg,#ed3d7d,#971a51)!important;
}

.toolbox-v3 .tool-hydraulics{
 background:linear-gradient(135deg,#0785d8,#07508e)!important;
}

/* -------------------------------------------------------
   KPI ROW
   ------------------------------------------------------- */

.stats{
 display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));

 gap:12px;
 margin:0 0 18px;
}

.stats>div{
 position:relative;

 min-height:142px;

 padding:22px 22px 24px;

 overflow:hidden;

 background:
   linear-gradient(145deg,#0c2438 0%,#071725 100%);

 border:1px solid #294960;
 border-radius:13px;

 box-shadow:
   0 9px 20px rgba(0,0,0,.20);
}

.stats span{
 display:block;

 color:#aebdca;

 font-size:10px;
 font-weight:900;
 letter-spacing:.065em;
}

.stats b{
 display:block;

 margin:10px 0 5px;

 color:#12a3ff;

 font-size:32px;
 font-weight:900;
 line-height:1;
}

.stats b.green{
 color:#34bd4d;
}

.stats b.red{
 color:#ff3946;
}

.stats small{
 color:#d2dce5;
 font-size:11px;
}

.stats>div:after{
 content:"";

 position:absolute;
 left:18px;
 right:18px;
 bottom:13px;

 height:3px;

 border-radius:20px;

 background:#0897f3;
}

.stats>div:nth-child(2):after{
 background:#39c551;
}

.stats>div:nth-child(3):after{
 background:#ff3a4a;
}

.stats>div:nth-child(4):after{
 background:#9b62f0;
}

.stats .v3-system b{
 color:#a36cf6;
}

/* -------------------------------------------------------
   RECENT ACTIVITY
   ------------------------------------------------------- */

.toolbox-v3 + .stats + .card{
 margin:0;

 overflow:hidden;

 color:#e8f0f6;

 background:#071827;

 border:1px solid #294960;
 border-radius:14px;

 box-shadow:
   0 11px 26px rgba(0,0,0,.24);
}

.toolbox-v3 + .stats + .card .cardhead{
 min-height:78px;

 padding:18px 21px;

 display:flex;
 align-items:center;

 background:
   linear-gradient(145deg,#0c2235,#081725)!important;

 border-bottom:1px solid #294960;
}

.toolbox-v3 + .stats + .card .cardhead h3{
 margin:0;

 color:#fff!important;

 font-size:20px;
 font-weight:900;
}

.toolbox-v3 + .stats + .card .cardhead p{
 margin:4px 0 0;

 color:#9cafc0!important;

 font-size:11px;
}

.toolbox-v3 + .stats + .card table{
 width:100%;

 background:#071827;

 color:#e5edf4;

 font-size:12px;
}

.toolbox-v3 + .stats + .card th{
 height:43px;

 padding:10px 15px;

 background:#0a2032!important;

 color:#a8bac8!important;

 border:0;

 font-size:9px;
}

.toolbox-v3 + .stats + .card td{
 height:53px;

 padding:12px 15px;

 color:#e6edf3;

 border-top:1px solid #1d384d;
}

.toolbox-v3 + .stats + .card .link{
 color:#1dacff;
 font-weight:900;
}

.toolbox-v3 + .stats + .card .pill{
 font-size:9px;
}

/* -------------------------------------------------------
   FOOTER
   ------------------------------------------------------- */

aside footer{
 color:#71889a;
 border-color:#19364e;
}

/* -------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------- */

@media(max-width:1380px){

 .toolbox-v3{
  grid-template-columns:380px minmax(0,1fr);
  gap:22px;
 }

 .toolbox-v3 .tool-card{
  height:82px!important;
  min-height:82px!important;
 }

 .toolbox-v3 .tool-card b{
  font-size:12px;
 }

}

@media(max-width:1120px){

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

 .toolbox-v3>div:first-child{
  max-width:500px;
 }

 .toolbox-v3 .toolbox-actions{
  grid-template-columns:repeat(5,minmax(105px,1fr))!important;
 }

}

@media(max-width:800px){

 .app aside{
  width:270px;
 }

 .main{
  margin-left:0;
 }

 .main>header{
  height:68px;
 }

 .toolbox-v3 .toolbox-actions{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }

 .stats{
  grid-template-columns:repeat(2,1fr);
 }

}

@media(max-width:560px){

 .main main{
  padding:14px;
 }

 .toolbox-v3{
  padding:20px;
 }

 .toolbox-v3 .toolbox-actions{
  grid-template-columns:1fr 1fr!important;
 }

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

}

/* =====================================================================
   END CES TOOLBOX PORTAL v3.01
   ===================================================================== */


/* =====================================================================
   CES TOOLBOX PORTAL v3.04
   SIDEBAR ICON POP + VISUAL POLISH
   ===================================================================== */

/* Base sidebar icon badge */
nav .navico{
 position:relative;

 width:28px!important;
 height:28px!important;
 min-width:28px!important;

 margin-right:9px!important;

 display:inline-grid!important;
 place-items:center!important;

 border-radius:8px!important;

 color:#fff!important;

 font-size:10px!important;
 font-weight:900!important;
 font-style:normal!important;
 line-height:1!important;

 border:1px solid rgba(255,255,255,.34)!important;

 box-shadow:
  inset 0 1px 0 rgba(255,255,255,.30),
  inset 0 -1px 0 rgba(0,0,0,.18),
  0 3px 8px rgba(0,0,0,.28),
  0 0 8px rgba(255,255,255,.05)!important;

 text-shadow:
  0 1px 1px rgba(0,0,0,.30),
  0 0 6px rgba(255,255,255,.18);

 overflow:hidden;
}

/* Highlight sheen */
nav .navico:before{
 content:"";
 position:absolute;
 left:1px;
 right:1px;
 top:1px;
 height:45%;

 border-radius:7px 7px 11px 11px;

 background:linear-gradient(
  180deg,
  rgba(255,255,255,.28),
  rgba(255,255,255,.02)
 );

 pointer-events:none;
}

/* Sidebar icon color matching */
nav .ico-dash{
 background:linear-gradient(145deg,#1596f3,#075cb0)!important;
}

nav .ico-ami{
 background:linear-gradient(145deg,#28c86b,#078c42)!important;
}

nav .ico-pm{
 background:linear-gradient(145deg,#ff9f14,#df6300)!important;
}

nav .ico-dot{
 background:linear-gradient(145deg,#18c1df,#0782ae)!important;
}

nav .ico-eval{
 background:linear-gradient(145deg,#a06df2,#6a35c4)!important;
}

nav .ico-diag{
 background:linear-gradient(145deg,#f04b8b,#c12465)!important;
}

nav .ico-mci{
 background:linear-gradient(145deg,#1590f5,#0961c4)!important;
}

nav .ico-calc{
 background:linear-gradient(145deg,#ffd227,#e39d00)!important;
 color:#3a2600!important;
 text-shadow:none!important;
}

nav .ico-follow{
 background:linear-gradient(145deg,#ff605f,#d72e32)!important;
}

nav .ico-reports{
 background:linear-gradient(145deg,#28d1b0,#07987f)!important;
}

nav .ico-library{
 background:linear-gradient(145deg,#8274f4,#5946d2)!important;
}

nav .ico-users{
 background:linear-gradient(145deg,#b759e6,#8830b7)!important;
}

nav .ico-settings{
 background:linear-gradient(145deg,#7f9fb9,#4d6f8d)!important;
}

/* Generic OC / CAL / H icons */
nav a[href*="on_call_rotation"] .navico{
 background:linear-gradient(145deg,#ff8510,#d24a00)!important;
}

nav a[href*="schedule"] .navico{
 background:linear-gradient(145deg,#ec4c8d,#b52465)!important;
}

nav a[href*="hydraulics_reference"] .navico{
 background:linear-gradient(145deg,#1598e8,#0868ad)!important;
}

/* Navigation hover should make icon pop harder */
nav a:hover .navico{
 transform:translateY(-1px) scale(1.05);

 filter:brightness(1.10) saturate(1.08);

 box-shadow:
  inset 0 1px 0 rgba(255,255,255,.40),
  0 4px 10px rgba(0,0,0,.33),
  0 0 12px rgba(22,151,255,.16)!important;
}

/* Active page icon */
nav a.on .navico{
 border-color:rgba(255,255,255,.56)!important;

 box-shadow:
  inset 0 1px 0 rgba(255,255,255,.45),
  0 4px 11px rgba(0,0,0,.35),
  0 0 14px rgba(38,173,255,.30)!important;
}

/* Sidebar label clarity */
nav a{
 color:#f5f8fb!important;
 font-weight:800!important;
 text-shadow:0 1px 1px rgba(0,0,0,.20);
}

/* Subsection headings slightly clearer */
nav small{
 color:#8fa8bc!important;
 opacity:1!important;
 font-weight:800;
}

/* Main tool icons also get a little more edge pop */
.toolbox-v3 .tool-card>i{
 border-color:rgba(255,255,255,.48)!important;

 box-shadow:
  inset 0 1px 0 rgba(255,255,255,.38),
  inset 0 -1px 0 rgba(0,0,0,.18),
  0 3px 7px rgba(0,0,0,.28),
  0 0 10px rgba(255,255,255,.08)!important;
}

/* Slightly sharper tool cards */
.toolbox-v3 .tool-card{
 border-color:rgba(255,255,255,.39)!important;
}

/* =====================================================================
   END CES TOOLBOX PORTAL v3.04
   ===================================================================== */


/* ==========================================================
   CES v3.23 DOT RESPONSE BUTTON CLICK FIX
   ========================================================== */

.dot-response-grid{
    position:relative!important;
    z-index:5!important;

    display:grid!important;
    grid-template-columns:
        minmax(90px,1fr)
        minmax(90px,1fr)
        minmax(130px,1.35fr)!important;

    gap:8px!important;

    width:100%!important;
    max-width:520px!important;

    overflow:visible!important;
}

.dot-response-grid .dot-choice{
    position:relative!important;
    z-index:10!important;

    display:contents!important;

    pointer-events:auto!important;
}

/*
 * Keep native radio inputs present in the document but
 * visually hidden. Do not use display:none because the
 * labels need a dependable native radio target.
 */
.dot-response-grid .response-radio{
    position:absolute!important;

    width:1px!important;
    height:1px!important;

    opacity:0!important;

    margin:0!important;
    padding:0!important;

    pointer-events:none!important;
}

/*
 * Labels ARE the visible buttons.
 */
.dot-response-grid .response-button{
    position:relative!important;
    z-index:20!important;

    display:flex!important;
    align-items:center!important;
    justify-content:center!important;

    min-height:46px!important;
    width:100%!important;

    margin:0!important;
    padding:10px 12px!important;

    box-sizing:border-box!important;

    cursor:pointer!important;
    pointer-events:auto!important;

    user-select:none!important;
    touch-action:manipulation!important;
}

/*
 * Selected state.
 */
.dot-response-grid
.response-radio:checked + .response-button{
    box-shadow:
        inset 0 0 0 3px rgba(255,255,255,.45),
        0 0 0 2px currentColor!important;

    transform:translateY(-1px);
}

/*
 * Repair date must never sit invisibly over the buttons.
 */
.dot-response-grid .dot-repair-date{
    position:relative!important;
    z-index:1!important;

    grid-column:1 / -1!important;

    display:none!important;

    width:100%!important;

    pointer-events:none!important;
}

.dot-response-grid .dot-repair-date.is-visible{
    display:flex!important;
    align-items:center!important;
    gap:10px!important;

    pointer-events:auto!important;
}

.dot-response-grid .dot-repair-date input{
    pointer-events:auto!important;
}

/*
 * Mobile.
 */
@media(max-width:700px){

    .dot-response-grid{
        grid-template-columns:
            1fr
            1fr!important;
    }

    .dot-response-grid .dot-repair-choice{
        display:contents!important;
    }

    .dot-response-grid
    .dot-repair-choice
    .response-button{
        grid-column:1 / -1!important;
    }

}

/* ==========================================================
   END CES v3.23 DOT RESPONSE BUTTON CLICK FIX
   ========================================================== */


/* ==========================================================
   CES v3.24 OVERALL RESULT HARD BUTTONS
   ========================================================== */

.review-card .result-hard-toggle{
    display:grid!important;
    grid-template-columns:
        repeat(3,minmax(100px,1fr))!important;

    gap:10px!important;

    width:100%!important;
    max-width:480px!important;

    margin:0 0 14px!important;

    position:relative!important;
    z-index:50!important;

    overflow:visible!important;
    pointer-events:auto!important;
}

.review-card .result-hard-button{
    position:relative!important;
    z-index:60!important;

    display:flex!important;
    align-items:center!important;
    justify-content:center!important;

    min-height:48px!important;
    width:100%!important;

    margin:0!important;
    padding:10px 16px!important;

    border:2px solid #c7d2dc!important;
    border-radius:8px!important;

    background:#f6f8fa!important;
    color:#263746!important;

    font-size:14px!important;
    font-weight:900!important;

    cursor:pointer!important;
    pointer-events:auto!important;
    touch-action:manipulation!important;
    user-select:none!important;
}

.review-card
.result-hard-button.result-pass.is-selected{
    background:#16864a!important;
    border-color:#0e6938!important;
    color:#fff!important;

    box-shadow:
        0 0 0 3px rgba(22,134,74,.15)!important;
}

.review-card
.result-hard-button.result-fail.is-selected{
    background:#cf3636!important;
    border-color:#a72222!important;
    color:#fff!important;

    box-shadow:
        0 0 0 3px rgba(207,54,54,.15)!important;
}

.review-card
.result-hard-button.result-na.is-selected{
    background:#596975!important;
    border-color:#3d4b55!important;
    color:#fff!important;

    box-shadow:
        0 0 0 3px rgba(89,105,117,.15)!important;
}

.review-card
.result-hard-button:hover{
    transform:translateY(-1px);
}

@media(max-width:600px){

    .review-card .result-hard-toggle{
        grid-template-columns:1fr!important;
    }

}

/* ==========================================================
   END CES v3.24 OVERALL RESULT HARD BUTTONS
   ========================================================== */


/* ==========================================================
   CES v3.27 STUDENT PRE-EVALUATION SIGN BUTTON
   ========================================================== */

.evaluation-student-sign-btn{
    background:#e8f4ff!important;
    border-color:#1683d8!important;
    color:#075cad!important;
    font-weight:900!important;
}

.evaluation-student-sign-btn:hover{
    background:#d9edff!important;
    border-color:#086bb9!important;
}

#student-signature{
    scroll-margin-top:110px;
}

/* ==========================================================
   END CES v3.27
   ========================================================== */


/* ==========================================================
   CES v3.28 EVALUATION CARD DELETE
   ========================================================== */

.evaluation-card-actions{
    margin-top:12px;
}

.evaluation-card-delete{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:8px;
    align-items:end;
}

.evaluation-card-delete label{
    margin:0;
    font-size:11px;
    font-weight:800;
    color:#596b7c;
}

.evaluation-card-delete input[type="password"]{
    display:block;
    width:100%;
    margin-top:4px;
    min-height:36px;
}

.evaluation-card-delete .danger{
    min-height:36px;
    white-space:nowrap;
}

@media(max-width:600px){

    .evaluation-card-delete{
        grid-template-columns:1fr;
    }

    .evaluation-card-delete .danger{
        width:100%;
    }

}

/* ==========================================================
   END CES v3.28
   ========================================================== */


/* CES v3.28 ACTIVE EVALUATION DELETE BUTTON */

.evaluation-card-delete-button{
    margin:10px 14px 14px;
}

.evaluation-card-delete-button .danger{
    width:100%;
    min-height:38px;
    font-weight:900;
}

/* END CES v3.28 ACTIVE EVALUATION DELETE BUTTON */


/* ==========================================================
   CES v3.39 FINALIZED REPORT ARCHIVES
   ========================================================== */

.dashboard-archives{
    margin-bottom:18px;
}

.archive-folder-strip{
    display:grid;
    grid-template-columns:
        repeat(5,minmax(120px,1fr));
    gap:12px;
    padding:16px;
}

.archive-folder{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
    padding:14px 16px;
    border:1px solid #d7dde6;
    border-radius:10px;
    background:
        linear-gradient(145deg,#fff,#f5f7fa);
    color:#17202a;
    text-decoration:none;
    box-shadow:0 4px 12px rgba(0,0,0,.05);
    transition:
        transform .12s ease,
        border-color .12s ease,
        box-shadow .12s ease;
}

.archive-folder:hover{
    transform:translateY(-2px);
    border-color:#f58220;
    box-shadow:0 7px 18px rgba(0,0,0,.09);
}

.archive-folder.on{
    border-color:#f58220;
    background:
        linear-gradient(145deg,#fff7ed,#fff);
    box-shadow:
        inset 0 0 0 1px #f58220;
}

.archive-folder span{
    flex:0 0 auto;
    font-size:30px;
    line-height:1;
}

.archive-folder b{
    min-width:0;
    font-size:14px;
    font-weight:900;
}

.archive-page{
    width:100%;
}

.archive-page-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin-bottom:14px;
    padding:18px 20px;
    border-radius:10px;
    background:
        linear-gradient(135deg,#111820,#263440);
    color:#fff;
}

.archive-page-head small{
    color:#f58220;
    font-weight:900;
}

.archive-page-head h1{
    margin:3px 0;
}

.archive-page-head p{
    margin:0;
    color:#c8d0d6;
}

.archive-table-wrap{
    width:100%;
    overflow-x:auto;
}

.archive-table{
    width:100%;
}

.archive-table td b{
    display:block;
}

.archive-table td small{
    display:block;
    margin-top:3px;
    color:#77838d;
    font-size:10px;
}

.archive-open{
    white-space:nowrap;
}

@media(max-width:1000px){

    .archive-folder-strip{
        grid-template-columns:
            repeat(3,minmax(120px,1fr));
    }
}

@media(max-width:650px){

    .archive-folder-strip{
        grid-template-columns:
            repeat(2,minmax(0,1fr));
        gap:8px;
        padding:10px;
    }

    .archive-folder{
        padding:11px;
    }

    .archive-folder span{
        font-size:24px;
    }

    .archive-page-head{
        align-items:flex-start;
        flex-direction:column;
    }
}


/* ==========================================================
   CES v3.39 ARCHIVE YEAR / MONTH / COMPANY
   ========================================================== */

.archive-grouped{
    display:flex;
    flex-direction:column;
    gap:12px;
    padding:16px;
}

.archive-grouped details{
    overflow:hidden;
    border:1px solid #d8dee6;
    border-radius:10px;
    background:#fff;
}

.archive-grouped summary{
    display:flex;
    align-items:center;
    gap:10px;
    min-height:48px;
    padding:11px 14px;
    cursor:pointer;
    list-style:none;
    user-select:none;
}

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

.archive-grouped summary::after{
    content:"›";
    margin-left:auto;
    font-size:22px;
    font-weight:900;
    transform:rotate(90deg);
    transition:transform .15s ease;
}

.archive-grouped details[open] > summary::after{
    transform:rotate(270deg);
}

.archive-folder-icon{
    flex:0 0 auto;
    font-size:23px;
}

.archive-grouped summary b{
    font-size:14px;
    font-weight:900;
}

.archive-grouped summary small{
    color:#72808c;
    font-size:11px;
}

.archive-year{
    border-color:#aeb9c4 !important;
}

.archive-year > summary{
    background:
        linear-gradient(135deg,#17222c,#263642);
    color:#fff;
}

.archive-year > summary small{
    color:#c8d1d8;
}

.archive-year-body{
    padding:10px;
    background:#edf2f6;
}

.archive-month{
    margin-bottom:9px;
}

.archive-month:last-child{
    margin-bottom:0;
}

.archive-month > summary{
    background:#f7f9fb;
    border-bottom:1px solid transparent;
}

.archive-month[open] > summary{
    border-bottom-color:#dfe5ea;
}

.archive-month-body{
    padding:10px;
    background:#fff;
}

.archive-company{
    margin-bottom:8px;
    border-color:#e0e5ea !important;
}

.archive-company:last-child{
    margin-bottom:0;
}

.archive-company > summary{
    background:#fff8ef;
}

.archive-company[open] > summary{
    border-bottom:1px solid #eee1d1;
}

.archive-company-body{
    padding:0;
}

.archive-company .archive-table{
    margin:0;
}

.archive-company .archive-table th{
    background:#f7f9fb;
}

@media(max-width:700px){

    .archive-grouped{
        padding:8px;
    }

    .archive-year-body,
    .archive-month-body{
        padding:7px;
    }

    .archive-grouped summary{
        padding:10px;
    }

    .archive-grouped summary small{
        display:none;
    }
}


/* CES v3.39 DIAGNOSTIC WORK ORDER ARCHIVE */

.archive-workorder{
    margin:8px !important;
    border:1px solid #dbe2e8 !important;
    border-radius:8px !important;
}

.archive-workorder > summary{
    background:#f3f7fa;
}

.archive-workorder-body{
    padding:0;
}


/* CES v3.39 DIAGNOSTIC WORK ORDER ARCHIVE */

.archive-workorder{
    margin:8px !important;
    border:1px solid #dbe2e8 !important;
    border-radius:8px !important;
}

.archive-workorder > summary{
    background:#f3f7fa;
}

.archive-workorder-body{
    padding:0;
}


/* ==========================================================
   CES v3.39 ARCHIVE CONTRAST FIX
   ========================================================== */

/*
 * Main AMI / DOT / PM / Evaluations / Diagnostics folder bar
 */

.archive-folder-strip{
    background:transparent !important;
}

.archive-folder{
    color:#f8fafc !important;
    background:
        linear-gradient(145deg,#172532,#0d1821) !important;
    border:1px solid #38556a !important;
    box-shadow:
        0 5px 14px rgba(0,0,0,.28) !important;
}

.archive-folder b{
    color:#ffffff !important;
    font-weight:900 !important;
    text-shadow:
        0 1px 2px rgba(0,0,0,.65);
}

.archive-folder span{
    color:#ffc83d !important;
}

.archive-folder:hover{
    color:#ffffff !important;
    border-color:#f58220 !important;
    background:
        linear-gradient(145deg,#223747,#142530) !important;
}

.archive-folder.on{
    color:#ffffff !important;
    border-color:#f58220 !important;
    background:
        linear-gradient(145deg,#7b3500,#ba5100) !important;
    box-shadow:
        inset 0 0 0 1px #ff9c49,
        0 6px 16px rgba(0,0,0,.28) !important;
}


/*
 * Archive page title/header
 */

.archive-page-head{
    color:#ffffff !important;
}

.archive-page-head h1{
    color:#ffffff !important;
}

.archive-page-head p{
    color:#dbe7ef !important;
}

.archive-page-head small{
    color:#ff9b45 !important;
}


/*
 * YEAR folder
 */

.archive-year > summary{
    background:
        linear-gradient(135deg,#162838,#21394b) !important;
    color:#ffffff !important;
}

.archive-year > summary b{
    color:#ffffff !important;
}

.archive-year > summary small{
    color:#dbe7ef !important;
}


/*
 * MONTH folder
 */

.archive-month > summary{
    background:#eaf0f5 !important;
    color:#142536 !important;
}

.archive-month > summary b{
    color:#142536 !important;
}

.archive-month > summary small{
    color:#526779 !important;
}


/*
 * COMPANY folder
 */

.archive-company > summary{
    background:#fff3df !important;
    color:#38230d !important;
}

.archive-company > summary b{
    color:#38230d !important;
}

.archive-company > summary small{
    color:#76562f !important;
}


/*
 * Work Order folder for Diagnostics
 */

.archive-workorder > summary{
    background:#e8f2f8 !important;
    color:#15374d !important;
}

.archive-workorder > summary b{
    color:#15374d !important;
}

.archive-workorder > summary small{
    color:#506d7f !important;
}


/*
 * Folder icons
 */

.archive-folder-icon{
    color:#f5b400 !important;
    filter:
        drop-shadow(0 1px 1px rgba(0,0,0,.25));
}


/*
 * Archive tables
 */

.archive-table{
    background:#ffffff !important;
    color:#182430 !important;
}

.archive-table th{
    background:#edf2f6 !important;
    color:#536577 !important;
}

.archive-table td{
    color:#182430 !important;
}

.archive-table td b{
    color:#075fae !important;
}

.archive-table td small{
    color:#667887 !important;
}


/*
 * Archive result card should stay readable even when the
 * rest of CES uses the dark dashboard theme.
 */

.archive-results{
    background:#ffffff !important;
    color:#162534 !important;
}

.archive-results .cardhead{
    background:#ffffff !important;
    color:#162534 !important;
}

.archive-results .cardhead h3{
    color:#162534 !important;
}

.archive-results .cardhead p{
    color:#657685 !important;
}


/*
 * Dark-theme dashboard Archive card.
 */

.dashboard-archives{
    background:#0c2130 !important;
    border-color:#294b61 !important;
}

.dashboard-archives .cardhead{
    background:#0c2130 !important;
}

.dashboard-archives .cardhead h3{
    color:#ffffff !important;
}

.dashboard-archives .cardhead p{
    color:#b8cbd7 !important;
}


/* ============================================================
   T360_OEM_PORTAL_DIRECTORY_STYLE_V2
   ============================================================ */

.oem-v2-page{
 display:flex;
 flex-direction:column;
 gap:16px;
}

.oem-v2-hero{
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:20px;
 padding:24px 26px;
 border-radius:16px;
 color:#fff;
 background:
  radial-gradient(circle at 83% 18%,
   rgba(0,164,255,.30),transparent 29%),
  linear-gradient(135deg,#071a2e,#0c3458 62%,#076c9f);
 box-shadow:0 13px 28px rgba(0,32,64,.25);
}

.oem-v2-hero h1{
 margin:5px 0 6px;
 color:#fff;
 font-size:29px;
}

.oem-v2-hero p{
 margin:0;
 color:#d8ecff;
}

.oem-v2-hero-actions{
 display:flex;
 align-items:center;
 gap:12px;
}

.oem-v2-badge{
 width:68px;
 height:68px;
 display:grid;
 place-items:center;
 border-radius:17px;
 border:1px solid rgba(255,255,255,.30);
 background:rgba(255,255,255,.10);
 font-weight:950;
 letter-spacing:.8px;
}

.oem-admin-button{
 min-height:42px;
 display:flex;
 align-items:center;
 padding:0 15px;
 border:1px solid rgba(255,255,255,.42);
 border-radius:11px;
 color:#fff!important;
 background:rgba(255,255,255,.12);
 font-weight:850;
 text-decoration:none;
}

.oem-admin-button:hover{
 background:rgba(255,255,255,.20);
}

.oem-security-note{
 display:flex;
 align-items:flex-start;
 gap:13px;
 padding:13px 16px;
 border:1px solid #b9d8ee;
 border-radius:12px;
 background:#eef8ff;
 color:#24455e;
}

.oem-security-note b{
 flex:0 0 auto;
 color:#075f98;
}

.oem-security-note span{
 font-size:12px;
 line-height:1.45;
}

.oem-v2-grid{
 display:grid;
 grid-template-columns:repeat(3,minmax(0,1fr));
 gap:15px;
}

.oem-v2-group{
 min-width:0;
 padding:15px;
 border:1px solid #d7e1e9;
 border-radius:15px;
 background:linear-gradient(180deg,#fff,#f5f9fc);
 box-shadow:0 7px 18px rgba(15,45,73,.08);
}

.oem-v2-group-head{
 display:flex;
 align-items:center;
 gap:12px;
 padding-bottom:13px;
 border-bottom:1px solid #dde6ed;
}

.oem-v2-logo{
 width:78px;
 height:58px;
 flex:0 0 78px;
 display:grid;
 place-items:center;
 overflow:hidden;
 border:1px solid #d5dfe7;
 border-radius:11px;
 background:#fff;
}

.oem-v2-logo img{
 display:block;
 max-width:92%;
 max-height:48px;
 object-fit:contain;
}

.oem-v2-logo span{
 width:100%;
 height:100%;
 display:grid;
 place-items:center;
 color:#fff;
 background:linear-gradient(135deg,#16446e,#1386c3);
 font-weight:950;
 font-size:17px;
}

.oem-v2-group-head h2{
 margin:0;
 color:#102e49;
 font-size:20px;
}

.oem-v2-group-head small{
 display:block;
 margin-top:4px;
 color:#74899b;
 font-size:10px;
 font-weight:750;
 text-transform:uppercase;
}

.oem-v2-links{
 display:flex;
 flex-direction:column;
 gap:8px;
 margin-top:13px;
}

.oem-v2-link{
 min-height:68px;
 display:grid;
 grid-template-columns:44px minmax(0,1fr) 22px;
 align-items:center;
 gap:10px;
 padding:10px 11px;
 border:1px solid #cad9e5;
 border-radius:11px;
 background:#fff;
 color:#17374f!important;
 text-decoration:none;
 transition:.16s ease;
}

a.oem-v2-link:hover{
 transform:translateY(-2px);
 border-color:#78b9df;
 box-shadow:0 7px 15px rgba(16,70,108,.12);
}

.oem-v2-link.pending{
 opacity:.68;
 background:#f4f6f8;
}

.oem-v2-link-icon{
 width:40px;
 height:40px;
 display:grid;
 place-items:center;
 border-radius:9px;
 color:#fff;
 background:linear-gradient(135deg,#0c609d,#1294cf);
 font-size:10px;
 font-weight:950;
}

.oem-v2-link-copy{
 min-width:0;
}

.oem-v2-link-copy b,
.oem-v2-link-copy small{
 display:block;
}

.oem-v2-link-copy b{
 overflow:hidden;
 text-overflow:ellipsis;
 color:#14344d;
 font-size:14px;
 white-space:nowrap;
}

.oem-v2-link-copy small{
 margin-top:5px;
 overflow:hidden;
 text-overflow:ellipsis;
 color:#7b8e9d;
 font-size:8px;
 font-weight:800;
 letter-spacing:.5px;
 text-transform:uppercase;
 white-space:nowrap;
}

.oem-v2-link em{
 color:#8298aa;
 font-size:20px;
 font-style:normal;
 font-weight:900;
}

.oem-v2-edit{
 display:inline-block;
 align-self:flex-end;
 margin-top:-3px;
 padding:3px 8px;
 color:#0877b6!important;
 font-size:10px;
 font-weight:850;
 text-decoration:none;
}

.oem-v2-editor form{
 padding:17px;
}

.oem-v2-form-grid{
 display:grid;
 grid-template-columns:1fr 1fr;
 gap:13px;
}

.oem-v2-form-grid label{
 display:flex;
 flex-direction:column;
 gap:6px;
 color:#29465e;
 font-size:11px;
 font-weight:800;
}

.oem-v2-form-grid .wide2{
 grid-column:1/-1;
}

.oem-v2-form-grid input,
.oem-v2-form-grid select,
.oem-v2-form-grid textarea{
 width:100%;
 box-sizing:border-box;
}

.oem-v2-check{
 flex-direction:row!important;
 align-items:center;
}

.oem-v2-check input{
 width:auto!important;
}

.oem-v2-admin-table-wrap{
 overflow-x:auto;
 padding:0 16px 16px;
}

.oem-v2-admin-table-wrap table{
 width:100%;
 border-collapse:collapse;
}

.oem-v2-admin-table-wrap th,
.oem-v2-admin-table-wrap td{
 padding:10px;
 border-bottom:1px solid #dbe5ed;
 text-align:left;
 font-size:12px;
}

.oem-admin-status{
 display:inline-block;
 padding:4px 7px;
 border-radius:999px;
 font-size:9px;
 font-weight:900;
}

.oem-admin-status.active{
 color:#0d673e;
 background:#dff4e9;
}

.oem-admin-status.pending{
 color:#895900;
 background:#fff0c9;
}

.oem-admin-status.disabled{
 color:#7c2630;
 background:#f7dfe2;
}

.oem-admin-actions{
 display:flex;
 align-items:center;
 gap:8px;
}

.oem-admin-actions form{
 margin:0;
}

.oem-admin-actions button,
.oem-admin-actions a{
 border:0;
 background:none;
 color:#0877b6!important;
 font-size:11px;
 font-weight:850;
 cursor:pointer;
 text-decoration:none;
}

.tool-oem i{
 font-size:9px!important;
}

@media(max-width:1050px){
 .oem-v2-grid{
  grid-template-columns:1fr 1fr;
 }
}

@media(max-width:640px){

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

 .oem-v2-hero{
  align-items:flex-start;
  padding:18px 16px;
 }

 .oem-v2-hero h1{
  font-size:23px;
 }

 .oem-v2-hero-actions{
  flex-direction:column-reverse;
  align-items:flex-end;
 }

 .oem-v2-badge{
  width:52px;
  height:52px;
  border-radius:13px;
  font-size:12px;
 }

 .oem-admin-button{
  padding:0 10px;
  font-size:10px;
 }

 .oem-security-note{
  flex-direction:column;
  gap:5px;
 }

 .oem-v2-form-grid{
  grid-template-columns:1fr;
 }

 .oem-v2-form-grid .wide2{
  grid-column:auto;
 }

}

/* END T360_OEM_PORTAL_DIRECTORY_STYLE_V2 */


/* ============================================================
   T360_OEM_DARK_VISIBILITY_FIX_V3
   Scoped OEM Portal dark-theme correction
   ============================================================ */

.oem-v2-page{
    color:#eaf4fb !important;
}

/* HERO */

.oem-v2-page .oem-v2-hero{
    display:flex !important;
    visibility:visible !important;
    opacity:1 !important;
    background:
        radial-gradient(circle at 82% 15%,
            rgba(0,151,255,.24),transparent 30%),
        linear-gradient(135deg,#102b3d,#123d58 65%,#0a658e)
        !important;
    border:1px solid #35617a !important;
}

.oem-v2-page .oem-v2-hero .eyebrow{
    color:#75c9ff !important;
}

.oem-v2-page .oem-v2-hero h1{
    color:#ffffff !important;
}

.oem-v2-page .oem-v2-hero p{
    color:#c9deea !important;
}

.oem-v2-page .oem-admin-button{
    color:#ffffff !important;
    border-color:#65bde9 !important;
    background:#0d628e !important;
}

.oem-v2-page .oem-v2-badge{
    color:#ffffff !important;
    border-color:#65bde9 !important;
    background:#0d628e !important;
}


/* SECURITY NOTE */

.oem-v2-page .oem-security-note{
    display:flex !important;
    visibility:visible !important;
    opacity:1 !important;
    background:#163448 !important;
    border:1px solid #3b6c88 !important;
    color:#d9eaf4 !important;
}

.oem-v2-page .oem-security-note b{
    color:#68c8ff !important;
}

.oem-v2-page .oem-security-note span{
    color:#d9eaf4 !important;
}


/* OEM GRID */

.oem-v2-page .oem-v2-grid{
    display:grid !important;
    visibility:visible !important;
    opacity:1 !important;
}

.oem-v2-page .oem-v2-group{
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    background:
        linear-gradient(145deg,#172b3a,#102330)
        !important;
    border:1px solid #35566b !important;
    color:#ffffff !important;
    box-shadow:
        0 8px 20px rgba(0,0,0,.25)
        !important;
}

.oem-v2-page .oem-v2-group-head{
    display:flex !important;
    visibility:visible !important;
    border-bottom-color:#35566b !important;
}

.oem-v2-page .oem-v2-group-head h2{
    color:#ffffff !important;
}

.oem-v2-page .oem-v2-group-head small{
    color:#9eb9ca !important;
}


/* LOGOS */

.oem-v2-page .oem-v2-logo{
    display:grid !important;
    visibility:visible !important;
    opacity:1 !important;
    background:#ffffff !important;
    border-color:#56768a !important;
}

.oem-v2-page .oem-v2-logo img{
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    max-width:92% !important;
    max-height:48px !important;
}

.oem-v2-page .oem-v2-logo span{
    display:grid !important;
    color:#ffffff !important;
    background:
        linear-gradient(135deg,#08699f,#12a0db)
        !important;
}


/* PORTAL LINKS */

.oem-v2-page .oem-v2-links{
    display:flex !important;
    visibility:visible !important;
    opacity:1 !important;
}

.oem-v2-page .oem-v2-link{
    display:grid !important;
    visibility:visible !important;
    opacity:1 !important;
    background:#20394a !important;
    border:1px solid #45677b !important;
    color:#ffffff !important;
}

.oem-v2-page a.oem-v2-link:hover{
    background:#285069 !important;
    border-color:#52b8ec !important;
    box-shadow:
        0 7px 18px rgba(0,0,0,.28)
        !important;
}

.oem-v2-page .oem-v2-link.pending{
    display:grid !important;
    opacity:.72 !important;
    background:#263541 !important;
    border-color:#485d6b !important;
}

.oem-v2-page .oem-v2-link-icon{
    display:grid !important;
    visibility:visible !important;
    color:#ffffff !important;
    background:
        linear-gradient(135deg,#0872ac,#14a5dd)
        !important;
}

.oem-v2-page .oem-v2-link-copy{
    display:block !important;
    visibility:visible !important;
}

.oem-v2-page .oem-v2-link-copy b{
    display:block !important;
    color:#ffffff !important;
}

.oem-v2-page .oem-v2-link-copy small{
    display:block !important;
    color:#b5cbd8 !important;
}

.oem-v2-page .oem-v2-link em{
    color:#72c9f4 !important;
}

.oem-v2-page .oem-v2-edit{
    display:inline-block !important;
    visibility:visible !important;
    color:#6dcaff !important;
}


/* ADMIN EDITOR */

.oem-v2-page .oem-v2-editor,
.oem-v2-page .oem-v2-admin-list{
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    background:#132a3a !important;
    border-color:#35566b !important;
    color:#ffffff !important;
}

.oem-v2-page .oem-v2-editor .cardhead,
.oem-v2-page .oem-v2-admin-list .cardhead{
    background:#132a3a !important;
}

.oem-v2-page .oem-v2-editor .cardhead h3,
.oem-v2-page .oem-v2-admin-list .cardhead h3{
    color:#ffffff !important;
}

.oem-v2-page .oem-v2-editor .cardhead p,
.oem-v2-page .oem-v2-admin-list .cardhead p{
    color:#abc2d0 !important;
}

.oem-v2-page .oem-v2-form-grid label{
    color:#dceaf3 !important;
}

.oem-v2-page .oem-v2-form-grid input,
.oem-v2-page .oem-v2-form-grid select,
.oem-v2-page .oem-v2-form-grid textarea{
    background:#ffffff !important;
    color:#172a38 !important;
    border:1px solid #9fb2c0 !important;
}

.oem-v2-page .oem-v2-admin-table-wrap table{
    background:#132a3a !important;
    color:#e9f3f8 !important;
}

.oem-v2-page .oem-v2-admin-table-wrap th{
    color:#8fd4fa !important;
    background:#0d2230 !important;
}

.oem-v2-page .oem-v2-admin-table-wrap td{
    color:#e9f3f8 !important;
    border-bottom-color:#35566b !important;
}

.oem-v2-page .oem-v2-admin-table-wrap td b{
    color:#ffffff !important;
}


/* RESPONSIVE */

@media(max-width:1050px){
    .oem-v2-page .oem-v2-grid{
        grid-template-columns:
            repeat(2,minmax(0,1fr)) !important;
    }
}

@media(max-width:640px){
    .oem-v2-page .oem-v2-grid{
        grid-template-columns:1fr !important;
    }
}

/* END T360_OEM_DARK_VISIBILITY_FIX_V3 */


/*
 * T360_MCI_LIVE_TABLE_TEXT_V1
 * Live MCI Codes table foreground colors.
 */

.mci-table tbody td{
    color:#31485a !important;
    -webkit-text-fill-color:#31485a !important;
    opacity:1 !important;
}

/* Description */
.mci-table tbody td:nth-child(3){
    color:#243b4d !important;
    -webkit-text-fill-color:#243b4d !important;
    font-weight:700 !important;
}

/* Notes */
.mci-table tbody td:nth-child(4){
    color:#607487 !important;
    -webkit-text-fill-color:#607487 !important;
}

/* Price */
.mci-table tbody td:nth-child(5){
    color:#102a40 !important;
    -webkit-text-fill-color:#102a40 !important;
    font-weight:950 !important;
}

/* Item number + GL buttons */
.mci-table .mci-copy,
.mci-table .mci-copy b,
.mci-table .mci-copy small{
    color:#075b98 !important;
    -webkit-text-fill-color:#075b98 !important;
}

/* Category badge */
.mci-table .mci-category{
    color:#09649f !important;
    -webkit-text-fill-color:#09649f !important;
}


/* T360_SIDEBAR_V12_DYNAMIC */

#side nav a{
    position:relative!important;
    display:flex!important;
    align-items:center!important;
    gap:12px!important;
    min-height:50px!important;
    margin:3px 0!important;
    padding:7px 10px!important;
    border:1px solid transparent!important;
    border-radius:12px!important;
    overflow:hidden!important;
    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease!important;
}

#side nav a:hover{
    transform:translateX(4px)!important;
    background:linear-gradient(
        90deg,
        rgba(23,123,185,.23),
        rgba(255,255,255,.06)
    )!important;
    border-color:rgba(105,190,239,.20)!important;
    box-shadow:0 6px 16px rgba(0,10,25,.20)!important;
}

#side nav a.on{
    background:linear-gradient(
        90deg,
        rgba(16,119,181,.43),
        rgba(20,77,112,.31)
    )!important;
    border-color:rgba(93,190,240,.38)!important;
    box-shadow:
        inset 3px 0 0 #fff,
        0 7px 18px rgba(0,10,25,.27)!important;
}

#side .nav-icon-v11{
    width:35px!important;
    height:35px!important;
    flex:0 0 35px!important;
    border-radius:11px!important;
    border:1px solid rgba(255,255,255,.24)!important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.34),
        0 5px 11px rgba(0,0,0,.28)!important;
    transition:
        transform .18s ease,
        filter .18s ease,
        box-shadow .18s ease!important;
}

#side .nav-icon-v11 svg{
    width:21px!important;
    height:21px!important;
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:1.8!important;
    stroke-linecap:round!important;
    stroke-linejoin:round!important;
}

#side nav a:hover .nav-icon-v11{
    transform:translateY(-2px) scale(1.08)!important;
    filter:saturate(1.15) brightness(1.08)!important;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.44),
        0 8px 17px rgba(0,0,0,.32)!important;
}

#side nav a.on .nav-icon-v11{
    transform:scale(1.06)!important;
}

#side .nav-label-v11{
    color:#f5f9fc!important;
    font-size:13px!important;
    font-weight:800!important;
}

/* New module icon colors */
#side a[data-nav-icon="evaluation-v2"] .nav-icon-v11{
    background:linear-gradient(145deg,#a879f4,#6331bd)!important;
}

#side a[data-nav-icon="oncall"] .nav-icon-v11{
    background:linear-gradient(145deg,#ff9b42,#df5800)!important;
}

#side a[data-nav-icon="schedule"] .nav-icon-v11{
    background:linear-gradient(145deg,#f36aa8,#bd276c)!important;
}

#side a[data-nav-icon="hydraulics"] .nav-icon-v11{
    background:linear-gradient(145deg,#35b7f3,#0874bd)!important;
}

#side a[data-nav-icon="oem"] .nav-icon-v11{
    background:linear-gradient(145deg,#5b7892,#0879bd)!important;
}

#side a[data-nav-icon="receipts"] .nav-icon-v11{
    background:linear-gradient(145deg,#25b8ed,#0877bd)!important;
}

#side a[data-nav-icon="archive"] .nav-icon-v11{
    background:linear-gradient(145deg,#8b9aa8,#526575)!important;
}

@media(max-width:900px){
    #side nav a:hover{
        transform:none!important;
    }
}

@media(prefers-reduced-motion:reduce){
    #side nav a,
    #side .nav-icon-v11{
        transition:none!important;
    }

    #side nav a:hover,
    #side nav a:hover .nav-icon-v11{
        transform:none!important;
    }
}

/* END T360_SIDEBAR_V12_DYNAMIC */

