.portal-userbar{display:flex;align-items:center;justify-content:flex-end;gap:9px;font-size:11px}.portal-userbar button{padding:7px 10px;font-size:10px}.portal-userbar>span{color:var(--ink)}.portal-login-body{background:#f1f6ff}.portal-login-body main{padding:0}.login-shell{display:grid;grid-template-columns:1.15fr 1fr;max-width:1050px;min-height:640px;margin:8vh auto;border:1px solid #d4dfef;border-radius:18px;overflow:hidden;background:#ffffff;box-shadow:0 20px 70px #1834580a}.login-story{padding:45px;background:#e7effb;display:flex;flex-direction:column;justify-content:space-between;gap:60px}.login-story h1{font-size:34px;line-height:1.6;margin:16px 0}.login-story p{font-size:13px;color:var(--muted);line-height:2.1}.login-story>small{font-size:10px;color:var(--muted)}.login-card{padding:55px 46px;align-self:center}.login-card h2{font-size:26px;font-weight:500;margin:14px 0}.login-card>.muted{line-height:1.9;font-size:12px}.login-card form{margin-top:27px}.login-card label,.portal-dialog form>label,.portal-user-form label{display:block;font-size:12px;color:var(--muted);margin-bottom:17px}.login-card input,.portal-dialog form>label input,.portal-user-form input{display:block;width:100%;border:1px solid #d4dfef;border-radius:6px;padding:12px;color:var(--ink);background:white;margin-top:9px;min-width:0}.login-card form>button{width:100%;padding:13px;margin-top:7px}.login-tip{font-size:10px;color:var(--muted);line-height:1.9;margin-top:22px}.portal-dialog{width:min(520px,92vw);max-height:90vh;overflow:auto;border:1px solid #d4dfef;border-radius:12px;padding:24px;color:var(--ink);background:#ffffff}.portal-dialog::backdrop{background:#18345855}.portal-dialog h2{font-size:20px;font-weight:500;margin-bottom:18px}.portal-dialog-actions{display:flex;gap:9px;justify-content:flex-end;align-items:center;margin-top:19px}.flow-sheet-scroll{max-height:60vh;min-height:210px;overflow:auto}.flow-grid{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font-size:12px}.flow-grid thead th{position:sticky;top:0;background:#e7effb;color:var(--ink);border-right:1px solid #d4dfef;border-bottom:1px solid #d4dfef;padding:10px 11px;height:72px;text-align:center;font-weight:500;white-space:pre-line;line-height:1.6;min-width:150px;max-width:300px;z-index:3}.flow-grid thead tr:nth-child(2) th{top:72px;background:#f1f6ff;height:76px;font-weight:400}.flow-grid td{width:175px;min-width:175px;max-width:175px;border-right:1px solid #e7effb;border-bottom:1px solid #e7effb;padding:0;vertical-align:middle;background:white;overflow-wrap:anywhere}.flow-grid tbody td:has(textarea){height:54px}.flow-grid textarea{display:block;width:100%;height:54px;resize:vertical;min-height:54px;border:0;border-radius:0;padding:12px 10px;color:var(--ink);background:transparent;outline:none;font-size:12px;line-height:1.7}.flow-grid textarea:focus{box-shadow:inset 0 0 0 2px #6b83a3;background:#f8fbff}.flow-grid .flow-row-number{width:44px;min-width:44px;max-width:44px;left:0;position:sticky;text-align:center;background:#f1f6ff;color:var(--muted);font-size:10px;border-right:1px solid #d4dfef;z-index:2;padding:8px}.flow-grid thead .flow-row-number{z-index:5}.flow-grid tbody td:not(:has(textarea)){padding:12px 10px;white-space:pre-wrap;max-height:120px}.flow-grid tbody td:last-child:has(button){min-width:80px;width:80px;text-align:center}.flow-grid tbody th{top:auto}.employee-submit-bar{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;padding:22px 0}.employee-submit-bar strong{font-size:12px;font-weight:400;color:var(--muted)}.employee-submit-bar>button{flex-shrink:0;padding:13px 22px}.employee-submit-bar .feedback{max-width:700px}.flow-import-dialog{width:min(1050px,94vw)}.flow-import-settings{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:20px}.flow-import-settings label{font-size:11px;color:var(--muted)}.flow-import-settings select,.flow-import-settings input{display:block;margin-top:7px;border:1px solid var(--line);padding:9px;border-radius:5px;background:white;color:var(--ink)}.flow-import-settings input{width:75px}.flow-import-settings label:first-child{max-width:45%}.flow-import-settings select{max-width:100%}.flow-mapping{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0}.flow-mapping label{font-size:10px;color:var(--muted);line-height:1.8;min-width:0;white-space:pre-line}.flow-mapping select{display:block;width:100%;font-size:11px;margin-top:7px}.flow-ignore{display:flex;align-items:center;gap:8px;font-size:11px;margin-top:18px;color:var(--muted)}.flow-detail-dialog{width:min(1450px,96vw)}.flow-detail-dialog>.muted{margin-bottom:18px}.portal-pagination{display:flex;justify-content:flex-end;align-items:center;gap:12px;margin-top:16px;color:var(--muted);font-size:11px}.portal-user-form{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:16px;align-items:end;margin-top:20px}.portal-user-form label{margin:0}.portal-user-form button{height:42px}.portal-admin-filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.portal-admin-filters select{font-size:11px}.portal-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:22px}.portal-counts>div{background:white;border:1px solid var(--line);border-radius:9px;padding:19px}.portal-counts span{font-size:11px;color:var(--muted)}.portal-counts b{display:block;font-size:30px;font-weight:500;margin-top:13px}.portal-role-label{display:block;font-size:10px;color:var(--muted);margin:14px 0 0}.portal-user-table td:last-child{display:flex;gap:8px}.portal-account-info{background:#f1f6ff;border:1px solid #e7effb;padding:13px 16px;border-radius:7px;font-size:11px;color:var(--muted);line-height:1.9;margin-bottom:20px}.portal-dialog input:focus,.login-card input:focus{outline:2px solid #b6c8df;outline-offset:1px}.flow-sheet-panel:focus-within{border-color:#b6c8df}
@media(max-width:850px){.login-shell{margin:25px;min-height:600px;grid-template-columns:1fr 1fr}.login-story{padding:30px}.login-story h1{font-size:27px}.login-card{padding:35px 28px}.portal-user-form{grid-template-columns:1fr 1fr}.flow-mapping{grid-template-columns:1fr 1fr}}@media(max-width:650px){.login-shell{display:block;margin:18px}.login-story{gap:25px;padding:25px}.login-story>small,.login-story>div p{display:none}.login-story h1{font-size:23px;margin:10px 0}.login-story .brand{font-size:20px}.login-card{padding:28px 25px}.login-card h2{font-size:23px}.portal-userbar{gap:5px;font-size:10px;flex-wrap:wrap}.portal-userbar button{padding:6px 7px;font-size:9px}.employee-layout header{height:auto;min-height:70px;padding:12px 0;gap:10px}.employee-submit-bar{flex-direction:column}.employee-submit-bar>button{width:100%}.flow-mapping{grid-template-columns:1fr}.portal-user-form{grid-template-columns:1fr}.portal-counts{gap:8px}.portal-counts>div{padding:13px}.portal-counts span{font-size:9px}.portal-counts b{font-size:25px}.flow-import-settings label:first-child{max-width:100%}.flow-sheet-scroll{max-height:55vh}.portal-user-table td:last-child{display:table-cell}.portal-user-table button{margin:3px}}

#portal-account-status:empty{display:none}.portal-admin-account{padding-top:12px}.flow-grid td:nth-child(2){min-width:175px}.flow-grid textarea{resize:none}.employee-layout .brand small{font-size:8px;letter-spacing:1.4px}


/* Shared high-contrast blue and white portal treatment. */
.portal-login-body{background:#f3f7fd}.login-shell{border-color:#c9d8ed;box-shadow:0 18px 60px #18345812}.login-story{background:#eaf2ff}.login-story h1{color:#123d78}.login-story p,.login-story>small,.login-tip{color:#425f82}.login-card input,.portal-dialog form>label input,.portal-user-form input{border-color:#b9cbe3;color:#142b49;font-size:14px}.login-card label,.portal-dialog form>label,.portal-user-form label{font-size:13px;color:#344e70}.login-card>.muted{font-size:13px}.login-tip{font-size:12px}.portal-userbar,.portal-userbar>span{color:#23466f;font-size:12px}.portal-userbar button{font-size:11px}.flow-grid{font-size:13px}.flow-grid thead th{background:#1e4f91;color:#ffffff;border-color:#6689b7;font-size:13px;font-weight:600}.flow-grid thead tr:nth-child(2) th{background:#e8f0ff;color:#193d6d;border-color:#c0d0e7;font-weight:600}.flow-grid td{border-color:#cbd8e9}.flow-grid tbody tr:nth-child(even)>td{background:#f7faff}.flow-grid textarea{font-size:13px;color:#142b49}.flow-grid textarea:focus{box-shadow:inset 0 0 0 2px #2563eb;background:#f0f6ff}.flow-grid .flow-row-number{background:#edf3fc;color:#3d5d82;border-color:#c0d0e7;font-size:12px}.flow-grid thead .flow-row-number{background:#1e4f91;color:#ffffff}.employee-submit-bar strong{font-size:13px;color:#344e70}.flow-import-settings label,.flow-mapping label,.flow-ignore{font-size:12px;color:#3d5573}.portal-pagination{font-size:12px;color:#425f82}.portal-counts span{font-size:12px;color:#4d617c}.portal-counts b{color:#173e78}.portal-account-info{background:#edf4ff;border-color:#c3d5ef;color:#294d7d;font-size:12px}.portal-dialog input:focus,.login-card input:focus{outline:2px solid #2563eb;outline-offset:1px}.flow-sheet-panel:focus-within{border-color:#8aade1}.portal-role-label{color:#4d617c}
@media(max-width:650px){.portal-userbar{font-size:11px}.portal-userbar button{font-size:10px}.portal-counts span{font-size:11px}.login-tip{font-size:11px}}
.eyebrow,.intro>div>p,.home-chart-note,.home-footer-note>span:first-child{display:none}.submission-meta-heading,.flow-grid .submission-meta-cell{min-width:150px}.flow-grid .submission-meta-cell{white-space:normal}.sheet-bottom .portal-pagination{margin:0 0 0 auto;padding:7px 0}.feedback:empty{display:none}.employee-submit-bar{align-items:center}.employee-submit-bar:has(.feedback:empty)>div{min-height:1px}
.flow-grid .submission-meta-heading:nth-child(2),.flow-grid .submission-meta-cell:nth-child(2){min-width:110px;width:110px}.flow-grid .submission-meta-heading:nth-child(3),.flow-grid .submission-meta-cell:nth-child(3){min-width:170px;width:170px}.flow-grid .submission-meta-heading:nth-child(4),.flow-grid tbody td:nth-child(4):has(button){min-width:90px;width:90px}.finance-card p{display:none}
.home-footer-note{display:none}
.flow-grid th,.flow-grid td,.flow-grid textarea,.flow-grid input{text-align:center;vertical-align:middle}.flow-grid textarea{align-content:center}.flow-grid td button{margin-inline:auto}
.employee-submit-actions{display:flex;align-items:center;gap:10px;margin-left:auto;flex-shrink:0}.employee-submit-actions>button{padding:13px 22px}.metric-current{color:var(--ink)}.metric-delta{font-weight:600}.metric-increase{color:#16803b}.metric-decrease{color:#c42b24}.metric-unchanged{color:#526780}.employee-metric-display{position:absolute;inset:0;display:flex;flex-wrap:wrap;align-content:center;justify-content:center;align-items:center;gap:1px;padding:8px;pointer-events:none;overflow-wrap:anywhere}.flow-grid td.has-collected-metric{position:relative}.has-collected-metric textarea{opacity:0}.has-collected-metric:focus-within textarea{opacity:1}.has-collected-metric:focus-within .employee-metric-display{display:none}#employee-status a{text-decoration:underline;color:#1d4ed8}@media(max-width:650px){.employee-submit-actions{width:100%;margin-left:0}.employee-submit-actions>button:last-child{flex:1}}

.employee-layout>main{margin:0 auto;align-self:stretch}.employee-layout>main>header{position:sticky;top:0;z-index:30;background:var(--bg);box-shadow:0 1px 0 var(--line)}

.employee-locator{display:flex;align-items:center;gap:7px}.employee-locator input{width:170px;min-width:100px;padding:8px 10px;border:1px solid #c0d0e7;border-radius:6px;background:#fff;color:#193d6d;font-size:12px}.employee-locator input:focus{outline:2px solid #2563eb;outline-offset:1px}#employee-locate-result{font-size:11px;color:#245ca5;white-space:nowrap}#employee-grid .employee-located-row>td,#employee-grid .employee-located-row>th{background:#deebff;box-shadow:inset 0 2px #4d86ee,inset 0 -2px #4d86ee}@media(max-width:850px){#employee-editor .sheet-toolbar{flex-wrap:wrap;gap:12px}#employee-editor .sheet-actions{flex-wrap:wrap}.employee-locator input{width:140px}}

button.portal-danger{color:#b42318;border-color:#efb4af;background:#fff}button.portal-danger:hover{background:#fff1f0;border-color:#d7776f}#admin-detail-delete{margin-right:auto}#admin-flow-deleted[aria-pressed="true"]{color:#fff;background:#245bd6;border-color:#245bd6}

/* Keep all worksheet content centered in employee and admin views. */
table th,table td,table td.metric-cell,.spreadsheet th,.spreadsheet td,.spreadsheet input,.spreadsheet .video-sheet-number,.flow-grid th,.flow-grid td,.flow-grid textarea,.flow-grid input{text-align:center;vertical-align:middle}.flow-grid textarea{align-content:center}.employee-metric-display{text-align:center;justify-content:center;align-items:center;align-content:center}

.login-story{justify-content:center;align-items:center;gap:0}.login-card h2{margin-top:0}

.home-detail th:last-child,.home-detail th:nth-child(2),.home-detail td.home-number,.home-detail th,.home-detail td{text-align:center;vertical-align:middle}

.admin-topnav{display:flex;align-items:center;gap:16px;min-width:0}.admin-inbox{position:relative;flex-shrink:0}.inbox-count{display:inline-block;border-radius:12px;background:#1d4ed8;color:#fff;font-size:10px;min-width:18px;padding:2px 5px;margin-left:3px}.inbox-count[hidden]{display:none}.admin-inbox-panel{position:absolute;top:calc(100% + 12px);left:0;width:min(420px,calc(100vw - 40px));background:#fff;border:1px solid #c3d4eb;border-radius:10px;box-shadow:0 12px 36px #173b6626;z-index:60;padding:16px}.inbox-heading{display:flex;justify-content:space-between;align-items:center;font-size:15px}.inbox-tabs{display:flex;gap:8px;margin:14px 0 5px}.inbox-tabs button{flex:1;padding:8px}.inbox-tabs button[aria-pressed=true]{color:#1d4ed8;background:#eaf1ff;border-color:#9ab7ee}#admin-inbox-list{max-height:min(440px,55vh);overflow:auto}.inbox-item{padding:13px 2px;border-bottom:1px solid #e3eaf5}.inbox-item p{font-size:13px;color:#183c6d;white-space:normal}.inbox-item time{display:block;color:#526780;margin:5px 0;font-size:11px}.inbox-view-link{color:#1d4ed8;text-decoration:underline;font-size:12px}.inbox-view-link[aria-disabled=true]{pointer-events:none;opacity:.5}.inbox-empty{padding:24px 0;text-align:center}.inbox-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px;font-size:11px}.flow-grid .submission-action-cell{width:85px;min-width:85px}.flow-grid tr.admin-focused-submission>td,.flow-grid tr.admin-focused-submission>th{background:#e1edff;box-shadow:inset 0 2px #6594e8,inset 0 -2px #6594e8}@media(max-width:650px){.admin-topnav{gap:8px}#breadcrumb{font-size:10px}.admin-inbox-panel{position:fixed;left:15px;top:72px;width:calc(100vw - 30px)}}

.brand{gap:11px;color:#205658;font-family:Arial,'Microsoft YaHei',sans-serif;font-size:29px;font-weight:700;letter-spacing:2px}.brand .logo{flex-shrink:0;width:40px;height:42px;border-radius:12px;background:linear-gradient(140deg,#d6f3e9 0%,#a9dfd5 48%,#7cc9c1 100%);color:#236b63;border:1px solid #b3dfd5;box-shadow:inset 0 1px 0 #ffffffa6,0 3px 9px #3c8c7910}.brand .logo svg{width:26px;height:26px;display:block}.login-story .brand{font-size:40px;gap:15px;letter-spacing:3px}.login-story .brand .logo{width:54px;height:56px;border-radius:16px}.login-story .brand .logo svg{width:34px;height:34px}

.brand-image-frame{display:block;position:relative;overflow:hidden;flex-shrink:0;width:148px;height:58px}.brand-image{position:absolute;left:50%;top:50%;width:240px;height:240px;max-width:none;transform:translate(-50%,-50%);mix-blend-mode:multiply}.login-story .brand-image-frame{width:220px;height:90px}.login-story .brand-image{width:360px;height:360px}

.portal-login-body { background: #f1f5fa; }
.portal-login-body .login-shell {
  min-height: min(490px, 85vh); max-width: 880px; width: calc(100% - 40px);
  margin: clamp(24px, 10vh, 96px) auto; padding: 0;
  border-radius: 16px; box-shadow: 0 14px 44px #17366312;
}
.login-shell .login-story { background: linear-gradient(145deg, #f5f9ff, #e0ebfc); }
.login-shell .login-card { padding: clamp(24px, 3.4vw, 48px); }
.login-shell .login-card h2 { color: #152e50; font-weight: 650; }
@media (max-width: 650px) {
  .portal-login-body .login-shell { min-height: 0; }
  .login-shell .login-story .brand-image-frame { width: 120px; height: 48px; }
  .login-shell .login-story .brand-image { width: 196px; height: 196px; }
}


.date-filter {display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px;padding:9px 16px;background:#f8faff;border-bottom:1px solid #dce5f2;color:#375576;font-size:13px}
.date-filter strong {margin-right:auto;font-weight:600}
.date-filter button,.date-filter input {min-height:30px;padding:3px 10px;border:1px solid #cbd9ed;border-radius:5px;background:#fff;color:#284866;font:inherit}
.date-filter button[aria-pressed="true"] {background:#e7efff;border-color:#8caef5;color:#1746a3;font-weight:600}
.date-filter-custom {display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px}
.date-filter-custom[hidden],table tr[hidden] {display:none!important}
.date-filter-info:empty {display:none}
.date-filter-info {font-size:12px}
@media(max-width:650px){.date-filter{justify-content:flex-start;padding:8px}.date-filter strong{margin-right:4px}.date-filter-custom{width:100%}}

.access-boards {border:1px solid #cfdbec;border-radius:6px;padding:6px 12px;display:flex;flex-wrap:wrap;gap:12px}
.access-boards label {display:inline-flex;align-items:center;flex-direction:row;gap:5px;white-space:nowrap}
.access-boards input[type=checkbox] {width:16px;height:16px;min-height:0}

#access-dialog {width:min(620px,92vw);max-height:88vh;overflow:auto}
.access-boards {grid-column:1/-1;display:grid;gap:10px;min-width:0}
.access-boards section {padding-bottom:8px;border-bottom:1px solid #e1e8f2}
.access-boards section:last-child {padding-bottom:0;border:0}
.access-boards section>label {font-weight:650}
.access-items {padding:6px 0 0 22px;display:flex;gap:6px 16px;flex-wrap:wrap}

/* Shared controls, account forms and sign-in */
:root { --control-line: #c8d3df; --focus-ring: #2766be; }
body { font-family: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif; }
button, .button-link, .ops-back { font-family: inherit; }
button:not(:disabled), .button-link { transition: background-color .15s, border-color .15s; }
button.primary, .layout button.primary { background: #2156ad; border-color: #2156ad; border-radius: 7px; color: white; }
button.primary:hover { background: #17458f; }
.portal-userbar { flex-wrap: wrap; gap: 8px; }
.portal-userbar button.small, .portal-userbar .button-link { min-height: 32px; font-size: 12px; padding: 5px 10px; border-radius: 7px; }
:where(button, a, input, textarea, select, summary):focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.feedback.error { color: #ae2d29; }
dialog[open] { max-width: calc(100vw - 32px); max-height: 88vh; overflow: auto; border: 1px solid #c8d5e3; border-radius: 14px; box-shadow: 0 16px 56px #14294330; }
dialog::backdrop { background: #13284366; }
.access-boards .access-items { gap: 4px 12px; }
.access-items label { min-height: 32px; padding-inline: 5px; border-radius: 5px; }
.access-items label:has(input:checked) { background: #eaf2ff; color: #184982; }
.date-filter { padding: 10px 16px; gap: 4px; background: #fff; border-color: #dce3eb; }
.date-filter strong { color: #41576e; font-size: 13px; }
.date-filter button { min-height: 32px; padding-inline: 12px; border: 1px solid transparent; background: #f2f5f8; color: #415268; }
.date-filter button[aria-pressed="true"] { border-color: #c3d6f3; background: #e4eeff; color: #164a9a; }
.date-filter-custom input { min-height: 32px; border-color: var(--control-line); }
.portal-login-body { background-color: #eef3f8; background-image: radial-gradient(#cdd9e5 .8px, transparent .8px); background-size: 16px 16px; }
.portal-login-body .login-shell { display: block; width: min(424px, calc(100% - 32px)); min-height: 0; margin: clamp(20px, 9vh, 96px) auto; border: 1px solid #d2dce6; border-radius: 16px; background: white; box-shadow: 0 16px 54px #162f4812; }
.login-shell .login-story { display: flex; min-height: 0; padding: 28px 32px 16px; align-items: flex-start; background: white; }
.login-shell .login-story .brand { padding: 0; margin: 0; }
.login-shell .login-story .brand-image-frame { width: 112px; height: 44px; }
.login-shell .login-story .brand-image { width: 180px; height: 180px; }
.login-shell .login-card { width: 100%; padding: 4px 32px 30px; }
.login-shell .login-card h2 { margin: 0 0 20px; font-size: 24px; }
.login-card form input, .portal-user-form input:not([type="checkbox"]), .portal-user-form select { min-height: 40px; border: 1px solid var(--control-line); border-radius: 7px; }
.login-shell .login-card button.primary { min-height: 42px; }
.login-card .feedback:empty { display: none; }
