/* Shared director/programmer theme. Keep worker controls and login unchanged. */
:root.ea-web-view {
    --canvas: #edf3f4;
    --paper: #fff;
    --paper2: #f3f7f8;
    --line: #d3e1e4;
    --text: #132d39;
    --muted: #4c6570;
    --header: #102b38;
    --accent: #136c61;
    --nav: #e8f4f1;
    --navtext: #18574f;
    --workspace-focus: #047a6c;
    --workspace-heading: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
    --workspace-shadow: 0 8px 26px rgb(22 48 59 / .055);
    font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
}

.ea-web-view body { font-family: inherit; }

.ea-web-view .app-header {
    min-height: 64px;
    padding-inline: 16px;
    background: linear-gradient(112deg, #102b38 26%, #184d51 100%);
    box-shadow: var(--workspace-shadow);
}

.ea-web-view .app-header h1 {
    display: flex;
    align-items: center;
    gap: 10px;
    font: 730 clamp(20px, 2.4vw, 29px)/1.1 var(--workspace-heading) !important;
}

.ea-web-view .app-header h1::before {
    content: "";
    width: 30px;
    height: 30px;
    border-radius: 8px;
    flex: none;
    background: #d9f5ee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14M5 12h10M5 16h6'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.ea-web-view .app-header .language-flags {
    padding: 2px 3px;
    border: 1px solid rgb(255 255 255 / .22);
    border-radius: 8px;
    background: rgb(9 28 36 / .24);
}
.ea-web-view .account-context .logout { min-height: 36px; }

.ea-web-view .app .dashboard-nav {
    border-top: 3px solid #2b8278;
    box-shadow: var(--workspace-shadow);
}
.ea-web-view .app .dashboard-nav .admin {
    color: #2d4855;
    padding-inline: 10px !important;
}
.ea-web-view .dashboard-nav .admin::before {
    content: "";
    display: inline-block;
    width: 17px;
    height: 17px;
    margin-inline-end: 8px;
    vertical-align: -.2em;
    background-color: currentColor;
    mask: var(--menu-icon) center / contain no-repeat;
}
.ea-web-view #companyWeekButton { --menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M8 3v4m8-4v4M3 10h18m-13 5h2m4 0h2'/%3E%3C/svg%3E"); }
.ea-web-view #companyEmployeesButton { --menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M3 20v-2a6 6 0 0 1 12 0v2m1-15a3 3 0 0 1 0 6m5 9v-2a5 5 0 0 0-3-4'/%3E%3C/svg%3E"); }
.ea-web-view #companyProjectsButton { --menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6a2 2 0 0 1 2-2h4l3 3h7a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E"); }
.ea-web-view #companyReportsButton { --menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4v16h16M8 16v-3m4 3V9m4 7V6'/%3E%3C/svg%3E"); }
.ea-web-view #companyRolesButton { --menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v5c0 5-4 8-8 10-4-2-8-5-8-10V6zM9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.ea-web-view #openAccessButton { --menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10' width='14' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 1 1 8 0v3m-4 4v3'/%3E%3C/svg%3E"); }
.ea-web-view .inbox-button { --menu-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }

.ea-web-view #webWorkspace > * > :is(.user-modal-content, .reports-content) {
    border-radius: 13px;
    box-shadow: var(--workspace-shadow);
}
.ea-web-view #webWorkspace > * > :is(.user-modal-content, .reports-content) > h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 31px;
    margin-bottom: 16px;
    font-family: var(--workspace-heading);
    font-weight: 720;
}
.ea-web-view #webWorkspace > * > :is(.user-modal-content, .reports-content) > h2::before {
    content: "";
    width: 4px;
    height: 22px;
    border-radius: 4px;
    background: #36a395;
    flex: none;
}
.ea-web-view #webWorkspace :is(.demo-filters, .demo-employee-details > div, .company-week-day, .company-inbox-list li) {
    border-color: var(--line);
    background-color: var(--paper2);
}
.ea-web-view #webWorkspace :is(.company-week-day, .company-inbox-list li) {
    border-radius: 10px;
}
.ea-web-view #webWorkspace .demo-results table { color: var(--text); }
.ea-web-view #webWorkspace .demo-results thead :is(th, td) {
    background: #eaf3f3;
    color: #314f59;
}
.ea-web-view #webWorkspace .demo-results tbody tr:is(:hover, :focus-within) td { background: #f4f9f8; }
.ea-web-view #webWorkspace .workspace-directory .demo-project-button { color: #155e54; }
.ea-web-view #webWorkspace .employee-access-badge {
    background: #e8f3f2;
    color: #245b55;
}
.ea-web-view #webWorkspace :is(.web-reports, .managed-project-new) {
    background: var(--accent);
    color: #fff;
}
.ea-web-view #webWorkspace .demo-project-button:not(.managed-project-new) {
    border: 1px solid transparent;
}
.ea-web-view #webWorkspace .demo-project-button:not(.managed-project-new):is(:hover, :focus-visible) {
    border-color: #b7d6d1;
}
.ea-web-view #webWorkspace :is(input:not([type="checkbox"], [type="radio"]), select, textarea) {
    max-width: 100%;
    border-color: #b9cdd2;
    border-radius: 7px;
    background-color: #fff;
    color: var(--text);
}
.ea-web-view :is(.dashboard-nav, #webWorkspace) :is(button,input,select,textarea):focus-visible {
    outline-color: var(--workspace-focus);
}

