:root {
    --person-row-height: 44px;
    --department-row-height: 38px;
    --head-row-height: 48px;
    --calendar-scroll-height: 642px;
    --bg: #f4f6f8;
    --panel: #ffffff;
    --line: #e4e9ef;
    --line-soft: #edf1f5;
    --text: #182231;
    --muted: #6d7685;
    --blue: #1aa3df;
    --green: #20b99f;
    --amber: #f4b000;
    --red: #ff3d4f;
    --shadow: 0 6px 18px rgba(24, 34, 49, 0.08);
}

/* iprotocol design-kit skin */
:root {
    --bg: #ffffff;
    --panel: #ffffff;
    --line: #dfe5ea;
    --line-soft: #edf1f5;
    --text: #333333;
    --muted: #6f7c87;
    --blue: #00c9fb;
    --link: #2067b0;
    --input-line: #c9d1d8;
    --control-bg: #e1e6e7;
    --control-bg-active: #ced3d4;
    --control-border: #bec3c4;
    --control-text: #656767;
    --control-text-active: #2c2d2e;
    --shadow: none;
    --shadow-menu: 0 14px 34px rgba(31, 42, 55, 0.16);
}

body,
.app-shell,
.workspace,
.topbar,
.summary,
.view {
    background: #ffffff;
}

.topbar {
    height: auto;
    min-height: 58px;
    padding: 12px 24px 10px;
}

.tabs,
.subtabs {
    gap: 8px;
}

.tab,
.subtab,
.primary-button,
.secondary-button,
.danger-button,
.switch-button,
.icon-button,
.period-jump,
.report-clear-users,
.custom-hierarchy-actions button,
#testTimesheetExportSend,
#addAbsenceType,
#addCustomDepartment {
    min-height: 34px;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    box-shadow: none;
    cursor: pointer;
}

.tab {
    height: 34px;
    padding: 0 15px;
    border-color: #2a2f33;
    background: #2a2f33;
    color: #ffffff;
}

.tab:hover,
.tab.active {
    border-color: #191b1e;
    background: #191b1e;
    color: #ffffff;
    font-weight: 400;
}

.tab:disabled {
    border-color: transparent;
    background: var(--control-bg);
    color: var(--control-text);
}

.tab-badge {
    background: #ffffff;
    color: #2a2f33;
    font-size: 11px;
    font-weight: 500;
}

.subtab,
.secondary-button,
.switch-button,
.period-jump,
.icon-button,
.report-clear-users,
.custom-hierarchy-actions button,
#testTimesheetExportSend,
#addCustomDepartment {
    border: 1px solid transparent;
    background: var(--control-bg);
    color: var(--control-text);
}

.subtab.active,
.secondary-button:hover,
.switch-button.active,
.switch-button:hover,
.period-jump:focus,
.icon-button:hover,
.report-clear-users:hover,
.custom-hierarchy-actions button:hover,
#testTimesheetExportSend:hover,
#addCustomDepartment:hover {
    border-color: var(--control-border);
    background: var(--control-bg-active);
    color: var(--control-text-active);
}

.primary-button,
#addAbsenceType {
    border: 1px solid #2a2f33;
    background: #2a2f33;
    color: #ffffff;
}

.primary-button:hover,
#addAbsenceType:hover {
    border-color: #191b1e;
    background: #191b1e;
    color: #ffffff;
}

.danger-button {
    border: 1px solid #d93025;
    background: #fff6f6;
    color: #d93025;
}

.danger-button:hover {
    border-color: #c5221f;
    background: #ffecec;
    color: #c5221f;
}

.summary-card,
.timesheet-summary,
.timesheet-toolbar,
.timesheet-panel,
.report-card,
.settings-card {
    border: 0;
    box-shadow: none;
    background: #ffffff;
}

.summary-card {
    height: 188px;
}

.today-date,
.selection-controls,
.selection-dates {
    padding-top: 28px;
    padding-bottom: 28px;
}

.selection-label,
.report-filter-label,
.field-block h3,
.text-field span,
.settings-card h2,
.timesheet-actions-label {
    color: #6f7c87;
    letter-spacing: 0;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.today-line,
.today-metric-line {
    color: #414b56;
    font-size: 14px;
    font-weight: 400;
}

.today-line strong,
.selection-user strong,
.summary-card strong,
.timesheet-summary strong {
    color: #333333;
    font-size: 18px;
    font-weight: 500;
}

.today-metric-line strong {
    color: #333333;
    font-size: 15px;
    font-weight: 500;
}

.selection-user-meta,
.settings-note,
.empty-user-chip {
    color: #6f7c87;
    font-size: 12px;
    font-weight: 400;
}

.date-chip,
.selected-user-chip,
.report-user-chip {
    min-height: 24px;
    border: 1px solid #d8e0ea;
    border-radius: 999px;
    background: #ffffff;
    color: #182231;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
}

.selected-user-chip button,
.report-user-chip button {
    width: 18px;
    height: 18px;
    min-height: 18px;
    border-radius: 50%;
    background: #edf1f5;
    color: #647084;
}

.calendar-panel {
    border: 1px solid var(--line);
    box-shadow: none;
}

.toolbar,
.report-table-wrap {
    border-color: var(--line);
    box-shadow: none;
}

.filter-popover,
.timesheet-filter-popover,
.user-picker-menu,
.report-user-menu {
    width: max-content;
    min-width: 220px;
    max-width: calc(100vw - 38px);
    padding: 12px 0;
    border: 0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-menu);
}

.filter-popover {
    left: 18px;
    right: auto;
    top: 54px;
    width: 320px;
    max-height: 430px;
}

.timesheet-filter-popover {
    top: 54px;
    left: 18px;
    right: auto;
    width: 320px;
}

.filter-popover input[type="search"],
.user-search-picker input[type="search"],
.report-user-chips,
.text-field input,
.text-field select,
.selection-bar select,
.manager-row select,
.absence-type-row input,
.report-filters input[type="date"],
.timesheet-action-grid input {
    min-height: 34px;
    border: 1px solid var(--input-line);
    border-radius: 8px;
    background: #ffffff;
    color: #414b56;
    font: inherit;
}

.filter-popover input[type="search"] {
    width: calc(100% - 38px);
    margin: 0 19px;
    padding: 0 10px;
    border-width: 1px;
    font-size: 14px;
}

.filter-popover input[type="search"]:focus,
.user-search-picker input[type="search"]:focus,
.report-user-chips:focus-within,
.text-field input:focus,
.text-field select:focus,
.selection-bar select:focus,
.manager-row select:focus,
.absence-type-row input:focus,
.report-filters input[type="date"]:focus,
.timesheet-action-grid input:focus {
    outline: none;
    border-color: #0077ff;
}

.filter-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 8px 19px 0;
}

.filter-actions button {
    min-height: auto;
    border: 0;
    background: transparent;
    color: var(--link);
    padding: 4px 0;
    font-size: 13px;
    font-weight: 400;
}

.filter-list,
.user-picker-menu,
.report-user-menu {
    max-height: 240px;
}

.filter-option,
.user-picker-menu button,
.report-user-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 220px;
    min-height: 44px;
    padding: 0 19px;
    border-radius: 0;
    color: #686868;
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
}

.filter-option:hover,
.user-picker-menu button:hover,
.report-user-menu button:hover {
    background: #f7f7f7;
}

.filter-option input,
.compact-check-list input,
.check-line input,
.type-available-field input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #2067b0;
}

.selected-user-chips,
.report-user-chips {
    min-height: 34px;
    gap: 6px;
    padding: 6px;
    border: 1px solid #edf1f5;
    border-radius: 8px;
    background: #fbfcfd;
}

.settings-card {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
}

.settings-save-bar {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
}

.sort-row,
.custom-department-head {
    min-height: 42px;
    border: 1px solid #dfe5ea;
    border-radius: 8px;
    background: #ffffff;
    color: #414b56;
}

.sort-row {
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 12px;
    padding: 0 12px;
    cursor: grab;
}

.sort-row:active {
    cursor: grabbing;
}

