/* WEnovo 6.19: shared visual system. Business interactions stay in their modules. */
:root{--sidebar:252px;--topbar:68px;--dark:#18242b;--orange:#e96b25;--wenovo-action:#bc490f;--wenovo-accent-text:#a9400b;--muted:#596970;--line:#dce3e7;--radius:12px;font-family:"Segoe UI",Arial,sans-serif;font-size:14px;color:#1a2c35;background:#f3f6f8}
body{font-family:"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.5;color:#1a2c35;background:#f3f6f8}
button,input,select,textarea{font:inherit}button,.button{font-weight:600}
.topbar{border-color:#dce3e7;box-shadow:0 1px 4px #18242b06;z-index:240}
.brand-enovo{letter-spacing:.12em}.top-actions{gap:10px}.account-btn{font-weight:500}.account-btn small{color:#596970}
.sidebar{background:#18242b;overflow:hidden;padding:16px 12px;gap:18px;align-self:start}
.sidebar nav{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#586873 transparent;flex:1;display:flex;flex-direction:column;gap:3px;padding:0 4px 10px}
.sidebar .nav-btn{flex-shrink:0;min-height:42px;padding:10px 12px;border-radius:7px;color:#d5e0e6;font-size:13px;font-weight:500;line-height:1.4;gap:10px;box-shadow:none}
.sidebar .nav-btn:hover{background:#263842;color:#fff}.sidebar .nav-btn.active{background:#33424a;color:#fff;box-shadow:inset 3px 0 #f58142;font-weight:650}
.sidebar .nav-btn svg{width:18px;height:18px;flex:0 0 18px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.sidebar .ux-nav-section,.sidebar .cr-nav-group-label{flex-shrink:0;font-size:10px;line-height:1.5;color:#9eb0ba;font-weight:600;letter-spacing:.08em;padding:18px 12px 6px;margin:0;border:0}.sidebar .ux-nav-section:first-child{padding-top:3px}
.sidebar .help-card{flex-shrink:0;margin:0 4px;padding:12px;border:1px solid #3a4a54;border-radius:8px;background:#1c2b33}.sidebar .help-card strong{font-size:12px}.sidebar .help-card span{font-size:11px;color:#c6d3da}
.content{padding:28px 32px 44px;min-width:0}.content:focus{outline:0}.page-head{margin-bottom:22px;gap:16px}.page-head h1{font-size:28px;font-weight:650;line-height:1.2;letter-spacing:-.6px;color:#152c38;margin:5px 0 8px}.page-head p{font-size:14px;color:#596970;line-height:1.55;margin:0;max-width:78ch}.eyebrow{font-size:10px;letter-spacing:.1em;font-weight:700}
.endurance-context-bar{font-size:12px;margin:0 0 20px;color:#596970}.content[data-page="home"]>.endurance-context-bar,.content[data-page="home"]>.hero{display:none}
.card,.compact-card{border:1px solid #dce3e7;border-radius:12px;background:#fff;box-shadow:0 3px 12px #18242b04;padding:22px}.card h2,.section-heading h2{font-size:20px;letter-spacing:-.3px;font-weight:650}.card h3{font-size:17px;font-weight:650}
.button{border-radius:7px;padding:10px 16px;line-height:1.4;font-size:13px;font-weight:600;transition:background .12s,border-color .12s;box-shadow:none}.button.small{font-size:12px;padding:7px 11px;min-height:36px}.button.primary{background:#bc490f;color:white}.button.primary:hover{background:#a53d0a}.button.ghost{background:#fff;border:1px solid #cfd9df;color:#284350}.button.ghost:hover{background:#f1f5f7;border-color:#a9bbc5}.button.secondary{background:#233d4b}.button.danger{background:#b52a26;color:white}
.field>span{font-size:13px}.field input,.field textarea,.field select,.toolbar input,.toolbar select{font-size:14px;border-radius:7px;border:1px solid #bfcdd5;min-height:44px;padding:10px 12px;background:#fff;color:#1a2c35}.field textarea{line-height:1.55}.field small,.muted{color:#596970}.field input::placeholder,.field textarea::placeholder{color:#71818c;opacity:1}
.table-wrap{border:1px solid #e0e7eb;border-radius:9px;overflow:auto;max-width:100%}.data-table{font-size:13px;line-height:1.45}.data-table th{font-size:11px;text-transform:none;letter-spacing:.02em;background:#f5f8fa;color:#4c626f;font-weight:650;padding:12px 14px;white-space:nowrap}.data-table td{font-size:13px;padding:12px 14px;border-color:#e8edf0;vertical-align:middle}.data-table td small{font-size:12px;color:#596970;line-height:1.45}.data-table tbody tr:hover{background:#f7fafb}.data-table .button{white-space:nowrap}.data-table tr:last-child td{border-bottom:0}
.compact-row{padding:13px 14px;gap:16px;line-height:1.5}.compact-row>span>b,.compact-row>span>small{display:block}.compact-row>span>small{margin-top:3px;color:#596970;font-size:12px}
.compact-stat-grid{gap:14px;margin:0 0 24px}.compact-stat-grid article{border:1px solid #dce3e7;box-shadow:none;background:#fff;border-radius:10px;padding:16px 18px;display:flex;align-items:center;gap:12px;min-height:78px}.compact-stat-grid article>b{font-size:27px;font-weight:650;letter-spacing:-.5px;color:#183b4e}.compact-stat-grid article>span{font-size:12px;color:#596970;line-height:1.4}
.endurance-today{margin-top:22px}.endurance-today-head{margin-bottom:20px;align-items:center}.endurance-today-head h2{margin:5px 0}.endurance-today-head p{font-size:13px;color:#596970;margin:0}.endurance-today-grid{gap:16px}.endurance-today-card{border:1px solid #dce5eb;border-radius:10px;padding:18px}.endurance-today-card header{margin-bottom:10px;align-items:center}.endurance-today-card header>b{font-size:14px;font-weight:650}.endurance-today-card header>strong{font-size:24px;color:#183b4e}.endurance-today-card li{gap:14px;padding:10px 0;align-items:start}.endurance-today-card li>span{flex:1;min-width:0}.endurance-today-card li>span>b,.endurance-today-card li>span>small{display:block}.endurance-today-card li>span>b{font-size:12px;color:#476575;font-weight:600}.endurance-today-card li>span>small{font-size:13px;color:#263f4d;margin-top:2px}.endurance-today-card li>small{font-size:11px;max-width:38%;text-align:right;color:#647680}.endurance-today-open{margin-top:12px}
.choice-tile{border:1px solid #dce3e7;border-radius:10px;box-shadow:0 2px 8px #18242b04;transition:border-color .12s,background .12s}.choice-tile:hover{border-color:#e97b40;background:#fffaf6;transform:none}.choice-tile p{font-size:13px;line-height:1.5;color:#596970}.choice-tile.danger p{color:inherit}
.modal{border-radius:14px;box-shadow:0 20px 80px #0a192d38;max-height:calc(100dvh - 48px);overflow:auto}.modal h2{font-size:24px;font-weight:650;letter-spacing:-.4px}.modal-backdrop{background:#142b3d88;z-index:600}.modal-close{border-radius:8px}.toast{z-index:1500;font-size:14px;border-radius:8px;line-height:1.5}
.login-brand{background:#182c38}.login-copy h1{font-size:42px;letter-spacing:-1px;line-height:1.2}.login-copy p{font-size:17px;line-height:1.65}.login-card h2{font-size:30px;font-weight:650;letter-spacing:-.5px}.login-card .field{margin-top:20px}.login-card .button{min-height:48px}.login-card p{color:#596970;line-height:1.6}.login-panel{background:#f3f6f8}
.skip-link:not(:focus){transform:translateY(-180%)}
.customer-feature-switch i{pointer-events:none}
.compact-stat-grid:has(.home-stat){grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.home-stat{border:1px solid #dce3e7;border-radius:10px;background:#fff;text-align:left;padding:18px;min-height:104px;color:#1a2c35;cursor:pointer}.home-stat>b{font-size:28px;line-height:1.2;display:block;color:#183b4e}.home-stat>span{font-size:13px;font-weight:600;display:block;margin-top:6px}.home-stat>small{display:block;font-size:11px;color:#596970;margin-top:8px}.home-stat:hover{border-color:#e96b25;background:#fffaf6}
@media(max-width:480px){.topbar{gap:8px}.topbar .brand.compact .brand-enovo{display:none}.topbar .brand.compact .brand-wenovo{border:0;padding:0;margin:0}.top-actions{gap:5px}.top-actions .icon-btn,.top-actions .button{min-width:40px;padding:8px}.top-actions [data-install-wenovo]{display:none}.account-btn{padding:4px;gap:0}.app-update-notice{flex-direction:column;align-items:stretch}}
.customer-feature-switch:focus-within{outline:3px solid #2e799d;outline-offset:4px;border-radius:20px}
html{scroll-padding-bottom:var(--wenovo-update-space,0px)}.app-update-space{height:var(--wenovo-update-space,0px);pointer-events:none}
.app-update-notice{position:fixed;right:20px;bottom:20px;z-index:500;display:flex;gap:18px;align-items:center;background:#fff;border:1px solid #dce3e7;border-left:4px solid #e96b25;border-radius:10px;padding:18px;max-width:calc(100vw - 40px);max-height:calc(100dvh - 40px);overflow:auto;box-shadow:0 8px 32px #18242b25}.app-update-notice b,.app-update-notice small{display:block}.app-update-notice small{margin-top:5px;color:#596970}
#mainNav .admin-only-nav:not(.active){border-left:0!important;box-shadow:none!important}
.task-filters{margin-bottom:18px}.task-filters .field{margin:0}.review-task-table td:nth-child(2){min-width:180px}.review-task-table td:nth-child(3){min-width:150px}.review-task-table td:nth-child(4){white-space:nowrap}.review-task-table td:nth-child(6){min-width:100px}
.review-task-table td:first-child{white-space:nowrap;min-width:108px}.endurance-task-bulk{padding:12px;gap:12px;align-items:center;margin-bottom:18px}.endurance-task-bulk .check{min-height:44px}.endurance-task-bulk .field{margin:0}.endurance-task-bulk small{font-size:11px}
.endurance-today-card li{display:flex}.endurance-today-card small{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}.endurance-today-card .today-empty{font-size:13px;color:#596970;min-height:80px;align-items:center}.endurance-today-grid{align-items:start}
@media(min-width:1025px){body:not(.ux-tooling-focus) .sidebar{position:sticky;top:var(--topbar);height:calc(100dvh - var(--topbar))}body.ux-tooling-focus .sidebar{display:flex!important;overflow:hidden!important}}
@media(max-width:1180px){.content{padding:24px}.compact-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1024px){.sidebar{display:flex!important;overflow:hidden!important}.content{padding:22px 18px!important}.page-head h1{font-size:27px}.sidebar nav{flex:1}.card{padding:18px}.endurance-today-grid{grid-template-columns:1fr}.login-copy h1{font-size:34px}}
@media(max-width:760px){.content{padding:18px 12px!important}.page-head h1{font-size:25px}.card{padding:16px}.compact-stat-grid{gap:10px}.compact-stat-grid article{padding:13px;gap:8px;align-items:flex-start;flex-direction:column}.compact-stat-grid article>b{font-size:26px}.data-table td,.data-table th{padding:11px}.button.small{min-height:44px}.endurance-today-card{padding:14px}.endurance-today-card li{flex-wrap:wrap}.endurance-today-card li>small{max-width:45%}.modal{border-radius:0;max-height:100dvh}.login-card{padding:24px}.login-copy h1{font-size:30px}}

.system-inbox-reference{display:block;margin-top:3px;color:var(--muted,#536a78);font-size:12px;overflow-wrap:anywhere}.system-inbox-row>div{min-width:0}
body:has(#wenovoManualOverlay:not([hidden])) #modalBackdrop:not(.hidden){z-index:12500}

/* Bound dialogs to their actual fixed container, also when content is enlarged.
   Viewport units alone can make a centered grid item taller than its container. */
#modalBackdrop{grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr)}
#modalBackdrop>.modal{min-width:0;min-height:0;max-height:100%}

/* Preserve every header action at narrow phone widths. */
@media(max-width:360px){
  .topbar{gap:4px;padding-inline:8px}
  .topbar .brand.compact{gap:0}
  .topbar .brand.compact .brand-divider{display:none}
  .topbar .top-actions{gap:2px}
  .topbar>#menuButton,.topbar .top-actions>.icon-btn,.topbar .account-btn{min-width:44px;width:44px;min-height:44px;padding:4px}
  .topbar .account-btn .avatar{width:32px;height:32px}
}

/* Keep the mobile menu help card above its fixed bottom navigation. */
@media(max-width:900px){
  .wenovo-mobile-app-mode .sidebar{padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))}
}