/* Editing surfaces: keep related fields together, not in a long single column. */
.ea-web-view #webWorkspace :is(.managed-project-title, .employee-profile-title) {
    width: auto;
    margin: 4px 0 14px;
    font: 700 clamp(18px, 2.3vw, 23px)/1.25 var(--workspace-heading);
}
.ea-web-view #webWorkspace .managed-project-editor {
    gap: 14px;
}
.ea-web-view #webWorkspace .managed-project-editor > .managed-project-fields {
    width: 100%;
    margin: 0;
    gap: 16px;
}
.ea-web-view #webWorkspace .managed-project-group {
    min-width: 0;
    margin: 0;
    padding: 12px 14px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper2);
}
.ea-web-view #webWorkspace :is(.managed-project-group, .managed-project-cooperation) > legend {
    padding: 0 6px;
    font-size: 13px;
    color: var(--navtext);
    font-weight: 730;
}
.ea-web-view #webWorkspace .managed-project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}
.ea-web-view #webWorkspace .managed-project-grid > :is(label, button, div, p, a) {
    min-width: 0;
}
.ea-web-view #webWorkspace .managed-project-grid > :is(.ea-address-results, [role="status"], .ea-form-attribution, [data-field="description"], [data-field="region"]) {
    grid-column: 1 / -1;
}
.ea-web-view #webWorkspace .managed-project-grid > [role="status"]:empty {
    display: none;
}
.ea-web-view #webWorkspace .managed-project-grid > label > span {
    display: block;
    font-size: 13px;
    font-weight: 650;
}
.ea-web-view #webWorkspace .managed-project-grid > label > :is(input, textarea) {
    width: 100%;
    margin: 5px 0 0;
    box-sizing: border-box;
    min-height: 40px;
}
.ea-web-view #webWorkspace .managed-address-action {
    justify-self: start;
    grid-column: 1 / -1;
}
.ea-web-view #webWorkspace .managed-project-grid .ea-form-attribution {
    margin: 0;
}
.ea-web-view #webWorkspace .managed-project-cooperation,
.ea-web-view #webWorkspace .managed-project-editor > section,
.ea-web-view #webWorkspace .employee-profile-form {
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper2);
}
.ea-web-view #webWorkspace .managed-project-editor > .demo-employee-actions {
    justify-content: flex-end;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}
.ea-web-view #webWorkspace .managed-project-editor > section > h4 { margin: 0 0 12px; }
.ea-web-view #webWorkspace .employee-profile-form { width: min(100%, 560px); margin-inline: 0; }
@media (max-width: 560px) {
    .ea-web-view #webWorkspace .managed-project-grid { grid-template-columns: minmax(0, 1fr); }
    .ea-web-view #webWorkspace .managed-project-group { padding-inline: 10px; }
    .ea-web-view .dashboard-nav .admin::before { margin-inline-end: 5px; }
}

