:root {
    --bg: #eef2ed;
    --panel: #ffffff;
    --panel-muted: #f7f9f6;
    --ink: #1e2a22;
    --muted: #657166;
    --line: #d9e1d8;
    --primary: #315b3a;
    --primary-dark: #24442b;
    --accent: #a9c65a;
    --danger: #a43d3d;
    --success: #2e7d4f;
    --shadow: 0 18px 45px rgba(27, 45, 32, 0.12);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: var(--bg);
}

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

button,
input,
select {
    font: inherit;
}

.guest-body {
    display: grid;
    place-items: center;
    padding: 32px;
    background:
        radial-gradient(circle at top left, rgba(91, 167, 219, 0.28), transparent 32rem),
        linear-gradient(135deg, #e7edf2 0%, #f5f8fa 100%);
}

.guest-shell {
    display: grid;
    grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 420px);
    gap: 32px;
    width: min(980px, 100%);
    align-items: stretch;
}

.guest-brand,
.login-card,
.card,
.resource-form {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.guest-brand {
    display: flex;
    min-height: 460px;
    padding: 48px;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(155deg, #2d638e 0%, #2f5f95 100%);
    color: #fff;
}

.guest-brand h1 {
    margin: 0;
    font-size: clamp(48px, 8vw, 84px);
    letter-spacing: -0.06em;
}

.guest-brand p {
    max-width: 360px;
    color: rgba(255, 255, 255, 0.82);
}

.guest-brand .eyebrow {
    color: rgba(255, 255, 255, 0.82);
}

.login-card {
    padding: 36px;
}

.guest-body .login-card--blue .eyebrow {
    color: #2f5f95;
}

.guest-body .login-card--blue .button-primary {
    background: #2f5f95;
}

.guest-body .login-card--blue .button-primary:hover {
    background: #2d638e;
}

.guest-body .login-card--blue input:focus,
.guest-body .login-card--blue select:focus {
    border-color: #2f5f95;
    outline: 3px solid rgba(47, 95, 149, 0.14);
}

.app-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    display: flex;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 28px;
    flex-direction: column;
    background: #173321;
    color: #fff;
}

.brand {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 44px;
}

.brand-mark {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 16px;
    background: var(--accent);
    color: #18341f;
    font-weight: 800;
}

.brand strong {
    display: block;
    font-size: 24px;
    letter-spacing: -0.04em;
}

.brand small {
    display: block;
    color: rgba(255, 255, 255, 0.68);
}

.sidebar-nav {
    display: grid;
    gap: 8px;
}

.sidebar-nav a {
    padding: 13px 16px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.72);
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.sidebar-footer {
    margin-top: auto;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-footer span {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
}

.main-panel {
    padding: 32px;
}

.topbar {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.topbar h1 {
    margin: 4px 0 0;
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -0.05em;
}

.topbar-user {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 8px 8px 8px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.card-heading h2,
.section-heading h2 {
    margin: 0;
    letter-spacing: -0.03em;
}

.card-heading p,
.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.resource-form,
.card {
    padding: 26px;
}

.form-stack {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.form-help {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.form-help a {
    color: #2f5f95;
    font-weight: 700;
    text-decoration: none;
}

.form-help a:hover {
    text-decoration: underline;
}

.smtp-test-output {
    overflow: auto;
    padding: 12px;
    border-radius: 12px;
    background: #f4f7f4;
    color: var(--ink);
    white-space: pre-wrap;
}

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

label span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

input,
select {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--ink);
}

input:focus,
select:focus {
    border-color: var(--primary);
    outline: 3px solid rgba(49, 91, 58, 0.14);
}

.checkbox-row {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-weight: 700;
}

.checkbox-row input {
    width: auto;
}

.field-error {
    display: block;
    margin-top: 7px;
    color: var(--danger);
    font-size: 13px;
}

.button {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
}

.button-primary {
    background: var(--primary);
    color: #fff;
}

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

.button-ghost {
    background: var(--panel-muted);
    color: var(--primary);
}

.alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 700;
}

.alert-error {
    background: #f7e7e7;
    color: var(--danger);
}

.alert-success {
    background: #e4f3ea;
    color: var(--success);
}

.table-wrap {
    overflow-x: auto;
    margin-top: 22px;
    border: 1px solid var(--line);
    border-radius: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    padding: 15px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    white-space: nowrap;
}

th {
    background: var(--panel-muted);
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

tr:last-child td {
    border-bottom: 0;
}

.badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: #edf3e1;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.status {
    color: var(--success);
    font-weight: 800;
}

.status.is-disabled {
    color: var(--danger);
}

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

@media (max-width: 980px) {
    .guest-shell,
    .app-shell,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
    }

    .guest-brand {
        min-height: 260px;
    }
}

/* Superuser resources layout aligned to the provided mockup. */
body {
    background: #ffffff;
}

.app-shell {
    grid-template-columns: 235px minmax(0, 1fr);
    background: #ffffff;
}

.sidebar {
    display: flex;
    position: sticky;
    top: 0;
    height: calc(100vh - 34px);
    margin: 17px 0 17px 18px;
    padding: 0;
    overflow: hidden;
    flex-direction: column;
    border-radius: 22px;
    background: #2d638e;
    color: #ffffff;
}

.brand {
    display: grid;
    flex-shrink: 0;
    min-height: 94px;
    margin: 0;
    place-items: center;
    background: #2b6089;
}

.brand-logo {
    display: block;
    width: 92px;
    max-height: 74px;
    object-fit: contain;
}

.sidebar-nav {
    display: block;
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 0 12px;
    scrollbar-color: rgba(255, 255, 255, 0.35) transparent;
    scrollbar-width: thin;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

.menu-group,
.menu-link,
.menu-title {
    color: #ffffff;
}

.menu-title,
.menu-link {
    display: flex;
    width: 100%;
    min-height: 39px;
    padding: 0 22px;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-align: left;
    text-transform: uppercase;
}

.menu-panel {
    overflow: hidden;
}

.menu-panel[hidden] {
    display: none;
}

.menu-arrow {
    display: inline-block;
    transition: transform 0.16s ease;
}

.menu-group.is-collapsed .menu-arrow {
    transform: rotate(-90deg);
}

.menu-group > a,
.menu-panel > a,
.sidebar-nav a {
    display: flex;
    min-height: 31px;
    padding: 0 22px;
    align-items: center;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 400;
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.menu-separator {
    display: block;
    width: calc(100% - 64px);
    height: 1px;
    margin: 19px 32px;
    background: rgba(255, 255, 255, 0.28);
}

.menu-title-standalone {
    margin-top: 12px;
}

.menu-section {
    margin-top: 12px;
}

.menu-section-title {
    margin: 0 0 4px;
    padding: 0 22px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.sidebar-logout {
    flex-shrink: 0;
    margin-top: 0;
    padding: 14px 0 24px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar-logout button {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    font-size: 14px;
}

.main-panel {
    padding: 54px 58px 48px 27px;
}

.topbar {
    display: flex;
    margin: 0 0 32px;
    align-items: center;
    justify-content: space-between;
}

.topbar-line {
    display: block;
    height: 1px;
    flex: 1;
    background: #2c4d60;
}

.topbar-actions {
    display: flex;
    gap: 22px;
    align-items: center;
    padding-left: 50px;
}

.notification-button,
.avatar-button {
    position: relative;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
}

.notification-button::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 12px;
    width: 21px;
    height: 19px;
    border-radius: 11px 11px 5px 5px;
    background: #2c638f;
}

.notification-button::after {
    content: "";
    position: absolute;
    left: 15px;
    top: 31px;
    width: 8px;
    height: 4px;
    border-radius: 0 0 8px 8px;
    background: #2c638f;
}

.notification-dot {
    position: absolute;
    right: 7px;
    top: 7px;
    z-index: 1;
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 50%;
    background: #c82032;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
}

.avatar-button {
    border: 3px solid #2c638f;
    border-radius: 50%;
}

.avatar-button::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #2c638f;
}

.avatar-button::after {
    content: "";
    position: absolute;
    left: 8px;
    bottom: 8px;
    width: 22px;
    height: 14px;
    border-radius: 14px 14px 8px 8px;
    background: #2c638f;
}

.resources-page {
    width: 100%;
    max-width: none;
    padding-left: 32px;
}

.resources-panel:not(.is-active) {
    display: none;
}

.resources-panel[data-panel="risorse"].is-active .resources-table-card {
    margin-top: 0;
}

.risorsa-dettaglio-card {
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: 24px;
    padding: 24px 26px 30px;
    border-radius: 0 18px 18px 18px;
    background: #ffffff;
}

.risorsa-dettaglio-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px 16px;
    border: 1px solid #d7e1ea;
    border-radius: 14px;
    background: #f8fafc;
}

.risorsa-dettaglio-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.risorsa-dettaglio-avatar {
    width: 72px;
    height: 72px;
}

.risorsa-dettaglio-name {
    margin: 8px 0 0;
    color: #2c638f;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.risorsa-dettaglio-role {
    margin: 0;
    color: #5d6f7d;
    font-size: 13px;
}

.risorsa-dettaglio-balance {
    padding: 14px 12px;
    border-radius: 10px;
    background: #e8f1f8;
    text-align: center;
}

.risorsa-dettaglio-balance-label {
    margin: 0 0 6px;
    color: #426176;
    font-size: 12px;
}

.risorsa-dettaglio-balance-value {
    margin: 0;
    color: #2c638f;
    font-size: 28px;
    font-weight: 700;
}

.risorsa-dettaglio-balance-value.is-negative {
    color: #c0392b;
}

.risorsa-dettaglio-balance-breakdown {
    display: grid;
    gap: 4px;
    margin: 10px 0 0;
    color: #426176;
    font-size: 12px;
    text-align: left;
}

.risorsa-dettaglio-balance-breakdown div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.risorsa-dettaglio-balance-breakdown dt,
.risorsa-dettaglio-balance-breakdown dd {
    margin: 0;
}

.risorsa-dettaglio-balance-breakdown dd {
    font-weight: 700;
}

.risorsa-dettaglio-leave h3 {
    margin: 0 0 10px;
    color: #2c638f;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.risorsa-dettaglio-leave-grid {
    display: grid;
    gap: 8px;
}

.risorsa-dettaglio-leave-grid .leave-annual-card {
    padding: 10px 12px;
}

.risorsa-dettaglio-edit {
    width: 100%;
    margin-top: auto;
}

.risorsa-dettaglio-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.risorsa-dettaglio-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 18px;
    align-items: center;
}

.risorsa-dettaglio-subtabs {
    display: inline-flex;
    border: 1px solid #2c638f;
    border-radius: 8px;
    overflow: hidden;
}

.risorsa-dettaglio-subtab {
    min-height: 34px;
    padding: 0 18px;
    border: 0;
    background: #ffffff;
    color: #2c638f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.risorsa-dettaglio-subtab.is-active {
    background: #2c638f;
    color: #ffffff;
}

.risorsa-dettaglio-load {
    margin-left: auto;
    min-width: 140px;
    padding: 8px 12px;
    border: 1px solid #d7e1ea;
    border-radius: 10px;
    background: #f8fafc;
}

.risorsa-dettaglio-load-label {
    display: block;
    color: #5d6f7d;
    font-size: 11px;
}

.risorsa-dettaglio-load-value {
    display: block;
    margin: 2px 0 6px;
    color: #2c638f;
    font-size: 18px;
}

.risorsa-dettaglio-load-bar {
    display: block;
    height: 6px;
    border-radius: 999px;
    background: #dce6ee;
    overflow: hidden;
}

.risorsa-dettaglio-load-bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #3ca56b;
}

.risorsa-dettaglio-subpanel:not(.is-active) {
    display: none;
}

.risorsa-dettaglio-empty {
    padding: 28px;
    border: 1px dashed #c5d3df;
    border-radius: 12px;
    color: #5d6f7d;
    text-align: center;
}

.risorsa-dettaglio-project-block {
    margin-bottom: 22px;
}

.risorsa-dettaglio-project-header {
    margin-bottom: 10px;
}

.risorsa-dettaglio-project-header h3 {
    margin: 0;
    color: #2c638f;
    font-size: 15px;
    font-weight: 700;
}

.risorsa-dettaglio-task-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.risorsa-dettaglio-task-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border: 1px solid #d7e1ea;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(24, 42, 57, 0.04);
}

.risorsa-dettaglio-task-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.risorsa-dettaglio-task-card-header h3 {
    margin: 0;
    color: #29333a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.risorsa-dettaglio-task-project {
    display: inline-flex;
    align-self: flex-start;
    margin: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e8f1f8;
    color: #2c638f;
    font-size: 12px;
    font-weight: 600;
}

.risorsa-dettaglio-task-deadline {
    margin: 0;
    color: #5d6f7d;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.risorsa-dettaglio-task-card-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.risorsa-dettaglio-task-assignees {
    display: flex;
    align-items: center;
}

.risorsa-dettaglio-task-assignee {
    width: 28px;
    height: 28px;
    margin-right: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

.risorsa-dettaglio-task-progress {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 10px;
    align-items: center;
    color: #5d6f7d;
    font-size: 12px;
}

.risorsa-dettaglio-task-progress-value.is-low {
    color: #c0392b;
}

.risorsa-dettaglio-task-progress-value.is-medium {
    color: #d68910;
}

.risorsa-dettaglio-task-progress-value.is-high {
    color: #3ca56b;
}

.risorsa-dettaglio-task-progress-bar {
    grid-column: 1 / -1;
    display: block;
    height: 6px;
    border-radius: 999px;
    background: #dce6ee;
    overflow: hidden;
}

.risorsa-dettaglio-task-progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.risorsa-dettaglio-task-progress-fill.is-low {
    background: #c0392b;
}

.risorsa-dettaglio-task-progress-fill.is-medium {
    background: #d68910;
}

.risorsa-dettaglio-task-progress-fill.is-high {
    background: #3ca56b;
}

@media (max-width: 960px) {
    .risorsa-dettaglio-card {
        grid-template-columns: 1fr;
    }

    .risorsa-dettaglio-load {
        margin-left: 0;
        width: 100%;
    }
}

.resource-toolbar {
    display: flex;
    gap: 28px;
    align-items: center;
    margin-bottom: 32px;
}

.toolbar-button {
    display: inline-flex;
    gap: 10px;
    min-height: 35px;
    padding: 0 18px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #426176;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.toolbar-button-primary {
    min-width: 181px;
    background: #3da26b;
    color: #ffffff;
}

.toolbar-button-primary:hover {
    background: #338d5d;
}

.toolbar-button-ghost {
    padding: 0;
}

.toolbar-button-ghost.is-active {
    font-weight: 600;
}

.archive-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('../images/icon-archive.png') center / contain no-repeat;
}

.resource-form-panel {
    display: none;
    margin: -14px 0 30px;
    padding: 24px;
    border: 1px solid #d9e2e8;
    border-radius: 14px;
    background: #f9fbfc;
}

.resource-form-panel.is-open {
    display: block;
}

.resource-form-panel .card-heading h2 {
    color: #2c638f;
    font-size: 22px;
}

.resource-form-panel .button-primary {
    background: #3da26b;
}

.resources-table-card {
    background: transparent;
}

.table-controls {
    display: inline-grid;
    margin: 0 0 15px 4px;
    color: #8fa3ad;
    font-size: 10px;
    line-height: 0.82;
}

.table-wrap {
    margin-top: 0;
    overflow-x: auto;
    border: 0;
    border-radius: 0;
}

.resources-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    color: #29333a;
    font-size: 14px;
}

.resources-table th {
    padding: 0 13px 17px;
    border-bottom: 1px solid #bfcad0;
    background: #ffffff;
    color: #2d5774;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.resources-table td {
    height: 39px;
    padding: 0 13px;
    border: 0;
    color: #343b40;
    vertical-align: middle;
    white-space: nowrap;
}

.resources-table td.competence-cell {
    max-width: 190px;
    padding-top: 8px;
    padding-bottom: 8px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
}

.resources-table tbody tr:nth-child(even) {
    background: #e9eef2;
}

.resources-table tbody tr:last-child td {
    border-bottom: 1px solid #d6dde1;
}

.row-open {
    width: 46px;
}

.row-actions {
    width: 74px;
}

.icon-button {
    display: inline-grid;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.open-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('../images/icon-open.png') center / contain no-repeat;
}

.row-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: flex-end;
}

.archive-action,
.edit-action {
    display: inline-block;
    width: 18px;
    height: 18px;
}

.edit-action {
    background: url('../images/icon-edit.png') center / contain no-repeat;
}

.status.is-disabled {
    display: inline-block;
    margin-left: 8px;
    color: #a43d3d;
    font-size: 11px;
    font-weight: 700;
}

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

.resource-modal.is-open {
    display: flex;
}

.resource-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
}

.resource-modal-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 154px minmax(0, 1fr);
    gap: 28px;
    width: min(954px, calc(100vw - 290px));
    max-height: calc(100vh - 74px);
    overflow: auto;
    padding: 32px 18px 26px 50px;
    border: 0;
    border-radius: 52px;
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(24, 42, 57, 0.16);
}

.modal-close {
    position: absolute;
    z-index: 2;
    top: 28px;
    right: 35px;
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    color: #222b31;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.profile-column {
    padding-top: 50px;
}

.profile-avatar {
    position: relative;
    width: 92px;
    height: 92px;
    margin: 0 auto 24px;
    border: 5px solid #2f5f95;
    border-radius: 50%;
}

.profile-avatar-head,
.profile-avatar-body {
    position: absolute;
    left: 50%;
    background: #2f5f95;
    transform: translateX(-50%);
}

.profile-avatar-head {
    top: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.profile-avatar-body {
    bottom: 13px;
    width: 62px;
    height: 31px;
    border-radius: 35px 35px 16px 16px;
}

.profile-alert {
    position: absolute;
    right: 0;
    top: 2px;
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 50%;
    background: #e72d45;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
}

.resource-color-block {
    color: #2f5f95;
    font-size: 14px;
    font-weight: 800;
}

.resource-colors {
    display: flex;
    gap: 9px;
    align-items: center;
    margin-top: 9px;
}

.resource-color {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
}

.color-blue {
    background: #5ba7db;
}

.color-green {
    background: #35b07b;
}

.color-yellow {
    border: 2px solid #2f5f95;
    background: #e3c834;
}

.resource-color-edit {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
}

.resource-color-edit::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 10px;
    width: 13px;
    height: 2px;
    background: #2f5f95;
    transform: rotate(-38deg);
}

.resource-color-edit::after {
    content: "";
    position: absolute;
    right: 1px;
    top: 3px;
    width: 5px;
    height: 5px;
    border: 2px solid #2f5f95;
    border-left: 0;
    border-bottom: 0;
    transform: rotate(52deg);
}

