:root {
    --olive: #707550;
    --olive-dark: #565b3d;
    --olive-soft: #f0f1e8;
    --blue: #136fbf;
    --blue-soft: #edf4fb;
    --ink: #231f20;
    --muted: #66665f;
    --line: #e4e5dd;
    --surface: #fff;
    --canvas: #f6f6f3;
    --radius: 16px;
    --shadow: 0 3px 14px #231f2004;
    color-scheme: light;
}
* {
    box-sizing: border-box;
}
html {
    min-width: 320px;
}
body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font:
        15px/1.55 Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}
button,
input,
select,
textarea {
    font: inherit;
}
a {
    color: var(--blue);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
button,
a,
input,
select,
textarea {
    touch-action: manipulation;
}
button {
    cursor: pointer;
}
button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}
h1,
h2,
h3,
p {
    margin-top: 0;
}
h1,
h2,
h3 {
    line-height: 1.25;
}
svg {
    flex-shrink: 0;
}
img {
    max-width: 100%;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #136fbf;
    outline-offset: 3px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    flex-shrink: 0;
}
.app-shell {
    min-height: 100vh;
}
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 250px;
    background: #fff;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    padding: 30px 18px 20px;
    z-index: 30;
}
.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 12px 36px;
    color: var(--ink);
}
.brand:hover {
    text-decoration: none;
}
.brand-mark {
    width: 39px;
    height: 39px;
    border-radius: 12px;
    background: var(--olive);
    color: #fff;
    display: grid;
    place-items: center;
}
.brand-mark .icon {
    width: 25px;
    height: 25px;
}
.brand-copy {
    display: flex;
    flex-direction: column;
    font-weight: 750;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: -0.7px;
}
.brand-copy small {
    font-size: 10px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 1.7px;
    text-transform: uppercase;
    margin-top: 7px;
}
.nav-section {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 28px;
}
.nav-label {
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: #8a938c;
    padding: 0 14px;
    margin: 0 0 9px;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    padding: 11px 14px;
    color: #616d63;
    font-size: 14px;
    font-weight: 550;
    min-height: 46px;
}
.nav-link:hover {
    background: #f6f6f3;
    color: var(--ink);
    text-decoration: none;
}
.nav-link.active {
    background: var(--olive-soft);
    color: var(--olive-dark);
    font-weight: 700;
}
.nav-icon {
    color: inherit;
}
.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid var(--line);
    padding: 20px 10px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.user-avatar {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    background: #edf1e8;
    color: var(--olive-dark);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 750;
    flex-shrink: 0;
}
.user-meta {
    min-width: 0;
    flex: 1;
    font-size: 12px;
    overflow-wrap: anywhere;
}
.user-meta strong {
    display: block;
    font-size: 13px;
    color: var(--ink);
}
.user-meta span,
.user-meta small {
    color: var(--muted);
    font-size: 11px;
}
.sidebar-footer form {
    width: 100%;
}
.sidebar-footer .button {
    width: 100%;
    margin-top: 6px;
}
.workspace {
    margin-left: 250px;
    min-width: 0;
}
.topbar {
    height: 78px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 0 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.breadcrumb {
    font-size: 12px;
    color: var(--muted);
}
.breadcrumb span {
    color: var(--ink);
    font-weight: 600;
}
.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
}
.topbar-right .icon {
    color: var(--olive);
}
.mobile-toggle {
    display: none;
}
.main-content {
    max-width: 1480px;
    margin: auto;
    padding: 38px 42px 56px;
}
.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 29px;
}
.eyebrow {
    font-size: 10px;
    letter-spacing: 1.6px;
    font-weight: 750;
    color: var(--olive);
    text-transform: uppercase;
    margin: 0 0 9px;
}
.page-title {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -1px;
    margin: 0 0 10px;
}
.page-description {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    max-width: 650px;
}
.page-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 43px;
    padding: 10px 17px;
    line-height: 1.4;
    border-radius: 9px;
    border: 1px solid transparent;
    font-weight: 650;
    font-size: 13px;
    white-space: normal;
    transition:
        background 0.16s,
        color 0.16s,
        border-color 0.16s;
    text-align: center;
}
.button:hover {
    text-decoration: none;
}
.button-primary {
    background: var(--olive);
    color: white;
    border-color: var(--olive);
}
.button-primary:hover {
    background: var(--olive-dark);
    border-color: var(--olive-dark);
}
.button-secondary {
    background: #fff;
    border-color: #dce2d5;
    color: #4f5e43;
}
.button-secondary:hover {
    background: var(--olive-soft);
    border-color: #cbd4be;
}
.button-ghost {
    color: var(--muted);
    background: transparent;
}
.button-ghost:hover {
    background: #f1f3ed;
    color: var(--ink);
}
.button-danger {
    color: #a33d3d;
    background: #fff4f3;
    border-color: #efd5d1;
}
.button-danger:hover {
    background: #fdeae8;
}
.button-small {
    min-height: 35px;
    padding: 7px 11px;
    font-size: 12px;
}
.button-small .icon {
    width: 16px;
    height: 16px;
}
.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}
.metric-card {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: var(--radius);
    padding: 23px 25px;
    box-shadow: var(--shadow);
    position: relative;
    min-height: 149px;
}
.metric-icon {
    position: absolute;
    right: 23px;
    top: 23px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--olive-soft);
    color: var(--olive);
}
.metric-card:nth-child(2) .metric-icon {
    color: var(--blue);
    background: var(--blue-soft);
}
.metric-card:nth-child(3) .metric-icon {
    color: #8a7449;
    background: #f6f1e6;
}
.metric-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    margin: 0 45px 9px 0;
}
.metric-value {
    font-size: 33px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -1px;
    margin: 0 0 7px;
}
.metric-note {
    font-size: 11px;
    color: #7c877b;
    margin: 0;
}
.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    min-width: 0;
    overflow: hidden;
    margin-bottom: 24px;
}
.panel-header {
    padding: 23px 25px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #edf0e8;
}
.panel-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.25px;
    margin: 0;
}
.panel-subtitle {
    font-size: 12px;
    color: var(--muted);
    margin: 5px 0 0;
}
.panel-header > a {
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}
.panel-body {
    padding: 25px;
}
.panel-footer {
    padding: 16px 25px;
    border-top: 1px solid #edf0e8;
    background: #fafbf8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-size: 12px;
}
.shift-list {
    display: flex;
    flex-direction: column;
}
.shift-item {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    padding: 23px 25px;
    border-bottom: 1px solid #edf0e8;
    min-width: 0;
}
.shift-item:last-child {
    border-bottom: 0;
}
.date-tile {
    width: 53px;
    min-width: 53px;
    min-height: 59px;
    border-radius: 10px;
    background: #f0f3e9;
    color: var(--olive-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px;
}
.date-day {
    font-size: 21px;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -0.6px;
}
.date-month {
    font-size: 9px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-top: 3px;
}
.shift-copy {
    min-width: 0;
    flex: 1;
}
.shift-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--ink);
    margin: 0 0 8px;
    overflow-wrap: anywhere;
}
.shift-title a {
    color: inherit;
}
.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 12px;
    color: var(--muted);
    font-size: 11px;
    margin-top: 5px;
}
.meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.meta-row .icon {
    width: 14px;
    height: 14px;
    color: #8b9686;
}
.shift-item > .status-badge {
    margin-top: 2px;
}
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.6;
    white-space: nowrap;
    background: #f0f2ed;
    color: var(--muted);
}
.status-open {
    background: #eef3e3;
    color: #596e2e;
}
.status-pending {
    background: #fcf4df;
    color: #90701f;
}
.status-accepted,
.status-assigned {
    background: #e9f2ea;
    color: #3d754b;
}
.status-rejected,
.status-closed {
    background: #f9eeee;
    color: #9f5050;
}
.status-draft,
.status-neutral {
    background: #f0f2f0;
    color: #6b756d;
}
.empty-state {
    text-align: center;
    padding: 36px 24px;
    color: var(--muted);
    font-size: 13px;
}
.empty-state h3 {
    font-size: 15px;
    color: var(--ink);
    margin: 14px 0 9px;
}
.empty-state p {
    max-width: 330px;
    margin: 0 auto 18px;
}
.empty-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: var(--olive);
    background: var(--olive-soft);
    margin: auto;
}
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 13px;
}
.table-wrap {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}
.data-table th {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #7f897f;
    padding: 14px 21px;
    background: #fafbf8;
    font-weight: 700;
    white-space: nowrap;
}
.data-table td {
    padding: 19px 21px;
    border-top: 1px solid #edf0e8;
    vertical-align: middle;
}
.data-table td strong {
    font-size: 13px;
    font-weight: 650;
    display: block;
}
.data-table td small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 4px;
}
.data-table td form {
    display: inline-flex;
    margin: 3px 2px;
}
.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(250px, 1fr);
    gap: 24px;
    align-items: start;
}
.detail-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 28px;
    margin: 0;
}
.detail-list > div {
    min-width: 0;
}
.detail-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    margin: 0 0 7px;
}
.detail-value {
    font-size: 14px;
    margin: 0;
    overflow-wrap: anywhere;
}
.notice {
    border: 1px solid #d8e3e9;
    background: #eff5f8;
    color: #3b6581;
    border-radius: 10px;
    padding: 15px 19px;
    font-size: 13px;
    margin-bottom: 24px;
    line-height: 1.65;
}
.notice-info {
    border-color: #d8e3e9;
    background: #eff5f8;
    color: #3b6581;
}
.notice-success {
    background: #eef5e8;
    border-color: #dce8d0;
    color: #4c6836;
}
.notice-error {
    background: #fff1ef;
    border-color: #efd4ce;
    color: #9d4545;
}
.notice p:last-child,
.notice ul:last-child {
    margin-bottom: 0;
}
.notice strong {
    font-weight: 700;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
.field {
    min-width: 0;
}
.field-full {
    grid-column: 1/-1;
}
.field-label {
    display: block;
    font-size: 12px;
    font-weight: 650;
    margin-bottom: 8px;
}
.field-label span {
    color: var(--muted);
    font-weight: 400;
}
.field-help {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin: 7px 0 0;
}
.form-control {
    width: 100%;
    min-height: 45px;
    border: 1px solid #d9dfd3;
    background: #fff;
    border-radius: 8px;
    padding: 11px 13px;
    font-size: 13px;
    color: var(--ink);
    transition:
        border-color 0.16s,
        box-shadow 0.16s;
}
.form-control:hover {
    border-color: #bcc9af;
}
.form-control:focus {
    border-color: var(--olive);
    box-shadow: 0 0 0 3px #70755013;
    outline: 0;
}
.form-control[aria-invalid="true"] {
    border-color: #bd6a5d;
}
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}
.error-list {
    padding-left: 20px;
    margin: 8px 0;
    font-size: 12px;
}
.auth-page {
    min-height: 100vh;
    background: #f6f6f3;
}
.auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
}
.auth-story {
    background: #eeefe5;
    padding: 65px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.auth-story:after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    bottom: -200px;
    left: -180px;
    border: 70px solid #7075500c;
    border-radius: 50%;
    pointer-events: none;
}
.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    margin-bottom: 60px;
}
.auth-brand .brand-copy {
    font-size: 25px;
}
.auth-story h1 {
    font-size: 43px;
    line-height: 1.17;
    letter-spacing: -1.5px;
    max-width: 440px;
    font-weight: 650;
    margin-bottom: 24px;
}
.auth-story > p {
    max-width: 390px;
    color: #6a765f;
    line-height: 1.9;
    font-size: 14px;
}
.auth-story .eyebrow {
    margin-bottom: 22px;
}
.auth-card {
    width: min(460px, 100%);
    margin: auto;
    padding: 48px 42px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 18px 60px #2b3c2710;
}
.auth-layout > .auth-card {
    width: min(460px, calc(100% - 70px));
}
.auth-title {
    font-size: 27px;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
}
.auth-card > p {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 28px;
}
.auth-card .field {
    margin-bottom: 21px;
}
.auth-card .button-primary {
    width: 100%;
    margin-top: 5px;
}
.auth-card .notice {
    font-size: 12px;
    padding: 12px 14px;
}
.auth-footer {
    border-top: 1px solid var(--line);
    padding-top: 22px;
    margin-top: 26px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
    text-align: center;
}
.auth-footer a {
    font-size: 12px;
}
.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 24px;
}
.placeholder-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 25px;
}
.placeholder-card {
    background: #fff;
    border: 1px dashed #d5ddca;
    border-radius: var(--radius);
    padding: 25px;
}
.placeholder-card > .icon {
    color: var(--olive);
    margin-bottom: 15px;
}
.placeholder-card h3 {
    font-size: 15px;
    margin-bottom: 10px;
}
.placeholder-card p {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 17px;
}
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 19px 24px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}
.pagination nav {
    display: flex;
    align-items: center;
    gap: 10px;
}
.pagination a,
.pagination > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.pagination .button {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 12px;
}
hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 25px 0;
}
@media (min-width: 1600px) {
    .main-content {
        padding-top: 45px;
    }
    .dashboard-grid {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    }
}
@media (max-width: 1200px) {
    .sidebar {
        width: 225px;
        padding-inline: 14px;
    }
    .workspace {
        margin-left: 225px;
    }
    .main-content {
        padding: 30px 27px 45px;
    }
    .topbar {
        padding: 0 27px;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .metric-card {
        padding: 22px;
    }
    .metric-grid {
        gap: 14px;
    }
    .metric-label {
        font-size: 11px;
    }
    .metric-icon {
        right: 18px;
    }
    .detail-grid {
        grid-template-columns: minmax(0, 1.3fr) minmax(220px, 1fr);
    }
    .shift-item {
        padding: 21px;
    }
    .auth-story {
        padding: 50px 9%;
    }
    .auth-story h1 {
        font-size: 36px;
    }
    .auth-layout > .auth-card {
        width: calc(100% - 50px);
        padding: 36px 30px;
    }
}
@media (max-width: 900px) {
    .detail-grid,
    .profile-grid {
        grid-template-columns: 1fr;
    }
    .placeholder-grid {
        gap: 12px;
    }
    .placeholder-card {
        padding: 20px;
    }
    .page-header {
        align-items: flex-start;
    }
    .page-title {
        font-size: 27px;
    }
    .topbar-right > span {
        display: none;
    }
    .auth-layout {
        grid-template-columns: 1fr 1fr;
    }
    .auth-story {
        padding: 45px 25px;
    }
    .auth-story h1 {
        font-size: 32px;
    }
    .auth-layout > .auth-card {
        width: calc(100% - 30px);
        padding: 30px 24px;
    }
}
@media (max-width: 760px) {
    .sidebar {
        transform: translateX(-100%);
        width: 270px;
        box-shadow: 10px 0 40px #231f2019;
        transition: transform 0.2s;
    }
    .nav-open .sidebar {
        transform: translateX(0);
    }
    .workspace {
        margin-left: 0;
    }
    .topbar {
        height: 66px;
        padding: 0 20px;
        justify-content: flex-start;
        gap: 13px;
    }
    .mobile-toggle {
        display: grid;
        place-items: center;
        border: 1px solid var(--line);
        background: #fff;
        border-radius: 8px;
        width: 36px;
        height: 36px;
        color: var(--ink);
        flex-shrink: 0;
    }
    .nav-open:after {
        content: "";
        position: fixed;
        inset: 66px 0 0 270px;
        background: #231f2035;
        z-index: 25;
    }
    .topbar-right {
        margin-left: auto;
        gap: 8px;
    }
    .breadcrumb {
        font-size: 11px;
    }
    .main-content {
        padding: 28px 20px 40px;
    }
    .page-header {
        margin-bottom: 23px;
        flex-wrap: wrap;
        gap: 17px;
    }
    .page-title {
        font-size: 27px;
    }
    .page-description {
        font-size: 13px;
    }
    .page-actions {
        flex-shrink: 1;
    }
    .metric-grid {
        gap: 12px;
        margin-bottom: 23px;
    }
    .metric-card {
        padding: 18px;
        min-height: 143px;
    }
    .metric-icon {
        width: 29px;
        height: 29px;
        position: static;
        margin-bottom: 12px;
    }
    .metric-icon .icon {
        width: 17px;
        height: 17px;
    }
    .metric-label {
        font-size: 10px;
        margin-right: 0;
    }
    .metric-value {
        font-size: 29px;
    }
    .metric-note {
        font-size: 10px;
    }
    .panel-header,
    .panel-body {
        padding: 21px;
    }
    .panel-header > a {
        font-size: 11px;
    }
    .panel-footer {
        padding: 15px 21px;
    }
    .dashboard-grid {
        gap: 0;
    }
    .detail-grid,
    .profile-grid {
        gap: 0;
    }
    .placeholder-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }
    .placeholder-card {
        display: grid;
        grid-template-columns: 32px 1fr;
        column-gap: 12px;
    }
    .placeholder-card > .icon {
        grid-row: 1/4;
        margin: 2px 0 0;
    }
    .placeholder-card h3 {
        margin: 0 0 7px;
    }
    .placeholder-card p {
        margin-bottom: 11px;
    }
    .placeholder-card .status-badge {
        justify-self: start;
    }
    .auth-layout {
        display: flex;
        flex-direction: column;
        padding: 28px 20px;
        gap: 26px;
    }
    .auth-story {
        background: transparent;
        padding: 0;
        display: block;
        overflow: visible;
    }
    .auth-story:after {
        display: none;
    }
    .auth-brand {
        margin-bottom: 0;
        justify-content: center;
    }
    .auth-story h1,
    .auth-story > p,
    .auth-story > .eyebrow {
        display: none;
    }
    .auth-layout > .auth-card {
        width: min(460px, 100%);
        padding: 32px 27px;
        margin: 0 auto;
    }
    .auth-title {
        font-size: 25px;
    }
    .auth-card .notice {
        margin-bottom: 20px;
    }
    .form-grid {
        gap: 20px;
    }
    .toolbar {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }
    .data-table td,
    .data-table th {
        padding-inline: 18px;
    }
    .pagination {
        padding: 17px 20px;
    }
}
@media (max-width: 450px) {
    .main-content {
        padding: 24px 15px 35px;
    }
    .topbar {
        padding: 0 15px;
    }
    .topbar-right {
        font-size: 10px;
    }
    .topbar-right .icon {
        width: 17px;
        height: 17px;
    }
    .page-title {
        font-size: 25px;
    }
    .page-header {
        margin-bottom: 21px;
    }
    .page-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    .page-actions .button {
        flex: 1;
    }
    .metric-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .metric-card {
        min-height: 0;
        padding: 17px 19px;
        display: grid;
        grid-template-columns: 40px 1fr auto;
        column-gap: 13px;
        align-items: center;
    }
    .metric-icon {
        grid-column: 1;
        grid-row: 1/3;
        width: 38px;
        height: 38px;
        margin: 0;
    }
    .metric-label {
        grid-column: 2;
        margin: 0 0 3px;
        font-size: 12px;
    }
    .metric-note {
        grid-column: 2;
        grid-row: 2;
        font-size: 10px;
    }
    .metric-value {
        grid-column: 3;
        grid-row: 1/3;
        font-size: 28px;
        margin: 0;
    }
    .panel-header,
    .panel-body {
        padding: 19px;
    }
    .panel-header {
        gap: 10px;
    }
    .panel-title {
        font-size: 15px;
    }
    .panel-subtitle {
        font-size: 11px;
    }
    .shift-item {
        padding: 19px;
        gap: 12px;
        flex-wrap: wrap;
    }
    .date-tile {
        width: 47px;
        min-width: 47px;
        min-height: 55px;
    }
    .date-day {
        font-size: 20px;
    }
    .shift-title {
        font-size: 13px;
    }
    .shift-item > .status-badge {
        margin-left: 59px;
        margin-top: -5px;
    }
    .meta-row {
        font-size: 10px;
        gap: 5px 9px;
    }
    .detail-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .field-full {
        grid-column: auto;
    }
    .panel-footer {
        flex-wrap: wrap;
        padding: 15px 19px;
    }
    .panel-footer .button {
        width: 100%;
    }
    .notice {
        padding: 14px 16px;
        font-size: 12px;
    }
    .auth-layout {
        padding: 24px 15px;
    }
    .auth-layout > .auth-card {
        padding: 28px 22px;
    }
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    .pagination nav {
        width: 100%;
        justify-content: space-between;
    }
    .toolbar .button {
        width: 100%;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *:before,
    *:after {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
@media print {
    .sidebar,
    .topbar,
    .page-actions,
    .button {
        display: none !important;
    }
    .workspace {
        margin: 0;
    }
    .main-content {
        padding: 0;
    }
    .panel {
        box-shadow: none;
        break-inside: avoid;
    }
    body {
        background: #fff;
    }
}
/* Shared view components */
.skip-link {
    position: fixed;
    left: 16px;
    top: -70px;
    z-index: 100;
    background: var(--olive-dark);
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    font-weight: 650;
}
.skip-link:focus {
    top: 14px;
}
.icon-button {
    width: 35px;
    height: 35px;
    display: inline-grid;
    place-items: center;
    border: 1px solid transparent;
    background: transparent;
    color: var(--muted);
    border-radius: 8px;
    padding: 7px;
    flex-shrink: 0;
}
.icon-button:hover {
    background: var(--olive-soft);
    color: var(--olive-dark);
    text-decoration: none;
}
.sidebar-close {
    display: none;
}
.brand-mark {
    font-size: 33px;
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 1;
    position: relative;
    padding-right: 6px;
}
.brand-mark > span {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -1px;
    position: absolute;
    right: 4px;
    top: 4px;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.breadcrumb > .icon {
    width: 12px;
    height: 12px;
    color: #a6ada1;
}
.breadcrumb strong {
    color: var(--ink);
    font-size: 12px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar-footer form {
    width: auto;
    margin-left: auto;
}
.sidebar-footer .user-meta {
    max-width: 140px;
}
.workspace-footer {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 42px 25px;
    font-size: 10px;
    color: #8a9487;
    letter-spacing: 0.2px;
}
.welcome-dot {
    color: var(--olive);
}
.metric-label,
.metric-value,
.metric-note {
    display: block;
}
.metric-icon-blue {
    color: var(--blue) !important;
    background: var(--blue-soft) !important;
}
.metric-icon-sand {
    color: #8a7449 !important;
    background: #f6f1e6 !important;
}
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 650;
    font-size: 12px;
}
.text-link .icon {
    width: 15px;
    height: 15px;
}
.highlight-panel {
    background: #edf1e5;
    border-color: #e0e7d5;
}
.highlight-panel .panel-header {
    border-bottom-color: #dfe6d4;
}
.highlight-panel .panel-header > .icon {
    width: 30px;
    height: 30px;
    color: var(--olive);
}
.highlight-panel .panel-body {
    font-size: 14px;
    line-height: 1.8;
    color: #637054;
}
.highlight-panel .panel-body > p {
    margin-bottom: 20px;
}
.highlight-panel .panel-footer {
    background: #e7ecdf;
    border-top-color: #dbe3ce;
    align-items: flex-start;
    justify-content: flex-start;
    font-size: 11px;
    line-height: 1.7;
    color: #667659;
}
.highlight-panel .panel-footer > .icon {
    width: 16px;
    height: 16px;
    margin-top: 2px;
}
.shift-action {
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: center;
    flex-shrink: 0;
}
.shift-copy > .eyebrow {
    display: block;
    font-size: 9px;
    letter-spacing: 0.8px;
    margin-bottom: 6px;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 20px;
}
.preserve-lines {
    white-space: pre-line;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.8;
}
.muted {
    color: var(--muted);
    font-size: 12px;
}
.panel > .detail-list {
    padding: 25px;
}
.detail-value small {
    font-size: 10px;
    color: var(--muted);
}
.panel-body > h3 {
    font-size: 14px;
    margin-bottom: 12px;
}
.qualification-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}
.qualification-item:first-child {
    padding-top: 0;
}
.qualification-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}
.qualification-item .muted {
    font-size: 11px;
}
.table-secondary {
    display: block;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
    margin-top: 4px;
}
.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid var(--line);
    padding-top: 23px;
    margin-top: 4px;
}
.decision-actions {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}
.decision-actions form {
    margin: 0 !important;
}
.panel > .placeholder-grid {
    padding: 25px;
    margin: 0;
}
.auth-story {
    justify-content: space-between;
    gap: 50px;
}
.auth-story .auth-brand {
    padding: 0;
    margin: 0;
}
.auth-story > div {
    margin-block: auto;
}
.auth-story > div > p {
    max-width: 390px;
    color: #6a765f;
    line-height: 1.9;
    font-size: 14px;
    margin-bottom: 28px;
}
.auth-story > small {
    font-size: 10px;
    letter-spacing: 0.5px;
    color: #7c886f;
}
.auth-feature {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #5e7148;
    font-size: 11px;
    font-weight: 600;
    padding-top: 6px;
}
.auth-feature > .icon {
    width: 18px;
    height: 18px;
}
.auth-card .page-description {
    margin-bottom: 27px;
    font-size: 13px;
}
.auth-card .form-grid {
    gap: 0;
}
.auth-card .auth-footer {
    margin-bottom: 0;
}
.panel-footer > .icon {
    width: 17px;
    height: 17px;
}
.notice > .icon {
    margin-right: 6px;
    width: 17px;
    height: 17px;
    vertical-align: -3px;
}
.notice-info {
    line-height: 1.8;
}
.mobile-toggle.icon-button {
    display: none;
}
@media (max-width: 1200px) {
    .workspace-footer {
        padding-inline: 27px;
    }
}
@media (max-width: 760px) {
    .breadcrumb {
        gap: 9px;
    }
    .breadcrumb > span {
        display: none;
    }
    .breadcrumb > .icon {
        display: none;
    }
    .breadcrumb strong {
        font-size: 12px;
    }
    .mobile-toggle.icon-button {
        display: inline-grid;
    }
    .sidebar-close.icon-button {
        display: inline-grid;
        position: absolute;
        right: 10px;
        top: 12px;
    }
    .workspace-footer {
        padding: 0 20px 25px;
    }
    .auth-story > div,
    .auth-story > small {
        display: none;
    }
    .auth-story .auth-brand {
        margin: 0;
        justify-content: center;
    }
    .auth-story {
        gap: 0;
    }
    .panel > .detail-list {
        padding: 21px;
    }
    .panel > .placeholder-grid {
        padding: 21px;
    }
    .form-actions {
        justify-content: stretch;
    }
    .form-actions .button {
        flex: 1;
    }
}
@media (max-width: 450px) {
    .metric-card {
        display: flex;
        align-items: center;
        gap: 15px;
    }
    .metric-card > .metric-icon {
        margin: 0;
        flex-shrink: 0;
    }
    .metric-card > div {
        position: relative;
        padding-right: 40px;
        flex: 1;
        min-width: 0;
    }
    .metric-card .metric-label {
        font-size: 11px;
    }
    .metric-card .metric-value {
        position: absolute;
        right: 0;
        top: 0;
        line-height: 1.65;
    }
    .metric-card .metric-note {
        font-size: 9px;
    }
    .shift-action {
        width: 100%;
        margin-left: 59px;
        margin-top: -3px;
        justify-content: space-between;
    }
    .shift-action > .icon-button {
        margin-left: auto;
        width: 29px;
        height: 29px;
    }
    .panel > .detail-list {
        padding: 19px;
    }
    .panel > .placeholder-grid {
        padding: 19px;
    }
    .workspace-footer {
        padding-inline: 15px;
    }
    .breadcrumb strong {
        font-size: 11px;
    }
    .topbar-right .status-badge {
        font-size: 9px;
        padding: 3px 7px;
    }
    .panel-footer {
        align-items: flex-start;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    .panel-footer > .icon {
        margin-top: 1px;
    }
    .notice > .icon {
        vertical-align: -3px;
    }
    .form-actions .button {
        width: 100%;
        flex-basis: 100%;
    }
}

/* Kundenverwaltung */
.customer-search {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border-bottom: 1px solid var(--line);
}
.customer-search > .field {
    flex: 1;
    max-width: 560px;
}
.customer-search-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 27px;
}
@media (max-width: 600px) {
    .customer-search {
        flex-direction: column;
    }
    .customer-search > .field {
        width: 100%;
        max-width: none;
    }
    .customer-search-actions {
        padding-top: 0;
    }
}

.customer-form-section {
    min-width: 0;
    margin: 0;
    padding: 0 0 26px;
    border: 0;
    border-bottom: 1px solid var(--line);
}
.customer-form-section legend {
    width: 100%;
    padding: 0;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
}
.customer-optional {
    margin-left: 7px;
    font-size: 11px;
    font-weight: 400;
    color: var(--muted);
}
.customer-table {
    table-layout: fixed;
}
.customer-table th:nth-child(1) {
    width: 25%;
}
.customer-table th:nth-child(2) {
    width: 26%;
}
.customer-table th:nth-child(3) {
    width: 22%;
}
.customer-table th:nth-child(4) {
    width: 8%;
}
.customer-table th:nth-child(5) {
    width: 19%;
}
.customer-table td {
    overflow-wrap: anywhere;
}
.customer-contact-name {
    display: block;
    font-weight: 600;
}
@media (max-width: 1000px) {
    .customer-table th,
    .customer-table td {
        padding-inline: 12px;
    }
}
@media (max-width: 700px) {
    .customer-table,
    .customer-table tbody {
        display: block;
        width: 100%;
    }
    .customer-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }
    .customer-table tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 14px;
        padding: 20px;
        border-top: 1px solid var(--line);
    }
    .customer-table td {
        display: block;
        min-width: 0;
        padding: 0;
        border: 0;
    }
    .customer-table .customer-main,
    .customer-table td[data-label="Kontakt"],
    .customer-table td[data-label="Rechnungsort"],
    .customer-table td[colspan] {
        grid-column: 1 / -1;
    }
    .customer-table td[data-label]::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        color: var(--muted);
        font-size: 10px;
        font-weight: 600;
    }
    .customer-table .customer-actions {
        align-self: end;
    }
}