/* Project identity uses a curated set of readable, light backgrounds. */
.ea-web-view #webWorkspace .project-color-control {
    grid-column: 1 / -1;
    min-width: 0;
    border: 0;
    padding: 2px 0 0;
    margin: 0;
}
.ea-web-view #webWorkspace .project-color-control > legend {
    padding: 0;
    font-size: 13px;
    font-weight: 650;
}
.ea-web-view #webWorkspace .project-color-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 6px;
}
.ea-web-view #webWorkspace .project-color-swatch {
    display: grid;
    place-items: center;
    position: relative;
    width: 40px;
    height: 40px;
    box-sizing: border-box;
    border: 1px solid var(--project-edge, #ccd6db);
    border-radius: 8px;
    background: var(--project-wash, #fff);
    cursor: pointer;
}
.ea-web-view #webWorkspace .project-color-swatch input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: inherit;
}
.ea-web-view #webWorkspace .project-color-swatch:has(input:checked) {
    outline: 2px solid #18574f;
    outline-offset: 1px;
}
.ea-web-view #webWorkspace .project-color-swatch:has(input:focus-visible) {
    box-shadow: 0 0 0 4px #a6d9d0;
}
.ea-web-view #webWorkspace .project-color-swatch:has(input:disabled) {
    opacity: .48;
    cursor: not-allowed;
}
.ea-web-view #webWorkspace .project-color-swatch-mark {
    color: #173a40;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}
