:root {
    color-scheme: light;
    --bg: #f5f7fb;
    --surface: #ffffff;
    --text: #1d2433;
    --muted: #687386;
    --line: #dce2ea;
    --border: #dce2ea;
    --surface-soft: #f8fbff;
    --surface-muted: #f0f4fa;
    --focus-ring: rgba(28, 109, 208, 0.18);
    --primary: #1c6dd0;
    --primary-dark: #1556a6;
    --danger: #bb2d3b;
    --success-bg: #e8f6ee;
    --success-text: #17643a;
    --error-bg: #fdecee;
    --error-text: #8a1f2b;
}

* {
    box-sizing: border-box;
}

html {
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.45;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover,
a:focus-visible {
    color: var(--primary-dark);
}

:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
}

.topbar {
    align-items: center;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    padding: 14px 28px;
    position: sticky;
    top: 0;
    z-index: 5;
}

.topbar strong {
    display: block;
    font-size: 20px;
}

.brand-logo {
    align-items: center;
    display: flex;
}

.brand-logo img {
    display: block;
    height: auto;
    object-fit: contain;
}

.brand-logo-full img {
    max-height: 42px;
    width: 210px;
}

.topbar span {
    color: var(--muted);
    font-size: 13px;
}

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

.topbar nav a {
    align-items: center;
    border-radius: 6px;
    color: var(--text);
    display: inline-flex;
    min-height: 38px;
    padding: 8px 10px;
}

.topbar nav a.active,
.topbar nav a:hover {
    background: #e9f2ff;
    color: var(--primary-dark);
}

.topbar nav a.nav-profile {
    align-items: center;
    background: var(--primary);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-weight: 800;
    height: 38px;
    justify-content: center;
    padding: 0;
    width: 38px;
}

.topbar nav a.nav-profile svg {
    fill: none;
    height: 22px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
    width: 22px;
}

.topbar nav a.nav-profile.active,
.topbar nav a.nav-profile:hover {
    background: var(--primary-dark);
    color: #fff;
}

.page {
    margin: 0 auto;
    max-width: 1180px;
    padding: 28px;
}