/* FloMedic Originalmarke: unverändertes lokales Logo, keine Webfont-Abhängigkeit. */
.sidebar {
    padding-top: 24px;
    overflow-y: auto;
}
.sidebar > .brand,
.auth-story > .brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.sidebar > .brand {
    flex-shrink: 0;
    padding: 0 8px 28px;
}
.brand-logo {
    display: block;
    width: 190px;
    height: auto;
    object-fit: contain;
}
.brand-caption {
    color: var(--muted);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}
.auth-story .brand-logo {
    width: 260px;
}
.auth-story > .brand {
    padding: 0;
    margin-bottom: 45px;
}
.sidebar > nav {
    flex-shrink: 0;
}
.nav-link.active {
    box-shadow: inset 3px 0 var(--olive);
}
.nav-link.active > .icon {
    color: var(--blue);
}
.status-withdrawn,
.status-badge.withdrawn {
    background: #f0f1ec;
    color: #65685c;
}
.status-released,
.status-badge.released {
    background: var(--blue-soft);
    color: #145b97;
}
.status-return_requested,
.status-badge.return_requested {
    background: #fff4d7;
    color: #855c08;
}
@media (max-width: 1200px) {
    .sidebar .brand-logo {
        width: 174px;
    }
}
@media (max-width: 760px) {
    .sidebar > .brand {
        margin-top: 15px;
    }
    .sidebar .brand-logo {
        width: 190px;
    }
    .auth-story > .brand {
        align-items: center;
        margin-bottom: 0;
    }
    .auth-story .brand-logo {
        width: 220px;
    }
}

