/* One screen palette across GP and Fursan. Layered important rules replace legacy
   unlayered colour overrides without altering visibility, layout or A4 print styles. */
@layer gp-brand {
 @media screen {
  body.gp-ui {
   --gp-canvas:#dce6ef;--gp-surface:#fff;--gp-subtle:#e9f0f6;--gp-border:#9db5c8;
   --gp-ink:#102e43;--gp-muted:#405d73;--gp-navy:#0c2d42;--gp-blue:#00669c;--gp-teal:#006c70;
   --gp-orange:#ef7a20;--gp-lime:#c7d92b;
   --bg:var(--gp-canvas);--panel:var(--gp-surface);--ink:var(--gp-ink);--text:var(--gp-ink);
   --muted:var(--gp-muted);--line:var(--gp-border);--blue:var(--gp-blue);--navy:var(--gp-navy);
   --teal:var(--gp-teal);--cyan:var(--gp-teal);--soft:var(--gp-subtle);--green:#176342;--red:#a12432;
   color-scheme:light!important;background:var(--gp-canvas)!important;color:var(--gp-ink)!important;
   font-family:Tahoma,Arial,sans-serif!important;
  }
  body.gp-ui :where(.shell,#app.app,.pf-layout,.admin-page){background:var(--gp-canvas)!important;color:var(--gp-ink)!important}
  body.gp-ui :where(.card,.panel,.pf-panel,.form-card,.login-card,.stat,.stat-card,.salary-card,.team-card,.link-card,.report-preview,.live-person,.follow-card,.gp-table-frame,.cc-card,.cc-kpi,.space-metric,.custody-person){
   background:var(--gp-surface)!important;color:var(--gp-ink)!important;border-color:var(--gp-border)!important;
   box-shadow:0 5px 18px #0c2d4210!important;
  }
  body.gp-ui :where(h1,h2,h3,h4,.section-title,.section-title h2,.label-line strong){color:var(--gp-ink)!important}
  body.gp-ui :where(small,.hint,.subtle,.note,.muted,.pf-muted,.label-line,.result-count,.gp-result-count){color:var(--gp-muted)!important;opacity:1!important}
  body.gp-ui :where(a,.gp-product-link,.gp-invoice-open){color:var(--gp-blue)!important}
  body.gp-ui :where(a,.gp-product-link,.gp-invoice-open):hover{color:#004b76!important}
  body.gp-ui :where(.filter-bar,.gp-table-tools,.pf-toolbar,.filters,.toolbar,.detail-message,.detail-grid p,.helper-card){background:var(--gp-subtle)!important;color:var(--gp-ink)!important;border-color:var(--gp-border)!important}
  body.gp-ui :where(label,.field,legend){color:#294e66!important}
  body.gp-ui :where(input:not([type=checkbox]):not([type=radio]),textarea,select,.gp-select-trigger,.gp-select-search){
   background:#fff!important;color:var(--gp-ink)!important;border-color:#7c9db7!important;
   -webkit-text-fill-color:var(--gp-ink)!important;caret-color:var(--gp-blue)!important;
  }
  body.gp-ui :where(input,textarea)::placeholder{color:#526d81!important;opacity:1!important;-webkit-text-fill-color:#526d81!important}
  body.gp-ui :where(input,textarea,select,button,a):focus-visible{outline:3px solid var(--gp-blue)!important;outline-offset:3px!important}
  body.gp-ui :where(input,textarea,select):disabled{background:#e2e9ef!important;color:#4c6070!important;-webkit-text-fill-color:#4c6070!important;opacity:1!important}
  body.gp-ui :where(input[type=checkbox],input[type=radio]){accent-color:var(--gp-teal)!important}
  body.gp-ui :where(select option,select optgroup){background:#fff!important;color:var(--gp-ink)!important;-webkit-text-fill-color:var(--gp-ink)!important}
  body.gp-ui :where(button,.btn,.outline,.button.secondary,.table-button){background:#fff!important;color:var(--gp-ink)!important;border-color:#8ba8be!important}
  body.gp-ui :where(button,.btn,.outline,.table-button):hover{background:#d9eaf1!important;color:var(--gp-ink)!important}
  body.gp-ui :where(.primary,.btn.blue,.button:not(.secondary),.pf-primary,button.navy,.cc-action){background:var(--gp-blue)!important;color:#fff!important;border-color:var(--gp-blue)!important}
  body.gp-ui :where(.primary,.btn.blue,.button:not(.secondary),.pf-primary,button.navy,.cc-action):hover{background:#004f7d!important;color:#fff!important}
  body.gp-ui :where(.primary,.btn.blue,.button:not(.secondary),.pf-primary,.cc-action) :where(span,b,strong,small,svg){color:#fff!important}
  body.gp-ui a.frs-button{background:var(--gp-blue)!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
  body.gp-ui a.frs-button:is(:hover,:focus-visible){background:#004f7d!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
  body.gp-ui a.frs-button.frs-outline{background:#fff!important;color:#102e43!important;-webkit-text-fill-color:#102e43!important}
  body.gp-ui a.frs-button.frs-outline:is(:hover,:focus-visible){background:#d9eaf1!important;color:#102e43!important;-webkit-text-fill-color:#102e43!important}
  body.gp-ui :where(.btn.teal,.btn.green,.button.teal,.button-green){background:var(--gp-teal)!important;color:#fff!important;border-color:var(--gp-teal)!important}
  body.gp-ui :where(.btn.teal,.btn.green,.button.teal,.button-green):hover{background:#005558!important;color:#fff!important}
  body.gp-ui :where(button.danger,.btn.red,.button.danger,.request-danger){background:#a12432!important;color:#fff!important;border-color:#a12432!important}
  body.gp-ui :where(button,.btn,.primary):disabled{background:#dce4eb!important;color:#465d70!important;border-color:#a8bccb!important;opacity:1!important;box-shadow:none!important}
  body.gp-ui :where(table){background:#fff!important;color:var(--gp-ink)!important}
  body.gp-ui :where(table th){background:#143b53!important;color:#fff!important;border-color:#43647b!important}
  body.gp-ui :where(table th) :where(label,span,small,b,a){color:#fff!important}
  body.gp-ui :where(table td){background:#fff!important;color:var(--gp-ink)!important;border-color:#b7c9d7!important}
  body.gp-ui :where(table tbody tr:nth-child(even)>td){background:#edf3f8!important}
  body.gp-ui :where(table tbody tr:hover>td,.gp-current-row>td){background:#d8edef!important;color:var(--gp-ink)!important}
  body.gp-ui :where(table td small){color:var(--gp-muted)!important}
  body.gp-ui :where(.gp-select-popover,.gp-select-popup,.gp-select-list){background:#fff!important;color:var(--gp-ink)!important;border-color:#7c9db7!important}
  body.gp-ui :where(.gp-select-trigger,.gp-select-option){background:#fff!important;color:var(--gp-ink)!important;-webkit-text-fill-color:var(--gp-ink)!important}
  body.gp-ui :where(.gp-select-option:hover,.gp-select-option:focus-visible,.gp-select-option.gp-select-highlight){background:#d4eaf1!important;color:#103b53!important}
  body.gp-ui :where(.gp-select-option[aria-selected=true]){background:#cce9e6!important;color:#064d50!important;border-color:#76b2b0!important}
  body.gp-ui :where(.gp-select-trigger[aria-expanded=true]){background:#edf6fa!important;color:var(--gp-ink)!important;border-color:var(--gp-teal)!important}
  body.gp-ui :where(.gp-select-option:disabled){background:#edf1f4!important;color:#536776!important;opacity:1!important}
  body.gp-ui :where(dialog,.modal,.modal-card,.pf-dialog,.portal-dialog){background:#fff!important;color:var(--gp-ink)!important;border-color:#87a5bb!important;box-shadow:0 22px 70px #0c2d4240!important}
  body.gp-ui dialog::backdrop{background:#061b2cb8!important}
  body.gp-ui :where(.dialog-head,.modal-head,.dialog-header,.modal-header){background:#e5eef5!important;color:var(--gp-ink)!important;border-color:#a4bdcf!important}
  body.gp-ui :where(.dialog-head,.modal-head,.dialog-header,.modal-header) :where(h1,h2,h3){color:var(--gp-ink)!important}
  body.gp-ui :where(.gp-invoice-guide,.gp-context-guide){background:#dceff1!important;color:#143f50!important;border-color:#86b4bd!important}
  body.gp-ui :where(.gp-invoice-guide,.gp-context-guide) :where(p,span,small){color:#143f50!important}
  body.gp-ui :where(.notice,.announcement,.pf-notice){background:#fff0ce!important;color:#62430d!important;border-color:#c49b46!important}
  body.gp-ui :where(.announcement,.notice) :where(p,b,strong,.ticker-track){color:#62430d!important}
  body.gp-ui :where(.err,.invoice-form-error,.pf-notice.bad,.status.error,.gp-feedback.error){background:#fce4e6!important;color:#8e1c2a!important;border-color:#cb7f88!important}
  body.gp-ui :where(.pf-notice.good,.status.success,.badge.success,.badge.good,.attendance .status){background:#d6eddf!important;color:#174d32!important;border-color:#80ae91!important}
  body.gp-ui :where(.badge,.chip,.tag,.pill){background:#dcebf5!important;color:#164a6c!important;border-color:#91b6cf!important}
  body.gp-ui :where(.badge.warning,.badge.pending,.badge.warn){background:#ffebc6!important;color:#694511!important;border-color:#c5a15a!important}
  body.gp-ui :where(.badge.danger,.badge.bad){background:#f9dfe3!important;color:#8e1c2a!important;border-color:#c98791!important}
  body.gp-ui :where(.gp-feedback){background:#fff!important;color:var(--gp-ink)!important;border-color:#759caf!important;border-right-color:var(--gp-teal)!important;box-shadow:0 12px 34px #0c2d4233!important}
  body.gp-ui :where(.gp-feedback-copy){color:var(--gp-ink)!important}
  body.gp-ui :where(.gp-feedback-close){background:#e1eaf1!important;color:var(--gp-ink)!important;border-color:#91aabd!important}
  body.gp-ui :where(.toast){background:var(--gp-navy)!important;color:#fff!important;border-color:#4f8ba6!important}
  body.gp-ui :where(.gp-dossier-metrics article){background:#e2eef6!important;color:var(--gp-ink)!important;border-color:#8eb0c8!important}
  body.gp-ui :where(.gp-dossier-metrics article:nth-child(2)){background:#fff0d9!important;border-color:#bf904a!important}
  body.gp-ui :where(.gp-dossier-metrics article:nth-child(3)){background:#e9efcc!important;border-color:#a0b556!important}
  body.gp-ui :where(.gp-dossier-metrics article:nth-child(4)){background:#d8ece9!important;border-color:#76aba6!important}
  body.gp-ui :where(.gp-dossier-metrics article) :where(small,strong){color:var(--gp-ink)!important}
  body.gp-ui :where(.gp-family-banner,.gp-variant-choice){background:#e4eef5!important;color:var(--gp-ink)!important;border-color:#9ab7cb!important}
  body.gp-ui :where(.gp-variant-choice.selected){background:#cfe8e8!important;color:#064d50!important;border-color:var(--gp-teal)!important}
  body.gp-ui :where(.command-center,.space-workspace,.cc-hero,.space-hero,.sticky-stage,.global-toolbar){background:#fff!important;color:var(--gp-ink)!important;border-color:var(--gp-border)!important}
  body.gp-ui :where(.cc-strip,.custody-banner){background:var(--gp-navy)!important;color:#fff!important;border-color:#416f89!important}
  body.gp-ui :where(.cc-strip,.custody-banner) :where(strong,b,small,p,span){color:#f0f7fb!important}
  body.gp-ui :where(.stage-head){background:#17445d!important;color:#fff!important;border-color:#466e86!important}
  body.gp-ui :where(.stage-head) :where(b,strong,h2,h3,span){color:#fff!important}
  body.gp-ui :where(.stage-head button){background:#fff!important;color:var(--gp-ink)!important;border-color:#9bb5c7!important}
  body.gp-ui :where(.sidebar,.pf-sidebar,#app>aside,.gp-generated-sidebar,.admin-sidebar,.gp-center-navigation){background:var(--gp-navy)!important;color:#fff!important;border-color:#365a72!important}
  body.gp-ui :where(.sidebar,.pf-sidebar,#app>aside,.gp-generated-sidebar,.admin-sidebar) :where(a,button,strong,b,small,.side-label,.mini-info,.mini-line,.nav-icon,.nav-chevron,.nav-label,.gp-nav-title,.profile,.sidebar-foot,.pf-brand){color:#eaf3f9!important;opacity:1!important}
  body.gp-ui :where(.sidebar,.pf-sidebar,#app>aside,.gp-generated-sidebar,.admin-sidebar) :where(nav a,nav button){background:transparent!important;border-color:transparent!important}
  body.gp-ui :where(.sidebar,.pf-sidebar,#app>aside,.gp-generated-sidebar,.admin-sidebar) :where(nav a:hover,nav button:hover){background:#1a475f!important;color:#fff!important}
  /* Keep hover outside :where so the generic light button hover cannot win. */
  body.gp-ui :is(.sidebar,.pf-sidebar,#app>aside,.gp-generated-sidebar,.admin-sidebar) nav :is(a,button):is(:hover,:focus-visible){background:#1a475f!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
  body.gp-ui :is(.sidebar,.pf-sidebar,#app>aside,.gp-generated-sidebar,.admin-sidebar) nav :is(a,button):is(:hover,:focus-visible) :is(span,b,small,svg){color:#fff!important;-webkit-text-fill-color:#fff!important;opacity:1!important}
  body.gp-ui .admin-sidebar :is(button,.gp-nav-item){background:transparent!important;color:#eaf3f9!important;-webkit-text-fill-color:#eaf3f9!important;border-color:transparent!important}
  body.gp-ui .admin-sidebar :is(button,.gp-nav-item):is(:hover,:focus-visible,.active){background:#1a475f!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#62b5b5!important}
  body.gp-ui .admin-sidebar :is(button,.gp-nav-item) :is(span,b,small,svg){color:inherit!important;-webkit-text-fill-color:currentColor!important;opacity:1!important}
  body.gp-ui :where(.sidebar,.pf-sidebar,#app>aside,.gp-generated-sidebar,.admin-sidebar) :where(nav .active,nav [aria-current=page]){background:#006c70!important;color:#fff!important;border-color:#62b5b5!important;border-inline-start:4px solid var(--gp-lime)!important}
  body.gp-ui :where(.sidebar,.pf-sidebar,#app>aside,.gp-generated-sidebar,.admin-sidebar) :where(nav .active,nav [aria-current=page]) :where(span,b,small,svg){color:#fff!important}
  body.gp-ui :where(.sidebar,.pf-sidebar,#app>aside,.gp-generated-sidebar,.admin-sidebar) :where(.badge,.chip){background:#d8eaf5!important;color:#124765!important;border-color:#96bbd3!important}
  body.gp-ui :where(.gp-center-navigation) :where(a,button,span,.gp-current-user){background:transparent!important;color:#fff!important;border-color:#53748b!important}
  body.gp-ui :where(.sidebar,.pf-sidebar,.gp-center-navigation) :where(button,a):focus-visible{outline-color:#ffae56!important}
  body.gp-ui :where(.gp-center-navigation){border-bottom-color:var(--gp-teal)!important}
  body.gp-ui :where(.hero,.login-stage,.private-body){background-color:var(--gp-canvas)!important}
  body.gp-ui :where(.site-header,.footer,.form-heading){color:var(--gp-ink)!important}
  body.gp-ui mark{background:#ffdf84!important;color:#3c2c06!important}
  body.gp-ui .overview-account-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))!important;gap:16px!important;align-items:stretch!important}
  body.gp-ui .overview-account{display:flex!important;flex-direction:column!important;grid-row:auto!important;min-width:0!important;min-height:0!important;padding:18px!important;gap:12px!important;border-radius:14px!important}
  body.gp-ui .overview-account-main{display:flex!important;flex-direction:column!important;grid-row:auto!important;gap:10px!important;flex:1!important;min-width:0!important}
  body.gp-ui .overview-account-name{font-size:15px!important;line-height:1.65!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;min-height:3.3em!important}
  body.gp-ui .overview-account-hint{white-space:normal!important;overflow-wrap:anywhere!important;max-width:100%!important}
  body.gp-ui .overview-account-main>strong{font-size:25px!important;line-height:1.5!important;margin:2px 0!important}
  body.gp-ui .overview-account-link{margin-top:auto!important;padding-top:12px!important}
  body.gp-ui .overview-group-head{gap:16px!important;padding-block:12px!important;align-items:center!important}
 }
}
@layer gp-brand {
 @media screen {
  body.gp-ui .gp-center-navigation .gp-session-tools{flex:0 0 auto!important;min-width:190px!important}
  body.gp-ui .gp-center-navigation .gp-session-name{min-width:90px!important}
  body.gp-ui .gp-center-navigation .gp-section-items{background:#fff!important;color:#102e43!important}
  body.gp-ui .gp-center-navigation .gp-section-items :where(a,button,span){background:#fff!important;color:#102e43!important}
  body.gp-ui .gp-center-navigation .gp-section-items :where(a,button):hover{background:#d4e9f4!important;color:#074c71!important}
 }
 @media screen and (max-width:1400px){body.gp-ui .gp-center-navigation .gp-update-clock{display:none!important}}
 @media screen and (max-width:800px){body.gp-ui .gp-center-navigation .gp-session-tools{min-width:145px!important}body.gp-ui .gp-center-navigation .gp-session-name{min-width:65px!important}}
}
@layer gp-brand { @media screen {
 body.gp-ui #modal.gp-work-modal{position:fixed!important;inset:0!important;z-index:12000!important;display:grid!important;place-items:center!important;padding:24px!important;background:#071e35a8!important;backdrop-filter:blur(3px)!important;width:100%!important;height:100dvh!important;max-width:none!important;transform:none!important;box-shadow:none!important;border:0!important}
 body.gp-ui #modal.gp-work-modal.hidden{display:none!important}
 body.gp-ui #modal.gp-work-modal>.modal-card{position:relative!important;inset:auto!important;transform:none!important;margin:0!important;width:min(900px,100%)!important;max-width:100%!important;max-height:calc(100dvh - 48px)!important;overflow:auto!important;border-radius:20px!important;padding:24px!important;background:#fff!important}
 body.gp-ui #modal.gp-work-modal #closeModal{position:relative!important;z-index:1!important;min-width:40px!important;min-height:40px!important}
 body.gp-ui .gp-country-header .gp-country-brand,body.gp-ui .gp-country-header .gp-country-brand span,body.gp-ui .gp-country-header .gp-country-brand small{color:#fff!important;-webkit-text-fill-color:#fff!important}
 body.gp-ui .gp-country-session{color:#fff!important;font-size:14px!important;gap:20px!important}
 body.gp-ui .gp-country-session button{background:transparent!important;color:#fff!important;border-color:#7a9caf!important;padding:10px 18px!important}
 body.gp-ui .gp-country-header{padding-block:20px!important}
 body.gp-ui .gp-country-welcome{margin-bottom:30px!important}
 body.gp-ui .gp-country-main{max-width:1040px!important;padding-top:34px!important}
 body.gp-ui .gp-country-utilities{display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important;margin-top:25px!important;flex-wrap:wrap!important}
 body.gp-ui .gp-country-utilities button{margin:0!important;font-size:13px!important;padding:10px 18px!important;background:#fff!important;color:#173c54!important;border:1px solid #9cb5c7!important;border-radius:10px!important}
}}