.profile-form h2,
.schedule-section h3 {
    margin: 0 0 19px;
    color: #2f5f95;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.modal-grid {
    display: grid;
    gap: 15px 18px;
}

.modal-grid-two {
    grid-template-columns: 1fr 1fr;
}

.field {
    position: relative;
    display: block;
}

.field span,
.date-range-field legend {
    display: block;
    margin: 0 0 7px;
    color: #2f5f95;
    font-size: 14px;
    font-weight: 800;
}

.field input,
.field select,
.field textarea {
    padding: 5px 14px;
    border: 1px solid #aeb6bb;
    border-radius: 14px;
    background: #ffffff;
    color: #29333a;
    font-size: 14px;
}

.field input,
.field select {
    height: 31px;
}

.field textarea {
    min-height: 72px;
    resize: vertical;
}

.field select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #9aa4aa 50%),
        linear-gradient(135deg, #9aa4aa 50%, transparent 50%);
    background-position:
        calc(100% - 20px) 12px,
        calc(100% - 13px) 12px;
    background-size: 8px 8px, 8px 8px;
    background-repeat: no-repeat;
}

.competence-field {
    padding: 0;
    border: 0;
}

.competence-field legend {
    display: block;
    margin: 0 0 7px;
    color: #2f5f95;
    font-size: 14px;
    font-weight: 800;
}

.competence-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    max-height: 160px;
    overflow-y: auto;
    padding: 10px 14px;
    border: 1px solid #aeb6bb;
    border-radius: 14px;
    background: #ffffff;
}

.competence-option {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #29333a;
    font-size: 14px;
    cursor: pointer;
}

.competence-option input {
    width: 16px;
    height: 16px;
    margin: 0;
}

.date-range-field {
    padding: 0;
    border: 0;
}

.date-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.password-field input {
    padding-right: 38px;
}

.password-edit {
    position: absolute;
    right: 13px;
    top: 31px;
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('../images/icon-password.png') center / contain no-repeat;
}

.modal-separator {
    margin: 28px -3px 20px -183px;
    border: 0;
    border-top: 1px solid #b8c7d3;
}

.schedule-section h3 {
    margin-left: -6px;
}

.schedule-grid {
    display: grid;
    grid-template-columns: 155px 245px 205px;
    gap: 28px;
    align-items: start;
}

.annual-settings {
    display: grid;
    gap: 11px;
}

.annual-hours {
    display: grid;
    width: 147px;
    height: 69px;
    place-items: center;
    border-radius: 9px;
    background: #e7edf2;
    color: #2f5f95;
    text-align: center;
}

.annual-hours span {
    align-self: end;
    font-size: 14px;
    font-weight: 800;
}

.annual-hours strong {
    align-self: start;
    color: #2f3337;
    font-size: 30px;
    line-height: 1;
}

.compact-field input {
    width: 145px;
    text-align: right;
}

.workweek-settings h4,
.exception-card h4 {
    margin: 0 0 12px;
    color: #2f5f95;
    font-size: 14px;
    font-weight: 800;
}

.weekday-row {
    display: grid;
    grid-template-columns: 18px 78px 94px;
    gap: 6px;
    align-items: center;
    margin-bottom: 6px;
    color: #2f5f95;
    font-size: 14px;
}

.weekday-row input[type="checkbox"] {
    width: 13px;
    height: 13px;
    margin: 0;
}

.weekday-row input[type="text"] {
    width: 94px;
    height: 18px;
    padding: 0 8px;
    border: 1px solid #c1c8cc;
    border-radius: 999px;
    font-size: 10px;
    text-align: center;
}

.add-exception-button {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 13px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #2f5f95;
    cursor: pointer;
    font-size: 14px;
}

.add-exception-button::first-letter {
    font-weight: 800;
}

.add-exception-button > span::before {
    content: "";
}

.exception-archive {
    display: block;
    margin-top: 11px;
    color: #2f5f95;
    font-size: 14px;
    font-style: italic;
}

.exception-card {
    min-height: 257px;
    padding: 19px 22px;
    border-radius: 36px;
    background: #e4ebf1;
    color: #2f5f95;
}

.exception-card dl {
    display: grid;
    gap: 7px;
    margin: 0 0 13px;
}

.exception-card dl div {
    display: grid;
    grid-template-columns: 1fr 28px;
    gap: 12px;
}

.exception-card dt,
.exception-card dd {
    margin: 0;
    font-size: 14px;
}

.exception-card strong,
.exception-card span {
    display: block;
    font-size: 12px;
}

.exception-edit-button {
    margin-top: 14px;
    padding: 6px 12px;
    border: 0;
    border-radius: 999px;
    background: #2f5f95;
    color: #ffffff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.exception-card.is-empty .exception-empty-message {
    margin: 0;
    font-size: 13px;
    font-style: italic;
}

.weekday-row input[type="text"]:disabled {
    opacity: 0.45;
    background: #f3f5f7;
}

.schedule-day-error {
    display: block;
    margin: -2px 0 6px 102px;
}

.schedule-exception-modal-card,
.schedule-archive-modal-card {
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow: auto;
}

.schedule-exception-modal-card h2,
.schedule-archive-modal-card h2 {
    margin: 0 0 18px;
    color: #2f5f95;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
}

.schedule-exception-dates {
    margin-bottom: 18px;
}

.schedule-exception-week {
    margin-bottom: 18px;
}

.schedule-archive-table td {
    vertical-align: middle;
}

.schedule-archive-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.schedule-archive-empty td {
    padding: 18px 12px;
    color: #66737d;
    font-style: italic;
}

.exception-archive {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.modal-actions {
    display: flex;
    gap: 28px;
    justify-content: flex-end;
    align-items: center;
    margin: 27px 24px 0 0;
}

.save-button {
    min-width: 88px;
    min-height: 37px;
    border: 0;
    border-radius: 12px;
    background: #3da26b;
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
}

.danger-action,
.muted-action {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
}

.danger-action {
    color: #ff2f36;
}

.muted-action {
    color: #a4a4a4;
}

.trash-icon {
    display: inline-block;
    width: 16px;
    height: 18px;
    background: url('../images/icon-delete.png') center / contain no-repeat;
}

.archive-small-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('../images/icon-archive.png') center / contain no-repeat;
}

.leave-page {
    width: 100%;
    max-width: none;
    padding-left: 32px;
}

.leave-section-heading {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 22px;
}

.leave-request-form {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin: 2px 0 54px;
}

.leave-add-button {
    display: grid;
    width: 33px;
    height: 33px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #3da26b;
    color: #ffffff;
    cursor: pointer;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.leave-form-grid {
    display: grid;
    grid-template-columns: 160px 160px 165px 72px minmax(160px, 1fr) 96px;
    gap: 16px;
    align-items: end;
}

.leave-request-form .field span {
    color: #2f5f95;
}

.leave-request-form .field input,
.leave-request-form .field select {
    height: 32px;
    border-color: #b3bec5;
    border-radius: 15px;
}

.leave-hours-field input {
    text-align: center;
}

.leave-submit-button {
    height: 32px;
    border: 0;
    border-radius: 10px;
    background: #3da26b;
    color: #ffffff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
}

.leave-table-section h2 {
    margin: 0;
    color: #2f5f95;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.leave-table-tools {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 11px;
}

.leave-table-tools .table-controls {
    margin: 0 0 0 4px;
}

.leave-status-filter {
    display: flex;
    align-items: end;
    gap: 12px;
}

.leave-status-filter select {
    min-width: 132px;
    margin-top: 4px;
    padding: 6px 10px;
    border: 1px solid #c7d5dc;
    border-radius: 8px;
    background: #ffffff;
    color: #2d5774;
    font-size: 13px;
}

.leave-type-legend {
    display: flex;
    gap: 25px;
    align-items: center;
    color: #2d5774;
    font-size: 13px;
    font-weight: 700;
}

.leave-type-legend label {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    cursor: pointer;
}

.leave-type-legend input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #3da26b;
}

.leave-table-wrap {
    max-width: 100%;
}

.leave-requests-table th {
    padding-bottom: 16px;
}

.leave-requests-table th.is-sortable a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: inherit;
    text-decoration: none;
}

.leave-requests-table th.is-sortable a:hover {
    text-decoration: underline;
}

.leave-requests-table th.is-sorted a {
    font-weight: 800;
}

.leave-sort-indicator::after {
    content: "↕";
    color: #8fa3ad;
    font-size: 11px;
    line-height: 1;
}

.leave-requests-table th.is-sorted.is-asc .leave-sort-indicator::after {
    content: "↑";
    color: #2d5774;
}

.leave-requests-table th.is-sorted.is-desc .leave-sort-indicator::after {
    content: "↓";
    color: #2d5774;
}

.leave-requests-table th,
.leave-requests-table td {
    padding-left: 10px;
    padding-right: 10px;
}

.leave-requests-table td {
    height: 42px;
}

.leave-note-cell {
    min-width: 136px;
}

.leave-status {
    font-weight: 700;
}

.leave-status-approvata {
    color: #2f8a5d;
}

.leave-status-rifiutata {
    color: #a43d3d;
}

.leave-status-in-attesa {
    color: #2d5774;
}

.leave-requests-table tbody tr.leave-row-status-in-attesa {
    background: #fff3cd;
}

.leave-requests-table tbody tr.leave-row-status-approvata {
    background: #d7f3df;
}

.leave-requests-table tbody tr.leave-row-status-rifiutata {
    background: #f8d7da;
}

.leave-admin-row-actions {
    gap: 8px;
    width: 112px;
}

.leave-status-action-form {
    display: inline-flex;
    margin: 0;
}

.leave-status-action {
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}

.leave-status-action-approve {
    background: #2f8a5d;
}

.leave-status-action-reject {
    background: #a43d3d;
}

.leave-status-action:hover {
    filter: brightness(0.92);
}

.leave-pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    color: #2d5774;
    font-size: 14px;
}

.leave-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    padding: 2px 6px;
    color: #2d5774;
    text-decoration: none;
}

.leave-page-link:hover {
    text-decoration: underline;
}

.leave-page-link.is-current {
    font-weight: 800;
    text-decoration: underline;
}

.leave-page-ellipsis {
    color: #8fa3ad;
}

.leave-page-summary {
    margin-left: 8px;
    color: #8fa3ad;
    font-size: 13px;
}

.user-leave-page {
    max-width: none;
}

.leave-annual-summary {
    margin-bottom: 36px;
    padding: 24px;
    border: 1px solid #d9e2e8;
    border-radius: 16px;
    background: #ffffff;
}

.leave-annual-summary h2,
.user-leave-requests h2 {
    margin: 0 0 20px;
    color: #2c638f;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

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

.leave-annual-card {
    padding: 18px 16px;
    border: 1px solid #e2e8ec;
    border-radius: 12px;
    background: #f7f9fb;
}

.leave-annual-label {
    margin: 0 0 10px;
    color: #657166;
    font-size: 13px;
    line-height: 1.35;
}

.leave-annual-value {
    margin: 0;
    color: #29333a;
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
}

.leave-annual-value-usage-low {
    color: #2f8a5d;
}

.leave-annual-value-usage-medium {
    color: #c9a227;
}

.leave-annual-value-usage-high {
    color: #c0392b;
}

.user-leave-requests {
    margin-bottom: 24px;
}

.user-leave-form {
    display: grid;
    grid-template-columns: 160px minmax(260px, 1.4fr) 80px auto;
    grid-template-rows: auto auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 28px;
}

.user-leave-form-notes {
    grid-column: 1 / -1;
}

.user-leave-form .field {
    display: grid;
    gap: 8px;
}

.user-leave-form .field span {
    color: #2f5f95;
    font-size: 14px;
    font-weight: 600;
}

.user-leave-form .field input,
.user-leave-form .field select {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid #b3bec5;
    border-radius: 15px;
    background: #ffffff;
}

.user-leave-date-range {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.user-leave-date-range input[hidden] {
    display: none;
}

.user-leave-form .leave-hours-field input {
    text-align: center;
}

.user-leave-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.user-leave-form input.is-invalid,
.user-leave-form select.is-invalid {
    border-color: var(--danger);
}

.user-leave-cancel-button {
    min-height: 35px;
}

.user-leave-submit {
    min-width: 150px;
    min-height: 35px;
}

.user-leave-page .leave-status-in-attesa {
    color: #c99a2e;
}

.leave-row-actions.is-disabled .icon-button {
    cursor: not-allowed;
    opacity: 0.45;
}

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

.leave-modal.is-open {
    display: flex;
}

.leave-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
}

.leave-modal-card {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100vw - 290px));
    max-height: calc(100vh - 74px);
    overflow: auto;
    padding: 42px 48px 34px;
    border: 0;
    border-radius: 48px;
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(24, 42, 57, 0.16);
}

.leave-modal-card h2 {
    margin: 0 0 24px;
    color: #2f5f95;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.leave-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
}

.leave-modal-date-field,
.leave-modal-notes-field {
    grid-column: 1 / -1;
}

.leave-modal-date-field {
    padding: 0;
    border: 0;
}

.leave-modal-date-field legend {
    display: block;
    margin: 0 0 7px;
    color: #2f5f95;
    font-size: 14px;
    font-weight: 800;
}