/* Customer reconciliation stays readable on phones without horizontal scrolling. */
.lexware-row {
    border: 1px solid var(--line);
    border-radius: 10px;
    margin: 1rem 0;
    padding: 1rem;
    min-width: 0;
}
.lexware-row legend {
    font-weight: 700;
    padding: 0 0.4rem;
}
.lexware-option {
    display: flex;
    gap: 0.7rem;
    padding: 0.8rem 0;
    align-items: flex-start;
    overflow-wrap: anywhere;
}
.lexware-option > span > span {
    display: block;
}
.lexware-fields dd {
    margin: 0.2rem 0 1rem;
    overflow-wrap: anywhere;
}
.lexware-fields dt {
    font-weight: 700;
}

.personnel-list {
    display: grid;
    gap: 16px;
}
.personnel-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px;
    min-width: 0;
    overflow-wrap: anywhere;
}
.personnel-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.personnel-card h3 {
    font-size: 16px;
    margin: 6px 0 8px;
}
.personnel-details {
    margin: 18px 0;
}
.personnel-details summary {
    cursor: pointer;
    font-weight: 650;
    padding: 8px 0;
}
.personnel-details[open] summary {
    margin-bottom: 14px;
}
.personnel-withdraw {
    margin-top: 12px;
}
.personnel-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    line-height: 1.5;
}
.personnel-check input {
    margin-top: 4px;
    flex-shrink: 0;
    accent-color: var(--olive);
}
.personnel-roles {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px;
}
.personnel-actions {
    margin-bottom: 24px;
}
.permission-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.audit-detail {
    font-size: 12px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.status-approved {
    color: #24633a;
    background: #edf5eb;
}
.status-pending {
    color: #855c08;
    background: #fff4d7;
}
.status-rejected,
.status-revoked {
    color: #9c4040;
    background: #fff1ef;
}
@media (max-width: 1000px) {
    .permission-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 760px) {
    .personnel-card {
        padding: 16px;
    }
}

/* Server-rendered month calendar, with a readable agenda on phones. */
.calendar-toolbar {
    flex-wrap: wrap;
    gap: 16px;
}
.calendar-navigation,
.calendar-month-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.calendar-month-form .form-control {
    width: auto;
    min-width: 0;
    max-width: 100%;
}
.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 24px;
    color: var(--muted);
    font-size: 12px;
}
.calendar-legend > span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.legend-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #969991;
}
.legend-open {
    background: var(--blue);
}
.legend-assigned,
.legend-confirmed {
    background: var(--olive);
}
.legend-closed {
    background: #ae6666;
}
.calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.calendar-table th {
    padding: 12px 4px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
    border-bottom: 1px solid var(--line);
}
.calendar-table td {
    height: 125px;
    vertical-align: top;
    border: 1px solid var(--line);
    padding: 8px;
    overflow-wrap: anywhere;
}
.calendar-day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    font-size: 12px;
    margin-bottom: 5px;
}
.calendar-today .calendar-day-number {
    background: var(--olive);
    color: white;
    border-radius: 50%;
}
.calendar-outside {
    background: #f7f7f4;
    color: #9e9f98;
}
.calendar-event {
    display: block;
    margin: 5px 0;
    padding: 7px;
    border-left: 3px solid #969991;
    border-radius: 5px;
    background: #f0f1ed;
    font-size: 11px;
    color: var(--ink);
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.calendar-event > strong,
.calendar-event > span {
    display: block;
}
.calendar-event-open {
    border-color: var(--blue);
    background: #edf4fa;
}
.calendar-event-assigned,
.calendar-event-confirmed {
    border-color: var(--olive);
    background: #eff2e8;
}
.calendar-event-closed {
    border-color: #ae6666;
    background: #fff1ef;
}
.calendar-event-time {
    font-weight: 650;
}
.calendar-agenda {
    display: none;
}
.calendar-agenda-day h3 {
    font-size: 14px;
    margin: 8px 0;
}
.calendar-agenda-day + .calendar-agenda-day {
    margin-top: 22px;
}
.qualification-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
}
.planning-availability {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 20px;
}
.planning-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}
.planning-person {
    background: #f7f8f4;
    border-radius: 8px;
    padding: 14px;
    min-width: 0;
    overflow-wrap: anywhere;
}
.planning-person p {
    margin: 6px 0;
}
.status-unavailable {
    background: #fff1ef;
    color: #9c4040;
}
.staff-dashboard {
    margin-bottom: 24px;
}
.staff-stat-link {
    color: inherit;
    display: block;
}
@media (max-width: 760px) {
    .calendar-table {
        display: none;
    }
    .calendar-agenda {
        display: block;
    }
    .calendar-event {
        font-size: 13px;
        padding: 12px;
    }
    .calendar-legend {
        padding: 16px;
    }
    .qualification-options,
    .planning-results {
        grid-template-columns: minmax(0, 1fr);
    }
    .planning-availability {
        padding: 16px;
    }
}

