:root {
    --brand-900: #073b30;
    --brand-800: #09513f;
    --brand-700: #0f6b4f;
    --brand-600: #12815e;
    --brand-100: #dff4eb;
    --brand-50: #f0faf6;
    --blue: #1677ff;
    --blue-100: #e8f3ff;
    --green: #1f9d68;
    --green-100: #e6f7ef;
    --amber: #d98910;
    --amber-100: #fff5dc;
    --purple: #7656d6;
    --purple-100: #f1edff;
    --red: #d84a4a;
    --red-100: #fff0f0;
    --slate: #667085;
    --ink: #14221d;
    --text: #32433c;
    --muted: #76857f;
    --line: #e4eae7;
    --line-soft: #edf1ef;
    --surface: #ffffff;
    --canvas: #f5f7f6;
    --sidebar: #0a342b;
    --shadow-sm: 0 1px 2px rgba(16, 39, 31, .04), 0 4px 14px rgba(16, 39, 31, .035);
    --shadow-md: 0 16px 44px rgba(13, 48, 37, .13);
    --radius: 12px;
    --radius-lg: 16px;
    --sidebar-width: 264px;
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--canvas);
    font-synthesis: none;
}

/* Professional weekly planning */
.planning-command {
    display: grid;
    min-height: 78px;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 18px;
    margin-bottom: 14px;
    padding: 13px 16px;
}

.planning-projects {
    margin: 18px 0 16px;
}

.planning-projects-heading,
.project-board-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.planning-projects-heading h2,
.project-board-heading h2 {
    margin: 2px 0 0;
    color: var(--ink);
    font-size: 16px;
}

.planning-projects-heading > span,
.project-board-heading > span {
    color: var(--muted);
    font-size: 8.5px;
}

.project-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 320px));
    gap: 10px;
}