.leave-modal-actions {
    margin-right: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.operational-projects-page {
    width: 100%;
    max-width: none;
    padding-left: 32px;
}

.operational-projects-table-card {
    padding: 24px 28px 30px;
    border-radius: 0 18px 18px 18px;
    background: #ffffff;
}

.progetti-operativi-panel:not(.is-active) {
    display: none;
}

.progetti-operativi-panel[data-panel="progetti"].is-active .operational-projects-table-card {
    border-radius: 0 18px 18px 18px;
}

.operational-projects-table th,
.operational-projects-table td {
    padding-left: 10px;
    padding-right: 10px;
}

.operational-projects-table td {
    height: 42px;
}

.operational-project-name {
    display: inline-block;
    margin-right: 8px;
}

.operational-project-responsible-badge {
    padding: 4px 8px;
    background: #fff3cd;
    color: #9a6700;
    vertical-align: middle;
}

.operational-projects-page .project-status-in-chiusura {
    color: #c0392b;
}

.task-page {
    width: 100%;
    max-width: none;
    padding-left: 32px;
}

.task-toolbar {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.task-date-range {
    display: flex;
    gap: 14px;
    align-items: center;
    color: #2c638f;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 500;
}

.task-toolbar-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.task-range-picker {
    flex-shrink: 0;
}

.task-project-filter {
    min-width: 220px;
    margin: 0;
}

.task-project-filter .resource-timesheet-resource-filter-label {
    display: none;
}

.task-project-filter .resource-timesheet-dropdown-wrap {
    min-width: 220px;
}

.task-project-filter .resource-timesheet-dropdown-toggle {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #c8d4dc;
    border-radius: 10px;
    background: #ffffff;
    color: #5f6d75;
    font-size: 14px;
}

.task-project-filter select {
    min-height: 40px;
    padding: 0 36px 0 14px;
    border: 1px solid #c8d4dc;
    border-radius: 10px;
    background: #ffffff;
    color: #5f6d75;
    font-size: 14px;
}

.task-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.task-card {
    display: grid;
    gap: 16px;
    min-height: 188px;
    padding: 22px 22px 18px;
    border: 1px solid #d9e2e8;
    border-radius: 18px;
    background: #ffffff;
}

.task-card-header {
    display: grid;
    gap: 10px;
}

.task-card-title {
    margin: 0;
    color: #29333a;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.task-card-project {
    display: inline-flex;
    width: fit-content;
    padding: 4px 12px;
    border-radius: 999px;
    background: #d8edf2;
    color: #2d6f86;
    font-size: 12px;
    font-weight: 700;
}

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

.task-card-dates {
    display: grid;
    gap: 4px;
}

.task-card-date-range,
.task-card-deadline {
    margin: 0;
    color: #2c638f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.task-card-deadline {
    color: #c0392b;
}

.task-card-hours {
    display: grid;
    gap: 4px;
}

.task-card-hours p {
    margin: 0;
    color: #5f6d75;
    font-size: 12px;
    font-weight: 700;
}

.task-empty-state {
    margin: 0 0 20px;
    color: #5f6d75;
    font-size: 14px;
    font-weight: 600;
}

.task-card-end-date {
    margin: 0;
    color: #2c638f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.task-card-footer {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: auto;
}

.task-card-members {
    display: flex;
    align-items: center;
}

.task-member-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: -8px;
    overflow: hidden;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #c5ced4;
}

.task-member-avatar.has-image {
    background: transparent;
}

.task-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.task-member-avatar--blu {
    background: #2c638f;
}

.task-member-avatar--verde {
    background: #35b07b;
}

.task-member-avatar--giallo {
    background: #e3c834;
}

.task-member-avatar--blu.has-image,
.task-member-avatar--verde.has-image,
.task-member-avatar--giallo.has-image {
    background: transparent;
}

.task-card-members .task-member-avatar:first-child {
    margin-left: 0;
}

.task-card-progress {
    display: grid;
    gap: 6px;
    min-width: 132px;
}

.task-card-progress-label {
    color: #5f6d75;
    font-size: 11px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.task-progress-bar {
    display: block;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e7edf1;
}

.task-progress-bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.task-progress-bar-low .task-progress-bar-fill {
    background: #c0392b;
}

.task-progress-bar-medium .task-progress-bar-fill {
    background: #d8892f;
}

.task-progress-bar-complete .task-progress-bar-fill {
    background: #2f8a5d;
}

.progetto-operativo-dettaglio-page {
    max-width: 1180px;
    padding-left: 32px;
}

.progetto-dettaglio-tabs {
    display: flex;
    gap: 6px;
    align-items: flex-end;
    margin-bottom: 0;
}

.progetto-dettaglio-tab {
    display: inline-flex;
    gap: 12px;
    min-height: 38px;
    padding: 0 18px;
    align-items: center;
    border: 0;
    border-radius: 14px 14px 0 0;
    background: #3d7aad;
    color: rgba(255, 255, 255, 0.88);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, min-height 0.15s ease;
}

.progetto-dettaglio-tab:hover:not(.is-active) {
    background: #356f9d;
    color: #ffffff;
}

.progetto-dettaglio-tab.is-active {
    min-height: 52px;
    padding-bottom: 2px;
    background: #ffffff;
    color: #1e4a6e;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 -3px 12px rgba(44, 99, 143, 0.18);
    border-top: 3px solid #2c638f;
    position: relative;
    z-index: 1;
}

.progetto-dettaglio-tab-close {
    font-size: 18px;
    line-height: 1;
    opacity: 0.7;
    cursor: pointer;
}

.progetto-dettaglio-tab.is-active .progetto-dettaglio-tab-close {
    opacity: 0.85;
    color: #2c638f;
}

.progetto-dettaglio-gantt-card {
    width: 100%;
    margin-bottom: 42px;
    padding: 0 0 30px;
    border-radius: 0 18px 18px 18px;
    background: #ffffff;
}

.progetto-dettaglio-gantt-daily-toggle {
    flex-shrink: 0;
}

.progetto-dettaglio-date-header {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.progetto-dettaglio-date-range {
    display: flex;
    gap: 14px;
    align-items: center;
    color: #2c638f;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 500;
}

.progetto-dettaglio-range-picker {
    flex-shrink: 0;
}

.progetto-dettaglio-gantt-wrap {
    overflow-x: auto;
}

.progetto-dettaglio-gantt {
    display: grid;
    grid-template-columns: 150px repeat(31, minmax(24px, 1fr));
    min-width: 920px;
    border: 1px solid #d6dde1;
    background: #ffffff;
}

.progetto-dettaglio-gantt-corner {
    grid-column: 1;
    grid-row: 1;
    min-height: 78px;
    border-right: 1px solid #d6dde1;
    border-bottom: 1px solid #d6dde1;
    background: #ffffff;
}

.progetto-dettaglio-gantt-scale {
    grid-column: 2 / -1;
    grid-row: 1;
    display: grid;
    grid-template-rows: auto auto auto;
    border-bottom: 1px solid #d6dde1;
    background: #ffffff;
}

.progetto-dettaglio-gantt-scale-row {
    display: grid;
    border-bottom: 1px solid #e4eaee;
}

.progetto-dettaglio-gantt-scale-row span {
    padding: 6px 0;
    color: #2d5774;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
}

.gantt-range-modal {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 42px 32px 42px 248px;
}

.gantt-range-modal.is-open {
    display: flex;
}

.gantt-range-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
}

.gantt-range-modal-card {
    position: relative;
    z-index: 1;
    width: min(560px, calc(100vw - 290px));
    padding: 42px 48px 34px;
    border: 0;
    border-radius: 48px;
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(24, 42, 57, 0.16);
}

.gantt-range-modal-card h2 {
    margin: 0 0 24px;
    color: #2f5f95;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.gantt-range-modal-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
}

.gantt-range-modal-actions {
    margin-top: 24px;
    margin-right: 0;
}

.progetto-dettaglio-gantt-timeline--range {
    background-image: linear-gradient(to right, #edf1f4 1px, transparent 1px);
}

.progetto-dettaglio-gantt-year,
.progetto-dettaglio-gantt-month {
    padding: 6px 0;
    border-bottom: 1px solid #e4eaee;
    color: #2d5774;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: center;
    text-transform: uppercase;
}

.progetto-dettaglio-gantt-days {
    display: grid;
    grid-template-columns: repeat(31, 1fr);
}

.progetto-dettaglio-gantt-days span {
    padding: 8px 0;
    border-right: 1px solid #edf1f4;
    color: #5f6d75;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.progetto-dettaglio-gantt-days span:last-child {
    border-right: 0;
}

.progetto-dettaglio-gantt.is-weekly .progetto-dettaglio-gantt-days span {
    padding-right: 4px;
    padding-left: 4px;
    white-space: nowrap;
}

.progetto-dettaglio-gantt-row {
    display: contents;
}

.progetto-dettaglio-gantt-row.is-clickable .progetto-dettaglio-gantt-label,
.progetto-dettaglio-gantt-row.is-clickable .progetto-dettaglio-gantt-timeline {
    cursor: pointer;
}

.progetto-dettaglio-gantt-row.is-clickable .progetto-dettaglio-gantt-label:hover,
.progetto-dettaglio-gantt-row.is-clickable .progetto-dettaglio-gantt-timeline:hover {
    background-color: #f6f9fb;
}

.progetto-dettaglio-gantt-label {
    position: relative;
    display: flex;
    gap: 8px;
    grid-column: 1;
    min-width: 0;
    min-height: 34px;
    padding: 0 10px;
    align-items: center;
    overflow: hidden;
    border-top: 1px solid #e9eef2;
    border-right: 1px solid #d6dde1;
    color: #343b40;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.progetto-dettaglio-gantt-label[data-gantt-tooltip] {
    overflow: visible;
}

.progetto-dettaglio-gantt-label[data-gantt-tooltip]::after {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 10px;
    width: max-content;
    max-width: min(420px, 80vw);
    padding: 8px 10px;
    border-radius: 6px;
    background: #22313a;
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(24, 38, 49, 0.22);
    content: attr(data-gantt-tooltip);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    white-space: normal;
    visibility: hidden;
}

.progetto-dettaglio-gantt-label[data-gantt-tooltip-managed]::after,
.progetto-dettaglio-gantt-bar[data-gantt-tooltip-managed]::after {
    display: none;
}

.projects-gantt-tooltip {
    position: fixed;
    z-index: 19;
    width: max-content;
    max-width: min(420px, calc(100vw - 16px));
    padding: 8px 10px;
    border-radius: 6px;
    background: #22313a;
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(24, 38, 49, 0.22);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    pointer-events: none;
    white-space: normal;
    overflow-wrap: anywhere;
}

.progetto-dettaglio-gantt-label[data-gantt-tooltip]:hover::after,
.progetto-dettaglio-gantt-label[data-gantt-tooltip]:focus-within::after {
    opacity: 1;
    visibility: visible;
}

.progetto-dettaglio-gantt-label span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.progetto-dettaglio-gantt-timeline {
    display: grid;
    grid-column: 2 / -1;
    grid-template-columns: repeat(31, 1fr);
    min-height: 34px;
    align-items: center;
    border-top: 1px solid #e9eef2;
    background-image: linear-gradient(to right, #edf1f4 1px, transparent 1px);
    background-size: calc(100% / 31) 100%;
}

.progetto-dettaglio-gantt-bar {
    position: relative;
    z-index: 1;
    height: 14px;
    margin: 0 1px;
    border-radius: 2px;
    background: #5eb8c9;
}

.progetto-dettaglio-gantt-bar[data-gantt-tooltip]::after {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    left: 0;
    width: max-content;
    max-width: min(420px, 80vw);
    padding: 8px 10px;
    border-radius: 6px;
    background: #22313a;
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(24, 38, 49, 0.22);
    content: attr(data-gantt-tooltip);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    opacity: 0;
    pointer-events: none;
    white-space: normal;
    visibility: hidden;
}

.progetto-dettaglio-gantt-bar[data-gantt-tooltip]:hover::after,
.progetto-dettaglio-gantt-bar[data-gantt-tooltip]:focus::after {
    opacity: 1;
    visibility: visible;
}

.progetto-dettaglio-gantt-card .progetto-dettaglio-gantt-timeline--range {
    cursor: crosshair;
}

.progetto-dettaglio-gantt-card [data-gantt-task-bar] {
    cursor: grab;
    touch-action: none;
}

.progetto-dettaglio-gantt-card [data-gantt-task-bar].is-dragging {
    cursor: grabbing;
    opacity: 0.82;
}

.progetto-dettaglio-gantt-selection {
    z-index: 0;
    height: 100%;
    align-self: stretch;
    border: 2px dashed #2f5f95;
    border-radius: 4px;
    background: rgba(47, 95, 149, 0.16);
    pointer-events: none;
}

.progetto-dettaglio-gantt-error {
    margin: 0 0 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f7e7e7;
    color: var(--danger);
    font-size: 13px;
    font-weight: 800;
}

.gantt-status-icon {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    padding: 0;
    border-radius: 50%;
}

button.gantt-status-icon {
    cursor: pointer;
}

button.gantt-status-icon:disabled {
    cursor: default;
}

button.gantt-status-icon:focus-visible {
    outline: 3px solid rgba(47, 95, 149, 0.35);
    outline-offset: 2px;
}

.gantt-status-pending {
    border: 2px solid #c0392b;
    background: #fbeaea;
}

.gantt-status-pending::before,
.gantt-status-pending::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 2px;
    background: #c0392b;
    transform: translate(-50%, -50%) rotate(45deg);
}

.gantt-status-pending::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.gantt-status-complete {
    border: 2px solid #2f8a5d;
    background: #eaf7ef;
}

.gantt-status-complete::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 3px;
    width: 5px;
    height: 9px;
    border-right: 2px solid #2f8a5d;
    border-bottom: 2px solid #2f8a5d;
    transform: rotate(45deg);
}

.progetto-dettaglio-involved-section h2 {
    margin: 0 0 18px;
    color: #2c638f;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.progetto-dettaglio-involved-table th,
.progetto-dettaglio-involved-table td {
    padding-left: 12px;
    padding-right: 12px;
}

.progetto-dettaglio-involved-table td {
    height: 42px;
}

.progetto-dettaglio-involved-name {
    min-width: 180px;
    color: #2c638f;
    font-weight: 700;
    vertical-align: top;
}

.projects-page {
    width: 100%;
    max-width: none;
    padding-left: 32px;
}

.projects-panel:not(.is-active) {
    display: none;
}

.projects-panel[data-panel="progetti"].is-active .projects-table-card {
    margin-top: 0;
}

.project-row-actions {
    min-width: 72px;
}

.project-inline-form {
    display: inline-flex;
}

.projects-empty-state {
    height: 72px !important;
    color: #75838c !important;
    text-align: center;
}

.progetto-dettaglio-card {
    padding: 28px 30px 34px;
    border-radius: 0 18px 18px 18px;
    background: #ffffff;
}

.progetto-dettaglio-header {
    margin-bottom: 24px;
}

.progetto-dettaglio-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.progetto-dettaglio-title {
    margin: 0;
    color: #2c638f;
    font-size: clamp(28px, 3vw, 34px);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.progetto-dettaglio-edit-project {
    flex-shrink: 0;
}

.progetto-dettaglio-meta {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px 20px;
    margin: 0;
}

.progetto-dettaglio-meta div {
    display: grid;
    gap: 4px;
}

.progetto-dettaglio-meta dt {
    margin: 0;
    color: #2f5f95;
    font-size: 13px;
    font-weight: 800;
}

.progetto-dettaglio-meta dd {
    margin: 0;
    color: #29333a;
    font-size: 14px;
}

.progetto-dettaglio-subtabs-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid #d9e2e8;
}

.progetto-dettaglio-subtabs {
    display: flex;
    gap: 28px;
    align-items: center;
    margin-bottom: 0;
    border-bottom: 0;
}

.progetto-dettaglio-subtabs-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
    padding-bottom: 8px;
}

.progetto-dettaglio-subtab {
    margin: 0 0 -1px;
    padding: 0 0 12px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #5f6d75;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.progetto-dettaglio-subtab.is-active {
    color: #2c638f;
    border-bottom-color: #2c638f;
}

.progetto-dettaglio-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.progetto-dettaglio-toolbar .progetto-dettaglio-range-picker {
    flex-shrink: 0;
}

.progetto-dettaglio-toolbar-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.progetto-dettaglio-subpanel:not(.is-active) {
    display: none;
}

.progetto-dettaglio-risorse-block + .progetto-dettaglio-risorse-block {
    margin-top: 28px;
}

.progetto-dettaglio-risorse-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.progetto-dettaglio-risorse-header h3 {
    margin: 0;
    color: #2c638f;
    font-size: 18px;
    font-weight: 500;
}

.progetto-dettaglio-risorse-header span {
    color: #5f6d75;
    font-size: 14px;
    font-weight: 700;
}

.progetto-dettaglio-placeholder {
    min-height: 180px;
    display: grid;
    place-items: center;
    padding: 32px;
    border: 1px dashed #c8d4dc;
    border-radius: 18px;
    color: #75838c;
    background: #f8fafb;
}

.progetto-dettaglio-placeholder p {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
}

.cost-revenue-table-card {
    margin-top: 8px;
}

.cost-revenue-table tbody tr.is-clickable {
    cursor: pointer;
}

.cost-revenue-table tbody tr.is-clickable:hover {
    background: #eef3f8;
}

.cost-revenue-totals {
    display: flex;
    justify-content: flex-end;
    gap: 48px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 2px solid #c8cdd1;
}

.cost-revenue-totals div {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.cost-revenue-totals span {
    color: #2f5f95;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.cost-revenue-totals strong {
    color: #31383d;
    font-size: 18px;
    font-weight: 800;
}

.project-toolbar {
    display: flex;
    gap: 28px;
    align-items: center;
    margin-bottom: 32px;
}

.projects-table-card {
    background: transparent;
}

.projects-table th,
.projects-table td {
    padding-left: 10px;
    padding-right: 10px;
}

.projects-table td {
    height: 42px;
}

.project-status {
    font-weight: 700;
}

.project-status-attivo {
    color: #2f8a5d;
}

.project-status-in-partenza {
    color: #2d5774;
}

.project-status-in-chiusura {
    color: #b77b1f;
}

.project-status-terminato {
    color: #69747b;
}

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

.project-modal.is-open {
    display: flex;
}

.project-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
}

.project-modal-card {
    position: relative;
    z-index: 1;
    width: min(720px, calc(100vw - 290px));
    max-height: calc(100vh - 74px);
    overflow: auto;
    padding: 42px 48px 34px;
    border: 0;
    border-radius: 48px;
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(24, 42, 57, 0.16);
}

.project-modal-card h2 {
    margin: 0 0 24px;
    color: #2f5f95;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.project-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
}

.project-modal-card .project-color-block {
    margin: 0;
}

.project-modal-card .profile-color-picker {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.project-modal-card .profile-color-label {
    font-size: 12px;
}

.project-duration-field {
    grid-column: 1 / -1;
    padding: 0;
    border: 0;
}

.project-duration-field legend {
    display: block;
    margin: 0 0 7px;
    color: #2f5f95;
    font-size: 14px;
    font-weight: 800;
}

.project-modal-actions {
    margin-right: 0;
}

.task-modal {
    position: fixed;
    inset: 0;
    z-index: 21;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 42px 32px 42px 248px;
}

.task-modal.is-open {
    display: flex;
}

.task-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
}

.task-modal-card {
    position: relative;
    z-index: 1;
    width: calc(100vw - 290px);
    max-height: calc(100vh - 74px);
    overflow: auto;
    padding: 32px 48px 38px;
    border: 0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(24, 42, 57, 0.16);
}

.task-modal-header {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 38px;
}

.task-modal-card h2 {
    margin: 0;
    color: #2f5f95;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.task-modal-header .save-button {
    min-width: 88px;
}

.task-modal-header .danger-action {
    margin-left: 0;
}

.cost-revenue-modal {
    position: fixed;
    inset: 0;
    z-index: 21;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 42px 32px 42px 248px;
}

.cost-revenue-modal.is-open {
    display: flex;
}

.cost-revenue-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
}

.cost-revenue-modal-card {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100vw - 290px));
    max-height: calc(100vh - 74px);
    overflow: auto;
    padding: 32px 48px 38px;
    border: 0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(24, 42, 57, 0.16);
}

.cost-revenue-modal-header {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 38px;
}

.cost-revenue-modal-card h2 {
    margin: 0;
    color: #2f5f95;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.cost-revenue-modal-header .save-button {
    min-width: 88px;
}

.cost-revenue-modal-header .danger-action {
    margin-left: 0;
}

.cost-revenue-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 18px;
    align-items: start;
}

.cost-revenue-note-field {
    grid-column: 1 / -1;
}

.cost-revenue-note-field textarea {
    min-height: 88px;
    resize: vertical;
}

.task-form-grid {
    display: grid;
    grid-template-columns: 1fr 1.45fr 1.25fr 1fr;
    gap: 22px 18px;
    align-items: start;
}

.task-products-field {
    position: relative;
}

.task-products-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 40px;
    padding: 8px 11px;
    border: 1px solid #afbdc7;
    border-radius: 4px;
    background: #ffffff;
    color: #29333a;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.task-products-panel {
    position: absolute;
    z-index: 5;
    top: calc(100% - 1px);
    right: auto;
    left: 0;
    width: 360px;
    min-width: 100%;
    max-width: calc(100vw - 80px);
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px;
    border: 1px solid #afbdc7;
    border-radius: 0 0 7px 7px;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(24, 42, 57, 0.14);
}

.task-products-search {
    position: sticky;
    z-index: 1;
    top: -4px;
    padding: 5px 3px 7px;
    background: #ffffff;
}

.task-products-search input {
    width: 100%;
    min-height: 34px;
    padding: 6px 9px;
    border: 1px solid #afbdc7;
    border-radius: 4px;
    font-size: 13px;
}

.task-product-option {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
    padding: 6px 4px;
    color: #29333a;
    font-size: 13px;
    cursor: pointer;
}

.task-product-option:hover {
    background: #edf3f7;
}

.task-product-option[hidden] {
    display: none;
}

.task-product-option input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #419763;
}

.task-product-option span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.task-products-empty {
    margin: 8px 5px;
    color: #75838c;
    font-size: 12px;
}

.task-options {
    display: flex;
    align-items: center;
    gap: 24px;
    grid-column: 2 / -1;
    min-height: 40px;
    padding-top: 7px;
}

.task-related-field {
    flex: 1 1 280px;
    min-width: 220px;
    margin: 0;
}

.task-related-field[hidden] {
    display: none;
}

.task-options .task-checkbox-field {
    flex: 0 0 auto;
    white-space: nowrap;
}

.task-section-label {
    display: block;
    margin-bottom: 7px;
    color: #2f5f95;
    font-size: 14px;
    font-weight: 800;
}

.task-duration-field,
.task-resource-editor fieldset {
    padding: 0;
    border: 0;
}

.task-duration-field legend,
.task-resource-editor legend {
    display: block;
    margin: 0 0 7px;
    color: #2f5f95;
    font-size: 14px;
    font-weight: 800;
}

.task-checkbox-field {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #29333a;
    font-size: 14px;
    font-weight: 700;
}

.task-checkbox-field input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #419763;
}

.task-resources-section {
    margin-top: 12px;
    padding-top: 22px;
    border-top: 2px solid #c8cdd1;
}

.task-resource-editor {
    display: grid;
    grid-template-columns: 1.05fr 0.7fr 1.3fr auto;
    gap: 18px;
    align-items: end;
    padding: 12px;
    border: 2px solid transparent;
    border-radius: 16px;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.task-resource-editor.is-editing {
    background: #fff8df;
    border-color: #e2b84f;
    box-shadow: 0 8px 18px rgba(148, 111, 20, 0.16);
}

.task-resource-editor.has-multiple-products {
    grid-template-columns: 1fr 1.2fr 0.7fr 1.3fr auto;
}

.task-resource-product-field[hidden],
.task-resource-table [data-task-resource-product-column][hidden] {
    display: none;
}

.task-resource-editor-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    white-space: nowrap;
}

