WorkTracker/wwwroot/app.css

1132 lines
30 KiB
CSS
Raw Permalink Normal View History

2026-02-18 17:11:13 +01:00
html, body {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
:root {
--wt-header-bg: #f7f7f7;
--wt-header-border: #d6d5d5;
--wt-header-link: #1f2937;
--wt-calendar-cell-hover: rgba(0, 0, 0, 0.05);
--wt-calendar-active: #1b6ec2;
--wt-calendar-total: #334155;
--wt-calendar-hours: #666;
--wt-popup-bg: #fff;
--wt-popup-border: rgba(0, 0, 0, 0.15);
--wt-popup-link-bg: #f1f3f5;
--wt-calendar-today-ring: #0d6efd;
--wt-calendar-today-badge-bg: #0d6efd;
--wt-calendar-today-badge-text: #fff;
--wt-summary-head-bg: #f8f9fa;
--wt-summary-sticky-bg: #fff;
--wt-summary-row-alt: #fcfcfd;
--wt-summary-popup-bg: #fff;
--wt-summary-popup-border: rgba(0, 0, 0, 0.12);
--wt-summary-popup-text: #1f2937;
--wt-summary-popup-event: #475569;
}
[data-bs-theme=dark] {
--wt-header-bg: #1d2228;
--wt-header-border: rgba(255, 255, 255, 0.08);
--wt-header-link: #dee2e6;
--wt-calendar-cell-hover: rgba(255, 255, 255, 0.06);
--wt-calendar-active: #6ea8fe;
--wt-calendar-total: #d0d7de;
--wt-calendar-hours: #adb5bd;
--wt-popup-bg: #212529;
--wt-popup-border: rgba(255, 255, 255, 0.12);
--wt-popup-link-bg: #343a40;
--wt-calendar-today-ring: #8ec5ff;
--wt-calendar-today-badge-bg: #8ec5ff;
--wt-calendar-today-badge-text: #0f172a;
--wt-summary-head-bg: #2b3035;
--wt-summary-sticky-bg: #212529;
--wt-summary-row-alt: #1a1e22;
--wt-summary-popup-bg: #212529;
--wt-summary-popup-border: rgba(255, 255, 255, 0.12);
--wt-summary-popup-text: #e9ecef;
--wt-summary-popup-event: #adb5bd;
}
.page {
position: relative;
display: flex;
flex-direction: column;
}
main {
flex: 1;
min-width: 0;
}
.sidebar {
background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}
.top-row {
background-color: var(--wt-header-bg);
border-bottom: 1px solid var(--wt-header-border);
justify-content: flex-end;
height: 3.5rem;
display: flex;
align-items: center;
}
.top-row a,
.top-row .btn-link {
color: var(--wt-header-link);
white-space: nowrap;
margin-left: 1.5rem;
text-decoration: none;
}
.top-row a:hover,
.top-row .btn-link:hover {
text-decoration: underline;
}
.top-row a:first-child {
overflow: hidden;
text-overflow: ellipsis;
}
.nav-menu-header {
display: flex;
align-items: center;
gap: 0.75rem;
justify-content: flex-start;
}
.nav-menu-shell {
height: 100%;
}
.nav-menu-shell .top-row {
min-height: 3.5rem;
background-color: rgba(0, 0, 0, 0.4);
border-bottom: 0;
padding-left: 0.75rem !important;
padding-right: 0.75rem !important;
}
.sidebar-toggle {
display: inline-flex;
align-items: center;
justify-content: center;
flex-direction: column;
gap: 0.2rem;
width: 2.5rem;
height: 2.5rem;
border: 1px solid rgba(255, 255, 255, 0.18);
border-radius: 0.65rem;
background: rgba(255, 255, 255, 0.08);
color: #fff;
flex: 0 0 auto;
}
.sidebar-toggle:hover {
background: rgba(255, 255, 255, 0.16);
}
.sidebar-toggle-bar {
width: 1rem;
height: 2px;
background: currentColor;
border-radius: 999px;
}
.bi {
display: inline-block;
position: relative;
width: 1.25rem;
height: 1.25rem;
margin-right: 0.75rem;
top: -1px;
background-size: cover;
}
.bi-house-door-fill-nav-menu {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}
.bi-plus-square-fill-nav-menu {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}
.bi-list-nested-nav-menu {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}
.bi-lock-nav-menu {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a2 2 0 0 1 2 2v4H6V3a2 2 0 0 1 2-2zm3 6V3a3 3 0 0 0-6 0v4a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2zM5 8h6a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/%3E%3C/svg%3E");
}
.bi-person-nav-menu {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person' viewBox='0 0 16 16'%3E%3Cpath d='M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4Zm-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10c-2.29 0-3.516.68-4.168 1.332-.678.678-.83 1.418-.832 1.664h10Z'/%3E%3C/svg%3E");
}
.bi-person-badge-nav-menu {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person-badge' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 2a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1h-3zM11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0z'/%3E%3Cpath d='M4.5 0A2.5 2.5 0 0 0 2 2.5V14a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2.5A2.5 2.5 0 0 0 11.5 0h-7zM3 2.5A1.5 1.5 0 0 1 4.5 1h7A1.5 1.5 0 0 1 13 2.5v10.795a4.2 4.2 0 0 0-.776-.492C11.392 12.387 10.063 12 8 12s-3.392.387-4.224.803a4.2 4.2 0 0 0-.776.492V2.5z'/%3E%3C/svg%3E");
}
.bi-person-fill-nav-menu {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person-fill' viewBox='0 0 16 16'%3E%3Cpath d='M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3Zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z'/%3E%3C/svg%3E");
}
.bi-arrow-bar-left-nav-menu {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-arrow-bar-left' viewBox='0 0 16 16'%3E%3Cpath d='M12.5 15a.5.5 0 0 1-.5-.5v-13a.5.5 0 0 1 1 0v13a.5.5 0 0 1-.5.5ZM10 8a.5.5 0 0 1-.5.5H3.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L3.707 7.5H9.5a.5.5 0 0 1 .5.5Z'/%3E%3C/svg%3E");
}
.bi-gear-fill-nav-menu {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M9.405 1.05c-.413-1.4-2.397-1.4-2.81 0l-.1.34a1.464 1.464 0 0 1-2.105.872l-.31-.17c-1.283-.698-2.686.705-1.987 1.987l.169.311c.446.82.023 1.841-.872 2.105l-.34.1c-1.4.413-1.4 2.397 0 2.81l.34.1a1.464 1.464 0 0 1 .872 2.105l-.17.31c-.698 1.283.705 2.686 1.987 1.987l.311-.169a1.464 1.464 0 0 1 2.105.872l.1.34c.413 1.4 2.397 1.4 2.81 0l.1-.34a1.464 1.464 0 0 1 2.105-.872l.31.17c1.283.698 2.686-.705 1.987-1.987l-.169-.311a1.464 1.464 0 0 1 .872-2.105l.34-.1c1.4-.413 1.4-2.397 0-2.81l-.34-.1a1.464 1.464 0 0 1-.872-2.105l.17-.31c.698-1.283-.705-2.686-1.987-1.987l-.311.169a1.464 1.464 0 0 1-2.105-.872l-.1-.34zM8 10.93a2.929 2.929 0 1 1 0-5.86 2.929 2.929 0 0 1 0 5.858z'/%3E%3C/svg%3E");
}
.bi-calendar3-nav-menu {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M14 0H2a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2zM1 3.857C1 3.384 1.448 3 2 3h12c.552 0 1 .384 1 .857v10.286c0 .473-.448.857-1 .857H2c-.552 0-1-.384-1-.857V3.857z'/%3E%3Cpath d='M6.5 7a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-9 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm-9 3a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm3 0a1 1 0 1 0 0-2 1 1 0 0 0 0 2z'/%3E%3C/svg%3E");
}
.bi-bar-chart-fill-nav-menu {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M1 11a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v3a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-3zm5-4a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V7zm5-5a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1V2z'/%3E%3C/svg%3E");
}
.bi-table-nav-menu {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M0 2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2zm15 2H1v3h14V4zm0 4H1v3h14V8zm0 4H1v2a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2z'/%3E%3C/svg%3E");
}
.nav-item {
font-size: 0.9rem;
padding-bottom: 0.5rem;
}
.nav-label {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.nav-item:first-of-type {
padding-top: 1rem;
}
.nav-item:last-of-type {
padding-bottom: 1rem;
}
.nav-item .nav-link {
color: #d7d7d7;
background: none;
border: none;
border-radius: 4px;
height: 3rem;
display: flex;
align-items: center;
line-height: 3rem;
width: 100%;
}
.nav-item a.active {
background-color: rgba(255, 255, 255, 0.37);
color: white;
}
.nav-item .nav-link:hover {
background-color: rgba(255, 255, 255, 0.1);
color: white;
}
.nav-scrollable {
display: block;
height: calc(100vh - 3.5rem);
overflow-y: auto;
}
@media (max-width: 640.98px) {
.top-row {
justify-content: flex-end;
}
.top-row a,
.top-row .btn-link {
margin-left: 0;
}
.nav-menu-shell-collapsed .sidebar-brand-full,
.nav-menu-shell:not(.nav-menu-shell-collapsed) .sidebar-brand-compact {
display: none;
}
.nav-menu-shell-collapsed .nav-scrollable {
display: none;
}
.nav-menu-shell:not(.nav-menu-shell-collapsed) .nav-scrollable {
display: block;
}
.nav-scrollable {
height: auto;
}
}
@media (min-width: 641px) {
.page {
flex-direction: row;
}
.sidebar {
width: 250px;
height: 100vh;
position: sticky;
top: 0;
transition: width 0.2s ease;
overflow: hidden;
flex: 0 0 auto;
}
.top-row {
position: sticky;
top: 0;
z-index: 1;
}
.top-row.auth a:first-child {
flex: 1;
text-align: right;
width: 0;
}
.top-row,
article {
padding-left: 2rem !important;
padding-right: 1.5rem !important;
}
.sidebar.sidebar-collapsed {
width: 5rem;
}
.nav-menu-shell-collapsed .container-fluid {
justify-content: flex-start;
}
.nav-menu-shell-collapsed .nav-label {
display: none;
}
.nav-menu-shell-collapsed .nav-item {
padding-bottom: 0.3rem;
}
.nav-menu-shell-collapsed .nav-item.px-3 {
padding-left: 0.5rem !important;
padding-right: 0.5rem !important;
}
.nav-menu-shell-collapsed .nav-item .nav-link {
justify-content: center;
padding-left: 0;
padding-right: 0;
}
.nav-menu-shell-collapsed .nav-item .nav-link,
.nav-menu-shell-collapsed .nav-item button.nav-link {
min-width: 0;
}
.nav-menu-shell-collapsed .bi {
margin-right: 0;
}
}
#blazor-error-ui {
color-scheme: light only;
background: lightyellow;
bottom: 0;
box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
box-sizing: border-box;
display: none;
left: 0;
padding: 0.6rem 1.25rem 0.7rem 1.25rem;
position: fixed;
width: 100%;
z-index: 1000;
}
#blazor-error-ui .dismiss {
cursor: pointer;
position: absolute;
right: 0.75rem;
top: 0.5rem;
}
.grid-view-table {
--wt-grid-row-weekend: #f8d7da;
--wt-grid-row-holiday: #d4edda;
--wt-grid-row-closure: #fff3cd;
--wt-grid-row-illness: #d1ecf1;
--wt-grid-row-dayoff: #e2e3e5;
--wt-grid-row-home: #f8f9fa;
}
[data-bs-theme=dark] .grid-view-table {
--wt-grid-row-weekend: #522c35;
--wt-grid-row-holiday: #1f4e3f;
--wt-grid-row-closure: #5c4a20;
--wt-grid-row-illness: #16404a;
--wt-grid-row-dayoff: #3b4046;
--wt-grid-row-home: #2b3035;
}
.grid-view-table .grid-row-weekend > * {
background-color: var(--wt-grid-row-weekend);
}
.grid-view-table .grid-row-holiday > * {
background-color: var(--wt-grid-row-holiday);
}
.grid-view-table .grid-row-closure > * {
background-color: var(--wt-grid-row-closure);
}
.grid-view-table .grid-row-illness > * {
background-color: var(--wt-grid-row-illness);
}
.grid-view-table .grid-row-dayoff > * {
background-color: var(--wt-grid-row-dayoff);
}
.grid-view-table .grid-row-home > * {
background-color: var(--wt-grid-row-home);
}
.grid-view-table tbody tr > * {
color: inherit;
}
2026-02-18 17:11:13 +01:00
a, .btn-link {
color: #006bb7;
}
.btn-primary {
color: #fff;
background-color: #1b6ec2;
border-color: #1861ac;
}
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}
.content {
padding-top: 1.1rem;
}
h1:focus {
outline: none;
}
.valid.modified:not([type=checkbox]) {
outline: 1px solid #26b050;
}
.invalid {
outline: 1px solid #e50000;
}
.validation-message {
color: #e50000;
}
.blazor-error-boundary {
background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
padding: 1rem 1rem 1rem 3.7rem;
color: white;
}
.blazor-error-boundary::after {
content: "An error has occurred."
}
.darker-border-checkbox.form-check-input {
border-color: #929292;
}
.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
color: var(--bs-secondary-color);
text-align: end;
}
.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
text-align: start;
}
/* Calendar view */
.calendar-table td.calendar-cell {
height: 10rem;
vertical-align: top;
padding: 0.25rem 0.4rem;
cursor: pointer;
min-width: 5rem;
position: relative;
}
.calendar-table td.calendar-cell:hover {
background-color: var(--wt-calendar-cell-hover);
}
.calendar-cell-empty {
background-color: var(--bs-tertiary-bg);
}
.calendar-cell-active {
box-shadow: inset 0 0 0 0.15rem var(--wt-calendar-active);
}
.calendar-cell-outside-month {
background-color: color-mix(in srgb, var(--bs-tertiary-bg) 72%, transparent);
}
.calendar-cell-today::after {
content: "";
position: absolute;
inset: 0.2rem;
border: 0.15rem solid var(--wt-calendar-today-ring);
border-radius: 0.75rem;
pointer-events: none;
}
.calendar-day-number {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 2rem;
height: 2rem;
font-weight: bold;
font-size: 0.9rem;
margin-bottom: 0.3rem;
border-radius: 999px;
}
.calendar-day-number-outside {
opacity: 0.72;
}
.calendar-day-month-label {
font-size: 0.68rem;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
color: var(--bs-secondary-color);
}
.calendar-cell-today .calendar-day-number {
background-color: var(--wt-calendar-today-badge-bg);
color: var(--wt-calendar-today-badge-text);
}
.calendar-day-total {
margin-top: auto;
padding-top: 0.25rem;
font-size: 0.72rem;
font-weight: 700;
text-align: right;
color: var(--wt-calendar-total);
}
.calendar-hours {
font-size: 0.75rem;
color: var(--wt-calendar-hours);
}
.calendar-item {
display: flex;
justify-content: space-between;
gap: 0.5rem;
width: 100%;
border: 0;
border-radius: 0.45rem;
font-size: 0.72rem;
margin-bottom: 0.2rem;
padding: 0.2rem 0.35rem;
text-align: left;
}
.calendar-item-work {
color: #14213d;
}
.calendar-item-office {
background-color: #cfe2ff;
}
.calendar-item-home {
background-color: #d1e7dd;
}
.calendar-item-preview-office {
background-color: rgba(207, 226, 255, 0.55);
border: 1px dashed #6c8ebf;
}
.calendar-item-preview-home {
background-color: rgba(209, 231, 221, 0.55);
border: 1px dashed #5b8a72;
}
.calendar-item-event {
color: #fff;
}
.calendar-item-generic {
background-color: #6c757d;
}
.calendar-item-dayoff {
background-color: #6c757d;
}
.calendar-item-closure {
background-color: #b08900;
}
.calendar-item-holiday {
background-color: #b02a37;
}
.calendar-item-illness {
background-color: #0c8599;
}
.calendar-popup {
position: absolute;
top: 2rem;
left: 0.35rem;
z-index: 20;
width: min(16rem, calc(100vw - 2rem));
max-width: calc(100vw - 2rem);
background: var(--wt-popup-bg);
border: 1px solid var(--wt-popup-border);
border-radius: 0.75rem;
box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.18);
padding: 0.75rem;
}
.calendar-popup-right {
left: auto;
right: 0.35rem;
}
.calendar-popup-left {
left: 0.35rem;
right: auto;
}
.calendar-popup-section {
display: flex;
flex-direction: column;
gap: 0.35rem;
}
.calendar-popup-link {
border: 0;
border-radius: 0.5rem;
background: var(--wt-popup-link-bg);
color: inherit;
padding: 0.45rem 0.6rem;
text-align: left;
}
.calendar-modal-backdrop {
position: fixed;
inset: 0;
z-index: 1100;
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
background: rgba(15, 23, 42, 0.38);
}
.calendar-modal-shell {
width: min(58rem, 100%);
max-height: calc(100vh - 2rem);
}
.calendar-modal-shell-compact {
width: min(44rem, 100%);
}
.calendar-modal-dialog {
display: flex;
flex-direction: column;
max-height: calc(100vh - 2rem);
background: var(--bs-body-bg);
color: var(--bs-body-color);
border: 1px solid var(--bs-border-color);
border-radius: 1rem;
box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.22);
overflow: hidden;
}
.calendar-modal-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 1rem;
padding: 1rem 1.25rem;
border-bottom: 1px solid var(--bs-border-color);
}
.calendar-modal-body {
padding: 1rem 1.25rem;
overflow: auto;
}
.calendar-modal-actions {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 1rem 1.25rem;
border-top: 1px solid var(--bs-border-color);
background: color-mix(in srgb, var(--bs-body-bg) 92%, var(--bs-tertiary-bg));
}
.localized-date-input {
position: relative;
}
.localized-date-input-toggle {
min-width: 3.25rem;
}
.localized-date-input-popover {
position: absolute;
top: calc(100% + 0.35rem);
left: 0;
z-index: 1250;
width: min(18rem, 100vw - 2rem);
padding: 0.75rem;
background: var(--bs-body-bg);
border: 1px solid var(--bs-border-color);
border-radius: 0.85rem;
box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.16);
}
.localized-date-input-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.5rem;
margin-bottom: 0.65rem;
}
.localized-date-input-month {
font-weight: 700;
text-transform: capitalize;
}
.localized-date-input-weekdays,
.localized-date-input-grid {
display: grid;
grid-template-columns: repeat(7, minmax(0, 1fr));
gap: 0.2rem;
}
.localized-date-input-weekdays {
margin-bottom: 0.35rem;
}
.localized-date-input-weekday {
font-size: 0.75rem;
font-weight: 700;
text-align: center;
color: var(--bs-secondary-color);
}
.localized-date-input-day {
border: 0;
border-radius: 0.55rem;
background: transparent;
padding: 0.45rem 0;
text-align: center;
}
.localized-date-input-day:hover {
background: var(--bs-tertiary-bg);
}
.localized-date-input-day-outside {
color: var(--bs-secondary-color);
}
.localized-date-input-day-selected {
background: var(--bs-primary);
color: var(--bs-primary-bg-subtle, #fff);
}
.localized-date-input-actions {
display: flex;
margin-top: 0.65rem;
}
.calendar-legend-work {
background-color: #cfe2ff;
color: #14213d;
}
.calendar-legend-home {
background-color: #d1e7dd;
color: #1d3b2a;
}
.calendar-legend-preview {
background-color: #fff3cd;
color: #6b4f00;
}
.calendar-weekend {
background-color: #ffe0e0 !important;
}
.calendar-closure {
background-color: #fff3cd !important;
}
.calendar-illness {
background-color: #d1ecf1 !important;
}
.calendar-dayoff {
background-color: #e2e3e5 !important;
}
.calendar-holiday {
background-color: #d4edda !important;
}
[data-bs-theme=dark] .calendar-legend-work {
background-color: #24476f;
color: #e8f3ff;
}
[data-bs-theme=dark] .calendar-legend-home {
background-color: #245744;
color: #e7fff4;
}
[data-bs-theme=dark] .calendar-legend-preview {
background-color: #6b5314;
color: #fff5d7;
}
[data-bs-theme=dark] .calendar-weekend {
background-color: #4b2c33 !important;
}
[data-bs-theme=dark] .calendar-closure {
background-color: #5c4a20 !important;
}
[data-bs-theme=dark] .calendar-illness {
background-color: #16404a !important;
}
[data-bs-theme=dark] .calendar-dayoff {
background-color: #3b4046 !important;
}
[data-bs-theme=dark] .calendar-holiday {
background-color: #1f4e3f !important;
}
.calendar-page {
padding-bottom: 3rem;
}
@media (max-width: 767.98px) {
.calendar-table td.calendar-cell {
height: 8rem;
min-width: 7rem;
}
.calendar-popup {
left: 0;
width: calc(100vw - 2rem);
}
.calendar-modal-backdrop {
padding: 0.5rem;
}
.calendar-modal-shell,
.calendar-modal-shell-compact {
width: 100%;
}
.calendar-modal-dialog {
max-height: calc(100vh - 1rem);
}
.calendar-modal-header,
.calendar-modal-body,
.calendar-modal-actions {
padding-left: 0.9rem;
padding-right: 0.9rem;
}
.calendar-modal-actions {
flex-wrap: wrap;
}
.localized-date-input-popover {
width: calc(100vw - 2rem);
}
}
/* Monthly timesheet summary */
.timesheet-summary-card {
overflow: hidden;
}
.timesheet-summary-table {
min-width: max-content;
}
.timesheet-summary-table thead th {
background-color: var(--wt-summary-head-bg);
white-space: normal;
}
.timesheet-summary-table th,
.timesheet-summary-table td {
min-width: 2.2rem;
padding: 0.35rem 0.16rem;
vertical-align: middle;
line-height: 1.2;
}
.timesheet-summary-sticky-column {
position: sticky;
left: 0;
z-index: 2;
min-width: 6.25rem !important;
max-width: 6.25rem;
background-color: var(--wt-summary-sticky-bg);
white-space: normal;
overflow-wrap: anywhere;
word-break: break-word;
text-align: left;
}
.timesheet-summary-table thead .timesheet-summary-sticky-column {
z-index: 3;
background-color: var(--wt-summary-head-bg);
}
.timesheet-summary-total-column {
position: sticky;
right: 0;
z-index: 2;
background-color: var(--wt-summary-head-bg);
min-width: 3.5rem !important;
}
.timesheet-summary-table tbody tr:nth-child(odd) td,
.timesheet-summary-table tbody tr:nth-child(odd) .timesheet-summary-sticky-column {
background-color: var(--wt-summary-row-alt);
}
.timesheet-summary-table tbody tr:nth-child(odd) .timesheet-summary-total-column {
background-color: var(--wt-summary-row-alt);
}
.timesheet-summary-table tbody .timesheet-summary-total-column {
background-color: var(--wt-summary-sticky-bg);
}
.timesheet-summary-table thead .timesheet-summary-total-column {
z-index: 3;
}
.timesheet-summary-table .timesheet-summary-day-danger {
background-color: #f8d7da !important;
}
.timesheet-summary-table .timesheet-summary-day-closure {
background-color: #e2e3e5 !important;
}
.timesheet-summary-table .timesheet-summary-day-today {
box-shadow:
inset 0.15rem 0 0 var(--wt-calendar-today-ring),
inset -0.15rem 0 0 var(--wt-calendar-today-ring);
}
.timesheet-summary-table thead .timesheet-summary-day-today {
box-shadow:
inset 0.15rem 0 0 var(--wt-calendar-today-ring),
inset -0.15rem 0 0 var(--wt-calendar-today-ring),
inset 0 0.15rem 0 var(--wt-calendar-today-ring);
}
.timesheet-summary-table tbody tr:last-child .timesheet-summary-day-today {
box-shadow:
inset 0.15rem 0 0 var(--wt-calendar-today-ring),
inset -0.15rem 0 0 var(--wt-calendar-today-ring),
inset 0 -0.15rem 0 var(--wt-calendar-today-ring);
}
[data-bs-theme=dark] .timesheet-summary-table .timesheet-summary-day-danger {
background-color: #5b2833 !important;
}
[data-bs-theme=dark] .timesheet-summary-table .timesheet-summary-day-closure {
background-color: #3b4046 !important;
}
.timesheet-summary-day-header {
position: relative;
cursor: default;
}
.timesheet-summary-day-popup {
position: absolute;
top: calc(100% + 0.35rem);
left: 50%;
z-index: 15;
width: min(18rem, calc(100vw - 2rem));
max-width: calc(100vw - 2rem);
padding: 0.65rem 0.75rem;
border: 1px solid var(--wt-summary-popup-border);
border-radius: 0.7rem;
background: var(--wt-summary-popup-bg);
box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.18);
text-align: left;
transform: translateX(-50%);
opacity: 0;
pointer-events: none;
visibility: hidden;
}
.timesheet-summary-day-header:hover .timesheet-summary-day-popup,
.timesheet-summary-day-header:focus-within .timesheet-summary-day-popup {
opacity: 1;
visibility: visible;
}
.timesheet-summary-day-popup-left .timesheet-summary-day-popup {
left: 0;
transform: none;
}
.timesheet-summary-day-popup-right .timesheet-summary-day-popup {
left: auto;
right: 0;
transform: none;
}
.timesheet-summary-day-popup-item {
font-size: 0.75rem;
line-height: 1.35;
color: var(--wt-summary-popup-text);
}
.timesheet-summary-day-popup-item + .timesheet-summary-day-popup-item {
margin-top: 0.35rem;
}
.timesheet-summary-day-popup-item-event {
color: var(--wt-summary-popup-event);
}
@media (max-width: 767.98px) {
.timesheet-summary-sticky-column {
min-width: 4.75rem !important;
max-width: 4.75rem;
padding-left: 0.3rem !important;
padding-right: 0.3rem !important;
font-size: 0.82rem;
}
.timesheet-summary-total-column {
min-width: 3.1rem !important;
font-size: 0.82rem;
}
.timesheet-summary-day-popup {
left: 0;
right: 0;
width: auto;
transform: none;
}
}
/* Yearly summary */
.yearly-summary-card {
overflow: hidden;
}
.yearly-summary-table {
min-width: 52rem;
}
.yearly-summary-table thead th,
.yearly-summary-table tfoot th,
.yearly-summary-table tfoot td {
background-color: var(--wt-summary-head-bg);
}
.yearly-summary-table thead th {
white-space: normal;
line-height: 1.15;
}
.yearly-summary-table th,
.yearly-summary-table td {
white-space: nowrap;
vertical-align: middle;
padding: 0.45rem 0.4rem;
}
.yearly-summary-sticky-column {
position: sticky;
left: 0;
z-index: 2;
background-color: var(--wt-summary-sticky-bg);
}
.yearly-summary-header-cell {
width: 5.2rem;
min-width: 5.2rem;
max-width: 5.2rem;
}
.yearly-summary-table thead .yearly-summary-sticky-column,
.yearly-summary-table tfoot .yearly-summary-sticky-column {
z-index: 3;
background-color: var(--wt-summary-head-bg);
}
.yearly-summary-table tbody tr:nth-child(odd) td,
.yearly-summary-table tbody tr:nth-child(odd) .yearly-summary-sticky-column {
background-color: var(--wt-summary-row-alt);
}
.yearly-summary-total-row th,
.yearly-summary-total-row td {
font-weight: 600;
}
@media (max-width: 767.98px) {
.yearly-summary-table {
min-width: 44rem;
}
.yearly-summary-header-cell {
width: 4.5rem;
min-width: 4.5rem;
max-width: 4.5rem;
}
2026-02-18 17:11:13 +01:00
}