.project-card {
    display: grid;
    min-height: 154px;
    align-content: start;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.project-card:hover,
.project-card.is-selected {
    border-color: #83c7ad;
    box-shadow: 0 10px 26px rgba(15, 107, 79, .1);
    transform: translateY(-1px);
}

.project-card.is-selected {
    background: linear-gradient(145deg, #fff, #f1faf6);
}

.project-card header,
.project-card footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.project-card header span,
.project-card header b {
    color: var(--muted);
    font-size: 7px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.project-card header b {
    padding: 3px 6px;
    border-radius: 5px;
    background: var(--brand-50);
    color: var(--brand-700);
}

.project-card h3 {
    margin: 13px 0 3px;
    color: var(--ink);
    font-size: 12px;
}

.project-card p {
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 7.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-card-progress {
    height: 5px;
    margin: 15px 0 9px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8efeb;
}

.project-card-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-600), #49b88f);
}

.project-card footer {
    justify-content: flex-start;
    margin-top: auto;
}

.project-card footer span {
    color: var(--muted);
    font-size: 7px;
}

.project-card footer strong {
    color: var(--ink);
}

.project-card-empty {
    place-items: center;
    border-style: dashed;
    color: var(--brand-700);
    cursor: pointer;
    text-align: center;
}

.project-card-empty span {
    color: var(--muted);
    font-size: 8px;
}

.project-board-heading {
    margin-top: 22px;
}

.planning-empty-state {
    min-height: 300px;
}

.planning-week-navigation,
.planning-kpis,
.planning-period,
.planning-period span {
    display: flex;
    align-items: center;
}

.planning-week-navigation {
    gap: 8px;
}

.planning-week-navigation > .icon-button:first-child svg {
    transform: rotate(180deg);
}

.planning-period {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    padding-left: 18px;
    border-left: 1px solid var(--line);
}

.planning-period span {
    gap: 5px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.planning-period strong {
    color: var(--ink);
    font-size: 10px;
}

.planning-kpis {
    justify-content: flex-end;
    gap: 7px;
}

.planning-kpis > span {
    padding: 7px 9px;
    border: 1px solid #e1e9e5;
    border-radius: 8px;
    background: #f8fbf9;
    color: var(--muted);
    font-size: 8px;
    white-space: nowrap;
}

.planning-kpis strong {
    margin-right: 2px;
    color: var(--ink);
    font-size: 11px;
}

.planning-kpis .is-success {
    border-color: #cce9dc;
    background: #f0faf5;
    color: var(--brand-700);
}

.planning-kpis .is-warning {
    border-color: #f2d9b0;
    background: #fff8ec;
    color: #a96708;
}

.professional-kanban {
    align-items: start;
}

.professional-kanban .kanban-column {
    min-height: 610px;
    padding: 9px;
    background: #f3f6f4;
}

.professional-kanban .kanban-heading {
    height: 42px;
}

.professional-kanban .kanban-heading small {
    color: #9aa7a1;
    font-size: 7px;
}

.professional-kanban .kanban-items {
    min-height: 548px;
    padding: 2px;
    transition: background .15s ease, outline-color .15s ease;
}

.professional-kanban .kanban-items.drag-over {
    background: rgba(41, 151, 108, .07);
}

.professional-task-card {
    cursor: default;
    transition: box-shadow .15s ease, transform .15s ease, opacity .15s ease;
}

.professional-task-card.is-draggable {
    cursor: grab;
}

.professional-task-card.is-draggable:active {
    cursor: grabbing;
}

.professional-task-card:hover {
    border-color: #cbd9d2;
    box-shadow: 0 8px 22px rgba(25, 52, 42, .08);
    transform: translateY(-1px);
}

.professional-task-card.is-saving {
    pointer-events: none;
    opacity: .65;
}

.task-meta > div {
    display: flex;
    align-items: center;
    gap: 5px;
}

.priority-urgent {
    background: #861d27;
    color: #fff;
}

.shared-task-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px;
    border-radius: 5px;
    background: #edf5ff;
    color: #2d6ea8;
    font-size: 7px;
    font-weight: 700;
}

.task-progress-value {
    color: var(--brand-700);
    font-size: 8px;
    font-weight: 750;
}

.task-assignees {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 10px 0;
}

.task-assignees > span {
    overflow: hidden;
    color: var(--muted);
    font-size: 7.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avatar-stack {
    display: flex;
    padding-left: 4px;
}

.avatar-stack .avatar {
    margin-left: -4px;
    border: 2px solid #fff;
}

.subtask-block {
    margin: 10px -2px 3px;
    padding: 8px;
    border: 1px solid #e5ebe8;
    border-radius: 8px;
    background: #fafcfb;
}

.subtask-heading,
.subtask-row {
    display: flex;
    align-items: center;
}

.subtask-heading {
    justify-content: space-between;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.subtask-heading strong {
    color: var(--brand-700);
}

.subtask-list {
    display: grid;
    gap: 4px;
}

.subtask-row {
    min-width: 0;
    gap: 6px;
}

.subtask-row button {
    display: grid;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    place-items: center;
    border: 1px solid #bfcac5;
    border-radius: 5px;
    background: #fff;
    color: transparent;
    cursor: pointer;
}

.subtask-row button:disabled {
    cursor: default;
}

.subtask-row span {
    overflow: hidden;
    color: #53625c;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subtask-row.is-complete button {
    border-color: var(--brand-600);
    background: var(--brand-600);
    color: #fff;
}

.subtask-row.is-complete span {
    color: #95a09b;
    text-decoration: line-through;
}

.professional-task-card footer {
    min-height: 27px;
}

.professional-task-card footer > span {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 8px;
}

.task-add-subtask {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 4px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--brand-700);
    cursor: pointer;
    font: inherit;
    font-size: 7.5px;
    font-weight: 650;
}

.task-add-subtask:hover {
    background: var(--brand-50);
}

.daily-report-section {
    margin-top: 24px;
}

.daily-overview {
    display: flex;
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 16px;
}

.daily-overview .planning-week-navigation > div {
    display: grid;
    min-width: 190px;
    text-align: center;
}

.daily-overview .planning-week-navigation > div span {
    color: var(--muted);
    font-size: 7.5px;
    text-transform: uppercase;
}

.daily-overview .planning-week-navigation > div strong {
    color: var(--ink);
    font-size: 10px;
}

.daily-overview-metrics {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.daily-overview-metrics > span {
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8faf9;
    color: var(--muted);
    font-size: 8px;
}

.daily-overview-metrics strong {
    margin-right: 2px;
    color: var(--ink);
    font-size: 11px;
}

.daily-overview-metrics .is-success {
    border-color: #cce9dc;
    background: #f0faf5;
    color: var(--brand-700);
}

.daily-overview-metrics .is-warning {
    border-color: #f2d9b0;
    background: #fff8ec;
    color: #a96708;
}

.daily-report-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

.daily-report-heading h2 {
    margin: 3px 0;
    color: var(--ink);
    font-size: 18px;
}

.daily-report-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 9px;
}

.daily-date-filter {
    display: flex;
    align-items: flex-end;
    gap: 7px;
}

.daily-date-filter label,
.daily-date-filter label span {
    display: block;
}

.daily-date-filter label span {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 8px;
}

.daily-date-filter input {
    height: 34px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 9px;
}

.daily-report-layout {
    display: grid;
    grid-template-columns: minmax(360px, .85fr) minmax(600px, 1.5fr);
    gap: 14px;
    align-items: start;
}

.daily-report-layout.is-supervision-only {
    grid-template-columns: 1fr;
}

.daily-entry-card,
.daily-control-card {
    padding: 16px;
}

.daily-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.daily-task-picker,
.task-assignee-picker {
    margin: 0;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
}

.daily-task-picker legend,
.task-assignee-picker legend {
    padding: 0 5px;
    color: var(--ink);
    font-size: 9px;
    font-weight: 700;
}

.daily-task-picker {
    display: grid;
    max-height: 190px;
    gap: 5px;
    overflow-y: auto;
}

.daily-planning-reference {
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fbfcfb;
}

.daily-planning-reference summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 11px;
    color: var(--ink);
    cursor: pointer;
    font-size: 8.5px;
    font-weight: 700;
    list-style: none;
}

.daily-planning-reference summary::-webkit-details-marker {
    display: none;
}

.daily-planning-reference summary small {
    padding: 3px 6px;
    border-radius: 5px;
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: 7px;
}

.daily-planning-reference .daily-task-picker {
    margin: 0 8px 8px;
    background: #fff;
}

.daily-task-picker label {
    display: grid;
    min-height: 34px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 7px;
    padding: 5px 7px;
    border-radius: 7px;
    background: #f8faf9;
}

.daily-task-picker label > span:not(.status) {
    overflow: hidden;
    color: #46534e;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.daily-review-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
    border: 1px solid #f0c9a6;
    border-radius: 8px;
    background: #fff7ef;
    color: #9a541e;
}

.daily-review-note strong,
.daily-review-note span {
    display: block;
    font-size: 8px;
}

.daily-review-note span {
    margin-top: 2px;
    color: #775c49;
}

.form-help {
    margin-right: auto;
    color: var(--muted);
    font-size: 7.5px;
}

.daily-control-scroll {
    overflow-x: auto;
}

.daily-control-grid {
    min-width: 720px;
}

.daily-control-head,
.daily-control-row {
    display: grid;
    grid-template-columns: minmax(190px, 1.35fr) repeat(7, minmax(62px, .65fr));
    align-items: center;
    gap: 5px;
}

.daily-control-head {
    min-height: 42px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--line);
}

.daily-control-head > span {
    color: var(--muted);
    font-size: 7px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.daily-control-head > span:first-child {
    text-align: left;
}

.daily-control-head strong,
.daily-control-head small {
    display: block;
}

.daily-control-head small {
    margin-top: 2px;
    font-weight: 500;
}

.daily-control-row {
    min-height: 57px;
    border-bottom: 1px solid var(--line-soft);
}

.daily-employee {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

.daily-employee div {
    min-width: 0;
}

.daily-employee strong,
.daily-employee small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.daily-employee strong {
    color: var(--ink);
    font-size: 8.5px;
}

.daily-employee small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 7px;
}

.daily-state {
    display: grid;
    min-height: 34px;
    place-items: center;
    border: 1px solid #e2e8e5;
    border-radius: 7px;
    background: #f7f9f8;
    color: #8d9994;
    font-size: 9px;
    font-weight: 800;
}

.daily-state small {
    display: block;
    margin-top: -7px;
    font-size: 5.8px;
    font-weight: 600;
}

.daily-state-reviewed {
    border-color: #bfe2d2;
    background: #ebf8f2;
    color: #167353;
}

.daily-state-submitted {
    border-color: #bdd7f1;
    background: #edf6ff;
    color: #2f72ad;
}

.daily-state-remote {
    border-color: #9fc9ef;
    background: #e8f4ff;
    color: #176cce;
}

.daily-state-needs-changes {
    border-color: #f0c79f;
    background: #fff5ea;
    color: #ae5d19;
}

.daily-state-leave {
    border-color: #d7c8ef;
    background: #f5f0fc;
    color: #7650a8;
}

.daily-state-absence,
.daily-state-absent {
    border-color: #efc3c3;
    background: #fff0f0;
    color: #b54646;
}

.daily-state-weekend {
    border-style: dashed;
    background: #fbfcfb;
    color: #aab3af;
}

.daily-state-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.daily-state-legend span {
    padding: 4px 7px;
    border-radius: 5px;
    background: #f1f4f2;
    color: var(--muted);
    font-size: 7px;
}

.daily-state-legend .reviewed { background: #ebf8f2; color: #167353; }
.daily-state-legend .submitted { background: #edf6ff; color: #2f72ad; }
.daily-state-legend .remote { background: #e8f4ff; color: #176cce; }
.daily-state-legend .needs-changes { background: #fff5ea; color: #ae5d19; }
.daily-state-legend .leave { background: #f5f0fc; color: #7650a8; }
.daily-state-legend .absence { background: #fff0f0; color: #b54646; }

.daily-global-section {
    margin-top: 22px;
}

.daily-global-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.daily-global-heading h2 {
    margin: 2px 0;
    color: var(--ink);
    font-size: 17px;
}

.daily-global-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 8.5px;
}

.daily-global-filters {
    display: grid;
    grid-template-columns: minmax(145px, .75fr) minmax(220px, 1.4fr) minmax(150px, .8fr) minmax(150px, .8fr) auto auto;
    align-items: end;
    gap: 8px;
    padding: 12px;
}

.daily-global-filters label,
.daily-global-filters label > span {
    display: block;
}

.daily-global-filters label > span {
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 7.5px;
    font-weight: 700;
}

.daily-global-filters input,
.daily-global-filters select {
    width: 100%;
    height: 34px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    outline: none;
    background: #fff;
    color: var(--ink);
    font-size: 8.5px;
}

.daily-global-list {
    display: grid;
    gap: 9px;
    margin-top: 10px;
}

.daily-global-row {
    display: grid;
    grid-template-columns: minmax(210px, .85fr) 105px minmax(280px, 1.45fr) minmax(220px, 1fr);
    align-items: start;
    gap: 16px;
    padding: 15px;
}

.daily-global-person {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}

.daily-global-person > div {
    min-width: 0;
}

.daily-global-person h3 {
    margin: 1px 0;
    color: var(--ink);
    font-size: 11px;
}

.daily-global-person small {
    display: block;
    overflow: hidden;
    color: var(--muted);
    font-size: 7px;
    line-height: 1.45;
    text-overflow: ellipsis;
}

.daily-global-status {
    display: grid;
    justify-items: start;
    gap: 5px;
}

.daily-global-status .daily-state {
    width: 96px;
}

.daily-global-status > small,
.daily-global-review small {
    color: var(--muted);
    font-size: 6.8px;
}

.daily-global-work,
.daily-global-risks {
    min-width: 0;
}

.daily-global-work > strong,
.daily-global-risks strong {
    display: block;
    color: var(--muted);
    font-size: 7px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.daily-global-work p,
.daily-global-risks p {
    margin: 4px 0 0;
    color: #46534e;
    font-size: 8.2px;
    line-height: 1.55;
}

.daily-global-risks {
    display: grid;
    gap: 10px;
}

.daily-global-risks > div:first-child p {
    color: #9a541e;
}

.daily-global-actions {
    display: flex;
    grid-column: 2 / -1;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--line-soft);
}

.daily-global-actions input {
    width: min(440px, 100%);
    height: 32px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    outline: none;
    font-size: 8px;
}

.daily-global-actions > div {
    display: flex;
    gap: 6px;
}

.daily-global-review {
    display: grid;
    grid-column: 2 / -1;
    justify-items: end;
    gap: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--line-soft);
}

.daily-report-feed {
    display: grid;
    gap: 9px;
    margin-top: 14px;
}

.daily-report-card {
    display: grid;
    grid-template-columns: minmax(210px, .75fr) minmax(300px, 1.6fr) auto;
    align-items: start;
    gap: 15px;
    padding: 15px;
}

.daily-report-author {
    display: flex;
    align-items: center;
    gap: 9px;
}

.daily-report-author h3 {
    margin: 1px 0;
    color: var(--ink);
    font-size: 11px;
}

.daily-report-author small,
.daily-report-side small {
    color: var(--muted);
    font-size: 7px;
}

.daily-report-content > strong {
    color: var(--muted);
    font-size: 7px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.daily-report-content p {
    margin: 4px 0 0;
    color: #46534e;
    font-size: 8.5px;
    line-height: 1.55;
}

.daily-report-content > strong:not(:first-child) {
    display: block;
    margin-top: 10px;
}

.daily-report-content .daily-report-blockers {
    color: #9a541e;
}

.daily-report-task-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.daily-report-task-tags span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 6px;
    border-radius: 5px;
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: 7px;
}

.daily-report-side {
    display: grid;
    justify-items: end;
    gap: 6px;
}

.blocker-flag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #b05a17;
    font-size: 7px;
}

.daily-review-form {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-end;
    gap: 6px;
    padding-top: 11px;
    border-top: 1px solid var(--line-soft);
}

.daily-review-form input {
    min-width: 280px;
    height: 32px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    font: inherit;
    font-size: 8px;
}

.status.status-reviewed {
    background: #e7f7ef;
    color: #167353;
}

.status.status-needs-changes {
    background: #fff0df;
    color: #a95714;
}

.modal-context {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 8px;
}

.task-assignee-picker > p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 8px;
}

.task-assignee-picker > div {
    display: grid;
    max-height: 150px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    overflow-y: auto;
}

.task-assignee-picker label {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 5px 7px;
    border-radius: 7px;
    background: #f7faf8;
}

.task-assignee-picker label strong {
    overflow: hidden;
    color: #46534e;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workflow-hint.compact {
    min-height: 0;
    margin: 0;
}

@media (max-width: 1180px) {
    .planning-command {
        grid-template-columns: 1fr auto;
    }

    .planning-period {
        border-left: 0;
        padding-left: 0;
    }

    .planning-kpis {
        justify-content: flex-start;
        grid-column: 1 / -1;
    }

    .daily-report-layout {
        grid-template-columns: 1fr;
    }

    .daily-global-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .daily-global-row {
        grid-template-columns: minmax(210px, .8fr) 105px minmax(280px, 1.35fr);
    }

    .daily-global-risks {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
        padding-top: 10px;
        border-top: 1px solid var(--line-soft);
    }
}

@media (max-width: 760px) {
    .planning-command,
    .daily-overview,
    .daily-report-card {
        grid-template-columns: 1fr;
    }

    .planning-command > .button {
        justify-self: start;
    }

    .planning-week-navigation,
    .planning-kpis,
    .daily-overview,
    .daily-overview-metrics,
    .planning-projects-heading,
    .project-board-heading,
    .daily-global-heading,
    .daily-global-actions,
    .daily-report-heading,
    .daily-date-filter,
    .daily-review-form {
        align-items: stretch;
        flex-direction: column;
    }

    .planning-week-navigation {
        display: grid;
        grid-template-columns: auto 1fr auto;
    }

    .planning-kpis {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .daily-report-heading {
        align-items: stretch;
    }

    .daily-overview-metrics {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .project-card-grid {
        grid-template-columns: 1fr;
    }

    .daily-global-filters,
    .daily-global-row {
        grid-template-columns: 1fr;
    }

    .daily-global-risks {
        grid-column: auto;
        grid-template-columns: 1fr;
    }

    .daily-global-actions,
    .daily-global-review {
        grid-column: auto;
        justify-items: start;
    }

    .daily-global-actions input {
        width: 100%;
    }

    .daily-form-row,
    .task-assignee-picker > div {
        grid-template-columns: 1fr;
    }

    .daily-report-card {
        gap: 10px;
    }

    .daily-report-side {
        justify-items: start;
    }

    .daily-review-form input {
        min-width: 0;
        width: 100%;
    }
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--canvas);
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 82% 8%, rgba(18, 129, 94, .045), transparent 24rem),
        var(--canvas);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

svg {
    flex: 0 0 auto;
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    z-index: 40;
    inset: 0 auto 0 0;
    display: flex;
    width: var(--sidebar-width);
    flex-direction: column;
    background:
        radial-gradient(circle at 10% 0, rgba(37, 181, 132, .2), transparent 19rem),
        var(--sidebar);
    color: #fff;
    box-shadow: 6px 0 20px rgba(7, 39, 30, .08);
}

.brand {
    display: flex;
    min-height: 80px;
    align-items: center;
    gap: 11px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 12px;
    background: rgba(255, 255, 255, .12);
    box-shadow: inset 0 1px rgba(255, 255, 255, .15);
}

.brand-mark svg {
    width: 31px;
    fill: none;
    stroke: #9ce4c8;
    stroke-width: 2.2;
    stroke-linecap: round;
}

.brand div {
    min-width: 0;
}

.brand strong {
    display: block;
    letter-spacing: .11em;
    font-size: 15px;
    line-height: 1.2;
}

.brand span:last-child {
    color: rgba(255, 255, 255, .6);
    font-size: 10.5px;
}

.sidebar-close {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #fff;
}

.main-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .15) transparent;
}

.nav-section + .nav-section {
    margin-top: 19px;
}

.nav-label {
    display: block;
    padding: 0 12px 6px;
    color: rgba(255, 255, 255, .42);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.main-nav a {
    position: relative;
    display: flex;
    height: 42px;
    align-items: center;
    gap: 12px;
    margin: 2px 0;
    padding: 0 12px;
    border-radius: 9px;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, .065);
    color: #fff;
}

.main-nav a.active {
    background: rgba(104, 220, 175, .16);
    color: #baf3db;
    font-weight: 600;
}

.main-nav a.active::before {
    position: absolute;
    left: -12px;
    width: 3px;
    height: 23px;
    border-radius: 0 3px 3px 0;
    background: #65dab0;
    content: "";
}

.main-nav a span {
    flex: 1;
}

.main-nav a b {
    min-width: 20px;
    padding: 1px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .11);
    color: rgba(255, 255, 255, .78);
    font-size: 10px;
    text-align: center;
}

.sidebar-insight {
    margin: 4px 14px 14px;
    padding: 14px;
    border: 1px solid rgba(156, 228, 200, .14);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(30, 131, 96, .24), rgba(255, 255, 255, .035));
}

.sidebar-insight > span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #83dcb9;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.sidebar-insight strong {
    display: block;
    margin-top: 9px;
    font-size: 12px;
}

.sidebar-insight p {
    margin: 3px 0 9px;
    color: rgba(255, 255, 255, .55);
    font-size: 10.5px;
    line-height: 1.45;
}

.sidebar-insight button {
    padding: 0;
    border: 0;
    background: none;
    color: #a7ecd1;
    cursor: pointer;
    font-size: 10.5px;
    font-weight: 600;
}