.ea-web-view #webWorkspace .project-color-swatch[data-project-color="none"] .project-color-swatch-mark::before,
.ea-web-view #webWorkspace .project-color-swatch:has(input:disabled) .project-color-swatch-mark::before {
    content: "";
    display: block;
    width: 17px;
    border-top: 1px solid currentColor;
    transform: rotate(-40deg);
}
.ea-web-view #webWorkspace .project-color-swatch:has(input:checked) .project-color-swatch-mark::after {
    content: "";
    display: block;
    width: 9px;
    height: 5px;
    transform: rotate(-45deg);
    border: solid currentColor;
    border-width: 0 0 2px 2px;
}
.ea-web-view #webWorkspace .project-color-swatch[data-project-color="none"]:has(input:checked) .project-color-swatch-mark::before {
    display: none;
}
.ea-web-view #webWorkspace .workspace-directory tr[data-project-color] td {
    background: var(--project-wash);
    border-bottom-color: var(--line);
}
.ea-web-view #webWorkspace .workspace-directory tr[data-project-color] td:first-child {
    box-shadow: inset 3px 0 var(--project-edge);
}
.ea-web-view #webWorkspace .workspace-directory tr[data-project-color]:is(:hover, :focus-within) td {
    background: color-mix(in srgb, var(--project-wash), var(--project-edge) 9%);
}
.ea-web-view #webWorkspace .project-color-title[data-project-color] {
    padding: 8px 12px;
    border-inline-start: 3px solid var(--project-edge);
    border-radius: 6px;
    background: var(--project-wash);
}
.ea-web-view [data-project-color="none"] { --project-wash: #fff; --project-edge: #ccd6db; }
.ea-web-view [data-project-color="mint"] { --project-wash: #e4f5ec; --project-edge: #53a783; }
.ea-web-view [data-project-color="sky"] { --project-wash: #e6f1ff; --project-edge: #5a94cf; }
.ea-web-view [data-project-color="lilac"] { --project-wash: #f0e9fa; --project-edge: #9b76c3; }
.ea-web-view [data-project-color="peach"] { --project-wash: #fff0e4; --project-edge: #c68550; }
.ea-web-view [data-project-color="rose"] { --project-wash: #f9e9ee; --project-edge: #bf7590; }
.ea-web-view [data-project-color="sand"] { --project-wash: #fcf4da; --project-edge: #a88b3c; }

.ea-web-view #webWorkspace .project-color-hint {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.ea-web-view [data-project-color="aqua"] { --project-wash: #dff7f8; --project-edge: #4d9aa2; }
.ea-web-view [data-project-color="butter"] { --project-wash: #fff8c9; --project-edge: #b69829; }
.ea-web-view [data-project-color="sage"] { --project-wash: #edf3db; --project-edge: #87994e; }
.ea-web-view [data-project-color="slate"] { --project-wash: #e8edf2; --project-edge: #758da1; }
.ea-web-view [data-project-color="apricot"] { --project-wash: #fbe8d5; --project-edge: #c17838; }
.ea-web-view [data-project-color="periwinkle"] { --project-wash: #e9eaff; --project-edge: #777bd0; }

/* Weekly staffing board */
.ea-web-view #webWorkspace .company-week-day { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.ea-web-view #webWorkspace .company-week-date-column { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.ea-web-view #webWorkspace .company-week-date-column h3 { color: var(--navtext); font-size: 15px; }
.ea-web-view #webWorkspace .company-week-day h4 { margin: 0 0 7px; color: var(--muted); font-size: 13px; }
.ea-web-view #webWorkspace .company-week-note-heading {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 7px;
}
.ea-web-view #webWorkspace .company-week-note-heading h4,
.ea-web-view #webWorkspace .company-week-note-heading button { margin: 0; }
.ea-web-view #webWorkspace .company-week-cities { display: grid; gap: 7px; }
.ea-web-view #webWorkspace .company-week-city {
    min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
}
.ea-web-view #webWorkspace .company-week-city-heading {
    display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 5px;
}
.ea-web-view #webWorkspace .company-week-city-heading h5 { margin: 0; font-size: 14px; }
.ea-web-view #webWorkspace .company-week-count {
    min-width: 20px; padding: 2px 6px; border-radius: 12px; background: var(--nav);
    color: var(--navtext); text-align: center; font: 650 12px/1.35 "Segoe UI", sans-serif;
}
.ea-web-view #webWorkspace .company-week-people {
    display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 0; list-style: none; font-size: 13px;
}
.ea-web-view #webWorkspace .company-week-people li { padding: 1px 5px; border-radius: 4px; background: var(--paper2); }
.ea-web-view #webWorkspace .company-week-empty { color: var(--muted); font-size: 13px; }
@media (min-width: 700px) {
    .ea-web-view #webWorkspace .company-week-day {
        grid-template-columns: minmax(104px, .7fr) minmax(0, 2fr) minmax(0, 1.5fr);
    }
    .ea-web-view #webWorkspace .company-week-date-column { border-bottom: 0; }
    .ea-web-view #webWorkspace .company-week-note-column {
        min-width: 0; padding-inline-start: 12px; border-inline-start: 1px solid var(--line);
    }
}

.ea-web-view #webWorkspace .employee-password-field {
    position: relative;
}
.ea-web-view #webWorkspace .employee-password-field input {
    width: 100%;
    box-sizing: border-box;
    padding-inline-end: 48px;
}
.ea-web-view #webWorkspace .employee-password-eye {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    width: 44px;
    min-height: 0;
    padding: 0 !important;
    display: grid;
    place-items: center;
    background: transparent;
    color: var(--navtext);
    box-shadow: none;
    border: 0;
}
.ea-web-view #webWorkspace .employee-password-eye::before {
    content: "";
    width: 19px;
    height: 19px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='2.6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ea-web-view #webWorkspace .employee-password-eye.is-visible::after {
    content: "";
    position: absolute;
    width: 23px;
    border-top: 2px solid currentColor;
    transform: rotate(-42deg);
    box-shadow: 0 1px var(--paper);
}

/* Password credentials, before the app loads and in team settings. */
.employee-first-login[hidden], .employee-credential-form [hidden], #employeeAccountResetButton[hidden] { display: none !important; }
.employee-first-login:not([hidden]) { display: flex; }
.employee-credential-form { display: grid; gap: .75rem; }
.employee-credential-form label { display: grid; gap: .25rem; text-align: left; }
.employee-credential-form input { width: 100%; min-width: 0; box-sizing: border-box; }
.employee-credential-form [role="status"] { min-height: 1.25em; margin: 0; }
.employee-reset-dialog { width: min(420px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 1.5rem; border: 1px solid #d5e0e9; border-radius: 14px; color: #17283f; }
.employee-reset-dialog::backdrop { background: rgb(12 30 47 / .48); }