.task-add-resource-button,
.task-resource-cancel-button {
    min-height: 40px;
    white-space: nowrap;
}

.task-resource-editor-error {
    grid-column: 1 / -1;
    min-height: 18px;
    margin: -8px 0 0;
    color: #d64545;
    font-size: 12px;
    font-weight: 700;
}

.task-resource-table-wrap {
    width: 100%;
    max-width: none;
    margin-top: 14px;
    overflow-x: auto;
}

.task-resource-table {
    width: 100%;
    border-collapse: collapse;
    color: #31383d;
    font-size: 14px;
}

.task-resource-table th {
    padding: 0 14px 9px;
    color: #2f5f95;
    font-weight: 800;
    text-align: left;
}

.task-resource-table td {
    padding: 10px 14px;
    border: 0;
}

.task-resource-status-icon {
    margin-right: 8px;
    vertical-align: middle;
}

.task-resource-table tbody tr:nth-child(odd) {
    background: #e8eaf2;
}

.task-resource-table .field-error {
    display: block;
    margin-top: 4px;
}

.task-resource-actions {
    width: 74px;
    white-space: nowrap;
    text-align: right;
}

.task-resource-actions button {
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #89939a;
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
}

.task-resource-table tfoot td {
    border-top: 1px solid #bdc9d2;
    color: #2f5f95;
    text-align: center;
}

.clients-page {
    max-width: 1040px;
    padding-left: 32px;
}

.clients-panel:not(.is-active) {
    display: none;
}

.clients-panel[data-panel="clienti"].is-active .clients-table-card {
    margin-top: 0;
}

.cliente-dettaglio-card {
    padding: 28px 30px 34px;
    border-radius: 0 18px 18px 18px;
    background: #ffffff;
}

.cliente-dettaglio-header {
    margin-bottom: 28px;
}

.cliente-dettaglio-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.cliente-dettaglio-heading .cliente-dettaglio-title {
    margin: 0;
}

.cliente-dettaglio-edit-client {
    flex-shrink: 0;
}

.cliente-dettaglio-title {
    margin: 0 0 24px;
    color: #2c638f;
    font-size: clamp(28px, 3vw, 34px);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.cliente-dettaglio-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.cliente-dettaglio-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 24px;
    margin: 0;
}

.cliente-dettaglio-meta div {
    display: grid;
    gap: 4px;
}

.cliente-dettaglio-meta dt {
    color: #2f5f95;
    font-size: 14px;
    font-weight: 800;
}

.cliente-dettaglio-meta dd {
    margin: 0;
    color: #343b40;
    font-size: 14px;
}

.cliente-dettaglio-notes h3,
.cliente-dettaglio-contacts h3 {
    margin: 0 0 14px;
    color: #2f5f95;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.cliente-dettaglio-contacts-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.cliente-dettaglio-contacts-heading h3 {
    margin: 0;
}

.cliente-dettaglio-notes-box {
    min-height: 120px;
    padding: 14px 16px;
    border: 1px solid #b3bec5;
    border-radius: 14px;
    background: #ffffff;
    color: #343b40;
    font-size: 14px;
    line-height: 1.45;
}

.cliente-dettaglio-contacts {
    margin-bottom: 28px;
}

.cliente-dettaglio-contacts-table th,
.cliente-dettaglio-contacts-table td,
.cliente-dettaglio-projects-table th,
.cliente-dettaglio-projects-table td {
    padding-right: 10px;
    padding-left: 10px;
}

.cliente-dettaglio-contacts-table td,
.cliente-dettaglio-projects-table td {
    height: 42px;
}

.cliente-dettaglio-empty {
    color: #75838c !important;
    text-align: center;
}

.client-detail-contact-actions {
    min-width: 72px;
}

.client-contact-delete {
    color: #ff2f36;
}

.cliente-dettaglio-projects {
    padding-top: 8px;
    border-top: 1px solid #d6dde1;
}

.cliente-dettaglio-projects-table th:nth-child(3),
.cliente-dettaglio-projects-table td:nth-child(3),
.cliente-dettaglio-projects-table th:nth-child(8),
.cliente-dettaglio-projects-table td:nth-child(8) {
    white-space: nowrap;
}

.client-toolbar {
    display: flex;
    gap: 28px;
    align-items: center;
    margin-bottom: 32px;
}

.clients-table-card {
    background: transparent;
}

.clients-table th,
.clients-table td {
    padding-right: 12px;
    padding-left: 12px;
}

.clients-table td {
    height: 42px;
}

.clients-table th:nth-child(4),
.clients-table td:nth-child(4) {
    width: 112px;
    text-align: center;
}

.clients-table th:nth-child(5),
.clients-table td:nth-child(5) {
    width: 130px;
}

.client-row-actions {
    min-width: 72px;
}

.client-inline-form {
    display: inline-flex;
}

.clients-empty-state {
    height: 72px !important;
    color: #75838c !important;
    text-align: center;
}

.product-service-toolbar {
    display: flex;
    gap: 28px;
    align-items: center;
    margin-bottom: 32px;
}

.products-services-table-card {
    background: transparent;
}

.product-service-filter {
    max-width: 360px;
    margin-bottom: 18px;
}

.products-services-table th,
.products-services-table td {
    padding-right: 12px;
    padding-left: 12px;
}

.products-services-table td {
    height: 42px;
}

.products-services-tree-name {
    min-width: 250px;
}

.products-services-tree-label {
    display: flex;
    align-items: center;
    min-width: 0;
    white-space: nowrap;
}

.products-services-tree-label.is-parent {
    color: #2f5f95;
    font-weight: 700;
}

.products-services-tree-indent {
    flex: 0 0 18px;
    align-self: stretch;
    border-left: 1px solid #d6e0e7;
}

.products-services-tree-branch {
    flex: 0 0 22px;
    color: #8296a5;
    font-weight: 700;
}

.products-services-internal-badge {
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #475467;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.products-services-tree-path {
    display: block;
    margin-top: 2px;
    color: #82909a;
    font-size: 11px;
}

.products-services-table th:nth-child(4),
.products-services-table td:nth-child(4) {
    width: 112px;
    text-align: center;
}

.products-services-table th:nth-child(5),
.products-services-table td:nth-child(5) {
    width: 130px;
}

.product-service-row-actions {
    min-width: 72px;
}

.product-service-inline-form {
    display: inline-flex;
}

.products-services-empty-state {
    height: 72px !important;
    color: #75838c !important;
    text-align: center;
}

.competence-toolbar {
    display: flex;
    gap: 28px;
    align-items: center;
    margin-bottom: 32px;
}

.competences-table-card {
    background: transparent;
}

.competences-table th,
.competences-table td {
    padding-right: 12px;
    padding-left: 12px;
}

.competences-table td {
    height: 42px;
}

.competences-table th:nth-child(2),
.competences-table td:nth-child(2) {
    width: 112px;
    text-align: center;
}

.competence-inline-form {
    display: inline-flex;
}

.competence-row-actions {
    white-space: nowrap;
}

.competences-empty-state {
    height: 72px !important;
    color: #75838c !important;
    text-align: center;
}

.resources-empty-state {
    height: 72px !important;
    color: #75838c !important;
    text-align: center;
}

.competence-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.competence-modal-card {
    width: min(420px, calc(100vw - 290px));
}

.product-service-modal {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 42px 32px 42px 248px;
}

.product-service-modal.is-open {
    display: flex;
}

.product-service-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
}

.product-service-modal-card {
    position: relative;
    z-index: 1;
    width: min(520px, calc(100vw - 290px));
    max-height: calc(100vh - 74px);
    overflow: auto;
    padding: 38px 48px 34px;
    border: 0;
    border-radius: 48px;
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(24, 42, 57, 0.16);
}

.product-service-modal-card h2 {
    margin: 0 0 24px;
    color: #2f5f95;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

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

.product-service-form-grid .product-service-name-field,
.product-service-form-grid .product-service-parent-field {
    grid-column: 1 / -1;
}

.product-service-modal-actions {
    margin-top: 28px;
}

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

.client-modal.is-open {
    display: flex;
}

.client-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.32);
}

.client-modal-card {
    position: relative;
    z-index: 1;
    width: min(700px, calc(100vw - 290px));
    max-height: calc(100vh - 74px);
    overflow: auto;
    padding: 38px 52px 34px;
    border: 0;
    border-radius: 48px;
    background: #ffffff;
    box-shadow: 0 28px 70px rgba(24, 42, 57, 0.16);
}

.client-modal-card h2 {
    margin: 0 0 18px 6px;
    color: #2f5f95;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.client-contact-modal-card {
    width: min(520px, calc(100vw - 290px));
}

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

.client-contact-form-grid .field:first-child,
.client-contact-form-grid .field:last-child {
    grid-column: 1 / -1;
}

.client-form-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px 10px;
}

.client-form-grid > .field {
    grid-column: span 2;
}

.client-form-grid .client-name-field,
.client-form-grid .client-type-field {
    grid-column: span 3;
}

.client-form-grid .client-pec-field,
.client-form-grid .client-notes-field {
    grid-column: 1 / -1;
}

.client-form-grid .client-pec-field input,
.client-form-grid .client-notes-field textarea {
    width: 100%;
}

.client-form-grid .client-address-field {
    grid-column: span 5;
}

.client-form-grid .client-postal-code-field {
    grid-column: span 1;
}

.client-modal-separator {
    margin: 22px 0 18px;
    border: 0;
    border-top: 1px solid #b8c7d3;
}

.client-contacts {
    display: grid;
    gap: 17px;
}

.client-contact {
    position: relative;
    min-width: 0;
    padding: 0;
    border: 0;
}

.client-contact + .client-contact {
    padding-top: 17px;
    border-top: 1px dashed #d0d9de;
}

.client-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 14px;
}

.client-contact-remove {
    position: absolute;
    top: -3px;
    right: -25px;
    display: grid;
    width: 22px;
    height: 22px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    color: #e4434a;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.client-contact + .client-contact .client-contact-remove {
    top: 14px;
}

.add-client-contact {
    display: inline-flex;
    gap: 10px;
    margin: 24px 0 0 2px;
    padding: 0;
    align-items: center;
    border: 0;
    background: transparent;
    color: #426b9a;
    cursor: pointer;
    font-size: 14px;
}

.add-client-contact span {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: #2f5f95;
    color: #ffffff;
    font-size: 17px;
    line-height: 1;
}

.client-modal-actions {
    margin: 24px 0 0;
}