.sort-row::before,
.custom-department-head::before {
    content: "";
    width: 16px;
    height: 22px;
    display: inline-block;
    background:
        radial-gradient(circle, #9aa3ad 2px, transparent 2px) 0 2px / 8px 8px,
        radial-gradient(circle, #9aa3ad 2px, transparent 2px) 8px 2px / 8px 8px;
}

.sort-row button,
.custom-department-head button[data-custom-department-up],
.custom-department-head button[data-custom-department-down],
.custom-employee-sort button {
    display: none;
}

.custom-department {
    border-color: var(--line);
    background: #ffffff;
}

.custom-department-head {
    grid-template-columns: 16px minmax(220px, 1fr) 38px;
    gap: 12px;
    padding: 0 12px;
}

.custom-department-head input {
    border: 0;
    min-height: 40px;
    padding: 0;
}

.report-card {
    border: 0;
    padding: 0;
}

.report-filters {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.report-table th {
    color: #6f7c87;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

/* iprotocol final refinements */
.selected-user-chip {
    font-weight: 400;
}

#todayWeekday,
#todayWeek,
.today-metric-line {
    color: #414b56;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

.today-line span,
.today-date > span {
    color: #414b56;
}

.today-metric-line strong {
    color: #333333;
    font-size: 14px;
    font-weight: 500;
}

.period-jump,
.selection-bar select,
.text-field select,
.manager-row select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg width='9' height='5' viewBox='0 0 9 5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l3.5 3L8 1' fill='none' stroke='%23656767' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 9px 5px;
}

.period-jump:focus,
.selection-bar select:focus,
.text-field select:focus,
.manager-row select:focus {
    background-image: url("data:image/svg+xml,%3Csvg width='9' height='5' viewBox='0 0 9 5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l3.5 3L8 1' fill='none' stroke='%232C2D2E' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.color-field input[type="color"],
.settings-color-field input[type="color"],
.absence-type-row input[type="color"] {
    width: 28px;
    height: 20px;
    min-width: 28px;
    min-height: 20px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    background: #ffffff;
    overflow: hidden;
    cursor: pointer;
}

.color-field input[type="color"]::-webkit-color-swatch-wrapper,
.settings-color-field input[type="color"]::-webkit-color-swatch-wrapper,
.absence-type-row input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-field input[type="color"]::-webkit-color-swatch,
.settings-color-field input[type="color"]::-webkit-color-swatch,
.absence-type-row input[type="color"]::-webkit-color-swatch {
    border: 0;
    border-radius: 3px;
}

.color-field input[type="color"]::-moz-color-swatch,
.settings-color-field input[type="color"]::-moz-color-swatch,
.absence-type-row input[type="color"]::-moz-color-swatch {
    border: 0;
    border-radius: 3px;
}

.primary-button:disabled,
.secondary-button:disabled,
.danger-button:disabled,
.tab:disabled,
.subtab:disabled,
.switch-button:disabled,
.report-clear-users:disabled {
    font-size: 14px;
    opacity: 0.55;
    cursor: default;
}

/* iprotocol final refinements */
.selected-user-chip {
    font-weight: 400;
}

#todayWeekday,
#todayWeek,
.today-metric-line {
    color: #414b56;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

.today-line span,
.today-date > span {
    color: #414b56;
}

.today-metric-line strong {
    color: #333333;
    font-size: 14px;
    font-weight: 500;
}

.period-jump,
.selection-bar select,
.text-field select,
.manager-row select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg width='9' height='5' viewBox='0 0 9 5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l3.5 3L8 1' fill='none' stroke='%23656767' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 9px 5px;
}

.period-jump:focus,
.selection-bar select:focus,
.text-field select:focus,
.manager-row select:focus {
    background-image: url("data:image/svg+xml,%3Csvg width='9' height='5' viewBox='0 0 9 5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l3.5 3L8 1' fill='none' stroke='%232C2D2E' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.color-field input[type="color"],
.settings-color-field input[type="color"],
.absence-type-row input[type="color"] {
    width: 28px;
    height: 20px;
    min-width: 28px;
    min-height: 20px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    background: #ffffff;
    overflow: hidden;
    cursor: pointer;
}

.color-field input[type="color"]::-webkit-color-swatch-wrapper,
.settings-color-field input[type="color"]::-webkit-color-swatch-wrapper,
.absence-type-row input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-field input[type="color"]::-webkit-color-swatch,
.settings-color-field input[type="color"]::-webkit-color-swatch,
.absence-type-row input[type="color"]::-webkit-color-swatch {
    border: 0;
    border-radius: 3px;
}

.color-field input[type="color"]::-moz-color-swatch,
.settings-color-field input[type="color"]::-moz-color-swatch,
.absence-type-row input[type="color"]::-moz-color-swatch {
    border: 0;
    border-radius: 3px;
}

/* iprotocol refinements */
.selected-user-chip {
    font-weight: 400;
}

#todayWeekday,
#todayWeek,
.today-metric-line {
    color: #414b56;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

.today-line span,
.today-date > span {
    color: #414b56;
}

.today-metric-line strong {
    color: #333333;
    font-size: 14px;
    font-weight: 500;
}

.period-jump,
.selection-bar select,
.text-field select,
.manager-row select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg width='9' height='5' viewBox='0 0 9 5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l3.5 3L8 1' fill='none' stroke='%23656767' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 9px 5px;
}

.period-jump:focus,
.selection-bar select:focus,
.text-field select:focus,
.manager-row select:focus {
    background-image: url("data:image/svg+xml,%3Csvg width='9' height='5' viewBox='0 0 9 5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l3.5 3L8 1' fill='none' stroke='%232C2D2E' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.color-field input[type="color"],
.settings-color-field input[type="color"],
.absence-type-row input[type="color"] {
    width: 28px;
    height: 20px;
    min-width: 28px;
    min-height: 20px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    background: #ffffff;
    overflow: hidden;
    cursor: pointer;
}

.color-field input[type="color"]::-webkit-color-swatch-wrapper,
.settings-color-field input[type="color"]::-webkit-color-swatch-wrapper,
.absence-type-row input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-field input[type="color"]::-webkit-color-swatch,
.settings-color-field input[type="color"]::-webkit-color-swatch,
.absence-type-row input[type="color"]::-webkit-color-swatch {
    border: 0;
    border-radius: 3px;
}

.color-field input[type="color"]::-moz-color-swatch,
.settings-color-field input[type="color"]::-moz-color-swatch,
.absence-type-row input[type="color"]::-moz-color-swatch {
    border: 0;
    border-radius: 3px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #ffffff;
    color: var(--text);
    font: 14px/1.45 "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

button,
input {
    font: inherit;
}

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

.topbar {
    height: 76px;
    display: flex;
    align-items: center;
    padding: 18px 24px 10px;
}

.tabs {
    display: flex;
    gap: 8px;
}

.tab {
    position: relative;
    height: 42px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #e8edf3;
    color: #3d4858;
    padding: 0 18px;
    cursor: pointer;
}

.tab-badge {
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    border-radius: 999px;
    background: #ff3d4f;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.hidden {
    display: none !important;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

.tab.active {
    background: var(--blue);
    color: #ffffff;
    font-weight: 700;
}

.tab:disabled {
    opacity: 0.55;
    cursor: default;
}

.workspace {
    padding: 0 24px 28px;
}

.summary {
    margin-bottom: 12px;
}

.summary-card {
    height: 200px;
    background: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 0;
    overflow: hidden;
}

.summary-card strong {
    font-size: 15px;
    line-height: 1.1;
}

.summary-card span {
    color: var(--muted);
}

.summary-label {
    text-transform: uppercase;
    letter-spacing: 0;
    font-size: 12px;
    font-weight: 700;
    color: #9aa4b2;
}

.today-card {
    display: grid;
    grid-template-columns: minmax(210px, 0.85fr) minmax(300px, 1fr) minmax(0, 1.8fr);
    column-gap: 0;
    align-items: stretch;
}

.today-date {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
    padding: 34px 34px 34px 38px;
    border-right: 1px solid var(--line-soft);
}

.today-line,
.today-metric-line {
    display: flex;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    color: #1b2534;
    font-size: 14px;
    line-height: 1.25;
    white-space: nowrap;
}

.today-metric-line {
    color: var(--muted);
}

.today-line span,
.today-date > span {
    color: var(--muted);
}

.today-line strong,
.selection-user strong {
    font-size: 15px;
    line-height: 1.22;
    font-weight: 800;
}

.today-metric-line strong {
    margin-left: 4px;
    color: var(--text);
}

.toolbar {
    min-height: 52px;
    background: var(--panel);
    border: 1px solid var(--line-soft);
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
}

.selection-bar {
    height: 100%;
    display: grid;
    grid-column: 2 / 4;
    grid-template-columns: minmax(360px, 1fr) minmax(0, 2fr);
    align-items: stretch;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
}

.selection-bar strong {
    display: block;
    max-height: 132px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.28;
    font-weight: 700;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

.selection-controls {
    display: grid;
    grid-template-rows: auto 32px 32px;
    align-content: start;
    gap: 10px;
    min-width: 0;
    overflow: hidden;
    padding: 34px 28px 34px 28px;
    grid-column: 1;
}

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

.selection-label {
    display: block;
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
}

.selection-user {
    min-width: 0;
}

.selection-user-meta {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.selection-dates {
    position: relative;
    min-width: 0;
    align-self: stretch;
    padding: 34px 34px 34px 28px;
    grid-column: 2;
    overflow: hidden;
}

.selection-dates::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--line-soft);
    z-index: 2;
}

.selection-dates strong {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 6px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    max-height: 126px;
    overflow: hidden;
    white-space: normal;
}

.date-chip {
    display: inline-flex;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    min-height: 24px;
    align-items: center;
    border: 1px solid #d8e0ea;
    border-radius: 6px;
    background: #f8fafc;
    padding: 2px 8px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: normal;
    text-overflow: ellipsis;
    white-space: normal;
}

.selection-bar select,
.text-field input,
.text-field select,
.manager-row select,
.absence-type-row input {
    min-height: 32px;
    border: 1px solid #cfd7e2;
    border-radius: 8px;
    padding: 0 44px 0 10px;
    background: #ffffff;
    color: var(--text);
}

.primary-button,
.secondary-button,
.danger-button {
    height: 34px;
    min-height: 34px;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.selection-bar select {
    width: 100%;
    min-width: 0;
    font-size: 12px;
}

.selection-bar .primary-button {
    min-width: 118px;
}

.selection-bar .secondary-button {
    min-width: 168px;
}

.secondary-button:disabled,
.primary-button:disabled {
    opacity: 0.45;
    cursor: default;
}

.primary-button {
    border: 1px solid #159bd2;
    background: var(--blue);
    color: #ffffff;
    font-weight: 800;
}

.secondary-button {
    border: 1px solid #cfd7e2;
    background: #ffffff;
    color: #3d4858;
}

.danger-button {
    border: 1px solid #f1b6bf;
    background: #fff5f6;
    color: #b42335;
}

.period-controls,
.view-switch {
    display: flex;
    align-items: center;
    gap: 10px;
}

.period-jump {
    height: 34px;
    min-width: 210px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    padding: 0 46px 0 12px;
    font-size: 14px;
    font-weight: 800;
}

.icon-button {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    background: #ffffff;
    border-radius: 8px;
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 2px;
    cursor: pointer;
}

.switch-button {
    height: 34px;
    border: 1px solid var(--line);
    background: #ffffff;
    border-radius: 8px;
    padding: 0 12px;
    color: #3d4858;
    cursor: pointer;
}

.switch-button.active {
    background: #182231;
    color: #ffffff;
}

.calendar-panel {
    display: grid;
    grid-template-columns: 438px minmax(620px, 1fr);
    min-height: 650px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.people-panel {
    border-right: 1px solid var(--line);
    overflow: visible;
}

.people-head {
    position: relative;
    z-index: 7;
    height: var(--head-row-height);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
}

.collapse-all-button {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #657184;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
}

.collapse-all-button:hover {
    background: #edf4fb;
    color: #126ba3;
}

.calendar-panel.with-months .people-head {
    height: calc(var(--head-row-height) + 30px);
}

.filter-button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #657184;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.filter-button.active,
.filter-button:hover {
    background: #edf4fb;
    color: #126ba3;
}

.filter-popover {
    position: absolute;
    top: 48px;
    left: 16px;
    right: 16px;
    z-index: 15;
    display: none;
    max-height: 390px;
    padding: 16px;
    border: 1px solid #d5dde8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(24, 34, 49, 0.16);
}

.filter-popover.open {
    display: block;
}

.filter-popover input[type="search"] {
    width: 100%;
    height: 42px;
    border: 2px solid #0969cf;
    border-radius: 8px;
    padding: 0 14px;
    outline: none;
    font-size: 18px;
}

.filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0 14px;
}

.filter-actions button {
    min-height: 42px;
    border: 1px solid #cfd7e2;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    padding: 0 10px;
    white-space: nowrap;
    font-weight: 700;
}

.filter-list {
    max-height: 225px;
    overflow: auto;
}

.filter-option {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 2px;
    font-size: 15px;
    color: #243044;
}

.filter-option input {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.filter-empty {
    color: var(--muted);
    font-size: 16px;
    padding: 12px 0 4px;
}

.people-list {
    overflow: auto;
    max-height: calc(var(--calendar-scroll-height) - var(--head-row-height) - 30px);
    scrollbar-width: none;
}

.people-list::-webkit-scrollbar {
    display: none;
}

.empty-state {
    padding: 22px 16px;
    color: var(--muted);
    font-size: 15px;
}

.row-label {
    height: var(--person-row-height);
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 14px;
    box-shadow: inset 0 -1px 0 var(--line-soft);
    cursor: pointer;
    overflow: hidden;
}

.row-label.department {
    height: var(--department-row-height);
    font-weight: 800;
    background: #fbfcfd;
}

.chevron {
    width: 18px;
    color: #111827;
    font-size: 18px;
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #a6b0bd;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex: 0 0 auto;
    object-fit: cover;
}

.employee-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.timeline-wrap {
    overflow: auto;
    max-height: var(--calendar-scroll-height);
}

.timeline-head {
    position: sticky;
    top: 0;
    z-index: 8;
    display: grid;
    background: #ffffff;
    box-shadow: inset 0 -1px 0 var(--line);
    isolation: isolate;
}

.timeline-head.with-months {
    padding-top: 30px;
}

.month-cell {
    position: absolute;
    top: 0;
    z-index: 3;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fbfcfd;
    font-weight: 800;
    color: #3d4858;
    overflow: hidden;
    white-space: nowrap;
}

.time-cell {
    position: relative;
    z-index: 2;
    height: var(--head-row-height);
    min-width: 44px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.time-cell.today {
    background: var(--blue);
    color: #ffffff;
}

.time-cell .weekday {
    display: block;
    font-size: 10px;
    color: inherit;
    opacity: 0.75;
}

.timeline-grid {
    position: relative;
    display: grid;
}

.grid-row {
    position: relative;
    display: grid;
    box-shadow: inset 0 -1px 0 var(--line-soft);
}

.grid-row.department {
    height: var(--department-row-height);
    background: #fbfcfd;
}

.grid-row.person {
    height: var(--person-row-height);
}

.grid-cell {
    position: relative;
    min-width: 44px;
    border-right: 1px solid var(--line-soft);
}

.grid-cell.weekend {
    background: #faf2f2;
}

.grid-cell.locked-cell {
    cursor: not-allowed;
}

.grid-cell.locked-cell:hover {
    outline: none;
}

.grid-cell.interactive-cell {
    cursor: pointer;
}

.grid-cell.today {
    background: rgba(26, 163, 223, 0.22);
}

.grid-cell.absence-cell {
    position: relative;
    background: var(--absence-bg);
    color: var(--absence-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-transform: uppercase;
}

.grid-cell.absence-cell.status-pending {
    background:
        repeating-linear-gradient(
            135deg,
            var(--absence-bg) 0,
            var(--absence-bg) 6px,
            rgba(255, 255, 255, 0.72) 6px,
            rgba(255, 255, 255, 0.72) 12px
        ),
        rgba(255, 255, 255, 0.78);
}

.grid-cell.absence-cell.status-cancelPending {
    background:
        repeating-linear-gradient(
            45deg,
            rgba(255, 184, 77, 0.62) 0,
            rgba(255, 184, 77, 0.62) 5px,
            var(--absence-bg) 5px,
            var(--absence-bg) 11px
        ),
        var(--absence-bg);
}

.grid-cell.absence-cell.today {
    outline: 2px solid rgba(26, 163, 223, 0.38);
    outline-offset: -2px;
}

.grid-cell.selected-cell {
    outline: none !important;
    background: rgba(9, 105, 207, 0.08);
}

.grid-cell.absence-cell.selected-cell {
    outline: none !important;
    box-shadow: none !important;
}

.grid-cell.absence-cell.selected-cell strong {
    position: relative;
    z-index: 1;
}

.grid-cell.selected-cell::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 1px solid #0969cf;
    pointer-events: none;
}

.grid-cell.selected-cell.selected-has-prev::after {
    border-left: 0;
}

.grid-cell.selected-cell.selected-has-next::after {
    border-right: 0;
}

.tooltip {
    position: fixed;
    z-index: 20;
    display: none;
    max-width: 280px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #182231;
    color: #ffffff;
    box-shadow: var(--shadow);
    font-size: 13px;
    pointer-events: none;
}

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

    .calendar-panel {
        grid-template-columns: 320px minmax(620px, 1fr);
    }
}

.page-head {
    min-height: 52px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.page-head h1 {
    margin: 0;
    font-size: 22px;
}

.page-head span {
    color: var(--muted);
}

.subtabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.settings-save-bar {
    position: sticky;
    top: 0;
    z-index: 5;
    min-height: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

.settings-save-bar div {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.subtab {
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    padding: 0 14px;
    cursor: pointer;
}

.subtab.active {
    background: #182231;
    color: #ffffff;
}

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

.settings-card,
.approval-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
    padding: 18px;
}

.settings-card.wide {
    grid-column: 1 / -1;
}

.settings-card h2,
.approval-card h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

.field-block {
    margin: 16px 0;
}

.field-block h3,
.text-field span {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--muted);
    font-weight: 800;
}

.settings-note {
    max-width: 820px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.settings-warning {
    display: grid;
    gap: 6px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid #f1c36d;
    border-radius: 8px;
    background: #fff8e7;
    color: #5f4513;
    font-size: 13px;
}

.settings-warning strong {
    color: #4d370f;
}

.settings-warning span {
    color: #755a22;
}

.settings-warning ul {
    margin: 2px 0 0;
    padding-left: 18px;
}

.compact-check-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 8px 14px;
    max-height: 230px;
    overflow: auto;
    padding: 10px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #fbfcfd;
}

.compact-check-list label,
.check-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-line {
    min-height: 34px;
    margin: 8px 0;
}

.check-line.compact {
    margin: 0;
    font-size: 13px;
}

.manager-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(320px, 2fr);
    gap: 12px;
    align-items: start;
    padding: 8px 0;
    border-bottom: 1px solid var(--line-soft);
}

.custom-hierarchy {
    display: grid;
    gap: 14px;
}

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

.custom-department {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #fbfcfd;
}

.custom-department-head {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 38px 38px 38px;
    gap: 8px;
    align-items: center;
}

.custom-department-head input {
    width: 100%;
    min-height: 36px;
}

.custom-department-head button,
.custom-employee-sort button {
    min-height: 34px;
    border: 1px solid #cfd7e2;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
}

.custom-employee-sort {
    display: grid;
    gap: 8px;
}

.user-search-picker {
    position: relative;
    display: grid;
    gap: 8px;
}

.selected-user-chips {
    min-height: 34px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #fbfcfd;
}

.selected-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    max-width: 100%;
    padding: 2px 8px;
    border: 1px solid #d8e0ea;
    border-radius: 999px;
    background: #ffffff;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}

.selected-user-chip button {
    width: 18px;
    height: 18px;
    min-height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #edf1f5;
    color: #647084;
    cursor: pointer;
    line-height: 1;
}

.empty-user-chip {
    color: var(--muted);
    font-size: 12px;
}

.user-search-picker input[type="search"] {
    width: 100%;
    min-height: 34px;
    border: 1px solid #cfd7e2;
    border-radius: 8px;
    padding: 0 10px;
    background: #ffffff;
    color: var(--text);
}

.user-picker-menu {
    display: none;
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    right: 0;
    z-index: 30;
    max-height: 220px;
    overflow: auto;
    padding: 6px;
    border: 1px solid #cfd7e2;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(24, 34, 49, 0.14);
}

.user-search-picker:focus-within .user-picker-menu {
    display: grid;
    gap: 4px;
}

.user-picker-menu button {
    min-height: 30px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text);
    text-align: left;
    padding: 0 8px;
    cursor: pointer;
}

.user-picker-menu button:hover {
    background: #edf4fb;
}

.user-picker-empty {
    padding: 8px;
    color: var(--muted);
    font-size: 12px;
}

.text-field {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.weekday-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.weekday-toggle label {
    cursor: pointer;
}

.weekday-toggle input {
    position: absolute;
    opacity: 0;
}

.weekday-toggle span {
    min-width: 42px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfd7e2;
    border-radius: 8px;
    background: #ffffff;
}

.weekday-toggle input:checked + span {
    background: var(--blue);
    border-color: var(--blue);
    color: #ffffff;
    font-weight: 800;
}

.absence-type-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.absence-type-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 94px;
    gap: 10px 12px;
    align-items: start;
    padding: 14px 42px 14px 14px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #fbfcfd;
}

.absence-type-row label {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 12px;
}

.absence-type-row input[type="text"],
.absence-type-row input:not([type]) {
    width: 100%;
}

.absence-type-row input[readonly] {
    background: #f1f4f8;
    color: #657184;
}

.type-style-row {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
}

.color-field {
    display: inline-flex !important;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    align-items: center;
    gap: 8px !important;
}

.color-field input[type="color"] {
    width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 2px;
    border-radius: 6px;
}

.type-available-field {
    display: inline-flex !important;
    align-items: center;
    gap: 8px !important;
    margin-left: auto;
    color: #3d4858 !important;
    font-size: 12px !important;
    font-weight: 700;
}

.type-available-field input {
    width: 16px;
    height: 16px;
    min-height: 16px;
    padding: 0;
}

.type-delete-button {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    min-height: 26px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 6px !important;
    color: #9b2432;
    font-size: 18px;
    line-height: 1;
}

.base-type-badge {
    position: absolute;
    top: 8px;
    right: 10px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.absence-type-row button,
.sort-row button {
    min-height: 34px;
    border: 1px solid #cfd7e2;
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
}

.sort-list {
    display: grid;
    gap: 8px;
}

.sort-row {
    display: grid;
    grid-template-columns: 1fr 42px 42px;
    gap: 8px;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #fbfcfd;
}

.approval-list {
    display: grid;
    gap: 14px;
}

.approval-card header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.approval-card header strong {
    font-size: 18px;
}

.approval-card mark {
    border-radius: 999px;
    background: #fff1c2;
    padding: 4px 10px;
}

.approval-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.approval-dates button {
    min-height: 36px;
    border: 1px solid #cfd7e2;
    border-radius: 8px;
    background: #ffffff;
    padding: 0 10px;
    cursor: pointer;
}

.approval-dates button.removed {
    opacity: 0.45;
    text-decoration: line-through;
}

.approval-dates span {
    margin-left: 8px;
    color: #c93545;
    font-weight: 800;
}

.approval-card footer {
    display: flex;
    gap: 10px;
}

.report-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.report-filters {
    display: grid;
    grid-template-columns: minmax(150px, 180px) minmax(150px, 180px) minmax(320px, 1fr);
    gap: 14px;
    align-items: end;
}

.report-filters label {
    display: grid;
    gap: 6px;
}

.report-filter-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.report-user-picker {
    position: relative;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    gap: 8px;
    align-items: end;
}

.report-user-picker > .report-filter-label {
    grid-column: 1 / -1;
}

.report-user-search {
    position: relative;
}

.report-user-chips {
    min-height: 42px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid #cfd7e2;
    border-radius: 8px;
    background: #ffffff;
}

.report-user-chips input {
    min-width: 170px;
    flex: 1;
    min-height: 28px;
    padding: 0;
    border: 0;
    outline: 0;
}

.report-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 220px;
    padding: 5px 8px;
    border: 1px solid #d8e0eb;
    border-radius: 999px;
    background: #f4f7fb;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.report-user-chip button {
    width: 18px;
    height: 18px;
    min-height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.report-user-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    display: none;
    max-height: 220px;
    overflow: auto;
    padding: 6px;
    border: 1px solid #cfd7e2;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(31, 42, 55, 0.16);
}

.report-user-search:focus-within .report-user-menu {
    display: grid;
    gap: 4px;
}

.report-user-menu button {
    min-height: 32px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    padding: 0 8px;
    text-align: left;
    cursor: pointer;
}

.report-user-menu button:hover {
    background: #eef4fb;
}

.report-user-menu span {
    padding: 8px;
    color: var(--muted);
}

.report-clear-users {
    min-height: 42px;
    white-space: nowrap;
}

.report-table-wrap {
    overflow: auto;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
}

.report-table {
    width: 100%;
    min-width: 860px;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
}

.report-table th,
.report-table td {
    padding: 11px 12px;
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    text-align: left;
    vertical-align: top;
}

.report-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f7f9fc;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.report-table td {
    color: var(--ink);
    font-size: 14px;
}

.report-table td:not(:first-child),
.report-table th:not(:first-child) {
    text-align: center;
    white-space: nowrap;
}

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

.report-table th:last-child,
.report-table td:last-child {
    border-right: 0;
}

.report-table tbody tr:hover {
    background: #fbfdff;
}

.report-empty {
    padding: 24px !important;
    color: var(--muted) !important;
    text-align: center !important;
}

.timesheet-summary,
.timesheet-toolbar,
.timesheet-panel {
    border: 1px solid var(--line-soft);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.timesheet-summary {
    height: 132px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 12px;
    padding: 24px 28px;
    border-radius: 8px;
    overflow: hidden;
}

.timesheet-selection-info {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(180px, 0.75fr) minmax(0, 1.25fr);
    gap: 18px;
    align-items: start;
}

.timesheet-summary strong {
    display: block;
    margin-top: 4px;
    font-size: 15px;
    line-height: 1.35;
}

.timesheet-date-list {
    max-height: 68px;
    overflow: hidden;
}

.timesheet-edit-controls {
    min-width: 0;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 4px;
    align-items: start;
}

.timesheet-actions-label {
    margin-top: 0;
}

.timesheet-action-grid {
    display: grid;
    grid-template-columns: minmax(82px, 0.55fr) minmax(118px, 1fr);
    gap: 8px;
    align-items: center;
}

.timesheet-action-grid input {
    width: 100%;
    height: 36px;
    min-height: 36px;
    border: 1px solid #cfd7e2;
    border-radius: 8px;
    padding: 0 10px;
    background: #ffffff;
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
    text-align: center;
}

.timesheet-action-grid button {
    height: 36px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

#timesheetClearSelection {
    font-size: 12px;
}

.timesheet-toolbar {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px;
    border-radius: 8px 8px 0 0;
}

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

.timesheet-panel {
    border-top: 0;
    border-radius: 0 0 8px 8px;
    position: relative;
    overflow: hidden;
}

.timesheet-table-wrap {
    position: relative;
    min-height: 260px;
    max-height: var(--calendar-scroll-height);
    overflow: auto;
}

.timesheet-table {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.timesheet-table th,
.timesheet-table td {
    width: 42px;
    min-width: 42px;
    height: 38px;
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    padding: 0 6px;
    text-align: center;
    vertical-align: middle;
    background: #ffffff;
}

.timesheet-table th {
    position: sticky;
    top: 0;
    z-index: 3;
    height: 54px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.timesheet-table th span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    line-height: 1;
}

.timesheet-table th.weekend,
.timesheet-table td.weekend {
    background: #fff6f6;
}

.timesheet-table th.today {
    background: var(--blue);
    color: #ffffff;
}

.timesheet-table th.today span {
    color: #ffffff;
}

.timesheet-person-col {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 260px !important;
    min-width: 260px !important;
    text-align: left !important;
    padding: 0 14px !important;
    font-weight: 700;
    background: #ffffff !important;
}

.timesheet-person-head {
    overflow: visible;
}

.timesheet-person-head > strong {
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.timesheet-person-head .collapse-all-button,
.timesheet-person-head .filter-button {
    position: relative;
    z-index: 5;
    width: 28px;
    height: 28px;
    min-height: 28px;
    margin-right: 8px;
    padding: 0;
    vertical-align: middle;
}

.timesheet-person-head .filter-button {
    margin-right: 0;
    margin-left: 8px;
}

.timesheet-filter-popover {
    z-index: 80;
    top: 54px;
    left: 16px;
    right: auto;
    width: 320px;
    white-space: normal;
}

.timesheet-empty-row td {
    height: 190px;
    padding: 24px !important;
    background: #ffffff !important;
    color: var(--muted);
    text-align: center;
    font-weight: 700;
}

.timesheet-person-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.timesheet-table thead .timesheet-person-col {
    z-index: 4;
}

.timesheet-department-row td {
    height: 34px;
    background: #f7f9fc !important;
}

.timesheet-department-row .timesheet-person-col {
    position: sticky;
    left: 0;
    z-index: 3;
    padding: 0 14px;
    text-align: left;
    font-weight: 800;
}

.timesheet-department-row .timesheet-person-col span {
    vertical-align: middle;
}

.timesheet-cell {
    cursor: pointer;
    user-select: none;
}

.timesheet-cell.locked-cell {
    cursor: default;
}

.timesheet-table td.timesheet-cell.hours-cell {
    background: var(--hours-bg, #e8f7ef) !important;
    background-color: var(--hours-bg, #e8f7ef) !important;
    color: var(--hours-text, #1f6f43) !important;
    font-weight: 800;
}

.timesheet-table td.timesheet-cell.hours-cell strong {
    color: var(--hours-text, #1f6f43) !important;
}

.timesheet-table td.timesheet-cell.absence-cell {
    background: var(--absence-bg, #d9d9d9) !important;
    background-color: var(--absence-bg, #d9d9d9) !important;
    color: var(--absence-text, #000000) !important;
}

.timesheet-table td.timesheet-cell.absence-cell strong {
    color: var(--absence-text, #000000) !important;
}

.timesheet-cell.selected-cell {
    outline: 1px solid #0969da;
    outline-offset: -1px;
}

.settings-color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px 16px;
}

.settings-color-field {
    display: flex !important;
    justify-content: space-between;
    padding: 8px 10px;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #fbfcfd;
}

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

    .absence-type-row,
    .manager-row,
    .report-filters,
    .report-user-picker,
    .custom-department-head {
        grid-template-columns: 1fr;
    }

    .timesheet-summary {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.78fr);
        gap: 14px;
        padding: 20px;
    }

    .timesheet-selection-info {
        grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.2fr);
        gap: 12px;
    }

    .timesheet-edit-controls {
        gap: 4px;
    }

    .timesheet-action-grid {
        grid-template-columns: minmax(64px, 0.55fr) minmax(94px, 1fr);
        gap: 6px;
    }

    .timesheet-action-grid button {
        min-height: 34px;
        height: 34px;
        padding: 0 8px;
        font-size: 11px;
    }

    .timesheet-toolbar {
        align-items: stretch;
        flex-direction: column;
    }
}

/* iprotocol design-kit final overrides */
:root {
    --bg: #ffffff;
    --panel: #ffffff;
    --line: #dfe5ea;
    --line-soft: #edf1f5;
    --text: #333333;
    --muted: #6f7c87;
    --blue: #00c9fb;
    --link: #2067b0;
    --input-line: #c9d1d8;
    --control-bg: #e1e6e7;
    --control-bg-active: #ced3d4;
    --control-border: #bec3c4;
    --control-text: #656767;
    --control-text-active: #2c2d2e;
    --shadow: none;
    --shadow-menu: 0 14px 34px rgba(31, 42, 55, 0.16);
}

body,
.app-shell,
.workspace,
.topbar,
.summary,
.view {
    background: #ffffff;
}

.topbar {
    height: auto;
    min-height: 58px;
    padding: 12px 24px 10px;
}

.tabs,
.subtabs {
    gap: 8px;
}

.tab,
.subtab,
.primary-button,
.secondary-button,
.danger-button,
.switch-button,
.icon-button,
.period-jump,
.report-clear-users,
.custom-hierarchy-actions button,
#testTimesheetExportSend,
#addAbsenceType,
#addCustomDepartment {
    min-height: 34px;
    border-radius: 8px;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    box-shadow: none;
    cursor: pointer;
}

.tab {
    height: 34px;
    padding: 0 15px;
    border-color: #2a2f33;
    background: #2a2f33;
    color: #ffffff;
}

.tab:hover,
.tab.active {
    border-color: #191b1e;
    background: #191b1e;
    color: #ffffff;
    font-weight: 400;
}

.tab:disabled {
    border-color: transparent;
    background: var(--control-bg);
    color: var(--control-text);
}

.tab-badge {
    background: #ffffff;
    color: #2a2f33;
    font-size: 11px;
    font-weight: 500;
}

.subtab,
.secondary-button,
.switch-button,
.period-jump,
.icon-button,
.report-clear-users,
.custom-hierarchy-actions button,
#testTimesheetExportSend,
#addCustomDepartment {
    border: 1px solid transparent;
    background: var(--control-bg);
    color: var(--control-text);
}

.subtab.active,
.secondary-button:hover,
.switch-button.active,
.switch-button:hover,
.period-jump:focus,
.icon-button:hover,
.report-clear-users:hover,
.custom-hierarchy-actions button:hover,
#testTimesheetExportSend:hover,
#addCustomDepartment:hover {
    border-color: var(--control-border);
    background: var(--control-bg-active);
    color: var(--control-text-active);
}

.primary-button,
#addAbsenceType {
    border: 1px solid #2a2f33;
    background: #2a2f33;
    color: #ffffff;
}

.primary-button:hover,
#addAbsenceType:hover {
    border-color: #191b1e;
    background: #191b1e;
    color: #ffffff;
}

.danger-button {
    border: 1px solid #d93025;
    background: #fff6f6;
    color: #d93025;
}

.danger-button:hover {
    border-color: #c5221f;
    background: #ffecec;
    color: #c5221f;
}

.summary-card,
.timesheet-summary,
.timesheet-toolbar,
.timesheet-panel,
.report-card,
.settings-card {
    border: 0;
    box-shadow: none;
    background: #ffffff;
}

.summary-card {
    height: 188px;
}

.today-date,
.selection-controls,
.selection-dates {
    padding-top: 28px;
    padding-bottom: 28px;
}

.selection-label,
.report-filter-label,
.field-block h3,
.text-field span,
.settings-card h2,
.timesheet-actions-label {
    color: #6f7c87;
    letter-spacing: 0;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.today-line,
.today-metric-line {
    color: #414b56;
    font-size: 14px;
    font-weight: 400;
}

.today-line strong,
.selection-user strong,
.summary-card strong,
.timesheet-summary strong {
    color: #333333;
    font-size: 18px;
    font-weight: 500;
}

.today-metric-line strong {
    color: #333333;
    font-size: 15px;
    font-weight: 500;
}

.selection-user-meta,
.settings-note,
.empty-user-chip {
    color: #6f7c87;
    font-size: 12px;
    font-weight: 400;
}

.date-chip,
.selected-user-chip,
.report-user-chip {
    min-height: 24px;
    border: 1px solid #d8e0ea;
    border-radius: 999px;
    background: #ffffff;
    color: #182231;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
}

.selected-user-chip button,
.report-user-chip button {
    width: 18px;
    height: 18px;
    min-height: 18px;
    border-radius: 50%;
    background: #edf1f5;
    color: #647084;
}

.calendar-panel {
    border: 1px solid var(--line);
    box-shadow: none;
}

.toolbar,
.report-table-wrap {
    border-color: var(--line);
    box-shadow: none;
}

.filter-popover,
.timesheet-filter-popover,
.user-picker-menu,
.report-user-menu {
    width: max-content;
    min-width: 220px;
    max-width: calc(100vw - 38px);
    padding: 12px 0;
    border: 0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-menu);
}

.filter-popover {
    left: 18px;
    right: auto;
    top: 54px;
    width: 320px;
    max-height: 430px;
}

.timesheet-filter-popover {
    top: 54px;
    left: 18px;
    right: auto;
    width: 320px;
}

.filter-popover input[type="search"],
.user-search-picker input[type="search"],
.report-user-chips,
.text-field input,
.text-field select,
.selection-bar select,
.manager-row select,
.absence-type-row input,
.report-filters input[type="date"],
.timesheet-action-grid input {
    min-height: 34px;
    border: 1px solid var(--input-line);
    border-radius: 8px;
    background: #ffffff;
    color: #414b56;
    font: inherit;
}

.filter-popover input[type="search"] {
    width: calc(100% - 38px);
    margin: 0 19px;
    padding: 0 10px;
    border-width: 1px;
    font-size: 14px;
}

.filter-popover input[type="search"]:focus,
.user-search-picker input[type="search"]:focus,
.report-user-chips:focus-within,
.text-field input:focus,
.text-field select:focus,
.selection-bar select:focus,
.manager-row select:focus,
.absence-type-row input:focus,
.report-filters input[type="date"]:focus,
.timesheet-action-grid input:focus {
    outline: none;
    border-color: #0077ff;
}

.filter-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 8px 19px 0;
}

.filter-actions button {
    min-height: auto;
    border: 0;
    background: transparent;
    color: var(--link);
    padding: 4px 0;
    font-size: 13px;
    font-weight: 400;
}

.filter-list,
.user-picker-menu,
.report-user-menu {
    max-height: 240px;
}

.filter-option,
.user-picker-menu button,
.report-user-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 220px;
    min-height: 44px;
    padding: 0 19px;
    border-radius: 0;
    color: #686868;
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
}

.filter-option:hover,
.user-picker-menu button:hover,
.report-user-menu button:hover {
    background: #f7f7f7;
}

.filter-option input,
.compact-check-list input,
.check-line input,
.type-available-field input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #2067b0;
}

.selected-user-chips,
.report-user-chips {
    min-height: 34px;
    gap: 6px;
    padding: 6px;
    border: 1px solid #edf1f5;
    border-radius: 8px;
    background: #fbfcfd;
}

.settings-card {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
}

.settings-save-bar {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
}

.sort-row,
.custom-department-head {
    min-height: 42px;
    border: 1px solid #dfe5ea;
    border-radius: 8px;
    background: #ffffff;
    color: #414b56;
}

.sort-row {
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 12px;
    padding: 0 12px;
    cursor: grab;
}

.sort-row:active {
    cursor: grabbing;
}

.sort-row::before,
.custom-department-head::before {
    content: "";
    width: 16px;
    height: 22px;
    display: inline-block;
    background:
        radial-gradient(circle, #9aa3ad 2px, transparent 2px) 0 2px / 8px 8px,
        radial-gradient(circle, #9aa3ad 2px, transparent 2px) 8px 2px / 8px 8px;
}

.sort-row button,
.custom-department-head button[data-custom-department-up],
.custom-department-head button[data-custom-department-down],
.custom-employee-sort button {
    display: none;
}

.custom-department {
    border-color: var(--line);
    background: #ffffff;
}

.custom-department-head {
    grid-template-columns: 16px minmax(220px, 1fr) 38px;
    gap: 12px;
    padding: 0 12px;
}

.custom-department-head input {
    border: 0;
    min-height: 40px;
    padding: 0;
}

.report-card {
    border: 0;
    padding: 0;
}

.report-filters {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.report-table th {
    color: #6f7c87;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}
/* iprotocol true-final refinements */
.selected-user-chip {
    font-weight: 400;
}

#todayWeekday,
#todayWeek,
.today-metric-line {
    color: #414b56;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

.today-line span,
.today-date > span {
    color: #414b56;
}

.today-metric-line strong {
    color: #333333;
    font-size: 14px;
    font-weight: 500;
}

.period-jump,
.selection-bar select,
.text-field select,
.manager-row select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg width='9' height='5' viewBox='0 0 9 5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l3.5 3L8 1' fill='none' stroke='%23656767' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 9px 5px;
}

.period-jump:focus,
.selection-bar select:focus,
.text-field select:focus,
.manager-row select:focus {
    background-image: url("data:image/svg+xml,%3Csvg width='9' height='5' viewBox='0 0 9 5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l3.5 3L8 1' fill='none' stroke='%232C2D2E' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.color-field input[type="color"],
.settings-color-field input[type="color"],
.absence-type-row input[type="color"] {
    width: 28px;
    height: 20px;
    min-width: 28px;
    min-height: 20px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    background: #ffffff;
    overflow: hidden;
    cursor: pointer;
}

.color-field input[type="color"]::-webkit-color-swatch-wrapper,
.settings-color-field input[type="color"]::-webkit-color-swatch-wrapper,
.absence-type-row input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-field input[type="color"]::-webkit-color-swatch,
.settings-color-field input[type="color"]::-webkit-color-swatch,
.absence-type-row input[type="color"]::-webkit-color-swatch {
    border: 0;
    border-radius: 3px;
}

.color-field input[type="color"]::-moz-color-swatch,
.settings-color-field input[type="color"]::-moz-color-swatch,
.absence-type-row input[type="color"]::-moz-color-swatch {
    border: 0;
    border-radius: 3px;
}
/* iprotocol bugfix refinements */
.period-jump,
.selection-bar select,
.text-field select,
.manager-row select {
    background: var(--control-bg) url("data:image/svg+xml,%3Csvg width='9' height='5' viewBox='0 0 9 5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l3.5 3L8 1' fill='none' stroke='%23656767' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 15px center / 9px 5px !important;
}

.period-jump:focus,
.selection-bar select:focus,
.text-field select:focus,
.manager-row select:focus {
    background: var(--control-bg-active) url("data:image/svg+xml,%3Csvg width='9' height='5' viewBox='0 0 9 5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l3.5 3L8 1' fill='none' stroke='%232C2D2E' stroke-width='1.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 15px center / 9px 5px !important;
}

.filter-empty,
.user-picker-empty,
.report-user-menu span {
    min-height: 44px;
    padding: 0 19px;
    display: flex;
    align-items: center;
    color: #686868;
    font-size: 15px;
    font-weight: 400;
}

.selection-label,
.today-date .selection-label,
.selection-dates .selection-label,
.selection-user .selection-label,
.timesheet-selection-info .selection-label {
    color: #6f7c87;
}

.date-chip,
.selection-dates .date-chip,
.timesheet-date-list .date-chip {
    color: #182231;
    font-size: 12px;
    font-weight: 400;
}

.selection-dates strong,
.timesheet-date-list {
    gap: 6px;
}

.timesheet-date-list {
    display: flex !important;
    flex-wrap: wrap;
    align-content: flex-start;
}

#saveSettings.primary-button {
    border-color: #00b263;
    background: #ffffff;
    color: #00b263;
}

#saveSettings.primary-button:hover,
#saveSettings.primary-button:focus {
    border-color: #009b56;
    background: #f2fff8;
    color: #009b56;
}

#saveSettings.primary-button:disabled {
    border-color: #00b263;
    background: #ffffff;
    color: #00b263;
    opacity: 0.55;
}

.timesheet-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: none;
}

.timesheet-person-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
}

.timesheet-person-head > strong {
    height: auto;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
}

.timesheet-person-head .collapse-all-button,
.timesheet-person-head .filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    line-height: 1;
}

.timesheet-table th {
    z-index: 3;
}

.timesheet-table thead .timesheet-person-col {
    z-index: 9;
}

.timesheet-table tbody .timesheet-person-col {
    z-index: 5;
}

.timesheet-department-row .timesheet-person-col {
    z-index: 6;
}

.report-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
}

.report-filters {
    display: grid;
    grid-template-columns: minmax(160px, 190px) minmax(160px, 190px) minmax(340px, 1fr);
    gap: 12px;
    align-items: end;
    padding: 16px;
    border-bottom: 1px solid var(--line-soft);
    background: #ffffff;
}

.report-date-field {
    display: grid;
    gap: 6px;
}

.report-date-control {
    position: relative;
    display: block;
}

.report-date-control::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    pointer-events: none;
    background: currentColor;
    color: #6f7c87;
    -webkit-mask: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
}

.report-filters input[type="date"] {
    width: 100%;
    min-height: 42px;
    padding: 0 38px 0 12px;
    border: 1px solid #cfd7e2;
    border-radius: 8px;
    background: #ffffff;
    color: #182231;
    font-size: 14px;
    font-weight: 600;
}

.report-filters input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
}

.report-table-wrap {
    border: 0;
    border-radius: 0 0 8px 8px;
    max-height: var(--calendar-scroll-height);
}

.report-table {
    min-width: 960px;
}

.report-table .report-person-col {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 280px;
    min-width: 280px;
    background: #ffffff;
    text-align: left !important;
}

.report-table thead .report-person-col {
    z-index: 4;
    background: #f7f9fc;
}

.report-person-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.report-person-cell .employee-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 980px) {
    .report-filters {
        grid-template-columns: 1fr 1fr;
    }

    .report-user-picker {
        grid-column: 1 / -1;
    }
}

.report-filters {
    align-items: end;
}

.report-date-field,
.report-user-picker {
    gap: 6px;
}

.report-date-control,
.report-filters input[type="date"],
.report-clear-users {
    height: 34px;
    min-height: 34px;
}

.report-filters input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    padding: 0 38px 0 12px;
    border: 1px solid var(--input-line);
    border-radius: 8px;
    background-color: #ffffff;
    color: #414b56;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 32px;
    cursor: pointer;
}

.report-filters input[type="date"]::-webkit-date-and-time-value {
    min-height: 32px;
    line-height: 32px;
    text-align: left;
}

.report-filters input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    right: 0;
    width: 38px;
    height: 34px;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}

.report-clear-users {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
}

.report-filters {
    grid-template-columns: minmax(230px, 280px) minmax(230px, 280px) minmax(340px, 1fr);
}

.report-date-control::after {
    display: none;
}

.report-date-control.b24-date-control {
    position: relative;
    display: block;
    width: 100%;
    height: 39px;
    min-height: 39px;
}

.report-date-control .b24-date-input {
    width: 100%;
    height: 39px;
    border: 1px solid var(--input-line);
    border-radius: 8px;
    outline: none;
    padding: 0 12px 0 35px;
    background: #ffffff;
    color: #404a54;
    font: 400 14px/39px var(--font);
    transition: border-color .12s ease;
}

.report-date-control .b24-date-input:focus,
.report-date-control.is-open .b24-date-input {
    border-color: #0077ff;
    box-shadow: none;
}

.report-date-control .b24-calendar-trigger {
    position: absolute;
    z-index: 2;
    left: 9px;
    top: 50%;
    width: 18px;
    height: 18px;
    min-height: 18px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #a4afb9;
    transform: translateY(-50%);
    cursor: pointer;
}

.report-date-control .b24-calendar-trigger svg {
    display: block;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.report-date-popover.b24-calendar-popover {
    position: absolute;
    z-index: 120;
    top: 47px;
    left: 0;
    width: 272px;
    height: 304px;
    padding: 14px 10px 10px;
    border: 0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-menu);
    color: #333333;
    font-weight: 400;
    user-select: none;
}

.report-date-popover .b24-calendar-head {
    display: grid;
    grid-template-columns: 28px 1fr 28px;
    align-items: center;
    height: 30px;
    margin-bottom: 6px;
}

.report-date-popover .b24-calendar-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #323840;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}

.report-date-popover .b24-title-button,
.report-date-popover .b24-nav-button,
.report-date-popover .b24-day-button,
.report-date-popover .b24-picker-button {
    border: 0;
    padding: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.report-date-popover .b24-title-button {
    height: 28px;
    padding: 0 3px;
    border-radius: 4px;
    color: inherit;
    font-weight: 500;
}

.report-date-popover .b24-title-button:hover {
    color: #007aa3;
}

.report-date-popover .b24-title-text {
    line-height: 28px;
}

.report-date-popover .b24-nav-button {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: #a7adb5;
}

.report-date-popover .b24-nav-button:hover {
    color: #505c6a;
}

.report-date-popover .b24-nav-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.report-date-popover .b24-weekdays,
.report-date-popover .b24-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.report-date-popover .b24-weekdays {
    margin-bottom: 2px;
}

.report-date-popover .b24-weekdays span {
    display: grid;
    place-items: center;
    height: 24px;
    color: #b2bbc4;
    font-size: 12px;
    font-weight: 400;
}

.report-date-popover .b24-day-button {
    justify-self: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #47515b;
    font-size: 14px;
    font-weight: 400;
    line-height: 36px;
    text-align: center;
}

.report-date-popover .b24-day-button:hover {
    background: #d5f5fe;
}

.report-date-popover .b24-day-button.is-muted {
    color: #c8cfd6;
}

.report-date-popover .b24-day-button.is-weekend {
    color: #d06a76;
}

.report-date-popover .b24-day-button.is-muted.is-weekend {
    color: #d8b2b8;
}

.report-date-popover .b24-day-button.is-today {
    color: #00c9fb;
}

.report-date-popover .b24-day-button.is-selected,
.report-date-popover .b24-day-button.is-selected:hover {
    color: #ffffff;
    background: #00c9fb;
}

.report-date-popover .b24-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    row-gap: 24px;
    padding: 14px 0 0;
}

.report-date-popover .b24-picker-button {
    justify-self: center;
    width: 84px;
    height: 36px;
    border-radius: 18px;
    color: #343a40;
    font-size: 15px;
    font-weight: 400;
    line-height: 36px;
    text-align: center;
    white-space: nowrap;
}

.report-date-popover .b24-picker-button:hover {
    background: #d9f1fa;
}

.report-date-popover .b24-picker-button.is-selected,
.report-date-popover .b24-picker-button.is-current {
    color: #2fc6f6;
}

.report-date-popover .b24-picker-button.is-selected {
    background: transparent;
}

.report-clear-users {
    height: 39px;
    min-height: 39px;
}

.tab {
    border: 1px solid transparent;
    background: var(--control-bg);
    color: var(--control-text);
    font-weight: 400;
}

.tab:hover,
.tab.active {
    border-color: var(--control-border);
    background: var(--control-bg-active);
    color: var(--control-text-active);
    font-weight: 400;
}

.tab:disabled {
    border-color: transparent;
    background: var(--control-bg);
    color: var(--control-text);
    opacity: 0.6;
}

.tab.active .tab-badge,
.tab:hover .tab-badge {
    background: #ffffff;
    color: var(--control-text-active);
}

.subtab {
    border: 1px solid #2a2f33;
    background: #ffffff;
    color: #2a2f33;
    font-weight: 400;
}

.subtab:hover,
.subtab.active {
    border-color: #191b1e;
    background: #ffffff;
    color: #191b1e;
    font-weight: 400;
}

.subtabs .subtab {
    border-color: #2a2f33;
    background: #ffffff;
    color: #2a2f33;
    font-weight: 400;
}

.subtabs .subtab:hover,
.subtabs .subtab.active {
    border-color: #191b1e;
    background: #ffffff;
    color: #191b1e;
    font-weight: 400;
}

.period-controls .icon-button,
.period-controls .period-jump {
    border-color: var(--input-line);
    background-color: #ffffff;
    box-shadow: none;
}

.period-controls .icon-button:hover,
.period-controls .period-jump:hover,
.period-controls .period-jump:focus {
    border-color: var(--control-border);
    background-color: #ffffff;
    color: #191b1e;
}

.period-controls .icon-button {
    padding: 0;
    color: #2a2f33;
}

.period-controls .period-jump {
    color: #2a2f33;
    font-weight: 500;
}

[data-timesheet-fill-norm].secondary-button {
    border-color: #00b263;
    background: #f2fff8;
    color: #00b263;
}

[data-timesheet-fill-norm].secondary-button:hover,
[data-timesheet-fill-norm].secondary-button:focus {
    border-color: #009b56;
    background: #e7fff2;
    color: #009b56;
}

[data-timesheet-fill-norm].secondary-button:disabled {
    border-color: #00b263;
    background: #f2fff8;
    color: #00b263;
    opacity: 0.5;
}

.absence-type-row {
    grid-template-columns: minmax(0, 1fr) 94px;
    padding: 14px;
}

.absence-type-row:not(.locked-type) {
    padding-right: 44px;
}

.absence-type-row.locked-type {
    padding-top: 12px;
}

.base-type-badge {
    position: static;
    grid-column: 1 / -1;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid #d8e0eb;
    border-radius: 999px;
    background: #f4f7fb;
    color: #6f7c87;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
}

.type-delete-button {
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    min-height: 20px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #6f7c87;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

.type-delete-button:hover {
    border-color: transparent !important;
    background: transparent !important;
    color: #d93025;
}

.type-style-row {
    display: grid;
    grid-template-columns: repeat(2, max-content);
    align-items: start;
    gap: 10px 16px;
}

.type-available-field {
    grid-column: 1 / -1;
    justify-self: start;
    margin-left: 0;
    min-height: 28px;
    display: inline-flex !important;
    align-items: center;
    color: #414b56 !important;
    font-size: 12px !important;
    font-weight: 400;
    line-height: 1.25;
}

.type-available-field input {
    flex: 0 0 auto;
    margin: 0;
}

.period-controls select.period-jump {
    background-color: #ffffff !important;
    background-image: var(--select-arrow);
    border: 1px solid var(--input-line);
}

.period-controls select.period-jump:hover,
.period-controls select.period-jump:focus {
    background-color: #ffffff !important;
    border-color: var(--control-border);
}

.timesheet-toolbar {
    display: flex;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between;
    gap: 16px;
}

.timesheet-toolbar .period-controls,
.timesheet-toolbar-actions {
    flex: 0 0 auto;
}

.timesheet-toolbar-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

@media (max-width: 820px) {
    .type-style-row {
        grid-template-columns: 1fr;
    }
}

.timesheet-toolbar {
    border: 1px solid var(--line);
    border-radius: 8px 8px 0 0;
    background: #ffffff;
}

.timesheet-toolbar + .timesheet-panel {
    border-top: 0;
    border-radius: 0 0 8px 8px;
}

.timesheet-toolbar-actions .secondary-button,
.timesheet-toolbar-actions .primary-button {
    border: 1px solid var(--input-line);
    background: #ffffff;
    color: #414b56;
}

.timesheet-toolbar-actions .secondary-button:hover,
.timesheet-toolbar-actions .primary-button:hover {
    border-color: var(--control-border);
    background: #ffffff;
    color: #2c2d2e;
}

.timesheet-toolbar-actions [data-timesheet-fill-norm].secondary-button {
    border-color: #00b263;
    background: #f2fff8;
    color: #00b263;
}

.timesheet-toolbar-actions [data-timesheet-fill-norm].secondary-button:hover,
.timesheet-toolbar-actions [data-timesheet-fill-norm].secondary-button:focus {
    border-color: #009b56;
    background: #e7fff2;
    color: #009b56;
}

.timesheet-toolbar-actions [data-timesheet-export].primary-button {
    border-color: #2a2f33;
    background: #2a2f33;
    color: #ffffff;
}

.timesheet-toolbar-actions [data-timesheet-export].primary-button:hover,
.timesheet-toolbar-actions [data-timesheet-export].primary-button:focus {
    border-color: #191b1e;
    background: #191b1e;
    color: #ffffff;
}

#saveSettings.primary-button {
    border-color: #00b263;
    background: #00b263;
    color: #ffffff;
}

#saveSettings.primary-button:hover,
#saveSettings.primary-button:focus {
    border-color: #009b56;
    background: #009b56;
    color: #ffffff;
}

#saveSettings.primary-button:disabled {
    border-color: #00b263;
    background: #00b263;
    color: #ffffff;
    opacity: 0.5;
}

.absence-type-row.locked-type {
    padding-top: 14px;
}

.absence-type-row {
    row-gap: 10px;
}

.type-style-row {
    gap: 10px 16px;
}

.type-style-row .type-available-field {
    margin-top: 0;
    min-height: 28px;
}

.type-style-row .type-available-field + .type-available-field {
    margin-top: -6px;
}

.type-style-row .color-field,
.type-style-row .type-available-field {
    margin-bottom: 0;
}

.timesheet-table thead .timesheet-person-col,
.timesheet-person-head {
    position: sticky !important;
    top: 0;
    left: 0;
    z-index: 12 !important;
    background: #ffffff !important;
}

.timesheet-table thead .timesheet-person-head {
    display: table-cell !important;
    vertical-align: middle;
    text-align: center !important;
}

.timesheet-table thead .timesheet-person-head > strong,
.timesheet-table thead .timesheet-person-head .collapse-all-button,
.timesheet-table thead .timesheet-person-head .filter-button {
    vertical-align: middle;
}

.base-type-badge {
    display: none;
}

.report-user-chip {
    font-weight: 400;
}

:root {
    --person-row-height: 38px;
    --department-row-height: 34px;
    --head-row-height: 42px;
}

.calendar-panel {
    grid-template-columns: 300px minmax(620px, 1fr);
}

.calendar-panel.with-months .people-head {
    height: calc(var(--head-row-height) + 24px);
}

.people-list {
    max-height: calc(var(--calendar-scroll-height) - var(--head-row-height) - 24px);
}

.timeline-head.with-months {
    padding-top: 24px;
}

.month-cell {
    height: 24px;
    font-size: 13px;
    font-weight: 700;
}

.people-head {
    height: var(--head-row-height);
    gap: 8px;
    font-size: 15px;
    font-weight: 800;
}

.time-cell {
    height: var(--head-row-height);
    min-width: 42px;
    font-size: 14px;
}

.time-cell .weekday {
    font-size: 10px;
}

.row-label {
    gap: 8px;
    padding: 0 12px;
    font-size: 14px;
}

.row-label.department {
    font-size: 14px;
}

.grid-cell {
    min-width: 42px;
}

.grid-cell.absence-cell {
    font-size: 11px;
}

.calendar-panel .avatar {
    width: 28px;
    height: 28px;
}

.timesheet-person-name {
    font-weight: 400;
}

.timesheet-person-col {
    width: 300px !important;
    min-width: 300px !important;
}

.row-label.department,
.timesheet-department-row .timesheet-person-col {
    height: var(--department-row-height);
    background: #fbfcfd !important;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

.timesheet-department-row .timesheet-person-col {
    padding: 0 12px !important;
}

.timesheet-department-row .timesheet-person-col {
    white-space: nowrap;
}

.timesheet-department-row .timesheet-person-col .chevron,
.row-label.department .chevron {
    width: 18px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    color: currentColor;
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    vertical-align: middle;
}

.timesheet-department-row .timesheet-person-col span:not(.chevron) {
    vertical-align: middle;
}

.row-label.department .chevron,
.timesheet-department-row .timesheet-person-col .chevron {
    position: relative;
    width: 18px;
    min-width: 18px;
    height: 18px;
    margin-right: 8px;
    color: currentColor;
    font-size: 0;
    line-height: 0;
}

.row-label.department .chevron::before,
.timesheet-department-row .timesheet-person-col .chevron::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform-origin: center;
}

.row-label.department .chevron.is-closed::before,
.timesheet-department-row .timesheet-person-col .chevron.is-closed::before {
    transform: translate(-55%, -50%) rotate(-45deg);
}

.row-label.department .chevron.is-open::before,
.timesheet-department-row .timesheet-person-col .chevron.is-open::before {
    transform: translate(-50%, -62%) rotate(45deg);
}

.report-filters {
    grid-template-columns: 190px 190px minmax(300px, 1fr);
    justify-content: stretch;
}

.report-date-control.b24-date-control {
    width: 190px;
}

.report-user-picker {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    align-items: end;
    width: 100%;
}

.report-user-picker > .report-filter-label {
    grid-column: auto;
}

.report-user-control {
    width: 100%;
    height: 39px;
    min-height: 39px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 34px 0 12px;
    border: 1px solid var(--input-line);
    border-radius: 8px;
    background: #ffffff;
    color: #404a54;
    font: 400 14px/39px var(--font);
    text-align: left;
    cursor: pointer;
    position: relative;
}

.report-user-control::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    width: 7px;
    height: 7px;
    border-right: 2px solid #a4afb9;
    border-bottom: 2px solid #a4afb9;
    transform: translateY(-65%) rotate(45deg);
}

.report-user-control span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-user-picker.is-open .report-user-control {
    border-color: #0077ff;
}

.report-user-menu {
    display: none;
    position: absolute;
    z-index: 120;
    top: calc(100% + 8px);
    left: 0;
    width: max-content;
    min-width: 220px;
    max-width: calc(100vw - 38px);
    max-height: none;
    overflow: visible;
    padding: 12px 0;
    border: 0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-menu);
}

.report-user-picker.is-open .report-user-menu {
    display: block;
}

.report-user-menu-search {
    width: calc(100% - 38px);
    min-height: 34px;
    border: 1px solid var(--input-line);
    border-radius: 8px;
    margin: 0 19px;
    padding: 0 10px;
    color: #686868;
    font: inherit;
}

.report-user-menu-search:focus {
    outline: none;
    border-color: var(--link);
}

.report-user-menu-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 8px 19px 0;
}

.report-user-menu-actions button {
    border: 0;
    background: transparent;
    color: var(--link);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    padding: 4px 0;
}

.report-user-menu-list {
    max-height: 260px;
    overflow: auto;
    margin-top: 4px;
}

.report-user-option {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 44px;
    padding: 0 19px;
    color: #686868;
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
}

.report-user-option span {
    display: block;
    min-width: 0;
    padding: 0 !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-user-option input {
    flex: 0 0 auto;
}

.report-user-option:hover {
    background: #f7f7f7;
}

.report-user-option input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: #2067b0;
}

.report-user-empty {
    display: block;
    padding: 12px 19px;
    color: #686868;
    font-size: 15px;
}

.report-user-picker .report-user-menu .report-user-menu-actions {
    width: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 19px 0;
    gap: 12px;
}

.report-user-picker .report-user-menu .report-user-menu-actions button {
    min-width: 0;
    max-width: 50%;
    flex: 0 1 auto;
    white-space: nowrap;
    padding: 4px 0;
    text-align: left;
}

.report-user-picker .report-user-menu .report-user-option {
    display: flex !important;
    align-items: center;
    gap: 8px;
    min-width: 220px;
    min-height: 44px;
    padding: 0 19px;
    line-height: normal;
    color: #686868;
    font-size: 15px;
    font-weight: 400;
    white-space: nowrap;
}

.report-user-picker .report-user-menu .report-user-option input {
    flex: 0 0 15px;
    width: 15px;
    height: 15px;
    margin: 0;
}

.report-user-picker .report-user-menu .report-user-option span {
    display: block;
    padding: 0 !important;
    white-space: nowrap;
    line-height: normal;
}

.report-user-picker .report-user-menu {
    width: 268px;
    min-width: 268px;
    max-width: 268px;
    padding: 16px;
    border: 1px solid #d5dde8;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(24, 34, 49, 0.16);
}

.report-user-picker .report-user-menu .report-user-menu-search {
    width: 100%;
    height: 42px;
    min-height: 42px;
    margin: 0;
    border: 2px solid #0969cf;
    border-radius: 8px;
    padding: 0 14px;
    color: #243044;
    font-size: 18px;
}

.report-user-picker .report-user-menu .report-user-menu-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0 14px;
}

.report-user-picker .report-user-menu .report-user-menu-actions button {
    max-width: none;
    min-height: 42px;
    border: 1px solid #cfd7e2;
    border-radius: 8px;
    background: #ffffff;
    color: #243044;
    padding: 0 10px;
    text-align: center;
    font-weight: 700;
}

.report-user-picker .report-user-menu .report-user-menu-list {
    max-height: 225px;
    overflow: auto;
    margin-top: 0;
}

.report-user-picker .report-user-menu .report-user-option {
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    min-width: 0;
    min-height: 40px;
    padding: 4px 2px;
    color: #243044;
    font-size: 15px;
    line-height: 22px;
}

.report-user-picker .report-user-menu .report-user-option input {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    min-width: 22px;
    margin: 0;
    align-self: center;
    transform: none;
    accent-color: #2067b0;
}

.report-user-picker .report-user-menu .report-user-option span {
    display: block;
    min-width: 0;
    padding: 0 !important;
    line-height: 22px;
    align-self: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Match report employee picker to the calendar employee filter. */
.people-head:has(.filter-popover.open) {
    z-index: 130;
}

.filter-popover {
    z-index: 130;
}

.report-user-picker .report-user-menu {
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    max-height: 390px;
    overflow: visible;
    padding: 16px;
    border: 1px solid #d5dde8;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(24, 34, 49, 0.16);
}

.report-user-picker .report-user-menu .report-user-menu-search {
    width: 100%;
    height: 42px;
    min-height: 42px;
    margin: 0;
    border: 2px solid #0969cf;
    border-radius: 8px;
    padding: 0 14px;
    color: #243044;
    font-size: 18px;
    line-height: 42px;
}

.report-user-picker .report-user-menu .report-user-menu-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0 14px;
}

.report-user-picker .report-user-menu .report-user-menu-actions button {
    width: auto;
    max-width: none;
    min-height: 42px;
    border: 1px solid #cfd7e2;
    border-radius: 8px;
    background: #ffffff;
    color: #243044;
    padding: 0 10px;
    text-align: center;
    white-space: nowrap;
    font-weight: 700;
    line-height: 1.2;
}

.report-user-picker .report-user-menu .report-user-menu-list {
    max-height: 225px;
    overflow: auto;
    margin: 0;
}

.report-user-picker .report-user-menu .report-user-option.filter-option {
    min-height: 40px;
    display: flex !important;
    align-items: center !important;
    gap: 12px;
    padding: 4px 2px;
    color: #243044;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
    white-space: nowrap;
}

.report-user-picker .report-user-menu .report-user-option.filter-option input {
    width: 22px;
    height: 22px;
    min-width: 22px;
    flex: 0 0 auto;
    margin: 0;
    align-self: center;
    accent-color: #2067b0;
}

.report-user-picker .report-user-menu .report-user-option.filter-option span {
    display: block;
    min-width: 0;
    padding: 0 !important;
    line-height: 1.45;
    align-self: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-user-picker .report-user-menu .report-user-empty {
    display: block;
    padding: 12px 2px 4px;
    color: var(--muted);
    font-size: 16px;
}

/* Report no longer filters by employee; keep the date controls compact. */
.report-filters {
    grid-template-columns: 190px 190px;
    justify-content: start;
}

.filter-popover input[type="search"],
.filter-popover input[type="search"]::placeholder {
    font-weight: 400;
}

.topbar {
    justify-content: space-between;
    gap: 16px;
}

.workday-control {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.workday-button {
    height: 34px;
    min-height: 34px;
    border: 1px solid currentColor;
    border-radius: 8px;
    padding: 0 15px;
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.workday-button.is-start {
    border-color: #00b263;
    background: #f2fff8;
    color: #00b263;
}

.workday-button.is-start:hover {
    border-color: #009b56;
    background: #e7f9ef;
    color: #009b56;
}

.workday-button.is-stop {
    border-color: #d93025;
    background: #fff6f6;
    color: #d93025;
}

.workday-button.is-stop:hover {
    border-color: #c5221f;
    background: #ffecec;
    color: #c5221f;
}

.workday-stats-wrap {
    position: relative;
}

.workday-stats-button {
    height: 34px;
    border: 1px solid #d8dde2;
    border-radius: 8px;
    padding: 0 13px;
    background: #ffffff;
    color: #2a2f33;
    font: inherit;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.workday-stats-button:hover {
    border-color: #191b1e;
    color: #191b1e;
}

.workday-stats-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 40;
    width: 310px;
    max-width: min(310px, calc(100vw - 24px));
    padding: 14px;
    border: 1px solid #dfe5ea;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

.workday-stats-popover > strong {
    display: block;
    margin-bottom: 10px;
    color: #2a2f33;
    font-size: 15px;
    font-weight: 600;
}

.workday-stats-popover p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.workday-stats-list {
    display: grid;
    gap: 8px;
}

.workday-stats-person {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 10px;
    align-items: center;
    gap: 9px;
    min-height: 32px;
}

.workday-stats-person span {
    min-width: 0;
    overflow: hidden;
    color: #2a2f33;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.workday-stats-person i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.workday-stats-person i.is-open {
    background: #00b263;
}

.workday-stats-person i.is-closed {
    background: #d93025;
}

.worktime-settings {
    display: grid;
    gap: 14px;
}

.worktime-schedule-list {
    display: grid;
    gap: 8px;
    max-height: 360px;
    overflow: auto;
    padding-right: 4px;
}

.worktime-schedule-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 132px 132px;
    gap: 10px;
    align-items: end;
    padding: 10px 0;
    border-bottom: 1px solid var(--line-soft);
}

.worktime-schedule-row > span {
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-hour-field {
    margin: 0;
}

.compact-hour-field span {
    margin-bottom: 4px;
    font-size: 11px;
}

.compact-hour-field select {
    height: 34px;
    min-height: 34px;
}

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

    .workday-control {
        margin-left: 0;
    }

    .worktime-schedule-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
}
