:root {
    color-scheme: light;
    --ink: #14213d;
    --muted: #65728a;
    --line: #dfe5ed;
    --surface: #ffffff;
    --canvas: #f4f7fb;
    --navy: #10294d;
    --blue: #1769e0;
    --blue-soft: #eaf2ff;
    --green: #18794e;
    --green-soft: #e8f7ef;
    --red: #b42318;
    --red-soft: #fff0ee;
    --shadow: 0 18px 55px rgba(16, 41, 77, .10);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font-size: 15px; line-height: 1.5; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: .25rem; font-size: clamp(1.6rem, 3vw, 2.15rem); letter-spacing: -.035em; }
h2 { margin-bottom: .35rem; font-size: 1.35rem; letter-spacing: -.02em; }
h3 { margin-bottom: .4rem; }
.muted, .cell-meta { color: var(--muted); }
.eyebrow { margin-bottom: .3rem; color: var(--blue); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.app-shell { display: grid; min-height: 100vh; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; padding: 1.4rem; color: #fff; background: linear-gradient(180deg, #10294d 0%, #0b1d37 100%); }
.brand { display: flex; align-items: center; gap: .8rem; color: inherit; }
.brand:hover { text-decoration: none; }
.brand span:last-child { display: flex; flex-direction: column; }
.brand small { color: #aabbd5; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #3e8cff, #1769e0); font-weight: 900; box-shadow: 0 8px 22px rgba(23, 105, 224, .35); }
.nav { display: grid; gap: .35rem; margin-top: 2.2rem; }
.sidebar-search { margin-top: 1.2rem; }.sidebar-search input { border-color: rgba(255,255,255,.16); color: #fff; background: rgba(255,255,255,.08); }.sidebar-search input::placeholder { color: #aabbd5; }
.nav-heading { margin: 1rem .8rem .1rem; color: #7893b9; font-size: .68rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.nav a, .sidebar-footer a, .link-button { padding: .7rem .8rem; border-radius: 9px; color: #dbe8fa; font: inherit; text-align: left; }
.nav a:hover, .sidebar-footer a:hover, .link-button:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.sidebar-footer { display: grid; gap: .25rem; margin-top: auto; }
.sidebar-footer form { margin: 0; }
.signed-in { display: flex; flex-direction: column; margin: 0 0 .65rem; padding: .8rem; border-top: 1px solid rgba(255,255,255,.12); color: #fff; }
.signed-in span { color: #9fb1cc; font-size: .75rem; }
.link-button { width: 100%; border: 0; background: transparent; cursor: pointer; }
.main { min-width: 0; padding: 2rem clamp(1.1rem, 4vw, 3rem) 4rem; }
.topbar, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.environment { padding: .35rem .65rem; border: 1px solid #bdd2f5; border-radius: 999px; color: #1559b7; background: var(--blue-soft); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.alert { margin: 0 0 1.25rem; padding: .85rem 1rem; border-radius: 10px; border: 1px solid; }
.alert.success { color: var(--green); border-color: #a8dfc2; background: var(--green-soft); }
.alert.error { color: var(--red); border-color: #f0b8b2; background: var(--red-soft); }
.welcome-panel, .content-card, .table-card, .project-card { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 5px 20px rgba(16,41,77,.04); }
.welcome-panel { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; padding: clamp(1.25rem, 3vw, 2rem); background: linear-gradient(135deg, #fff, #f2f7ff); }
.stats { display: flex; gap: .8rem; }
.stats div { min-width: 90px; padding: .8rem 1rem; border-radius: 12px; background: #fff; text-align: center; }
.stats strong, .stats span { display: block; }
.stats strong { font-size: 1.45rem; }
.stats span { color: var(--muted); font-size: .75rem; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 1rem; }
.project-card { display: flex; gap: 1rem; padding: 1.3rem; }
.project-initial { display: grid; flex: 0 0 46px; height: 46px; place-items: center; border-radius: 13px; color: #fff; background: var(--blue); font-weight: 900; }
.project-hr .project-initial { background: #8b5cf6; }.project-inventory .project-initial { background: #0f9f73; }.project-it .project-initial { background: #ef7d24; }
.content-card { padding: clamp(1.15rem, 3vw, 2rem); }
.content-card.narrow { max-width: 680px; }
.table-card { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .95rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); background: #f8fafc; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
.cell-meta { display: block; margin-top: .15rem; font-size: .8rem; }
.status-pill { display: inline-flex; padding: .25rem .55rem; border-radius: 999px; color: #42516a; background: #edf1f6; font-size: .75rem; font-weight: 700; }
.status-active { color: var(--green); background: var(--green-soft); }.status-inactive, .status-locked { color: var(--red); background: var(--red-soft); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .62rem 1rem; border: 1px solid transparent; border-radius: 9px; font: inherit; font-weight: 750; cursor: pointer; }
.button:hover { text-decoration: none; }
.button.primary { color: #fff; background: var(--blue); }.button.primary:hover { background: #0e56bd; }
.button.danger { color: #fff; background: var(--red); }
.button.secondary { color: var(--blue); border-color: #b9d0f5; background: var(--blue-soft); }
.button.ghost { color: var(--ink); border-color: var(--line); background: #fff; }
.button.wide { width: 100%; }
.stacked-form { display: grid; gap: 1rem; }
label { display: grid; gap: .4rem; font-weight: 700; }
input, select, textarea { width: 100%; padding: .72rem .8rem; border: 1px solid #cbd5e1; border-radius: 9px; color: var(--ink); background: #fff; font: inherit; }
.reactive-dropdown { position: relative; width: 100%; min-width: 0; }
.reactive-dropdown-native { position: absolute !important; left: 0; bottom: 0; width: 1px !important; height: 1px !important; padding: 0 !important; opacity: 0; pointer-events: none; }
.reactive-dropdown-toggle { position: relative; width: 100%; min-height: 46px; padding: .72rem 2.35rem .72rem .8rem; overflow: hidden; border: 1px solid #cbd5e1; border-radius: 9px; color: var(--ink); text-align: left; text-overflow: ellipsis; white-space: nowrap; background: #fff; font: inherit; cursor: pointer; }
.reactive-dropdown-toggle::after { position: absolute; right: .85rem; content: '⌄'; color: var(--muted); }
.reactive-dropdown-toggle:disabled { color: #8a94a6; background: #eef2f6; cursor: not-allowed; }
.reactive-dropdown-toggle.reactive-dropdown-placeholder { color: var(--muted); }
.reactive-dropdown.open .reactive-dropdown-toggle { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,105,224,.12); }
.reactive-dropdown.is-invalid .reactive-dropdown-toggle { border-color: var(--red); }
.reactive-dropdown-menu { position: absolute; z-index: 1080; top: calc(100% + 5px); right: 0; left: 0; min-width: 220px; padding: 7px; border: 1px solid #cbd5e1; border-radius: 11px; background: #fff; box-shadow: 0 16px 38px rgba(16,41,77,.18); }
.reactive-dropdown-menu[hidden] { display: none; }
.reactive-dropdown-search-wrap { margin-bottom: 6px; padding: 0 9px; border: 1px solid #cbd5e1; border-radius: 8px; background: #f8fafc; }
.reactive-dropdown-search-wrap:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,105,224,.10); background: #fff; }
.reactive-dropdown-search { height: 38px; padding: 0; border: 0; outline: 0; background: transparent; font-size: .86rem; }
.reactive-dropdown-options { max-height: 260px; overflow-y: auto; }
.reactive-dropdown-option { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 7px; color: var(--ink); text-align: left; background: transparent; font: inherit; font-size: .86rem; cursor: pointer; }
.reactive-dropdown-option:hover, .reactive-dropdown-option:focus { outline: 0; background: var(--blue-soft); }
.reactive-dropdown-option.selected { color: #fff; background: var(--blue); }
.reactive-dropdown-empty { padding: 14px 10px; color: var(--muted); text-align: center; font-size: .82rem; }
.organization-master-actions { display: flex; flex-wrap: wrap; gap: .55rem; padding: .8rem; }
.organization-master-actions a { padding: .48rem .72rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: #fff; font-size: .78rem; font-weight: 750; }
.organization-master-actions a:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); text-decoration: none; }
.portal-date-field { position: relative; display: flex; width: 100%; min-width: 0; align-items: stretch; }
.portal-date-display { width: 100%; padding-right: 2.75rem; }
.portal-date-display[aria-invalid="true"] { border-color: var(--red); }
.portal-date-native { position: absolute !important; right: 2.25rem; bottom: 0; width: 1px !important; height: 1px !important; min-height: 1px !important; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; }
.portal-date-mobile-native { min-height: 46px; cursor: pointer; }
.portal-date-picker { position: absolute; z-index: 1; top: 50%; right: .35rem; display: grid; width: 2.15rem; min-height: 2.15rem; padding: 0; place-items: center; color: var(--ink); border: 0; border-radius: 7px; background: transparent; font: inherit; cursor: pointer; transform: translateY(-50%); }
.portal-date-picker:hover, .portal-date-picker:focus { outline: 0; background: var(--blue-soft); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(23,105,224,.16); border-color: var(--blue); }
input[readonly], textarea[readonly] { color: #5f6b7e; background: #f4f6f9; }
.leave-employee-locked:disabled { color: #5f6b7e; background: #eef1ea; cursor: not-allowed; opacity: 1; }

/* Compact role and user-group administration. */
.compact-heading { margin-bottom: .8rem; }
.compact-heading h1 { margin-bottom: .18rem; }
.compact-panel { padding: .85rem; }
.access-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .65rem; margin-bottom: .75rem; }
.access-summary article { display: flex; align-items: center; gap: .55rem; min-width: 0; padding: .68rem .8rem; border: 1px solid #dfe4e8; border-radius: 11px; background: #fff; }
.access-summary strong { font-size: 1.15rem; color: var(--navy); }
.access-summary span { color: #667085; font-size: .77rem; }
.access-summary .attention { border-color: #f2b8b5; background: #fff7f6; }
.group-create-panel { margin-bottom: .75rem; }
.group-create-panel > summary,.role-register > summary { cursor: pointer; font-weight: 800; color: var(--navy); }
.compact-group-form { display: flex; align-items: end; gap: .6rem; margin-top: .75rem; }
.compact-group-form label { min-width: 160px; }
.compact-group-form .grow { flex: 1; }
.compact-group-form .check { min-width: auto; padding-bottom: .55rem; }
.role-group-workspace { display: grid; grid-template-columns: 255px minmax(0,1fr); gap: .8rem; align-items: start; }
.role-library { position: sticky; top: .75rem; max-height: calc(100vh - 1.5rem); overflow: auto; }
.panel-heading.compact { margin-bottom: .55rem; }
.panel-heading.compact h2 { font-size: 1rem; }
.compact-search { min-height: 36px; padding: .45rem .6rem; }
.microcopy { margin: .4rem 0 .6rem; font-size: .72rem; line-height: 1.35; }
.role-chip-list { display: grid; gap: .35rem; max-height: 46vh; overflow: auto; padding-right: .2rem; }
.role-chip { display: block; width: 100%; padding: .48rem .55rem; text-align: left; border: 1px solid #dce2e6; border-radius: 8px; background: #f8fafb; cursor: grab; }
.role-chip:hover { border-color: #6d7657; background: #f3f5ef; }
.role-chip.is-dragging { opacity: .45; }
.role-chip strong,.role-chip small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-chip strong { font-size: .75rem; }
.role-chip small { margin-top: .12rem; color: #667085; font-size: .64rem; }
.unassigned-role-zone { margin-top: .65rem; padding: .58rem; border: 1px dashed #cad2d9; border-radius: 9px; background: #f8fafc; }
.unassigned-role-zone.has-items { border-color: #e99a94; background: #fff5f4; }
.unassigned-role-zone > div { display: flex; justify-content: space-between; gap: .4rem; font-size: .73rem; }
.unassigned-role-zone small { display: block; margin-top: .22rem; color: #9d2b25; font-size: .62rem; }
.unassigned-role-zone p { margin: .3rem 0 0; color: #667085; font-size: .68rem; }
.user-group-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
.user-group-card { padding: .78rem; min-width: 0; transition: border-color .15s,box-shadow .15s; }
.user-group-card.is-inactive { opacity: .7; }
.user-group-card.is-saving { border-color: #d39b28; box-shadow: 0 0 0 3px rgba(211,155,40,.12); }
.user-group-card.is-saved { border-color: #2d8a57; }
.user-group-card > header { display: flex; align-items: start; justify-content: space-between; gap: .55rem; }
.user-group-card h2 { margin: .12rem 0 0; font-size: .93rem; line-height: 1.25; }
.user-group-card > p { min-height: 2.2em; margin: .4rem 0; color: #657184; font-size: .7rem; line-height: 1.4; }
.group-counts { display: flex; gap: .7rem; margin-bottom: .45rem; color: #667085; font-size: .68rem; }
.group-counts strong { color: var(--navy); }
.group-role-dropzone { display: flex; flex-wrap: wrap; align-content: flex-start; gap: .28rem; min-height: 58px; padding: .42rem; border: 1px dashed #bcc6cf; border-radius: 9px; background: #f8fafb; }
.group-role-dropzone.is-over { border-color: #5f6849; background: #f1f4ea; box-shadow: inset 0 0 0 2px rgba(95,104,73,.1); }
.drop-hint { margin: auto; color: #8792a2; font-size: .7rem; }
.group-role-chip { display: inline-flex; align-items: center; gap: .3rem; max-width: 100%; padding: .28rem .32rem .28rem .45rem; border: 1px solid #d7ddcf; border-radius: 999px; background: #fff; font-size: .68rem; }
.group-role-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-role-chip small { display: block; color: #7b8491; font-size: .56rem; }
.group-role-chip button { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; color: #9d2b25; background: #fff0ef; line-height: 1; }
.group-settings { margin-top: .45rem; border-top: 1px solid #edf0f2; padding-top: .38rem; }
.group-settings > summary { cursor: pointer; color: #44506a; font-size: .7rem; font-weight: 800; }
.compact-settings-form,.compact-member-form { margin-top: .55rem; padding: .55rem; border-radius: 8px; background: #f8fafb; }
.compact-settings-form label,.compact-member-form label { font-size: .68rem; }
.compact-settings-form input,.compact-settings-form textarea,.compact-member-form > input { min-height: 34px; padding: .4rem .5rem; font-size: .74rem; }
.group-member-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .25rem; max-height: 190px; overflow: auto; }
.group-member-list label { display: flex; align-items: start; gap: .32rem; padding: .3rem; border: 1px solid #e2e6e9; border-radius: 7px; background: #fff; }
.group-member-list input { width: auto; min-height: 0; margin-top: .15rem; }
.group-member-list span,.group-member-list small { display: block; }
.group-member-list small { color: #7a8493; font-size: .6rem; }
.role-register { margin-top: .8rem; }
.role-register[open] > summary { margin-bottom: .65rem; }
.compact-table th,.compact-table td { padding: .48rem .55rem; font-size: .72rem; }
.compact-table td small { display: block; color: #7b8491; font-size: .62rem; }
.field-server-error { color: #b42318; font-size: .7rem; font-weight: 700; }
input.is-invalid,select.is-invalid,textarea.is-invalid,[aria-invalid="true"] { border-color: #d92d20 !important; background-color: #fff7f6 !important; }
label.has-error { color: #b42318; }
.user-group-dropdown { position: relative; width: 100%; max-width: 920px; }
.user-group-dropdown > summary { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: .45rem .65rem; border: 1px solid #aeb9c5; border-radius: 8px; background: #fff; cursor: pointer; font-size: .76rem; font-weight: 800; list-style: none; }
.user-group-dropdown > summary::-webkit-details-marker { display: none; }
.user-group-dropdown > summary::after { content: '⌄'; color: #64748b; }
.user-group-dropdown[open] > summary { border-color: #66734e; box-shadow: 0 0 0 3px rgba(102,115,78,.12); }
.user-group-dropdown-menu { position: absolute; z-index: 50; top: calc(100% + 4px); left: 0; width: min(900px, calc(100vw - 2rem)); padding: .45rem; border: 1px solid #cbd3dc; border-radius: 9px; background: #fff; box-shadow: 0 16px 36px rgba(21,32,43,.16); }
.user-group-dropdown-menu > input { min-height: 34px; margin-bottom: .35rem; padding: .38rem .5rem; font-size: .74rem; }
.selected-user-groups { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; margin-top: .45rem; color: var(--muted); font-size: .72rem; }
.selected-user-groups > strong { color: var(--ink); }
.selected-user-groups > span:not(.muted) { padding: .22rem .48rem; border: 1px solid #cfd8c2; border-radius: 999px; background: #f2f5ed; color: #445032; font-weight: 700; }
.user-group-options { display: grid; gap: 2px; max-height: 300px; overflow: auto; scrollbar-gutter: stable; }
.user-group-options label { display: grid; grid-template-columns: 16px minmax(0,1fr); align-items: center; gap: .45rem; min-height: 34px; padding: .3rem .42rem; border: 1px solid transparent; border-radius: 6px; background: #f8fafb; cursor: pointer; }
.user-group-options label[hidden],.role-chip[hidden],.group-member-list label[hidden],[data-user-directory-row][hidden],[data-user-directory-empty][hidden],.user-group-empty[hidden] { display: none !important; }
.user-group-empty { margin: .55rem 0 .15rem; padding: .7rem; text-align: center; font-size: .72rem; }
.user-group-options label:hover { border-color: #d6ddcc; background: #f0f3eb; }
.user-group-options label:has(input:checked) { border-color: #aab691; background: #eef2e7; }
.user-group-options input[type="checkbox"] { appearance: auto; width: 16px !important; height: 16px !important; min-height: 16px; margin: 0; padding: 0; flex: 0 0 16px; accent-color: #66734e; }
.user-group-options span { display: grid; grid-template-columns: minmax(145px,.7fr) minmax(0,1.65fr); align-items: center; gap: .55rem; min-width: 0; }
.user-group-options strong,.user-group-options small { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.25; }
.user-group-options strong { color: #1e293b; font-size: .72rem; }
.user-group-options small { margin: 0; color: #64748b; font-size: .61rem; font-weight: 600; }
.directory-live-search { display: grid; grid-template-columns: minmax(220px,1fr) auto; align-items: end; gap: .35rem .75rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); background: #f8fafc; }
.directory-live-search label { grid-column: 1 / -1; color: var(--muted); font-size: .72rem; }
.directory-live-search input { min-height: 40px; background: #fff; }
.directory-live-search [data-user-directory-count] { padding-bottom: .68rem; white-space: nowrap; font-size: .72rem; }

@media (max-width: 1050px) {
    .role-group-workspace { grid-template-columns: 220px minmax(0,1fr); }
    .user-group-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .access-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .compact-group-form { display: grid; grid-template-columns: 1fr; }
    .compact-group-form label { min-width: 0; }
    .role-group-workspace { grid-template-columns: 1fr; }
    .role-library { position: static; max-height: none; }
    .role-chip-list { grid-template-columns: repeat(2,minmax(0,1fr)); max-height: 220px; }
    .group-member-list { grid-template-columns: 1fr; }
    .user-group-dropdown-menu { width: min(900px, calc(100vw - 1rem)); }
    .user-group-options span { grid-template-columns: minmax(105px,.75fr) minmax(0,1.25fr); gap: .4rem; }
    .directory-live-search { grid-template-columns: 1fr; }
    .directory-live-search [data-user-directory-count] { padding-bottom: 0; }
}
.access-admin-tabs { display: flex; gap: .3rem; margin: 0 0 .8rem; padding: .3rem; overflow-x: auto; border: 1px solid #dfe4e8; border-radius: 11px; background: #fff; }
.access-admin-tabs a { flex: 1 0 auto; padding: .58rem .75rem; border-radius: 8px; color: #4b586b; text-align: center; font-size: .76rem; font-weight: 800; text-decoration: none; }
.access-admin-tabs a:hover,.access-admin-tabs a.is-active { color: #fff; background: var(--navy); }
.access-admin-panel { min-width: 0; }
.access-filter-bar { display: grid; grid-template-columns: minmax(220px,1fr) repeat(2,minmax(135px,.25fr)); gap: .6rem; align-items: end; margin: .65rem 0; padding: .7rem; border-radius: 9px; background: #f7f9fb; }
.access-filter-bar label { font-size: .7rem; }
.access-filter-bar input,.access-filter-bar select { min-height: 38px; padding: .45rem .55rem; }
.access-master-detail { display: grid; grid-template-columns: minmax(240px,300px) minmax(0,1fr); gap: .8rem; align-items: start; }
.access-master-list { position: sticky; top: .75rem; }
.access-master-items { display: grid; gap: .22rem; max-height: 58vh; margin: .5rem 0; overflow: auto; }
.access-master-items a { display: grid; gap: .12rem; padding: .48rem .55rem; border: 1px solid transparent; border-radius: 8px; color: #334155; text-decoration: none; }
.access-master-items a:hover,.access-master-items a.is-active { border-color: #bbc6ab; background: #eef2e8; }
.access-master-items strong { font-size: .72rem; }.access-master-items small { color: #6b7585; font-size: .62rem; }
.access-master-items a[hidden],[data-assignment-row][hidden],[data-role-row][hidden],[data-role-table-empty][hidden] { display: none !important; }
.access-detail-heading,.effective-user-heading { display: flex; align-items: start; justify-content: space-between; gap: .8rem; border-bottom: 1px solid #e5e9ed; padding-bottom: .65rem; }
.access-detail-heading h2,.effective-user-heading h3 { margin: .08rem 0; }.access-detail-heading p,.effective-user-heading p { margin: .2rem 0 0; color: #667085; font-size: .72rem; }
.group-impact-strip { display: flex; flex-wrap: wrap; gap: .4rem; margin: .65rem 0; }.group-impact-strip span { padding: .38rem .55rem; border: 1px solid #dce2e6; border-radius: 8px; background: #f8fafb; color: #667085; font-size: .68rem; }.group-impact-strip strong { color: var(--navy); }
.access-detail-sections { display: grid; gap: .45rem; margin-top: .65rem; }.access-detail-sections > details,.effective-permissions { padding: .65rem; border: 1px solid #dfe4e8; border-radius: 9px; background: #fff; }.access-detail-sections > details > summary,.effective-permissions > summary { cursor: pointer; color: var(--navy); font-size: .76rem; font-weight: 800; }.access-detail-sections > details[open] > summary,.effective-permissions[open] > summary { margin-bottom: .55rem; }
.group-assignment-form,.position-default-form { margin-top: .45rem; }.group-assignment-form > input[type="search"],.position-default-form > input[type="search"] { min-height: 36px; }
.access-check-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .28rem; max-height: 340px; padding: .25rem; overflow: auto; border: 1px solid #e3e7ea; border-radius: 8px; background: #f8fafb; }
.access-check-grid label { display: grid; grid-template-columns: 18px minmax(0,1fr); gap: .4rem; align-items: start; padding: .4rem; border: 1px solid #e2e6e9; border-radius: 7px; background: #fff; cursor: pointer; }.access-check-grid label:has(input:checked) { border-color: #aab691; background: #eef2e7; }.access-check-grid input { width: 16px; height: 16px; min-height: 16px; margin: .12rem 0 0; }.access-check-grid strong,.access-check-grid small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.access-check-grid strong { font-size: .7rem; }.access-check-grid small { color: #6f7988; font-size: .6rem; }
.compact-list { display: grid; gap: .25rem; margin: 0; padding: 0; list-style: none; }.compact-list li { padding: .4rem .5rem; border: 1px solid #e4e8eb; border-radius: 7px; background: #f8fafb; }.compact-list strong,.compact-list small { display: block; }.compact-list strong { font-size: .7rem; }.compact-list small { color: #6f7988; font-size: .61rem; }
.effective-access-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .55rem; margin: .65rem 0; }.effective-access-grid article { min-width: 0; padding: .65rem; border: 1px solid #dfe4e8; border-radius: 9px; background: #fff; }.effective-access-grid h3 { margin: 0 0 .45rem; font-size: .78rem; }
.permission-toolbar { display: grid; grid-template-columns: minmax(220px,1fr) auto auto; gap: .65rem; align-items: end; padding: .65rem; border: 1px solid #e0e5e9; border-radius: 10px; background: #f8fafb; }.permission-toolbar label { font-size: .7rem; }.permission-toolbar .check { display: flex; align-items: center; gap: .35rem; padding-bottom: .55rem; }.permission-toolbar .check input { width: 16px; height: 16px; min-height: 16px; }.permission-toolbar > span { padding-bottom: .58rem; color: #667085; font-size: .7rem; }.module-actions { display: inline-flex; gap: .25rem; float: right; }.module-actions button { padding: .15rem .35rem; border: 1px solid #cfd6dc; border-radius: 5px; background: #fff; color: #465366; font-size: .6rem; cursor: pointer; }
.permission-project-tabs { display: flex; gap: .3rem; margin-top: .65rem; overflow-x: auto; }.permission-project-tabs button { flex: 1 0 auto; padding: .45rem .65rem; border: 1px solid #d8dfe4; border-radius: 7px; background: #fff; color: #526075; font-size: .7rem; font-weight: 800; cursor: pointer; }.permission-project-tabs button[aria-selected="true"] { border-color: var(--navy); color: #fff; background: var(--navy); }
.module-toggle { padding: 0; border: 0; color: var(--navy); background: transparent; font: inherit; font-weight: 800; cursor: pointer; }.module-toggle::before { content: '▾'; display: inline-block; margin-right: .3rem; }.permission-project fieldset.is-collapsed .module-toggle::before { transform: rotate(-90deg); }.permission-project fieldset.is-collapsed [data-permission-row] { display: none !important; }
.permission-project[hidden],.permission-project fieldset[hidden],.permission-project [data-permission-row][hidden] { display: none !important; }
@media (max-width: 850px) { .access-master-detail { grid-template-columns: 1fr; }.access-master-list { position: static; }.access-master-items { max-height: 260px; }.effective-access-grid { grid-template-columns: 1fr 1fr; }.access-filter-bar { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .access-admin-tabs a { padding: .52rem .62rem; }.access-check-grid,.effective-access-grid,.access-filter-bar,.permission-toolbar { grid-template-columns: 1fr; }.permission-toolbar .check,.permission-toolbar > span { padding-bottom: 0; }.access-detail-heading,.effective-user-heading { align-items: flex-start; }.group-impact-strip { display: grid; grid-template-columns: 1fr 1fr; }.compact-table { min-width: 720px; } }
.form-grid, .split-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-actions { display: flex; gap: .7rem; margin-top: .6rem; }
.divider { height: 1px; margin: .6rem 0; background: var(--line); }
fieldset { display: grid; gap: .65rem; margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; }
legend { padding: 0 .4rem; font-weight: 800; }
.check-card { display: grid; grid-template-columns: 20px 1fr; gap: .65rem; align-items: start; padding: .7rem; border: 1px solid var(--line); border-radius: 10px; font-weight: 400; }
.check-card input { width: 18px; height: 18px; margin-top: .15rem; }
.check-card span, .check-card strong, .check-card small { display: block; }
.check-card small { margin-top: .15rem; color: var(--muted); }
.permission-projects { display: grid; gap: 1rem; }.permission-project { padding: 1rem; border-radius: 14px; background: #f8fafc; }.permission-project fieldset + fieldset { margin-top: .8rem; }
.empty-state { padding: 2rem; color: var(--muted); text-align: center; }
.page-actions { display: flex; justify-content: space-between; margin-bottom: 1rem; }
.module-grid, .balance-grid, .approval-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.module-link { display: grid; gap: .25rem; color: var(--ink); }
.module-link:hover { border-color: #b9d0f5; text-decoration: none; transform: translateY(-1px); }
.module-link span, .balance-card span { color: var(--muted); }
.balance-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .2rem .7rem; }
.balance-card strong { font-size: 1.5rem; }.balance-card span:last-child { grid-column: 2; }
.color-dot { display: inline-block; width: .72rem; height: .72rem; margin-right: .45rem; border-radius: 50%; background: var(--dot, #64748b); }
.filter-bar { display: grid; grid-template-columns: minmax(180px, 420px) auto; gap: .7rem; margin-bottom: 1rem; }
.audit-filter { grid-template-columns: minmax(180px, 1fr) minmax(140px, 220px) auto; }.unified-section { margin-top: 2rem; }.unified-actions { margin-top: -1rem; }.unread-row { background: #f3f8ff; }.inline-form { display: inline; margin-left: .7rem; }.table-link { display: inline; width: auto; padding: 0; color: var(--blue); }.table-link:hover { color: var(--blue); background: transparent; text-decoration: underline; }
.notification-center-heading{align-items:flex-end}.notification-center-heading .heading-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.notification-center-heading form{margin:0}.notification-center{padding:0;overflow:visible}.notification-center .notification-list{display:grid}.notification-center-card{position:relative;display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px;padding:0!important;border:0!important;border-bottom:1px solid var(--line)!important;background:#fff}.notification-center-card:last-child{border-bottom:0!important}.notification-center-card.unread{border-left:4px solid #66774d!important;background:#f7f9f3}.notification-card-main{display:block;min-width:0;margin:0;color:inherit;text-decoration:none}.notification-card-main:hover{text-decoration:none}.notification-card-main>button,.notification-card-main:not(form){display:grid;width:100%;min-width:0;padding:17px 18px;gap:4px;border:0;border-radius:0;background:transparent;color:inherit;text-align:left}.notification-card-main>button{cursor:pointer}.notification-card-main>button:hover,.notification-card-main:not(form):hover{background:rgba(96,112,75,.055)}.notification-card-main strong{font-size:.9rem;line-height:1.35}.notification-card-main>button>span:not(.notification-card-project),.notification-card-main>span:not(.notification-card-project){color:var(--muted);font-size:.78rem;line-height:1.45}.notification-card-main time{color:#7c8577;font-size:.68rem}.notification-card-project{width:max-content;padding:3px 7px;border-radius:999px;background:#edf1e7;color:#52603f;font-size:.62rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.notification-card-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px;padding:12px 16px 12px 0}.notification-card-actions form{margin:0}.notification-reject-control{position:relative}.notification-reject-control>summary{list-style:none;cursor:pointer}.notification-reject-control>summary::-webkit-details-marker{display:none}.notification-reject-control[open]>form{position:absolute;z-index:12;right:0;top:calc(100% + 8px);display:grid;width:min(300px,calc(100vw - 32px));padding:13px;gap:9px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 18px 42px rgba(24,36,19,.18)}.notification-reject-control textarea{width:100%;margin-top:5px;resize:vertical}.notification-reject-control label{font-size:.72rem;font-weight:750}
.profile-heading { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.profile-avatar { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 18px; color: #fff; background: #8b5cf6; font-size: 1.35rem; font-weight: 900; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 0; }
.detail-grid div { padding: .85rem; border-radius: 10px; background: #f8fafc; }.detail-grid dt { color: var(--muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; }.detail-grid dd { margin: .25rem 0 0; }.detail-grid .detail-wide { grid-column: 1 / -1; }
.decision-form { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; gap: .55rem; flex: 1; }
.status-approved, .status-approve { color: var(--green); background: var(--green-soft); }.status-rejected, .status-reject, .status-cancelled { color: var(--red); background: var(--red-soft); }
.auth-page { display: grid; min-height: 100vh; padding: 1.2rem; place-items: center; background: radial-gradient(circle at top left, #e8f1ff 0, transparent 38%), linear-gradient(135deg, #f8fbff, #edf3fa); }
.auth-card { width: min(100%, 460px); padding: clamp(1.4rem, 4vw, 2.2rem); border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.96); box-shadow: var(--shadow); }
.auth-card-wide { width: min(100%, 720px); }.auth-brand { margin-bottom: 2rem; color: var(--ink); }.auth-brand small { color: var(--muted); }.error-code { margin-bottom: .25rem; color: var(--blue); font-size: 2.6rem; font-weight: 900; }
@media (max-width: 820px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: static; height: auto; }
    .nav { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1rem; }
    .sidebar-footer { margin-top: 1rem; }
    .welcome-panel, .topbar, .section-heading { align-items: flex-start; flex-direction: column; }
    .stats { width: 100%; }.stats div { flex: 1; }
}
@media (max-width: 620px) {
    .form-grid, .split-fields { grid-template-columns: 1fr; }
    .nav { grid-template-columns: 1fr; }
    .main { padding: 1.2rem .8rem 3rem; }
    .stats { flex-wrap: wrap; }
    th, td { padding: .75rem; }
    .filter-bar, .audit-filter { grid-template-columns: 1fr; }
}

/* System-owned navigation and the intentionally minimal Portal launcher. */
.nav a.active { color: #fff; background: rgba(255,255,255,.13); box-shadow: inset 3px 0 0 var(--system-accent, #67e8f9); }
.portal-landing { --portal-olive: #5f6849; --portal-olive-dark: #283022; --portal-yellow: #ffd21c; --portal-cream: #f7f3e9; --portal-gold: #b7842d; min-height: 100vh; background: radial-gradient(circle at 88% 7%, rgba(255,210,28,.13), transparent 24%), linear-gradient(180deg, #f8f7f2 0%, #f1f3ee 100%); }
.landing-shell { display: block; }
.portal-main { min-height: 100vh; padding: 0; }
.portal-topbar { min-height: 72px; margin: 0; padding: 0 clamp(1.2rem, 4vw, 4rem); border-bottom: 1px solid rgba(74,84,63,.14); background: rgba(255,255,255,.9); box-shadow: 0 1px 0 rgba(255,255,255,.8); backdrop-filter: blur(16px); }
.portal-brand { display: flex; align-items: center; gap: .75rem; color: var(--ink); }
.portal-brand:hover { text-decoration: none; }
.portal-brand > span:last-child { display: flex; flex-direction: column; }
.portal-brand > span:last-child strong { color: #293123; font-size: .86rem; letter-spacing: -.01em; }
.portal-brand small { color: #7b806f; font-size: .6rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.portal-brand-logos { display: flex; height: 50px; align-items: center; gap: .58rem; }
.portal-brand-logos > span { width: 1px; height: 30px; background: #dedfd7; }
.portal-brand-popin { width: 48px; height: 28px; object-fit: contain; }
.portal-brand-bringin { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(103,75,22,.18)); }
.portal-account { display: flex; align-items: center; gap: 1rem; }
.portal-account > span { font-weight: 750; }
.portal-account-name { padding:0;color:inherit;border:0;background:transparent;font:inherit;font-weight:750; }
.portal-account-name > i,.portal-account-name > b { display:none; }
.portal-mobile-account-menu { display:none; }
.portal-account form { margin: 0; }
.portal-account .link-button { width: auto; padding: .45rem .7rem; color: #5f6849; }
.portal-account > a { color: #5f6849; font-size: .82rem; font-weight: 750; }
.portal-home { width: min(1400px, 100%); min-height: calc(100vh - 72px); margin: 0 auto; padding: clamp(1rem, 2vw, 1.8rem) clamp(1rem, 3vw, 2.5rem) 1.25rem; }
.portal-workspaces { padding: 0; }
.portal-workspace-intro { position: relative; display: flex; min-height: 246px; margin-bottom: 1rem; padding: 1.25rem 170px 1.25rem 1.4rem; align-items: stretch; justify-content: space-between; overflow: hidden; border: 1px solid #dfe3d9; border-radius: 20px; background: linear-gradient(118deg, rgba(255,255,255,.96), rgba(244,246,239,.94)); box-shadow: 0 12px 34px rgba(40,49,34,.07); }
.portal-workspace-intro::after { position: absolute; right: 58px; bottom: -110px; width: 220px; height: 220px; content: ''; border: 1px solid rgba(95,104,73,.1); border-radius: 50%; box-shadow: 0 0 0 35px rgba(95,104,73,.025); }
.portal-workspace-intro > div { position: relative; z-index: 2; min-width: 0; }
.portal-hero-content { display:flex;width:100%;flex-direction:column }
.portal-hero-heading { display:contents; }
.portal-workspace-intro .eyebrow { margin-bottom: .35rem; color: #737c5c; }
.portal-workspace-intro h1 { margin: 0; color: #242d21; font-size: clamp(1.15rem,2vw,1.5rem); letter-spacing: -.035em; }
.portal-workspace-intro > .portal-hero-content > p:last-child { margin: .42rem 0 0; color: #7a8173; font-size: .78rem; }
.portal-workspace-mascot { position: absolute; z-index: 3; right: 20px; bottom: -36px; width: 142px; margin: 0; pointer-events: none; }
.portal-workspace-mascot img { display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 14px rgba(35,43,28,.2)); }
.portal-section-heading { display: flex; margin-bottom: 1.35rem; align-items: end; justify-content: space-between; gap: 2rem; }
.portal-section-heading h2 { margin: 0; color: #242d21; font-size: clamp(1.55rem,2.5vw,2.15rem); letter-spacing: -.04em; }
.portal-section-heading .eyebrow { color: #737c5c; }
.portal-section-heading > p { max-width: 360px; margin: 0; color: #7a8173; font-size: .82rem; text-align: right; }
.portal-launch { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: clamp(.75rem,1.5vw,1rem); padding: 0; }
.system-launch { --launch-accent: #68734e; --launch-soft: #f0f2ea; position: relative; display: grid; min-height: 186px; padding: clamp(.9rem,1.4vw,1.15rem); align-content: space-between; gap: .72rem; overflow: hidden; color: #222b20; border: 1px solid #dfe3d9; border-top: 4px solid var(--launch-accent); border-radius: 18px; background: rgba(255,255,255,.9); box-shadow: 0 12px 34px rgba(40,49,34,.07); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.system-launch::after { position: absolute; right: -58px; top: -72px; width: 180px; height: 180px; content: ''; border-radius: 50%; background: var(--launch-soft); opacity: .58; }
.system-launch:hover { color: #222b20; border-color: var(--launch-accent); text-decoration: none; transform: translateY(-4px); box-shadow: 0 22px 52px rgba(40,49,34,.14); }
.system-launch:focus-visible { outline: 3px solid var(--portal-yellow); outline-offset: 4px; }
.system-launch-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.system-launch-icon { display: grid; width: 46px; height: 46px; place-items: center; color: var(--launch-accent); border-radius: 13px; background: var(--launch-soft); }
.system-launch-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.system-access-state { display: inline-flex; align-items: center; gap: .4rem; color: #6e7666; font-size: .68rem; font-weight: 800; }
.system-access-state i { width: 7px; height: 7px; border-radius: 50%; background: #4b995f; box-shadow: 0 0 0 4px #e7f3e8; }
.system-launch-copy { position: relative; z-index: 1; display: grid; gap: .5rem; max-width: 330px; }
.system-launch-kicker { color: var(--launch-accent); font-size: .66rem!important; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.system-launch-copy strong { color: #222b20; font-size: clamp(1.25rem,1.8vw,1.65rem); letter-spacing: -.04em; }
.system-launch-copy > span { color: #6f776a; font-size: .78rem; line-height: 1.48; }
.system-feature-list { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: .4rem; }
.system-feature-list small { padding: .32rem .55rem; color: #616a59; border: 1px solid #e0e4da; border-radius: 999px; background: #fafbf8; font-size: .64rem; font-weight: 700; }
.system-launch-footer { position: relative; z-index: 1; display: flex; padding-top: .75rem; align-items: center; justify-content: space-between; color: var(--launch-accent); border-top: 1px solid #e8ebe3; font-size: .74rem; font-weight: 850; }
.system-launch-arrow { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: #fff; background: var(--launch-accent); font-size: .95rem; transition: transform .18s ease; }
.system-launch:hover .system-launch-arrow { transform: rotate(8deg) scale(1.06); }
.system-launch-hr { --launch-accent: #68734e; --launch-soft: #edf0e6; }
.system-launch-inventory { --launch-accent: #aa7927; --launch-soft: #fbf0d7; }
.system-launch-it { --launch-accent: #173e63; --launch-soft: #e7eef5; }
.system-launch.disabled { align-content: start; opacity: .48; cursor: not-allowed; filter: grayscale(.3); }
.system-launch.disabled:hover { border-color: #dfe3d9; transform: none; box-shadow: 0 14px 42px rgba(40,49,34,.08); }
.portal-assurance { display: grid; margin-top: .85rem; padding: .8rem 1rem; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; border: 1px solid #dfe3d9; border-radius: 15px; background: rgba(255,255,255,.72); }
.portal-assurance > div { display: flex; min-width: 0; padding: .4rem 1.2rem; align-items: center; gap: .8rem; border-right: 1px solid #e2e5dd; }
.portal-assurance > div:first-child { padding-left: 0; }
.portal-assurance > div:last-child { padding-right: 0; border-right: 0; }
.portal-assurance > div > span { color: #a38b4e; font-size: .65rem; font-weight: 850; }
.portal-assurance p { display: grid; margin: 0; }
.portal-assurance strong { color: #343d2f; font-size: .76rem; }
.portal-assurance small { margin-top: .1rem; color: #7e8578; font-size: .66rem; }
.portal-home-footer { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; padding: 1.1rem .2rem 0; color: #7d8577; border-top: 1px solid #dfe3d9; font-size: .7rem; }
.portal-booking-cta { display:inline-flex;margin-top:.7rem;padding:.65rem .8rem;align-items:center;gap:1rem;color:#283022;border:1px solid #dec25c;border-radius:11px;background:#ffd94a;font-size:.78rem;font-weight:850;box-shadow:0 7px 20px rgba(143,111,10,.14) }
.portal-booking-cta:hover { color:#1f271b;text-decoration:none;background:#ffe16b;transform:translateY(-1px) }
.portal-booking-cta b { display:grid;width:27px;height:27px;place-items:center;border-radius:8px;color:#fff;background:#3c472f }
.portal-room-booking-cta { border-color:#b9c7a8;background:#edf3e7;box-shadow:0 7px 20px rgba(73,96,54,.12) }
.portal-room-booking-cta:hover { background:#e1ecd8 }
.portal-car-booking-cta { border-color:#e0bd67;background:#ffe4a0;box-shadow:0 7px 20px rgba(143,111,10,.13) }
.portal-car-booking-cta:hover { background:#ffdc82 }
.portal-dashboard-actions { display:flex;margin-top:.7rem;align-items:stretch;flex-wrap:wrap;gap:.65rem }
.portal-dashboard-actions [data-quick-menu-item] { position:relative;transition:opacity .16s ease,transform .16s ease,box-shadow .16s ease }
.portal-dashboard-actions [data-quick-menu-item].is-dragging { z-index:8;opacity:.62;transform:scale(.98);box-shadow:0 14px 34px rgba(40,49,34,.2) }
.portal-quick-drag-handle { position:absolute;z-index:4;right:5px;top:5px;display:grid;width:22px;height:22px;place-items:center;color:rgba(40,49,34,.6);border:1px solid rgba(72,84,62,.18);border-radius:7px;background:rgba(255,255,255,.82);font-size:.7rem;line-height:1;cursor:grab;touch-action:none;user-select:none }
.portal-attendance-cta .portal-quick-drag-handle { color:rgba(255,255,255,.86);border-color:rgba(255,255,255,.28);background:rgba(255,255,255,.14) }
.portal-quick-drag-handle:active { cursor:grabbing }
.portal-quick-menu-status { min-height:1rem;margin:.35rem 0 0;color:#66725c;font-size:.65rem }
.portal-quick-menu-status.is-error { color:#a12d2d }
body.is-reordering-quick-menu { user-select:none }
.portal-attendance-actions { display:grid;grid-template-columns:minmax(230px,1fr);gap:.45rem }
.portal-attendance-cta { display:flex;min-height:48px;padding:.55rem .65rem;align-items:center;justify-content:space-between;gap:.65rem;color:#fff;border:1px solid transparent;border-radius:11px;text-decoration:none;box-shadow:0 7px 20px rgba(35,74,49,.15) }
.portal-attendance-cta:hover { color:#fff;text-decoration:none;transform:translateY(-1px) }.portal-attendance-cta.time-in{background:#18764f;border-color:#126641}.portal-attendance-cta.time-out{background:#334b70;border-color:#293e60}
.portal-attendance-cta>span { display:grid }.portal-attendance-cta small{color:rgba(255,255,255,.72);font-size:.55rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.portal-attendance-cta strong{font-size:.86rem}.portal-attendance-cta b{display:grid;min-width:32px;height:32px;padding:0 5px;place-items:center;border-radius:9px;background:rgba(255,255,255,.16);font-size:.6rem}
.portal-dashboard-actions .portal-booking-cta { margin-top:0 }
.portal-leave-cta { display:inline-flex;padding:.65rem .8rem;align-items:center;gap:1rem;color:#fff;border:1px solid #53633e;border-radius:11px;background:#63764a;font-size:.78rem;font-weight:850;box-shadow:0 7px 20px rgba(57,72,41,.15) }
.portal-leave-cta:hover { color:#fff;text-decoration:none;background:#52643c;transform:translateY(-1px) }
.portal-leave-cta b { display:grid;width:27px;height:27px;place-items:center;border-radius:8px;color:#52643c;background:#fff }
.portal-announcement-cta { position:relative;display:flex;min-height:48px;padding:.55rem .7rem;align-items:center;gap:.6rem;color:#283022;border:1px solid #d6dbcd;border-radius:11px;background:#fff;box-shadow:0 7px 20px rgba(40,49,34,.08) }
.portal-announcement-cta:hover { color:#1f271b;text-decoration:none;border-color:#a9b396;transform:translateY(-1px) }
.portal-announcement-icon { display:grid;width:30px;height:30px;place-items:center;border-radius:9px;background:#f6e79a }
.portal-announcement-cta>span:nth-child(2) { display:grid;text-align:left }
.portal-announcement-cta small { color:#7b836f;font-size:.59rem;font-weight:750;text-transform:uppercase;letter-spacing:.06em }
.portal-announcement-cta strong { font-size:.78rem }
.portal-announcement-cta>b { position:absolute;right:-7px;top:-8px;display:grid;min-width:22px;height:22px;padding:0 5px;place-items:center;color:#fff;border:2px solid #fff;border-radius:999px;background:#d9473f;font-size:.62rem }
.portal-announcement-icon svg,.portal-mobile-action-icon svg { width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round }
.portal-mobile-section-heading,.portal-mobile-system-title,.portal-mobile-action-icon { display:none; }
.portal-bell-link { position:relative;display:grid!important;width:34px;height:34px;padding:0!important;place-items:center;border:1px solid #dfe3d9;border-radius:10px;background:#fff;font-size:.9rem!important }
.portal-bell-link>strong { position:absolute;right:-7px;top:-8px;display:grid;min-width:20px;height:20px;padding:0 4px;place-items:center;color:#fff;border:2px solid #fff;border-radius:999px;background:#d9473f;font-size:.58rem }
.portal-announcement-link { display:inline-flex!important;align-items:center;gap:.35rem }
.portal-announcement-link>strong { display:grid;min-width:19px;height:19px;padding:0 4px;place-items:center;color:#fff;border-radius:999px;background:#d9473f;font-size:.57rem }
.portal-latest-heading { display:flex;align-items:center;justify-content:space-between;gap:12px }
.portal-latest-heading h1 { min-width:0;white-space:nowrap }
.portal-latest-heading>a { color:#596746;font-size:.68rem;font-weight:850 }
.portal-latest-announcements { display:grid;margin-top:.55rem;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem }
.portal-latest-announcements article { display:grid;min-width:0;padding:.62rem .68rem;align-content:start;gap:.55rem;border:1px solid #dfe4d8;border-radius:11px;background:rgba(255,255,255,.9) }
.portal-latest-announcements article.has-photo { grid-template-columns:72px minmax(0,1fr) }
.portal-latest-photo { width:72px;height:72px;object-fit:cover;border-radius:9px;background:#edf0e8 }
.portal-latest-copy { display:grid;min-width:0;align-content:start;gap:.28rem }
.portal-latest-copy>div { display:flex;min-width:0;align-items:start;justify-content:space-between;gap:.45rem }
.portal-latest-announcements strong { overflow:hidden;color:#2e382a;font-size:.72rem;text-overflow:ellipsis;white-space:nowrap }
.portal-latest-announcements small { flex:0 0 auto;color:#8a927f;font-size:.58rem;font-weight:750 }
.portal-latest-copy>p { display:-webkit-box;min-height:2.25em;margin:0;overflow:hidden;color:#71796c;font-size:.64rem;line-height:1.15;-webkit-box-orient:vertical;-webkit-line-clamp:2 }
.portal-latest-copy>a { width:max-content;color:#52643f;font-size:.62rem;font-weight:850 }
.portal-no-announcements { grid-column:1/-1!important;min-height:0!important;margin:0!important;padding:.7rem;color:#737c6d!important;border:1px dashed #d6dccf;border-radius:10px;background:rgba(255,255,255,.64);font-size:.72rem!important }
.portal-system-heading { display:flex;margin:.15rem 0 .65rem;align-items:baseline;gap:.7rem;color:#273022 }
.portal-system-heading p,.portal-system-heading strong,.portal-system-heading span { margin:0 }
.portal-system-heading strong { font-size:1rem }
.portal-system-heading span { margin-left:auto;color:#7a8173;font-size:.7rem;font-weight:750 }

/* Shared room and company-car booking. */
.booking-shell { width:min(1440px,100%);margin:0 auto;padding:clamp(14px,2.4vw,34px);color:#273022 }
.booking-hero { display:flex;margin-bottom:14px;padding:20px 22px;align-items:center;justify-content:space-between;gap:18px;border:1px solid #dfe3d9;border-radius:18px;background:linear-gradient(120deg,#fff,#f4f6ef);box-shadow:0 10px 30px rgba(40,49,34,.07) }
.booking-hero.compact { padding:16px 18px }
.booking-hero h1 { margin:2px 0 4px;font-size:clamp(1.55rem,3vw,2.35rem);letter-spacing:-.045em }
.booking-hero p { max-width:760px;margin:0;color:#737c6d }
.booking-hero-actions { display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:8px }
.booking-page-switch { display:grid;margin-bottom:14px;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px }
.booking-page-switch a { display:flex;min-height:68px;padding:12px 14px;align-items:center;gap:11px;color:#35402f;border:1px solid #dfe3d9;border-radius:14px;background:#fff;box-shadow:0 7px 22px rgba(40,49,34,.05);transition:border-color .16s ease,background .16s ease,transform .16s ease }
.booking-page-switch a:hover { text-decoration:none;border-color:#aeb99e;background:#f8faf5;transform:translateY(-1px) }
.booking-page-switch a>span:first-child { display:grid;width:38px;height:38px;flex:0 0 auto;place-items:center;border-radius:11px;color:#fff;background:#687650;font-size:.9rem }
.booking-page-switch a:last-child>span:first-child { background:#b88027 }
.booking-page-switch a>span:last-child { display:grid;gap:2px }
.booking-page-switch strong { font-size:.86rem }
.booking-page-switch small { color:#75806f;font-size:.66rem }
.booking-page-switch a.is-active { border-color:#879673;background:#f0f5e9;box-shadow:inset 0 0 0 1px #879673,0 8px 24px rgba(67,84,49,.09) }
.booking-page-switch a:last-child.is-active { border-color:#c49343;background:#fff5df;box-shadow:inset 0 0 0 1px #c49343,0 8px 24px rgba(135,95,29,.09) }
.booking-toolbar { margin-bottom:14px;padding:12px 14px;border:1px solid #dfe3d9;border-radius:14px;background:#fff }
.booking-toolbar form { display:grid;grid-template-columns:1fr 1.2fr .8fr auto;align-items:end;gap:10px }
.booking-toolbar.is-specific form { grid-template-columns:minmax(220px,1.4fr) minmax(170px,.8fr) auto }
.booking-toolbar label,.booking-form-grid label { display:grid;gap:5px;font-size:.73rem;font-weight:800 }
.booking-toolbar select,.booking-toolbar input,.booking-form-grid input,.booking-form-grid select,.booking-form-grid textarea,.booking-admin-search input { width:100%;min-height:42px;border:1px solid #ccd3c5;border-radius:9px;background:#fff }
.booking-layout { display:grid;grid-template-columns:minmax(0,2.1fr) minmax(300px,.9fr);align-items:start;gap:14px }
.booking-calendar-card,.booking-day-panel,.booking-form-card,.booking-resource-list,.booking-admin-card,.booking-pending-card { border:1px solid #dfe3d9;border-radius:16px;background:#fff;box-shadow:0 10px 30px rgba(40,49,34,.06) }
.booking-calendar-card { overflow:hidden }
.booking-calendar-heading { display:grid;padding:13px 14px;grid-template-columns:40px 1fr 40px;align-items:center;text-align:center;border-bottom:1px solid #e5e8e0 }
.booking-calendar-heading h2,.booking-calendar-heading p { margin:0 }
.calendar-arrow { display:grid;width:36px;height:36px;place-items:center;border:1px solid #d8ddd2;border-radius:10px;color:#3f4a35;font-size:1.5rem;font-weight:700 }
.calendar-arrow:hover { text-decoration:none;background:#f2f5ed }
.booking-weekdays,.booking-month-grid { display:grid;grid-template-columns:repeat(7,minmax(0,1fr)) }
.booking-weekdays span { padding:8px 4px;color:#778071;background:#f7f8f4;font-size:.63rem;font-weight:850;text-align:center;text-transform:uppercase }
.booking-day { display:grid;min-height:106px;padding:7px;align-content:start;gap:5px;color:#273022;border-top:1px solid #e7eae3;border-right:1px solid #e7eae3;background:#fff }
.booking-day:nth-child(7n) { border-right:0 }
.booking-day:hover { text-decoration:none;background:#f7f9f3 }
.booking-day.is-outside { color:#a7ada1;background:#fafbf9 }
.booking-day.is-selected { outline:2px solid #67764f;outline-offset:-2px;background:#f5f8ee }
.booking-day.is-today .booking-day-number { color:#fff;background:#5f6d49 }
.booking-day-number { display:grid;width:23px;height:23px;place-items:center;border-radius:7px;font-size:.72rem;font-weight:850 }
.booking-day-items { display:grid;gap:3px;min-width:0 }
.booking-slot { display:block;overflow:hidden;padding:3px 5px;border-left:3px solid #61764f;border-radius:4px;background:#edf3e8;font-size:.6rem;text-overflow:ellipsis;white-space:nowrap }
.booking-slot-car { border-left-color:#b57a1d;background:#fff2d9 }
.booking-slot.is-pending { opacity:.72;border-style:dashed }
.booking-day-items small { color:#727b6d;font-size:.57rem }
.booking-day-panel { position:sticky;top:14px;padding:14px }
.booking-day-panel>header { display:flex;padding-bottom:11px;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #e7eae3 }
.booking-day-panel h2,.booking-day-panel p { margin:0 }
.booking-day-list { display:grid;gap:9px;margin-top:10px }
.booking-day-entry { display:grid;padding:10px;grid-template-columns:88px minmax(0,1fr);gap:10px;border:1px solid #dde3d7;border-left-width:4px;border-radius:11px;background:#fbfcf9 }
.booking-entry-time { display:grid;align-content:start;gap:4px }
.booking-entry-time strong { font-size:.75rem }
.booking-entry-time span { color:#75806e;font-size:.62rem }
.booking-entry-copy { min-width:0 }
.booking-entry-copy h3,.booking-entry-copy p { margin:0 0 3px }
.booking-entry-copy h3 { font-size:.92rem }
.booking-entry-copy>p:not(.eyebrow),.booking-entry-copy small { display:block;color:#697361;font-size:.68rem;overflow-wrap:anywhere }
.booking-entry-actions { display:flex;grid-column:1/-1;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px }
.booking-entry-actions form { margin:0 }
.booking-empty { padding:28px 10px;text-align:center;color:#687161 }
.booking-empty p { margin:4px 0 0 }
.booking-pending-card { margin-top:14px;padding:14px }
.booking-pending-card>header { display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:11px;border-bottom:1px solid #e7eae3 }
.booking-pending-card h2,.booking-pending-card p { margin:0 }
.booking-pending-list { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:10px }
.booking-form-shell { max-width:900px }
.booking-form-card { padding:18px }
.booking-form-card h2 { margin-top:0 }
.booking-form-grid { display:grid;grid-template-columns:1fr 1fr;gap:12px }
.booking-form-grid .span-2 { grid-column:1/-1 }
.booking-form-card footer { display:flex;margin-top:16px;padding-top:14px;justify-content:flex-end;gap:8px;border-top:1px solid #e4e8df }
.booking-requester { display:grid;padding:11px;border:1px solid #dce2d6;border-radius:10px;background:#f6f8f2 }
.booking-requester span { color:#6e7867;font-size:.72rem }
.booking-create-dialog { width:min(760px,calc(100% - 24px));max-width:none;max-height:min(88dvh,800px);padding:0;overflow:hidden;color:#273022;border:0;border-radius:18px;background:#fff;box-shadow:0 24px 70px rgba(30,38,25,.28) }
.booking-create-dialog::backdrop { background:rgba(19,27,17,.58);backdrop-filter:blur(3px) }
.booking-modal-card { display:grid;max-height:min(88dvh,800px);grid-template-rows:auto minmax(0,1fr) auto }
.booking-modal-header { display:flex;padding:17px 18px;align-items:flex-start;justify-content:space-between;gap:14px;border-bottom:1px solid #e3e7de;background:linear-gradient(120deg,#fff,#f4f6ef) }
.booking-modal-header h2,.booking-modal-header p { margin:0 }
.booking-modal-header h2 { font-size:1.35rem;letter-spacing:-.03em }
.booking-modal-header p:not(.eyebrow) { margin-top:3px;color:#747e6e;font-size:.74rem }
.booking-modal-close { display:grid;width:36px;height:36px;min-height:36px;padding:0;flex:0 0 auto;place-items:center;color:#4c5744;border:1px solid #d6dcd0;border-radius:10px;background:#fff;font-size:1.3rem;line-height:1;cursor:pointer }
.booking-modal-close:hover { background:#eef2e9 }
.booking-modal-body { padding:18px;overflow-y:auto;overscroll-behavior:contain }
.booking-modal-footer { display:flex;padding:13px 18px;align-items:center;justify-content:flex-end;gap:8px;border-top:1px solid #e3e7de;background:#fff }
.booking-admin-layout { display:grid;grid-template-columns:minmax(300px,.8fr) minmax(0,1.4fr);align-items:start;gap:14px }
.booking-resource-list { padding:15px }
.booking-resource-list h2 { margin-top:0 }
.booking-resource-list article,.booking-admin-list article { display:grid;padding:10px;grid-template-columns:auto minmax(0,1fr) auto auto auto;align-items:center;gap:9px;border-top:1px solid #e4e8df }
.booking-resource-list article:first-of-type { border-top:0 }
.booking-resource-list article form,.booking-admin-list article form { margin:0 }
.booking-resource-list article div,.booking-admin-list article div { display:grid;min-width:0 }
.booking-resource-list small,.booking-admin-list span { color:#727b6d;font-size:.68rem;overflow-wrap:anywhere }
.booking-resource-icon { display:grid;width:44px;height:36px;place-items:center;border-radius:9px;color:#fff;background:#5d6c49;font-size:.55rem;font-weight:900 }
.booking-admin-card { padding:15px }
.booking-admin-search { display:grid;grid-template-columns:1fr auto;gap:8px;margin-bottom:8px }
.booking-admin-list article { grid-template-columns:minmax(0,1fr) auto auto }

@media(max-width:900px){.booking-layout,.booking-admin-layout{grid-template-columns:1fr}.booking-day-panel{position:static}.booking-toolbar form,.booking-toolbar.is-specific form{grid-template-columns:1fr 1fr}.booking-toolbar button{width:100%}.booking-pending-list{grid-template-columns:1fr}}
@media(max-width:620px){.portal-system-heading{align-items:flex-start;flex-direction:column;gap:.2rem}.portal-system-heading span{margin-left:0}.system-launch{min-height:106px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;padding:.8rem;border-top-width:1px;border-left:4px solid var(--launch-accent)}.system-launch-top{display:block}.system-access-state,.system-feature-list,.system-launch-copy>span{display:none}.system-launch-copy{gap:.15rem}.system-launch-copy strong{font-size:1.15rem}.system-launch-footer{padding:0;border:0}.system-launch::after{width:100px;height:100px}.booking-shell{padding:10px}.booking-hero{align-items:stretch;flex-direction:column;padding:15px}.booking-hero-actions{justify-content:stretch}.booking-hero-actions .button{flex:1 1 auto;justify-content:center}.booking-page-switch{gap:7px}.booking-page-switch a{min-height:62px;padding:9px}.booking-page-switch a>span:first-child{width:32px;height:32px}.booking-page-switch small{display:none}.booking-toolbar form,.booking-toolbar.is-specific form,.booking-form-grid{grid-template-columns:1fr}.booking-form-grid .span-2{grid-column:auto}.booking-calendar-card{overflow:hidden}.booking-weekdays,.booking-month-grid{width:100%;min-width:0}.booking-weekdays span{padding:6px 1px;font-size:.53rem}.booking-day{min-width:0;min-height:56px;padding:3px;gap:2px}.booking-day-number{width:20px;height:20px;font-size:.64rem}.booking-day-items{display:flex;align-items:center;gap:2px;overflow:hidden}.booking-slot{width:7px;height:7px;padding:0;border:0;border-radius:50%;font-size:0;background:#71835c;flex:0 0 auto}.booking-slot-car{background:#c88a2b}.booking-day-items small{display:none}.booking-day-panel{padding:11px}.booking-day-entry{grid-template-columns:72px minmax(0,1fr)}.booking-form-card{padding:13px}.booking-form-card footer{align-items:stretch;flex-direction:column}.booking-create-dialog{width:calc(100% - 12px);max-height:96dvh;border-radius:14px}.booking-modal-card{max-height:96dvh}.booking-modal-header{padding:13px 14px}.booking-modal-header h2{font-size:1.15rem}.booking-modal-body{padding:13px}.booking-modal-footer{padding:11px 13px;align-items:stretch;flex-direction:column-reverse}.booking-modal-footer .button{width:100%;justify-content:center}.booking-resource-list article{grid-template-columns:auto minmax(0,1fr) auto}.booking-resource-list article>.status-pill{grid-column:2}.booking-resource-list article>a,.booking-resource-list article>form{grid-row:2}.booking-admin-list article{grid-template-columns:1fr auto}.booking-admin-list article>.status-pill{grid-column:1}.booking-admin-list article form{grid-column:2;grid-row:1/3}.booking-admin-search{grid-template-columns:1fr}.portal-booking-cta{width:max-content;max-width:100%}}

/* Portal announcements and HR-admin publishing. */
.announcement-shell { width:min(1180px,100%);margin:0 auto;padding:clamp(16px,3vw,38px);color:#273022 }
.announcement-hero { display:flex;margin-bottom:16px;padding:22px 24px;align-items:center;justify-content:space-between;gap:18px;border:1px solid #dfe3d9;border-radius:18px;background:linear-gradient(120deg,#fff,#f4f6ef);box-shadow:0 10px 30px rgba(40,49,34,.07) }
.announcement-hero h1 { margin:2px 0 5px;font-size:clamp(1.7rem,3vw,2.45rem);letter-spacing:-.045em }
.announcement-hero p:last-child { max-width:700px;margin:0;color:#737c6d }
.announcement-hero-actions { display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px }
.announcement-list { display:grid;gap:12px }
.announcement-card,.announcement-empty { padding:19px 20px;border:1px solid #dfe3d9;border-radius:16px;background:#fff;box-shadow:0 9px 28px rgba(40,49,34,.06) }
.announcement-card>header { display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:11px }
.announcement-card-mark { display:grid;width:39px;height:39px;place-items:center;border-radius:11px;background:#fff2b4 }
.announcement-audience { margin:0 0 2px;color:#75805d;font-size:.66rem;font-weight:850;letter-spacing:.07em;text-transform:uppercase }
.announcement-card h2 { margin:0;color:#273022;font-size:1.13rem }
.announcement-card time { color:#81887b;font-size:.69rem;white-space:nowrap }
.announcement-message { margin:15px 0;padding-left:50px;color:#4f594b;font-size:.86rem;line-height:1.65;white-space:normal }
.announcement-photo-gallery { display:grid;margin:15px 0 0 50px;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px }
.announcement-photo-gallery>button { min-width:0;padding:0;overflow:hidden;border:1px solid #e2e6dd;border-radius:14px;background:#f1f3ed;cursor:zoom-in }
.announcement-photo { display:block;width:100%;height:clamp(180px,30vw,430px);margin:0;object-fit:contain;background:#f1f3ed }
.announcement-documents { display:grid;margin:0 0 14px 50px;gap:7px }
.announcement-documents a { display:flex;min-width:0;padding:9px 11px;align-items:center;gap:10px;color:#30382c;border:1px solid #dfe4da;border-radius:10px;background:#f8faf6 }
.announcement-documents a:hover { text-decoration:none;border-color:#aebaa2;background:#f1f5ec }
.announcement-documents a>span:first-child,.announcement-document-mark { display:grid;flex:0 0 42px;width:42px;height:42px;place-items:center;color:#fff;border-radius:9px;background:#b63c3c;font-size:.62rem;font-weight:900 }
.announcement-documents a>span:last-child { min-width:0 }
.announcement-documents strong,.announcement-documents small { display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap }
.announcement-documents strong { font-size:.76rem }.announcement-documents small { margin-top:3px;color:#76806e;font-size:.63rem }
.announcement-card>footer { display:flex;padding-top:11px;justify-content:space-between;gap:12px;color:#80877a;border-top:1px solid #ebeee7;font-size:.67rem }
.announcement-card-actions { display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:7px }
.announcement-card-actions form { margin:0 }
.announcement-card-actions .button { min-height:31px;padding:5px 9px }
.announcement-empty { padding:48px 20px;text-align:center }
.announcement-empty>span { display:grid;width:55px;height:55px;margin:0 auto 10px;place-items:center;border-radius:16px;background:#fff2b4;font-size:1.25rem }
.announcement-empty h2 { margin:0 0 4px }
.announcement-empty p { margin:0;color:#7b8374 }
.announcement-dialog { width:min(700px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:0;overflow:hidden;border:0;border-radius:18px;background:#fff;box-shadow:0 28px 80px rgba(20,27,17,.3) }
.announcement-dialog::backdrop { background:rgba(22,29,19,.58);backdrop-filter:blur(3px) }
.announcement-form { display:flex;max-height:calc(100dvh - 24px);margin:0;flex-direction:column }
.announcement-form>header { display:flex;padding:15px 17px;align-items:center;justify-content:space-between;gap:12px;color:#fff;background:#3e4a32 }
.announcement-form>header>div { display:grid }
.announcement-form>header small { color:#dce3cd;font-size:.62rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase }
.announcement-form>header strong { font-size:1.05rem }
.announcement-form-body { display:grid;padding:17px;overflow:auto;gap:13px }
.announcement-form-body [hidden] { display:none!important }
.announcement-form-body>label { display:grid;gap:5px;color:#30382c;font-size:.73rem;font-weight:800 }
.announcement-form-body label>b,.announcement-location-field legend>b { color:#c8443d }
.announcement-form-body input,.announcement-form-body select,.announcement-form-body textarea { width:100%;min-height:43px;padding:9px 11px;border:1px solid #cfd6c8;border-radius:9px;background:#fff;color:#273022;font:inherit }
.announcement-form-body textarea { min-height:135px;resize:vertical }
.announcement-photo-field { display:grid;gap:6px;color:#30382c;font-size:.73rem;font-weight:800 }
.announcement-photo-field>label>span { display:flex;align-items:center;gap:6px }
.announcement-photo-field>label small { color:#788170;font-size:.63rem;font-weight:650 }
.announcement-photo-picker { display:grid;padding:10px;grid-template-columns:auto minmax(0,1fr);align-items:start;gap:11px;border:1px solid #d5dbcf;border-radius:11px;background:#f8faf6 }
.announcement-photo-picker>div:last-child { display:grid;min-width:0;gap:6px }
.announcement-photo-picker input[type=file] { min-height:0;padding:7px;background:#fff;font-size:.7rem }
.announcement-photo-picker small { color:#747d6e;font-size:.63rem;font-weight:600;line-height:1.45 }
.announcement-photo-preview { width:150px;max-height:190px;overflow:auto;border-radius:9px;background:#e8ece3 }
.announcement-photo-preview>div { display:grid;padding:5px;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px }
.announcement-photo-preview img { display:block;width:100%;height:70px;object-fit:contain;border-radius:6px;background:#fff }
.announcement-document-picker { align-items:center }.announcement-document-mark { align-self:center }
.announcement-photo-remove { display:flex!important;align-items:center;gap:7px;color:#8b312d;font-size:.68rem;cursor:pointer }
.announcement-photo-remove input { width:16px!important;min-height:16px!important;margin:0 }
.announcement-form-body .is-invalid input,.announcement-form-body .is-invalid select,.announcement-form-body .is-invalid textarea,.announcement-form-body fieldset.is-invalid { border-color:#cb443d;box-shadow:0 0 0 3px rgba(203,68,61,.12) }
.announcement-form-body [data-field-error] { color:#bd3731;font-size:.65rem;font-weight:750 }
.announcement-form-alert { padding:10px 12px;color:#9e2925;border:1px solid #efb7b4;border-radius:9px;background:#fff0ef;font-size:.75rem;font-weight:750 }
.announcement-location-field { min-width:0;margin:0;padding:12px;border:1px solid #d5dbcf;border-radius:11px }
.announcement-location-field legend { padding:0 5px;font-size:.73rem;font-weight:850 }
.announcement-location-list { display:grid;max-height:210px;overflow:auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px }
.announcement-location-list>label { display:flex;padding:8px;align-items:center;gap:8px;border:1px solid #e0e4db;border-radius:9px;background:#fafbf8;font-size:.72rem;cursor:pointer }
.announcement-location-list input { width:17px;min-height:17px;flex:0 0 17px;margin:0 }
.announcement-location-list label>span { display:grid;min-width:0 }
.announcement-location-list small { color:#7d8578;font-size:.61rem;font-weight:650 }
.announcement-audience-help { margin:0;padding:9px 10px;color:#68705f;border-radius:9px;background:#f3f5ef;font-size:.69rem;line-height:1.45 }
.announcement-form>footer { display:flex;padding:13px 17px;justify-content:flex-end;gap:8px;border-top:1px solid #e2e6dd;background:#fafbf8 }
.announcement-photo-viewer { width:min(1100px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:0;overflow:hidden;border:0;border-radius:16px;background:#111;box-shadow:0 28px 90px rgba(0,0,0,.45) }
.announcement-photo-viewer::backdrop { background:rgba(9,13,8,.8);backdrop-filter:blur(3px) }
.announcement-photo-viewer>header { display:flex;padding:11px 14px;align-items:center;justify-content:space-between;color:#fff;background:#20241f }
.announcement-photo-viewer>header button { display:grid;width:36px;height:36px;padding:0;place-items:center;color:#fff;border:1px solid rgba(255,255,255,.25);border-radius:50%;background:rgba(255,255,255,.08);font-size:1.25rem }
.announcement-photo-viewer>div { display:grid;max-height:calc(100dvh - 83px);place-items:center;overflow:auto }
.announcement-photo-viewer img { display:block;max-width:100%;max-height:calc(100dvh - 83px);object-fit:contain }

/* Dashboard announcement preview and per-user dismissal. */
.portal-announcement-popup { width:min(620px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:0;overflow:hidden;border:0;border-radius:18px;background:#fff;box-shadow:0 28px 80px rgba(20,27,17,.3) }
.portal-announcement-popup::backdrop { background:rgba(22,29,19,.58);backdrop-filter:blur(3px) }
.portal-announcement-popup>form { display:flex;max-height:calc(100dvh - 24px);margin:0;flex-direction:column }
.portal-announcement-popup header { display:grid;padding:15px 17px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;color:#fff;background:#3e4a32 }
.portal-announcement-popup header>span { display:grid;width:36px;height:36px;place-items:center;border-radius:11px;color:#27321f;background:#ffda38;font-size:1rem }
.portal-announcement-popup header>div { display:grid;min-width:0 }
.portal-announcement-popup header small { color:#dce3cd;font-size:.62rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase }
.portal-announcement-popup header strong { overflow:hidden;font-size:1.04rem;text-overflow:ellipsis;white-space:nowrap }
.portal-announcement-popup [hidden] { display:none!important }
.portal-announcement-popup-body { display:grid;padding:18px;overflow:auto;gap:13px }
.portal-announcement-popup-body time { color:#7a8273;font-size:.68rem;font-weight:750 }
.portal-announcement-popup-body>p { margin:0;color:#3f493a;font-size:.88rem;line-height:1.65;white-space:pre-wrap }
.portal-announcement-popup-photo { width:100%;max-height:360px;object-fit:cover;border:1px solid #dfe4d8;border-radius:13px;background:#eff2eb }
.portal-announcement-dismiss-option { display:flex;margin-top:3px;padding:11px 12px;align-items:flex-start;gap:10px;border:1px solid #dbe0d5;border-radius:11px;background:#f7f8f4;cursor:pointer }
.portal-announcement-dismiss-option input { width:18px;height:18px;flex:0 0 18px;margin:1px 0 0;accent-color:#5f7047 }
.portal-announcement-dismiss-option>span { display:grid;color:#30392c;font-size:.76rem;font-weight:800 }
.portal-announcement-dismiss-option small { color:#737b6d;font-size:.64rem;font-weight:600;line-height:1.45 }
.portal-announcement-popup-error { margin:0;padding:9px 10px;color:#9e2925;border:1px solid #efb7b4;border-radius:9px;background:#fff0ef;font-size:.72rem;font-weight:750 }
.portal-announcement-popup footer { display:flex;padding:13px 17px;justify-content:flex-end;gap:8px;border-top:1px solid #e2e6dd;background:#fafbf8 }

@media(max-width:620px){.portal-dashboard-actions{align-items:flex-start;flex-direction:column}.portal-announcement-cta,.portal-dashboard-actions .portal-booking-cta{width:max-content;max-width:100%}.announcement-shell{padding:10px}.announcement-hero{align-items:stretch;flex-direction:column;padding:16px}.announcement-hero-actions{justify-content:stretch}.announcement-hero-actions .button{flex:1 1 auto;justify-content:center}.announcement-card{padding:14px}.announcement-card>header{grid-template-columns:auto minmax(0,1fr)}.announcement-card time{grid-column:2;white-space:normal}.announcement-photo-gallery{margin:13px 0 0;grid-template-columns:1fr}.announcement-photo{height:auto;max-height:72dvh}.announcement-documents{margin-left:0}.announcement-message{padding-left:0}.announcement-card>footer{align-items:flex-start;flex-direction:column}.announcement-card-actions{width:100%;justify-content:flex-start}.announcement-location-list{grid-template-columns:1fr}.announcement-photo-picker{grid-template-columns:1fr}.announcement-photo-preview{width:100%;height:160px}.announcement-dialog{width:calc(100% - 12px);max-height:96dvh;border-radius:14px}.announcement-form{max-height:96dvh}.announcement-form>footer{align-items:stretch;flex-direction:column-reverse}.announcement-form>footer .button{width:100%;justify-content:center}.portal-account .portal-announcement-link{order:4}.portal-account .portal-bell-link{order:3}}

/* Global Portal suggestion box. */
.suggestion-widget { position: fixed; z-index: 1040; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); }
.suggestion-widget .suggestion-trigger { display: flex; width: auto; min-height: 0; padding: 0; align-items: center; flex-direction: row-reverse; justify-content: flex-start; gap: 9px; color: #27301f; border: 0; border-radius: 14px; background: transparent; font: inherit; cursor: pointer; filter: drop-shadow(0 7px 15px rgba(30,37,24,.18)); }
.suggestion-widget .suggestion-trigger:hover { color: #27301f; border: 0; background: transparent; }
/* Leave room for the fixed launcher without covering the HR account/sign-out card. */
body.system-hr .sidebar-footer { margin-bottom: calc(82px + env(safe-area-inset-bottom)); }
.suggestion-label { position: relative; padding: .55rem .72rem; border: 1px solid #d9ddcc; border-radius: 10px; background: rgba(255,255,255,.97); box-shadow: 0 7px 22px rgba(30,37,24,.12); font-size: .7rem; font-weight: 820; white-space: nowrap; }
.suggestion-label::before { position: absolute; left: -5px; top: 50%; width: 9px; height: 9px; content: ''; border-bottom: 1px solid #d9ddcc; border-left: 1px solid #d9ddcc; background: #fff; transform: translateY(-50%) rotate(45deg); }
.suggestion-sun { display: grid; width: 56px; height: 56px; flex: 0 0 56px; place-items: center; border-radius: 50%; background: #fff7ce; box-shadow: inset 0 0 0 1px rgba(168,130,10,.13), 0 9px 24px rgba(78,66,22,.2); transition: transform .18s ease, box-shadow .18s ease; }
.suggestion-sun svg { display: block; width: 52px; height: 52px; overflow: visible; }
.suggestion-sun circle { fill: #ffd21c; stroke: #f0b900; stroke-width: 1.5; }
.suggestion-rays { fill: none; stroke: #f2bd00; stroke-width: 4.2; stroke-linecap: round; }
.suggestion-chat { fill: #38402e; stroke: #38402e; stroke-linejoin: round; stroke-width: 1.5; }
.suggestion-chat-lines { fill: none; stroke: #fff7cf; stroke-width: 2; stroke-linecap: round; }
.suggestion-trigger:hover .suggestion-sun, .suggestion-trigger:focus-visible .suggestion-sun { box-shadow: inset 0 0 0 1px rgba(168,130,10,.13), 0 12px 30px rgba(78,66,22,.28); transform: translateY(-2px) rotate(-4deg); }
.suggestion-trigger:focus-visible { outline: 3px solid var(--blue, #1769e0); outline-offset: 5px; border-radius: 14px; }
.suggestion-dialog { width: min(720px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 0; overflow: hidden; color: #27301f; border: 0; border-radius: 18px; background: #fff; box-shadow: 0 28px 80px rgba(20,27,17,.3); }
.suggestion-dialog::backdrop { background: rgba(22,29,19,.55); backdrop-filter: blur(3px); }
.suggestion-form { display: flex; max-height: calc(100dvh - 24px); margin: 0; flex-direction: column; background: #fff; }
.suggestion-form > header { display: grid; min-height: 72px; padding: 13px 14px; grid-template-columns: 42px minmax(0,1fr) 36px; align-items: center; gap: 10px; color: #fff; background: linear-gradient(120deg,#343d2c,#626b4b); }
.suggestion-form-mark { display: grid; width: 40px; height: 40px; place-items: center; color: #3f4025; border-radius: 50%; background: #ffd21c; font-size: 1.25rem; }
.suggestion-form header strong, .suggestion-form header small { display: block; }
.suggestion-form header strong { font-size: 1rem; }
.suggestion-form header small { margin-top: 2px; color: rgba(255,255,255,.7); font-size: .68rem; }
.suggestion-dialog .suggestion-close { display: grid; width: 36px; min-width: 36px; height: 36px; min-height: 36px; padding: 0; place-items: center; color: #fff; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; background: rgba(255,255,255,.08); font-size: 1.3rem; cursor: pointer; }
.suggestion-dialog .suggestion-close:hover { background: rgba(255,255,255,.16); }
.suggestion-form-body { display: grid; gap: 14px; padding: 18px; overflow-y: auto; }
.suggestion-form-body label { display: grid; gap: 6px; color: #343b2d; font-size: .76rem; font-weight: 800; }
.suggestion-form-body input:not([type="hidden"]), .suggestion-form-body select, .suggestion-form-body textarea { width: 100%; padding: .72rem .78rem; color: #252d21; border: 1px solid #d7dbcf; border-radius: 10px; background: #fff; font: inherit; font-size: .86rem; }
.suggestion-form-body textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.suggestion-form-body input:focus, .suggestion-form-body select:focus, .suggestion-form-body textarea:focus { outline: 3px solid rgba(95,104,73,.16); border-color: #6d7657; }
.suggestion-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; gap: 4px; border: 1px solid #dfe3d8; border-radius: 12px; background: #f4f6ef; }
.suggestion-tab { min-height: 42px; padding: 8px 12px; color: #555e4b; border: 1px solid transparent; border-radius: 9px; background: transparent; font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; }
.suggestion-tab:hover { color: #30382a; background: rgba(255,255,255,.72); }
.suggestion-tab:focus-visible { outline: 3px solid rgba(95,104,73,.2); outline-offset: 1px; }
.suggestion-tab.is-active { color: #fff; border-color: #626c4c; background: #626c4c; box-shadow: 0 2px 7px rgba(49,56,39,.16); }
.suggestion-kind-fields { display: grid; gap: 12px; }
.suggestion-kind-fields[hidden], .suggestion-request-fields[hidden], .suggestion-request-fields [data-request-types][hidden], .suggestion-form-body label[hidden] { display: none !important; }
.suggestion-request-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.suggestion-request-fields .span-2 { grid-column: 1 / -1; }
.suggestion-request-fields textarea { min-height: 92px; }
.suggestion-request-fields fieldset { min-width: 0; margin: 0; padding: 10px; border: 1px solid #d7dbcf; border-radius: 10px; }
.suggestion-request-fields legend { padding: 0 5px; color: #343b2d; font-size: .76rem; font-weight: 800; }
.suggestion-check-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.suggestion-check-grid label { display: flex; min-width: 0; padding: 7px; align-items: center; gap: 6px; border-radius: 8px; background: #f5f6f1; }
.suggestion-check-grid input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 18px; padding: 0; }
.suggestion-requester-summary { display: grid; padding: 10px 12px; gap: 2px; border: 1px solid #dfe3d8; border-radius: 10px; background: #f7f8f3; font-size: .78rem; }
.suggestion-requester-summary span { color: #343b2d; }
.suggestion-requester-summary small { color: #777f6e; }
.suggestion-request-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.suggestion-context { color: #7a8173; font-size: .68rem; line-height: 1.45; }
.suggestion-form > footer { display: flex; padding: 13px 18px 18px; justify-content: flex-end; gap: 8px; border-top: 1px solid #e6e8e1; }

@media (max-width: 650px) {
    .suggestion-widget { bottom: max(12px, env(safe-area-inset-bottom)); }
    .system-it .suggestion-widget { bottom: calc(70px + env(safe-area-inset-bottom)); }
    .suggestion-sun { width: 50px; height: 50px; flex-basis: 50px; }
    .suggestion-sun svg { width: 46px; height: 46px; }
    .suggestion-label { padding: .48rem .6rem; font-size: .66rem; }
    .suggestion-form-body { padding: 15px; }
    .suggestion-form > footer { padding: 12px 15px 15px; }
    .suggestion-request-fields { grid-template-columns: 1fr; }
    .suggestion-request-fields .span-2 { grid-column: auto; }
    .suggestion-check-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

.system-hr { --ink: #23251d; --muted: #71756a; --line: #e3e4dc; --canvas: #f5f5f0; --blue: #626a4a; --blue-soft: #f4ecde; --system-accent: #ffd21c; }
.system-hr .app-shell { grid-template-columns: 264px minmax(0, 1fr); }
.system-hr .sidebar { background: radial-gradient(circle at 15% 6%, rgba(255,210,28,.13), transparent 23%), linear-gradient(165deg, #51583e, #292c20); }
.system-hr .brand-mark { color: #292c20; background: #ffd21c; box-shadow: 0 8px 22px rgba(255,210,28,.2); }
.system-hr .nav a.active { color: #23251d; background: #ffd21c; box-shadow: 0 9px 20px rgba(0,0,0,.12); }
.system-hr .environment { color: #51583e; border-color: #c7c9b7; background: #f4ecde; }
.system-hr .welcome-panel { background: linear-gradient(135deg, #fff, #fbf8f1); }

.system-inventory { --ink: #172033; --muted: #68738a; --line: #e3e8f0; --canvas: #f4f6fa; --blue: #2957c8; --blue-soft: #e8eefb; --system-accent: #68d2ac; }
.system-inventory .sidebar { background: #111827; }
.system-inventory .brand-mark { background: linear-gradient(145deg, #3872eb, #63b89d); }
.system-inventory .nav a.active { background: #202a3d; box-shadow: inset 3px 0 0 #68d2ac; }

.system-it { --ink: #152235; --muted: #66758a; --line: #dce4ed; --canvas: #f3f6f9; --blue: #1769e0; --blue-soft: #eaf2ff; --system-accent: #67e8f9; }
.system-it .sidebar { background: linear-gradient(180deg, #10294d, #0b1d37); }
.system-it .nav a.active { background: rgba(6,182,212,.16); box-shadow: inset 3px 0 0 #67e8f9; }

/* HR reference-inspired data surfaces. */
.organization-grid, .holiday-grid, .report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1rem; }
.organization-card { display: grid; align-content: start; gap: .45rem; }
.organization-card h3, .holiday-card h3, .report-grid h3 { margin: 0; }
.organization-card > p:last-child { margin: .35rem 0 0; line-height: 1.55; }
.holiday-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; }
.holiday-card time { display: grid; min-width: 58px; padding: .65rem .55rem; place-items: center; color: #292c20; border-radius: 14px; background: #ffd21c; line-height: 1; }
.holiday-card time strong { font-size: 1.55rem; }
.holiday-card time span { margin-top: .25rem; font-size: .7rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.usage-badge { display: inline-flex; width: fit-content; padding: .35rem .65rem; align-items: center; border: 1px solid #c7c9b7; border-radius: 999px; color: #51583e; background: #f4ecde; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.report-grid { align-items: start; }
.report-grid > .content-card { min-width: 0; }
.table-card.embedded { margin-top: 1rem; border: 0; border-radius: 12px; box-shadow: none; }
.action-panel { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr); align-items: start; gap: 1.4rem; margin-bottom: 1.25rem; }
.field-wide { grid-column: 1 / -1; }
.workflow-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.workflow-actions form { padding: 1rem; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft, #f8fafc); }
.workflow-actions label { display: grid; gap: .45rem; margin-bottom: .75rem; }
.split-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.warning-card { border-color: #f1c9c9; background: #fffafa; }
.comment-list { display: grid; gap: .75rem; }
.comment-card { display: grid; gap: .65rem; }
.comment-card > div { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.comment-card p { margin: 0; line-height: 1.6; }
.leave-form { display: grid; gap: 1.5rem; }
.notice-banner { margin-bottom: 1rem; padding: .85rem 1rem; color: #66510b; border: 1px solid #ead27a; border-radius: 12px; background: #fff9df; }
.notice-confirmation { display: grid; gap: .8rem; padding: 1rem; border: 1px solid #e2dbc5; border-radius: 14px; background: #fbf8f1; }
.notice-confirmation[hidden] { display: none; }
.notice-confirmation p { margin: .25rem 0 0; }
.check-row { display: flex; align-items: flex-start; gap: .6rem; font-weight: 700; }
.check-row input { width: auto; margin-top: .2rem; }
.leave-form .form-actions { justify-content: flex-end; flex-wrap: wrap; }
.form-section { display: grid; gap: .8rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; }
.form-section > .eyebrow { margin: 0; }
.page-action-group { display: flex; align-items: center; gap: .6rem; }
.page-action-group form { margin: 0; }
.configuration-editor { margin-bottom: 1.25rem; }
.configuration-editor > summary, .row-editor > summary { width: fit-content; cursor: pointer; color: var(--blue); font-weight: 850; }
.configuration-editor[open] > summary { margin-bottom: 1rem; }
.row-editor { min-width: 190px; margin-bottom: .55rem; }
.row-editor[open] { position: relative; z-index: 2; min-width: 260px; padding: .75rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(26,39,62,.12); }
.row-editor[open] > summary { margin-bottom: .7rem; }
.form-stack { display: grid; gap: .65rem; }
.form-stack label { display: grid; gap: .3rem; }
.compact-form { margin: 0; }
.checkbox-field { display: flex !important; align-items: center; gap: .5rem !important; }
.checkbox-field input { width: auto; margin: 0; }
.configuration-actions { grid-column: 1 / -1; display: flex; align-items: flex-start; gap: .65rem; padding-top: .4rem; border-top: 1px solid var(--line); }
.approval-card { display: grid; gap: 1rem; }
.approval-card .detail-grid.compact { margin: 0; }
.approval-delegate { margin: 0; }
.report-catalog { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin-bottom: 1rem; }
.report-catalog a { display: grid; gap: .35rem; color: var(--ink); text-decoration: none; }
.report-catalog a span { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.report-catalog a.active { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.report-filter { align-items: end; }
.report-meta { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; }
.report-meta span { padding: .35rem .65rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--muted); font-size: .78rem; font-weight: 750; }
.calendar-jump { display: flex; align-items: end; gap: .75rem; margin-bottom: 1rem; }
.calendar-jump label { display: grid; gap: .35rem; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0 0 .8rem; color: var(--muted); font-size: .82rem; font-weight: 750; }
.calendar-legend span { display: inline-flex; align-items: center; gap: .35rem; }
.legend-dot { width: .65rem; height: .65rem; border-radius: 50%; background: #7398d5; }
.legend-dot.approved { background: #2d9965; }
.legend-dot.pending { background: #d99b28; }
.legend-dot.holiday { background: #171a20; }
.month-calendar { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 12px 35px rgba(24,39,65,.06); }
.calendar-weekdays, .calendar-days { display: grid; min-width: 910px; grid-template-columns: repeat(7, minmax(130px, 1fr)); }
.calendar-weekdays { border-bottom: 1px solid var(--line); background: #f8fafc; }
.calendar-weekdays strong { padding: .7rem; text-align: center; color: var(--muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.calendar-day { min-height: 132px; padding: .6rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.blank { background: #f8fafc; }
.calendar-day.weekend { background: #f0f7ff; }
.calendar-day.holiday { background: #f3f3f3; }
.calendar-day > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .45rem; }
.calendar-day > header time { font-weight: 850; }
.calendar-day > header span { padding: .15rem .35rem; border-radius: 999px; color: #fff; background: #171a20; font-size: .6rem; font-weight: 800; }
.calendar-events { display: grid; gap: .35rem; }
.calendar-event { display: grid; gap: .1rem; padding: .4rem .45rem; overflow: hidden; border-left: 3px solid var(--event-color, #628bd1); border-radius: 7px; color: #25405c; background: #e9f2ff; text-decoration: none; font-size: .69rem; }
.calendar-event.pending { color: #694a0b; background: #fff3d8; }
.calendar-event strong, .calendar-event span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inventory-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.record-grid dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.25rem; margin: 0; }
.record-grid dt { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.record-grid dd { margin: .2rem 0 0; overflow-wrap: anywhere; font-weight: 650; }
.asset-label { width: 420px; max-width: 100%; margin: 2rem auto; padding: 2rem; border: 3px solid #18283b; border-radius: 18px; background: #fff; text-align: center; }
.asset-label h2 { margin: .8rem 0 .25rem; font-size: 2rem; }
.asset-label code { display: block; margin-top: 1rem; padding: .6rem; overflow-wrap: anywhere; background: #f1f4f8; font-size: .68rem; }
.signature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 4rem; text-align: center; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.guide-grid .content-card { min-height: 150px; }
.inline-actions { display: flex; align-items: end; flex-wrap: wrap; gap: .65rem; }
.inline-actions form { display: flex; align-items: end; flex-wrap: wrap; gap: .45rem; }
.status-variance, .status-rejected, .status-cancelled { color: #8d2424; background: #fde5e5; }
.status-verified, .status-resolved, .status-approved, .status-received, .status-completed { color: #176744; background: #dcf6e8; }
.status-requested, .status-submitted, .status-released, .status-in_progress { color: #765000; background: #fff0c8; }

@media print {
    .sidebar, .topbar, .page-actions, .sidebar-footer { display: none !important; }
    .app-shell, .main { display: block; padding: 0; margin: 0; }
    .content-card, .asset-label { box-shadow: none; }
}

.notification-page .content{width:min(1480px,100%);margin-inline:auto}.notification-page .notification-center{border:1px solid #dfe4dc;border-radius:16px;background:#fff;box-shadow:0 10px 30px rgba(36,48,31,.05)}.notification-page .notification-card-actions .button.primary{color:#fff;background:#26704c;border-color:#26704c}.notification-page .notification-card-actions .button.danger{color:#9b3030;background:#fff;border-color:#d67d77}.notification-page .notification-card-actions .button.secondary{color:#425166;background:#fff;border-color:#cfd7df}.notification-action-result{display:inline-flex;min-height:36px;padding:7px 11px;align-items:center;border:1px solid currentColor;border-radius:10px;font-size:.78rem;font-weight:850}.notification-action-result.is-approved{color:#176744;background:#e5f6eb}.notification-action-result.is-rejected{color:#942f2f;background:#fbe8e8}.notification-center-card.is-resolved{background:#fff}.notification-center-card>[data-notification-action-status]{grid-column:1/-1;margin:-5px 16px 12px;padding:8px 10px;color:#276044;border-radius:9px;background:#edf7ef;font-size:.78rem}.notification-center-card>[data-notification-action-status].is-error{color:#9b3030;background:#fceaea}

@media (max-width: 1080px) {
    .portal-launch { gap: .85rem; }
}
@media (max-width: 820px) {
    .portal-topbar { align-items: center; flex-direction: row; }
    .portal-launch { grid-template-columns: repeat(2,minmax(0,1fr)); min-height: auto; }
    .portal-launch > :last-child { grid-column: 1 / -1; }
    .system-launch { min-height: 176px; }
    .portal-assurance { grid-template-columns: 1fr; }
    .portal-assurance > div { padding: .75rem 0; border-right: 0; border-bottom: 1px solid #e2e5dd; }
    .portal-assurance > div:last-child { border-bottom: 0; }
    .portal-workspace-intro { padding-right:135px; }
    .portal-workspace-mascot { width:112px; }
    .portal-latest-announcements { grid-template-columns:1fr; }
    .system-hr .app-shell { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
    .portal-topbar { display:grid;min-height:auto;padding:10px 12px;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 10px; }
    .portal-brand { min-width:0;gap:.5rem; }
    .portal-brand>span:last-child { min-width:0; }
    .portal-brand>span:last-child strong { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
    .portal-topbar .language-switch--portal { justify-self:end; }
    .portal-brand-logos { height: 48px; }
    .portal-brand-bringin { width: 46px; height: 46px; }
    .portal-brand-popin { width: 45px; height: 26px; }
    .portal-account { grid-column:1/-1;width:100%;padding-top:8px;justify-content:flex-start;flex-wrap:nowrap;gap:5px;overflow-x:auto;border-top:1px solid #e7e9e1;scrollbar-width:none; }
    .portal-account::-webkit-scrollbar { display:none; }
    .portal-account > span { margin-right:auto;white-space:nowrap;font-size:.75rem; }
    .portal-account > a,.portal-account .link-button { min-height:38px;padding:7px 9px;white-space:nowrap;border-radius:9px;background:#f4f6f0;font-size:.7rem; }
    .portal-account .portal-bell-link { flex:0 0 38px; }
    .portal-home { padding: .75rem max(.7rem,env(safe-area-inset-right)) max(1.2rem,env(safe-area-inset-bottom)) max(.7rem,env(safe-area-inset-left)); }
    .portal-workspace-intro { min-height:0;padding:1rem;border-radius:18px;background:linear-gradient(145deg,#fff 0%,#f0f4e9 100%);box-shadow:0 10px 26px rgba(40,49,34,.08); }
    .portal-workspace-intro .eyebrow,.portal-latest-heading { padding-right:70px; }
    .portal-workspace-intro p:last-child { max-width:420px; line-height:1.45; }
    .portal-workspace-mascot { right:10px;top:9px;bottom:auto;width:62px; }
    .portal-latest-heading { align-items:flex-start; }
    .portal-latest-heading h1 { font-size:1.1rem; }
    .portal-latest-announcements { grid-template-columns:1fr;gap:.5rem; }
    .portal-latest-announcements article { min-height:78px;padding:.6rem;border-radius:13px; }
    .portal-latest-announcements article.has-photo { grid-template-columns:68px minmax(0,1fr); }
    .portal-latest-photo { width:68px;height:68px; }
    .portal-dashboard-actions { display:grid;width:100%;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem; }
    .portal-dashboard-actions .portal-booking-cta,.portal-dashboard-actions .portal-leave-cta,.portal-dashboard-actions .portal-announcement-cta { width:100%;max-width:none;justify-content:space-between; }
    .portal-dashboard-actions .portal-attendance-actions { grid-column:1/-1;width:100%; }
    .portal-dashboard-actions .portal-booking-cta,.portal-dashboard-actions .portal-leave-cta { min-height:54px;padding:.65rem;gap:.5rem; }
    .portal-dashboard-actions .portal-announcement-cta { grid-column:1/-1;min-height:52px; }
    .portal-announcement-popup { width:calc(100% - 12px);max-height:96dvh;border-radius:14px; }
    .portal-announcement-popup>form { max-height:96dvh; }
    .portal-announcement-popup footer { align-items:stretch;flex-direction:column-reverse; }
    .portal-announcement-popup footer .button { width:100%;justify-content:center; }
    .portal-system-heading { margin-top:1rem;padding:0 .2rem; }
    .portal-launch { padding: 0;gap:.6rem; }
    .portal-launch { grid-template-columns: 1fr; }
    .portal-launch > :last-child { grid-column: auto; }
    .system-launch { min-height: 102px;padding:.75rem;border-radius:15px;box-shadow:0 8px 22px rgba(40,49,34,.07); }
    .system-launch-icon { width:42px;height:42px; }
    .system-launch-footer { justify-content:flex-end; }
    .system-launch-footer>span:first-child { display:none; }
    .portal-assurance { margin-top:.7rem;padding:.35rem .8rem; }
    .portal-assurance>div { padding:.6rem 0; }
    .portal-assurance small { font-size:.62rem; }
    .portal-home-footer { align-items: flex-start; flex-direction: column; }
    .organization-grid, .holiday-grid, .report-grid { grid-template-columns: 1fr; }
    .holiday-card { grid-template-columns: auto minmax(0, 1fr); }
    .holiday-card > .status-pill { grid-column: 2; justify-self: start; }
    .action-panel { grid-template-columns: 1fr; }
    .report-catalog { grid-template-columns: 1fr 1fr; }
    .calendar-jump { align-items: stretch; flex-direction: column; }
    .inventory-form, .guide-grid, .record-grid dl { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
    .portal-dashboard-actions { grid-template-columns:1fr; }
    .portal-dashboard-actions .portal-announcement-cta { grid-column:auto; }
    .portal-brand>span:last-child { display:none; }
    .portal-workspace-intro .eyebrow,.portal-latest-heading { padding-right:58px; }
    .portal-workspace-mascot { width:52px; }
}
@media (max-width: 440px) { .report-catalog { grid-template-columns: 1fr; } }

@media (max-width: 700px) {
    .notification-center-heading{align-items:stretch;flex-direction:column;gap:12px}
    .notification-center-heading .heading-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;justify-content:stretch}
    .notification-center-heading .heading-actions .button{width:100%;justify-content:center}
    .notification-center-card{grid-template-columns:1fr;gap:0}
    .notification-card-main>button,.notification-card-main:not(form){padding:14px 14px 9px}
    .notification-card-actions{padding:8px 14px 14px;justify-content:flex-start}
    .notification-card-actions .button{min-height:36px;padding:7px 11px}
    .notification-reject-control[open]>form{position:fixed;right:12px;left:12px;top:auto;bottom:calc(12px + env(safe-area-inset-bottom));width:auto}
}

@media (prefers-reduced-motion: reduce) {
    .system-launch, .system-launch-arrow { transition: none; }
}
/* Shared reference-master affordance shown below managed dropdowns. */
.shared-reference-link{display:inline-flex;width:max-content;max-width:100%;margin-top:5px;align-items:center;gap:5px;font-size:.76rem;font-weight:700;color:var(--olive-700,#5f6b43);text-decoration:none}
.shared-reference-link::before{content:'↗';font-size:.72rem}
.shared-reference-link:hover{text-decoration:underline}
.shared-reference-menu-link{display:flex;width:100%;margin:0;padding:10px 12px;border-top:1px solid var(--line,#d9ddcf);background:var(--surface,#fff)}
.row-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.row-actions .inline-form{display:inline-flex;margin:0}
.system-hr .organization-workspace .org-drag-card{position:relative;padding-right:30px}
.system-hr .organization-workspace .org-card-delete-form{position:absolute;z-index:7;top:-8px;right:-8px;margin:0}
.system-hr .organization-workspace .org-card-delete-button{display:grid;width:22px;min-width:22px;min-height:22px;padding:0;place-items:center;color:#9b2f2f;background:#fff;border:1px solid #dc6d6d;border-radius:50%;box-shadow:0 3px 9px rgba(72,22,22,.18);font-size:.9rem;font-weight:850;line-height:1;opacity:.78}
.system-hr .organization-workspace .org-card-delete-button:hover,.system-hr .organization-workspace .org-card-delete-button:focus-visible{color:#fff;background:#c33f3f;border-color:#c33f3f;opacity:1;transform:scale(1.06)}
.system-hr .organization-workspace .org-tree-node.drop-swap-ready{color:#153d55!important;background:#dff3ff!important;border-color:#1885bd!important;box-shadow:0 0 0 5px rgba(24,133,189,.22),0 10px 22px rgba(17,83,117,.2)!important;transform:translateY(-2px) scale(1.02)}
.system-hr .organization-workspace .org-tree-node.drop-child-ready{color:#4e4010!important;background:#fff4b8!important;border-color:#d0a800!important;box-shadow:inset 0 -12px 0 rgba(211,170,0,.2),0 0 0 5px rgba(227,190,37,.22),0 10px 22px rgba(111,91,5,.18)!important;transform:translateY(-2px) scale(1.02)}
.system-hr .organization-workspace .org-tree-node.drop-swap-ready::after,.system-hr .organization-workspace .org-tree-node.drop-child-ready::after{position:absolute;z-index:9;right:8px;bottom:-23px;padding:3px 7px;color:#fff;border-radius:999px;box-shadow:0 3px 8px rgba(22,32,34,.2);font-size:.54rem;font-weight:850;letter-spacing:.03em;white-space:nowrap}
.system-hr .organization-workspace .org-tree-node.drop-swap-ready::after{content:"Swap order";background:#167eae}
.system-hr .organization-workspace .org-tree-node.drop-child-ready::after{content:"Move beneath";background:#987900}
.system-hr .organization-page-buttons{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.system-hr .organization-dotted-line-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:12px;padding:14px;background:#f8f8f4;border:1px solid #e1e3d9;border-radius:12px}
.system-hr .organization-dotted-line-form label{display:grid;gap:6px;font-size:.72rem;font-weight:800}
.system-hr .organization-dotted-line-form .organization-dotted-line-label{grid-column:1/-1}
.system-hr .organization-dotted-line-form>.btn{width:max-content}
.system-hr .organization-dotted-line-list{display:grid;margin-top:14px;border:1px solid #e1e3d9;border-radius:12px;overflow:hidden}
.system-hr .organization-dotted-line-row{display:flex;min-height:52px;padding:9px 12px;align-items:center;justify-content:space-between;gap:12px;background:#fff;border-bottom:1px solid #ecece6}
.system-hr .organization-dotted-line-row:last-child{border-bottom:0}
.system-hr .organization-dotted-line-row>span{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:.76rem}
.system-hr .organization-dotted-line-row i{color:#8a6b12;font-size:1.05rem;font-style:normal;letter-spacing:.08em}
.system-hr .organization-dotted-line-row small{width:100%;color:#777b70}
.system-hr .organization-dotted-line-row form{margin:0}
.system-hr .organization-dotted-line-empty{margin:0;padding:18px;color:#777b70;background:#fff;text-align:center;font-size:.75rem}
.system-hr .organization-workspace .org-chart-canvas{position:relative}
.system-hr .organization-workspace .org-solid-line-layer,.system-hr .organization-workspace .org-dotted-line-layer{position:absolute;z-index:1;top:0;left:0;overflow:visible;pointer-events:none}
.system-hr .organization-workspace .org-solid-line-path{fill:none;stroke:#176591;stroke-width:2;stroke-linecap:square;stroke-linejoin:miter;vector-effect:non-scaling-stroke}
.system-hr .organization-workspace .org-dotted-line-path{fill:none;stroke:#b28716;stroke-width:2.5;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:5 7;filter:drop-shadow(0 1px 1px rgba(255,255,255,.95));vector-effect:non-scaling-stroke}
.system-hr .organization-workspace .org-chart-guide,.system-hr .organization-workspace .org-tree,.system-hr .organization-workspace .org-empty-search{position:relative}
.system-hr .organization-workspace .org-chart-guide{z-index:6}
.system-hr .organization-workspace .org-tree,.system-hr .organization-workspace .org-empty-search{z-index:2}
.org-chart-guide .org-legend-dotted{display:inline-block;width:18px;height:0;border-top:2px dashed #b28716}
.org-chart-guide .org-legend-free{display:inline-grid;width:18px;height:18px;place-items:center;color:#fff;background:#68734e;border-radius:50%;font-size:.62rem;font-style:normal;font-weight:900}
.system-hr .organization-workspace .org-free-drag-toggle{position:absolute;z-index:10;top:-8px;left:-8px;display:grid;width:24px;min-width:24px;height:24px;min-height:24px;padding:0;place-items:center;color:#53603b;background:#fff;border:1px solid #aeb79b;border-radius:50%;box-shadow:0 3px 8px rgba(31,42,23,.2);font-size:.68rem;line-height:1;opacity:.9;cursor:pointer}
.system-hr .organization-workspace .org-free-drag-toggle:hover,.system-hr .organization-workspace .org-free-drag-toggle.is-active{color:#fff;background:#68734e;border-color:#4e5a36;transform:none;opacity:1}
.system-hr .organization-workspace .org-auto-layout-form{display:inline-flex;margin:0}
.system-hr .organization-workspace .org-tree.is-free-layout{display:block;min-width:900px;min-height:560px;width:900px;height:560px;align-items:initial}
.system-hr .organization-workspace .org-tree.is-free-layout .org-tree-branch,.system-hr .organization-workspace .org-tree.is-free-layout .org-tree-list,.system-hr .organization-workspace .org-tree.is-free-layout .org-tree-item{display:contents}
.system-hr .organization-workspace .org-tree.is-free-layout .org-tree-list::before,.system-hr .organization-workspace .org-tree.is-free-layout .org-tree-item::before,.system-hr .organization-workspace .org-tree.is-free-layout .org-tree-item::after{display:none}
.system-hr .organization-workspace .org-tree.is-free-layout .org-tree-node{position:absolute;margin:0;transform:none;cursor:default;transition:border-color .15s ease,box-shadow .15s ease}
.system-hr .organization-workspace .org-tree.is-free-layout .org-tree-node:hover{transform:none}
.system-hr .organization-workspace .org-tree.is-free-layout .org-tree-node.is-free-unlocked{outline:2px dashed #d4a900;outline-offset:4px;cursor:move;touch-action:none}
.system-hr .organization-workspace .org-tree.is-free-layout .org-tree-node.is-free-moving{z-index:12;box-shadow:0 14px 30px rgba(27,48,38,.28);cursor:grabbing;user-select:none}
.system-hr .organization-workspace .org-tree.is-free-layout .org-tree-toggle{display:none}
.system-hr .organization-workspace.is-free-layout #orgExpandAll,.system-hr .organization-workspace.is-free-layout #orgCollapseAll{display:none}
.system-it .sidebar .nav-count,.system-it nav .nav-count{display:inline-grid;min-width:20px;height:20px;margin-left:auto;padding:0 5px;place-items:center;color:#fff;background:#d63d4e;border-radius:999px;font-size:.64rem;font-weight:850;line-height:1}
@media(max-width:700px){.system-hr .organization-dotted-line-form{grid-template-columns:1fr}.system-hr .organization-dotted-line-form .organization-dotted-line-label{grid-column:auto}.system-hr .organization-page-buttons{width:100%}.system-hr .organization-page-buttons .btn{flex:1}}

/* Audit history: readable descriptions and field-level before/after values. */
.audit-log-panel{padding:0;overflow:hidden}
.audit-log-panel .table-wrap{margin:0;border-radius:inherit}
.audit-log-table{min-width:1500px;font-size:.78rem}
.audit-log-table th,.audit-log-table td{padding:.7rem .75rem;vertical-align:top}
.audit-time-cell{min-width:145px;white-space:nowrap}
.audit-user-cell{min-width:155px}
.audit-action-cell{min-width:180px}
.audit-description-cell{min-width:260px;max-width:360px;line-height:1.5}
.audit-change-cell{min-width:240px;max-width:340px}
.audit-record-cell{min-width:150px}
.audit-user-cell strong,.audit-user-cell small,.audit-action-cell strong,.audit-action-cell small,.audit-record-cell small{display:block}
.audit-user-cell small,.audit-action-cell small,.audit-record-cell small{margin-top:.2rem;color:var(--muted)}
.audit-value-details>summary{cursor:pointer;color:var(--navy);font-weight:800}
.audit-value-details>small{display:block;margin-top:.5rem;color:var(--muted)}
.audit-change-list{display:grid;gap:.4rem;margin:.55rem 0 0}
.audit-change-list>div{padding:.42rem .48rem;border-left:3px solid #d6e1f3;border-radius:6px;background:#f8fafc}
.audit-change-list dt{color:var(--muted);font-size:.64rem;font-weight:800;letter-spacing:.02em;text-transform:uppercase}
.audit-change-list dd{margin:.18rem 0 0;overflow-wrap:anywhere;white-space:pre-wrap}
.audit-no-change{color:var(--muted);font-size:.72rem}
@media(max-width:700px){.audit-log-table{min-width:1320px;font-size:.73rem}.audit-log-table th,.audit-log-table td{padding:.6rem}.audit-description-cell{min-width:230px}.audit-change-cell{min-width:220px}}

/* English/Khmer fixed-label interface switch. Record input remains English-only. */
.language-switch{display:flex;margin:0 12px 10px;padding:7px 9px;align-items:center;justify-content:center;gap:7px;color:rgba(255,255,255,.84);background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:10px;font-size:.68rem;font-weight:750}
.language-switch button{position:relative;width:38px;height:21px;padding:0;background:rgba(255,255,255,.3);border:0;border-radius:999px;cursor:pointer}
.language-switch button i{position:absolute;top:3px;left:3px;width:15px;height:15px;background:#fff;border-radius:50%;box-shadow:0 1px 4px rgba(0,0,0,.28);transition:transform .18s ease}
.language-switch button[aria-checked="true"]{background:#f4c900}.language-switch button[aria-checked="true"] i{transform:translateX(17px)}
.language-switch--portal{margin:0 auto 0 18px;color:#40506a;background:#f6f8fb;border-color:#d9e1ec}.language-switch--portal button{background:#aab5c5}
.language-switch--portal button[aria-checked="true"]{background:#68734e}
.input-language-error{border-color:#c43d4f!important;box-shadow:0 0 0 3px rgba(196,61,79,.15)!important}
@media(max-width:760px){.language-switch--portal{margin-left:6px}.language-switch--portal>span{display:none}.language-switch{font-size:.62rem}}

/* Installable Portal notification app and personal device registration. */
.push-app-panel,.push-device-panel{display:grid;gap:18px;margin-bottom:18px}
.push-app-heading{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px}
.push-app-heading h2,.push-device-panel h2{margin:.15rem 0 .3rem}
.push-app-heading p{margin:0;color:var(--muted)}
.push-app-icon{display:grid;width:72px;height:72px;place-items:center;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 8px 20px rgba(31,43,20,.11)}
.push-app-icon img{display:block;width:100%;height:100%;object-fit:cover}
.push-app-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.push-app-help{margin:0;color:var(--muted);font-size:.82rem}
.iphone-push-checks{padding:14px 16px;background:#f7f8f2;border:1px solid var(--line);border-radius:14px}.iphone-push-checks-heading{display:flex;justify-content:space-between;gap:12px;align-items:baseline}.iphone-push-checks-heading span{color:var(--muted);font-size:.78rem}.iphone-push-checks ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0 0;padding:0;list-style:none}.iphone-push-checks li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;background:#fff;border:1px solid var(--line);border-left:4px solid #c3a640;border-radius:10px;font-size:.8rem}.iphone-push-checks li b{font-size:.74rem;text-align:right}.iphone-push-checks li.is-pass{border-left-color:#16855b;background:#f1fbf6}.iphone-push-checks li.is-pass b{color:#0b6b4f}.iphone-push-checks li.is-fail{border-left-color:#c43149;background:#fff5f6}.iphone-push-checks li.is-fail b{color:#a61f37}.iphone-push-checks li.is-warn b{color:#806b18}
.notification-app-update{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px 18px;padding:14px 16px;background:#f3f6fb;border:1px solid #d9e2ef;border-radius:14px}.notification-app-update strong{display:block}.notification-app-update p{margin:3px 0 0;color:var(--muted);font-size:.82rem}.notification-app-update>[data-pwa-update-help]{grid-column:1/-1;margin:0}.notification-install-panel{display:grid;gap:18px;margin-bottom:18px}.notification-install-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.notification-install-grid article{padding:16px;background:#f7f8f2;border:1px solid var(--line);border-radius:14px}.notification-install-grid strong{font-size:1rem}.notification-install-grid ol{margin:10px 0 0;padding-left:20px;color:var(--muted);font-size:.85rem}.notification-install-grid li+li{margin-top:7px}.notification-install-note{margin:0}
.notification-presentation-panel{display:grid;gap:16px;margin-bottom:18px}.notification-presentation-panel table{min-width:720px}.notification-presentation-settings{display:grid;gap:8px;padding:14px 16px;background:#f7f8f2;border:1px solid var(--line);border-radius:14px}.notification-presentation-settings p{margin:0;font-size:.84rem}
.trusted-device-control{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px 18px;padding:14px 16px;background:#f7f8f2;border:1px solid var(--line);border-radius:14px}.trusted-device-control strong{display:block}.trusted-device-control p{margin:3px 0 0;color:var(--muted);font-size:.82rem}.trusted-device-control>[data-trusted-help]{grid-column:1/-1;margin:0}.trusted-device-active{color:#0b6b4f!important;font-weight:800}
.push-app-panel [data-push-status].is-enabled{color:#0b6b4f;background:#dff7ed;border-color:#a4dfcb}
.push-device-list{display:grid;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.push-device{display:flex;min-height:76px;padding:14px 16px;align-items:center;justify-content:space-between;gap:14px;background:#fff;border-bottom:1px solid var(--line)}
.push-device:last-child{border-bottom:0}.push-device.is-revoked{opacity:.65;background:#f7f7f4}
.push-device>div{display:grid;gap:3px}.push-device strong,.push-device span,.push-device small{display:block}.push-device small{color:var(--muted)}
.push-device form{margin:0}.push-device-list>.empty-inline{padding:20px}
.push-device-actions{display:flex!important;align-items:center;gap:8px}.push-device-actions form{display:block}
@media(max-width:900px){.notification-install-grid{grid-template-columns:1fr}}
@media(max-width:700px){.push-app-heading{grid-template-columns:auto minmax(0,1fr)}.push-app-heading>[data-push-status]{grid-column:1/-1;justify-self:start}.push-app-actions{display:grid;grid-template-columns:1fr}.push-app-actions .button{width:100%;justify-content:center}.iphone-push-checks-heading{align-items:flex-start;flex-direction:column}.iphone-push-checks ul{grid-template-columns:1fr}.notification-app-update,.trusted-device-control{grid-template-columns:1fr}.notification-app-update>[data-pwa-update-help],.trusted-device-control>[data-trusted-help]{grid-column:1}.push-device{align-items:flex-start;flex-direction:column}.push-device-actions{display:grid!important;grid-template-columns:1fr;width:100%}.push-device form,.push-device form .button{width:100%}.push-device form .button{justify-content:center}}
.rollout-release-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}.rollout-release-panel h2{margin:.15rem 0 .25rem}.rollout-gate{display:inline-flex;padding:10px 14px;border-radius:999px;font-size:.78rem;font-weight:900;letter-spacing:.04em}.rollout-gate.is-ready{color:#075b42;background:#dff7ed;border:1px solid #a4dfcb}.rollout-gate.is-blocked{color:#9d261e;background:#fff0ee;border:1px solid #efc0bb}.rollout-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.rollout-kpis article{display:grid;gap:5px;margin:0}.rollout-kpis span,.rollout-kpis small{color:var(--muted)}.rollout-kpis strong{font-size:1.7rem}.rollout-blockers{margin-bottom:18px;border-color:#efc0bb}.rollout-blockers ul{margin:0;padding-left:22px;color:#8d2a22}.rollout-blockers li+li{margin-top:6px}.rollout-acceptance-panel,.rollout-decision-panel{display:grid;gap:18px}.rollout-acceptance-list{display:grid;border:1px solid var(--line);border-radius:14px;overflow:hidden}.rollout-acceptance-row{display:grid;grid-template-columns:minmax(180px,1.15fr) minmax(100px,.55fr) minmax(170px,1fr) minmax(170px,1fr) auto;align-items:end;gap:10px;padding:12px 14px;background:#fff;border-bottom:1px solid var(--line)}.rollout-acceptance-row:last-child{border-bottom:0}.rollout-acceptance-row>div{display:grid;gap:2px;align-self:center}.rollout-acceptance-row>div span,.rollout-acceptance-row>div small{color:var(--muted)}.rollout-acceptance-row label{margin:0}.rollout-acceptance-row label span{display:block;margin-bottom:4px;font-size:.72rem;font-weight:800;color:var(--muted)}.rollout-acceptance-row input,.rollout-acceptance-row select{min-height:38px;padding:7px 9px}.rollout-acceptance-row .button{min-height:38px}.rollout-decision-panel{margin-top:18px}.rollout-decision-panel .table-wrap{margin-top:4px}
@media(max-width:1050px){.rollout-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.rollout-acceptance-row{grid-template-columns:repeat(2,minmax(0,1fr))}.rollout-acceptance-row>div{grid-column:1/-1}.rollout-acceptance-row .button{width:100%;justify-content:center}}
@media(max-width:700px){.rollout-release-panel{align-items:flex-start;flex-direction:column}.rollout-kpis{grid-template-columns:1fr 1fr}.rollout-acceptance-row{grid-template-columns:1fr}.rollout-acceptance-row>div{grid-column:1}.rollout-acceptance-row label,.rollout-acceptance-row .button{width:100%}}
.employee-status-tabs{display:flex;gap:.5rem;overflow-x:auto;padding:.25rem 0 .85rem;scrollbar-width:thin}.employee-status-tabs a{display:inline-flex;align-items:center;gap:.45rem;white-space:nowrap;padding:.55rem .85rem;border:1px solid var(--border,#dfe4d8);border-radius:999px;background:#fff;color:inherit;text-decoration:none;font-weight:700;font-size:.86rem}.employee-status-tabs a span{display:inline-grid;place-items:center;min-width:1.55rem;height:1.55rem;padding:0 .35rem;border-radius:999px;background:#eef2e8;font-size:.75rem}.employee-status-tabs a.active{background:#60714d;color:#fff;border-color:#60714d}.employee-status-tabs a.active span{background:rgba(255,255,255,.18)}