.dashboard-page {
    width: min(100%, 1440px);
    padding: 0 32px 48px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.dashboard-heading h1 {
    margin: 2px 0 6px;
    color: #244f72;
    font-size: clamp(30px, 4vw, 40px);
    letter-spacing: -0.035em;
}

.dashboard-heading > p:last-child {
    margin: 0;
    color: #657166;
}

.dashboard-eyebrow {
    margin: 0;
    color: #728864;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.dashboard-customize-button {
    flex: 0 0 auto;
}

.dashboard-toolbar {
    margin-bottom: 22px;
    padding: 16px 18px;
    border: 1px solid #dce5e1;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(34, 69, 54, 0.045);
}

.dashboard-period-form {
    display: flex;
    gap: 18px;
    justify-content: space-between;
    align-items: flex-end;
}

.dashboard-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dashboard-preset {
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #f2f6f3;
    color: #486052;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
}

.dashboard-preset:hover,
.dashboard-preset:focus-visible,
.dashboard-preset.is-active {
    border-color: #9eb797;
    background: #e8f0e7;
    color: #25452e;
}

.dashboard-date-range {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.dashboard-date-range label {
    display: grid;
    gap: 5px;
    color: #66756a;
    font-size: 12px;
    font-weight: 650;
}

.dashboard-date-range input {
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid #cdd9d3;
    border-radius: 8px;
    background: #ffffff;
    color: #294436;
    font: inherit;
}

.dashboard-period-summary {
    margin: 10px 0 0;
    color: #8a9890;
    font-size: 12px;
}

.dashboard-notice {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #e7cfa0;
    border-radius: 10px;
    background: #fff9ec;
    color: #705322;
    font-size: 14px;
}

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

.dashboard-card {
    grid-column: span 3;
    min-width: 0;
    padding: 20px;
    border: 1px solid #dce5e1;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(34, 69, 54, 0.05);
}

.dashboard-card-medium {
    grid-column: span 6;
}

.dashboard-card-wide {
    grid-column: span 12;
}

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

.dashboard-card-heading h2 {
    margin: 3px 0 0;
    color: #274936;
    font-size: 18px;
    line-height: 1.25;
}

.dashboard-card-label {
    margin: 0;
    color: #657166;
    font-size: 13px;
    font-weight: 650;
}

.dashboard-card-period {
    padding: 4px 7px;
    border-radius: 6px;
    background: #f1f5f2;
    color: #7b8980;
    font-size: 11px;
    white-space: nowrap;
}

.dashboard-card-value {
    margin: 4px 0 0;
    color: #244f72;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 750;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.dashboard-card-value.is-positive,
.dashboard-table .is-positive {
    color: #2b7247;
}

.dashboard-card-value.is-negative,
.dashboard-table .is-negative {
    color: #a43d3d;
}

.dashboard-card-note {
    margin: 10px 0 0;
    color: #7d8e84;
    font-size: 12px;
    line-height: 1.5;
}

.dashboard-card-link {
    display: inline-block;
    margin-top: 12px;
    color: #38698e;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.dashboard-card-heading .dashboard-card-link {
    margin-top: 2px;
}

.dashboard-card-link:hover,
.dashboard-card-link:focus-visible {
    text-decoration: underline;
}

.dashboard-alert-total {
    display: grid;
    min-width: 42px;
    height: 42px;
    padding: 0 8px;
    place-items: center;
    border-radius: 50%;
    background: #f8e8e5;
    color: #9b3f37;
    font-size: 20px;
    font-weight: 750;
}

.dashboard-alert-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-alert-list > div {
    display: grid;
    gap: 2px;
    padding: 12px;
    border-radius: 10px;
    background: #f7f9f7;
}

.dashboard-alert-list strong {
    color: #7e3b35;
    font-size: 20px;
}

.dashboard-alert-list span {
    color: #728078;
    font-size: 12px;
}

.dashboard-chart {
    position: relative;
    min-height: 240px;
}

.dashboard-chart-svg {
    display: block;
    width: 100%;
    min-width: 560px;
    overflow: visible;
}

.dashboard-chart-grid line {
    stroke: #e7eeea;
    stroke-width: 1;
}

.dashboard-chart-grid text,
.dashboard-chart-labels text {
    fill: #819087;
    font-size: 10px;
}

.dashboard-chart-line {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: opacity 160ms ease;
}

.dashboard-chart-line-revenues {
    stroke: #315b3a;
}

.dashboard-chart-line-costs {
    stroke: #d09648;
}

.dashboard-chart-point {
    stroke: #ffffff;
    stroke-width: 2;
    cursor: pointer;
    outline: none;
    transition: r 120ms ease, opacity 160ms ease;
}

.dashboard-chart-point:hover,
.dashboard-chart-point:focus {
    r: 7;
}

.dashboard-chart-point-revenues {
    fill: #315b3a;
}

.dashboard-chart-point-costs {
    fill: #d09648;
}

.dashboard-chart.is-revenues-hidden .dashboard-chart-line-revenues,
.dashboard-chart.is-revenues-hidden .dashboard-chart-point-revenues,
.dashboard-chart.is-costs-hidden .dashboard-chart-line-costs,
.dashboard-chart.is-costs-hidden .dashboard-chart-point-costs {
    opacity: 0.08;
    pointer-events: none;
}

.dashboard-chart-legend {
    display: flex;
    gap: 12px;
}

.dashboard-chart-legend button {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 3px;
    border: 0;
    background: transparent;
    color: #64756b;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
}

.dashboard-chart-legend button.is-muted {
    opacity: 0.45;
}

.dashboard-chart-legend span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.dashboard-chart-legend .is-revenues {
    background: #315b3a;
}

.dashboard-chart-legend .is-costs {
    background: #d09648;
}

.dashboard-chart-tooltip {
    position: absolute;
    z-index: 2;
    max-width: 180px;
    padding: 7px 9px;
    border-radius: 7px;
    background: #173321;
    color: #ffffff;
    font-size: 11px;
    pointer-events: none;
    transform: translate(-50%, calc(-100% - 10px));
}

.dashboard-status-total {
    color: #315b3a;
    font-size: 24px;
}

.dashboard-status-bar {
    display: flex;
    height: 12px;
    margin: 18px 0;
    overflow: hidden;
    border-radius: 999px;
    background: #eef2ef;
}

.dashboard-status-bar span {
    min-width: 0;
}

.dashboard-status-bar .is-in_partenza,
.dashboard-status-list .is-in_partenza {
    background: #aebfca;
}

.dashboard-status-bar .is-attivo,
.dashboard-status-list .is-attivo {
    background: #5f9467;
}

.dashboard-status-bar .is-in_chiusura,
.dashboard-status-list .is-in_chiusura {
    background: #d2a454;
}

.dashboard-status-bar .is-terminato,
.dashboard-status-list .is-terminato {
    background: #6f7f76;
}

.dashboard-status-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dashboard-status-list li,
.dashboard-status-list span {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-status-list span {
    gap: 8px;
    color: #607167;
    font-size: 12px;
}

.dashboard-status-list i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dashboard-status-list strong {
    color: #294436;
    font-size: 13px;
}

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

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    color: #52645a;
    font-size: 12px;
}

.dashboard-table th,
.dashboard-table td {
    padding: 11px 10px;
    border-bottom: 1px solid #e8eeea;
    text-align: left;
}

.dashboard-table thead th {
    color: #829087;
    font-size: 10px;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.dashboard-table tbody th a {
    color: #315e7d;
    text-decoration: none;
}

.dashboard-table tbody th small {
    display: block;
    margin-top: 2px;
    color: #8a9890;
    font-weight: 400;
}

.dashboard-risk-badge {
    display: inline-flex;
    padding: 3px 7px;
    border-radius: 999px;
    background: #f8e8e5;
    color: #95463e;
    font-size: 10px;
    font-weight: 750;
}

.dashboard-deadline-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dashboard-deadline-list li {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid #e9eeeb;
}

.dashboard-deadline-list time {
    display: grid;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    background: #edf3ee;
    color: #315b3a;
    font-size: 12px;
    font-weight: 750;
}

.dashboard-deadline-list span {
    min-width: 0;
}

.dashboard-deadline-list strong,
.dashboard-deadline-list small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-deadline-list strong {
    color: #344d3f;
    font-size: 12px;
}

.dashboard-deadline-list small {
    margin-top: 2px;
    color: #849189;
    font-size: 10px;
}

.dashboard-deadline-list em {
    color: #8c7040;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
}

.dashboard-widget-empty,
.dashboard-empty {
    padding: 26px;
    border: 1px dashed #cbd8d0;
    border-radius: 12px;
    background: #f8faf8;
    color: #75847b;
    text-align: center;
}

.dashboard-empty h2 {
    margin: 0 0 6px;
    color: #365342;
}

.dashboard-empty p,
.dashboard-widget-empty {
    margin: 0;
}

.dashboard-customizer {
    position: fixed;
    z-index: 60;
    inset: 0;
    visibility: hidden;
}

body.dashboard-customizer-open {
    overflow: hidden;
}

.dashboard-customizer.is-open {
    visibility: visible;
}

.dashboard-customizer-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(18, 35, 25, 0.46);
    opacity: 0;
    cursor: default;
    transition: opacity 180ms ease;
}

.dashboard-customizer.is-open .dashboard-customizer-backdrop {
    opacity: 1;
}

.dashboard-customizer-panel {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    width: min(640px, 100%);
    height: 100%;
    flex-direction: column;
    overflow: auto;
    background: #ffffff;
    box-shadow: -16px 0 50px rgba(20, 43, 29, 0.18);
    transform: translateX(100%);
    transition: transform 220ms ease;
}

.dashboard-customizer.is-open .dashboard-customizer-panel {
    transform: translateX(0);
}

.dashboard-customizer-panel > header {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 28px;
    border-bottom: 1px solid #e4ebe6;
}

.dashboard-customizer-panel h2 {
    margin: 3px 0 6px;
    color: #284c36;
}

.dashboard-customizer-panel header p:last-child {
    margin: 0;
    color: #718078;
    font-size: 13px;
}

.dashboard-customizer-close {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #eef3ef;
    color: #52675a;
    cursor: pointer;
    font-size: 22px;
}

.dashboard-customizer-panel form {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
}

.dashboard-customizer-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 20px 28px;
    list-style: none;
}

.dashboard-customizer-list li {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid #dce5df;
    border-radius: 10px;
    background: #ffffff;
}

.dashboard-customizer-list li.is-dragging {
    opacity: 0.5;
}

.dashboard-drag-handle {
    color: #9eaaa3;
    cursor: grab;
}

.dashboard-widget-toggle {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.dashboard-widget-toggle input {
    margin-top: 3px;
}

.dashboard-widget-toggle strong,
.dashboard-widget-toggle small {
    display: block;
}

.dashboard-widget-toggle strong {
    color: #334e3e;
    font-size: 13px;
}

.dashboard-widget-toggle small {
    margin-top: 2px;
    color: #849087;
    font-size: 10px;
}

.dashboard-width-field {
    display: grid;
    gap: 3px;
    color: #7c8a82;
    font-size: 9px;
    text-transform: uppercase;
}

.dashboard-width-field select {
    padding: 6px;
    border: 1px solid #cfdad3;
    border-radius: 7px;
    background: #ffffff;
    color: #415a4b;
    font: inherit;
    font-size: 11px;
    text-transform: none;
}

.dashboard-order-buttons {
    display: grid;
    grid-template-columns: repeat(2, 27px);
}

.dashboard-order-buttons button {
    height: 27px;
    padding: 0;
    border: 1px solid #d5dfd9;
    background: #f8faf8;
    color: #52675a;
    cursor: pointer;
}

.dashboard-customizer-panel footer {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: auto;
    padding: 18px 28px;
    border-top: 1px solid #e4ebe6;
    background: #ffffff;
}

.dashboard-customizer-panel footer > div {
    display: flex;
    gap: 8px;
}

.daily-entry-page {
    width: 100%;
    max-width: none;
    padding-left: 32px;
}

.daily-entry-target-banner {
    margin-bottom: 20px;
    padding: 12px 16px;
    border: 1px solid #c8d4dc;
    border-radius: 10px;
    background: #f8fbfd;
    color: #426176;
    font-size: 14px;
    font-weight: 600;
}

.daily-entry-lock-alert {
    margin-bottom: 20px;
    padding: 12px 16px;
    border: 1px solid #efd59f;
    border-radius: 10px;
    background: #fff7e6;
    color: #7a5520;
    font-size: 14px;
    font-weight: 600;
}

.daily-entry-header {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.daily-entry-date {
    display: flex;
    gap: 12px;
    align-items: center;
    color: #2c638f;
    font-size: clamp(24px, 3vw, 32px);
}

.daily-entry-date-label {
    font-weight: 500;
}

.date-nav-button {
    display: inline-flex;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #2c638f;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.date-picker-wrap {
    position: relative;
    display: inline-flex;
}

.date-picker-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.date-picker-button {
    display: inline-flex;
    gap: 10px;
    min-height: 40px;
    padding: 0 16px;
    align-items: center;
    border: 1px solid #c8d4dc;
    border-radius: 10px;
    background: #ffffff;
    color: #426176;
    cursor: pointer;
    font-size: 14px;
}

.date-picker-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('../images/icon-calendar.png') center / contain no-repeat;
}

.daily-entry-top {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 24px;
    margin-bottom: 28px;
}

.clock-panel,
.week-summary,
.timesheet-panel {
    border: 1px solid #d9e2e8;
    border-radius: 16px;
    background: #ffffff;
}

.clock-panel {
    padding: 24px;
    background: #edf5fb;
}

.clock-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 20px;
    padding: 12px;
    border: 2px solid transparent;
    border-radius: 16px;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.clock-form label {
    display: grid;
    gap: 8px;
    color: #426176;
    font-size: 14px;
    font-weight: 600;
}

.clock-form input {
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #c8d4dc;
    border-radius: 10px;
    background: #ffffff;
}

.clock-add-button {
    min-width: 160px;
}

.clock-form-actions {
    display: flex;
    grid-column: 1 / -1;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
}

.clock-form.is-editing {
    background: #fff8df;
    border-color: #e2b84f;
    box-shadow: 0 8px 18px rgba(148, 111, 20, 0.16);
}

.clock-form input.is-invalid {
    border-color: #c44;
}

.clock-delete-form {
    display: inline;
    margin: 0;
}

.clock-row-empty {
    color: #6b7f90;
    font-style: italic;
}

.clock-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.clock-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(66, 97, 118, 0.12);
    color: #29333a;
    font-size: 14px;
}

.clock-hours {
    font-weight: 600;
}

.clock-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.clock-total {
    margin: 16px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(66, 97, 118, 0.18);
    color: #29333a;
    font-size: 18px;
    font-weight: 700;
    text-align: right;
}

.week-summary {
    padding: 24px;
}

.week-summary h2 {
    margin: 0 0 20px;
    color: #2c638f;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.week-summary-grid {
    display: grid;
    gap: 16px;
}

.week-summary-card {
    padding: 20px;
    border: 1px solid #e2e8ec;
    border-radius: 12px;
    background: #f7f9fb;
}

.week-summary-label {
    margin: 0 0 8px;
    color: #657166;
    font-size: 14px;
}

.week-summary-value {
    margin: 0;
    color: #29333a;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
}

.week-summary-value-highlight {
    color: #a43d3d;
}

.timesheet-panel {
    padding: 24px;
}

.timesheet-panel h2 {
    margin: 0 0 20px;
    color: #2c638f;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.timesheet-form {
    display: grid;
    grid-template-columns: minmax(170px, 1.25fr) minmax(170px, 1.25fr) 100px minmax(140px, 0.9fr) auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 20px;
    padding: 12px;
    border: 2px solid transparent;
    border-radius: 16px;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.timesheet-form.is-editing {
    background: #fff8df;
    border-color: #e2b84f;
    box-shadow: 0 8px 18px rgba(148, 111, 20, 0.16);
}

.timesheet-form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
}

.timesheet-form label {
    display: grid;
    min-width: 0;
    gap: 8px;
    color: #426176;
    font-size: 14px;
    font-weight: 600;
}

.timesheet-form select,
.timesheet-form input {
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #c8d4dc;
    border-radius: 10px;
    background: #ffffff;
}

.timesheet-table th:last-child,
.timesheet-table td:last-child {
    width: 90px;
}

.delete-action {
    display: inline-block;
    width: 16px;
    height: 18px;
    background: url('../images/icon-delete.png') center / contain no-repeat;
}

.timesheet-totals {
    display: flex;
    gap: 32px;
    justify-content: flex-end;
    margin-top: 18px;
    color: #426176;
    font-size: 15px;
}

.timesheet-total-inserted {
    color: #a43d3d;
    font-size: 18px;
}

.timesheet-total-registered {
    color: #2c638f;
    font-size: 18px;
}

.entry-summary-page {
    max-width: 1180px;
    padding-left: 32px;
    display: grid;
    gap: 28px;
}

.entry-summary-weekly,
.entry-summary-general {
    border: 1px solid #d9e2e8;
    border-radius: 16px;
    background: #ffffff;
    padding: 24px;
}

.entry-summary-weekly h2,
.entry-summary-general h2 {
    margin: 0 0 24px;
    color: #2c638f;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.entry-summary-general-header {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.entry-summary-general-heading {
    display: grid;
    gap: 6px;
}

.entry-summary-range-label {
    margin: 0;
    color: #426176;
    font-size: 15px;
    font-weight: 500;
}

.entry-summary-general h2 {
    margin: 0;
}

.entry-summary-board {
    display: grid;
    grid-template-columns: 140px repeat(7, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}

.entry-summary-week-controls {
    display: grid;
    gap: 16px;
    align-content: start;
    justify-items: center;
    min-height: 180px;
    padding: 12px 8px;
    color: #2c638f;
}

.entry-summary-week-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.entry-summary-week-label {
    min-width: 0;
    text-align: center;
    color: #2c638f;
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    line-height: 1.2;
}

.entry-summary-week-picker-wrap {
    position: relative;
    display: inline-flex;
}

.entry-summary-week-picker {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.entry-summary-week-picker-button {
    min-width: 40px;
    min-height: 40px;
    padding: 0;
}

.entry-summary-today-button {
    display: inline-flex;
    min-height: 40px;
    padding: 0 16px;
    align-items: center;
    border: 1px solid #c8d4dc;
    border-radius: 10px;
    background: #ffffff;
    color: #426176;
    text-decoration: none;
    font-size: 14px;
}

.entry-summary-day {
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 12px;
    min-height: 180px;
    padding: 12px 10px;
    border: 1px solid #e3e9ee;
    border-radius: 12px;
    background: #f8fbfd;
}

.entry-summary-day-header {
    display: grid;
    gap: 4px;
    text-align: center;
    color: #426176;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.entry-summary-day-number {
    font-size: 18px;
    color: #29333a;
}

.entry-summary-day-slots {
    display: grid;
    gap: 8px;
    align-content: start;
}

.entry-summary-day-empty {
    margin: 0;
    text-align: center;
    color: #9aa8b3;
}

.entry-summary-slot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 0;
    color: #29333a;
    font-size: 13px;
    text-align: center;
}

.entry-summary-day-edit {
    justify-self: center;
}

.entry-summary-totals-label,
.entry-summary-totals-value {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding-top: 16px;
    border-top: 1px solid #e3e9ee;
}

.entry-summary-totals-label {
    justify-content: flex-start;
    color: #426176;
    font-size: 13px;
    font-weight: 600;
}

.entry-summary-totals-value {
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.entry-summary-inseriti.is-match {
    color: #3d8b5a;
}

.entry-summary-inseriti.is-deficit {
    color: #c45a5a;
}

.entry-summary-registrati,
.entry-summary-ore {
    color: #2c638f;
}

.entry-summary-range-form {
    display: flex;
    align-items: flex-end;
}

.entry-summary-range-fields {
    display: flex;
    gap: 12px;
    align-items: end;
    flex-wrap: wrap;
}

.entry-summary-range-field {
    display: grid;
    gap: 8px;
    color: #426176;
    font-size: 14px;
    font-weight: 600;
}

.entry-summary-range-field input {
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #c8d4dc;
    border-radius: 10px;
    background-color: #ffffff;
    color: #29333a;
    font-size: 14px;
}

.date-range input,
.leave-date-field input,
.user-leave-form .leave-date-field input,
.entry-summary-range-field input {
    background-image: url('../images/icon-calendar-input.png');
    background-position: calc(100% - 23px) center;
    background-size: 17px 14px;
    background-repeat: no-repeat;
}

.date-range input[type="date"]::-webkit-calendar-picker-indicator,
.leave-date-field input[type="date"]::-webkit-calendar-picker-indicator,
.user-leave-form .leave-date-field input[type="date"]::-webkit-calendar-picker-indicator,
.entry-summary-range-field input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.entry-summary-range-apply {
    min-height: 40px;
}

.entry-summary-general-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.resource-timesheet-page {
    max-width: 1180px;
    padding-left: 32px;
    display: grid;
    gap: 28px;
}

.resource-timesheet-toolbar {
    display: flex;
    align-items: center;
}

.resource-timesheet-settings {
    gap: 10px;
    font-weight: 500;
}

.settings-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url('../images/icon-edit.png') center / contain no-repeat;
    filter: grayscale(1) brightness(0.55);
}

.resource-timesheet-section {
    border: 1px solid #d9e2e8;
    border-radius: 16px;
    background: #ffffff;
    padding: 24px;
}

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

.resource-timesheet-heading {
    display: grid;
    gap: 6px;
}

.resource-timesheet-section h2 {
    margin: 0;
    color: #2c638f;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.resource-timesheet-range-label {
    margin: 0;
    color: #426176;
    font-size: 15px;
    font-weight: 500;
}

.resource-timesheet-filters {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.resource-timesheet-date-picker-wrap {
    position: relative;
    display: inline-flex;
}

.resource-timesheet-date-picker {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.resource-timesheet-date-picker-button {
    font-size: 14px;
}

.resource-timesheet-resource-filter {
    display: grid;
    gap: 6px;
}

.resource-timesheet-resource-filter-label {
    color: #426176;
    font-size: 13px;
    font-weight: 600;
}

.resource-timesheet-dropdown {
    display: grid;
    gap: 6px;
}

.resource-timesheet-dropdown-wrap {
    position: relative;
}

.resource-timesheet-dropdown-toggle {
    display: inline-flex;
    gap: 10px;
    min-width: 220px;
    min-height: 40px;
    padding: 0 14px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #c8d4dc;
    border-radius: 10px;
    background: #ffffff;
    color: #426176;
    font-size: 14px;
    cursor: pointer;
}

.resource-timesheet-dropdown-toggle[aria-expanded="true"] {
    border-color: #2c638f;
}

.resource-timesheet-dropdown-caret {
    width: 8px;
    height: 8px;
    border-right: 2px solid #426176;
    border-bottom: 2px solid #426176;
    transform: rotate(45deg) translateY(-2px);
    flex-shrink: 0;
}

.resource-timesheet-dropdown-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 20;
    display: grid;
    gap: 12px;
    width: max-content;
    min-width: 240px;
    max-width: min(320px, calc(100vw - 48px));
    padding: 12px;
    border: 1px solid #c8d4dc;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(41, 51, 58, 0.12);
}

.resource-timesheet-dropdown-panel[hidden] {
    display: none !important;
}

.resource-timesheet-dropdown-hint {
    margin: 0;
    color: #426176;
    font-size: 12px;
    line-height: 1.4;
}

.resource-timesheet-dropdown-options {
    display: grid;
    gap: 2px;
    max-height: 220px;
    overflow-y: auto;
}

.resource-timesheet-dropdown-option {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 6px 4px;
    border-radius: 8px;
    color: #29333a;
    font-size: 14px;
    line-height: 1.3;
    cursor: pointer;
}

.resource-timesheet-dropdown-option:hover {
    background: #f8fbfd;
}

.resource-timesheet-dropdown-option input[type="checkbox"] {
    width: 16px;
    min-width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    border-radius: 4px;
    accent-color: #3da26b;
}

.resource-timesheet-dropdown-option span {
    display: inline;
    margin: 0;
    color: #29333a;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
}

.resource-timesheet-dropdown-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    padding-top: 4px;
    border-top: 1px solid #e3e9ee;
}

.resource-timesheet-dropdown-quick-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.resource-timesheet-dropdown-select-all,
.resource-timesheet-dropdown-show-all {
    border: 0;
    background: transparent;
    color: #426176;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
}

.resource-timesheet-dropdown-show-all {
    color: #2c638f;
    font-weight: 600;
}

.resource-timesheet-dropdown-apply {
    min-height: 34px;
    min-width: auto;
    padding: 0 14px;
}

.resource-timesheet-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    color: #2c638f;
    font-size: clamp(16px, 2vw, 22px);
}

.resource-timesheet-date-label {
    min-width: 0;
    text-align: center;
    font-size: inherit;
}

.resource-timesheet-period-label {
    font-size: clamp(14px, 1.8vw, 18px);
    line-height: 1.3;
}

.resource-timesheet-today-button {
    display: inline-flex;
    min-height: 36px;
    margin-top: 10px;
    padding: 0 16px;
    align-items: center;
    border: 1px solid #c8d4dc;
    border-radius: 10px;
    background: #ffffff;
    color: #426176;
    text-decoration: none;
    font-size: 14px;
}

.resource-timesheet-scroll {
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-color: #c8b8e8 #f3f0fa;
    scrollbar-width: thin;
}

.resource-timesheet-scroll::-webkit-scrollbar {
    height: 8px;
}

.resource-timesheet-scroll::-webkit-scrollbar-track {
    background: #f3f0fa;
    border-radius: 999px;
}

.resource-timesheet-scroll::-webkit-scrollbar-thumb {
    background: #c8b8e8;
    border-radius: 999px;
}

.resource-timesheet-board {
    display: grid;
    grid-template-columns: 140px repeat(var(--resource-timesheet-columns, 1), minmax(88px, 1fr));
    grid-template-rows: auto minmax(100px, 1fr) auto 36px 36px 36px;
    min-width: max(100%, calc(140px + var(--resource-timesheet-columns, 1) * 100px));
    border: 1px solid #e3e9ee;
    border-radius: 12px;
    overflow: hidden;
}

.resource-timesheet-board.is-period {
    grid-template-rows: auto minmax(40px, 1fr) 36px 36px 36px;
}

.resource-timesheet-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    border-right: 1px solid #e3e9ee;
    border-bottom: 1px solid #e3e9ee;
    background: #ffffff;
    min-width: 0;
}

.resource-timesheet-corner {
    position: sticky;
    left: 0;
    z-index: 2;
    justify-content: flex-start;
    align-items: flex-start;
    background: #ffffff;
    box-shadow: 1px 0 0 #e3e9ee;
}

.resource-timesheet-resource {
    flex-direction: column;
    background: #f8fbfd;
}

.resource-timesheet-resource.is-alt {
    background: #ffffff;
}

.resource-timesheet-corner.row-head {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 12px;
}

.resource-timesheet-resource.row-head {
    align-items: center;
    justify-content: flex-start;
    min-height: 96px;
    padding-top: 14px;
}

.resource-timesheet-resource.row-slots {
    align-items: stretch;
    justify-content: flex-start;
}

.resource-timesheet-resource.row-edit {
    min-height: 44px;
}

.resource-timesheet-corner.row-slots,
.resource-timesheet-corner.row-edit,
.resource-timesheet-corner.row-spacer {
    background: #ffffff;
}

.resource-timesheet-resource.row-spacer {
    min-height: 24px;
}

.resource-timesheet-corner.row-inseriti,
.resource-timesheet-corner.row-registrati,
.resource-timesheet-corner.row-ore {
    justify-content: flex-start;
    padding-left: 12px;
    color: #426176;
    font-size: 13px;
    font-weight: 600;
}

.resource-timesheet-board .row-inseriti {
    border-top: 2px solid #d9e2e8;
}

.resource-timesheet-resource.row-inseriti,
.resource-timesheet-resource.row-registrati,
.resource-timesheet-resource.row-ore {
    min-height: 36px;
}

.resource-timesheet-name {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    color: #426176;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    min-height: 72px;
}

.resource-timesheet-slots {
    display: grid;
    gap: 8px;
    width: 100%;
}

.resource-timesheet-slot-empty {
    margin: 0;
    text-align: center;
    color: #9aa8b3;
}

.resource-timesheet-slot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 0;
    color: #29333a;
    font-size: 13px;
    text-align: center;
}