.sidebar-user {
    position: relative;
    display: flex;
    min-height: 72px;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-top: 1px solid rgba(255, 255, 255, .09);
}

.sidebar-user > div {
    min-width: 0;
    flex: 1;
}

.sidebar-user > div strong,
.sidebar-user > div span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user > div strong {
    font-size: 11.5px;
}

.sidebar-user > div span {
    color: rgba(255, 255, 255, .47);
    font-size: 9.5px;
}

.sidebar-user .quiet {
    color: rgba(255, 255, 255, .55);
}

.app-main {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.topbar {
    position: sticky;
    z-index: 30;
    top: 0;
    display: flex;
    height: 64px;
    align-items: center;
    gap: 20px;
    padding: 0 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
}

.breadcrumb {
    display: flex;
    min-width: 195px;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 11px;
}

.breadcrumb strong {
    color: var(--text);
}

.global-search {
    display: flex;
    width: min(430px, 40vw);
    height: 36px;
    align-items: center;
    gap: 9px;
    margin: 0 auto;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8faf9;
    color: #89958f;
    cursor: pointer;
    font-size: 11px;
    text-align: left;
}

.global-search span {
    flex: 1;
}

kbd {
    padding: 2px 6px;
    border: 1px solid #dce3e0;
    border-bottom-width: 2px;
    border-radius: 5px;
    background: #fff;
    color: #8a9691;
    font-family: inherit;
    font-size: 9px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-menu {
    display: none;
}

.icon-button {
    display: inline-grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.icon-button:hover {
    border-color: #c9d5d0;
    background: #f7faf8;
}

.icon-button.mobile-menu {
    display: none;
}

.icon-button.quiet {
    width: 29px;
    height: 29px;
    border-color: transparent;
    background: transparent;
}

.topbar-icon {
    position: relative;
    border-color: transparent;
    background: transparent;
    color: #5f6e68;
}

.notification-button i {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 6px;
    height: 6px;
    border: 1.5px solid #fff;
    border-radius: 50%;
    background: #e34f4f;
}

.role-switcher {
    position: relative;
}

.role-switcher > button {
    display: flex;
    min-width: 175px;
    height: 48px;
    align-items: center;
    gap: 9px;
    padding: 5px 7px;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.role-copy {
    min-width: 0;
    flex: 1;
}

.role-copy strong,
.role-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.role-copy strong {
    color: var(--ink);
    font-size: 11px;
}

.role-copy small {
    color: var(--muted);
    font-size: 9.5px;
}

.role-menu {
    position: absolute;
    top: 52px;
    right: 0;
    display: none;
    width: 270px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-md);
}

.role-menu.open {
    display: block;
    animation: pop-in .15s ease;
}

.role-menu > span {
    display: block;
    padding: 7px 9px 5px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.role-menu a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px;
    border-radius: 8px;
}

.role-menu a:hover,
.role-menu a.active {
    background: var(--brand-50);
}

.role-menu a > div {
    flex: 1;
}

.role-menu strong,
.role-menu small {
    display: block;
}

.role-menu strong {
    color: var(--ink);
    font-size: 11px;
}

.role-menu small {
    color: var(--muted);
    font-size: 9.5px;
}

.content {
    width: min(1540px, 100%);
    margin: 0 auto;
    padding: 27px 30px 48px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 23px;
}

.eyebrow,
.section-kicker {
    margin: 0 0 4px;
    color: var(--brand-600);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.page-heading h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(25px, 2.2vw, 31px);
    font-weight: 680;
    letter-spacing: -.035em;
    line-height: 1.18;
}

.page-description {
    max-width: 700px;
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.page-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 9px;
}

.button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    border-color: var(--brand-700);
    background: var(--brand-700);
    box-shadow: 0 3px 8px rgba(15, 107, 79, .16);
    color: #fff;
}

.button-primary:hover {
    background: var(--brand-800);
}

.button-secondary {
    border-color: #dce4e0;
    background: #fff;
    color: #3f5149;
}

.button-ghost {
    border-color: transparent;
    background: var(--brand-50);
    color: var(--brand-700);
}

.button-danger {
    border-color: #f0caca;
    background: #fff;
    color: var(--red);
}

.button-remote {
    border: 1px solid #b9d5f2;
    background: #edf6ff;
    color: #176cce;
}

.button-remote:hover {
    border-color: #8dbce9;
    background: #e2f0ff;
}

.button-small {
    min-height: 29px;
    padding: 0 10px;
    font-size: 10px;
}

.button-block {
    width: 100%;
}

.full-width-action .button {
    width: 100%;
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 17px;
}

.metric-card {
    display: flex;
    min-height: 106px;
    align-items: flex-start;
    gap: 12px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.metric-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 10px;
}

.tone-blue {
    background: var(--blue-100);
    color: var(--blue);
}

.tone-green {
    background: var(--green-100);
    color: var(--green);
}

.tone-amber {
    background: var(--amber-100);
    color: var(--amber);
}

.tone-purple {
    background: var(--purple-100);
    color: var(--purple);
}

.tone-slate {
    background: #eff2f4;
    color: var(--slate);
}

.tone-bg-blue { background: var(--blue) !important; }
.tone-bg-green { background: var(--green) !important; }
.tone-bg-amber { background: var(--amber) !important; }
.tone-bg-purple { background: var(--purple) !important; }
.tone-bg-slate { background: var(--slate) !important; }

.metric-copy {
    min-width: 0;
    flex: 1;
}

.metric-copy > span {
    display: block;
    color: var(--muted);
    font-size: 10.5px;
}

.metric-copy strong {
    display: block;
    margin: 3px 0 1px;
    color: var(--ink);
    font-size: 23px;
    font-weight: 680;
    letter-spacing: -.035em;
}

.metric-copy small {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #75837d;
    font-size: 9.5px;
}

.trend-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.metric-card > .icon-button {
    margin: -2px -5px 0 0;
    color: #a3ada9;
}

.dashboard-grid,
.content-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-grid > *,
.content-grid > * {
    min-width: 0;
}

.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

.dashboard-grid > .card,
.content-grid > .card {
    padding: 19px;
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.card-header h2 {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    font-weight: 650;
    letter-spacing: -.012em;
}

.card-header > div {
    min-width: 0;
}

.select-control {
    height: 33px;
    padding: 0 29px 0 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    outline: 0;
    background: #fff;
    color: #56655f;
    font-size: 10px;
}

.attendance-chart {
    display: flex;
    min-height: 215px;
    align-items: stretch;
    gap: 22px;
    padding-top: 5px;
}

.chart-summary {
    display: flex;
    width: 150px;
    flex-direction: column;
    justify-content: center;
    padding: 0 7px;
}

.chart-summary strong {
    color: var(--ink);
    font-size: 29px;
    letter-spacing: -.04em;
}

.chart-summary > span {
    color: var(--muted);
    font-size: 10px;
}

.mini-legend {
    display: grid;
    gap: 6px;
    margin-top: 24px;
}

.mini-legend span,
.calendar-legend span,
.planning-summary span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 9px;
}

.legend-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
}

.legend-dot.green { background: var(--green); }
.legend-dot.blue { background: var(--blue); }
.legend-dot.amber { background: var(--amber); }
.legend-dot.purple { background: var(--purple); }
.legend-dot.slate { background: var(--slate); }

.bar-chart {
    position: relative;
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: stretch;
    justify-content: space-around;
    gap: 10px;
    padding-top: 5px;
    background-image: repeating-linear-gradient(to bottom, var(--line-soft) 0, var(--line-soft) 1px, transparent 1px, transparent 25%);
}

.bar-column {
    display: flex;
    min-width: 26px;
    flex: 1;
    flex-direction: column;
    align-items: center;
}

.bar-stack {
    display: flex;
    width: min(28px, 60%);
    flex: 1;
    align-items: flex-end;
    gap: 3px;
}

.bar-stack i {
    display: block;
    min-height: 2px;
    flex: 1;
    border-radius: 4px 4px 1px 1px;
}

.bar-main {
    background: linear-gradient(to top, var(--brand-700), #2eb889);
}

.bar-secondary {
    background: #7db7ff;
}

.bar-column > span {
    margin-top: 8px;
    color: var(--muted);
    font-size: 9px;
}

.attendance-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px -19px -19px;
    padding: 11px 19px;
    border-top: 1px solid var(--line-soft);
    background: #fbfcfb;
    border-radius: 0 0 var(--radius) var(--radius);
}

.attendance-footer > span,
.attendance-footer a,
.text-link,
.card-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9.5px;
}

.attendance-footer > span {
    color: var(--brand-700);
}

.attendance-footer a,
.text-link,
.card-link {
    color: var(--brand-700);
    font-weight: 600;
}

.count-pill {
    padding: 4px 8px;
    border-radius: 20px;
    background: #f0f4f2;
    color: #68776f;
    font-size: 9px;
}

.approval-list {
    min-height: 213px;
}

.approval-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-soft);
}

.approval-item > div {
    min-width: 0;
    flex: 1;
}

.approval-item strong,
.approval-item span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.approval-item strong {
    color: var(--ink);
    font-size: 10.5px;
}

.approval-item div span {
    color: var(--muted);
    font-size: 9px;
}

.card-link {
    justify-content: center;
    margin: 8px -19px -19px;
    padding: 11px;
    border-top: 1px solid var(--line-soft);
}

