:root {
    --orange: #ef8b24;
    --orange-dark: #d87312;
    --orange-soft: #fff3e6;

    --charcoal: #4f5154;
    --charcoal-dark: #303235;
    --charcoal-light: #6e7175;

    --background: #f4f5f7;
    --surface: #ffffff;
    --border: #e4e6e9;

    --text: #25272a;
    --text-muted: #777b80;

    --success: #25845f;
    --danger: #c44949;

    --sidebar-width: 275px;
    --sidebar-collapsed-width: 82px;
    --topbar-height: 82px;

    --shadow-sm: 0 4px 16px rgba(34, 39, 46, 0.06);
    --shadow-lg: 0 24px 70px rgba(34, 39, 46, 0.16);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: var(--background);
    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(239, 139, 36, 0.3);
    outline-offset: 2px;
}

/* Login */

.login-body {
    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(239, 139, 36, 0.15),
            transparent 34%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(79, 81, 84, 0.12),
            transparent 38%
        ),
        #f3f4f6;
}

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 32px 20px;
}

.login-card {
    width: min(940px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.login-card--single-column {
    grid-template-columns: 1fr;
}

.login-card__brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 48px;
    color: #ffffff;
    background:
        linear-gradient(
            145deg,
            rgba(46, 48, 51, 0.97),
            rgba(79, 81, 84, 0.94)
        );
}

.login-card__brand::after {
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 250px;
    height: 250px;
    content: "";
    border: 50px solid rgba(239, 139, 36, 0.15);
    border-radius: 50%;
}

.login-card__logo {
    position: relative;
    z-index: 1;
    width: min(290px, 100%);
    height: auto;
    padding: 14px 18px;
    border-radius: 12px;
    background: #ffffff;
}

.login-card__divider {
    position: relative;
    z-index: 1;
    width: 54px;
    height: 4px;
    margin: 34px 0 25px;
    border-radius: 999px;
    background: var(--orange);
}

.login-card__brand h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
}

.login-card__brand p {
    position: relative;
    z-index: 1;
    max-width: 360px;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

.login-card__content {
    padding: 56px 54px;
}

.login-card__heading {
    margin-bottom: 32px;
}

.login-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    color: var(--orange-dark);
    background: var(--orange-soft);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.login-card__heading h2 {
    margin: 17px 0 8px;
    color: var(--charcoal-dark);
    font-size: 29px;
    line-height: 1.2;
}

.login-card__heading p {
    margin: 0;
    color: var(--text-muted);
    font-size: 14px;
}

.login-form {
    display: grid;
    gap: 22px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    color: var(--charcoal-dark);
    font-size: 13px;
    font-weight: 700;
}

.input-wrapper {
    position: relative;
}

.input-wrapper svg {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 20px;
    height: 20px;
    color: #96999d;
    transform: translateY(-50%);
    pointer-events: none;
}

.input-wrapper input {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 48px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    background: #fafafa;
    transition:
        border-color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}

.input-wrapper input:hover {
    border-color: #c9ccd0;
}

.input-wrapper input:focus {
    border-color: var(--orange);
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(239, 139, 36, 0.11);
}

.login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    margin-top: 4px;
    border: 0;
    border-radius: var(--radius-sm);
    color: #ffffff;
    background: var(--orange);
    box-shadow: 0 10px 24px rgba(239, 139, 36, 0.24);
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}

.login-button svg {
    width: 20px;
    height: 20px;
}

.login-button:hover {
    background: var(--orange-dark);
    box-shadow: 0 12px 30px rgba(216, 115, 18, 0.28);
    transform: translateY(-1px);
}

.form-alert {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
    padding: 14px 16px;
    border: 1px solid #f0cccc;
    border-radius: var(--radius-sm);
    color: #963838;
    background: #fff5f5;
    font-size: 13px;
}

.form-alert svg {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}

.form-alert p,
.field-error {
    margin: 0;
}

.field-error {
    color: var(--danger);
    font-size: 12px;
}

.login-card__support {
    margin: 25px 0 0;
    color: var(--text-muted);
    font-size: 12px;
    text-align: center;
}

.login-form__auxiliary {
    text-align: right;
}

.login-form__forgot-link {
    color: var(--orange-dark);
    font-size: 13px;
    font-weight: 700;
}

.login-footer {
    color: #85898e;
    font-size: 12px;
    text-align: center;
}

/* Application layout */

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

.sidebar {
    position: fixed;
    z-index: 50;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    color: #ffffff;
    background:
        linear-gradient(
            180deg,
            var(--charcoal-dark),
            #414346 60%,
            #37393c
        );
    box-shadow: 10px 0 30px rgba(34, 39, 46, 0.12);
    transition: width 180ms ease;
}

.sidebar__header {
    display: flex;
    align-items: center;
    min-height: var(--topbar-height);
    padding: 16px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar__brand {
    min-width: 0;
}

.sidebar__logo {
    display: block;
    width: 195px;
    max-width: 100%;
    height: auto;
    padding: 8px 10px;
    border-radius: 8px;
    background: #ffffff;
}

.sidebar__system-name {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.63);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.sidebar__close {
    display: none;
    margin-left: auto;
    border: 0;
    color: #ffffff;
    background: transparent;
    cursor: pointer;
}

.sidebar__nav {
    flex: 1;
    padding: 25px 16px;
    overflow-y: auto;
}

.sidebar__nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 12px 12px;
}

.sidebar__section-label {
    margin: 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar__collapse-toggle {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9px;
    color: rgba(255, 255, 255, 0.74);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition:
        color 160ms ease,
        background 160ms ease,
        border-color 160ms ease;
}

.sidebar__collapse-toggle:hover,
.sidebar__collapse-toggle:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.3);
}

.sidebar__collapse-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform 180ms ease;
}

.sidebar__link {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    font-weight: 650;
    transition:
        color 160ms ease,
        background 160ms ease;
}

.sidebar__link svg {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
}

.sidebar__link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar__link.is-active {
    color: #ffffff;
    background: var(--orange);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.sidebar__module-preview {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 10px;
    padding: 13px 14px;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.45);
}

.sidebar__module-icon svg {
    display: block;
    width: 21px;
    height: 21px;
}

.sidebar__module-preview strong,
.sidebar__module-preview small {
    display: block;
}

.sidebar__module-preview strong {
    font-size: 13px;
    font-weight: 650;
}

.sidebar__module-preview small {
    margin-top: 2px;
    color: var(--orange);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.sidebar__footer {
    padding: 18px 28px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar__footer span,
.sidebar__footer small {
    display: block;
}

.sidebar__footer span {
    font-size: 12px;
    font-weight: 750;
}

.sidebar__footer small {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.42);
    font-size: 10px;
}

.sidebar-backdrop {
    display: none;
}

.app-main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin-left: var(--sidebar-width);
    transition: margin-left 180ms ease;
}

.topbar {
    position: sticky;
    z-index: 30;
    top: 0;
    min-height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 34px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
}

.topbar__left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar__menu-button {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--charcoal);
    background: #ffffff;
    cursor: pointer;
}

.topbar__eyebrow {
    margin: 0 0 2px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topbar__title {
    margin: 0;
    color: var(--charcoal-dark);
    font-size: 21px;
    line-height: 1.2;
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 6px 12px 6px 7px;
    border: 1px solid transparent;
    border-radius: 12px;
    transition:
        background 160ms ease,
        border-color 160ms ease;
}

.user-chip:hover,
.user-chip.is-active {
    border-color: var(--border);
    background: #f7f7f8;
}

.user-chip__avatar {
    width: 37px;
    height: 37px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #ffffff;
    background: var(--orange);
    font-size: 14px;
    font-weight: 800;
}

.user-chip__details strong,
.user-chip__details small {
    display: block;
}

.user-chip__details strong {
    max-width: 180px;
    overflow: hidden;
    color: var(--charcoal-dark);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-chip__details small {
    color: var(--text-muted);
    font-size: 10px;
}

.logout-form {
    margin: 0;
}

.logout-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 43px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--charcoal-light);
    background: #ffffff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition:
        color 160ms ease,
        border-color 160ms ease,
        background 160ms ease;
}

