/* Global services are in the header menu; underlined tabs belong to this area. */
.portal-page{margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#19332d;background:#f5f6f2}
.portal-page .portal-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px max(5vw,20px);background:#f5f6f2;color:#19332d;border-bottom:1px solid #c5d3c8}
.portal-header .brand{display:block;min-width:0;max-width:100%;text-decoration:none;font-size:30px;line-height:1.1;font-weight:750;letter-spacing:-1px;color:#19332d}
.portal-header .brand span{display:block;margin-top:7px;font-size:10px;line-height:1.5;letter-spacing:1.7px;text-transform:uppercase;font-weight:500;overflow-wrap:anywhere}
.portal-header .portal-account-links{display:flex;align-items:center;justify-content:flex-end;gap:12px 20px;flex-wrap:wrap;margin:0;font-size:14px}
.portal-account-links a{padding:8px 0;color:#234f41;text-decoration:underline;text-underline-offset:5px;min-height:40px;display:inline-flex;align-items:center}
.portal-settings-icon{width:16px;height:16px;flex:0 0 16px}
.portal-page main{padding-top:28px;padding-bottom:48px}
.portal-page main>h1{font-size:clamp(25px,3.5vw,36px);line-height:1.2;letter-spacing:-.6px;overflow-wrap:anywhere;margin:0 0 24px}
.portal-navigation{margin:0 0 26px;max-width:100%}
.portal-menu{position:relative}
.portal-menu summary{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:9px 13px;border:1px solid #8da695;border-radius:7px;background:#fff;color:#234f41;font:inherit;font-weight:650;cursor:pointer;list-style:none;white-space:nowrap}
.portal-menu summary::-webkit-details-marker{display:none}
.portal-menu summary::marker{content:""}
.portal-menu summary:focus-visible{outline:3px solid #b07121;outline-offset:4px}
.portal-menu[open] summary{background:#193e30;color:#f5faf7;border-color:#193e30}
.portal-menu-icon{font-size:18px;line-height:1}
.portal-menu-panel{position:absolute;right:0;top:calc(100% + 10px);z-index:1000;width:min(340px,calc(100vw - 40px));max-height:calc(100dvh - 110px);overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;padding:18px;border:1px solid #6c9a81;border-radius:12px;background:#193e30;color:#f5faf7;box-shadow:0 16px 40px #0b271f66;text-align:left}
.portal-menu-eyebrow{margin:0 0 4px;color:#bbd8c7;text-transform:uppercase;font-size:10px;font-weight:650;letter-spacing:1.3px}
.portal-menu-workspace{display:block;padding-bottom:14px;border-bottom:1px solid #5c806c;font-size:16px;line-height:1.45;overflow-wrap:anywhere}
.portal-service-menu,.portal-global-menu{display:grid;gap:4px;padding:10px 0;margin:0}
.portal-menu-workspace-section{margin-top:8px;padding-top:14px;border-top:1px solid #5c806c}
.portal-account-links .portal-service-menu a,.portal-account-links .portal-global-menu a{display:flex;justify-content:space-between;align-items:center;gap:14px;min-height:44px;padding:10px 12px;border-left:3px solid transparent;border-radius:5px;text-decoration:none;color:#f5faf7;font-size:14px;line-height:1.35}
.portal-account-links .portal-global-menu .portal-settings-link{min-width:0;justify-content:flex-start;gap:8px;white-space:nowrap}
.portal-settings-label{flex-shrink:0}
.portal-menu-user{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.portal-service-menu a small{letter-spacing:0;font-size:10px;line-height:1.3;font-weight:500;color:#c7ddcf;text-align:right}
.portal-account-links .portal-service-menu a[aria-current=page],.portal-account-links .portal-global-menu a[aria-current=page]{border-left-color:#b9dbc6;background:#ecf6ef;color:#193e30;font-weight:750}
.portal-service-menu a[aria-current=page] small{color:#435c4e}
.portal-account-links .portal-service-menu a:hover,.portal-account-links .portal-global-menu a:hover{background:#2b5843;color:#fff}
.portal-service-menu a:hover small{color:#c7ddcf}
.portal-account-links .portal-workspace-link{display:flex;justify-content:space-between;gap:12px;min-height:44px;padding:12px 0 0;border-top:1px solid #5c806c;color:#f5faf7;font-size:13px;text-decoration:underline}
.portal-page .portal-menu-panel a:focus-visible{outline:3px solid #f6ce83;outline-offset:2px}
.portal-child-nav{display:flex;align-items:stretch;gap:4px 16px;flex-wrap:wrap;margin-top:15px;padding:0 0 0 4px;border-bottom:1px solid #a8beb0}
.portal-child-nav a{display:inline-flex;align-items:center;min-height:44px;padding:10px 4px 9px;text-decoration:none;border-bottom:3px solid transparent;margin-bottom:-1px;color:#435c4e;font-size:14px;line-height:1.35;border-radius:0;background:transparent}
.portal-child-nav a[aria-current="page"]{font-weight:750;color:#193e30;border-bottom-color:#234f41}
.portal-child-nav a:hover{background:#eaf2ec;color:#193e30}
.portal-page .module-shortcuts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:12px;max-width:900px}
.module-shortcuts a{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:54px;border:1px solid #6c8b76;border-radius:9px;padding:15px;background:white;color:#234f41;text-decoration:none;font-weight:600}
.portal-page .profile-breadcrumb{display:flex;align-items:baseline;flex-wrap:wrap;gap:7px;margin:0 0 18px;padding:0;color:#52665a;font-size:14px}
.profile-breadcrumb a{color:#234f41;padding:3px 0;text-underline-offset:3px;overflow-wrap:anywhere}
.profile-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:850px}
.profile-option{display:block;min-width:0;border:1px solid #6c8b76;border-radius:12px;background:#fff;padding:20px;color:#19332d;text-decoration:none;box-shadow:0 2px 6px #19332d09}
.profile-option h2{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;font-size:19px;line-height:1.35;margin:0;overflow-wrap:anywhere}
.profile-option h2 span{color:#234f41}
.profile-option p{margin:9px 0 0;color:#435c4e;font-size:14px;line-height:1.6}
a.profile-option:hover,.module-shortcuts a:hover{background:#f0f7f1;border-color:#234f41}
.profile-signout{max-width:850px;margin-top:28px;padding-top:22px;border-top:1px solid #b7cbbb}
.portal-page .profile-logout{min-width:150px;min-height:48px;background:#fff;color:#942c32;border:2px solid #a44b50;border-radius:9px;font:inherit;font-weight:650;cursor:pointer;padding:10px 24px}
.portal-page .profile-logout:hover{background:#fbefef}
.personal-profile-form{max-width:750px;border:1px solid #a8beb0;border-radius:12px;background:white;padding:24px}
.profile-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.profile-field-wide{grid-column:1/-1}
.profile-field label{display:block;margin-bottom:6px;font-size:14px;font-weight:650}
.profile-field input{width:100%;min-width:0;min-height:44px;border:1px solid #90a99a;border-radius:7px;padding:10px 12px;font:inherit;background:white}
.profile-hint{font-size:14px;line-height:1.6;color:#52665a}
.profile-message{padding:12px 16px;border:1px solid #6c8b76;background:#e7f4ea;border-radius:8px;max-width:750px}
.portal-page .invitation-card{margin-top:20px}
.portal-page .invitation-form{max-width:540px}
.portal-page .invitation-form input,.portal-page .invitation-form textarea{width:100%;box-sizing:border-box}
.portal-page .invitation-form label{display:block;margin-bottom:6px}
.portal-page .invitation-card h2{font-size:22px;line-height:1.3;margin-top:0}
.portal-page .invitation-form button,.personal-profile-form>button{background:#234f41;color:white;border:1px solid #234f41;border-radius:8px;padding:11px 18px;min-height:44px;font:inherit;cursor:pointer}
.portal-page .invitation-form button{margin-top:12px}
.portal-page.account-page{padding:0}
.portal-page.account-page main{margin:24px auto;max-width:750px}
.portal-page a:focus-visible,.portal-page button:focus-visible{outline:3px solid #b07121;outline-offset:4px}
@media(max-width:600px){
 .portal-page .portal-header{padding:18px 5vw;gap:16px;align-items:flex-start;flex-direction:column}
 .portal-header .portal-account-links{justify-content:space-between;width:100%;gap:10px 20px;font-size:14px}
 .portal-page main{padding-left:5vw;padding-right:5vw;padding-top:24px}
 .portal-menu-panel{left:0;right:auto;width:min(340px,90vw);max-height:calc(100dvh - 190px)}
 .portal-child-nav{column-gap:12px;margin-top:12px;padding-left:0}
 .portal-child-nav a{font-size:13px;min-height:44px;padding-left:2px;padding-right:2px}
 .profile-options{grid-template-columns:minmax(0,1fr);gap:12px}
 .profile-option{padding:18px}
 .profile-fields{grid-template-columns:minmax(0,1fr);gap:16px}
 .profile-field-wide{grid-column:auto}
 .personal-profile-form{padding:18px}
 .portal-page.account-page main{margin:12px 3vw;padding:20px 16px}
}

.portal-page .primary,.portal-page .button.primary{background:#234f41;color:#fff;border-color:#234f41}

/* Record lists: the name is a keyboard-accessible link; the entire row opens it. */
.portal-page .record-row,.portal-page tr[data-record-row]{cursor:pointer}
.portal-page .record-link{display:inline-flex;align-items:center;min-height:44px;padding:6px 0;margin:0;border:0;background:transparent;color:#234f41;font:inherit;text-align:left;text-decoration:underline;text-underline-offset:3px;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.portal-page .record-row .tabulator-cell{min-height:48px;white-space:normal;overflow-wrap:anywhere}
.portal-page .record-row:hover,.portal-page .record-row:focus-within,.portal-page tr[data-record-row]:hover,.portal-page tr[data-record-row]:focus-within{background:#e1eee6}
.portal-page .tabulator{max-width:100%}
.portal-page .table-scroll{max-width:100%;overflow-x:auto}
.portal-page .toolbar input[type=search]{min-width:min(240px,100%);max-width:100%}
.portal-page .list-search{margin:14px 0;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.portal-page .list-search input{flex:1;min-width:min(240px,100%)}
.portal-page .record-summary dt{font-weight:650;margin-top:18px}
.portal-page .record-summary dd{margin:4px 0 0;overflow-wrap:anywhere}
@media(max-width:600px){.portal-page .tabulator-footer .tabulator-footer-contents{flex-wrap:wrap;gap:8px}.portal-page .tabulator-footer .tabulator-paginator{white-space:normal}}

.portal-page [hidden]{display:none!important}
.portal-page .list-hint{font-size:13px;line-height:1.5;color:#52665a;margin:16px 0 24px}
.portal-page .list-clear{min-height:44px;background:#fff;border:1px solid #789485;color:#234f41;font:inherit;padding:8px 12px;border-radius:6px;cursor:pointer}
.portal-page .list-count{margin:12px 0;color:#435c4e;font-size:14px}
.portal-page .list-pagination{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:16px}
.portal-page .list-pagination a{min-height:44px;display:inline-flex;align-items:center;padding:8px 14px;border:1px solid #789485;border-radius:6px;background:#fff;color:#234f41}
.portal-page .record-last,.portal-page .record-last.tabulator-row-even{background:#fff5d9;box-shadow:inset 4px 0 #b07121}
.portal-page .portal-notification{padding:12px 16px;margin:0 0 18px;border:1px solid #88a792;border-radius:8px;background:#e8f4eb;color:#193e30;overflow-wrap:anywhere}
.portal-page .portal-notification.error{background:#fff0ef;border-color:#b86160;color:#812b2b}
.portal-page .operation-filters{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}
.portal-page .operation-filters label{display:grid;gap:5px;min-width:140px}
.portal-page .operation-status{display:inline-block;padding:5px 9px;border:1px solid #9aa9a0;border-radius:5px;background:#edf1ef;color:#354b40;font-size:13px;line-height:1.35;white-space:normal}
.portal-page .status-completed{background:#e0f1e6;border-color:#6a9578;color:#1d4e31}
.portal-page .status-queued,.portal-page .status-conflict,.portal-page .status-validation{background:#fff3d6;border-color:#b89147;color:#6b470b}
.portal-page .status-failed,.portal-page .status-denied{background:#ffe9e6;border-color:#bc7770;color:#842f27}
@media(max-width:600px){.portal-page .operation-filters label{min-width:0;width:100%}.portal-page .operation-filters input,.portal-page .operation-filters select{width:100%}}

/* Language selection: native names complement flags; business content is unchanged. */
.language-selector{position:relative;font-size:14px;color:#234f41}
.language-selector summary{display:flex;align-items:center;gap:7px;min-height:44px;padding:8px 10px;box-sizing:border-box;border:1px solid #8da695;border-radius:7px;background:#fff;cursor:pointer;list-style:none;white-space:nowrap}
.language-selector summary::-webkit-details-marker{display:none}
.language-selector summary:focus-visible{outline:3px solid #b07121;outline-offset:3px}
.language-flag{display:inline-block;width:24px;height:18px;object-fit:cover;border:1px solid #ffffff55;border-radius:2px;flex-shrink:0}
.language-selector-options{position:absolute;right:0;top:calc(100% + 8px);z-index:1001;min-width:175px;padding:8px;border:1px solid #6c9a81;border-radius:9px;background:#193e30;box-shadow:0 12px 30px #0b271f55}
.language-selector-options form{margin:0}
.language-selector-options button{display:flex;align-items:center;gap:9px;width:100%;min-height:44px;padding:9px 11px;border:0;border-radius:5px;background:transparent;color:#f5faf7;font:inherit;text-align:left;white-space:nowrap;cursor:pointer}
.language-selector-options button:hover,.language-selector-options button:focus-visible{background:#2b5843;color:#fff;outline:2px solid #f6ce83;outline-offset:-2px}
.language-selector-options button[aria-current=true]{background:#ecf6ef;color:#193e30;font-weight:650}
.portal-home header>nav{align-items:center;flex-wrap:wrap}
@media(max-width:600px){.language-selector-options{right:0;max-width:85vw}.portal-home header>nav{gap:12px}}