/* Shared documents and confidential reports. */
.collaboration-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 16px;
}
.collaboration-filters .field {
    flex: 1 1 180px;
}
.collaboration-filters .form-actions {
    margin: 0;
}
.library-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.library-card {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}
.library-card .panel-body {
    flex: 1;
}
.library-card .panel-title {
    margin: 12px 0;
}
.library-card p,
.library-card h2,
.attachment-list a,
.main-content .page-title,
.personnel-card p {
    overflow-wrap: anywhere;
}
.collaboration-download {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 20px;
    margin-bottom: 24px;
    border-radius: 12px;
    background: var(--olive-soft);
}
.collaboration-download > div {
    flex: 1 1 160px;
}
.attachment-list {
    display: grid;
    list-style: none;
    padding: 0;
    gap: 12px;
}
.attachment-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.attachment-list .field-help {
    margin: 0;
}
.internal-message {
    border-left: 4px solid var(--blue);
    background: var(--blue-soft);
}
@media (max-width: 1100px) {
    .library-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 680px) {
    .library-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .collaboration-filters .field {
        flex-basis: 100%;
    }
}

/* Work time, leave and stored monthly reports. */
.clock-panel {
    border-top: 4px solid var(--olive);
}
.clock-display {
    font-size: clamp(44px, 7vw, 72px);
    font-weight: 750;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
    color: var(--olive-dark);
    margin: 14px 0;
}
.work-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.work-stat-value {
    display: block;
    font-size: clamp(22px, 2vw, 30px);
    font-variant-numeric: tabular-nums;
    margin: 10px 0;
}
.work-balance {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.work-day-table {
    min-width: 700px;
}
.work-day-table td {
    vertical-align: top;
    font-variant-numeric: tabular-nums;
}
.work-day-table td:first-child {
    min-width: 180px;
}
.work-break-rows {
    display: grid;
    gap: 16px;
    margin: 16px 0;
}
.work-print {
    background: #fff;
}
.print-sheet {
    max-width: 1100px;
    margin: 30px auto;
    padding: 30px;
    color: #231f20;
}
.print-sheet h1 {
    margin-top: 20px;
}
.print-controls {
    max-width: 1100px;
    margin: 20px auto;
    padding: 20px;
    background: var(--olive-soft);
}
.print-sheet .data-table {
    font-size: 11px;
}
.print-sheet .data-table th,
.print-sheet .data-table td {
    padding: 8px;
}
.print-sheet footer {
    margin-top: 24px;
    font-size: 11px;
}
@media (max-width: 900px) {
    .work-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 600px) {
    .work-stats,
    .work-balance {
        grid-template-columns: minmax(0, 1fr);
    }
    .print-sheet {
        padding: 12px;
    }
}
@media print {
    @page {
        size: A4 portrait;
        margin: 13mm;
    }
    .work-print .print-controls {
        display: none;
    }
    .work-print .print-sheet {
        width: auto;
        max-width: none;
        padding: 0;
        margin: 0;
    }
    .work-print .table-wrap {
        overflow: visible;
    }
    .work-print .work-day-table {
        min-width: 0;
        width: 100%;
    }
    .work-print .work-day-table td:first-child {
        min-width: 0;
    }
    .work-print .data-table th,
    .work-print .data-table td {
        padding: 5px;
        font-size: 9px;
    }
    .work-print thead {
        display: table-header-group;
    }
    .work-print tr {
        break-inside: avoid;
    }
    .work-print details {
        display: none;
    }
    .work-print h1 {
        font-size: 23px;
    }
    .work-print a {
        color: inherit;
    }
}

.work-print-entries p {
    font-size: 9px;
    line-height: 1.3;
    margin: 6px 0;
}

.notification-page .panel {
    margin-bottom: 24px;
}
.notification-page .panel-header h2 {
    font-size: 17px;
    margin: 0;
}
.notification-page .text-muted,
.notification-page .field-hint {
    color: var(--muted);
    font-size: 12px;
}
.notification-page .field > label,
.notification-page legend {
    display: block;
    font-size: 13px;
    font-weight: 650;
    margin-bottom: 8px;
}
.notification-page fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}
.notification-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
}
.notification-page .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
    overflow-wrap: anywhere;
}
.notification-page .checkbox-label input {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    margin: 4px 0 0;
    accent-color: var(--olive);
}
.notification-page .checkbox-label small {
    display: block;
}
.notification-event {
    padding: 20px;
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow-wrap: anywhere;
}
.notification-event h3 {
    margin-top: 0;
    font-size: 15px;
}
.notification-event summary {
    cursor: pointer;
    color: var(--blue);
}
.notification-page .filter-form,
.notification-page .tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}
.notification-page .filter-form select {
    width: auto;
    max-width: 100%;
}
@media (max-width: 750px) {
    .notification-options {
        grid-template-columns: 1fr;
    }
    .notification-page .panel-header {
        flex-wrap: wrap;
    }
}

.personal-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: start;
}
.dashboard-widget {
    min-width: 0;
}
.dashboard-widget-full {
    grid-column: 1 / -1;
}
.dashboard-widget > .panel {
    margin-bottom: 0;
    height: 100%;
}
.dashboard-widget-half .metric-grid {
    grid-template-columns: 1fr;
}
.dashboard-customize {
    margin-bottom: 1.5rem;
}
.dashboard-customize > summary,
.customer-detail-form + summary {
    cursor: pointer;
}
.dashboard-layout-row {
    display: grid;
    grid-template-columns: minmax(9rem, 2fr) minmax(5rem, 1fr) 5rem auto;
    gap: 1rem;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border, #e5e7eb);
}
.dashboard-layout-row > * {
    min-width: 0;
    overflow-wrap: anywhere;
}
.dashboard-quick-links {
    display: grid;
    gap: 0.8rem;
}
.customer-detail-form {
    padding: 1rem 0;
}
@media (max-width: 760px) {
    .personal-dashboard-grid {
        grid-template-columns: 1fr;
    }
    .dashboard-layout-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .dashboard-widget-half {
        grid-column: 1 / -1;
    }
}