.logout-button svg {
    width: 19px;
    height: 19px;
}

.logout-button:hover {
    border-color: #efc3c3;
    color: var(--danger);
    background: #fff7f7;
}

.content {
    width: 100%;
    max-width: 1480px;
    flex: 1;
    margin: 0 auto;
    padding: 32px 34px 42px;
}

.app-footer {
    padding: 18px 34px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    background: #ffffff;
    font-size: 11px;
    text-align: center;
}

/* Dashboard */

.section-kicker {
    display: block;
    margin-bottom: 7px;
    color: var(--orange-dark);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.welcome-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    overflow: hidden;
    padding: 34px 36px;
    border-radius: var(--radius-md);
    color: #ffffff;
    background:
        linear-gradient(
            120deg,
            var(--charcoal-dark),
            var(--charcoal) 70%
        );
    box-shadow: var(--shadow-sm);
}

.welcome-panel::after {
    position: absolute;
    right: -50px;
    bottom: -95px;
    width: 260px;
    height: 260px;
    content: "";
    border: 48px solid rgba(239, 139, 36, 0.16);
    border-radius: 50%;
}

.welcome-panel .section-kicker {
    color: #ffb96f;
}

.welcome-panel h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.2;
}

.welcome-panel p {
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.67);
    font-size: 14px;
}

.welcome-panel__date {
    position: relative;
    z-index: 1;
    min-width: 155px;
    padding: 17px 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.07);
    text-align: center;
}

.welcome-panel__date span,
.welcome-panel__date strong {
    display: block;
}

.welcome-panel__date span {
    margin-bottom: 3px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 10px;
    text-transform: uppercase;
}

.welcome-panel__date strong {
    font-size: 18px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 22px;
}

.dashboard-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
    padding: 23px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.dashboard-card__icon {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--orange-dark);
    background: var(--orange-soft);
}

.dashboard-card__icon svg {
    width: 23px;
    height: 23px;
}

.dashboard-card span,
.dashboard-card strong,
.dashboard-card small {
    display: block;
}

.dashboard-card span {
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dashboard-card strong {
    margin: 4px 0;
    overflow-wrap: anywhere;
    color: var(--charcoal-dark);
    font-size: 16px;
}

.dashboard-card small {
    color: var(--text-muted);
    font-size: 11px;
}

.content-panel {
    margin-top: 22px;
    padding: 27px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.content-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.content-panel h3 {
    margin: 0;
    color: var(--charcoal-dark);
    font-size: 19px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--success);
    background: #ebf8f3;
    font-size: 11px;
    font-weight: 750;
}

.status-badge span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(37, 132, 95, 0.1);
}

.information-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding-top: 24px;
}

.information-list__item {
    display: flex;
    gap: 14px;
    padding: 5px 25px;
    border-right: 1px solid var(--border);
}

.information-list__item:first-child {
    padding-left: 0;
}

.information-list__item:last-child {
    padding-right: 0;
    border-right: 0;
}

.information-list__number {
    color: var(--orange);
    font-size: 12px;
    font-weight: 800;
}

.information-list strong {
    display: block;
    margin-bottom: 5px;
    color: var(--charcoal-dark);
    font-size: 13px;
}

.information-list p {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
}

/* Profile */

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 27px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.profile-header__avatar {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #ffffff;
    background:
        linear-gradient(
            145deg,
            var(--orange),
            var(--orange-dark)
        );
    font-size: 28px;
    font-weight: 800;
}

.profile-header h2 {
    margin: 0 0 4px;
    color: var(--charcoal-dark);
    font-size: 25px;
}

.profile-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 22px;
}

.profile-grid .content-panel {
    height: fit-content;
}

.profile-details {
    margin: 0;
}

.profile-details > div {
    display: grid;
    grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.3fr);
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.profile-details > div:last-child {
    border-bottom: 0;
}

.profile-details dt {
    color: var(--text-muted);
    font-size: 12px;
}

.profile-details dd {
    margin: 0;
    color: var(--charcoal-dark);
    font-size: 13px;
    font-weight: 700;
}

.profile-actions p {
    margin: 15px 0 22px;
    color: var(--text-muted);
    font-size: 13px;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 17px;
    border: 1px solid #ef8b24;
    border-radius: var(--radius-sm, 10px);
    color: #fff;
    background: #ef8b24;
    box-shadow: 0 8px 20px rgb(216 115 18 / 22%);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.primary-button svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    stroke-width: 2;
}

.primary-button:hover {
    border-color: #d87312;
    background: #d87312;
    box-shadow: 0 10px 24px rgb(216 115 18 / 28%);
    transform: translateY(-1px);
}

.primary-button:active {
    box-shadow: 0 4px 12px rgb(216 115 18 / 20%);
    transform: translateY(0);
}

.primary-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 0 17px;
    border: 1px solid var(--orange);
    border-radius: 10px;
    color: var(--orange-dark);
    background: var(--orange-soft);
    font-size: 12px;
    font-weight: 750;
    transition:
        color 160ms ease,
        background 160ms ease;
}

.secondary-button:hover {
    color: #ffffff;
    background: var(--orange);
}