.avatar {
    position: relative;
    display: inline-flex;
    width: 35px;
    height: 35px;
    min-width: 35px;
    min-height: 35px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    background: linear-gradient(145deg, #4fae8d, #1b7257);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    vertical-align: middle;
}

.avatar-sm {
    width: 31px;
    height: 31px;
    min-width: 31px;
    min-height: 31px;
    border-width: 0;
    font-size: 9px;
}

.avatar-xs {
    width: 25px;
    height: 25px;
    min-width: 25px;
    min-height: 25px;
    border-width: 0;
    font-size: 7.5px;
}

.avatar-xl {
    width: 68px;
    height: 68px;
    min-width: 68px;
    min-height: 68px;
    font-size: 17px;
}

.avatar-blue { background: linear-gradient(145deg, #5b9fff, #3678dd); }
.avatar-teal { background: linear-gradient(145deg, #43bba9, #238776); }
.avatar-violet { background: linear-gradient(145deg, #9a7be9, #7052c5); }
.avatar-orange { background: linear-gradient(145deg, #e8a059, #ca7133); }
.avatar-pink { background: linear-gradient(145deg, #e887ad, #c95882); }
.avatar-green { background: linear-gradient(145deg, #58b979, #26804a); }

.presence {
    position: absolute;
    right: -1px;
    bottom: 0;
    width: 8px;
    height: 8px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--green);
}

.plan-list {
    display: grid;
    gap: 2px;
}

.plan-row {
    display: flex;
    min-height: 49px;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--line-soft);
}

.task-check {
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    padding: 0;
    border: 1px solid #cbd7d1;
    border-radius: 6px;
    background: #fff;
    color: transparent;
    cursor: pointer;
}

.task-check.checked {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

.plan-copy {
    min-width: 0;
    flex: 1;
}

.plan-copy strong,
.plan-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plan-copy strong {
    color: var(--ink);
    font-size: 10.5px;
}

.plan-copy span {
    color: var(--muted);
    font-size: 8.5px;
}

.progress-compact {
    width: 66px;
    height: 4px;
    overflow: hidden;
    border-radius: 5px;
    background: #edf1ef;
}

.progress-compact span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--brand-600);
}

.activity-list {
    display: grid;
    gap: 2px;
}

.activity-item {
    display: flex;
    min-height: 51px;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--line-soft);
}

.activity-icon {
    display: grid;
    width: 29px;
    height: 29px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 8px;
}

.activity-item strong,
.activity-item span {
    display: block;
}

.activity-item strong {
    color: var(--ink);
    font-size: 10px;
    font-weight: 600;
}

.activity-item span {
    color: var(--muted);
    font-size: 8.5px;
}

.availability-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.availability-person {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 9px;
    padding: 10px;
    border: 1px solid var(--line-soft);
    border-radius: 9px;
    background: #fcfdfc;
}

.availability-person > div {
    min-width: 0;
}

.availability-person strong,
.availability-person div span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.availability-person strong {
    color: var(--ink);
    font-size: 9.5px;
}

.availability-person div span {
    color: var(--muted);
    font-size: 8px;
}

.availability-person > .status {
    grid-column: 2;
    width: fit-content;
}

.status {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 20px;
    background: #eff3f1;
    color: #66736e;
    font-size: 8px;
    font-weight: 600;
    white-space: nowrap;
}

.status::before {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.status-active,
.status-on-time {
    background: var(--green-100);
    color: #168454;
}

.status-on-leave,
.status-pending-hr,
.status-pending-manager,
.status-pending-admin {
    background: var(--amber-100);
    color: #b36a00;
}

.status-probation,
.status-remote,
.status-manager-approved {
    background: var(--blue-100);
    color: #176cce;
}

.status-in-preparation {
    background: var(--purple-100);
    color: var(--purple);
}

.clock-card {
    text-align: center;
}

.clock-ring {
    display: flex;
    width: 137px;
    height: 137px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 4px auto 16px;
    border: 8px solid #e4f3ed;
    border-top-color: var(--brand-600);
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px #d4e5df;
}

.clock-ring strong {
    color: var(--ink);
    font-size: 24px;
    letter-spacing: -.03em;
}

.clock-ring span {
    color: var(--muted);
    font-size: 9px;
}

.clock-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 14px;
    border-top: 1px solid var(--line-soft);
}

.clock-metrics > span {
    padding-top: 11px;
}

.clock-metrics > span + span {
    border-left: 1px solid var(--line-soft);
}

.clock-metrics small,
.clock-metrics strong {
    display: block;
}

.clock-metrics small {
    color: var(--muted);
    font-size: 8px;
}

.clock-metrics strong {
    color: var(--ink);
    font-size: 10px;
}

.directory-toolbar,
.planning-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 15px;
    padding: 13px;
}

.search-field {
    display: flex;
    width: 240px;
    height: 34px;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: #83908a;
}

.search-field.wide {
    width: min(430px, 43%);
}

.search-field input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 10.5px;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-card {
    overflow: hidden;
}

.table-summary {
    display: flex;
    min-height: 59px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--line);
}

.table-summary strong,
.table-summary span {
    display: block;
}

.table-summary strong {
    color: var(--ink);
    font-size: 11px;
}

.table-summary span {
    color: var(--muted);
    font-size: 9px;
}

.view-switch,
.segmented {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #f6f8f7;
}

.view-switch button,
.segmented button {
    min-width: 33px;
    height: 26px;
    padding: 0 9px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 9px;
}

.view-switch button.active,
.segmented button.active {
    background: #fff;
    box-shadow: 0 1px 3px rgba(27, 49, 41, .1);
    color: var(--brand-700);
    font-weight: 600;
}

.table-scroll {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    height: 38px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    background: #f9fbfa;
    color: #7c8984;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.data-table td {
    height: 62px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--line-soft);
    color: #51615a;
    font-size: 10px;
}

.data-table tbody tr {
    transition: background .12s ease;
}

.data-table tbody tr:hover {
    background: #fafcfb;
}

.person-cell {
    display: flex;
    min-width: 185px;
    align-items: center;
    gap: 9px;
}

.person-cell > div {
    min-width: 0;
}

.person-cell > div strong,
.person-cell > div span {
    display: block;
}

.person-cell > div strong {
    color: var(--ink);
    font-size: 10.5px;
}

.person-cell > div span,
.cell-subtitle {
    color: var(--muted);
    font-size: 8.5px;
}

.pagination {
    display: flex;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    color: var(--muted);
    font-size: 9px;
}

.pagination > div {
    display: flex;
    gap: 4px;
}

.pagination button {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 9px;
}

.pagination button.active {
    border-color: var(--brand-600);
    background: var(--brand-600);
    color: #fff;
}

.pagination button:first-child svg {
    transform: rotate(180deg);
}

.timeline-day {
    margin: 31px 8px 22px;
}

.timeline-head {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 8px;
}

.timeline-track {
    position: relative;
    height: 50px;
    margin-top: 8px;
    border-radius: 7px;
    background: repeating-linear-gradient(to right, #eef2f0 0, #eef2f0 1px, transparent 1px, transparent 25%), #f8faf9;
}

.timeline-track > i {
    position: absolute;
    top: 17px;
    height: 15px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--brand-600), #45bc92);
}

.timeline-track > b {
    position: absolute;
    top: -9px;
    color: var(--brand-700);
    font-size: 8px;
    transform: translateX(-50%);
}

.timeline-track > em {
    position: absolute;
    top: 17px;
    z-index: 2;
    height: 15px;
    border-radius: 10px;
    background: #d9e5e0;
    color: #697770;
    font-size: 7px;
    font-style: normal;
    line-height: 15px;
    text-align: center;
}

.compact-table {
    margin: 12px -19px -19px;
    border-top: 1px solid var(--line);
}

.schedule-block {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin: 21px 0;
    padding: 15px;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    background: #fbfcfb;
}

.schedule-block > i {
    width: 3px;
    border-radius: 3px;
    background: var(--brand-600);
}

.schedule-block small,
.schedule-block strong,
.schedule-block span {
    display: block;
}

.schedule-block small {
    color: var(--brand-600);
    font-size: 8px;
    font-weight: 700;
}

.schedule-block strong {
    margin: 3px 0;
    color: var(--ink);
    font-size: 15px;
}

.schedule-block span {
    color: var(--muted);
    font-size: 9px;
}

.detail-list {
    margin-bottom: 18px;
}

.detail-list > div {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 10px;
}

.detail-list span {
    color: var(--muted);
}

.detail-list strong {
    color: var(--ink);
}

.detail-list strong.positive {
    color: var(--green);
}

.detail-list strong.remote {
    color: #176cce;
}

.attendance-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.attendance-choice-grid form {
    min-width: 0;
}

.leave-balance-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.balance-card {
    padding: 16px;
}

.balance-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.balance-top span {
    color: var(--muted);
    font-size: 10px;
}

.balance-top strong {
    color: var(--ink);
    font-size: 20px;
    letter-spacing: -.03em;
}

.balance-top small {
    font-size: 9px;
    font-weight: 500;
}

.balance-bar {
    height: 5px;
    margin: 16px 0 8px;
    overflow: hidden;
    border-radius: 6px;
    background: #eef2f0;
}

.balance-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.balance-card > small {
    color: var(--muted);
    font-size: 8.5px;
}

.calendar-nav {
    display: flex;
    gap: 4px;
}

.calendar-nav button {
    display: grid;
    min-width: 28px;
    height: 27px;
    place-items: center;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    font-size: 8px;
}

.calendar-nav button:first-child svg {
    transform: rotate(180deg);
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.weekday {
    padding-bottom: 8px;
    color: var(--muted);
    font-size: 7.5px;
    font-weight: 700;
    text-align: center;
}

.month-day {
    position: relative;
    height: 45px;
    border-top: 1px solid var(--line-soft);
    border-left: 1px solid var(--line-soft);
    color: #55645d;
    font-size: 8px;
}

.month-day:nth-of-type(7n) {
    border-right: 1px solid var(--line-soft);
}

.month-day b {
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    margin: 3px auto;
    border-radius: 50%;
}

.month-day.today b {
    background: var(--brand-700);
    color: #fff;
}

.month-day.muted {
    color: #b8c0bc;
}

.leave-event {
    display: block;
    width: 65%;
    height: 3px;
    margin: 1px auto;
    border-radius: 3px;
}

.leave-event.blue { background: #77acfa; }
.leave-event.green { background: #79c9aa; }

.calendar-legend {
    display: flex;
    gap: 18px;
    margin-top: 13px;
}

.request-mini-list {
    display: grid;
    gap: 2px;
}

.request-mini {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 9px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-soft);
}

.request-mini > div {
    min-width: 0;
}

.request-mini strong,
.request-mini div span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.request-mini strong {
    color: var(--ink);
    font-size: 9.5px;
}

.request-mini div span {
    color: var(--muted);
    font-size: 8px;
}

.request-mini > .status {
    grid-column: 2;
}

.planning-toolbar {
    min-height: 62px;
}

.week-picker {
    display: flex;
    align-items: center;
    gap: 11px;
}

.week-picker button {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    cursor: pointer;
}

.week-picker button:first-child svg {
    transform: rotate(180deg);
}

.week-picker small,
.week-picker strong {
    display: block;
}

.week-picker small {
    color: var(--brand-600);
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: .08em;
}

.week-picker strong {
    color: var(--ink);
    font-size: 11px;
}

.planning-summary {
    display: flex;
    gap: 16px;
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(4, minmax(250px, 1fr));
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.kanban-column {
    min-height: 570px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f0f3f1;
}

.kanban-heading {
    display: flex;
    height: 38px;
    align-items: center;
    justify-content: space-between;
    padding: 0 3px 8px;
}

.kanban-heading > div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.kanban-heading strong {
    color: var(--ink);
    font-size: 10px;
}

.kanban-heading span {
    display: grid;
    min-width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 9px;
    background: #dfe5e2;
    color: var(--muted);
    font-size: 8px;
}

.kanban-items {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 510px;
}

.kanban-items.drag-over {
    border-radius: 10px;
    outline: 2px dashed #7bc4a8;
    outline-offset: 2px;
}

.task-card {
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(25, 52, 42, .04);
    cursor: grab;
}

.task-card.dragging {
    opacity: .5;
}

.task-meta,
.task-card footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.priority {
    padding: 3px 6px;
    border-radius: 5px;
    font-size: 7.5px;
    font-weight: 700;
}

.priority-high {
    background: var(--red-100);
    color: var(--red);
}

.priority-medium {
    background: var(--amber-100);
    color: var(--amber);
}

.priority-low {
    background: var(--blue-100);
    color: var(--blue);
}

.task-card h3 {
    margin: 10px 0 4px;
    color: var(--ink);
    font-size: 11px;
    font-weight: 620;
    line-height: 1.4;
}

.task-card p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 8.5px;
}

.task-card footer {
    padding-top: 10px;
    border-top: 1px solid var(--line-soft);
}

.task-card footer > span:last-child {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 8px;
}

.task-card footer .due-today {
    color: var(--red);
}

.progress-line {
    position: relative;
    height: 4px;
    margin: 13px 28px 13px 0;
    border-radius: 5px;
    background: #ebf0ed;
}

.progress-line i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--brand-600);
}

.progress-line span {
    position: absolute;
    top: -5px;
    left: calc(100% + 7px);
    color: var(--muted);
    font-size: 7.5px;
}

.add-task {
    display: flex;
    height: 34px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px dashed #c8d3ce;
    border-radius: 8px;
    background: rgba(255, 255, 255, .45);
    color: #6d7b75;
    cursor: pointer;
    font-size: 9px;
}

.request-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.request-tabs button {
    position: relative;
    height: 38px;
    padding: 0 15px;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 10px;
}

.request-tabs button.active {
    color: var(--brand-700);
    font-weight: 650;
}

.request-tabs button.active::after {
    position: absolute;
    right: 12px;
    bottom: -1px;
    left: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-600);
    content: "";
}

.request-tabs span {
    margin-left: 5px;
    padding: 2px 5px;
    border-radius: 8px;
    background: #e9efec;
    font-size: 7.5px;
}

.goal-list {
    display: grid;
}

.goal-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 11px;
    min-height: 67px;
    border-bottom: 1px solid var(--line-soft);
}

.goal-row > div {
    min-width: 0;
}

.goal-row strong,
.goal-row span {
    display: block;
}

.goal-row strong {
    color: var(--ink);
    font-size: 10px;
}

.goal-row span {
    color: var(--muted);
    font-size: 8px;
}

.goal-row > b {
    color: var(--brand-700);
    font-size: 10px;
}

.goal-progress {
    height: 4px;
    margin-top: 7px;
    border-radius: 4px;
    background: #ebf0ed;
}

.goal-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-700), #4ac195);
}

.donut-wrap {
    display: grid;
    min-height: 176px;
    place-items: center;
}

.donut {
    display: flex;
    width: 138px;
    height: 138px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: radial-gradient(circle closest-side, white 75%, transparent 76% 99%), conic-gradient(var(--brand-600) calc(var(--value) * 1%), #e9efec 0);
}

.donut strong {
    color: var(--ink);
    font-size: 25px;
}

.donut span {
    color: var(--muted);
    font-size: 8px;
}

.document-layout,
.inbox-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 15px;
}

.document-folders,
.inbox-folders {
    padding: 12px;
}

.document-folders h3 {
    margin: 4px 7px 10px;
    color: var(--ink);
    font-size: 11px;
}

.document-folders button,
.inbox-folders button {
    display: flex;
    width: 100%;
    height: 39px;
    align-items: center;
    gap: 9px;
    padding: 0 9px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #65736d;
    cursor: pointer;
    font-size: 9.5px;
    text-align: left;
}

.document-folders button.active,
.inbox-folders button.active {
    background: var(--brand-50);
    color: var(--brand-700);
    font-weight: 600;
}

.document-folders button span,
.inbox-folders button span {
    flex: 1;
}

.document-folders button b,
.inbox-folders button b {
    font-size: 8px;
}

.document-content {
    overflow: hidden;
}

.document-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    align-items: center;
    gap: 12px;
    min-height: 67px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--line-soft);
}