.resource-timesheet-edit {
    flex-shrink: 0;
}

.resource-timesheet-empty {
    margin: 0;
    color: #9aa8b3;
    font-size: 13px;
    text-align: center;
}

.resource-timesheet-value {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

.resource-timesheet-inseriti.is-match {
    color: #3d8b5a;
}

.resource-timesheet-inseriti.is-deficit {
    color: #c45a5a;
}

.resource-timesheet-registrati,
.resource-timesheet-ore {
    color: #2c638f;
}

.resource-timesheet-board .row-ore {
    border-bottom: 0;
}

.resource-timesheet-range-form {
    display: flex;
}

.resource-timesheet-range-fields {
    display: flex;
    gap: 12px;
    align-items: end;
    flex-wrap: wrap;
}

.resource-timesheet-range-field {
    display: grid;
    gap: 6px;
    color: #426176;
    font-size: 13px;
    font-weight: 600;
}

.resource-timesheet-range-field input {
    min-width: 160px;
    min-height: 40px;
    padding: 0 44px 0 14px;
    border: 1px solid #c8d4dc;
    border-radius: 10px;
    background-color: #ffffff;
    color: #29333a;
    font-size: 14px;
}

.resource-timesheet-range-field input {
    background-image: url('../images/icon-calendar-input.png');
    background-position: calc(100% - 23px) center;
    background-size: 17px 14px;
    background-repeat: no-repeat;
}

.resource-timesheet-range-field input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.resource-timesheet-range-apply {
    min-height: 40px;
}

@media (max-width: 980px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
        margin: 12px;
    }

    .sidebar-nav {
        flex: none;
        overflow: visible;
    }

    .main-panel,
    .resources-page,
    .leave-page,
    .projects-page,
    .clients-page,
    .products-services-page,
    .competences-page,
    .operational-projects-page,
    .progetto-operativo-dettaglio-page,
    .task-page,
    .dashboard-page,
    .daily-entry-page {
        padding: 24px;
    }

    .entry-summary-page,
    .resource-timesheet-page {
        padding: 24px;
    }

    .entry-summary-board {
        grid-template-columns: 1fr;
    }

    .entry-summary-week-controls {
        min-height: 0;
        padding: 0 0 8px;
    }

    .entry-summary-day {
        grid-column: 1 / -1;
    }

    .entry-summary-totals-label,
    .entry-summary-totals-value {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-top: 8px;
    }

    .entry-summary-totals-label {
        border-top: 1px solid #eef2f5;
    }

    .entry-summary-totals-value {
        padding-top: 0;
        border-top: 0;
        padding-bottom: 8px;
    }

    .entry-summary-general-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid,
    .daily-entry-top {
        grid-template-columns: 1fr;
    }

    .clock-form,
    .timesheet-form {
        grid-template-columns: 1fr;
    }

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

    .leave-annual-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .user-leave-form-notes {
        grid-column: auto;
    }

    .resource-toolbar,
    .leave-section-heading,
    .project-toolbar,
    .client-toolbar,
    .product-service-toolbar,
    .competence-toolbar,
    .task-toolbar {
        flex-wrap: wrap;
        gap: 14px;
    }

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

    .resource-modal,
    .leave-modal,
    .project-modal,
    .task-modal,
    .client-modal,
    .product-service-modal {
        padding: 20px;
    }

    .resource-modal-card,
    .leave-modal-card,
    .project-modal-card,
    .task-modal-card,
    .client-modal-card,
    .product-service-modal-card {
        grid-template-columns: 1fr;
        width: min(760px, calc(100vw - 40px));
        padding: 32px;
        border-radius: 28px;
    }

    .profile-column {
        padding-top: 0;
    }

    .modal-grid-two,
    .schedule-grid,
    .leave-modal-grid,
    .project-form-grid,
    .task-form-grid,
    .client-form-grid {
        grid-template-columns: 1fr;
    }

    .task-resource-editor {
        grid-template-columns: 1fr;
    }

    .task-options {
        grid-column: auto;
    }

    .task-options {
        align-items: stretch;
        flex-direction: column;
        gap: 16px 28px;
    }

    .task-related-field {
        flex-basis: auto;
        min-width: 0;
    }

    .progetto-dettaglio-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .client-form-grid > .field,
    .client-form-grid .client-name-field,
    .client-form-grid .client-type-field,
    .client-form-grid .client-pec-field,
    .client-form-grid .client-notes-field,
    .client-form-grid .client-address-field,
    .client-form-grid .client-postal-code-field {
        grid-column: auto;
    }

    .cliente-dettaglio-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .cliente-dettaglio-edit-client {
        width: 100%;
    }

    .cliente-dettaglio-contacts-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .cliente-dettaglio-contacts-heading .toolbar-button {
        width: 100%;
    }

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

    .cliente-dettaglio-summary {
        grid-template-columns: 1fr;
    }

    .cliente-dettaglio-meta {
        grid-template-columns: 1fr;
    }

    .leave-request-form,
    .leave-form-grid {
        grid-template-columns: 1fr;
    }

    .modal-separator {
        margin-left: 0;
    }

    .task-toolbar-actions {
        width: 100%;
    }

    .task-project-filter {
        flex: 1 1 220px;
    }
}

@media (max-width: 640px) {
    .task-grid {
        grid-template-columns: 1fr;
    }

    .client-contact-grid {
        grid-template-columns: 1fr;
    }

    .client-modal-card {
        padding: 32px 28px;
    }

    .client-contact-remove {
        right: -18px;
    }
}

.company-calendar-page {
    display: grid;
    gap: 28px;
}

.company-calendar-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 28px;
}

.company-calendar-year-nav {
    display: inline-flex;
    align-items: center;
    gap: 18px;
}

.company-calendar-year-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #8a9aa5;
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
}

.company-calendar-year-arrow:hover {
    color: #2f5f95;
}

.company-calendar-year {
    color: #1f3f66;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}

.company-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    margin-right: auto;
    color: #4f6475;
    font-size: 13px;
}

.company-calendar-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.company-calendar-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.company-calendar-legend-dot.is-closure {
    background: #2e7d4f;
}

.company-calendar-legend-dot.is-bridge {
    background: #a9c65a;
}

.company-calendar-legend-dot.is-holiday {
    background: #a43d3d;
}

.company-calendar-add-button {
    margin-left: auto;
}

.company-calendar-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 36px;
}

.company-calendar-month {
    display: grid;
    gap: 10px;
}

.company-calendar-month-title {
    margin: 0;
    color: #2f5f95;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.company-calendar-weekdays,
.company-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.company-calendar-weekdays span {
    color: #7b8b97;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.company-calendar-day {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #2f4a5f;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.company-calendar-day.is-empty {
    visibility: hidden;
    pointer-events: none;
}

.company-calendar-day.is-weekend {
    color: #a43d3d;
}

.company-calendar-day.is-holiday {
    background: #a43d3d;
    color: #ffffff;
}

.company-calendar-day.is-closure {
    background: #2e7d4f;
    color: #ffffff;
}

.company-calendar-day.is-bridge {
    background: #a9c65a;
    color: #ffffff;
}

.company-calendar-day:hover:not(.is-empty) {
    box-shadow: inset 0 0 0 1px rgba(47, 95, 149, 0.25);
}

.company-calendar-modal-card h2 {
    margin-bottom: 22px;
}

.company-calendar-modal-card .field textarea {
    box-sizing: border-box;
    width: 100%;
}

.company-calendar-period {
    margin-bottom: 16px;
}

.company-calendar-modal-actions {
    margin-top: 24px;
}

@media (max-width: 1100px) {
    .company-calendar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .company-calendar-add-button {
        margin-left: 0;
    }
}

@media (max-width: 720px) {
    .company-calendar-grid {
        grid-template-columns: 1fr;
    }

    .company-calendar-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .company-calendar-legend {
        margin-right: 0;
    }
}

.project-income-statement-page {
    padding: 28px 32px 40px;
}

.project-income-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.project-income-heading h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 600;
    color: #1f2933;
}

.project-income-heading p {
    margin: 0;
    color: #667085;
    font-size: 14px;
}

.project-income-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}

.project-income-project-field {
    min-width: 280px;
    margin: 0;
}

.project-income-project-field select {
    width: 100%;
    min-width: 280px;
}

.project-income-empty {
    padding: 48px 24px;
    border: 1px dashed #d0d5dd;
    border-radius: 12px;
    background: #fafbfc;
    text-align: center;
    color: #667085;
}

.project-income-notice {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 14px;
}

.project-income-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.project-income-summary-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
}

.project-income-summary-card span {
    font-size: 13px;
    color: #667085;
}

.project-income-summary-card strong {
    font-size: 22px;
    font-weight: 600;
    color: #1f2933;
}

.project-income-summary-card strong small {
    margin-left: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #667085;
}

.project-income-summary-card-highlight {
    border-color: #c7d7fe;
    background: #f5f8ff;
}

.project-income-table-card h2 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: #1f2933;
}

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

.project-income-table th,
.project-income-table td {
    white-space: nowrap;
}

.project-income-table tbody th {
    font-weight: 500;
    color: #344054;
}

.project-income-task-row:nth-child(even) {
    background: #fafbfc;
}

.project-income-unallocated-row th,
.project-income-unallocated-row td {
    font-style: italic;
    color: #667085;
}

.project-income-total-row th,
.project-income-total-row td {
    border-top: 2px solid #d0d5dd;
    background: #f2f4f7;
    font-weight: 600;
}

.project-income-margin.is-positive {
    color: #027a48;
}

.project-income-margin.is-negative {
    color: #b42318;
}

@media (max-width: 1080px) {
    .project-income-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .project-income-statement-page {
        padding: 20px 16px 32px;
    }

    .project-income-header {
        flex-direction: column;
        align-items: stretch;
    }

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

.margin-erosion-page {
    padding: 28px 32px 40px;
}

.margin-erosion-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.margin-erosion-heading h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 600;
    color: #1f2933;
}

.margin-erosion-heading p {
    margin: 0;
    color: #667085;
    font-size: 14px;
}

.margin-erosion-threshold-note {
    margin-top: 8px !important;
    font-weight: 500;
    color: #344054 !important;
}

.margin-erosion-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}

.margin-erosion-project-field {
    min-width: 280px;
    margin: 0;
}

.margin-erosion-project-field select {
    width: 100%;
    min-width: 280px;
}

.margin-erosion-empty {
    padding: 48px 24px;
    border: 1px dashed #d0d5dd;
    border-radius: 12px;
    background: #fafbfc;
    text-align: center;
    color: #667085;
}

.margin-erosion-empty-inline {
    margin-top: 8px;
    padding: 32px 24px;
}

.margin-erosion-alert-banner {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #fecdca;
    background: #fef3f2;
    color: #b42318;
    font-size: 14px;
    font-weight: 500;
}

.margin-erosion-notice {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #fff7ed;
    color: #9a3412;
    font-size: 14px;
}

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

.margin-erosion-summary-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
}

.margin-erosion-summary-card span {
    color: #667085;
    font-size: 13px;
}

.margin-erosion-summary-card strong {
    font-size: 24px;
    font-weight: 600;
    color: #1f2933;
}

.margin-erosion-summary-card small {
    color: #98a2b3;
    font-size: 12px;
}

.margin-erosion-summary-card-highlight {
    border-color: #b2ddff;
    background: #f0f9ff;
}

.margin-erosion-margin.is-positive {
    color: #027a48;
}

.margin-erosion-margin.is-negative {
    color: #b42318;
}

.margin-erosion-chart-card,
.margin-erosion-table-card {
    margin-bottom: 0;
}

.margin-erosion-chart-note,
.margin-erosion-table-note {
    margin: 0 0 20px;
    color: #667085;
    font-size: 13px;
}

.margin-erosion-chart-wrap {
    overflow-x: auto;
    padding: 8px 0 4px;
}

.margin-erosion-chart-svg {
    display: block;
    width: 100%;
    max-width: 760px;
    height: auto;
}

.margin-erosion-chart-plot {
    fill: #fafbfc;
}

.margin-erosion-chart-grid {
    stroke: #e4e7ec;
    stroke-width: 1;
}

.margin-erosion-chart-axis-label {
    fill: #667085;
    font-size: 11px;
}

.margin-erosion-chart-axis-title {
    fill: #344054;
    font-size: 12px;
    font-weight: 500;
}

.margin-erosion-chart-ideal {
    stroke: #12b76a;
    stroke-width: 2;
    stroke-dasharray: 6 4;
}

.margin-erosion-chart-line {
    stroke: #1570ef;
    stroke-width: 2.5;
}

.margin-erosion-chart-point {
    fill: #1570ef;
    stroke: #fff;
    stroke-width: 1.5;
}

.margin-erosion-chart-point-current {
    fill: #b42318;
    stroke: #fff;
    stroke-width: 2;
}

.margin-erosion-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    color: #667085;
    font-size: 13px;
}

.margin-erosion-legend-line,
.margin-erosion-legend-dot {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

.margin-erosion-legend-line {
    width: 28px;
    height: 0;
    border-top: 2px solid transparent;
}

.margin-erosion-legend-ideal {
    border-top-color: #12b76a;
    border-top-style: dashed;
}

.margin-erosion-legend-actual {
    border-top-color: #1570ef;
}

.margin-erosion-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #b42318;
}

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

.margin-erosion-table th,
.margin-erosion-table td {
    white-space: nowrap;
}

.margin-erosion-table tbody th {
    font-weight: 500;
}

.margin-erosion-table tbody th a {
    color: #1570ef;
    text-decoration: none;
}

.margin-erosion-table tbody th a:hover {
    text-decoration: underline;
}

.margin-erosion-row-alert {
    background: #fef3f2;
}

.margin-erosion-row-risk {
    background: #fff7ed;
}

.margin-erosion-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.margin-erosion-badge-alert {
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fecdca;
}

.margin-erosion-badge-ok {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

.margin-erosion-badge-neutral {
    background: #f2f4f7;
    color: #667085;
    border: 1px solid #e4e7ec;
}

@media (max-width: 1080px) {
    .margin-erosion-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .margin-erosion-page {
        padding: 20px 16px 32px;
    }

    .margin-erosion-header {
        flex-direction: column;
        align-items: stretch;
    }

    .margin-erosion-summary {
        grid-template-columns: 1fr;
    }
}

.estimated-budget-page {
    padding: 28px 32px 40px;
}

.estimated-budget-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.estimated-budget-heading h1 {
    margin: 0 0 8px;
    color: #1f2933;
    font-size: 28px;
    font-weight: 600;
}

.estimated-budget-heading p {
    margin: 0;
    color: #667085;
    font-size: 14px;
}

.estimated-budget-heading .estimated-budget-method-note {
    margin-top: 8px;
    color: #344054;
    font-weight: 500;
}

.estimated-budget-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}

.estimated-budget-project-field {
    min-width: 280px;
    margin: 0;
}

.estimated-budget-task-field {
    min-width: 240px;
    margin: 0;
}

.estimated-budget-project-field select,
.estimated-budget-task-field select {
    width: 100%;
}

.estimated-budget-project-field select {
    min-width: 280px;
}

.estimated-budget-empty {
    padding: 48px 24px;
    border: 1px dashed #d0d5dd;
    border-radius: 12px;
    background: #fafbfc;
    color: #667085;
    text-align: center;
}

.estimated-budget-empty-inline {
    margin-top: 8px;
    padding: 32px 24px;
}

.estimated-budget-alert,
.estimated-budget-notice {
    margin: 0 0 20px;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 14px;
}

.estimated-budget-alert {
    border: 1px solid #fecdca;
    background: #fef3f2;
    color: #b42318;
    font-weight: 500;
}

.estimated-budget-notice {
    background: #fff7ed;
    color: #9a3412;
}

.estimated-budget-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.estimated-budget-summary-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px 20px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
}

.estimated-budget-summary-card span {
    color: #667085;
    font-size: 13px;
}

.estimated-budget-summary-card strong {
    color: #1f2933;
    font-size: 23px;
    font-weight: 600;
}

.estimated-budget-summary-card small {
    color: #667085;
    font-size: 12px;
}

.estimated-budget-summary-card-highlight {
    border-color: #b2ddff;
    background: #f0f9ff;
}

.estimated-budget-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.8fr) minmax(520px, 1.5fr);
    gap: 20px;
    margin-bottom: 24px;
}

.estimated-budget-ipp-card,
.estimated-budget-forecast-card,
.estimated-budget-table-card {
    margin-bottom: 0;
}

.estimated-budget-ipp-card h2,
.estimated-budget-forecast-card h2,
.estimated-budget-table-card h2 {
    margin: 0 0 8px;
    color: #1f2933;
    font-size: 18px;
    font-weight: 600;
}

.estimated-budget-ipp-card > p,
.estimated-budget-forecast-card > p,
.estimated-budget-table-note {
    margin: 0 0 18px;
    color: #667085;
    font-size: 13px;
}

.estimated-budget-metrics-list {
    margin: 0;
}

.estimated-budget-metrics-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid #eaecf0;
}

.estimated-budget-metrics-list dt {
    color: #475467;
    font-size: 13px;
}

.estimated-budget-metrics-list dd {
    margin: 0;
    color: #1f2933;
    font-weight: 600;
    text-align: right;
}

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