.messages {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.message {
    padding: 13px 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    font-size: 13px;
}

/* Responsive */

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

    .information-list {
        grid-template-columns: 1fr;
    }

    .information-list__item,
    .information-list__item:first-child,
    .information-list__item:last-child {
        padding: 16px 0;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .information-list__item:last-child {
        border-bottom: 0;
    }
}

@media (min-width: 961px) {
    .sidebar__collapse-toggle {
        display: inline-flex;
    }

    .sidebar-collapsed .sidebar {
        width: var(--sidebar-collapsed-width);
    }

    .sidebar-collapsed .app-main {
        margin-left: var(--sidebar-collapsed-width);
    }

    .sidebar-collapsed .content {
        max-width: 1840px;
    }

    .sidebar-collapsed .sidebar__header {
        justify-content: center;
        padding-right: 12px;
        padding-left: 12px;
    }

    .sidebar-collapsed .sidebar__logo {
        width: 58px;
        padding: 6px 4px;
    }

    .sidebar-collapsed .sidebar__system-name,
    .sidebar-collapsed .sidebar__section-label,
    .sidebar-collapsed .sidebar__link > span,
    .sidebar-collapsed .sidebar__module-chevron,
    .sidebar-collapsed .sidebar__submenu,
    .sidebar-collapsed .sidebar__footer span,
    .sidebar-collapsed .sidebar__footer small {
        display: none;
    }

    .sidebar-collapsed .sidebar__nav {
        padding-right: 12px;
        padding-left: 12px;
    }

    .sidebar-collapsed .sidebar__nav-header {
        justify-content: center;
        margin-right: 0;
        margin-left: 0;
    }

    .sidebar-collapsed .sidebar__collapse-toggle svg {
        transform: rotate(180deg);
    }

    .sidebar-collapsed .sidebar__link {
        justify-content: center;
        gap: 0;
        padding-right: 0;
        padding-left: 0;
    }

    .sidebar-collapsed .sidebar__footer {
        min-height: 60px;
        padding: 12px;
    }
}

@media (max-width: 960px) {
    .sidebar {
        transform: translateX(-105%);
        transition: transform 220ms ease;
    }

    .sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar__close {
        display: inline-flex;
    }

    .sidebar-backdrop {
        position: fixed;
        z-index: 40;
        inset: 0;
        border: 0;
        background: rgba(20, 22, 25, 0.52);
        opacity: 0;
        visibility: hidden;
        display: block;
        transition:
            opacity 220ms ease,
            visibility 220ms ease;
    }

    .sidebar-open .sidebar-backdrop {
        opacity: 1;
        visibility: visible;
    }

    .sidebar-open {
        overflow: hidden;
    }

    .app-main {
        margin-left: 0;
    }

    .topbar__menu-button {
        display: inline-flex;
    }

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

@media (max-width: 760px) {
    .login-page {
        justify-content: flex-start;
        padding: 18px 14px;
    }

    .login-card {
        grid-template-columns: 1fr;
    }

    .login-card__brand {
        padding: 32px 28px;
    }

    .login-card__brand h1 {
        font-size: 25px;
    }

    .login-card__logo {
        width: 235px;
    }

    .login-card__divider {
        margin: 25px 0 20px;
    }

    .login-card__content {
        padding: 34px 28px;
    }

    .topbar {
        min-height: 70px;
        padding: 10px 16px;
    }

    .topbar__eyebrow {
        display: none;
    }

    .topbar__title {
        font-size: 18px;
    }

    .user-chip__details,
    .logout-button span {
        display: none;
    }

    .user-chip {
        padding-right: 7px;
    }

    .logout-button {
        width: 43px;
        padding: 0;
        justify-content: center;
    }

    .content {
        padding: 20px 16px 32px;
    }

    .app-footer {
        padding: 17px 16px;
    }

    .welcome-panel {
        align-items: flex-start;
        flex-direction: column;
        padding: 27px 24px;
    }

    .welcome-panel__date {
        min-width: 0;
        text-align: left;
    }

    .content-panel__header {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .profile-details > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (max-width: 420px) {
    .login-card__brand,
    .login-card__content {
        padding-right: 22px;
        padding-left: 22px;
    }

    .sidebar {
        width: min(86vw, 310px);
    }
}

/* =========================================================
   Неовластен пристап
   ========================================================= */

.access-denied {
    width: 100%;
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.access-denied__card {
    width: 100%;
    max-width: 620px;
    padding: 48px 42px;
    text-align: center;
    background: #ffffff;
    border: 1px solid rgba(31, 41, 55, 0.1);
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.access-denied__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(234, 88, 12, 0.1);
    border-radius: 50%;
}

.access-denied__icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: #ea580c;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.access-denied__eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #ea580c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.access-denied__card h2 {
    margin: 0 0 14px;
    color: #1f2937;
    font-size: 30px;
    line-height: 1.2;
}

.access-denied__card p {
    max-width: 500px;
    margin: 0 auto 28px;
    color: #6b7280;
    font-size: 15px;
    line-height: 1.7;
}

.access-denied__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 22px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    background: #ea7b20;
    border-radius: 9px;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.access-denied__button:hover {
    color: #ffffff;
    background: #d96812;
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .access-denied {
        min-height: calc(100vh - 140px);
        padding: 24px 16px;
    }

    .access-denied__card {
        padding: 36px 22px;
    }

    .access-denied__card h2 {
        font-size: 25px;
    }
}


/* =========================================================
   Timesheet role dashboard
   ========================================================= */

.module-placeholder {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 24px;
}

.module-placeholder__icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--orange-dark);
    background: var(--orange-soft);
}

.module-placeholder__icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.module-placeholder strong {
    display: block;
    margin-bottom: 5px;
    color: var(--charcoal-dark);
    font-size: 14px;
}

.module-placeholder p {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.6;
}

.visible-users-list {
    padding-top: 12px;
}

.visible-users-list__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.visible-users-list__item:last-child {
    border-bottom: 0;
}

.visible-users-list__avatar {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #ffffff;
    background: var(--charcoal);
    font-size: 14px;
    font-weight: 800;
}

.visible-users-list__item > div {
    min-width: 0;
    flex: 1;
}

.visible-users-list__item strong,
.visible-users-list__item small {
    display: block;
}

.visible-users-list__item strong {
    overflow-wrap: anywhere;
    color: var(--charcoal-dark);
    font-size: 13px;
}

.visible-users-list__item small {
    margin-top: 3px;
    overflow-wrap: anywhere;
    color: var(--text-muted);
    font-size: 11px;
}

.visible-users-list__status {
    flex: 0 0 auto;
    padding: 6px 9px;
    border-radius: 999px;
    color: var(--success);
    background: #ebf8f3;
    font-size: 10px;
    font-weight: 750;
}

.empty-role-state {
    max-width: 620px;
    margin: 0 auto;
    padding: 30px 10px;
    text-align: center;
}

.empty-role-state__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--orange-dark);
    background: var(--orange-soft);
}

.empty-role-state__icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.empty-role-state h3 {
    margin: 0 0 10px;
}

.empty-role-state p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.7;
}

@media (max-width: 640px) {
    .module-placeholder {
        align-items: flex-start;
    }

    .visible-users-list__item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .visible-users-list__status {
        margin-left: 54px;
    }
}

/* Timesheet sidebar submenu */

.sidebar__module-group {
    display: grid;
    gap: 4px;
}

.sidebar__module-group.is-open {
    margin-bottom: 4px;
}

.sidebar__module-chevron {
    width: 16px !important;
    height: 16px !important;
    margin-left: auto;
    flex: 0 0 auto;
    stroke-width: 2;
}

.sidebar__submenu {
    position: relative;
    display: grid;
    gap: 3px;
    margin: 2px 0 6px 22px;
    padding: 3px 0 3px 15px;
    border-left: 1px solid #e2e8f0;
}

.sidebar__submenu-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    padding: 7px 11px;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
    border-radius: 8px;
    transition:
        color 0.18s ease,
        background-color 0.18s ease,
        transform 0.18s ease;
}

.sidebar__submenu-heading {
    display: block;
    margin: 9px 10px 2px;
    color: #94a3b8;
    font-size: 0.61rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar__submenu-link:hover {
    color: #8a4306;
    background: #fff7ed;
    transform: translateX(1px);
}

.sidebar__submenu-link.is-active {
    color: #8a4306;
    background: #ffedd5;
    font-weight: 750;
}

.sidebar__submenu-marker {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    background: #cbd5e1;
    border-radius: 50%;
    transition:
        background-color 0.18s ease,
        box-shadow 0.18s ease;
}

.sidebar__submenu-link:hover .sidebar__submenu-marker {
    background: #f59e0b;
}

.sidebar__submenu-link.is-active .sidebar__submenu-marker {
    background: #ef8b24;
    box-shadow: 0 0 0 3px rgba(239, 139, 36, 0.16);
}

.sidebar__submenu-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    margin-left: auto;
    padding: 0 7px;
    color: #ffffff;
    background: #dc2626;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(127, 29, 29, 0.22);
}

@media (max-width: 1100px) {
    .sidebar__submenu-link {
        min-height: 38px;
    }
}

/* Timesheet module dashboard */

.timesheet-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: center;
    margin-bottom: 24px;
    padding: 32px;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #28323d 0%,
            #374453 64%,
            #465566 100%
        );
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
}

.timesheet-hero::after {
    content: "";
    position: absolute;
    top: -90px;
    right: -75px;
    width: 230px;
    height: 230px;
    border: 42px solid rgba(239, 139, 36, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.timesheet-hero__content,
.timesheet-hero__summary {
    position: relative;
    z-index: 1;
}

.timesheet-hero .section-kicker {
    color: #fdba74;
}

.timesheet-hero h2 {
    margin: 7px 0 10px;
    color: #ffffff;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    line-height: 1.2;
}

.timesheet-hero__content p {
    max-width: 680px;
    margin: 0;
    color: #dbe2ea;
    font-size: 0.94rem;
    line-height: 1.75;
}

.timesheet-hero__summary {
    display: grid;
    gap: 14px;
    min-width: 230px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    backdrop-filter: blur(8px);
}

.timesheet-hero__date,
.timesheet-hero__roles {
    display: grid;
    gap: 5px;
}

.timesheet-hero__date > span,
.timesheet-hero__roles > span {
    color: #cbd5e1;
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.timesheet-hero__date strong {
    color: #ffffff;
    font-size: 1rem;
}

.timesheet-role-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.timesheet-role-badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 5px 9px;
    color: #7c3705;
    background: #ffedd5;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
}

.timesheet-role-badge--muted {
    color: #475569;
    background: #e2e8f0;
}

.timesheet-dashboard-section {
    margin-bottom: 24px;
    padding: 26px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 7px 22px rgba(15, 23, 42, 0.05);
}

.timesheet-dashboard-section__header {
    margin-bottom: 20px;
}

.timesheet-dashboard-section__header h3 {
    margin: 5px 0;
    color: var(--charcoal-dark);
    font-size: 1.25rem;
}

.timesheet-dashboard-section__header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.6;
}

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

.timesheet-action-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 15px;
    align-items: center;
    min-height: 132px;
    padding: 20px;
    color: inherit;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.timesheet-action-card:hover {
    color: inherit;
    border-color: #fdba74;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.timesheet-action-card__icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--orange-dark);
    background: var(--orange-soft);
    border-radius: 13px;
}

.timesheet-action-card__icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.timesheet-action-card__content {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.timesheet-action-card__content small {
    color: #94a3b8;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.timesheet-action-card__content strong {
    color: var(--charcoal-dark);
    font-size: 0.95rem;
}

.timesheet-action-card__content > span {
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.55;
}

.timesheet-action-card__arrow {
    color: #cbd5e1;
    font-size: 1.25rem;
    font-weight: 500;
    transition:
        color 0.18s ease,
        transform 0.18s ease;
}

.timesheet-action-card:hover .timesheet-action-card__arrow {
    color: var(--orange-dark);
    transform: translateX(3px);
}

.timesheet-access-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 22px 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
}

.timesheet-access-panel__icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: #047857;
    background: #d1fae5;
    border-radius: 13px;
}