.file-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 9px;
}

.document-row strong,
.document-row span {
    display: block;
}

.document-row strong {
    color: var(--ink);
    font-size: 10px;
}

.document-row span,
.document-row > small {
    color: var(--muted);
    font-size: 8.5px;
}

.workflow-steps {
    display: flex;
    margin: 30px 0 34px;
}

.workflow-step {
    position: relative;
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    gap: 8px;
}

.workflow-step:not(:last-child)::after {
    position: absolute;
    z-index: 0;
    top: 16px;
    right: 8px;
    left: 34px;
    height: 2px;
    background: #e4eae7;
    content: "";
}

.workflow-step i {
    z-index: 1;
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    border: 2px solid #e0e6e3;
    border-radius: 50%;
    background: #fff;
    color: #8b9792;
    font-size: 9px;
    font-style: normal;
}

.workflow-step.complete i {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

.workflow-step.active i {
    border-color: var(--blue);
    color: var(--blue);
}

.workflow-step > div {
    z-index: 1;
    padding-right: 6px;
    background: #fff;
}

.workflow-step strong,
.workflow-step span {
    display: block;
}

.workflow-step strong {
    color: var(--ink);
    font-size: 9px;
}

.workflow-step span {
    color: var(--muted);
    font-size: 7.5px;
}

.payroll-alert {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px;
    border: 1px solid #f3dfad;
    border-radius: 9px;
    background: #fffbf1;
}

.payroll-alert > div:nth-child(2) {
    flex: 1;
}

.payroll-alert strong,
.payroll-alert span {
    display: block;
}

.payroll-alert strong {
    color: #694a0c;
    font-size: 10px;
}

.payroll-alert span {
    color: #93752d;
    font-size: 8.5px;
}

.spark-bars {
    display: flex;
    height: 240px;
    align-items: flex-end;
    justify-content: space-around;
    gap: 10px;
    padding: 20px 8px 2px;
    background-image: repeating-linear-gradient(to bottom, var(--line-soft) 0, var(--line-soft) 1px, transparent 1px, transparent 25%);
}

.spark-bars > div {
    display: flex;
    height: 100%;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.spark-bars i {
    width: min(27px, 70%);
    border-radius: 5px 5px 1px 1px;
    background: linear-gradient(to top, var(--brand-700), #4ac195);
}

.spark-bars span {
    margin-top: 7px;
    color: var(--muted);
    font-size: 8px;
}

.line-chart {
    position: relative;
    height: 260px;
    padding: 8px 0 25px 30px;
}

.line-chart svg {
    width: 100%;
    height: 200px;
}

.line-grid {
    position: absolute;
    inset: 8px 0 33px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-image: repeating-linear-gradient(to bottom, var(--line-soft) 0, var(--line-soft) 1px, transparent 1px, transparent 33.33%);
}

.line-grid span {
    color: var(--muted);
    font-size: 7px;
    transform: translateY(-50%);
}

.chart-months {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 7px;
}

.department-bars {
    display: grid;
    gap: 21px;
    padding-top: 17px;
}

.department-bars > div {
    display: grid;
    grid-template-columns: 80px 1fr 24px;
    align-items: center;
    gap: 9px;
}

.department-bars span,
.department-bars strong {
    font-size: 9px;
}

.department-bars span {
    color: var(--muted);
}

.department-bars strong {
    color: var(--ink);
    text-align: right;
}

.department-bars div div {
    height: 7px;
    overflow: hidden;
    border-radius: 6px;
    background: #edf1ef;
}

.department-bars i {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.report-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.report-grid button {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    padding: 11px;
    border: 1px solid var(--line-soft);
    border-radius: 9px;
    background: #fbfcfb;
    cursor: pointer;
    text-align: left;
}

.report-grid button > div {
    min-width: 0;
    flex: 1;
}

.report-grid strong,
.report-grid small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-grid strong {
    color: var(--ink);
    font-size: 9.5px;
}

.report-grid small {
    color: var(--muted);
    font-size: 8px;
}

.inbox-list {
    overflow: hidden;
}

.inbox-list article {
    display: flex;
    min-height: 91px;
    align-items: flex-start;
    gap: 11px;
    padding: 17px;
    border-bottom: 1px solid var(--line-soft);
}

.inbox-list article.unread {
    background: #f7fcf9;
}

.inbox-list article.unread::before {
    width: 5px;
    height: 5px;
    flex: 0 0 auto;
    margin-top: 12px;
    border-radius: 50%;
    background: var(--brand-600);
    content: "";
}

.inbox-list article > div:nth-of-type(2) {
    min-width: 0;
    flex: 1;
}

.inbox-list strong {
    color: var(--ink);
    font-size: 10.5px;
}

.inbox-list p {
    margin: 4px 0;
    color: #697870;
    font-size: 9px;
}

.inbox-list span {
    color: var(--muted);
    font-size: 8px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.settings-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 13px;
    padding: 17px;
    cursor: pointer;
    text-align: left;
}

.settings-card:hover {
    border-color: #cbd9d3;
    box-shadow: 0 6px 20px rgba(16, 39, 31, .07);
}

.settings-card h3 {
    margin: 0;
    color: var(--ink);
    font-size: 12px;
}

.settings-card p {
    margin: 3px 0 10px;
    color: var(--muted);
    font-size: 9px;
}

.settings-card small {
    color: var(--brand-700);
    font-size: 8.5px;
    font-weight: 600;
}

.modal {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.open {
    display: flex;
}

.modal-backdrop,
.command-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 27, 21, .49);
    backdrop-filter: blur(3px);
}

.modal-dialog {
    position: relative;
    width: min(500px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 22px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(6, 30, 22, .23);
    animation: modal-in .18s ease;
}

.modal-wide {
    width: min(680px, 100%);
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
    color: var(--ink);
    font-size: 19px;
}

.form-stack {
    display: grid;
    gap: 14px;
}

.form-stack label {
    display: grid;
    gap: 6px;
}

.form-stack label > span {
    color: #53635c;
    font-size: 9.5px;
    font-weight: 600;
}

.form-stack input,
.form-stack select,
.form-stack textarea {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #d9e1dd;
    border-radius: 8px;
    outline: 0;
    background: #fff;
    color: var(--text);
    font-size: 10.5px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form-stack textarea {
    resize: vertical;
}

.form-stack input:focus,
.form-stack select:focus,
.form-stack textarea:focus {
    border-color: #51a98a;
    box-shadow: 0 0 0 3px rgba(18, 129, 94, .1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.workflow-hint {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px;
    border: 1px solid #cde9dc;
    border-radius: 9px;
    background: var(--brand-50);
    color: var(--brand-700);
}

.workflow-hint strong,
.workflow-hint span {
    display: block;
}

.workflow-hint strong {
    font-size: 9.5px;
}

.workflow-hint span {
    margin-top: 1px;
    color: #5c7d70;
    font-size: 8.5px;
}

.modal-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
}

.stepper {
    display: flex;
    align-items: center;
    margin: -3px 0 22px;
}

.stepper span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 9px;
}

.stepper span.active {
    color: var(--brand-700);
    font-weight: 600;
}

.stepper i {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border: 1px solid #d8e0dc;
    border-radius: 50%;
    background: #fff;
    font-size: 8px;
    font-style: normal;
}

.stepper .active i {
    border-color: var(--brand-600);
    background: var(--brand-600);
    color: #fff;
}

.stepper b {
    height: 1px;
    flex: 1;
    margin: 0 8px;
    background: var(--line);
}

.approval-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--line);
}

.approval-profile > div {
    flex: 1;
}

.approval-profile strong,
.approval-profile div span {
    display: block;
}

.approval-profile strong {
    color: var(--ink);
    font-size: 11px;
}

.approval-profile div span {
    color: var(--muted);
    font-size: 9px;
}

.approval-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 17px 0;
}

.approval-facts > div {
    padding: 11px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #fbfcfb;
}

.approval-facts span,
.approval-facts strong {
    display: block;
}

.approval-facts span {
    color: var(--muted);
    font-size: 8px;
}

.approval-facts strong {
    margin-top: 2px;
    color: var(--ink);
    font-size: 10px;
}

.profile-drawer {
    position: fixed;
    z-index: 110;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(400px, 100%);
    padding: 18px;
    overflow-y: auto;
    background: #fff;
    box-shadow: -20px 0 60px rgba(7, 35, 26, .15);
    transform: translateX(105%);
    transition: transform .22s ease;
}

.profile-drawer.open {
    transform: translateX(0);
}

.drawer-scrim {
    position: fixed;
    z-index: 105;
    inset: 0;
    display: none;
    background: rgba(8, 27, 21, .38);
}

.drawer-scrim.open {
    display: block;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--ink);
    font-size: 11px;
    font-weight: 650;
}

.drawer-profile {
    padding: 30px 0 25px;
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.drawer-profile h2 {
    margin: 11px 0 1px;
    color: var(--ink);
    font-size: 18px;
}

.drawer-profile p {
    margin: 0 0 9px;
    color: var(--muted);
    font-size: 10px;
}

.drawer-profile .status {
    margin: auto;
}

.drawer-section {
    padding: 19px 0 4px;
    border-bottom: 1px solid var(--line);
}

.drawer-section h3 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 11px;
}

.drawer-section a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 0;
    color: #55665e;
    font-size: 9.5px;
}

.drawer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 19px;
}

.command-palette {
    position: fixed;
    z-index: 130;
    inset: 0;
    display: none;
    justify-content: center;
    padding: 12vh 20px 20px;
}

.command-palette.open {
    display: flex;
}

.command-dialog {
    position: relative;
    width: min(580px, 100%);
    height: fit-content;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 25px 90px rgba(4, 26, 18, .3);
    animation: modal-in .16s ease;
}

.command-dialog > label {
    display: flex;
    height: 57px;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.command-dialog input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    color: var(--ink);
    font-size: 12px;
}

.command-results {
    padding: 10px;
}

.command-results > span {
    display: block;
    padding: 5px 8px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .1em;
}

.command-results a,
.command-results button {
    display: flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    gap: 11px;
    padding: 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--brand-700);
    cursor: pointer;
    text-align: left;
}