.page-title {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.page-title h1 {
    font-size: 28px;
    margin: 0;
}

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

.panel-title-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.panel-title-row h2 {
    margin: 0;
}

.excel-export-button {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.excel-export-icon {
    color: #15803d;
    display: inline-flex;
    flex: 0 0 auto;
    height: 17px;
    width: 17px;
}

.excel-export-icon svg {
    fill: none;
    height: 100%;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 100%;
}

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

.users-search-form {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(220px, 1fr) minmax(150px, auto);
    max-width: 520px;
    width: min(520px, 100%);
}

.users-search-box,
.users-type-filter {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 8px;
    min-height: 42px;
    padding: 0 10px;
}

.users-search-box:focus-within,
.users-type-filter:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.users-search-icon {
    color: var(--primary);
    display: inline-flex;
    flex: 0 0 auto;
    height: 20px;
    width: 20px;
}

.users-search-icon svg {
    fill: currentColor;
    height: 100%;
    width: 100%;
}

.users-search-box input,
.users-type-filter select {
    background: transparent;
    border: 0;
    box-shadow: none;
    min-height: auto;
    padding: 0;
    width: 100%;
}

.users-search-box input:focus,
.users-type-filter select:focus {
    box-shadow: none;
    outline: none;
}

.users-type-filter span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.icon-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.icon-action {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    color: #155db3;
    display: inline-flex;
    gap: 8px;
    min-height: 44px;
    padding: 8px 12px;
}

.icon-action:hover,
.icon-action:focus-visible,
.icon-action.active {
    background: #eff6ff;
    border-color: #93c5fd;
    color: var(--primary-dark);
}

.icon-action.active {
    box-shadow: 0 0 0 2px rgba(28, 109, 208, 0.12);
}

.icon-glyph {
    align-items: center;
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    color: #155db3;
    display: inline-flex;
    font-size: 22px;
    font-weight: 700;
    height: 28px;
    justify-content: center;
    line-height: 1;
    width: 28px;
}

.icon-label {
    font-size: 13px;
    font-weight: 700;
}

.section-heading {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    margin-bottom: 12px;
}

.section-heading h2 {
    margin: 0;
}

.section-add-action {
    align-items: center;
    display: inline-flex;
}

.section-add-action:hover .icon-glyph,
.section-add-action:focus-visible .icon-glyph,
.section-add-action.active .icon-glyph {
    background: #bfdbfe;
    border-color: #93c5fd;
    color: var(--primary-dark);
}

.grid {
    display: grid;
    gap: 16px;
}

.grid.cards {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card,
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
}

.panel > h2:first-child,
.panel > h3:first-child,
.card > h2:first-child,
.card > h3:first-child {
    margin-top: 0;
}

.panel > p:last-child,
.card > p:last-child {
    margin-bottom: 0;
}

.page > section:not([class]) {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow-x: auto;
    padding: 20px;
}

.page > section:not([class]) + section:not([class]) {
    margin-top: 18px;
}

.metric-card {
    color: var(--text);
}

.metric-card.important {
    border-color: #b8d5fa;
    background: #f4f8ff;
}

.dashboard-approval-card {
    align-items: center;
    display: flex;
    gap: 16px;
    min-height: 104px;
}

.metric-icon {
    align-items: center;
    background: var(--primary);
    border-radius: 12px;
    display: inline-flex;
    flex: 0 0 58px;
    height: 58px;
    justify-content: center;
    position: relative;
    width: 58px;
}

.metric-icon-approval::before {
    border: 3px solid #fff;
    border-radius: 9px;
    content: "";
    height: 27px;
    width: 27px;
}

.metric-icon-approval::after {
    border-bottom: 4px solid #fff;
    border-right: 4px solid #fff;
    content: "";
    height: 18px;
    position: absolute;
    transform: rotate(45deg);
    width: 9px;
}

.metric {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.metric-value {
    display: block;
    font-size: 30px;
    font-weight: 700;
    margin-top: 6px;
}

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

.dashboard-tile {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    display: grid;
    gap: 5px 16px;
    grid-template-columns: 88px 1fr;
    grid-template-rows: 58px 44px;
    min-height: 156px;
    padding: 20px;
    position: relative;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.dashboard-tile:hover {
    border-color: #b8d5fa;
    box-shadow: 0 10px 24px rgba(28, 109, 208, 0.12);
    transform: translateY(-1px);
}

.dashboard-tile.primary {
    min-height: 156px;
}

.dashboard-tile-approval {
    grid-column: 1 / -1;
    grid-template-columns: 88px 1fr 130px;
}

.dashboard-tile-approval .tile-icon {
    grid-row: span 2;
}

.dashboard-tile-approval .tile-count {
    align-self: stretch;
    align-items: center;
    background: #e9f2ff;
    border-radius: 8px;
    color: var(--primary);
    display: inline-flex;
    font-size: 48px;
    font-weight: 800;
    grid-column: 3;
    grid-row: 1 / span 2;
    justify-content: center;
    min-height: 88px;
}

.dashboard-tile.secondary {
    min-height: 112px;
}

.user-dashboard-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.user-action-main {
    min-height: 168px;
}

.user-action-main.dashboard-tile-approval {
    grid-template-columns: 88px minmax(0, 1fr) 172px;
}

.user-home-state {
    background: transparent;
    box-shadow: none;
    padding: 10px;
    text-align: center;
}

.dashboard-tile-approval .user-home-state {
    background: transparent;
}

.user-home-state .status {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 15px;
    font-weight: 800;
    justify-content: center;
    line-height: 1.15;
    min-height: 52px;
    padding: 10px 18px;
    width: 100%;
    white-space: normal;
}

.user-home-state .status.richiesta_modifica,
.user-home-state .status.modifica_richiesta_all_utente {
    background: #b45309;
    color: #fff;
}

.user-home-change-banner {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #b91c1c;
    display: flex;
    flex-wrap: wrap;
    font-weight: 800;
    gap: 6px 12px;
    grid-column: 1 / -1;
    line-height: 1.25;
    margin-top: -8px;
    padding: 12px 16px;
}

.user-home-change-banner span {
    color: #991b1b;
}

.user-home-change-banner strong {
    color: #7f1d1d;
}

.user-home-change-banner:hover {
    background: #fee2e2;
    color: #991b1b;
}

.tile-icon {
    align-items: center;
    background: #e9f2ff;
    border: 1px solid #b8d5fa;
    border-radius: 14px;
    color: var(--primary-dark);
    display: inline-flex;
    grid-row: span 2;
    height: 88px;
    justify-content: center;
    position: relative;
    width: 88px;
}

.tile-icon-calendar::before {
    background:
        linear-gradient(currentColor, currentColor) 0 12px / 100% 3px no-repeat,
        linear-gradient(90deg, transparent 31%, rgba(21, 86, 166, 0.45) 31% 35%, transparent 35% 65%, rgba(21, 86, 166, 0.45) 65% 69%, transparent 69%) 0 0 / 100% 100% no-repeat;
    border: 3px solid currentColor;
    border-radius: 8px;
    content: "";
    height: 48px;
    width: 48px;
}

.tile-icon-calendar::after {
    background: currentColor;
    border-radius: 999px;
    box-shadow: 24px 0 0 currentColor;
    content: "";
    height: 6px;
    left: 30px;
    position: absolute;
    top: 25px;
    width: 6px;
}

.tile-icon svg {
    fill: none;
    height: 56px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 56px;
}

.user-home-icon-budget svg,
.user-home-icon-permits svg {
    height: 58px;
    width: 58px;
}

.tile-title {
    align-self: end;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.18;
}

.dashboard-tile.primary .tile-title {
    font-size: 24px;
}

.tile-text {
    align-self: start;
    color: var(--muted);
    line-height: 1.45;
}

.tile-text strong {
    color: var(--text);
    font-weight: 800;
}

.notification-dot {
    background: #d92d20;
    border: 3px solid var(--surface);
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(217, 45, 32, 0.18);
    height: 18px;
    position: absolute;
    right: 14px;
    top: 14px;
    width: 18px;
}

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

.pending-card {
    align-items: stretch;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    display: grid;
    gap: 7px;
    min-height: 178px;
    padding: 18px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pending-card:hover {
    border-color: #b8d5fa;
    box-shadow: 0 8px 18px rgba(28, 109, 208, 0.1);
}

.pending-card.active {
    background: #e9f2ff;
    border-color: #8bbcf5;
    box-shadow: 0 0 0 2px rgba(28, 109, 208, 0.12);
}

.pending-card.active .pending-card-icon,
.pending-card.active .pending-count {
    background: var(--primary);
    color: #fff;
}

.pending-section-title {
    color: var(--text);
    font-size: 16px;
    margin: 18px 0 10px;
}

.pending-section-title:first-of-type {
    margin-top: 10px;
}

.actions.pending-data-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 0;
    min-width: 250px;
    padding-left: 18px;
}

.actions.pending-data-actions form {
    margin: 0;
}

.actions.pending-data-actions a {
    display: inline-flex;
    font-weight: 700;
    padding: 8px 4px;
}

.pending-card-icon,
.pending-count {
    align-items: center;
    background: #e9f2ff;
    border-radius: 8px;
    color: var(--primary);
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
}

.pending-card-icon {
    height: 54px;
    width: 54px;
}

.pending-card-icon svg {
    fill: none;
    height: 30px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 30px;
}

.pending-count {
    font-size: 36px;
    height: 58px;
    margin-top: 4px;
    width: 100%;
}

.pending-title {
    font-size: 21px;
    font-weight: 800;
    margin-top: 4px;
}

.pending-text {
    color: var(--muted);
    font-size: 14px;
    min-height: 36px;
}

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

.toolbar {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 16px;
}

.toolbar label {
    margin-bottom: 0;
}

.reports-search-control {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    display: flex;
    gap: 8px;
    min-height: 40px;
    padding: 0 10px;
}

.reports-search-control:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.reports-search-icon {
    color: var(--primary);
    display: inline-flex;
    flex: 0 0 auto;
    height: 18px;
    width: 18px;
}

.reports-search-icon svg {
    fill: currentColor;
    height: 100%;
    width: 100%;
}

.reports-search-control input {
    background: transparent;
    border: 0;
    box-shadow: none;
    min-height: auto;
    padding: 0;
}

.reports-search-control input:focus {
    box-shadow: none;
    outline: none;
}

.reports-table-filter-form {
    margin: 0;
}

.reports-table-filter-form table {
    margin: 0;
}

.reports-table-filter-form th {
    vertical-align: middle;
}

.reports-header-filter {
    align-items: center;
    color: #173b66;
    display: flex;
    font-size: 14px;
    font-weight: 800;
    gap: 7px;
    line-height: 1.15;
    margin: 0;
    min-height: 32px;
    min-width: 0;
    white-space: nowrap;
}

.reports-header-filter > span:first-child {
    flex: 0 0 auto;
}

.reports-header-filter select {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    min-height: 0;
    min-width: 72px;
    padding: 0 18px 0 0;
    width: 100%;
}

.reports-header-filter select:focus {
    box-shadow: none;
    outline: 2px solid rgba(37, 99, 235, 0.22);
    outline-offset: 3px;
}

.reports-header-search {
    position: relative;
}

.reports-search-trigger {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--primary);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    height: 31px;
    justify-content: center;
    min-height: 0;
    padding: 0;
    width: 31px;
}

.reports-search-trigger:hover,
.reports-search-trigger:focus-visible,
.reports-search-trigger.is-active {
    background: #dbeafe;
    box-shadow: none;
}

.reports-search-trigger .reports-search-icon {
    height: 17px;
    width: 17px;
}

.reports-search-popover[hidden] {
    display: none;
}

.reports-search-popover {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
    color: var(--text);
    left: 0;
    padding: 12px;
    position: absolute;
    top: calc(100% + 8px);
    width: 280px;
    white-space: normal;
    z-index: 30;
}

.reports-search-popover-field {
    display: grid;
    gap: 7px;
    margin: 0;
}

.reports-search-popover-field > span:first-child {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.reports-search-popover .reports-search-control {
    min-height: 38px;
}

.reports-search-popover input {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    min-width: 0;
}

.month-switcher {
    align-items: end;
    display: grid;
    gap: 14px;
    grid-template-columns: auto minmax(220px, 320px) minmax(140px, 180px);
    margin-bottom: 16px;
}

.month-switcher strong {
    color: var(--text);
    font-size: 28px;
    line-height: 1.2;
    padding-bottom: 6px;
}

.month-switcher label {
    margin: 0;
}

.report-title-switcher {
    align-items: center;
    display: block;
}

.report-table-title {
    border-bottom: 1px solid var(--line);
    margin: 0 0 20px;
    padding-bottom: 20px;
}

.panel:has(> .absence-range-details) > .report-table-title {
    margin-bottom: 0;
}

.panel:has(> .report-submit-locked-notice) > .report-table-title {
    border-bottom: 0;
    padding-bottom: 0;
}

.report-title-line {
    align-items: center;
    color: var(--text);
    display: flex;
    flex-wrap: wrap;
    font-size: 28px;
    font-weight: 800;
    gap: 8px 12px;
    line-height: 1.2;
}

.report-title-line strong {
    padding-bottom: 0;
}

.report-title-control {
    align-items: center;
    display: inline-flex;
    margin: 0;
    position: relative;
}

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

input,
select,
textarea {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    font: inherit;
    line-height: 1.25;
    min-height: 40px;
    padding: 8px 10px;
    width: 100%;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #c7d2e2;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--focus-ring);
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: #7c8798;
}

.report-title-control select,
.report-title-control input {
    background: transparent;
    border-color: transparent;
    border-radius: 0;
    color: var(--text);
    font-size: 28px;
    font-weight: 800;
    min-height: 40px;
    padding: 0;
    width: auto;
}

.report-title-month,
.report-title-year {
    padding-right: 0;
}

.report-title-control select {
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #10233f 50%), linear-gradient(135deg, #10233f 50%, transparent 50%);
    background-position: calc(100% - 12px) 52%, calc(100% - 7px) 52%;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
    field-sizing: content;
    font-weight: 900;
    padding-right: 24px;
}

.report-title-control select option {
    font-size: 15px;
    font-weight: 700;
}

.report-locked-notice {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #b91c1c;
    font-weight: 800;
    margin: 14px 0 0;
    padding: 10px 12px;
}

.report-submit-locked-notice {
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: 6px;
    color: #92400e;
    font-weight: 800;
    margin: 14px 0 16px;
    padding: 10px 12px;
}

.report-notice-separator {
    border-top: 1px solid var(--line);
    margin: 0 0 18px;
}

.absence-range-details {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 18px 0 24px;
    padding: 18px;
}

.absence-range-details summary {
    color: #1d2433;
    cursor: pointer;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    list-style-position: inside;
}

.absence-range-details .form-grid {
    margin-top: 18px;
}

.report-table-separator {
    border-top: 1px solid var(--line);
    margin: 0 0 18px;
}

.report-title-year select {
    min-width: 104px;
}

.report-title-control select:hover,
.report-title-control select:focus,
.report-title-control input:hover,
.report-title-control input:focus {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    outline: 2px solid transparent;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

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

.form-row-3 {
    display: grid;
    gap: 14px;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-wide {
    grid-column: 1 / -1;
}

.uppercase-input {
    text-transform: uppercase;
}

.capitalize-input {
    text-transform: capitalize;
}

.field-hint {
    color: var(--muted);
    display: block;
    font-size: 12px;
    margin-top: 5px;
}

.is-hidden {
    display: none !important;
}

.attachment-link {
    display: inline-block;
    font-weight: 700;
    margin-top: 6px;
}

.span-2 {
    grid-column: 1 / -1;
}

.actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.sheet-actions {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin-top: 24px;
    width: 100%;
}

.sheet-actions .button,
.sheet-actions button {
    align-items: center;
    justify-content: center;
    width: 100%;
}

.sheet-action-icon {
    display: inline-flex;
    flex: 0 0 auto;
    height: 18px;
    margin-right: 8px;
    width: 18px;
}

.sheet-action-icon svg {
    fill: none;
    height: 100%;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 100%;
}

.sheet-actions .sheet-action-save {
    background: #1c6dd0;
}

.sheet-actions .sheet-action-submit {
    background: #15803d;
}

.sheet-actions .sheet-action-submit:hover,
.sheet-actions .sheet-action-submit:focus-visible {
    background: #166534;
}

.attachment-summary-inline {
    border-top: 1px solid var(--line);
    margin-top: 26px;
    padding-top: 26px;
}

.attachment-summary-header {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.attachment-summary-header h2 {
    margin: 0;
}

.attachment-summary-empty {
    color: var(--muted);
    font-weight: 700;
    margin: 0;
}

.attachment-summary-period-list {
    align-items: flex-start;
    display: grid;
    gap: 10px;
}

.attachment-summary-period {
    display: grid;
    gap: 8px;
}

.attachment-summary-date {
    color: var(--text);
    font-weight: 800;
}

.attachment-summary-date-range {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    max-width: 100%;
}

.attachment-summary-date-range label {
    margin-bottom: 0;
}

.attachment-summary-day-field {
    align-items: center;
    color: var(--muted);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    gap: 6px;
    white-space: nowrap;
}

.attachment-summary-date-input {
    min-height: 34px;
    min-width: 0;
    padding: 6px 8px;
    text-align: center;
    width: 58px;
}

.attachment-summary-add-range {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #155db3;
    justify-content: center;
    min-height: 34px;
    padding: 6px 10px;
    white-space: nowrap;
    width: fit-content;
}

.attachment-summary-add-range:hover,
.attachment-summary-add-range:focus-visible {
    background: #dbeafe;
    color: #155db3;
}

.attachment-summary-add-file {
    align-items: center;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    color: #155db3;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    margin-top: 0;
    min-height: 40px;
    padding: 9px 13px;
    width: fit-content;
}

.attachment-summary-add-file:hover,
.attachment-summary-add-file:focus-within {
    background: #dbeafe;
    border-color: #93c5fd;
}

.attachment-summary-add-file-input {
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.attachment-summary-file {
    display: grid;
    gap: 10px;
    min-width: 220px;
}

.attachment-summary-file-row {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) 28px 28px;
}

.attachment-summary-file-name {
    margin-top: 0;
    overflow-wrap: anywhere;
}

.attachment-summary-title-field {
    max-width: 260px;
}

.attachment-summary-remove-form {
    display: none;
    margin: 0;
}

.inline-action-field {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    margin: 0;
}

.inline-action-field span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.inline-action-field select {
    min-width: 240px;
}

.month-decision-actions {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
    width: 100%;
}

.month-decision-actions .inline-action-field {
    align-items: stretch;
    display: grid;
    gap: 6px;
    grid-template-columns: 72px minmax(0, 1fr);
    width: 100%;
}

.month-decision-actions .inline-action-field select {
    min-width: 0;
    width: 100%;
}

.month-decision-actions button {
    width: 100%;
}

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

.form-actions .button,
.form-actions button {
    justify-content: center;
    min-width: 0;
    padding-left: 18px;
    padding-right: 18px;
    width: 100%;
}

.form-actions .primary-action,
.form-actions .cancel-action {
    font-size: 18px;
    min-height: 52px;
}

.holiday-list-actions {
    margin-bottom: 16px;
    margin-top: 8px;
}

.holiday-list-actions .button,
.holiday-list-actions button {
    min-width: 150px;
    justify-content: center;
}

.holiday-name-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.holiday-name-picker label {
    align-items: center;
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
}

.holiday-name-picker label:has(input:checked) {
    background: #e8f2ff;
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 700;
}

.bulk-edit-card {
    background: #f8fbff;
    border: 1px solid #cfe0f5;
    border-radius: 8px;
    margin-top: 18px;
    padding: 18px;
}

.bulk-edit-card h3 {
    margin: 0 0 4px;
}

.button,
button {
    align-items: center;
    background: var(--primary);
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    gap: 8px;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    line-height: 1.2;
    min-height: 40px;
    padding: 9px 13px;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.button:hover,
button:hover,
.button:focus-visible,
button:focus-visible {
    background: var(--primary-dark);
    color: #fff;
}

.button.secondary,
button.secondary {
    background: #edf1f7;
    color: var(--text);
}

.button.secondary:hover,
button.secondary:hover,
.button.secondary:focus-visible,
button.secondary:focus-visible {
    background: #e2e8f0;
    color: var(--text);
}

.button.danger,
button.danger {
    background: var(--danger);
}

.button.danger:hover,
button.danger:hover,
.button.danger:focus-visible,
button.danger:focus-visible {
    background: #9f2430;
}

button:disabled,
.button[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.62;
}

.calendar-primary-link {
    align-items: center;
    background: var(--surface);
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(28, 109, 208, 0.08);
    color: #155db3;
    font-size: 17px;
    font-weight: 800;
    gap: 12px;
    min-height: 58px;
    padding: 13px 20px;
}

.calendar-primary-link:hover,
.calendar-primary-link:focus-visible {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #155db3;
}

.calendar-primary-icon {
    align-items: center;
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    border-radius: 7px;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.calendar-primary-icon svg {
    fill: none;
    height: 23px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 23px;
}

.request-date-panel {
    align-items: stretch;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(250px, 0.55fr) minmax(620px, 1.45fr);
    margin-bottom: 12px;
    padding: 14px 16px;
}

.request-date-panel h2 {
    margin: 0;
}

.request-date-heading {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: auto minmax(0, 1fr);
    padding-right: 10px;
}

.request-date-icon {
    height: 36px;
    width: 36px;
}

.request-date-icon svg {
    height: 22px;
    width: 22px;
}

.request-date-copy {
    max-width: 360px;
}

.request-date-form {
    align-content: start;
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 10px 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px;
}

.request-date-form label {
    margin: 0;
}

.request-date-form label > span {
    display: block;
    margin-bottom: 6px;
}

.request-date-fields {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(180px, 1.05fr) minmax(160px, 0.95fr);
}

.request-date-actions {
    align-self: end;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.request-date-actions .button,
.request-date-actions button {
    justify-content: center;
    min-width: 92px;
}

.export-card-panel {
    margin-top: 18px;
}

.export-action-card {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    display: flex;
    gap: 16px;
    min-height: 96px;
    padding: 18px;
    text-decoration: none;
}

.export-action-card:hover,
.export-action-card:focus-visible {
    border-color: #93c5fd;
    box-shadow: 0 8px 18px rgba(28, 109, 208, 0.08);
    color: var(--text);
}

.export-action-icon {
    align-items: center;
    background: #e9f2ff;
    border: 1px solid #b8d5fa;
    border-radius: 8px;
    color: var(--primary-dark);
    display: inline-flex;
    flex: 0 0 58px;
    height: 58px;
    justify-content: center;
    width: 58px;
}

.export-action-icon svg {
    fill: none;
    height: 32px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 32px;
}

.export-action-card strong {
    display: block;
    font-size: 21px;
    line-height: 1.2;
}

.export-action-card small {
    color: var(--muted);
    display: block;
    font-size: 15px;
    margin-top: 5px;
}

.export-selection-heading {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 16px;
}

.export-selection-heading h2 {
    margin: 0 0 4px;
}

.export-selection-heading .muted {
    margin: 0;
}

.export-selection-panel table input[type="checkbox"] {
    height: 18px;
    width: 18px;
}

.inline-panel {
    background: var(--surface-soft);
    border: 1px solid #cfe0f5;
    border-radius: 8px;
    padding: 16px;
}

.check-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.check-option {
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 10px 12px;
}

.check-option:hover,
.check-option:focus-within {
    border-color: #9bc8ff;
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.check-option input {
    flex: 0 0 auto;
    margin-top: 2px;
    min-height: auto;
    width: auto;
}

table {
    background: var(--surface);
    border-collapse: collapse;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: visible;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 12px 12px;
    text-align: left;
    vertical-align: middle;
}

th {
    background: var(--surface-muted);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
}

td {
    line-height: 1.35;
}

.table-actions {
    text-align: right;
    white-space: nowrap;
    width: 1%;
}

.nowrap {
    white-space: nowrap;
}

.period-cell {
    min-width: 130px;
}

.period-cell span {
    display: block;
    line-height: 1.45;
    white-space: nowrap;
}

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

.muted {
    color: var(--muted);
}

.field-help {
    display: block;
    font-size: 12px;
    margin-top: 4px;
}

.notice {
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 12px 14px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.notice.is-hiding {
    opacity: 0;
    transform: translateY(-6px);
}

.notice.success {
    background: var(--success-bg);
    color: var(--success-text);
}

.notice.error {
    background: var(--error-bg);
    color: var(--error-text);
}

.inline-form {
    display: inline;
}

.status {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    padding: 4px 8px;
    text-align: center;
}

.status.bozza {
    background: #fff4d8;
    color: #7a5200;
}

.status.inviata {
    background: #e7f0ff;
    color: #1a56a3;
}

.status.consegnata {
    background: #e7f0ff;
    color: #1a56a3;
}

.status.approvata {
    background: #e8f6ee;
    color: #17643a;
}

.status.non_consegnata {
    background: #edf1f7;
    color: var(--muted);
}

.status.non_richiesto {
    background: #111827;
    color: #fff;
}

.status.inoltrata {
    background: #e7f0ff;
    color: #1a56a3;
}

.status.negata {
    background: #fdecee;
    color: #8a1f2b;
}

.status.richiesta_modifica,
.status.modifica_richiesta_all_utente {
    background: #fff4d8;
    color: #7a5200;
}

.login-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 60px auto;
    max-width: 420px;
    padding: 26px;
}

.login-panel h1,
.login-panel h2 {
    margin-top: 0;
}

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

.profile-summary-header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
}

.profile-summary-header h2 {
    margin: 0;
}

.profile-facts {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    margin-top: 18px;
}

.profile-facts p {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    min-height: 64px;
    min-width: 0;
    padding: 10px 12px;
}

.profile-fact-wide {
    grid-column: span 2;
}

.profile-summary-flexible .profile-fact-wide {
    grid-column: 1 / -1;
}

.profile-fact-compact {
    grid-column: span 1;
}

.profile-facts span {
    color: var(--muted);
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.profile-facts strong {
    display: block;
    margin-top: 3px;
    overflow-wrap: anywhere;
}

@media (max-width: 820px) {
    .profile-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .profile-facts {
        grid-template-columns: 1fr;
    }

    .profile-fact-wide,
    .profile-fact-compact {
        grid-column: auto;
    }
}

.compact-schedule {
    margin-top: 16px;
    overflow-x: auto;
}

.compact-schedule table {
    font-size: 13px;
    min-width: 680px;
}

.compact-schedule th,
.compact-schedule td {
    padding: 8px 9px;
}

.compact-schedule td:first-child,
.compact-schedule th:first-child {
    font-weight: 700;
    width: 92px;
}

.profile-edit-panel > summary {
    cursor: pointer;
    font-size: 22px;
    font-weight: 800;
}

.profile-edit-grid {
    align-items: stretch;
    margin-top: 18px;
}

.profile-edit-block {
    display: flex;
    flex-direction: column;
}

.profile-edit-block form {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.profile-edit-block .actions {
    margin-top: auto;
}

.profile-contact-grid {
    display: grid;
    gap: 10px 14px;
    grid-template-columns: minmax(120px, 1fr) repeat(2, minmax(110px, 1fr));
}

.profile-contact-grid > div:nth-child(2),
.profile-contact-grid > div:nth-child(3) {
    grid-column: span 2;
}

.profile-contact-grid > div:nth-child(4) {
    grid-column: span 1;
}

.schedule-grid {
    display: grid;
    gap: 8px;
}

.schedule-row,
.absence-row {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: 150px repeat(3, minmax(80px, 1fr));
}

.slot-schedule-row {
    grid-template-columns: 130px 95px repeat(2, minmax(90px, 1fr)) 75px repeat(2, minmax(90px, 1fr)) 1px;
}

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

.slot-pair.labeled label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.slot-pair.labeled input {
    margin-top: 5px;
}

.work-time-box {
    background: #f8fbff;
    border: 1px solid #cfe2ff;
    border-radius: 8px;
    margin: 18px 0;
    padding: 16px;
}

.work-time-heading {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.work-time-heading h3 {
    margin: 0;
}

.work-time-heading span:not(.icon-glyph) {
    color: var(--muted);
    display: block;
    font-size: 13px;
}

.schedule-type-toggle {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 14px;
}

.schedule-type-toggle label {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    min-height: 44px;
    padding: 10px 12px;
}

.schedule-type-toggle label.selected {
    background: #e9f2ff;
    border-color: #9bc8ff;
    color: var(--primary-dark);
}

.schedule-type-toggle input {
    min-height: auto;
    width: auto;
}

.default-slots-grid {
    align-items: stretch;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.default-slot-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.default-slot-card .inline-check {
    font-weight: 800;
    margin-top: 0;
}

.schedule-details {
    margin-top: 14px;
}

.large-icon-summary {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    gap: 12px;
    padding: 14px;
}

.schedule-inline-summary {
    min-height: 76px;
}

.large-icon-summary small {
    color: var(--muted);
    display: block;
    font-weight: 400;
    margin-top: 2px;
}

.absence-row {
    grid-template-columns: 90px 90px 1fr 1.2fr;
    margin-bottom: 8px;
}

.check {
    min-height: auto;
    width: auto;
}

.inline-check {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    margin: 8px 0 14px;
}

.admin-deliver-box {
    align-items: center;
    background: #f4f8ff;
    border: 1px solid #cfe2ff;
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(260px, 1fr) 180px;
    margin: 8px 0 16px;
    padding: 12px;
}

.admin-deliver-box .inline-check {
    margin: 0;
}

.compact-form {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(140px, 1fr) minmax(180px, 2fr) auto;
}

.swatch {
    border: 1px solid var(--line);
    border-radius: 999px;
    display: inline-block;
    height: 18px;
    margin-right: 8px;
    vertical-align: middle;
    width: 18px;
}

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

.calendar-wide table {
    min-width: 980px;
}

.calendar-group-row td {
    background: #eef5ff;
    color: #174a86;
    font-weight: 800;
    padding: 10px 12px;
    text-align: left;
}

.calendar-cell {
    border-radius: 6px;
    min-width: 34px;
    text-align: center;
}

.calendar-management-actions {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(240px, 1fr);
    margin: 12px 0 0;
}

.calendar-management-card {
    align-items: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    display: flex;
    gap: 16px;
    min-height: 96px;
    padding: 18px 20px;
    text-decoration: none;
}

.calendar-management-card:hover {
    border-color: #9fc3ff;
    box-shadow: 0 10px 20px rgba(22, 80, 150, 0.08);
}

.calendar-management-icon {
    align-items: center;
    background: var(--primary);
    border-radius: 12px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 58px;
    height: 58px;
    justify-content: center;
    position: relative;
    width: 58px;
}

.holiday-management-icon::before {
    border: 3px solid #fff;
    border-radius: 8px;
    content: "";
    height: 34px;
    width: 34px;
}

.holiday-management-icon::after {
    background:
        linear-gradient(#fff, #fff) 0 10px / 100% 3px no-repeat,
        radial-gradient(circle at 65% 68%, #fff 0 5px, transparent 5.5px);
    content: "";
    height: 34px;
    position: absolute;
    width: 34px;
}

.calendar-management-card strong,
.calendar-management-card small {
    display: block;
}

.calendar-management-card strong {
    font-size: 20px;
}

.calendar-management-card small {
    color: var(--muted);
    margin-top: 3px;
}

.calendar-cell.empty {
    background: #fff;
}

.calendar-cell.holiday,
.day-card.holiday,
.dot.holiday {
    background: #f1e7ff;
    color: #5b21b6;
}

.calendar-cell.holiday-outline {
    background: #fff;
    box-shadow: inset 0 0 0 2px #a78bfa;
    color: #5b21b6;
}

.calendar-cell.bozza,
.day-card.bozza,
.dot.bozza {
    background: #fff4d8;
    color: #7a5200;
}

.calendar-cell.inviata,
.day-card.inviata,
.dot.inviata {
    background: #e7f0ff;
    color: #1a56a3;
}

.calendar-cell.approvata,
.day-card.approvata,
.dot.approvata {
    background: #e8f6ee;
    color: #17643a;
}

.calendar-cell.richiesta_modifica,
.day-card.richiesta_modifica,
.dot.richiesta_modifica {
    background: #fdecee;
    color: #8a1f2b;
}

.calendar-cell.day-complete,
.dot.day-complete {
    background: #c8f3d7;
    color: #075e2f;
}

.calendar-cell.day-shifted,
.dot.day-shifted {
    background: #d8eaff;
    color: #124f97;
}

.calendar-cell.day-incomplete,
.dot.day-incomplete {
    background: #ffe69a;
    color: #7c4a00;
}

.calendar-cell.day-absence,
.dot.day-absence {
    background: #d9dee7;
    color: #364152;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 14px 0;
}

.day-result-legend {
    flex-wrap: nowrap;
    overflow-x: auto;
}

.legend span {
    align-items: center;
    display: inline-flex;
    gap: 6px;
}

.dot {
    border-radius: 999px;
    display: inline-block;
    height: 12px;
    width: 12px;
}

.month-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.work-calendar {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(7, minmax(120px, 1fr));
}

.calendar-weekday {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.calendar-day {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    min-height: 132px;
    padding: 10px;
}

.calendar-day.blank {
    background: transparent;
    border: 0;
}

.calendar-day header {
    align-items: flex-start;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.calendar-day header span {
    color: var(--muted);
    font-size: 12px;
    text-align: right;
}

.calendar-day.holiday {
    background: #f4f0ff;
    color: #4a3192;
}

.calendar-day details {
    margin-top: 10px;
}

.calendar-day summary,
.history-panel > summary,
.month-history > summary,
.budget-summary-panel > summary {
    cursor: pointer;
    font-weight: 700;
}

.budget-summary-panel > summary {
    align-items: center;
    display: inline-flex;
    font-size: 24px;
    gap: 8px;
    list-style: none;
}

.budget-summary-panel > summary::-webkit-details-marker {
    display: none;
}

.budget-summary-panel > summary::after {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    content: "";
    display: inline-block;
    transform: rotate(-90deg);
    transition: transform 0.15s ease;
}

.budget-summary-panel[open] > summary::after {
    transform: rotate(0deg);
}

.budget-summary-body {
    margin-top: 28px;
}

.budget-summary-panel:not([open]) .budget-summary-body {
    display: none;
}

.day-time-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 8px 0;
}

.day-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
}

.day-card header {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.day-card details {
    margin-top: 12px;
}

.day-card textarea {
    margin: 8px 0;
    min-height: 70px;
}

.mini-calendar {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.mini-calendar .calendar-cell {
    color: inherit;
    display: block;
    padding: 10px;
    text-decoration: none;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.mini-calendar .calendar-cell:hover,
.mini-calendar .calendar-cell:focus-visible {
    box-shadow: 0 0 0 2px rgba(28, 109, 208, 0.25);
    transform: translateY(-1px);
}

.mini-calendar .calendar-cell span {
    display: block;
    margin-top: 4px;
}

.history-panel > summary {
    font-size: 20px;
}

.month-history {
    border-top: 1px solid var(--line);
    margin-top: 12px;
    padding-top: 12px;
}

.holiday-actions {
    align-items: stretch;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
}

.holiday-action-card {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    display: grid;
    gap: 12px;
    grid-template-columns: 56px 1fr;
    min-height: 92px;
    padding: 16px;
    width: 100%;
}

.holiday-action-card:hover {
    border-color: #b8d5fa;
    box-shadow: 0 10px 24px rgba(28, 109, 208, 0.12);
}

.holiday-action-icon {
    align-items: center;
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    height: 56px;
    justify-content: center;
    width: 56px;
}

.holiday-action-icon svg {
    fill: none;
    height: 34px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 34px;
}

.holiday-action-icon.national {
    background: var(--primary);
}

.holiday-action-icon.company {
    background: #7b61d1;
}

.holiday-action-icon.edit {
    background: #546179;
}

.holiday-action-title {
    font-size: 22px;
    font-weight: 800;
}

.holiday-action-card-small {
    grid-template-columns: 48px 1fr;
    min-height: 92px;
}

.holiday-action-card-small .holiday-action-icon {
    height: 48px;
    width: 48px;
}

.holiday-action-card-small .holiday-action-icon svg {
    height: 30px;
    width: 30px;
}

.holiday-action-card-small .holiday-action-title {
    font-size: 18px;
}

.holiday-action-text {
    color: var(--muted);
}

.holiday-action-card label,
.holiday-action-card input,
.holiday-action-card button,
.holiday-action-card .button {
    grid-column: 2;
}

.holiday-action-card .button {
    justify-self: start;
    min-height: 36px;
    padding: 7px 11px;
}

.holiday-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 10px 0 16px;
}

.holiday-legend span {
    align-items: center;
    display: inline-flex;
    gap: 6px;
}

.holiday-dot {
    border-radius: 999px;
    display: inline-block;
    height: 12px;
    width: 12px;
}

.holiday-dot.nazionale,
.compact-day.nazionale {
    background: #dbeafe;
    color: #1d4f91;
}

.holiday-dot.aziendale,
.compact-day.aziendale {
    background: #efe7ff;
    color: #5b3fb0;
}

.holiday-dot.inactive,
.compact-day.inactive {
    background: #edf1f7;
    color: var(--muted);
}

.compact-year-calendar {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.compact-year-calendar.single-month {
    grid-template-columns: repeat(2, minmax(280px, 520px));
}

.compact-year-calendar.single-month .compact-day {
    min-height: 42px;
}

.compact-year-calendar.single-month .compact-month h2 {
    font-size: 22px;
}

.compact-month {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
}

.compact-month h2 {
    font-size: 16px;
    margin: 0 0 10px;
}

.compact-weekdays,
.compact-days {
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.compact-weekdays span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.compact-day {
    align-items: center;
    border-radius: 6px;
    color: var(--text);
    display: inline-flex;
    font-size: 12px;
    justify-content: center;
    min-height: 28px;
}

a.compact-day {
    font-weight: 800;
}

.compact-day.weekend {
    background: #f2f4f8;
    color: var(--muted);
}

.compact-day.blank {
    background: transparent;
}

.hover-tooltip {
    background: #1d2433;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    left: 0;
    max-width: 260px;
    opacity: 0;
    padding: 8px 10px;
    pointer-events: none;
    position: absolute;
    text-align: center;
    transform: translate(-50%, -100%);
    transition: opacity 120ms ease;
    z-index: 20;
}

.hover-tooltip.visible {
    opacity: 1;
}

.sheet-wrap {
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 12px;
}

.timesheet {
    border: 1px solid #cfd8e3;
    border-collapse: collapse;
    border-radius: 8px;
    font-size: 13px;
    min-width: 860px;
    overflow: visible;
}

.timesheet th,
.timesheet td {
    border: 1px solid #d9e2ec;
    line-height: 1.3;
    padding: 12px 11px;
    text-align: center;
    vertical-align: middle;
}

.timesheet th {
    background: #eaf2ff;
    color: #183a66;
    font-weight: 800;
    text-transform: uppercase;
}

.timesheet tbody tr:not(.week-total):not(.month-total):not(.nonwork):nth-child(odd) {
    background: #fff;
}

.timesheet tbody tr:not(.week-total):not(.month-total):not(.nonwork):nth-child(even) {
    background: #f7f9fc;
}

.timesheet tbody tr.day-complete td {
    background: #f1fbf5;
}

.timesheet tbody tr.day-shifted td {
    background: #eef6ff;
}

.timesheet tbody tr.day-incomplete td {
    background: #fff6d1;
}

.timesheet tbody tr.day-absence td {
    background: #f2f5f8;
}

.timesheet td:first-child,
.timesheet .note {
    text-align: left;
}

.timesheet .note {
    min-width: 240px;
}

.timesheet .hours {
    color: #d92d20;
    font-weight: 700;
}

.timesheet .workday-toggle-cell {
    width: 42px;
}

.timesheet .workday-toggle {
    accent-color: #111827;
    height: 18px;
    min-height: 18px;
    width: 18px;
}

.timesheet .day-select-cell {
    text-align: center;
    width: 44px;
}

.timesheet .day-select-cell input {
    height: 20px;
    min-height: 20px;
    width: 20px;
}

.timesheet .nonwork {
    background: #f8fafc;
    color: var(--muted);
}

.timesheet .nonwork .note {
    color: #b42318;
    font-weight: 700;
}

.timesheet .note.has-admin-note {
    background: #fff7ed;
    border-color: #fdba74;
    position: relative;
}

.timesheet-admin-note-help {
    display: inline-block;
    margin: 0 8px 0 0;
    position: relative;
    vertical-align: middle;
}

.timesheet-admin-note-help summary {
    align-items: center;
    background: #f97316;
    border: 1px solid #ea580c;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 900;
    height: 28px;
    justify-content: center;
    line-height: 1;
    list-style: none;
    width: 28px;
}

.timesheet-admin-note-help summary::-webkit-details-marker {
    display: none;
}

.timesheet-admin-note-panel {
    background: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(124, 45, 18, 0.16);
    color: #9a3412;
    display: grid;
    font-size: 13px;
    gap: 4px;
    left: 0;
    line-height: 1.35;
    min-width: 220px;
    padding: 10px 12px;
    position: absolute;
    top: 34px;
    z-index: 20;
}

.timesheet-admin-note-panel strong {
    color: #7c2d12;
    font-size: 12px;
}

.timesheet .week-total td,
.timesheet .month-total td {
    background: #f0f4fa;
    color: #1d2433;
    font-weight: 800;
    text-transform: uppercase;
}

.timesheet .month-total td {
    background: #e8f6ee;
    font-size: 14px;
}

.collab-timesheet {
    min-width: 820px;
}

.collab-timesheet th:first-child,
.collab-timesheet td:first-child {
    min-width: 92px;
}

.collab-timesheet th:nth-child(2),
.collab-timesheet td:nth-child(2) {
    min-width: 58px;
}

.collab-timesheet th:nth-child(3),
.collab-timesheet td:nth-child(3) {
    min-width: 330px;
    text-align: left;
}

.collab-timesheet th:nth-child(4),
.collab-timesheet td:nth-child(4) {
    min-width: 70px;
}

.collab-timesheet th:nth-child(5),
.collab-timesheet td:nth-child(5) {
    min-width: 260px;
}

.collab-timesheet td.collab-interval-cell {
    padding-bottom: 10px;
    padding-top: 10px;
}

.collab-intervals {
    display: grid;
    gap: 10px;
}

.collab-intervals.readonly {
    gap: 4px;
}

.collab-interval-row {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 9px;
    min-height: 36px;
}

.collab-interval-row.has-overlap .collab-time-input {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.12);
}

.collab-interval-text {
    color: #1d2433;
    display: inline-flex;
    font-weight: 700;
    line-height: 1.35;
    padding: 2px 0;
}

.collab-interval-separator {
    color: #5d6b82;
    font-weight: 800;
    min-width: 8px;
    text-align: center;
}

.collab-time-input {
    min-height: 36px;
    min-width: 108px;
    width: 108px;
}

.collab-interval-action {
    align-items: center;
    aspect-ratio: 1;
    background: #eef5ff;
    border: 1px solid #bfd6f3;
    border-radius: 999px;
    color: #155db3;
    cursor: pointer;
    display: inline-flex;
    font-size: 18px;
    font-weight: 800;
    flex: 0 0 34px;
    height: 34px;
    justify-content: center;
    line-height: 1;
    min-height: 34px;
    min-width: 34px;
    padding: 0;
    width: 34px;
}

.collab-remove-interval {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #b45309;
}

.collab-interval-action:hover,
.collab-interval-action:focus-visible {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #155db3;
    box-shadow: 0 0 0 2px rgba(28, 109, 208, 0.12);
}

.collab-remove-interval:hover,
.collab-remove-interval:focus-visible {
    background: #ffedd5;
    border-color: #fdba74;
    color: #b45309;
    box-shadow: 0 0 0 2px rgba(180, 83, 9, 0.12);
}

.timesheet tr.linked-day-highlight td {
    animation: linked-day-pulse 2.2s ease;
}

@keyframes linked-day-pulse {
    0% {
        box-shadow: inset 0 0 0 999px rgba(28, 109, 208, 0.18);
    }
    100% {
        box-shadow: inset 0 0 0 999px rgba(28, 109, 208, 0);
    }
}

.sheet-input,
.sheet-note-input,
.sheet-admin-controls select,
.sheet-admin-controls input {
    border: 1px solid #cfd8e3;
    border-radius: 5px;
    min-height: 36px;
    padding: 5px 6px;
}

.sheet-input {
    min-width: 88px;
    text-align: center;
}

.sheet-note-input {
    min-width: 220px;
    text-align: left;
}

.sheet-note-tools {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(160px, 1fr) 40px;
}

.paperclip-upload {
    align-items: center;
    background: #e9f2ff;
    border: 1px solid #b8d5fa;
    border-radius: 8px;
    color: var(--primary-dark);
    cursor: pointer;
    display: inline-flex;
    font-size: 18px;
    height: 38px;
    justify-content: center;
    position: relative;
    width: 40px;
}

.paperclip-upload.has-attachment {
    background: #fff3cd;
    border-color: #f3c64d;
    color: #7a5200;
}

.paperclip-upload:hover,
.paperclip-upload:focus-visible {
    background: #dbeafe;
    color: var(--primary-dark);
}

.paperclip-upload.has-attachment:hover,
.paperclip-upload.has-attachment:focus-visible {
    background: #fde68a;
    color: #7a5200;
}

.paperclip-upload.is-uploading {
    opacity: 0.65;
    pointer-events: none;
}

.paperclip-upload input[type="file"] {
    border: 0;
    cursor: pointer;
    height: 100%;
    inset: 0;
    min-height: 100%;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 100%;
}

.range-note-tools {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.range-attachment-button {
    height: 42px;
    width: 46px;
}

.permit-note-tools {
    position: relative;
}

.permit-note-tools textarea {
    padding-right: 58px;
    width: 100%;
}

.permit-history-panel {
    margin-top: 18px;
}

.permit-empty-message {
    color: var(--muted);
    font-weight: 700;
    margin: 14px 0 0;
}

.admin-permits-panel {
    padding: 12px;
}

.admin-permits-list {
    display: grid;
    gap: 10px;
}

.admin-permit-card {
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) 280px;
    padding: 12px;
    scroll-margin-top: 90px;
}

.admin-permit-card:target {
    background: #fff8dc;
    border-color: #f3c64d;
}

.admin-permit-main {
    align-items: start;
    display: grid;
    gap: 12px 18px;
    grid-template-columns: 90px minmax(118px, 0.7fr) minmax(0, 1.3fr) 120px;
}

.admin-permit-main > div {
    min-width: 0;
}

.admin-permit-main span,
.admin-permit-form label span {
    color: var(--muted);
    display: block;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 4px;
}

.admin-permit-main strong {
    display: block;
    line-height: 1.25;
}

.permit-card-date strong,
.permit-card-time strong {
    white-space: nowrap;
}

.permit-card-time small {
    color: var(--muted);
    display: block;
    font-size: 13px;
    line-height: 1.25;
    margin-top: 2px;
}

.permit-card-note p {
    line-height: 1.3;
    margin: 0;
}

.permit-card-date {
    grid-column: 1;
    grid-row: 1;
}

.permit-card-user {
    grid-column: 2;
    grid-row: 1;
}

.permit-card-status {
    grid-column: 3 / -1;
    grid-row: 2;
}

.permit-card-time {
    grid-column: 1;
    grid-row: 2;
}

.permit-card-reason {
    grid-column: 2;
    grid-row: 2;
}

.permit-card-note {
    border-left: 1px solid #e2e8f0;
    grid-column: 3 / -1;
    grid-row: 1;
    padding-left: 18px;
}

.permit-attachment-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.permit-card-status .status {
    justify-content: center;
    max-width: 100%;
    white-space: normal;
}

.permit-card-status {
    align-items: center;
    border-left: 1px solid #e2e8f0;
    display: flex;
    gap: 8px;
    min-height: 26px;
    padding-left: 18px;
}

.permit-card-status span {
    margin-bottom: 0;
}

.admin-permit-form {
    align-content: start;
    background: #f8fbff;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 10px;
}

.admin-permit-form label {
    grid-column: 1 / -1;
    margin: 0;
}

.admin-permit-form label:last-of-type {
    grid-column: 1;
}

.admin-permit-form button {
    align-self: end;
    grid-column: 2;
    min-height: 34px;
    padding: 7px 10px;
}

.admin-permit-form select,
.admin-permit-form input {
    min-height: 34px;
    padding: 6px 8px;
}

.admin-permit-form input {
    min-width: 0;
}

@media (max-width: 980px) {
    .admin-permit-card {
        grid-template-columns: 1fr;
    }

    .admin-permit-main {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .permit-card-date,
    .permit-card-user,
    .permit-card-time,
    .permit-card-reason,
    .permit-card-status {
        grid-column: auto;
        grid-row: auto;
    }

    .permit-card-note {
        border-left: 0;
        grid-column: 1 / -1;
        grid-row: auto;
        padding-left: 0;
    }

    .permit-card-status {
        border-left: 0;
        padding-left: 0;
    }
}

@media (max-width: 720px) {
    .admin-permit-main {
        grid-template-columns: 1fr;
    }

    .permit-card-note {
        grid-column: auto;
    }
}

.permit-time-selector {
    align-items: center;
    display: grid;
    gap: 6px 12px;
    grid-template-columns: auto minmax(0, 1fr);
}

.permit-time-toggle {
    margin: 0;
}

.permit-time-lock-message {
    margin: 0;
}

.permit-time-fields {
    grid-column: 1 / -1;
}

.permit-time-compact {
    align-items: end;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 180px));
    justify-content: start;
}

.permit-time-compact .permit-time-field {
    display: block;
}

.permit-time-compact .permit-time-field span {
    color: var(--muted);
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
}

.permit-time-compact input {
    min-height: 40px;
}

.permit-full-day-button {
    align-items: center;
    background: #eef3f9;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    color: var(--muted);
    display: inline-flex;
    font-size: 18px;
    height: 40px;
    justify-content: center;
    padding: 0;
    width: 42px;
}

.permit-full-day-button:hover,
.permit-full-day-button:focus-visible {
    background: #e2e8f0;
    color: var(--text);
}

.permit-full-day-button.is-active {
    background: #e9f2ff;
    border-color: #8ec2ff;
    color: var(--primary-dark);
}

.permit-attachment-button {
    bottom: 10px;
    height: 40px;
    position: absolute;
    right: 10px;
    width: 42px;
}

.report-actions-panel {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.report-actions-panel form {
    margin: 0;
}

.attachment-popover {
    display: inline-block;
    position: relative;
}

.attachment-popover-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(29, 36, 51, 0.14);
    color: var(--text);
    display: none;
    gap: 8px;
    min-width: 190px;
    padding: 10px;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 30;
}

.attachment-popover.is-open .attachment-popover-panel {
    display: grid;
}

.attachment-popover-panel .attachment-link {
    margin-top: 0;
}

.attachment-list {
    display: grid;
    gap: 6px;
}

.attachment-item {
    align-items: start;
    display: grid;
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) 28px 28px;
}

.attachment-item .attachment-link {
    line-height: 1.25;
    overflow-wrap: anywhere;
    white-space: normal;
}

.attachment-item-pending {
    grid-template-columns: minmax(0, 1fr);
}

.attachment-pending-name {
    color: #0b63ce;
    font-weight: 700;
}

.attachment-icon-button {
    align-items: center;
    align-self: start;
    aspect-ratio: 1;
    background: #eef5ff;
    border: 1px solid #bfd6f3;
    border-radius: 50%;
    box-sizing: border-box;
    color: #155db3;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 28px;
    font-size: 16px;
    font-weight: 800;
    height: 28px;
    justify-content: center;
    line-height: 1;
    max-height: 28px;
    max-width: 28px;
    min-height: 28px;
    min-width: 28px;
    padding: 0;
    place-self: start center;
    width: 28px;
}

.attachment-icon-button.attachment-remove {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #b45309;
    min-height: 28px;
    text-align: center;
}

.attachment-icon-button:hover,
.attachment-icon-button:focus-visible {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #155db3;
    box-shadow: 0 0 0 2px rgba(28, 109, 208, 0.12);
}

.attachment-icon-button.attachment-remove:hover,
.attachment-icon-button.attachment-remove:focus-visible {
    background: #ffedd5;
    border-color: #fdba74;
    color: #b45309;
}

.attachment-add {
    align-items: center;
    background: #edf1f7;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    font-weight: 700;
    justify-content: center;
    min-height: 34px;
    padding: 7px 10px;
    position: relative;
}

.attachment-title-field {
    color: var(--muted);
    display: grid;
    font-size: 12px;
    font-weight: 700;
    gap: 4px;
    margin: 0;
}

.attachment-title-input-row {
    align-items: center;
    display: grid;
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) 30px;
}

.attachment-title-field input {
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    color: var(--text);
    font-size: 13px;
    min-height: 32px;
    padding: 6px 8px;
    width: 100%;
}

.attachment-title-confirm {
    align-items: center;
    aspect-ratio: 1;
    background: #ecfdf3;
    border: 1px solid #86efac;
    border-radius: 50%;
    box-sizing: border-box;
    color: #15803d;
    cursor: pointer;
    display: inline-flex;
    font-size: 15px;
    font-weight: 900;
    height: 30px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 30px;
}

.attachment-title-confirm:hover,
.attachment-title-confirm:focus-visible {
    background: #dcfce7;
    border-color: #22c55e;
    color: #15803d;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.14);
}

.attachment-popover-panel > .attachment-remove {
    background: #fff1f2;
    border: 0;
    border-radius: 6px;
    color: #b42318;
    cursor: pointer;
    font-weight: 700;
    min-height: 34px;
    padding: 7px 10px;
    text-align: center;
}

.attachment-popover-panel form,
.attachment-popover-panel .attachment-remove {
    width: 100%;
}

.attachment-add input,
.attachment-remove input {
    cursor: pointer;
    height: 100%;
    inset: 0;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    width: 100%;
}

.sheet-admin-controls {
    display: grid;
    gap: 6px;
    min-width: 180px;
}

.sheet-admin-controls label {
    margin-bottom: 0;
}

.day-time-grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 980px) {
    .pending-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .topbar,
    .page-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-title-actions,
    .page-title-actions .calendar-primary-link {
        width: 100%;
    }

    .users-search-form {
        grid-template-columns: 1fr;
        max-width: none;
        width: 100%;
    }

    .request-date-panel,
    .request-date-form,
    .request-date-fields {
        grid-template-columns: 1fr;
    }

    .request-date-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .page {
        padding: 18px;
    }

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

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

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

    .attachment-summary-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .collab-interval-row {
        flex-wrap: wrap;
    }

    .sheet-actions {
        grid-template-columns: 1fr;
    }

    .dashboard-links {
        grid-template-columns: 1fr;
    }

    .user-dashboard-links {
        grid-template-columns: 1fr;
    }

    .dashboard-tile-approval {
        grid-template-columns: 64px 1fr;
    }

    .user-action-main.dashboard-tile-approval {
        grid-template-columns: 64px 1fr;
    }

    .dashboard-tile-approval .tile-count {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 58px;
    }

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

    .holiday-actions {
        grid-template-columns: 1fr;
    }

    .holiday-action-card {
        grid-template-columns: 64px 1fr;
    }

    .holiday-action-icon {
        font-size: 30px;
        height: 64px;
        width: 64px;
    }

    .compact-year-calendar.single-month {
        grid-template-columns: 1fr;
    }

    .dashboard-tile {
        grid-template-columns: 64px 1fr;
        padding: 16px;
    }

    .tile-icon,
    .dashboard-tile.primary .tile-icon {
        font-size: 30px;
        height: 64px;
        width: 64px;
    }

    .grid.two,
    .schedule-row,
    .slot-schedule-row,
    .absence-row,
    .compact-form,
    .day-time-grid,
    .slot-pair,
    .schedule-type-toggle,
    .default-slots-grid,
    .day-time-grid.four {
        grid-template-columns: 1fr;
    }

    .work-calendar {
        grid-template-columns: 1fr;
    }

    .calendar-weekday,
    .calendar-day.blank {
        display: none;
    }
}