.timesheet-access-panel__icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.timesheet-access-panel__content {
    min-width: 0;
}

.timesheet-access-panel__content > span,
.timesheet-access-panel__metric span {
    display: block;
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.timesheet-access-panel__content strong {
    display: block;
    margin: 4px 0;
    color: var(--charcoal-dark);
    font-size: 0.9rem;
}

.timesheet-access-panel__content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.55;
}

.timesheet-access-panel__metric {
    min-width: 145px;
    padding-left: 20px;
    text-align: right;
    border-left: 1px solid #dbe2ea;
}

.timesheet-access-panel__metric strong {
    display: block;
    margin-top: 3px;
    color: var(--charcoal-dark);
    font-size: 1.55rem;
    line-height: 1.1;
}

@media (max-width: 900px) {
    .timesheet-hero {
        grid-template-columns: 1fr;
    }

    .timesheet-hero__summary {
        min-width: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timesheet-action-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .timesheet-hero {
        gap: 22px;
        padding: 24px 20px;
        border-radius: 15px;
    }

    .timesheet-hero__summary {
        grid-template-columns: 1fr;
    }

    .timesheet-dashboard-section {
        padding: 20px 16px;
    }

    .timesheet-action-card {
        grid-template-columns: auto minmax(0, 1fr);
        min-height: 0;
        padding: 17px;
    }

    .timesheet-action-card__arrow {
        display: none;
    }

    .timesheet-access-panel {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 19px;
    }

    .timesheet-access-panel__metric {
        grid-column: 1 / -1;
        min-width: 0;
        padding: 15px 0 0;
        text-align: left;
        border-top: 1px solid #dbe2ea;
        border-left: 0;
    }
}

/* Timesheet secondary pages */

.timesheet-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 24px;
    padding: 26px 28px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 7px 22px rgba(15, 23, 42, 0.05);
}

.timesheet-page-header__identity {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.timesheet-page-header__icon {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: var(--orange-dark);
    background: var(--orange-soft);
    border-radius: 15px;
}

.timesheet-page-header__icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.timesheet-page-header h2 {
    margin: 5px 0;
    color: var(--charcoal-dark);
    font-size: 1.45rem;
}

.timesheet-page-header p {
    max-width: 760px;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.65;
}

.timesheet-page-header__role {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 31px;
    padding: 6px 11px;
    color: #7c3705;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
}

.timesheet-page-header__role > span {
    width: 7px;
    height: 7px;
    background: var(--orange);
    border-radius: 50%;
}

.timesheet-feature-panel {
    display: flex;
    align-items: flex-start;
    gap: 19px;
    min-height: 190px;
    padding: 30px;
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f8fafc 100%
        );
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.timesheet-feature-panel__icon {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    color: #047857;
    background: #d1fae5;
    border-radius: 14px;
}

.timesheet-feature-panel__icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.timesheet-feature-panel__content {
    max-width: 720px;
}

.timesheet-feature-panel__status {
    display: inline-flex;
    margin-bottom: 10px;
    color: #047857;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.timesheet-feature-panel h3 {
    margin: 0 0 8px;
    color: var(--charcoal-dark);
    font-size: 1.05rem;
    line-height: 1.4;
}

.timesheet-feature-panel p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.7;
}

.timesheet-employee-section {
    padding: 26px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 7px 22px rgba(15, 23, 42, 0.05);
}

.timesheet-workspace-switcher {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 18px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.04);
}

.timesheet-workspace-switcher__identity {
    min-width: 0;
}

.timesheet-workspace-switcher__identity strong {
    display: block;
    margin-top: 3px;
    color: var(--charcoal-dark);
    font-size: 0.76rem;
}

.timesheet-workspace-switcher__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    min-width: min(100%, 410px);
    padding: 4px;
    background: #f1f5f9;
    border-radius: 11px;
}

.timesheet-workspace-switcher__link {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 42px;
    padding: 8px 11px;
    color: #64748b;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 8px;
}

.timesheet-workspace-switcher__link > span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: #64748b;
    background: #e2e8f0;
    border-radius: 7px;
    font-size: 0.58rem;
    font-weight: 850;
    text-transform: uppercase;
}

.timesheet-workspace-switcher__link strong {
    font-size: 0.71rem;
}

.timesheet-workspace-switcher__link:hover,
.timesheet-workspace-switcher__link:focus-visible {
    color: var(--orange-dark);
    background: #fff7ed;
}

.timesheet-workspace-switcher__link.is-active {
    color: var(--charcoal-dark);
    background: #ffffff;
    border-color: #fed7aa;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.07);
}

.timesheet-workspace-switcher__link.is-active > span {
    color: #9a3412;
    background: #ffedd5;
}

.timesheet-viewer-options {
    margin-bottom: 18px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dbe2ea;
    border-radius: 14px;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.04);
}

.timesheet-viewer-options__summary {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 18px;
    color: var(--charcoal-dark);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background-color 160ms ease;
}

.timesheet-viewer-options__summary::-webkit-details-marker {
    display: none;
}

.timesheet-viewer-options__summary::marker {
    content: "";
}

.timesheet-viewer-options__summary:hover {
    background: #f8fafc;
}

.timesheet-viewer-options__summary:focus-visible {
    outline: 3px solid rgba(239, 139, 36, 0.2);
    outline-offset: -3px;
}

.timesheet-viewer-options__summary strong {
    font-size: 0.78rem;
    font-weight: 850;
}

.timesheet-viewer-options__chevron {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #64748b;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 180ms ease;
}

.timesheet-viewer-options[open]
.timesheet-viewer-options__summary {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.timesheet-viewer-options[open]
.timesheet-viewer-options__chevron {
    transform: rotate(180deg);
}

.timesheet-viewer-options__body {
    padding: 18px;
}

.timesheet-viewer-options__body > :last-child {
    margin-bottom: 0;
}

.timesheet-viewer-options__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.timesheet-employee-selector {
    display: grid;
    grid-template-columns: minmax(220px, 0.7fr) minmax(420px, 1.3fr);
    gap: 28px;
    align-items: end;
    margin-bottom: 18px;
    padding: 20px 22px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 62%);
    border: 1px solid #fed7aa;
    border-radius: 15px;
}

.timesheet-employee-selector__intro h3 {
    margin: 4px 0 5px;
    color: var(--charcoal-dark);
    font-size: 0.95rem;
}

.timesheet-employee-selector__intro p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.55;
}

.timesheet-employee-selector__form label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 0.7rem;
    font-weight: 800;
}

.timesheet-employee-selector__controls {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) auto;
    gap: 9px;
    align-items: stretch;
}