.command-results a:hover,
.command-results button:hover {
    background: var(--brand-50);
}

.command-results div {
    min-width: 0;
    flex: 1;
}

.command-results strong,
.command-results small {
    display: block;
}

.command-results strong {
    color: var(--ink);
    font-size: 10.5px;
}

.command-results small {
    color: var(--muted);
    font-size: 8.5px;
}

.toast-stack {
    position: fixed;
    z-index: 160;
    right: 20px;
    bottom: 20px;
    display: grid;
    width: min(350px, calc(100vw - 40px));
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 13px;
    border: 1px solid #cde8db;
    border-radius: 10px;
    background: #f4fcf8;
    box-shadow: var(--shadow-md);
    color: var(--brand-700);
    font-size: 9.5px;
    animation: toast-in .22s ease;
}

.toast span {
    flex: 1;
}

.toast button {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.toast-warning {
    border-color: #f0dcaa;
    background: #fffbef;
    color: #98650c;
}

.sidebar-scrim {
    display: none;
}

body.modal-open {
    overflow: hidden;
}

[hidden] {
    display: none !important;
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(8px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes pop-in {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
    :root {
        --sidebar-width: 230px;
    }

    .content {
        padding-inline: 21px;
    }

    .breadcrumb {
        min-width: 0;
    }

    .global-search {
        width: min(350px, 35vw);
    }

    .availability-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .availability-person:nth-child(n+4) {
        display: none;
    }

    .report-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 960px) {
    :root {
        --sidebar-width: 264px;
    }

    .sidebar {
        transform: translateX(-105%);
        transition: transform .22s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: grid;
    }

    .sidebar-scrim {
        position: fixed;
        z-index: 35;
        inset: 0;
        background: rgba(7, 28, 21, .35);
    }

    .sidebar-scrim.open {
        display: block;
    }

    .app-main {
        margin-left: 0;
    }

    .icon-button.mobile-menu {
        display: grid;
    }

    .breadcrumb {
        display: none;
    }

    .topbar {
        padding-inline: 18px;
    }

    .global-search {
        width: min(420px, 48vw);
        margin-left: 0;
    }

    .metric-grid,
    .leave-balance-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .span-7,
    .span-8 {
        grid-column: span 12;
    }

    .span-4,
    .span-5 {
        grid-column: span 6;
    }

    .planning-summary {
        display: none;
    }
}

@media (max-width: 700px) {
    .topbar {
        height: 57px;
        gap: 8px;
        padding-inline: 12px;
    }

    .global-search {
        min-width: 0;
        flex: 1;
    }

    .global-search span,
    .global-search kbd,
    .role-copy,
    .role-switcher > button > svg,
    .topbar-actions > .topbar-icon:first-child {
        display: none;
    }

    .role-switcher > button {
        min-width: auto;
        height: 42px;
        padding: 4px;
    }

    .role-menu {
        position: fixed;
        top: 54px;
        right: 8px;
    }

    .content {
        padding: 20px 13px 40px;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 18px;
    }

    .page-actions {
        width: 100%;
    }

    .page-actions .button {
        flex: 1;
    }

    .card-header {
        flex-wrap: wrap;
    }

    .card-header .select-control {
        max-width: 100%;
    }

    .metric-grid,
    .leave-balance-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .dashboard-grid,
    .content-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .metric-card {
        min-height: 88px;
        padding: 13px;
    }

    .metric-copy strong {
        font-size: 20px;
    }

    .span-4,
    .span-5,
    .span-7,
    .span-8,
    .span-12 {
        grid-column: 1;
    }

    .dashboard-grid,
    .content-grid {
        gap: 11px;
    }

    .attendance-chart {
        min-height: 200px;
        flex-direction: column;
    }

    .attendance-overview {
        overflow: hidden;
    }

    .attendance-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .chart-summary {
        width: auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 8px;
    }

    .chart-summary strong {
        font-size: 24px;
    }

    .mini-legend {
        width: 100%;
        grid-template-columns: auto auto;
        justify-content: start;
        margin-top: 2px;
    }

    .bar-chart {
        min-height: 130px;
    }

    .availability-grid {
        grid-template-columns: 1fr;
    }

    .availability-person:nth-child(n+4) {
        display: grid;
    }

    .directory-toolbar,
    .planning-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .search-field.wide,
    .search-field {
        width: 100%;
    }

    .toolbar-actions {
        overflow-x: auto;
    }

    .toolbar-actions > * {
        flex: 0 0 auto;
    }

    .planning-toolbar .segmented {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }

    .planning-toolbar .segmented button {
        width: 100%;
    }

    .document-layout,
    .inbox-layout {
        grid-template-columns: 1fr;
    }

    .document-folders,
    .inbox-folders {
        display: flex;
        overflow-x: auto;
    }

    .document-folders h3,
    .document-folders button svg,
    .document-folders button b {
        display: none;
    }

    .document-folders button,
    .inbox-folders button {
        flex: 0 0 auto;
        width: auto;
    }

    .document-row {
        grid-template-columns: auto 1fr auto;
    }

    .document-row > small,
    .document-row .icon-button:last-child {
        display: none;
    }

    .workflow-steps {
        align-items: flex-start;
        flex-direction: column;
        gap: 11px;
        margin: 20px 0;
    }

    .workflow-step:not(:last-child)::after {
        top: 28px;
        bottom: -13px;
        left: 15px;
        width: 2px;
        height: auto;
    }

    .report-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .request-tabs {
        overflow-x: auto;
    }

    .request-tabs button {
        flex: 0 0 auto;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal {
        align-items: flex-end;
        padding: 0;
    }

    .modal-dialog {
        width: 100%;
        max-height: 92vh;
        border-radius: 15px 15px 0 0;
    }

    .table-summary {
        align-items: stretch;
        flex-direction: column;
    }

    .table-summary .toolbar-actions {
        width: 100%;
    }

    .calendar-card {
        overflow-x: auto;
    }

    .month-grid {
        min-width: 500px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* AGROLORA RH focused application */
.topbar-context {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    color: var(--muted);
    font-size: 10px;
}

.topbar-context b {
    padding: 4px 8px;
    border-radius: 20px;
    background: var(--brand-50);
    color: var(--brand-700);
}

.logged-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
}

.logged-user strong,
.logged-user small {
    display: block;
}

.logged-user strong {
    color: var(--ink);
    font-size: 10.5px;
}

.logged-user small {
    color: var(--muted);
    font-size: 8.5px;
}

.professional-list {
    display: grid;
}

.professional-row {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line-soft);
}

.professional-row > div {
    min-width: 0;
    flex: 1;
}

.professional-row > div strong,
.professional-row > div span {
    display: block;
}

.professional-row > div strong {
    color: var(--ink);
    font-size: 10.5px;
}

.professional-row > div > span {
    overflow: hidden;
    color: var(--muted);
    font-size: 8.7px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.empty-state {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a09a;
    text-align: center;
}

.empty-state strong {
    margin-top: 8px;
    color: #5d6b65;
    font-size: 11px;
}

.empty-state span {
    margin-top: 2px;
    font-size: 9px;
}

.empty-table {
    padding: 32px;
    color: var(--muted);
    text-align: center;
}

.clock-summary {
    max-width: 330px;
    margin: auto;
}

.filter-form {
    justify-content: flex-start;
}

.filter-form label,
.week-filter label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 9px;
}

.filter-form input,
.filter-form select,
.week-filter input,
.decision-form input {
    height: 34px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 7px;
    outline: none;
    background: #fff;
    color: var(--text);
    font-size: 9.5px;
}

.timesheet-workspace {
    overflow: hidden;
}

.timesheet-toolbar {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: #fbfdfc;
}

.timesheet-filter {
    display: flex;
    align-items: center;
    gap: 9px;
}

.timesheet-filter select {
    min-width: 245px;
}

.timesheet-view-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.timesheet-view-actions > div:first-child {
    text-align: right;
}

.timesheet-view-actions strong,
.timesheet-view-actions span {
    display: block;
}

.timesheet-view-actions strong {
    color: var(--ink);
    font-size: 11px;
}

.timesheet-view-actions span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 8px;
}

.timesheet-panel {
    overflow-x: auto;
}

.timesheet-calendar {
    display: grid;
    min-width: 960px;
    grid-template-columns: repeat(7, minmax(135px, 1fr));
}

.timesheet-weekday {
    display: grid;
    height: 35px;
    place-items: center;
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line);
    background: #f6f9f7;
    color: #7e8c86;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.timesheet-day {
    min-height: 142px;
    padding: 9px;
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    background: #fff;
}

.timesheet-day:nth-child(7n) {
    border-right: 0;
}

.timesheet-day.is-weekend {
    background: #fafcfb;
}

.timesheet-day.is-today {
    box-shadow: inset 0 0 0 2px #75c6a4;
}

.timesheet-day-empty {
    background: #f8faf9;
}

.timesheet-day > header {
    display: flex;
    min-height: 23px;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
}

.timesheet-day > header time {
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    color: #53625c;
    font-size: 10px;
    font-weight: 700;
}

.timesheet-day.is-today > header time {
    background: var(--brand-700);
    color: #fff;
}

.timesheet-day > header span {
    color: var(--muted);
    font-size: 7px;
}

.timesheet-day-events {
    display: grid;
    gap: 5px;
    margin-top: 7px;
}

.timesheet-calendar-entry {
    overflow: hidden;
    padding: 6px 7px;
    border-left: 3px solid #5dbea0;
    border-radius: 6px;
    background: #f0faf5;
}

.timesheet-calendar-entry strong,
.timesheet-calendar-entry span,
.timesheet-calendar-entry small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.timesheet-calendar-entry strong {
    color: var(--ink);
    font-size: 8px;
}

.timesheet-calendar-entry span {
    margin-top: 1px;
    color: #316c57;
    font-size: 8px;
    font-weight: 650;
}

.timesheet-calendar-entry small {
    margin-top: 1px;
    color: var(--muted);
    font-size: 7px;
}

.timesheet-no-entry {
    padding: 12px 2px;
    color: #b0bab5;
    font-size: 7.5px;
}

.timesheet-more {
    width: fit-content;
    padding: 2px 3px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--brand-700);
    cursor: pointer;
    font-family: inherit;
    font-size: 7.5px;
    font-weight: 650;
    text-align: left;
}

.timesheet-more:hover {
    background: var(--brand-50);
    text-decoration: underline;
}

.timesheet-day-dialog {
    width: min(460px, 100%);
    padding: 18px;
}

.timesheet-day-modal-header {
    align-items: center;
    margin-bottom: 14px;
}

.timesheet-day-modal-title {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.timesheet-day-modal-title > div {
    min-width: 0;
}

.timesheet-day-modal-title h2 {
    margin-top: 1px;
    font-size: 15px;
}

.timesheet-day-modal-title p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 8px;
}

.timesheet-day-profile-list {
    display: grid;
    max-height: min(480px, 65vh);
    gap: 7px;
    overflow-y: auto;
    padding-right: 2px;
}

.timesheet-day-profile {
    display: grid;
    min-height: 68px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 1px solid #e3eae6;
    border-left: 3px solid #5dbea0;
    border-radius: 9px;
    background: #fbfdfc;
}

.timesheet-day-profile.status-line-open,
.timesheet-day-profile.status-line-incomplete {
    border-left-color: #d77a2e;
    background: #fff7f0;
}

.timesheet-day-profile.status-line-corrected {
    border-left-color: #4285d4;
    background: #f4f8ff;
}

.timesheet-day-profile.status-line-absent {
    border-left-color: #d95858;
    background: #fff5f5;
}

.timesheet-day-profile.status-line-remote {
    border-left-color: #4285d4;
    background: #f4f8ff;
}

.timesheet-day-profile-copy {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.timesheet-day-profile-copy strong,
.timesheet-day-profile-copy span {
    display: block;
}

.timesheet-day-profile-copy > div:first-child {
    min-width: 0;
}

.timesheet-day-profile-copy > div:first-child strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 9.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.timesheet-day-profile-copy span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 7.5px;
}

.timesheet-day-profile-time {
    text-align: right;
}

.timesheet-day-profile-time strong {
    color: #395d50;
    font-size: 8.5px;
}

.timesheet-day-profile > .status {
    justify-self: end;
}

.status-line-open,
.status-line-incomplete {
    border-left-color: #d77a2e;
    background: #fff4ea;
}

.status-line-corrected {
    border-left-color: #4285d4;
    background: #edf5ff;
}

.status-line-absent {
    border-left-color: #d95858;
    background: #fff0f0;
}

.status-line-remote {
    border-left-color: #4285d4;
    background: #edf5ff;
}

.leave-timeline {
    display: grid;
}

.leave-timeline-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    border-bottom: 1px solid var(--line-soft);
}