.estimated-budget-scenario-table th,
.estimated-budget-scenario-table td,
.estimated-budget-task-table th,
.estimated-budget-task-table td,
.estimated-budget-overview-table th,
.estimated-budget-overview-table td {
    white-space: nowrap;
}

.estimated-budget-scenario-table tbody th,
.estimated-budget-task-table tbody th,
.estimated-budget-overview-table tbody th {
    font-weight: 500;
}

.estimated-budget-overview-table tbody th a {
    color: #1570ef;
    text-decoration: none;
}

.estimated-budget-overview-table tbody th a:hover {
    text-decoration: underline;
}

.estimated-budget-forecast-footer {
    margin: 14px 0 0;
    color: #667085;
    font-size: 12px;
}

.estimated-budget-row-risk {
    background: #fef3f2;
}

.estimated-budget-badge,
.estimated-budget-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}

.estimated-budget-badge.is-efficient {
    border-color: #abefc6;
    background: #ecfdf3;
    color: #027a48;
}

.estimated-budget-badge.is-risk {
    border-color: #fecdca;
    background: #fef3f2;
    color: #b42318;
}

.estimated-budget-badge.is-aligned {
    border-color: #b2ddff;
    background: #eff8ff;
    color: #175cd3;
}

.estimated-budget-badge.is-neutral {
    border-color: #e4e7ec;
    background: #f2f4f7;
    color: #667085;
}

.estimated-budget-status.is-complete {
    border-color: #abefc6;
    background: #ecfdf3;
    color: #027a48;
}

.estimated-budget-status.is-pending {
    border-color: #fedf89;
    background: #fffaeb;
    color: #b54708;
}

.estimated-budget-task-table .is-negative,
.estimated-budget-page .is-negative {
    color: #b42318;
    font-weight: 600;
}

@media (max-width: 1180px) {
    .estimated-budget-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .estimated-budget-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .estimated-budget-page {
        padding: 20px 16px 32px;
    }

    .estimated-budget-header {
        flex-direction: column;
        align-items: stretch;
    }

    .estimated-budget-summary {
        grid-template-columns: 1fr;
    }
}

.profitability-report-page {
    padding: 28px 32px 40px;
}

.profitability-report-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.profitability-report-heading h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 600;
    color: #1f2933;
}

.profitability-report-heading p {
    margin: 0;
    color: #667085;
    font-size: 14px;
}

.profitability-report-threshold-note {
    margin-top: 8px !important;
    font-weight: 500;
    color: #344054 !important;
}

.profitability-report-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}

.profitability-report-dimension-field,
.profitability-report-client-field,
.profitability-report-product-service-field {
    min-width: 220px;
    margin: 0;
}

.profitability-report-dimension-field select,
.profitability-report-client-field select,
.profitability-report-product-service-field select {
    width: 100%;
    min-width: 220px;
}

.profitability-report-date-field {
    margin: 0;
    border: 0;
    padding: 0;
}

.profitability-report-date-field legend {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #344054;
}

.profitability-report-notice,
.profitability-report-allocation-note {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #e4e7ec;
    background: #f9fafb;
    color: #344054;
    font-size: 14px;
}

.profitability-report-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.profitability-report-summary-card {
    padding: 18px 20px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
}

.profitability-report-summary-card span {
    display: block;
    margin-bottom: 8px;
    color: #667085;
    font-size: 13px;
}

.profitability-report-summary-card strong {
    display: block;
    font-size: 24px;
    font-weight: 600;
    color: #1f2933;
}

.profitability-report-summary-card strong small {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 500;
    color: #667085;
}

.profitability-report-summary-card-highlight {
    border-color: #b2ddff;
    background: #eff8ff;
}

.profitability-report-table-card h2 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: #1f2933;
}

.profitability-report-empty {
    padding: 48px 24px;
    border: 1px dashed #d0d5dd;
    border-radius: 12px;
    background: #fafbfc;
    text-align: center;
    color: #667085;
}

.profitability-report-empty-inline {
    margin-top: 8px;
    padding: 32px 24px;
}

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

.profitability-report-table th,
.profitability-report-table td {
    white-space: nowrap;
}

.profitability-report-table tbody th {
    font-weight: 500;
}

.profitability-report-row-alert {
    background: #fef3f2;
}

.profitability-report-margin.is-positive {
    color: #027a48;
}

.profitability-report-margin.is-negative {
    color: #b42318;
}

.profitability-report-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.profitability-report-badge-alert {
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fecdca;
}

.profitability-report-badge-ok {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

.profitability-report-badge-neutral {
    background: #f2f4f7;
    color: #667085;
    border: 1px solid #e4e7ec;
}

@media (max-width: 1080px) {
    .profitability-report-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .profitability-report-page {
        padding: 20px 16px 32px;
    }

    .profitability-report-header {
        flex-direction: column;
        align-items: stretch;
    }

    .profitability-report-summary {
        grid-template-columns: 1fr;
    }
}

.assigned-vs-registered-time-page {
    padding: 28px 32px 40px;
}

.assigned-vs-registered-time-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.assigned-vs-registered-time-heading h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 600;
    color: #101828;
}

.assigned-vs-registered-time-heading p {
    margin: 0;
    color: #667085;
    max-width: 720px;
}

.assigned-vs-registered-time-period-note {
    margin-top: 8px !important;
    font-size: 13px;
}

.assigned-vs-registered-time-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.assigned-vs-registered-time-project-field,
.assigned-vs-registered-time-task-field,
.assigned-vs-registered-time-resource-field {
    min-width: 180px;
}

.assigned-vs-registered-time-project-field select,
.assigned-vs-registered-time-task-field select,
.assigned-vs-registered-time-resource-field select {
    min-width: 180px;
}

.assigned-vs-registered-time-date-field {
    min-width: 260px;
}

.assigned-vs-registered-time-date-field legend {
    font-size: 13px;
    font-weight: 500;
    color: #344054;
    margin-bottom: 6px;
}

.assigned-vs-registered-time-notice {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fecdca;
}

.assigned-vs-registered-time-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.assigned-vs-registered-time-summary-card {
    padding: 16px 20px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
}

.assigned-vs-registered-time-summary-card span {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #667085;
}

.assigned-vs-registered-time-summary-card strong {
    display: block;
    font-size: 22px;
    font-weight: 600;
    color: #101828;
}

.assigned-vs-registered-time-summary-card-highlight {
    border-color: #b2ddff;
    background: #f5fbff;
}

.assigned-vs-registered-time-table-card h2 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: #101828;
}

.assigned-vs-registered-time-empty {
    padding: 32px;
    text-align: center;
    color: #667085;
}

.assigned-vs-registered-time-empty-inline {
    border: 1px dashed #d0d5dd;
    border-radius: 12px;
}

.assigned-vs-registered-time-table-scroll {
    overflow-x: auto;
}

.assigned-vs-registered-time-table th,
.assigned-vs-registered-time-table td {
    white-space: nowrap;
}

.assigned-vs-registered-time-row-overrun {
    background: #fef3f2;
}

.assigned-vs-registered-time-total-row {
    font-weight: 600;
    background: #f9fafb;
}

.assigned-vs-registered-time-variance.is-positive {
    color: #027a48;
}

.assigned-vs-registered-time-variance.is-negative {
    color: #b42318;
}

@media (max-width: 1080px) {
    .assigned-vs-registered-time-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .assigned-vs-registered-time-page {
        padding: 20px 16px 32px;
    }

    .assigned-vs-registered-time-header {
        flex-direction: column;
        align-items: stretch;
    }

    .assigned-vs-registered-time-summary {
        grid-template-columns: 1fr;
    }
}

.resource-task-cost-matrix-page {
    padding: 28px 32px 40px;
}

.resource-task-cost-matrix-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.resource-task-cost-matrix-heading h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 600;
    color: #101828;
}

.resource-task-cost-matrix-heading p {
    margin: 0;
    color: #667085;
    max-width: 720px;
}

.resource-task-cost-matrix-period-note {
    margin-top: 8px !important;
    font-size: 13px;
}

.resource-task-cost-matrix-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.resource-task-cost-matrix-project-field,
.resource-task-cost-matrix-task-field,
.resource-task-cost-matrix-resource-field {
    min-width: 180px;
}

.resource-task-cost-matrix-project-field select,
.resource-task-cost-matrix-task-field select,
.resource-task-cost-matrix-resource-field select {
    min-width: 180px;
}

.resource-task-cost-matrix-date-field {
    min-width: 260px;
}

.resource-task-cost-matrix-date-field legend {
    font-size: 13px;
    font-weight: 500;
    color: #344054;
    margin-bottom: 6px;
}

.resource-task-cost-matrix-notice {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fecdca;
}

.resource-task-cost-matrix-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.resource-task-cost-matrix-summary-card {
    padding: 16px 20px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
}

.resource-task-cost-matrix-summary-card span {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #667085;
}

.resource-task-cost-matrix-summary-card strong {
    display: block;
    font-size: 22px;
    font-weight: 600;
    color: #101828;
}

.resource-task-cost-matrix-summary-card-highlight {
    border-color: #b2ddff;
    background: #f5fbff;
}

.resource-task-cost-matrix-summary-card-warning {
    border-color: #fedf89;
    background: #fffaeb;
}

.resource-task-cost-matrix-table-card h2 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: #101828;
}

.resource-task-cost-matrix-empty {
    padding: 32px;
    text-align: center;
    color: #667085;
}

.resource-task-cost-matrix-empty-inline {
    border: 1px dashed #d0d5dd;
    border-radius: 12px;
}

.resource-task-cost-matrix-table-scroll {
    overflow-x: auto;
}

.resource-task-cost-matrix-table th,
.resource-task-cost-matrix-table td {
    white-space: nowrap;
}

.resource-task-cost-matrix-row-warning {
    background: #fffaeb;
}

.resource-task-cost-matrix-table tr.is-unrated td:nth-child(5) {
    color: #b54708;
}

.resource-task-cost-matrix-total-row {
    font-weight: 600;
    background: #f9fafb;
}

@media (max-width: 1080px) {
    .resource-task-cost-matrix-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .resource-task-cost-matrix-page {
        padding: 20px 16px 32px;
    }

    .resource-task-cost-matrix-header {
        flex-direction: column;
        align-items: stretch;
    }

    .resource-task-cost-matrix-summary {
        grid-template-columns: 1fr;
    }
}

.utilization-rate-page {
    padding: 28px 32px 40px;
}

.utilization-rate-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.utilization-rate-heading h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 600;
    color: #101828;
}

.utilization-rate-heading p {
    margin: 0;
    max-width: 720px;
    color: #475467;
}

.utilization-rate-period-note {
    margin-top: 8px !important;
    font-size: 13px;
}

.utilization-rate-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
}

.utilization-rate-resource-field select {
    min-width: 220px;
}

.utilization-rate-date-field legend {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #344054;
}

.utilization-rate-notice {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fef3f2;
    color: #b42318;
}

.utilization-rate-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.utilization-rate-summary-card {
    padding: 16px 20px;
    border: 1px solid #eaecf0;
    border-radius: 12px;
    background: #fff;
}

.utilization-rate-summary-card span {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #667085;
}

.utilization-rate-summary-card strong {
    font-size: 24px;
    font-weight: 600;
    color: #101828;
}

.utilization-rate-summary-card-highlight {
    border-color: #b2ddff;
    background: #eff8ff;
}

.utilization-rate-table-card h2 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: #101828;
}

.utilization-rate-empty {
    padding: 24px;
    text-align: center;
    color: #667085;
}

.utilization-rate-empty-inline {
    border: 1px dashed #d0d5dd;
    border-radius: 12px;
}

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

.utilization-rate-table th,
.utilization-rate-table td {
    white-space: nowrap;
}

.utilization-rate-total-row {
    font-weight: 600;
    background: #f9fafb;
}

@media (max-width: 1080px) {
    .utilization-rate-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .utilization-rate-page {
        padding: 20px 16px 32px;
    }

    .utilization-rate-header {
        flex-direction: column;
        align-items: stretch;
    }

    .utilization-rate-summary {
        grid-template-columns: 1fr;
    }
}

.resource-saturation-utilization-page {
    padding: 28px 32px 40px;
}

.resource-saturation-utilization-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.resource-saturation-utilization-heading h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 600;
    color: #101828;
}

.resource-saturation-utilization-heading p {
    margin: 0;
    max-width: 720px;
    color: #475467;
}

.resource-saturation-utilization-period-note {
    margin-top: 8px !important;
    font-size: 13px;
}

.resource-saturation-utilization-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
}

.resource-saturation-utilization-resource-field select {
    min-width: 220px;
}

.resource-saturation-utilization-date-field legend {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #344054;
}

.resource-saturation-utilization-notice {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fecdca;
}

.resource-saturation-utilization-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.resource-saturation-utilization-summary-card {
    padding: 16px 20px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
}

.resource-saturation-utilization-summary-card span {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #667085;
}

.resource-saturation-utilization-summary-card strong {
    display: block;
    font-size: 22px;
    font-weight: 600;
    color: #101828;
}

.resource-saturation-utilization-summary-card-highlight {
    border-color: #b2ddff;
    background: #f5fbff;
}

.resource-saturation-utilization-table-card h2 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: #101828;
}

.resource-saturation-utilization-empty {
    padding: 32px;
    text-align: center;
    color: #667085;
}

.resource-saturation-utilization-empty-inline {
    border: 1px dashed #d0d5dd;
    border-radius: 12px;
}

.resource-saturation-utilization-table-scroll {
    overflow-x: auto;
}

.resource-saturation-utilization-table th,
.resource-saturation-utilization-table td {
    white-space: nowrap;
}

.resource-saturation-utilization-total-row {
    font-weight: 600;
    background: #f9fafb;
}

@media (max-width: 1200px) {
    .resource-saturation-utilization-summary {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .resource-saturation-utilization-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .resource-saturation-utilization-page {
        padding: 20px 16px 32px;
    }

    .resource-saturation-utilization-header {
        flex-direction: column;
        align-items: stretch;
    }

    .resource-saturation-utilization-summary {
        grid-template-columns: 1fr;
    }
}

.resource-load-page {
    padding: 28px 32px 40px;
}

.resource-load-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.resource-load-heading h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 600;
    color: #101828;
}

.resource-load-heading p {
    margin: 0;
    max-width: 720px;
    color: #475467;
}

.resource-load-period-note {
    margin-top: 8px !important;
    font-size: 13px;
}

.resource-load-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
}

.resource-load-resource-field select {
    min-width: 220px;
}

.resource-load-date-field legend {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #344054;
}

.resource-load-notice {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fef3f2;
    color: #b42318;
}

.resource-load-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.resource-load-summary-card {
    padding: 16px 20px;
    border: 1px solid #eaecf0;
    border-radius: 12px;
    background: #fff;
}

.resource-load-summary-card span {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #667085;
}

.resource-load-summary-card strong {
    font-size: 24px;
    font-weight: 600;
    color: #101828;
}

.resource-load-summary-card-highlight {
    border-color: #d0d5dd;
    background: #f9fafb;
}

.resource-load-table-card h2 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: #101828;
}

.resource-load-empty {
    padding: 24px;
    text-align: center;
    color: #667085;
}

.resource-load-empty-inline {
    border: 1px dashed #d0d5dd;
    border-radius: 12px;
}

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

.resource-load-table th,
.resource-load-table td {
    white-space: nowrap;
}

.resource-load-table tbody tr.is-overloaded {
    background: #fef3f2;
}

.resource-load-table tbody tr.is-overloaded td:last-child {
    color: #b42318;
    font-weight: 600;
}

.resource-load-total-row {
    font-weight: 600;
    background: #f9fafb;
}

@media (max-width: 1080px) {
    .resource-load-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .resource-load-page {
        padding: 20px 16px 32px;
    }

    .resource-load-header {
        flex-direction: column;
        align-items: stretch;
    }

    .resource-load-summary {
        grid-template-columns: 1fr;
    }
}

.task-coverage-rate-page {
    padding: 28px 32px 40px;
}

.task-coverage-rate-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.task-coverage-rate-heading h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 600;
    color: #101828;
}

.task-coverage-rate-heading p {
    margin: 0;
    color: #667085;
    max-width: 720px;
}

.task-coverage-rate-period-note {
    margin-top: 8px !important;
    font-size: 13px;
}

.task-coverage-rate-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.task-coverage-rate-project-field,
.task-coverage-rate-resource-field {
    min-width: 180px;
}

.task-coverage-rate-project-field select,
.task-coverage-rate-resource-field select {
    min-width: 180px;
}

.task-coverage-rate-date-field {
    min-width: 260px;
}

.task-coverage-rate-date-field legend {
    font-size: 13px;
    font-weight: 500;
    color: #344054;
    margin-bottom: 6px;
}

.task-coverage-rate-notice {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fecdca;
}

.task-coverage-rate-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.task-coverage-rate-summary-card {
    padding: 16px 20px;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    background: #fff;
}

.task-coverage-rate-summary-card span {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #667085;
}

.task-coverage-rate-summary-card strong {
    display: block;
    font-size: 22px;
    font-weight: 600;
    color: #101828;
}

.task-coverage-rate-summary-card-highlight {
    border-color: #b2ddff;
    background: #f5fbff;
}

.task-coverage-rate-table-card h2 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: #101828;
}

.task-coverage-rate-empty {
    padding: 32px;
    text-align: center;
    color: #667085;
}

.task-coverage-rate-empty-inline {
    border: 1px dashed #d0d5dd;
    border-radius: 12px;
}

.task-coverage-rate-table-scroll {
    overflow-x: auto;
}

.task-coverage-rate-table th,
.task-coverage-rate-table td {
    white-space: nowrap;
}

.task-coverage-rate-row-partial {
    background: #fffaeb;
}

.task-coverage-rate-row-overrun {
    background: #fef3f2;
}

.task-coverage-rate-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

.task-coverage-rate-badge-partial {
    background: #fef0c7;
    color: #b54708;
}

.task-coverage-rate-badge-overrun {
    background: #fee4e2;
    color: #b42318;
}

@media (max-width: 1080px) {
    .task-coverage-rate-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .task-coverage-rate-page {
        padding: 20px 16px 32px;
    }

    .task-coverage-rate-header {
        flex-direction: column;
        align-items: stretch;
    }

    .task-coverage-rate-summary {
        grid-template-columns: 1fr;
    }
}

.work-distribution-page {
    padding: 28px 32px 40px;
}

.work-distribution-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.work-distribution-heading h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 600;
    color: #101828;
}

.work-distribution-heading p {
    margin: 0;
    max-width: 760px;
    color: #475467;
}

.work-distribution-period-note {
    margin-top: 8px !important;
    font-size: 13px;
}

.work-distribution-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
}

.work-distribution-chart-field select {
    min-width: 260px;
}