.timesheet-employee-selector__actions {
    display: flex;
    gap: 7px;
}

.timesheet-employee-selector__actions button {
    min-height: 42px;
    white-space: nowrap;
}

.timesheet-employee-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e2e8f0;
}

.timesheet-employee-section__header > div {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.timesheet-employee-section__header span {
    color: #64748b;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.timesheet-employee-section__header strong {
    color: var(--charcoal-dark);
    font-size: 1.45rem;
}

.timesheet-employee-section__header p {
    max-width: 520px;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.55;
    text-align: right;
}

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

.timesheet-employee-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 17px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 13px;
}

.timesheet-employee-card__avatar {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--charcoal);
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 800;
}

.timesheet-employee-card__identity {
    min-width: 0;
}

.timesheet-employee-card__identity strong,
.timesheet-employee-card__identity span,
.timesheet-employee-card__identity small {
    display: block;
    overflow-wrap: anywhere;
}

.timesheet-employee-card__identity strong {
    color: var(--charcoal-dark);
    font-size: 0.84rem;
}

.timesheet-employee-card__identity span {
    margin-top: 2px;
    color: #64748b;
    font-size: 0.7rem;
}

.timesheet-employee-card__identity small {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 0.67rem;
}

.timesheet-employee-card__status {
    padding: 5px 8px;
    color: #047857;
    background: #d1fae5;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 800;
}

.timesheet-employee-card__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.timesheet-employee-card__actions .timesheet-secondary-action {
    white-space: nowrap;
}

.timesheet-entry-header__navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.timesheet-entry-header__navigation .timesheet-entry-header__back {
    margin-bottom: 0;
}

.timesheet-empty-state {
    max-width: 540px;
    margin: 0 auto;
    padding: 36px 20px;
    text-align: center;
}

.timesheet-empty-state__icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    color: var(--orange-dark);
    background: var(--orange-soft);
    border-radius: 50%;
}

.timesheet-empty-state__icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.timesheet-empty-state h3 {
    margin: 0 0 8px;
    color: var(--charcoal-dark);
}

.timesheet-empty-state p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.65;
}

@media (max-width: 850px) {
    .timesheet-workspace-switcher,
    .timesheet-page-header,
    .timesheet-employee-section__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .timesheet-workspace-switcher__links {
        width: 100%;
    }

    .timesheet-employee-selector {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .timesheet-employee-section__header p {
        text-align: left;
    }

    .timesheet-employee-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .timesheet-workspace-switcher__links,
    .timesheet-employee-selector__controls {
        grid-template-columns: 1fr;
    }

    .timesheet-employee-selector__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timesheet-employee-selector__actions button {
        justify-content: center;
    }

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

    .timesheet-entry-header__navigation .timesheet-secondary-action {
        justify-content: center;
        text-align: center;
    }

    .timesheet-viewer-options__links {
        display: grid;
        grid-template-columns: 1fr;
    }

    .timesheet-page-header {
        padding: 21px 18px;
    }

    .timesheet-page-header__identity {
        align-items: flex-start;
    }

    .timesheet-page-header__icon {
        width: 46px;
        height: 46px;
    }

    .timesheet-feature-panel,
    .timesheet-employee-section {
        padding: 20px 17px;
    }

    .timesheet-feature-panel {
        min-height: 0;
    }

    .timesheet-employee-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .timesheet-employee-card__actions {
        grid-column: 2;
        align-items: flex-start;
    }
}

/* Timesheet activity create form */

.timesheet-activity-toolbar,
.timesheet-entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 24px;
    padding: 25px 28px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 7px 22px rgba(15, 23, 42, 0.05);
}

.timesheet-activity-toolbar h3,
.timesheet-entry-header h2 {
    margin: 5px 0 7px;
    color: var(--charcoal-dark);
}

.timesheet-activity-toolbar p,
.timesheet-entry-header p {
    max-width: 720px;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.65;
}

.timesheet-entry-header__back {
    display: inline-flex;
    margin-bottom: 14px;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 750;
    text-decoration: none;
}

.timesheet-entry-header__back:hover {
    color: var(--orange-dark);
}

.timesheet-primary-action,
.timesheet-secondary-action,
.timesheet-danger-action {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 17px;
    border-radius: 10px;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.timesheet-primary-action {
    color: #ffffff;
    background: var(--orange);
    border: 1px solid var(--orange);
}

.timesheet-primary-action:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
}

.timesheet-primary-action > span {
    font-size: 1rem;
    line-height: 1;
}

.timesheet-secondary-action {
    color: #475569;
    background: #ffffff;
    border: 1px solid #cbd5e1;
}

.timesheet-secondary-action:hover {
    color: var(--charcoal-dark);
    background: #f8fafc;
}

.timesheet-danger-action {
    color: #b42318;
    background: #ffffff;
    border: 1px solid #b42318;
}

.timesheet-danger-action:hover,
.timesheet-danger-action:focus-visible {
    color: #ffffff;
    background: #b42318;
    border-color: #b42318;
}

.timesheet-danger-action--filled {
    color: #ffffff;
    background: #b42318;
    border-color: #b42318;
}

.timesheet-danger-action--filled:hover,
.timesheet-danger-action--filled:focus-visible {
    color: #ffffff;
    background: #8f1d14;
    border-color: #8f1d14;
}

.timesheet-text-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.76rem;
    font-weight: 750;
    text-decoration: none;
}

.timesheet-text-action:hover,
.timesheet-text-action:focus-visible {
    color: var(--orange-dark);
    text-decoration: underline;
}

.timesheet-entry-form {
    display: grid;
    gap: 18px;
}

.timesheet-form-alert {
    padding: 16px 18px;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    font-size: 0.76rem;
    line-height: 1.55;
}

.timesheet-form-alert strong {
    display: block;
    margin-bottom: 5px;
}

.timesheet-form-alert ul {
    margin: 0;
    padding-left: 18px;
}

.timesheet-form-section {
    padding: 26px 28px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 7px 22px rgba(15, 23, 42, 0.04);
}

.timesheet-form-section__header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 17px;
    border-bottom: 1px solid #e2e8f0;
}

.timesheet-form-section__number {
    flex: 0 0 auto;
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: var(--charcoal);
    border-radius: 9px;
    font-size: 0.7rem;
    font-weight: 800;
}

.timesheet-form-section__header h3 {
    margin: 1px 0 4px;
    color: var(--charcoal-dark);
    font-size: 0.94rem;
}

.timesheet-form-section__header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.55;
}

.timesheet-form-grid {
    display: grid;
    gap: 17px;
}

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

.timesheet-form-grid--three {
    grid-template-columns: 1fr 1.45fr 1.4fr;
}

.timesheet-field {
    min-width: 0;
}

.timesheet-field--full {
    grid-column: 1 / -1;
}

.timesheet-field label,
.timesheet-field__label {
    display: block;
    margin-bottom: 7px;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 800;
}

.timesheet-field label > span,
.timesheet-field__label > span {
    color: #dc2626;
}

.timesheet-form__control {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    color: var(--charcoal-dark);
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font: inherit;
    font-size: 0.76rem;
}

textarea.timesheet-form__control {
    min-height: 108px;
    resize: vertical;
    line-height: 1.55;
}

.timesheet-form__control:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.12);
}

