/* Light enterprise portal. Scoped business content; shared navigation retains its routes. */
:root{--portal-blue:#3478e5;--portal-text:#182538;--portal-muted:#69788d;--portal-line:#e9edf3}
body[data-access-mode="internal"]{display:block!important;background:#f6f8fb;color:var(--portal-text);font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif}
body[data-access-mode="internal"] .sidebar{position:fixed!important;left:0;top:0;bottom:0;overflow-y:auto}
body[data-access-mode="internal"] .shell{box-sizing:border-box}
.portal-work-counts{display:flex;gap:16px;margin:2px 0 8px}.portal-work-counts button{background:none;border:0;padding:0;color:#8b9aaf;font-size:11px}.portal-work-counts b{font-size:14px;font-weight:500;color:#3478e5;margin-left:4px}
#dashboard .portal-home .home-section-head{flex-direction:row!important;align-items:center!important;text-align:left;min-height:24px}
#dashboard .portal-home .home-welcome{margin-bottom:0!important}
#dashboard .portal-home .home-welcome:after{display:none}
#dashboard .portal-home .flow-quick-line{flex-direction:row!important}
.portal-task-notice{background:#fff;border:1px solid #e9edf3;border-radius:8px;color:#69788d;font-size:12px;padding:8px 12px;white-space:nowrap}
@media(max-width:767px){.portal-task-notice{display:none}}
@media(min-width:1101px){.portal-home .portal-shortcuts:not(:has(.portal-shortcut:nth-child(7))){grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(min-width:901px){body.sidebar-collapsed[data-access-mode="internal"] .sidebar{width:64px!important;overflow:visible}body.sidebar-collapsed[data-access-mode="internal"] .shell{margin-left:64px!important;width:calc(100% - 64px)!important}.sidebar-collapsed #nav .nav-group-items{background:#fafbfd!important;border:1px solid #e9edf3!important;box-shadow:0 8px 28px #24354b12!important}}
body[data-access-mode="internal"] .sidebar{width:210px!important;background:#fafbfd!important;color:#69788d!important;border-right:1px solid #e9edf3;box-shadow:none!important;padding:20px 12px!important}
body[data-access-mode="internal"] .sidebar .brand{color:#182538!important;padding:0 14px 24px!important;letter-spacing:1px}
.sidebar .brand strong{font-size:23px!important}.sidebar .brand span{font-size:10px!important;letter-spacing:1.4px;color:#69788d!important}
body[data-access-mode="internal"] .sidebar :is(.nav,.nav-group-title,.nav-subgroup-title){color:#69788d!important;background:transparent!important;border:0!important;box-shadow:none!important;min-height:43px;border-radius:9px!important;font-size:14px!important}
body[data-access-mode="internal"] .sidebar :is(.nav,.nav-group-title,.nav-subgroup-title):hover{background:#f0f3f8!important;color:#3478e5!important}
body[data-access-mode="internal"] .sidebar .nav.active{background:#e8f1ff!important;color:#3478e5!important;font-weight:600}
body[data-access-mode="internal"] .sidebar .nav-group{border:0!important;background:transparent!important;margin:3px 0!important}
body[data-access-mode="internal"] .sidebar .nav-compact-icon{color:inherit!important}.sidebar .nav-compact-icon svg{width:18px;height:18px}
body[data-access-mode="internal"] .shell{margin-left:210px!important;width:calc(100% - 210px)!important;max-width:none!important;padding:0 20px 20px!important;background:#f6f8fb!important}
body[data-access-mode="internal"] .topbar{height:64px;min-height:64px;margin:0!important;padding:8px 0!important;border:0!important;background:transparent!important;display:flex;align-items:center;gap:18px;box-shadow:none!important}
.topbar:has(#portal-search)>div:first-of-type:has(#pageTitle){display:none}.topbar #portal-search{display:flex;align-items:center;gap:12px;max-width:580px;width:55%;height:40px;padding:0 14px;background:#fff;border:1px solid #edf0f5;border-radius:10px;margin-right:auto}.topbar #portal-search input{border:0!important;box-shadow:none!important;background:transparent!important;min-width:0;flex:1;padding:0;font-size:13px;color:#182538}.topbar #portal-search button{border:0;background:#f2f6fc;color:#69788d;font-size:12px;padding:4px 8px;border-radius:5px}.topbar .auth-user-bar{margin-left:auto;background:transparent;border:0;white-space:nowrap;color:#182538}.topbar .auth-user-bar button{border:1px solid #e9edf3;color:#69788d;background:white}
#dashboard .portal-home{max-width:none!important;margin:0!important;display:grid!important;grid-template-columns:minmax(0,1fr) 310px;gap:16px;color:#182538;padding:0!important;width:100%!important}
.portal-home *{box-sizing:border-box}.portal-home :is(button,input,textarea){font:inherit}.portal-home button{cursor:pointer;transition:background .16s,box-shadow .16s,transform .16s}.portal-home button:active{transform:translateY(1px)}.portal-home :is(button,a,input,textarea):focus-visible,#portal-search:focus-within{outline:2px solid #8bb7fc;outline-offset:3px}.portal-home .portal-main,.portal-home .portal-rail{min-width:0;display:flex;flex-direction:column;gap:16px}
#dashboard .portal-home .home-welcome{height:240px;min-height:240px;padding:32px 28px!important;display:flex!important;justify-content:space-between;align-items:flex-start!important;background:linear-gradient(90deg,rgba(248,251,255,.92),rgba(248,251,255,.48) 42%,rgba(255,255,255,0) 72%),url('/portal-hero.png') center 54%/cover!important;border:0!important;border-radius:16px!important;box-shadow:none!important;position:relative;overflow:hidden;color:#182538!important}
.portal-home .home-welcome .welcome-kicker{font-size:14px!important;color:#566a80!important;margin:0 0 12px!important;letter-spacing:.4px}.portal-home .home-welcome h1{font-size:32px!important;color:#152337!important;line-height:1.4!important;margin:0 0 12px!important;font-weight:650!important;letter-spacing:.5px}.portal-home .welcome-line{margin:0!important;font-size:15px!important;color:#425971!important;line-height:1.7!important}.portal-home .welcome-weather{font-size:12px!important;margin-top:18px!important;color:#69788d!important}
.portal-home .portal-shortcuts{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.portal-home .portal-shortcut{min-width:0;border:1px solid #f0f3f8;background:white;border-radius:14px;padding:15px 4px 12px;display:flex;align-items:center;flex-direction:column;gap:7px;box-shadow:0 3px 15px #25395803}.portal-home .portal-shortcut:hover{background:#fafdff;box-shadow:0 5px 20px #3478e514;transform:translateY(-2px)}.portal-shortcut svg{width:30px;height:30px}.portal-shortcut>span{color:#408cff}.portal-shortcut:nth-child(2)>span{color:#33bfbd}.portal-shortcut:nth-child(3)>span{color:#9b7bea}.portal-shortcut:nth-child(4)>span{color:#efb449}.portal-shortcut:nth-child(6)>span{color:#ef7289}.portal-shortcut:nth-child(7)>span{color:#5bb0ca}.portal-home .portal-shortcut strong{font-size:13px;font-weight:600;color:#182538;white-space:normal}.portal-shortcut small{font-size:11px;color:#8c9aae;line-height:1.5;text-align:center}
.portal-home .home-card{border:1px solid #f0f3f8!important;background:#fff!important;border-radius:14px!important;padding:18px!important;box-shadow:0 4px 20px #25395803!important;margin:0!important;min-width:0;overflow:hidden}.portal-home .portal-work-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:14px}.portal-home .home-section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 10px!important}.portal-home .home-section-head h2{font-size:16px!important;font-weight:650;line-height:1.5;margin:0;color:#182538}.portal-home .portal-text{border:0;background:transparent;color:#3478e5;font-size:12px;padding:2px 0;white-space:nowrap}.portal-home .portal-text:hover{color:#1759be;text-decoration:underline}.portal-home .portal-tabs{display:flex;gap:16px;border-bottom:1px solid #e9edf3;margin-bottom:8px;overflow-x:auto;scrollbar-width:thin}.portal-tabs button{padding:7px 0 10px;background:none;border:0;border-bottom:2px solid transparent;color:#8090a5;white-space:nowrap;font-size:12px!important;border-radius:0}.portal-tabs button.active{color:#3478e5;border-bottom-color:#3478e5}.portal-tabs small{font-size:11px}.portal-home .portal-empty{font-size:12px;color:#91a0b2;line-height:1.9;padding:22px 4px;margin:0;text-align:center}
.portal-task{width:100%;display:flex;gap:10px;align-items:flex-start;text-align:left;padding:16px 0;border:0;border-bottom:1px solid #edf1f6;background:transparent;min-width:0}.portal-task:hover,.portal-customer:hover{background:#f8fbff}.portal-task:last-child{border:0}.task-check{height:16px;width:16px;min-width:16px;border:1.5px solid #cdd6e1;border-radius:4px;margin-top:2px}.task-body{flex:1;min-width:0}.task-body strong{font-size:12px;font-weight:500;line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#24354b}.task-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.task-tags em{font-style:normal;font-size:10px;color:#5a87bd;background:#edf5ff;padding:3px 5px;border-radius:4px}.task-tags em:first-child{background:#fff4e5;color:#c68b38}.task-side{display:flex;flex-direction:column;gap:14px;text-align:right;flex-shrink:0;font-size:11px}.task-side time{color:#69788d}.task-side time.late{color:#e56b77}.task-side small{font-size:11px;color:#69788d}.portal-customer{display:flex;align-items:center;width:100%;gap:10px;border:0;background:none;text-align:left;padding:10px 0}.company-avatar{display:grid;place-items:center;width:34px;height:34px;flex-shrink:0;border-radius:50%;background:#ddf5f4;color:#31b6b1;font-size:13px}.company-avatar.tone-1{background:#e4eeff;color:#3478e5}.company-avatar.tone-2{background:#eee9ff;color:#9270dd}.company-avatar.tone-3{background:#e8edf7;color:#687da6}.portal-customer>span:nth-child(2){min-width:0;flex:1}.portal-customer strong{font-size:12px;font-weight:500;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#24354b}.portal-customer small{font-size:11px;color:#8c9aae;display:block;margin-top:5px}.customer-arrow{color:#afbed0}
.calendar-heading{display:flex;align-items:center;gap:14px;padding:6px 0 14px}.calendar-heading strong{margin-right:auto;font-size:15px}.calendar-heading button{border:0;background:none;color:#69788d;font-size:22px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center}.calendar-grid>small{font-size:11px;color:#91a0b2;padding:4px 0}.calendar-grid button{border:0;background:none;border-radius:50%;height:30px;width:30px;justify-self:center;position:relative;font-size:12px;color:#24354b}.calendar-grid button:hover{background:#e8f1ff}.calendar-grid button.selected{background:#3478e5;color:#fff}.calendar-grid button.today{font-weight:700}.calendar-grid i{position:absolute;bottom:2px;left:calc(50% - 1.5px);width:3px;height:3px;border-radius:50%;background:#e5a93d}.calendar-agenda{padding-top:16px}.calendar-agenda>small{font-size:10px;color:#94a0b1}.calendar-agenda>button{display:flex;gap:10px;width:100%;border:0;border-left:3px solid #7eaff9;border-radius:2px;background:none;text-align:left;padding:8px;margin-top:10px;color:#24354b}.calendar-agenda time{font-size:11px}.calendar-agenda strong{font-size:12px;font-weight:500;line-height:1.5}
.portal-home .home-note-card{display:block!important}.portal-home #home-quick-note{width:100%;min-height:90px!important;height:90px;border:1px solid #e9edf3!important;border-radius:10px!important;background:#f9fbfd!important;padding:12px;resize:vertical;font-size:12px;color:#24354b}.portal-home .home-note-action-buttons{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}.portal-home .btn{font-size:11px!important;min-height:30px;padding:6px 9px!important;border-radius:7px!important;line-height:1.5}.portal-home .btn.primary{background:#3478e5!important;border:1px solid #3478e5!important;color:white!important}.portal-home .btn.ghost{background:#f7faff!important;border:1px solid #e9edf3!important;color:#69788d!important}.portal-note-today{margin-top:16px;padding-top:12px;border-top:1px solid #edf1f6}.portal-note-today h3{font-size:12px;margin:0 0 8px}.portal-home .home-note-empty{font-size:11px;color:#91a0b2}.portal-home .home-note-row{display:block;padding:10px 0;background:none;border:0;border-bottom:1px solid #e9edf3}.portal-home .home-note-row p{font-size:12px;overflow-wrap:anywhere}.portal-home .home-note-row small{font-size:10px;color:#94a0b1}.portal-home .home-note-row-actions{display:flex;gap:4px;flex-wrap:wrap;margin-top:8px}.portal-home #home-note-status{font-size:10px;color:#91a0b2}
.portal-home .flow-quick-line{display:flex;gap:6px;margin-top:10px}.portal-home .flow-quick-line input{min-width:0;width:100%;border:1px solid #e9edf3;border-radius:7px;padding:8px;font-size:11px;background:#f9fbfd}.portal-query-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 8px;margin-top:18px}.portal-query-grid button{display:flex;align-items:center;flex-direction:column;gap:7px;border:0;background:none;font-size:11px;color:#7b8da5;padding:0;white-space:nowrap}.portal-query-grid button>span{display:grid;place-items:center;width:40px;height:40px;background:#f0f6ff;color:#3478e5;border-radius:15px}.portal-query-grid svg{width:21px;height:21px}.portal-query-grid button:hover>span{background:#deebff}
.portal-news-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:18px;margin-top:14px}.portal-news-lead{display:grid;grid-template-columns:37% minmax(0,1fr);gap:14px;align-items:stretch}.portal-news-cover{border-radius:10px;background:url('/portal-hero.png') 68% center/cover;min-height:180px}.portal-home .reading-row{display:flex!important;flex-direction:column;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;min-width:0;margin:0!important}.portal-home .reading-row-title{font-size:13px!important;line-height:1.7!important;color:#24354b!important;font-weight:600!important;text-decoration:none}.portal-home .reading-row-title:hover{color:#3478e5!important}.portal-home .reading-row-summary{font-size:12px!important;line-height:1.8!important;color:#7c8da2!important;margin:8px 0!important;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.portal-home .reading-row-meta{display:flex;gap:8px;font-size:10px!important;color:#91a0b2!important;flex-wrap:wrap}.portal-home .reading-card-actions{display:flex;gap:5px;margin-top:10px!important;border:0!important;padding:0!important;flex-wrap:wrap}.portal-home .reading-tag{background:#e9f2ff;color:#3478e5;border-radius:4px;padding:1px 4px}.portal-news-list{display:flex;flex-direction:column;gap:10px}.portal-news-list .reading-row{border-bottom:1px solid #edf1f6!important;padding-bottom:10px!important}.portal-news-list .reading-row-summary{display:none!important}.portal-news-list .reading-row-title{font-size:11px!important;font-weight:500!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.portal-news-list .reading-card-actions{margin-top:5px!important}.portal-news-list .reading-card-actions .btn{font-size:10px!important;padding:2px 5px!important;min-height:22px}.portal-home .home-skeleton{background:linear-gradient(90deg,#f3f6fa,#eaf0f7,#f3f6fa);height:55px;border-radius:8px;margin:12px 0}
@media(min-width:1750px){#dashboard .portal-home{grid-template-columns:minmax(0,1fr) 330px}.portal-home .home-welcome{height:250px!important}.portal-home .home-card{padding:22px!important}.portal-task{padding:20px 0}.portal-customer{padding:14px 0}.portal-news-cover{min-height:210px}.portal-shortcut{min-height:112px}.portal-home .portal-work-grid{min-height:315px}}
@media(max-width:1450px) and (min-width:1101px){body[data-access-mode="internal"] .shell{padding:0 14px 16px!important}#dashboard .portal-home{grid-template-columns:minmax(0,1fr) 280px;gap:12px}.portal-home .portal-main,.portal-home .portal-rail{gap:12px}.portal-home .home-card{padding:15px!important}.portal-home .portal-shortcuts{gap:6px}.portal-home .portal-shortcut strong{font-size:11px}.portal-shortcut small{font-size:10px}.portal-home .portal-work-grid{grid-template-columns:1.2fr 1fr;gap:12px}.portal-home .portal-tabs{gap:12px}.task-side{font-size:10px}.task-check{display:none}.portal-news-grid{grid-template-columns:1fr}.portal-news-list{display:grid;grid-template-columns:1fr 1fr}.portal-home .home-welcome{padding:28px 22px!important}.portal-home .home-welcome h1{font-size:30px!important}}
@media(max-width:1100px){#dashboard .portal-home{grid-template-columns:minmax(0,1fr)}.portal-home .portal-rail{display:grid;grid-template-columns:1fr 1fr;align-items:start}.portal-home .portal-shortcuts{grid-template-columns:repeat(4,minmax(0,1fr))}.portal-news-grid{grid-template-columns:1fr 1fr}}
@media(max-width:767px){body[data-access-mode="internal"] .shell{width:100%!important;margin-left:0!important;padding:0 12px 20px!important}body[data-access-mode="internal"] .sidebar{width:260px!important}.topbar #portal-search{width:100%;max-width:none;height:38px}.topbar .auth-user-bar{display:none!important}body[data-access-mode="internal"] .topbar{height:54px;min-height:54px;padding:8px 0!important}#dashboard .portal-home{gap:12px}.portal-home .home-welcome{height:205px!important;min-height:205px;padding:24px 18px!important;background-position:60% center!important}.portal-home .home-welcome h1{font-size:25px!important}.portal-home .welcome-line{font-size:12px!important}.portal-home .welcome-kicker{font-size:12px!important}.portal-home .portal-shortcuts{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.portal-home .portal-shortcut{padding:12px 3px;gap:7px;min-height:94px}.portal-home .portal-shortcut strong{font-size:11px}.portal-shortcut small{display:none}.portal-shortcut svg{width:26px;height:26px}.portal-home .portal-work-grid,.portal-home .portal-rail{display:flex;flex-direction:column;gap:12px}.portal-home .portal-rail>.home-card{width:100%}.portal-home .home-card{padding:16px!important}.portal-news-grid{grid-template-columns:1fr}.portal-news-lead{grid-template-columns:30% minmax(0,1fr)}.portal-news-cover{min-height:160px}.portal-home .policy-tabs{gap:16px}.calendar-grid button{width:34px;height:34px}.portal-home .home-note-card{overflow:visible}.portal-home .task-side{max-width:95px}.portal-home .task-body strong{font-size:12px}.portal-home .reading-row-title{font-size:12px!important}.portal-home .reading-drawer{width:min(100%,560px)}.portal-home #home-modal-root .modal-card{max-width:calc(100vw - 24px)}}
@media(min-width:1750px){.portal-home .portal-task{padding:14px 0}}