.work-distribution-date-field legend {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #344054;
}

.work-distribution-notice {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fef3f2;
    color: #b42318;
}

.work-distribution-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.work-distribution-summary-card {
    padding: 16px 20px;
    border: 1px solid #eaecf0;
    border-radius: 12px;
    background: #fff;
}

.work-distribution-summary-card span {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: #667085;
}

.work-distribution-summary-card strong {
    font-size: 24px;
    font-weight: 600;
    color: #101828;
}

.work-distribution-summary-card-highlight {
    border-color: #b2ddff;
    background: #eff8ff;
}

.work-distribution-chart-card,
.work-distribution-table-card {
    margin-bottom: 24px;
}

.work-distribution-chart-card h2,
.work-distribution-table-card h2 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: #101828;
}

.work-distribution-chart-note {
    margin: 0 0 20px;
    color: #667085;
    font-size: 13px;
}

.work-distribution-chart-wrap {
    overflow-x: auto;
    padding: 8px 0 4px;
}

.work-distribution-chart-svg {
    display: block;
    width: 100%;
    max-width: 760px;
    height: auto;
}

.work-distribution-chart-plot {
    fill: #fafbfc;
}

.work-distribution-chart-grid {
    stroke: #eaecf0;
    stroke-width: 1;
}

.work-distribution-chart-axis-label {
    fill: #667085;
    font-size: 11px;
}

.work-distribution-chart-axis-title {
    fill: #475467;
    font-size: 12px;
    font-weight: 600;
}

.work-distribution-chart-line {
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.work-distribution-chart-line-internal {
    stroke: #1570ef;
}

.work-distribution-chart-line-external {
    stroke: #f79009;
}

.work-distribution-chart-line-total {
    stroke: #12b76a;
}

.work-distribution-chart-point {
    stroke: #fff;
    stroke-width: 1.5;
}

.work-distribution-chart-point-internal {
    fill: #1570ef;
}

.work-distribution-chart-point-external {
    fill: #f79009;
}

.work-distribution-chart-point-total {
    fill: #12b76a;
}

.work-distribution-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
}

.work-distribution-chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475467;
}

.work-distribution-chart-legend-item::before {
    content: "";
    width: 24px;
    height: 3px;
    border-radius: 999px;
}

.work-distribution-chart-legend-internal::before {
    background: #1570ef;
}

.work-distribution-chart-legend-external::before {
    background: #f79009;
}

.work-distribution-chart-legend-total::before {
    background: #12b76a;
}

.work-distribution-empty {
    padding: 24px;
    text-align: center;
    color: #667085;
}

.work-distribution-empty-inline {
    border: 1px dashed #d0d5dd;
    border-radius: 12px;
}

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

.work-distribution-table th,
.work-distribution-table td {
    white-space: nowrap;
}

.work-distribution-code {
    display: inline-block;
    margin-right: 6px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f2f4f7;
    color: #475467;
    font-size: 12px;
    font-weight: 500;
}

.work-distribution-total-row {
    font-weight: 600;
    background: #f9fafb;
}

@media (max-width: 1080px) {
    .work-distribution-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .work-distribution-page {
        padding: 20px 16px 32px;
    }

    .work-distribution-header {
        flex-direction: column;
        align-items: stretch;
    }
}

.category-variance-report-page {
    padding: 28px 32px 40px;
}

.category-variance-report-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.category-variance-report-heading h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 600;
    color: #101828;
}

.category-variance-report-heading p {
    margin: 0;
    max-width: 760px;
    color: #475467;
}

.category-variance-report-period-note {
    margin-top: 8px !important;
    font-size: 13px;
}

.category-variance-report-period-note code {
    font-size: 12px;
}

.category-variance-report-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
}

.category-variance-report-chart-field select {
    min-width: 260px;
}

.category-variance-report-date-field legend {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #344054;
}

.category-variance-report-notice {
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fef3f2;
    color: #b42318;
}

.category-variance-report-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.category-variance-report-summary-card {
    padding: 16px 20px;
    border: 1px solid #eaecf0;
    border-radius: 12px;
    background: #fff;
}

.category-variance-report-summary-card span {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #667085;
}

.category-variance-report-summary-card strong {
    font-size: 22px;
    font-weight: 600;
    color: #101828;
}

.category-variance-report-summary-card-highlight {
    border-color: #b2ddff;
    background: #eff8ff;
}

.category-variance-report-variance.is-positive {
    color: #027a48;
}

.category-variance-report-variance.is-negative {
    color: #b42318;
}

.category-variance-report-chart-card,
.category-variance-report-table-card {
    margin-bottom: 24px;
}

.category-variance-report-chart-card h2,
.category-variance-report-table-card h2 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: #101828;
}

.category-variance-report-chart-note {
    margin: 0 0 20px;
    color: #667085;
    font-size: 13px;
}

.category-variance-report-chart-wrap {
    overflow-x: auto;
    padding: 8px 0 4px;
}

.category-variance-report-chart-svg {
    display: block;
    width: 100%;
    max-width: 760px;
    height: auto;
}

.category-variance-report-chart-plot {
    fill: #fafbfc;
}

.category-variance-report-chart-grid {
    stroke: #eaecf0;
    stroke-width: 1;
}

.category-variance-report-chart-axis-label {
    fill: #667085;
    font-size: 11px;
}

.category-variance-report-chart-axis-title {
    fill: #475467;
    font-size: 12px;
    font-weight: 600;
}

.category-variance-report-chart-line {
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.category-variance-report-chart-line-theoretical {
    stroke: #1570ef;
}

.category-variance-report-chart-line-actual {
    stroke: #f79009;
}

.category-variance-report-chart-point {
    stroke: #fff;
    stroke-width: 1.5;
}

.category-variance-report-chart-point-theoretical {
    fill: #1570ef;
}

.category-variance-report-chart-point-actual {
    fill: #f79009;
}

.category-variance-report-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
}

.category-variance-report-chart-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475467;
}

.category-variance-report-chart-legend-item::before {
    content: "";
    width: 24px;
    height: 3px;
    border-radius: 999px;
}

.category-variance-report-chart-legend-theoretical::before {
    background: #1570ef;
}

.category-variance-report-chart-legend-actual::before {
    background: #f79009;
}

.category-variance-report-empty {
    padding: 24px;
    text-align: center;
    color: #667085;
}

.category-variance-report-empty-inline {
    border: 1px dashed #d0d5dd;
    border-radius: 12px;
}

.category-variance-report-table-scroll {
    overflow-x: auto;
}

.category-variance-report-table th,
.category-variance-report-table td {
    white-space: nowrap;
}

.category-variance-report-code {
    display: inline-block;
    margin-right: 6px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f2f4f7;
    color: #475467;
    font-size: 12px;
    font-weight: 500;
}

.category-variance-report-total-row {
    font-weight: 600;
    background: #f9fafb;
}

.category-variance-report-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.category-variance-report-badge-under {
    background: #fef3f2;
    color: #b42318;
}

.category-variance-report-badge-over {
    background: #ecfdf3;
    color: #027a48;
}

.category-variance-report-badge-ok {
    background: #f2f4f7;
    color: #475467;
}

@media (max-width: 1080px) {
    .category-variance-report-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .category-variance-report-page {
        padding: 20px 16px 32px;
    }

    .category-variance-report-header {
        flex-direction: column;
        align-items: stretch;
    }

    .category-variance-report-summary {
        grid-template-columns: 1fr;
    }
}

.resource-mix-report-page {
    padding: 28px 32px 40px;
}

.resource-mix-report-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.resource-mix-report-heading h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 600;
    color: #101828;
}

.resource-mix-report-heading p {
    margin: 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.5;
}

.resource-mix-report-threshold-note {
    margin-top: 8px !important;
    font-size: 13px !important;
}

.resource-mix-report-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
}

.resource-mix-report-project-field {
    min-width: 280px;
}

.resource-mix-report-project-field select {
    min-width: 280px;
}

.resource-mix-report-empty {
    padding: 32px;
    text-align: center;
    color: #667085;
    background: #f9fafb;
    border: 1px solid #eaecf0;
    border-radius: 12px;
}

.resource-mix-report-empty-inline {
    padding: 24px;
    margin-top: 8px;
}

.resource-mix-report-alert-banner {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fef3f2;
    border: 1px solid #fecdca;
    color: #b42318;
    font-size: 14px;
}

.resource-mix-report-notice {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-radius: 8px;
    background: #fffaeb;
    border: 1px solid #fedf89;
    color: #b54708;
    font-size: 14px;
}

.resource-mix-report-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.resource-mix-report-summary-card {
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #eaecf0;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.resource-mix-report-summary-card span {
    display: block;
    color: #667085;
    font-size: 13px;
}

.resource-mix-report-summary-card strong {
    display: block;
    margin-top: 8px;
    font-size: 22px;
    font-weight: 600;
    color: #101828;
}

.resource-mix-report-summary-card small {
    display: block;
    margin-top: 6px;
    color: #667085;
    font-size: 12px;
}

.resource-mix-report-summary-card-internal {
    border-left: 4px solid #1570ef;
}

.resource-mix-report-summary-card-external {
    border-left: 4px solid #f79009;
}

.resource-mix-report-summary-card-highlight {
    background: #f9fafb;
}

.resource-mix-report-summary-card-impact {
    background: #fffaeb;
}

.resource-mix-report-margin.is-positive {
    color: #027a48;
}

.resource-mix-report-margin.is-negative {
    color: #b42318;
}

.resource-mix-report-impact.is-positive {
    color: #027a48;
}

.resource-mix-report-impact.is-negative {
    color: #b42318;
}

.resource-mix-report-table-card {
    margin-bottom: 24px;
}

.resource-mix-report-table-card h2 {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: #101828;
}

.resource-mix-report-table-note {
    margin: 0 0 20px;
    color: #667085;
    font-size: 13px;
}

.resource-mix-report-table-scroll {
    overflow-x: auto;
}

.resource-mix-report-table th,
.resource-mix-report-table td {
    white-space: nowrap;
}

.resource-mix-report-table td small {
    display: block;
    margin-top: 2px;
    color: #667085;
    font-size: 11px;
}

.resource-mix-report-row-alert {
    background: #fef3f2;
}

.resource-mix-report-type-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.resource-mix-report-type-badge-internal {
    background: #eff8ff;
    color: #1570ef;
}

.resource-mix-report-type-badge-external {
    background: #fffaeb;
    color: #b54708;
}

@media (max-width: 960px) {
    .resource-mix-report-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .resource-mix-report-page {
        padding: 20px 16px 32px;
    }

    .resource-mix-report-header {
        flex-direction: column;
        align-items: stretch;
    }

    .resource-mix-report-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1180px) and (min-width: 981px) {
    .dashboard-card {
        grid-column: span 4;
    }

    .dashboard-card-medium {
        grid-column: span 6;
    }

    .dashboard-card-wide {
        grid-column: span 12;
    }
}

@media (max-width: 980px) {
    .dashboard-grid > .dashboard-card {
        grid-column: 1 / -1;
    }

    .dashboard-period-form {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-date-range {
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .dashboard-page {
        padding: 20px 14px 36px;
    }

    .dashboard-header,
    .dashboard-date-range,
    .dashboard-card-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-date-range label,
    .dashboard-date-range input,
    .dashboard-date-range .button {
        width: 100%;
    }

    .dashboard-chart {
        overflow-x: auto;
    }

    .dashboard-alert-list,
    .dashboard-deadline-list {
        grid-template-columns: 1fr;
    }

    .dashboard-customizer-panel > header,
    .dashboard-customizer-list,
    .dashboard-customizer-panel footer {
        padding-right: 16px;
        padding-left: 16px;
    }

    .dashboard-customizer-list li {
        grid-template-columns: 20px minmax(0, 1fr);
    }

    .dashboard-width-field,
    .dashboard-order-buttons {
        grid-column: 2;
    }

    .dashboard-customizer-panel footer {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-customizer-panel footer > div {
        justify-content: flex-end;
    }
}

.avatar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
}

.avatar-button.has-image::before,
.avatar-button.has-image::after {
    display: none;
}

.avatar-button-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-button--blu {
    border-color: #2c638f;
}

.avatar-button--blu::before,
.avatar-button--blu::after {
    background: #2c638f;
}

.avatar-button--verde {
    border-color: #35b07b;
}

.avatar-button--verde::before,
.avatar-button--verde::after {
    background: #35b07b;
}

.avatar-button--giallo {
    border-color: #e3c834;
}

.avatar-button--giallo::before,
.avatar-button--giallo::after {
    background: #e3c834;
}

.profile-page {
    padding: 8px 0 40px;
}

.profile-card {
    max-width: 980px;
    padding: 36px 42px 42px;
    border-radius: 36px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(24, 42, 57, 0.08);
}

.profile-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

.profile-sidebar {
    padding-top: 0;
}

.profile-main h1,
.profile-password-section h2 {
    margin: 0 0 24px;
    color: #2f5f95;
    font-size: 28px;
    font-weight: 800;
}

.profile-password-section {
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid rgba(47, 95, 149, 0.12);
}

.profile-password-section h2 {
    font-size: 22px;
}

.profile-avatar.has-image .profile-avatar-head,
.profile-avatar.has-image .profile-avatar-body {
    display: none;
}

.profile-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-avatar--blu {
    border-color: #2f5f95;
}

.profile-avatar--blu .profile-avatar-head,
.profile-avatar--blu .profile-avatar-body {
    background: #2f5f95;
}

.profile-avatar--verde {
    border-color: #35b07b;
}

.profile-avatar--verde .profile-avatar-head,
.profile-avatar--verde .profile-avatar-body {
    background: #35b07b;
}

.profile-avatar--giallo {
    border-color: #e3c834;
}

.profile-avatar--giallo .profile-avatar-head,
.profile-avatar--giallo .profile-avatar-body {
    background: #e3c834;
}

.profile-avatar-upload input[type="file"] {
    width: 100%;
}

.profile-remove-avatar {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 12px 0 24px;
    color: #2f5f95;
    font-size: 14px;
    font-weight: 700;
}

.profile-color-option {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
}

.profile-color-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.profile-color-label {
    color: #2f5f95;
    font-size: 13px;
    font-weight: 700;
}

.profile-color-option.is-selected .resource-color {
    outline: 2px solid #2f5f95;
    outline-offset: 2px;
}

.profile-readonly-field p {
    margin: 10px 0 0;
    color: #1f2a33;
    font-size: 16px;
    font-weight: 700;
}

.profile-form-actions {
    margin-top: 24px;
}

.profile-password-spacer {
    visibility: hidden;
}

@media (max-width: 860px) {
    .profile-card {
        padding: 24px 20px 28px;
    }

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

.resource-modal-card .profile-avatar-upload {
    margin-top: 12px;
}

.resource-modal-card .profile-avatar-upload input[type="file"] {
    max-width: 130px;
    font-size: 12px;
}

.resource-modal-card .profile-remove-avatar {
    margin: 10px 0 16px;
    font-size: 12px;
}

.resource-modal-card .profile-color-picker {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.resource-modal-card .profile-color-label {
    font-size: 12px;
}

.notification-dot.is-hidden {
    display: none;
}

.notification-menu {
    position: relative;
}

.notification-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 40;
    width: min(360px, calc(100vw - 32px));
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(24, 42, 57, 0.16);
    overflow: hidden;
}

.notification-panel-header,
.notification-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #f5f8fb;
}

.notification-panel-header strong {
    color: #2f5f95;
    font-size: 15px;
}

.notification-mark-all {
    border: 0;
    background: transparent;
    color: #2f5f95;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: underline;
}

.notification-panel-list {
    max-height: 360px;
    overflow: auto;
}

.notification-panel-empty {
    margin: 0;
    padding: 24px 16px;
    color: #6b7c8f;
    text-align: center;
    font-size: 14px;
}

.notification-panel-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(47, 95, 149, 0.08);
    color: inherit;
    text-decoration: none;
}

.notification-panel-item:hover {
    background: #f8fbfe;
}

.notification-panel-item.is-unread {
    background: #eef5fb;
}

.notification-panel-item-title {
    color: #1f3348;
    font-size: 14px;
    font-weight: 700;
}

.notification-panel-item-body,
.notification-panel-item-meta {
    color: #6b7c8f;
    font-size: 12px;
    line-height: 1.4;
}

.notification-panel-footer a {
    color: #2f5f95;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.company-settings-page {
    padding: 8px 0 40px;
}

.company-settings-card {
    max-width: 640px;
}

.company-settings-card h1 {
    margin: 0 0 12px;
    color: #2f5f95;
    font-size: 28px;
    font-weight: 800;
}

.company-settings-intro {
    margin: 0 0 28px;
    color: #6b7c8f;
    line-height: 1.5;
}

.company-settings-form {
    display: grid;
    gap: 18px;
}

.company-settings-form label {
    display: grid;
    gap: 8px;
    color: #2f5f95;
    font-weight: 700;
}

.company-settings-form input {
    width: 100%;
    max-width: 240px;
    padding: 10px 12px;
    border: 1px solid rgba(47, 95, 149, 0.24);
    border-radius: 10px;
}

.company-settings-actions {
    margin-top: 8px;
}

.notifications-page {
    padding: 8px 0 40px;
}

.notifications-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.notifications-page-header h1 {
    margin: 0;
    color: #2f5f95;
    font-size: 28px;
    font-weight: 800;
}

.notifications-empty {
    margin: 0;
    padding: 28px;
    border-radius: 18px;
    background: #ffffff;
    color: #6b7c8f;
    box-shadow: 0 12px 28px rgba(24, 42, 57, 0.06);
}

.notifications-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.notifications-list-item {
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(24, 42, 57, 0.06);
    overflow: hidden;
}

.notifications-list-item.is-unread {
    box-shadow: 0 12px 28px rgba(47, 95, 149, 0.12);
}

.notifications-item-button,
.notifications-item-static {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    padding: 18px 20px;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.notifications-item-static {
    cursor: default;
}

.notifications-item-title {
    color: #1f3348;
    font-size: 16px;
    font-weight: 700;
}

.notifications-item-body {
    color: #4d6073;
    font-size: 14px;
    line-height: 1.45;
}

.notifications-item-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #6b7c8f;
    font-size: 12px;
}

.notifications-severity {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.notifications-severity--info {
    background: #e8f3ff;
    color: #2f5f95;
}

.notifications-severity--warning {
    background: #fff4d9;
    color: #9a6b00;
}

.notifications-severity--critical {
    background: #fde7ea;
    color: #c82032;
}

.notifications-mark-form {
    margin-top: 8px;
}

.notifications-pagination {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    color: #6b7c8f;
}

.notifications-pagination a {
    color: #2f5f95;
    font-weight: 700;
    text-decoration: none;
}
