body.profile-spb_zpi .timesheet-shell { max-width: 1560px; }
body.profile-spb_zpi .timesheet-hero { align-items: end; gap: 22px; }
body.profile-spb_zpi .timesheet-hero-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(128px, auto));
    justify-content: end;
}
body.profile-spb_zpi .timesheet-hero-actions > * {
    align-items: center;
    border-radius: 11px;
    box-sizing: border-box;
    display: inline-flex;
    font-size: .82rem;
    font-weight: 850;
    justify-content: center;
    line-height: 1.15;
    min-height: 43px;
    padding: 9px 13px;
    text-align: center;
    text-decoration: none;
}
body.profile-spb_zpi .timesheet-hero-actions .secondary-button:first-child {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .42);
    color: #fff;
}
body.profile-spb_zpi .timesheet-hero-actions .secondary-button:nth-child(2) {
    background: #fff;
    border-color: #fff;
    color: #28479c;
}
body.profile-spb_zpi .timesheet-hero-actions .primary-button {
    background: linear-gradient(135deg, #566cf1, #7180f5);
    border-color: rgba(255, 255, 255, .18);
    color: #fff;
}

body.profile-spb_zpi .timesheet-toolbar {
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: auto minmax(260px, .75fr) minmax(180px, 1fr) auto;
    margin-bottom: 14px;
    padding: 12px 16px;
}

body.profile-spb_zpi .timesheet-toolbar form { align-items: end; display: flex; gap: 8px; }
body.profile-spb_zpi .timesheet-toolbar label { color: #687a94; display: grid; font-size: .72rem; font-weight: 800; gap: 4px; }
body.profile-spb_zpi .timesheet-toolbar input { border: 1px solid #ccd8e8; border-radius: 9px; min-height: 39px; padding: 7px 9px; }
body.profile-spb_zpi .timesheet-toolbar > div { display: grid; gap: 2px; text-align: center; }
body.profile-spb_zpi .timesheet-toolbar > div strong { color: #172a48; font-size: 1.08rem; }
body.profile-spb_zpi .timesheet-toolbar > div span { color: #71829b; font-size: .75rem; }
body.profile-spb_zpi .timesheet-month-arrow { align-items: center; background: #edf1ff; border: 1px solid #d5ddff; border-radius: 10px; color: #4056c4; display: inline-flex; font-size: 1.25rem; font-weight: 900; height: 42px; justify-content: center; text-decoration: none; width: 42px; }

body.profile-spb_zpi :is(.timesheet-team-panel, .timesheet-access-panel, .timesheet-history-panel) { margin-bottom: 14px; }
body.profile-spb_zpi :is(.timesheet-team-panel, .timesheet-access-panel, .timesheet-history-panel) > summary { align-items: center; cursor: pointer; display: flex; justify-content: space-between; list-style: none; }
body.profile-spb_zpi :is(.timesheet-team-panel, .timesheet-access-panel, .timesheet-history-panel) > summary::-webkit-details-marker { display: none; }
body.profile-spb_zpi :is(.timesheet-team-panel, .timesheet-access-panel, .timesheet-history-panel) > summary > span:first-child { display: grid; }
body.profile-spb_zpi :is(.timesheet-team-panel, .timesheet-access-panel, .timesheet-history-panel) > summary small { color: #71829d; font-size: .67rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
body.profile-spb_zpi :is(.timesheet-team-panel, .timesheet-access-panel, .timesheet-history-panel) > summary > span:last-child { background: #edf2ff; border-radius: 999px; color: #3d58bd; font-size: .75rem; font-weight: 850; padding: 5px 9px; }

body.profile-spb_zpi .timesheet-team-content { display: grid; gap: 12px; margin-top: 14px; }
body.profile-spb_zpi .timesheet-employee-form { align-items: end; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) auto; }
body.profile-spb_zpi .timesheet-employee-form label { color: #60728d; display: grid; font-size: .72rem; font-weight: 800; gap: 4px; }
body.profile-spb_zpi .timesheet-employee-form input { border: 1px solid #ccd8e8; border-radius: 9px; min-height: 40px; padding: 8px 10px; }
body.profile-spb_zpi .timesheet-employee-list { display: grid; gap: 7px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.profile-spb_zpi .timesheet-employee-list article { align-items: center; background: #f6f8fc; border: 1px solid #dde5f0; border-radius: 10px; display: grid; gap: 6px; grid-template-columns: minmax(0, 1fr) auto auto; padding: 9px 10px; }
body.profile-spb_zpi .timesheet-employee-list article > span { color: #73839a; font-size: .72rem; }

body.profile-spb_zpi .timesheet-board { overflow: visible; padding: 0; }
body.profile-spb_zpi .timesheet-mobile-hint {
    align-items: center;
    background: #eef3ff;
    border-bottom: 1px solid #dbe4f2;
    color: #4b6191;
    display: none;
    font-size: .76rem;
    font-weight: 750;
    gap: 7px;
    margin: 0;
    padding: 9px 12px;
}
body.profile-spb_zpi .timesheet-mobile-hint > span { font-size: 1rem; }
body.profile-spb_zpi .timesheet-scroll {
    overflow: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 8px;
    scrollbar-color: #9aaaca #edf1f7;
    scrollbar-width: thin;
}
body.profile-spb_zpi .timesheet-table { border-collapse: separate; border-spacing: 0; min-width: 1240px; width: 100%; }
body.profile-spb_zpi .timesheet-table th,
body.profile-spb_zpi .timesheet-table td { border-bottom: 1px solid #e1e7f0; border-right: 1px solid #e8edf4; height: 48px; min-width: 39px; padding: 4px; text-align: center; }
body.profile-spb_zpi .timesheet-table thead th { background: #f2f5fa; color: #52657f; font-size: .7rem; position: sticky; top: 0; z-index: 3; }
body.profile-spb_zpi .timesheet-table thead th small { color: #8a98aa; display: block; font-size: .58rem; margin-top: 2px; }
body.profile-spb_zpi .timesheet-table .timesheet-person-col { background: #fff; left: 0; min-width: 190px; padding: 8px 12px; position: sticky; text-align: left; z-index: 2; }
body.profile-spb_zpi .timesheet-table thead .timesheet-person-col { background: #eef2f8; z-index: 4; }
body.profile-spb_zpi .timesheet-table .timesheet-person-col strong { color: #172944; display: block; font-size: .82rem; }
body.profile-spb_zpi .timesheet-table .timesheet-person-col small { color: #8a97a8; font-size: .64rem; }
body.profile-spb_zpi .timesheet-table .timesheet-total-col { background: #f4f7ff; min-width: 72px; }
body.profile-spb_zpi .timesheet-table .timesheet-total-col strong { color: #304faa; display: block; }
body.profile-spb_zpi .timesheet-table .timesheet-total-col small { color: #7b8ba1; font-size: .58rem; }
body.profile-spb_zpi .timesheet-table .is-weekend { background: #fbf7f5; }
body.profile-spb_zpi .timesheet-table td.has-hours.shift-day { background: #eef7ff; }
body.profile-spb_zpi .timesheet-table td.has-hours.shift-evening { background: #f2efff; }
body.profile-spb_zpi .timesheet-table td.absence-sick { background: #fff1f2; }
body.profile-spb_zpi .timesheet-table td.absence-leave { background: #fff8df; }
body.profile-spb_zpi .timesheet-table td.absence-day_off { background: #edf8f1; }
body.profile-spb_zpi .timesheet-table td.absence-absent { background: #ffe8eb; }
body.profile-spb_zpi .timesheet-table tr.is-inactive { opacity: .55; }

body.profile-spb_zpi .timesheet-cell-editor { position: relative; }
body.profile-spb_zpi .timesheet-cell-editor > summary { align-items: center; border-radius: 7px; color: #263d66; cursor: pointer; display: flex; font-size: .67rem; font-weight: 850; height: 34px; justify-content: center; list-style: none; }
body.profile-spb_zpi .timesheet-cell-editor > summary::-webkit-details-marker { display: none; }
body.profile-spb_zpi .timesheet-cell-editor > summary:hover { background: rgba(65, 89, 185, .1); }
body.profile-spb_zpi .timesheet-cell-editor[open]::before {
    backdrop-filter: blur(2px);
    background: rgba(15, 27, 51, .48);
    content: "";
    inset: 0;
    position: fixed;
    z-index: 9000;
}
body.profile-spb_zpi .timesheet-cell-popover {
    background: #fff;
    border: 1px solid #cdd8e8;
    border-radius: 14px;
    box-shadow: 0 24px 70px rgba(15, 29, 58, .3);
    box-sizing: border-box;
    left: 50%;
    max-height: calc(100dvh - 28px);
    overflow: auto;
    padding: 14px;
    position: fixed;
    text-align: left;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(360px, calc(100vw - 28px));
    z-index: 9001;
}
body.profile-spb_zpi .timesheet-cell-popover-head {
    align-items: center;
    border-bottom: 1px solid #e3e9f2;
    display: flex;
    justify-content: space-between;
    margin: -2px 0 11px;
    padding-bottom: 9px;
}
body.profile-spb_zpi .timesheet-cell-popover-head strong { color: #1b2e4c; font-size: .95rem; }
body.profile-spb_zpi .timesheet-cell-popover-head button {
    align-items: center;
    background: #eef2f8;
    border: 0;
    border-radius: 8px;
    color: #53647c;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.25rem;
    height: 32px;
    justify-content: center;
    padding: 0;
    width: 32px;
}
body.profile-spb_zpi .timesheet-cell-popover form { display: grid; gap: 7px; }
body.profile-spb_zpi .timesheet-cell-popover form + form { margin-top: 7px; }
body.profile-spb_zpi .timesheet-cell-popover label { color: #687993; display: grid; font-size: .67rem; font-weight: 800; gap: 3px; }
body.profile-spb_zpi .timesheet-cell-popover :is(input, select, textarea) { border: 1px solid #ccd7e7; border-radius: 8px; min-height: 35px; padding: 7px 8px; }
body.profile-spb_zpi .timesheet-readonly-cell { color: #263d66; font-size: .67rem; font-weight: 850; }
body.profile-spb_zpi .timesheet-empty { color: #8390a4; padding: 30px !important; }

body.profile-spb_zpi .timesheet-legend { display: flex; flex-wrap: wrap; gap: 12px; padding: 10px 14px 13px; }
body.profile-spb_zpi .timesheet-legend span { align-items: center; color: #687a93; display: inline-flex; font-size: .68rem; gap: 5px; }
body.profile-spb_zpi .timesheet-legend i { border: 1px solid rgba(40, 60, 90, .1); border-radius: 4px; height: 12px; width: 12px; }
body.profile-spb_zpi .timesheet-legend .shift-day { background: #eef7ff; }
body.profile-spb_zpi .timesheet-legend .shift-evening { background: #f2efff; }
body.profile-spb_zpi .timesheet-legend .absence-sick { background: #fff1f2; }
body.profile-spb_zpi .timesheet-legend .absence-leave { background: #fff8df; }
body.profile-spb_zpi .timesheet-legend .absence-day-off { background: #edf8f1; }
body.profile-spb_zpi .timesheet-legend .absence-absent { background: #ffe8eb; }

body.profile-spb_zpi .timesheet-access-grid { display: grid; gap: 7px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
body.profile-spb_zpi .timesheet-access-grid form { align-items: center; background: #f6f8fc; border: 1px solid #dfe6f0; border-radius: 10px; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) 145px auto; padding: 9px 10px; }
body.profile-spb_zpi .timesheet-access-grid span { display: grid; }
body.profile-spb_zpi .timesheet-access-grid small { color: #7a899f; font-size: .66rem; }
body.profile-spb_zpi .timesheet-access-grid select { border: 1px solid #ccd8e8; border-radius: 8px; min-height: 36px; }
body.profile-spb_zpi .timesheet-history-list { display: grid; gap: 7px; margin-top: 14px; }
body.profile-spb_zpi .timesheet-history-list article { align-items: start; border-left: 3px solid #6c7ee7; display: grid; gap: 10px; grid-template-columns: 130px minmax(0, 1fr); padding: 7px 10px; }
body.profile-spb_zpi .timesheet-history-list time { color: #7a8aa1; font-size: .7rem; }
body.profile-spb_zpi .timesheet-history-list article > div { display: grid; gap: 2px; }
body.profile-spb_zpi .timesheet-history-list article span { color: #53657e; font-size: .76rem; }

@media (max-width: 800px) {
    body.profile-spb_zpi .timesheet-hero {
        gap: 16px;
        padding: 20px;
    }
    body.profile-spb_zpi .timesheet-hero h1 {
        font-size: clamp(2rem, 11vw, 3rem);
        line-height: 1.02;
    }
    body.profile-spb_zpi .timesheet-hero .intro-note {
        font-size: .94rem;
        line-height: 1.42;
        margin-top: 10px;
    }
    body.profile-spb_zpi .timesheet-hero-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        width: 100%;
    }
    body.profile-spb_zpi .timesheet-hero-actions > * {
        font-size: .76rem;
        min-height: 42px;
        padding: 8px 7px;
        width: 100%;
    }
    body.profile-spb_zpi .timesheet-hero-actions .primary-button { grid-column: 1 / -1; }
    body.profile-spb_zpi .timesheet-toolbar { grid-template-columns: auto minmax(0, 1fr) auto; }
    body.profile-spb_zpi .timesheet-toolbar form { grid-column: 1 / -1; grid-row: 2; }
    body.profile-spb_zpi .timesheet-toolbar form label { flex: 1; }
    body.profile-spb_zpi .timesheet-toolbar input { min-width: 0; width: 100%; }
    body.profile-spb_zpi .timesheet-employee-list,
    body.profile-spb_zpi .timesheet-access-grid { grid-template-columns: minmax(0, 1fr); }
    body.profile-spb_zpi .timesheet-mobile-hint { display: flex; }
    body.profile-spb_zpi .timesheet-table { min-width: 1120px; }
    body.profile-spb_zpi .timesheet-table .timesheet-person-col { min-width: 148px; padding-inline: 9px; }
    body.profile-spb_zpi .timesheet-legend { gap: 7px 10px; padding: 9px 11px 12px; }
    body.profile-spb_zpi .timesheet-cell-popover { padding: 12px; width: min(350px, calc(100vw - 20px)); }
}

@media print {
    body.profile-spb_zpi .app-header,
    body.profile-spb_zpi .timesheet-hero-actions,
    body.profile-spb_zpi .timesheet-toolbar,
    body.profile-spb_zpi .timesheet-team-panel,
    body.profile-spb_zpi .timesheet-access-panel,
    body.profile-spb_zpi .timesheet-history-panel,
    body.profile-spb_zpi .timesheet-legend { display: none !important; }
    body.profile-spb_zpi .app-shell.timesheet-shell { margin: 0; max-width: none; padding: 0; }
    body.profile-spb_zpi .timesheet-board { border: 0; box-shadow: none; }
    body.profile-spb_zpi .timesheet-scroll { overflow: visible; }
    body.profile-spb_zpi .timesheet-table { min-width: 0; }
    body.profile-spb_zpi .timesheet-table .timesheet-person-col { position: static; }
    body.profile-spb_zpi .timesheet-cell-popover { display: none !important; }
}
