/* Shared workspace presentation. Loaded after legacy module styles. */
:root { color-scheme: light; --text: #172b36; --muted: #60727d; --bg: #f5f7f8; --line: #dfe6ea; --line-soft: #e9eef1; --shadow: 0 2px 6px #172b3605; --panel-shadow: 0 2px 6px #172b3605; }
body { background: var(--bg); font-size: 14px; line-height: 1.55; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 9999; padding: 12px 20px; background: #fff; color: #172b36; border: 2px solid var(--primary); border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid #5289ed; outline-offset: 3px; }
.app-sidebar { width: 258px; background: #142b36; color: #d6e1e6; border: 0; padding: 20px 14px 14px; box-shadow: none; }
.app-main { margin-left: 258px; padding: 0; }
.sidebar-brand { min-height: 54px; border-color: #ffffff17; padding-bottom: 17px; }
.sidebar-brand strong { color: #fff; font-size: 1.16rem; letter-spacing: -.035em; }
.sidebar-brand .brand-mark { border-radius: 10px; background: #fff; }
.sidebar-pin-toggle { background: #ffffff09; border: 1px solid #ffffff20; color: #aebfc8; border-radius: 8px; }
.sidebar-nav { padding-top: 14px; }
.sidebar-section { color: #8ca6b4; font-size: 10px; letter-spacing: .16em; padding-top: 18px; }
.sidebar-link, .sidebar-group-title { color: #c4d3dc; font-size: 13px; font-weight: 500; border-radius: 8px; min-height: 43px; }
.sidebar-link i, .sidebar-group-title i, .sidebar-user > i { color: #90abb9; }
.sidebar-link.active, .sidebar-link:hover, .sidebar-group-title:hover, .sidebar-user:hover { background: #ffffff0e; border-color: transparent; color: #fff; }
.sidebar-link.active { background: #294653; box-shadow: none; }
.sidebar-link.active::before { background: #82cec5; }
.sidebar-link.active i { color: #a2e1d9; }
.sidebar-group[open] { background: transparent; }
.sidebar-subnav { border-color: #ffffff20; }
.sidebar-subnav a { color: #acc1cc; font-size: 12px; font-weight: 500; }
.sidebar-subnav a.active, .sidebar-subnav a:hover { background: #294653; color: #fff; border-color: transparent; }
.sidebar-footer { background: transparent; border-color: #ffffff20; padding-top: 14px; }
.sidebar-user, .sidebar-logout { background: transparent; border-color: transparent; color: #c4d3dc; }
.sidebar-user strong { color: #e1e9ed; }
.sidebar-user small { color: #97b0bd; }
.sidebar-role-badge { background: #294653; color: #c6dedf; }
.sidebar-logout:hover { background: #294653; color: #fff; }
.workspace-search-trigger { width: 100%; display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 11px; color: #b7cad4; border: 1px solid #ffffff21; background: #ffffff05; border-radius: 8px; font-size: 12px; text-align: left; }
.workspace-search-trigger kbd { margin-left: auto; background: #ffffff0b; color: #9db4c1; font-size: 10px; }
.workspace-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 74px; padding: 12px 32px; background: #fff; border-bottom: 1px solid var(--line); }
.workspace-breadcrumb { display: flex; gap: 13px; align-items: center; color: var(--muted); font-size: 12px; }
.workspace-breadcrumb strong { font-weight: 550; color: var(--text); }
.workspace-topbar-actions { display: flex; gap: 15px; align-items: center; }
.workspace-icon-button { position: relative; display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; color: #637783; background: transparent; border: 0; border-radius: 8px; text-decoration: none; }
.workspace-icon-button:hover { background: #edf2f5; color: #233f4d; }
.workspace-avatar { display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; border-radius: 50%; background: #dcebe9; color: #305d58; font-size: 13px; font-weight: 700; text-decoration: none; }
.notification-dot { position: absolute; right: 8px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: #cb6545; }
.content-shell { max-width: 1680px; margin: auto; padding: 30px 32px 48px; }
h1, .h3 { letter-spacing: -.035em; font-weight: 650; }
.form-card, .table-card, .metric-card, .workspace-table-card, .workspace-filter-card { border-radius: 12px; border-color: var(--line); background: #fff; box-shadow: var(--shadow); }
.table-card, .form-card { padding: 23px; }
.btn { border-radius: 7px; min-height: 38px; font-weight: 550; font-size: 12px; padding: 9px 14px; box-shadow: none; }
.btn-outline-secondary { color: #415866; border-color: #d0dce1; background: #fff; }
.btn-outline-secondary:hover { background: #edf2f4; color: #203d4a; border-color: #a5bac5; }
.form-control, .form-select { border-radius: 7px; border-color: #cfdbe2; font-size: 14px; min-height: 40px; background-color: #fff; color: var(--text); }
.form-label { font-size: 12px; font-weight: 600; color: #435b69; }
.table thead th, .table-card .table thead th, .workspace-table-card .table thead th { font-size: 10px; letter-spacing: .06em; font-weight: 650; padding: 13px 12px; background: #f7f9fa; color: #637783; }
.table td, .table th, .table-card .table td, .workspace-table-card .table td { padding: 13px 12px; font-size: 13px; border-color: #edf1f3; }
.table-responsive { border-radius: 8px; }
.sub-nav-link, .epv2-tabs a { border-radius: 7px; font-size: 12px; font-weight: 550; }
.status-pill, .badge { font-size: 11px; font-weight: 600; }
.alert { border-radius: 8px; padding: 11px 15px; font-size: 13px; box-shadow: none; }
.workspace-welcome { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 7px 0 8px; }
.workspace-eyebrow { color: #64828a; font-size: 10px; font-weight: 700; letter-spacing: .18em; margin-bottom: 10px; }
.workspace-welcome h1 { font-size: clamp(29px, 3vw, 40px); line-height: 1.2; font-weight: 620; margin-bottom: 10px; }
.welcome-period { color: #3d9489; }
.workspace-welcome-copy { color: var(--muted); margin-bottom: 13px; font-size: 13px; }
.workspace-role { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #72848d; }
.workspace-welcome .action-row { flex-shrink: 0; }
.workspace-setup-banner { display: flex; align-items: center; gap: 16px; padding: 19px 22px; background: #eaf2ef; border: 1px solid #d6e6df; border-radius: 10px; }
.workspace-setup-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; background: #d9e9e0; color: #417966; }
.workspace-setup-banner strong { font-size: 13px; font-weight: 600; }
.workspace-setup-banner p { margin: 3px 0 0; font-size: 12px; color: #5e786c; }
.workspace-setup-banner .btn { margin-left: auto; flex-shrink: 0; background: transparent; border-color: #b7cfc2; color: #365c4b; }
.admin-kpi-card { min-height: 148px; padding: 21px; position: relative; background: #fff; border-top: 1px solid var(--line); }
.admin-kpi-card .admin-kpi-head { position: absolute; right: 19px; top: 20px; }
.admin-kpi-card .metric-label { font-size: 11px; text-transform: none; letter-spacing: 0; color: #657a85; font-weight: 550; margin: 0 35px 12px 0; }
.admin-kpi-card strong { font-size: 32px; line-height: 1.2; letter-spacing: -.05em; font-weight: 600; }
.admin-kpi-card .dashboard-support-text { display: block; font-size: 10px; text-transform: none; letter-spacing: 0; font-weight: 400; margin-top: 8px; }
.metric-icon { width: 32px; height: 32px; border-radius: 9px; box-shadow: none; font-size: 13px; background: #edf2f7; color: #5e7b93; }
.metric-icon.amber { background: #fbf1df; color: #a98034; }
.metric-icon.green { background: #e5f2ed; color: #4f8b73; }
.metric-icon.violet { background: #efedf5; color: #807197; }
.workspace-section-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.workspace-section-label h2 { font-size: 15px; margin: 0; font-weight: 600; }
.workspace-section-label > span { font-size: 11px; color: var(--muted); }
.workspace-all-clear { padding: 27px; display: flex; align-items: center; gap: 20px; border: 1px dashed #cbdcd7; border-radius: 11px; background: #f9fbfa; }
.workspace-all-clear > span { width: 43px; height: 43px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #e1eee7; color: #60907b; flex-shrink: 0; }
.workspace-all-clear h3 { font-size: 14px; font-weight: 600; margin: 0 0 5px; }
.workspace-all-clear p { margin: 0; color: var(--muted); font-size: 12px; }
.section-heading h2, .dashboard-activity-summary h2 { font-size: 15px; font-weight: 600; }
.admin-action-tile { background: #fff; border: 1px solid #e4ebee; box-shadow: none; border-radius: 9px; min-height: 85px; padding: 17px; transition: border-color .15s, background .15s; }
.admin-action-tile:hover { background: #f7fafb; border-color: #b6cbd5; transform: none; }
.admin-action-tile strong { font-size: 12px; font-weight: 600; }
.admin-action-tile small { font-size: 11px; font-weight: 400; margin-top: 5px; color: var(--muted); }
.admin-action-tile > i { background: #eef3f5; color: #527787; border-radius: 8px; }
.dashboard-activity-item { border: 0 !important; border-bottom: 1px solid #edf1f3 !important; border-radius: 0 !important; padding: 12px 0 !important; }
.dashboard-activity-item strong { font-size: 12px; font-weight: 550; }
.dashboard-activity-item .small { font-size: 11px; }
.workspace-search-dialog { width: min(560px, calc(100% - 32px)); border: 1px solid #dbe5ea; border-radius: 16px; padding: 23px; box-shadow: 0 30px 90px #142b3633; color: var(--text); }
.workspace-search-dialog::backdrop { background: #122b3688; backdrop-filter: blur(3px); }
.workspace-search-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.workspace-search-heading h2 { font-size: 18px; margin: 0; }
.workspace-search-hint { font-size: 12px; color: var(--muted); margin: 10px 0; }
.workspace-search-results { max-height: 340px; overflow-y: auto; }
.workspace-search-results a { display: flex; align-items: center; justify-content: space-between; padding: 12px; border-radius: 8px; text-decoration: none; color: var(--text); font-size: 13px; }
.workspace-search-results a:hover, .workspace-search-results a:focus { background: #eaf2f5; }
.workspace-search-results small { color: var(--muted); font-size: 11px; }
body.sidebar-compact .workspace-search-trigger span, body.sidebar-compact .workspace-search-trigger kbd { display: none; }
body.sidebar-compact .workspace-search-trigger { justify-content: center; }
.login-shell { max-width: 1040px; min-height: min(780px, 90vh); margin: auto; display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; padding: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 20px 70px #142b360a; }
.login-story { padding: 55px 45px; background: #142b36; color: #fff; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-story::after { content: ''; position: absolute; width: 330px; height: 330px; border: 1px solid #ffffff12; border-radius: 50%; right: -180px; top: 130px; box-shadow: 0 0 0 55px #ffffff03, 0 0 0 110px #ffffff02; pointer-events: none; }
.login-story-brand { font-size: 21px; font-weight: 600; letter-spacing: -.04em; }
.login-story .workspace-eyebrow { color: #98c5bc; margin-top: 70px; }
.login-story h2 { font-size: 42px; line-height: 1.17; letter-spacing: -.045em; max-width: 330px; font-weight: 500; }
.login-story-copy { color: #a7beca; max-width: 300px; font-size: 14px; margin-top: 22px; line-height: 1.8; }
.login-story-footer { font-size: 11px; color: #8fabb9; margin-top: 60px; }
.login-panel.login-minimal { width: auto; max-width: none; border: 0; border-radius: 0; box-shadow: none; background: #fff; padding: 65px 45px; align-self: center; }
.login-heading { text-align: left; margin-bottom: 30px; }
.login-heading .brand-mark { width: 48px; height: 48px; margin: 0 0 24px; }
.login-heading h1 { font-size: 27px; margin-bottom: 10px; }
.login-heading p { font-size: 13px; }
.login-form .form-control { min-height: 47px; }
.login-submit { margin-top: 10px; min-height: 46px; }
.login-input { position: relative; }
.password-reveal { position: absolute; right: 7px; top: 6px; height: 34px; border: 0; background: transparent; padding: 0 8px; color: #617985; font-size: 11px; }
.login-input input[type=password], .login-input input[data-password] { padding-right: 60px; }
.login-support { margin-top: 24px; font-size: 12px; }
@media (min-width: 768px) { body.sidebar-compact .app-sidebar { width: 84px; } body.sidebar-compact .app-main { margin-left: 84px; } }
@media (max-width: 1150px) { .workspace-welcome { align-items: flex-start; flex-direction: column; gap: 16px; } .content-shell { padding: 24px; } .login-story { padding: 40px 30px; } }
@media (max-width: 767px) {
 .app-sidebar, body.sidebar-compact .app-sidebar { width: min(88vw, 280px); background: #142b36; }
 .app-main, body.sidebar-compact .app-main { margin-left: 0; }
 .workspace-topbar { padding: 12px 16px 12px 64px; min-height: 66px; }
 .workspace-breadcrumb > span { display: none; }
 .workspace-topbar-actions { gap: 6px; }
 .sidebar-mobile-trigger { top: 15px; left: 14px; background: #fff; color: #304d5b; border: 1px solid #d4dfe4; border-radius: 8px; width: 36px; height: 36px; box-shadow: none; }
 .content-shell { padding: 22px 16px 32px; }
 .workspace-welcome .action-row { flex-wrap: wrap; }
 .workspace-setup-banner { align-items: flex-start; flex-wrap: wrap; padding: 17px; gap: 12px; }
 .workspace-setup-banner > div { flex: 1; min-width: 140px; }
 .workspace-setup-banner .btn { margin-left: 52px; }
 .admin-kpis > div { width: 50%; }
 .admin-kpi-card { padding: 16px; min-height: 145px; }
 .admin-kpi-card .admin-kpi-head { top: 14px; right: 12px; }
 .admin-kpi-card .metric-label { max-width: 95px; }
 .workspace-section-label > span { display: none; }
 .workspace-all-clear { padding: 20px; }
 .table-card, .form-card { padding: 16px; }
 .workspace-role { flex-wrap: wrap; font-size: 10px; }
 .login-shell { display: block; min-height: 0; max-width: 460px; }
 .login-story { padding: 25px; }
 .login-story-brand { font-size: 18px; }
 .login-story .workspace-eyebrow { margin: 22px 0 8px; }
 .login-story h2 { font-size: 29px; max-width: none; }
 .login-story-copy, .login-story-footer { display: none; }
 .login-panel.login-minimal { padding: 30px 25px; }
 .public-main { padding: 20px 16px !important; }
 .dashboard-activity-item { align-items: flex-start !important; flex-wrap: wrap; }
 body.sidebar-compact .workspace-search-trigger span { display: inline; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
/* Keep essential content visible immediately, including on slower mobile devices. */
.login-heading { display: block; }
.login-story h2 { color: #fff; }
.login-panel, .login-form, .admin-kpi-card, .admin-action-tile { animation: none; opacity: 1; }
@media (max-width: 767px) { .sidebar-toggle-input:checked ~ .app-shell .sidebar-mobile-trigger { left: auto; right: 16px; } }