.timesheet-form__radios {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timesheet-form__radios > div {
    flex: 1 1 130px;
}

.timesheet-form__radios label {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 9px 12px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    cursor: pointer;
}

.timesheet-form__radios input {
    accent-color: var(--orange);
}

.timesheet-field__help,
.timesheet-field__error {
    display: block;
    margin-top: 6px;
    font-size: 0.67rem;
    line-height: 1.45;
}

.timesheet-field__help {
    color: #64748b;
}

.timesheet-field__error {
    color: #b91c1c;
    font-weight: 700;
}

.timesheet-title-choice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.timesheet-title-choice--full {
    grid-column: 1 / -1;
}

.timesheet-title-choice__badge {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    color: #9a3412;
    background: #ffedd5;
    border-radius: 8px;
    font-size: 0.66rem;
    font-weight: 850;
}

.timesheet-time-panel {
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.timesheet-time-panel + .timesheet-time-panel {
    margin-top: 14px;
}

.timesheet-time-panel--required {
    background: #fff7ed;
    border-color: #fed7aa;
}

.timesheet-time-panel__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.timesheet-time-panel__heading strong {
    color: var(--charcoal-dark);
    font-size: 0.77rem;
}

.timesheet-time-panel__heading span {
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 700;
}

.timesheet-reminder-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 16px;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    background: #fffaf5;
    color: #25364a;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.timesheet-reminder-toggle__input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #ef8b24;
}

.timesheet-reminder-toggle__input:disabled + span {
    color: #8a96a6;
}

.timesheet-reminder-panel {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid #dbe5ef;
    border-radius: 12px;
    background: #f8fafc;
}

.timesheet-reminder-panel__note {
    margin: 14px 0 0;
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.55;
}

.timesheet-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px 0 4px;
}

@media (max-width: 900px) {
    .timesheet-form-grid--three {
        grid-template-columns: 1fr 1fr;
    }

    .timesheet-field--wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .timesheet-activity-toolbar,
    .timesheet-entry-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 21px 18px;
    }

    .timesheet-form-section {
        padding: 21px 17px;
    }

    .timesheet-form-grid--two,
    .timesheet-form-grid--three {
        grid-template-columns: 1fr;
    }

    .timesheet-field--wide,
    .timesheet-title-choice--full {
        grid-column: auto;
    }

    .timesheet-time-panel__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .timesheet-form-actions {
        flex-direction: column-reverse;
    }

    .timesheet-form-actions > * {
        width: 100%;
    }
}

/* Timesheet 24-hour time picker */

.timesheet-time-picker {
    position: relative;
}

.timesheet-time-picker__input {
    padding-right: 46px;
    font-variant-numeric: tabular-nums;
}

.timesheet-time-picker__toggle {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #64748b;
    background: #f8fafc;
    border: 0;
    border-left: 1px solid #cbd5e1;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
}

.timesheet-time-picker__toggle:hover,
.timesheet-time-picker.is-open
.timesheet-time-picker__toggle {
    color: var(--orange-dark);
    background: #fff7ed;
}

.timesheet-time-picker__toggle:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 1px;
}

.timesheet-time-picker__toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.timesheet-time-picker__menu {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    z-index: 50;
    width: min(286px, calc(100vw - 32px));
    padding: 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow:
        0 18px 40px rgba(15, 23, 42, 0.17);
}

.timesheet-time-picker__menu[hidden],
.timesheet-time-picker__hours[hidden],
.timesheet-time-picker__minutes[hidden] {
    display: none;
}

.timesheet-time-picker__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.timesheet-time-picker__preview {
    color: var(--charcoal-dark);
    font-size: 1.25rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.03em;
}

.timesheet-time-picker__steps {
    display: inline-flex;
    padding: 3px;
    background: #f1f5f9;
    border-radius: 8px;
}

.timesheet-time-picker__step {
    min-height: 29px;
    padding: 5px 9px;
    color: #64748b;
    background: transparent;
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-size: 0.66rem;
    font-weight: 800;
    cursor: pointer;
}

.timesheet-time-picker__step.is-active {
    color: #9a3412;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.timesheet-time-picker__hours {
    display: grid;
    grid-template-columns:
        repeat(6, minmax(0, 1fr));
    gap: 5px;
}

.timesheet-time-picker__minutes {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 7px;
    padding: 12px 0;
}

.timesheet-time-picker__choice {
    min-height: 32px;
    padding: 5px 3px;
    color: #334155;
    background: #f8fafc;
    border: 1px solid transparent;
    border-radius: 7px;
    font: inherit;
    font-size: 0.68rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
}

.timesheet-time-picker__choice--minute {
    min-height: 48px;
    font-size: 0.82rem;
}

.timesheet-time-picker__choice:hover,
.timesheet-time-picker__choice:focus-visible {
    color: #9a3412;
    background: #fff7ed;
    border-color: #fed7aa;
    outline: none;
}

.timesheet-time-picker__choice.is-selected {
    color: #ffffff;
    background: var(--orange);
    border-color: var(--orange);
}

.timesheet-time-picker__footer {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.timesheet-time-picker__utility {
    min-height: 31px;
    padding: 5px 9px;
    color: #64748b;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font: inherit;
    font-size: 0.66rem;
    font-weight: 800;
    cursor: pointer;
}

.timesheet-time-picker__utility:hover,
.timesheet-time-picker__utility:focus-visible {
    color: var(--orange-dark);
    background: #fff7ed;
    border-color: #fed7aa;
    outline: none;
}

.timesheet-time-picker.is-disabled
.timesheet-time-picker__toggle {
    color: #94a3b8;
    background: #f1f5f9;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .timesheet-time-picker__menu {
        right: auto;
        left: 0;
        width: min(276px, calc(100vw - 40px));
    }

    .timesheet-time-picker__hours {
        grid-template-columns:
            repeat(6, minmax(0, 1fr));
    }
}

/* Timesheet activities list */

.timesheet-filter-panel,
.timesheet-activity-list {
    margin-top: 24px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.timesheet-filter-panel__header,
.timesheet-activity-list__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.timesheet-filter-panel__header h3,
.timesheet-activity-list__header h3 {
    margin: 4px 0 0;
    color: var(--charcoal-dark);
}

.timesheet-filter-panel__reset {
    flex: 0 0 auto;
    color: var(--orange-dark);
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.timesheet-filter-panel__reset:hover {
    text-decoration: underline;
}

.timesheet-filter-form__alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 9px;
}

.timesheet-filter-form__alert p {
    margin: 0;
}

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

.timesheet-filter-field {
    min-width: 0;
}

.timesheet-filter-field--search {
    grid-column: span 2;
}

.timesheet-filter-field--project {
    grid-column: span 2;
}

.timesheet-filter-field label {
    display: block;
    margin-bottom: 7px;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 800;
}

.timesheet-filter__control {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    color: #1e293b;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
}

.timesheet-filter__control:focus {
    border-color: var(--orange);
    outline: 3px solid rgba(239, 139, 36, 0.14);
}

.timesheet-filter-field__error {
    display: block;
    margin-top: 6px;
    color: #b91c1c;
    font-size: 0.7rem;
    font-weight: 700;
}

.timesheet-filter-form__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.timesheet-result-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.timesheet-result-count {
    display: flex;
    align-items: baseline;
    gap: 6px;
    padding: 8px 12px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
}

.timesheet-result-count strong {
    color: var(--charcoal-dark);
    font-size: 1.05rem;
}

.timesheet-result-count span {
    font-size: 0.72rem;
    font-weight: 750;
}

.timesheet-entry-list {
    display: grid;
    gap: 12px;
}

.timesheet-entry-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.timesheet-entry-row:hover {
    border-color: #fdba74;
    box-shadow:
        0 8px 22px rgba(15, 23, 42, 0.07);
}

.timesheet-entry-row__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    padding: 16px 10px;
    color: #ffffff;
    background: var(--charcoal-dark);
    text-align: center;
}