.calendar-date {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 10px;
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.calendar-date small {
    margin-top: -8px;
    font-size: 7px;
    font-weight: 500;
}

.leave-timeline-row strong,
.leave-timeline-row div span {
    display: block;
}

.leave-timeline-row strong {
    color: var(--ink);
    font-size: 10.5px;
}

.leave-timeline-row div span {
    color: var(--muted);
    font-size: 8.5px;
}

.request-review-list {
    display: grid;
}

.request-review-card {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 14px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}

.request-review-main {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.request-review-main > div {
    min-width: 0;
}

.request-review-main h3 {
    margin: 0;
    color: var(--ink);
    font-size: 12px;
}

.request-review-main p,
.request-review-main small {
    display: block;
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 9px;
}

.request-review-status {
    text-align: right;
}

.request-review-status > span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 8px;
}

.decision-form {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-end;
    gap: 7px;
    padding-top: 11px;
    border-top: 1px solid var(--line-soft);
}

.decision-form input {
    min-width: 260px;
}

.export-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.export-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 13px;
    padding: 18px;
}

.export-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: 13px;
}

.export-card p {
    min-height: 38px;
    margin: 4px 0 5px;
    color: var(--muted);
    font-size: 9px;
}

.export-card div > span {
    color: var(--brand-700);
    font-size: 8.5px;
    font-weight: 600;
}

.export-card > .button {
    grid-column: 2;
    justify-self: start;
    margin-top: 8px;
}

.week-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.focused-kanban {
    grid-template-columns: repeat(5, minmax(250px, 1fr));
}

.focused-kanban .kanban-column {
    min-height: 520px;
}

.focused-kanban .kanban-items {
    min-height: 455px;
}

.empty-column {
    display: grid;
    min-height: 90px;
    place-items: center;
    border: 1px dashed #ccd6d1;
    border-radius: 9px;
    color: var(--muted);
    font-size: 9px;
}

.auth-body {
    overflow: auto;
    background: #eff4f1;
}

.auth-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(360px, .9fr) minmax(480px, 1.1fr);
}

.auth-brand-panel {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    padding: 38px 48px;
    background:
        radial-gradient(circle at 15% 10%, rgba(93, 218, 170, .19), transparent 24rem),
        linear-gradient(145deg, #06382e, #0b5843);
    color: #fff;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.auth-brand strong,
.auth-brand span {
    display: block;
}

.auth-brand strong {
    letter-spacing: .12em;
    font-size: 15px;
}

.auth-brand div > span {
    color: rgba(255,255,255,.6);
    font-size: 10px;
}

.auth-value {
    max-width: 520px;
    margin: auto 0;
}

.auth-value > span {
    color: #8be0bf;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
}

.auth-value h1 {
    margin: 12px 0 16px;
    font-size: clamp(32px, 4vw, 52px);
    letter-spacing: -.045em;
    line-height: 1.07;
}

.auth-value > p {
    max-width: 470px;
    color: rgba(255,255,255,.67);
    font-size: 12px;
}

.auth-feature-list {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

.auth-feature-list div {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255,255,255,.85);
    font-size: 10px;
}

.auth-brand-panel > small {
    color: rgba(255,255,255,.42);
    font-size: 8.5px;
}

.auth-form-panel {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 35px;
}

.auth-card {
    width: min(430px, 100%);
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 65px rgba(10, 55, 42, .09);
}

.auth-card h2 {
    margin: 0;
    color: var(--ink);
    font-size: 24px;
    letter-spacing: -.03em;
}

.auth-card > p {
    margin: 5px 0 22px;
    color: var(--muted);
    font-size: 10px;
}

.auth-form {
    gap: 13px;
}

.auth-form label small {
    color: var(--muted);
    font-size: 8px;
}

.input-with-icon {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-left: 10px;
    border: 1px solid #d9e1dd;
    border-radius: 8px;
    color: #819089;
}

.input-with-icon input {
    border: 0;
    box-shadow: none !important;
}

.auth-switch {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 9.5px;
    text-align: center;
}

.auth-switch a {
    color: var(--brand-700);
    font-weight: 650;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 18px;
    padding: 11px;
    border: 1px solid #f0dcaa;
    border-radius: 9px;
    background: #fffbef;
    color: #8c640e;
    font-size: 9px;
}

.auth-alert-success {
    border-color: #cde8db;
    background: #f4fcf8;
    color: var(--brand-700);
}

.dev-login-panel {
    margin: 0 0 17px;
    padding: 12px;
    border: 1px solid #cce6da;
    border-radius: 11px;
    background: linear-gradient(145deg, #f4fbf7, #f9fcfa);
}

.dev-login-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.dev-login-heading > div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.dev-login-heading strong {
    color: var(--brand-800);
    font-size: 10px;
}

.dev-login-heading small {
    padding: 3px 6px;
    border-radius: 20px;
    background: #dff4e9;
    color: var(--brand-700);
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dev-status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border: 2px solid #c6ead9;
    border-radius: 50%;
    background: #1ca66f;
    box-sizing: content-box;
}

.dev-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

.dev-profile-grid form {
    min-width: 0;
}

.dev-profile-card {
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid #dce7e1;
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.dev-profile-card:hover {
    border-color: #8fcbb2;
    box-shadow: 0 6px 16px rgba(13, 93, 67, .08);
    transform: translateY(-1px);
}

.dev-profile-card > span:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.dev-profile-card strong,
.dev-profile-card small {
    display: block;
}

.dev-profile-card strong {
    color: var(--ink);
    font-size: 9.5px;
}

.dev-profile-card small {
    overflow: hidden;
    margin-top: 2px;
    color: var(--muted);
    font-size: 7.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dev-profile-card > svg {
    color: var(--brand-600);
}

.dev-profile-avatar {
    display: inline-flex;
    width: 29px;
    height: 29px;
    min-width: 29px;
    min-height: 29px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
    border-radius: 8px;
    background: var(--brand-50);
    color: var(--brand-700);
    font-size: 8px;
    font-weight: 750;
    line-height: 1;
    text-align: center;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 15px;
    color: #94a099;
    font-size: 8px;
}

.auth-divider::before,
.auth-divider::after {
    height: 1px;
    flex: 1;
    background: var(--line);
    content: "";
}

.dev-switcher {
    position: relative;
}

.dev-switcher > summary {
    display: flex;
    height: 32px;
    align-items: center;
    gap: 6px;
    padding: 0 9px;
    border: 1px solid #cfe5da;
    border-radius: 8px;
    background: #f3faf6;
    color: var(--brand-700);
    cursor: pointer;
    font-size: 9px;
    font-weight: 650;
    list-style: none;
}

.dev-switcher > summary::-webkit-details-marker {
    display: none;
}

.dev-switcher[open] > summary {
    border-color: #91cbb2;
    background: #eaf7f0;
}

.dev-switcher-menu {
    position: absolute;
    z-index: 80;
    top: 40px;
    right: 0;
    display: grid;
    width: 275px;
    gap: 5px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 16px 45px rgba(18, 50, 39, .16);
}

.dev-switcher-menu > div {
    padding: 2px 3px 7px;
}

.dev-switcher-menu > div strong,
.dev-switcher-menu > div small {
    display: block;
}

.dev-switcher-menu > div strong {
    color: var(--ink);
    font-size: 10px;
}

.dev-switcher-menu > div small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 8px;
}

.dev-switcher-menu button {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    padding: 7px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.dev-switcher-menu button:hover,
.dev-switcher-menu button.active {
    border-color: #d2e8dd;
    background: #f3faf6;
}

.dev-switcher-menu button > span:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.dev-switcher-menu button strong,
.dev-switcher-menu button small {
    display: block;
}

.dev-switcher-menu button strong {
    color: var(--ink);
    font-size: 9.5px;
}

.dev-switcher-menu button small {
    overflow: hidden;
    margin-top: 1px;
    color: var(--muted);
    font-size: 7.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dev-switcher-menu button > svg {
    color: var(--brand-600);
}

.is-loading {
    opacity: .7;
    pointer-events: none;
}

.status-submitted,
.status-in-review,
.status-open,
.status-incomplete {
    background: var(--amber-100);
    color: #a96809;
}

.status-approved,
.status-valid,
.status-completed,
.status-active {
    background: var(--green-100);
    color: #168454;
}

.status-declined,
.status-blocked,
.status-absent {
    background: var(--red-100);
    color: var(--red);
}

.status-todo,
.status-in-progress,
.status-review,
.status-corrected {
    background: var(--blue-100);
    color: var(--blue);
}

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        display: none;
    }

    .auth-form-panel {
        padding: 20px;
    }

    .export-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .topbar-context,
    .logged-user > div {
        display: none;
    }

    .request-review-card {
        grid-template-columns: 1fr;
    }

    .request-review-status {
        text-align: left;
    }

    .decision-form {
        align-items: stretch;
        flex-direction: column;
    }

    .decision-form input {
        min-width: 0;
        width: 100%;
    }

    .filter-form {
        align-items: stretch;
    }

    .filter-form label {
        justify-content: space-between;
    }

    .auth-card {
        padding: 23px 18px;
    }

    .timesheet-toolbar,
    .timesheet-view-actions,
    .timesheet-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .timesheet-view-actions {
        gap: 9px;
    }

    .timesheet-view-actions > div:first-child {
        text-align: left;
    }

    .timesheet-filter select {
        min-width: 0;
        width: 100%;
    }

    .timesheet-day-profile {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .timesheet-day-profile-copy {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .timesheet-day-profile-time {
        text-align: left;
    }

    .timesheet-day-profile > .status {
        grid-column: 2;
        justify-self: start;
    }

    .dev-switcher > summary > span:nth-child(2) {
        display: none;
    }

    .dev-switcher-menu {
        position: fixed;
        top: 58px;
        right: 8px;
    }
}

@media (max-width: 420px) {
    .dev-profile-grid {
        grid-template-columns: 1fr;
    }
}

/* Congés: espace personnel et pilotage hiérarchique */
[data-leave-workspace],
[data-timesheet-workspace],
[data-absence-workspace] {
    position: relative;
    transition: opacity .16s ease;
}

[data-leave-workspace].is-updating,
[data-timesheet-workspace].is-updating,
[data-absence-workspace].is-updating {
    min-height: 360px;
    opacity: .55;
    pointer-events: none;
}

[data-leave-workspace].is-updating::after,
[data-timesheet-workspace].is-updating::after,
[data-absence-workspace].is-updating::after {
    position: absolute;
    z-index: 4;
    top: 90px;
    left: 50%;
    width: 28px;
    height: 28px;
    border: 3px solid #dcebe4;
    border-top-color: var(--brand-700);
    border-radius: 50%;
    content: "";
    animation: leave-loading-spin .7s linear infinite;
}

@keyframes leave-loading-spin {
    to { transform: rotate(360deg); }
}

.leave-control-panel {
    margin-bottom: 18px;
    overflow: hidden;
}

.leave-filter-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    background: #fbfdfc;
}

.leave-filter-form label {
    display: grid;
    min-width: 145px;
    gap: 6px;
}

.leave-filter-form label > span,
.leave-decision-form label > span {
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.leave-filter-form input,
.leave-filter-form select,
.leave-decision-form input {
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    outline: none;
    background: #fff;
    color: var(--ink);
    font-size: 9.5px;
}

.leave-filter-form input:focus,
.leave-filter-form select:focus,
.leave-decision-form input:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(15, 107, 79, .08);
}

.leave-filter-form .leave-employee-filter {
    min-width: 280px;
    flex: 1;
}

.leave-filter-actions {
    display: flex;
    gap: 8px;
}

.leave-scope-note {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 16px;
    background: #f4faf7;
    color: #527064;
    font-size: 9px;
    line-height: 1.55;
}

.leave-scope-note svg {
    flex: 0 0 auto;
    color: var(--brand-700);
}

.section-heading-inline {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 23px 0 10px;
}

.section-heading-inline h2 {
    margin: 3px 0 0;
    color: var(--ink);
    font-size: 14px;
}

.context-chip {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid #d8e8e1;
    border-radius: 999px;
    background: #f4faf7;
    color: var(--brand-700);
    font-size: 8.5px;
    font-weight: 700;
}

.leave-balance-card {
    min-height: 145px;
    padding: 17px;
}

.leave-balance-card .balance-top > div > span,
.leave-balance-card .balance-top > div > small,
.leave-balance-card .balance-top > strong,
.leave-balance-card .balance-top > strong > small {
    display: block;
}

.leave-balance-card .balance-top > div > span {
    color: var(--ink);
    font-size: 11px;
    font-weight: 700;
}

.leave-balance-card .balance-top > div > small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 8px;
}

.leave-balance-card .balance-top > strong {
    text-align: right;
}

.leave-balance-card .balance-top > strong > small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 7.5px;
}

.leave-balance-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.leave-balance-details span {
    color: var(--muted);
    font-size: 7.5px;
}

.leave-balance-details b {
    display: block;
    margin-bottom: 2px;
    color: var(--ink);
    font-size: 9.5px;
}

.leave-balance-empty {
    grid-column: 1 / -1;
    padding: 24px;
    color: var(--muted);
    text-align: center;
}

.leave-calendar-card {
    margin-top: 18px;
    overflow: hidden;
}

.leave-calendar-header,
.leave-requests-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
}

.leave-calendar-header h2,
.leave-requests-header h2 {
    margin: 3px 0 0;
    color: var(--ink);
    font-size: 15px;
}

.leave-calendar-header p,
.leave-requests-header p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 8.5px;
}

.leave-calendar-navigation {
    display: flex;
    align-items: center;
    gap: 7px;
}

.leave-calendar-navigation > a:first-child svg {
    transform: rotate(180deg);
}

.leave-calendar-scroll {
    overflow-x: auto;
}

.leave-calendar-grid {
    display: grid;
    min-width: 980px;
    grid-template-columns: repeat(7, minmax(140px, 1fr));
}

.leave-calendar-weekday {
    display: grid;
    height: 36px;
    place-items: center;
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line);
    background: #f6f9f7;
    color: #74847d;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.leave-calendar-day {
    min-height: 148px;
    padding: 9px;
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    background: #fff;
}