.timesheet-entry-row__day {
    font-size: 1.8rem;
    font-weight: 850;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.timesheet-entry-row__month {
    margin-top: 7px;
    font-size: 0.65rem;
    font-weight: 750;
    text-transform: uppercase;
}

.timesheet-entry-row__content {
    min-width: 0;
    padding: 17px 19px;
}

.timesheet-entry-row__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.timesheet-entry-badge,
.timesheet-entry-status {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 850;
}

.timesheet-entry-badge--planned {
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.timesheet-entry-badge--realized {
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.timesheet-entry-status {
    color: #475569;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
}

.timesheet-entry-status--cancelled,
.timesheet-entry-status--canceled,
.timesheet-entry-status--system_cancelled {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}

.timesheet-entry-row h4 {
    margin: 0;
    color: var(--charcoal-dark);
    font-size: 1rem;
}

.timesheet-entry-row__description {
    margin: 8px 0 15px;
    color: #64748b;
    font-size: 0.82rem;
    line-height: 1.55;
}

.timesheet-entry-row__meta {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.timesheet-entry-row__meta div {
    min-width: 0;
    padding: 9px 10px;
    background: #f8fafc;
    border-radius: 8px;
}

.timesheet-entry-row__meta dt {
    margin-bottom: 4px;
    color: #94a3b8;
    font-size: 0.62rem;
    font-weight: 850;
    text-transform: uppercase;
}

.timesheet-entry-row__meta dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.timesheet-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.timesheet-pagination__summary {
    color: #64748b;
    font-size: 0.74rem;
}

.timesheet-pagination__summary strong {
    color: #334155;
}

.timesheet-pagination__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.timesheet-pagination__link {
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 7px;
    color: #475569;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    font-size: 0.72rem;
    font-weight: 800;
    text-decoration: none;
}

.timesheet-pagination__link:hover {
    color: var(--orange-dark);
    background: #fff7ed;
    border-color: #fdba74;
}

.timesheet-pagination__link.is-current {
    color: #ffffff;
    background: var(--orange);
    border-color: var(--orange);
}

.timesheet-pagination__link--direction {
    font-size: 1rem;
}

.timesheet-pagination__ellipsis {
    display: grid;
    place-items: center;
    min-width: 28px;
    height: 34px;
    color: #94a3b8;
}

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

    .timesheet-filter-field--search,
    .timesheet-filter-field--project {
        grid-column: span 2;
    }
}

@media (max-width: 760px) {
    .timesheet-filter-panel,
    .timesheet-activity-list {
        padding: 17px;
    }

    .timesheet-filter-panel__header,
    .timesheet-activity-list__header {
        align-items: center;
    }

    .timesheet-entry-row {
        grid-template-columns: 1fr;
    }

    .timesheet-entry-row__date {
        flex-direction: row;
        justify-content: flex-start;
        min-height: 0;
        gap: 7px;
        padding: 10px 15px;
        text-align: left;
    }

    .timesheet-entry-row__day {
        font-size: 1rem;
    }

    .timesheet-entry-row__month {
        margin-top: 0;
    }

    .timesheet-entry-row__meta {
        grid-template-columns: 1fr;
    }

    .timesheet-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .timesheet-pagination__links {
        justify-content: flex-start;
    }
}

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

    .timesheet-filter-field--search,
    .timesheet-filter-field--project {
        grid-column: auto;
    }

    .timesheet-filter-form__actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .timesheet-filter-form__actions a,
    .timesheet-filter-form__actions button {
        justify-content: center;
        width: 100%;
    }

    .timesheet-filter-panel__header {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Timesheet collapsible filters */

.timesheet-filter-panel {
    padding: 0;
    overflow: hidden;
}

.timesheet-filter-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 94px;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition:
        background-color 160ms ease,
        border-color 160ms ease;
}

.timesheet-filter-summary::-webkit-details-marker {
    display: none;
}

.timesheet-filter-summary::marker {
    content: "";
}

.timesheet-filter-summary:hover {
    background: #f8fafc;
}

.timesheet-filter-summary:focus-visible {
    outline: 3px solid rgba(239, 139, 36, 0.2);
    outline-offset: -3px;
}

.timesheet-filter-summary__content {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.timesheet-filter-summary__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--orange-dark);
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
}

.timesheet-filter-summary__icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.timesheet-filter-summary h3 {
    margin: 3px 0 0;
    color: var(--charcoal-dark);
    font-size: 0.96rem;
}

.timesheet-filter-summary p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 0.75rem;
}

.timesheet-filter-summary__action {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.timesheet-filter-summary__state {
    padding: 6px 9px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
}

.timesheet-filter-summary__chevron {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #64748b;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 180ms ease;
}

.timesheet-filter-panel[open]
.timesheet-filter-summary {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.timesheet-filter-panel[open]
.timesheet-filter-summary__chevron {
    transform: rotate(180deg);
}

.timesheet-filter-panel__body {
    padding: 20px 22px 22px;
}

.timesheet-filter-panel__tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.timesheet-filter-panel__tools p {
    margin: 0;
    color: #64748b;
    font-size: 0.75rem;
}

@media (max-width: 760px) {
    .timesheet-filter-summary {
        min-height: 82px;
        padding: 15px 17px;
    }

    .timesheet-filter-summary__state {
        display: none;
    }

    .timesheet-filter-panel__body {
        padding: 17px;
    }

    .timesheet-filter-panel__tools {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .timesheet-filter-summary__icon {
        width: 38px;
        height: 38px;
    }

    .timesheet-filter-summary p {
        display: none;
    }
}

/* Timesheet change request review */

.timesheet-review-filter,
.timesheet-review-list {
    margin-top: 24px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.timesheet-review-filter form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.timesheet-review-filter form > div {
    flex: 1 1 260px;
    max-width: 360px;
}

.timesheet-review-filter label,
.timesheet-review-decision-form label,
.timesheet-review-decision-form legend {
    display: block;
    margin-bottom: 7px;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 800;
}

.timesheet-review-list__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.timesheet-review-list__header h3 {
    margin: 4px 0 0;
    color: var(--charcoal-dark);
}

.timesheet-review-list__header p {
    max-width: 520px;
    margin: 0;
    color: #64748b;
    font-size: 0.76rem;
    line-height: 1.6;
}

.timesheet-review-items {
    display: grid;
    gap: 12px;
}

.timesheet-review-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.timesheet-review-card__main {
    min-width: 0;
}

.timesheet-review-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}

.timesheet-review-card h4 {
    margin: 0 0 14px;
    color: var(--charcoal-dark);
}

.timesheet-review-card__meta {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.timesheet-review-card__meta div {
    min-width: 0;
    padding: 9px 10px;
    background: #f8fafc;
    border-radius: 8px;
}

.timesheet-review-card__meta dt {
    margin-bottom: 4px;
    color: #94a3b8;
    font-size: 0.62rem;
    font-weight: 850;
    text-transform: uppercase;
}

.timesheet-review-card__meta dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #334155;
    font-size: 0.74rem;
    font-weight: 750;
}

.timesheet-change-status {
    display: inline-flex;
    padding: 6px 9px;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 850;
}

.timesheet-change-status--pending {
    color: #9a3412;
    background: #fff7ed;
    border-color: #fed7aa;
}

.timesheet-change-status--approved {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.timesheet-change-status--rejected {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fecaca;
}

.timesheet-change-status--expired {
    color: #475569;
    background: #f8fafc;
    border-color: #cbd5e1;
}

.timesheet-review-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 22px;
}

.timesheet-review-detail__main {
    display: grid;
    gap: 22px;
}

.timesheet-review-detail__aside {
    position: sticky;
    top: 24px;
}

.timesheet-review-comparison-wrap {
    overflow-x: auto;
}

.timesheet-review-comparison {
    width: 100%;
    border-collapse: collapse;
}

.timesheet-review-comparison th,
.timesheet-review-comparison td {
    padding: 13px 14px;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.76rem;
    line-height: 1.55;
    text-align: left;
    vertical-align: top;
}

.timesheet-review-comparison thead th {
    color: #64748b;
    background: #f8fafc;
    font-size: 0.66rem;
    text-transform: uppercase;
}

.timesheet-review-comparison tbody th {
    width: 25%;
    color: #334155;
}

.timesheet-review-comparison tbody th span {
    display: block;
    width: fit-content;
    margin-top: 6px;
    padding: 3px 6px;
    color: #9a3412;
    background: #ffedd5;
    border-radius: 999px;
    font-size: 0.58rem;
    text-transform: uppercase;
}

.timesheet-review-comparison__changed {
    background: #fffaf5;
}

.timesheet-review-decision-form fieldset {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}

.timesheet-review-decision-form fieldset ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timesheet-review-decision-form fieldset label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
}

.timesheet-review-decision-form textarea {
    width: 100%;
    min-height: 112px;
    padding: 10px 11px;
    resize: vertical;
    color: #1e293b;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
}

.timesheet-review-decision-form textarea:focus {
    border-color: var(--orange);
    outline: 3px solid rgba(239, 139, 36, 0.14);
}

.timesheet-review-decision-form__comment {
    margin-bottom: 18px;
}

.timesheet-review-decision-form__comment small {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 0.68rem;
}

.timesheet-review-notice {
    padding: 14px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
}

.timesheet-review-notice p {
    margin: 7px 0 0;
    font-size: 0.75rem;
    line-height: 1.55;
}

@media (max-width: 1050px) {
    .timesheet-review-card__meta {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .timesheet-review-detail {
        grid-template-columns: 1fr;
    }

    .timesheet-review-detail__aside {
        position: static;
    }
}

@media (max-width: 720px) {
    .timesheet-review-list__header,
    .timesheet-review-card,
    .timesheet-review-filter form {
        align-items: stretch;
        flex-direction: column;
    }

    .timesheet-review-filter form > div {
        max-width: none;
    }

    .timesheet-review-card > .timesheet-secondary-action {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 520px) {
    .timesheet-review-filter,
    .timesheet-review-list {
        padding: 17px;
    }

    .timesheet-review-card__meta {
        grid-template-columns: 1fr;
    }

    .timesheet-review-comparison th,
    .timesheet-review-comparison td {
        min-width: 160px;
    }
}

/* Timesheet activity detail */

.timesheet-entry-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: start;
    gap: 22px;
}

.timesheet-entry-detail__main,
.timesheet-entry-detail__sidebar {
    display: grid;
    gap: 20px;
}

.timesheet-entry-detail__sidebar {
    position: sticky;
    top: 24px;
}

.timesheet-entry-detail__card {
    padding: 24px 26px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 7px 22px rgba(15, 23, 42, 0.05);
}

.timesheet-entry-detail__card--cancelled {
    background: #fffafa;
    border-color: #fecaca;
}

.timesheet-entry-detail__section-header {
    margin-bottom: 20px;
}

.timesheet-entry-detail__section-header h3 {
    margin: 5px 0 0;
    color: var(--charcoal-dark);
    font-size: 1rem;
}

.timesheet-entry-detail__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.timesheet-entry-detail__grid > div,
.timesheet-entry-detail__stack > div {
    min-width: 0;
    padding: 14px 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
}

.timesheet-entry-detail__grid dt,
.timesheet-entry-detail__stack dt {
    margin-bottom: 6px;
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.timesheet-entry-detail__grid dd,
.timesheet-entry-detail__stack dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--charcoal-dark);
    font-size: 0.78rem;
    font-weight: 750;
    line-height: 1.55;
}

.timesheet-entry-detail__stack {
    display: grid;
    gap: 11px;
    margin: 0;
}

.timesheet-entry-detail__text + .timesheet-entry-detail__text {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.timesheet-entry-detail__text h4 {
    margin: 0 0 8px;
    color: var(--charcoal-dark);
    font-size: 0.77rem;
}

.timesheet-entry-detail__text p {
    margin: 0;
    color: #475569;
    font-size: 0.78rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.timesheet-entry-detail__text
.timesheet-entry-detail__empty {
    color: #94a3b8;
    font-style: italic;
}

.timesheet-attachment-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.timesheet-attachment {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.timesheet-attachment__summary {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.timesheet-attachment__summary strong {
    overflow-wrap: anywhere;
    color: var(--charcoal-dark);
    font-size: 0.79rem;
}

.timesheet-attachment__summary span {
    color: #64748b;
    font-size: 0.68rem;
    font-weight: 700;
}

.timesheet-attachment__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-start;
    gap: 8px;
}

.timesheet-attachment__actions .timesheet-secondary-action,
.timesheet-attachment__actions .timesheet-danger-action {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 0.68rem;
}

.timesheet-attachment__remove {
    position: relative;
}

.timesheet-attachment__remove summary {
    min-height: 36px;
    box-sizing: border-box;
    padding: 8px 12px;
    color: #b91c1c;
    background: #ffffff;
    border: 1px solid #fecaca;
    border-radius: 9px;
    cursor: pointer;
    font-size: 0.68rem;
    font-weight: 800;
    list-style: none;
}

.timesheet-attachment__remove summary::-webkit-details-marker {
    display: none;
}

.timesheet-attachment__remove form {
    display: grid;
    position: absolute;
    z-index: 5;
    top: calc(100% + 8px);
    right: 0;
    width: min(300px, 78vw);
    gap: 9px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #fecaca;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}

.timesheet-attachment__remove label,
.timesheet-attachment-upload label {
    color: var(--charcoal-dark);
    font-size: 0.72rem;
    font-weight: 800;
}

.timesheet-attachment__remove textarea,
.timesheet-attachment-upload input[type="file"] {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 11px;
    color: #334155;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font: inherit;
    font-size: 0.74rem;
}

.timesheet-attachment-upload {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}

.timesheet-attachment-upload__help,
.timesheet-attachment-readonly {
    margin: 0;
    color: #64748b;
    font-size: 0.7rem;
    line-height: 1.6;
}

.timesheet-attachment-upload .timesheet-primary-action {
    justify-self: start;
}

@media (max-width: 960px) {
    .timesheet-entry-detail {
        grid-template-columns: 1fr;
    }

    .timesheet-entry-detail__sidebar {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .timesheet-entry-detail__card {
        padding: 21px 17px;
    }

    .timesheet-entry-detail__grid,
    .timesheet-entry-detail__sidebar {
        grid-template-columns: 1fr;
    }

    .timesheet-attachment {
        display: grid;
    }

    .timesheet-attachment__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .timesheet-attachment__actions .timesheet-secondary-action,
    .timesheet-attachment__remove summary {
        justify-content: center;
        text-align: center;
    }

    .timesheet-attachment__remove form {
        right: auto;
        left: 0;
    }

    .timesheet-attachment-upload .timesheet-primary-action {
        box-sizing: border-box;
        justify-self: stretch;
        width: 100%;
    }
}

/* Timesheet entry row actions */

.timesheet-entry-row__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
}

.timesheet-entry-row__actions .timesheet-secondary-action {
    min-height: 36px;
    padding: 8px 14px;
    font-size: 0.7rem;
}

@media (max-width: 680px) {
    .timesheet-entry-row__actions {
        justify-content: stretch;
    }

    .timesheet-entry-row__actions .timesheet-secondary-action {
        width: 100%;
    }
}

.timesheet-entry-detail__action-buttons {
    display: grid;
    gap: 12px;
}

.timesheet-entry-detail__action-buttons .timesheet-primary-action,
.timesheet-entry-detail__action-buttons .timesheet-danger-action {
    box-sizing: border-box;
    justify-content: center;
    width: 100%;
}

.timesheet-form__actions--cancel {
    align-items: center;
    gap: 14px;
}

@media (max-width: 680px) {
    .timesheet-form__actions--cancel {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .timesheet-form__actions--cancel
    .timesheet-danger-action--filled {
        box-sizing: border-box;
        width: 100%;
    }

    .timesheet-form__actions--cancel
    .timesheet-text-action {
        width: 100%;
    }
}

/* Shared human date entry */

.date-entry {
    position: relative;
    display: block;
    width: 100%;
}

.date-entry > [data-day-month-year-date] {
    width: 100%;
    padding-right: 48px;
}

.date-entry__picker-button {
    position: absolute;
    top: 50%;
    right: 6px;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: var(--charcoal, #34383b);
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
    transition:
        color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease;
}

.date-entry__picker-button[hidden] {
    display: none;
}

.date-entry__picker-button:hover {
    color: var(--orange-dark, #d87312);
    background: var(--orange-soft, #fff1e2);
}

.date-entry__picker-button:focus-visible {
    outline: 2px solid var(--orange, #ef8b24);
    outline-offset: 1px;
    box-shadow: 0 0 0 3px rgb(239 139 36 / 18%);
}

.date-entry__picker-button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentcolor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.date-entry__native-picker {
    position: absolute;
    right: 8px;
    bottom: 4px;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}