.leave-calendar-day.is-weekend {
    background: #fafcfb;
}

.leave-calendar-day.is-empty {
    background: #f7f9f8;
}

.leave-calendar-day.is-today {
    box-shadow: inset 0 0 0 2px var(--brand-500);
}

.leave-day-number {
    display: flex;
    min-height: 24px;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 7px;
}

.leave-day-number > span {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    color: var(--ink);
    font-size: 9px;
    font-weight: 750;
}

.leave-calendar-day.is-today .leave-day-number > span {
    background: var(--brand-700);
    color: #fff;
}

.leave-day-number small {
    color: var(--muted);
    font-size: 7px;
}

.leave-day-events {
    display: grid;
    gap: 5px;
}

.leave-calendar-event {
    display: grid;
    min-width: 0;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-left: 3px solid #d6a743;
    border-radius: 7px;
    background: #fff9ec;
}

.leave-calendar-event.status-line-approved {
    border-left-color: var(--green);
    background: #eef9f4;
}

.leave-calendar-event.status-line-declined,
.leave-calendar-event.status-line-cancelled {
    border-left-color: #d65a5a;
    background: #fff3f2;
}

.leave-event-avatar {
    display: inline-flex;
    width: 23px;
    height: 23px;
    min-width: 23px;
    min-height: 23px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--brand-700);
    font-size: 7px;
    font-weight: 750;
    line-height: 1;
    text-align: center;
    box-shadow: 0 0 0 1px rgba(15, 107, 79, .1);
}

.leave-calendar-event > span:last-child {
    min-width: 0;
}

.leave-calendar-event strong,
.leave-calendar-event small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leave-calendar-event strong {
    color: var(--ink);
    font-size: 7.5px;
}

.leave-calendar-event small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 6.5px;
}

.leave-more-events {
    color: var(--brand-700);
    font-size: 7.5px;
    font-weight: 700;
    text-decoration: none;
}

.absence-calendar-event {
    display: grid;
    min-width: 0;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-left: 3px solid #d6a743;
    border-radius: 7px;
    background: #fff9ec;
    color: inherit;
    text-decoration: none;
}

.absence-calendar-event.status-line-approved {
    border-left-color: var(--green);
    background: #eef9f4;
}

.absence-calendar-event.status-line-declined,
.absence-calendar-event.status-line-cancelled {
    border-left-color: #d65a5a;
    background: #fff3f2;
}

.absence-calendar-event > span:last-child {
    min-width: 0;
}

.absence-calendar-event strong,
.absence-calendar-event small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.absence-calendar-event strong {
    color: var(--ink);
    font-size: 7.5px;
}

.absence-calendar-event small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 6.5px;
}

.absence-request-card {
    scroll-margin-top: 18px;
}

.absence-request-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 15px;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: 9px;
    background: var(--line-soft);
}

.absence-request-facts > div {
    min-width: 0;
    padding: 11px;
    background: #fbfdfc;
}

.absence-request-facts span,
.absence-request-facts strong {
    display: block;
}

.absence-request-facts span {
    color: var(--muted);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.absence-request-facts strong {
    margin-top: 5px;
    color: var(--ink);
    font-size: 9px;
}

.absence-mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.absence-mode-switch label {
    position: relative;
    cursor: pointer;
}

.absence-mode-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.absence-mode-switch label > span {
    display: grid;
    min-height: 80px;
    grid-template-columns: auto 1fr;
    align-content: center;
    column-gap: 9px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fbfdfc;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.absence-mode-switch label > span svg {
    grid-row: 1 / span 2;
    color: var(--brand-700);
}

.absence-mode-switch strong,
.absence-mode-switch small {
    display: block;
}

.absence-mode-switch strong {
    color: var(--ink);
    font-size: 9.5px;
}

.absence-mode-switch small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 7.5px;
}

.absence-mode-switch input:checked + span {
    border-color: var(--brand-500);
    background: #f1faf6;
    box-shadow: 0 0 0 3px rgba(15, 107, 79, .07);
}

[data-absence-mode-panel] {
    display: grid;
    gap: 12px;
}

[data-absence-mode-panel][hidden] {
    display: none;
}

.leave-requests-card {
    margin-top: 18px;
    overflow: hidden;
    scroll-margin-top: 18px;
}

.leave-request-list {
    display: grid;
}

.leave-request-card {
    padding: 18px;
    border-bottom: 1px solid var(--line);
}

.leave-request-card:last-child {
    border-bottom: 0;
}

.leave-request-card > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.leave-request-identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.leave-request-identity > div {
    min-width: 0;
}

.leave-request-identity h3 {
    margin: 2px 0;
    color: var(--ink);
    font-size: 12px;
}

.leave-request-identity small,
.leave-request-state small {
    display: block;
    color: var(--muted);
    font-size: 8px;
}

.leave-request-state {
    display: grid;
    justify-items: end;
    gap: 5px;
    text-align: right;
}

.leave-request-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 15px;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: 9px;
    background: var(--line-soft);
}

.leave-request-facts > div {
    min-width: 0;
    padding: 11px;
    background: #fbfdfc;
}

.leave-request-facts span,
.leave-request-facts strong,
.leave-request-facts small {
    display: block;
}

.leave-request-facts span {
    color: var(--muted);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.leave-request-facts strong {
    margin-top: 5px;
    overflow: hidden;
    color: var(--ink);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leave-request-facts small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 7.5px;
}

.leave-request-reason {
    margin-top: 12px;
    padding: 11px 13px;
    border-radius: 8px;
    background: #f7f9f8;
}

.leave-request-reason span {
    color: var(--muted);
    font-size: 7px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.leave-request-reason p {
    margin: 4px 0 0;
    color: #4c5c55;
    font-size: 8.5px;
    line-height: 1.55;
}

.leave-decision-comment {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #d9ece3;
    border-radius: 8px;
    background: #f2faf6;
    color: var(--brand-700);
}

.leave-decision-comment strong,
.leave-decision-comment span {
    display: block;
}

.leave-decision-comment strong {
    font-size: 8px;
}

.leave-decision-comment span {
    margin-top: 2px;
    color: #587267;
    font-size: 8px;
}

.leave-decision-trace {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #d9ece3;
    border-radius: 8px;
    background: #f2faf6;
}

.leave-decision-trace-declined {
    border-color: #f1d9d7;
    background: #fff5f4;
}

.leave-decision-trace > div strong,
.leave-decision-trace > div span {
    display: block;
}

.leave-decision-trace > div strong {
    color: var(--ink);
    font-size: 8.5px;
}

.leave-decision-trace > div > span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 7.5px;
}

.leave-decision-form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
}

.leave-decision-form label {
    display: grid;
    flex: 1;
    gap: 5px;
}

.leave-decision-form > div {
    display: flex;
    gap: 7px;
}

.leave-duration-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 9px 11px;
    border: 1px solid #dcebe4;
    border-radius: 8px;
    background: #f4faf7;
    color: #527064;
    font-size: 8.5px;
}

@media (max-width: 1100px) {
    .leave-filter-form {
        flex-wrap: wrap;
    }

    .leave-filter-form .leave-employee-filter {
        min-width: 340px;
    }

    .leave-request-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .absence-request-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .leave-filter-form,
    .leave-filter-actions,
    .leave-calendar-header,
    .leave-requests-header,
    .leave-request-card > header,
    .leave-decision-form {
        align-items: stretch;
        flex-direction: column;
    }

    .leave-filter-form label,
    .leave-filter-form .leave-employee-filter {
        min-width: 0;
        width: 100%;
    }

    .leave-filter-actions > *,
    .leave-decision-form > div > * {
        flex: 1;
    }

    .leave-calendar-navigation {
        justify-content: space-between;
    }

    .leave-request-state {
        justify-items: start;
        text-align: left;
    }

    .leave-request-facts {
        grid-template-columns: 1fr;
    }

    .absence-request-facts {
        grid-template-columns: 1fr;
    }

    .absence-mode-switch {
        grid-template-columns: 1fr;
    }

    .leave-decision-form > div {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

/* Keep every initials avatar circular and centered, regardless of component text rules. */
.avatar.avatar {
    display: inline-flex;
    width: 35px;
    height: 35px;
    min-width: 35px;
    min-height: 35px;
    flex: 0 0 35px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
    border-radius: 50%;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
}

.avatar.avatar-sm {
    width: 31px;
    height: 31px;
    min-width: 31px;
    min-height: 31px;
    flex-basis: 31px;
}

.avatar.avatar-xs {
    width: 25px;
    height: 25px;
    min-width: 25px;
    min-height: 25px;
    flex-basis: 25px;
}

.avatar.avatar-xl {
    width: 68px;
    height: 68px;
    min-width: 68px;
    min-height: 68px;
    flex-basis: 68px;
}
