

.employee-availability-card,
.availability-exceptions-card,
.work-location-section,
.feedback-admin {
    --feature-soft: color-mix(in srgb, var(--kp-primary, #0b8588) 7%, #fff);
    --feature-line: color-mix(in srgb, var(--kp-primary, #0b8588) 18%, #d9e3e5);
}

.employee-availability-card .panel-head,
.availability-exceptions-card .panel-head {
    align-items: flex-start;
    gap: 1rem;
}

.work-pattern-history {
    display: grid;
    gap: .8rem;
    margin-top: 1rem;
}

.work-pattern-details,
.work-pattern-new-details {
    border: 1px solid var(--feature-line);
    border-radius: 16px;
    background: #fff;
    overflow: clip;
}

.work-pattern-details > summary,
.work-pattern-new-details > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1rem;
    font-weight: 750;
    color: var(--kp-text, #243236);
    background: linear-gradient(180deg, #fff, var(--feature-soft));
}

.work-pattern-details > summary::-webkit-details-marker,
.work-pattern-new-details > summary::-webkit-details-marker { display: none; }

.work-pattern-details > summary::after,
.work-pattern-new-details > summary::after {
    content: "⌄";
    color: var(--kp-primary, #0b8588);
    transition: transform .16s ease;
}

.work-pattern-details[open] > summary::after,
.work-pattern-new-details[open] > summary::after { transform: rotate(180deg); }

.work-pattern-details-body { padding: 1rem; }

.work-pattern-form { display: grid; gap: 1rem; }
.work-pattern-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}
.work-pattern-head > div { display: grid; gap: .18rem; }
.work-pattern-head small,
.work-pattern-meta small { color: #65757a; }
.work-pattern-period {
    white-space: nowrap;
    border: 1px solid var(--feature-line);
    background: var(--feature-soft);
    color: #356267;
    border-radius: 999px;
    padding: .28rem .58rem;
    font-size: .78rem;
    font-weight: 700;
}

.work-pattern-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}
.work-pattern-meta label,
.availability-exception-form label,
.work-location-grid label,
.feedback-admin-form label {
    display: grid;
    gap: .38rem;
    min-width: 0;
}
.work-pattern-meta label > span,
.availability-exception-form label > span,
.feedback-admin-form label > span {
    font-size: .79rem;
    font-weight: 750;
    color: #46585d;
}

.work-pattern-weeks { display: grid; gap: .9rem; }
.work-pattern-week {
    border: 1px solid #e0e8ea;
    border-radius: 14px;
    background: #fbfdfd;
    padding: .85rem;
}
.work-pattern-week > header {
    display: flex;
    align-items: baseline;
    gap: .65rem;
    margin-bottom: .7rem;
}
.work-pattern-week > header small { color: #6c7a7e; }
.work-pattern-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(110px, 1fr));
    gap: .55rem;
}
.work-pattern-day {
    display: grid;
    align-content: start;
    gap: .48rem;
    min-width: 0;
    padding: .7rem;
    border: 1px solid #e2e8ea;
    border-radius: 12px;
    background: #fff;
}
.work-pattern-day > strong {
    font-size: .82rem;
    line-height: 1.2;
}
.work-pattern-day select,
.work-pattern-day input,
.work-pattern-meta input,
.work-pattern-meta select,
.availability-exception-form input,
.availability-exception-form select,
.work-location-grid input,
.work-location-grid select,
.feedback-admin-form input,
.feedback-admin-form select,
.feedback-admin-form textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid #cfdadc;
    border-radius: 9px;
    background: #fff;
    color: var(--kp-text, #233236);
    min-height: 40px;
    padding: .48rem .58rem;
}
.work-pattern-hours { display: grid; gap: .28rem; }
.work-pattern-hours span { font-size: .7rem; color: #68787c; }
.work-pattern-day.is-unavailable { background: #f6f8f8; border-style: dashed; }
.work-pattern-day.is-unavailable .work-pattern-hours { opacity: .45; }

.work-pattern-actions,
.availability-exception-actions {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .7rem;
    padding-top: .2rem;
}

.availability-exception-form {
    display: grid;
    grid-template-columns: minmax(145px, .7fr) minmax(160px, .8fr) minmax(90px, .45fr) minmax(220px, 1.4fr) auto;
    gap: .7rem;
    align-items: end;
    margin-top: 1rem;
}
.availability-exception-form .btn-primary-kp { min-height: 40px; }
.availability-exception-list {
    display: grid;
    gap: .45rem;
    margin-top: 1rem;
}
.availability-exception-row {
    display: grid;
    grid-template-columns: minmax(105px, auto) minmax(90px, auto) minmax(60px, auto) 1fr auto;
    gap: .7rem;
    align-items: center;
    min-height: 46px;
    padding: .55rem .7rem;
    border: 1px solid #e2e9ea;
    border-radius: 11px;
    background: #fff;
}
.availability-exception-row small { color: #66777b; }

.work-location-section {
    border-top: 1px solid #e1e8ea;
    padding-top: 1.1rem;
    margin-top: 1rem;
}
.work-location-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: 1rem;
    margin-top: .9rem;
}
.work-location-or {
    display: grid;
    place-items: center;
    padding-bottom: .65rem;
    color: #718084;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.work-location-linked {
    margin-top: .8rem;
    padding: .7rem .8rem;
    border-radius: 11px;
    background: var(--feature-soft);
    border: 1px solid var(--feature-line);
}


.feedback-admin {
    margin-top: .9rem;
    border: 1px solid var(--feature-line);
    border-radius: 14px;
    background: #fbfdfd;
    overflow: hidden;
}
.feedback-admin > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .75rem .9rem;
}
.feedback-admin > summary::-webkit-details-marker { display: none; }
.feedback-admin > summary span { display: grid; gap: .12rem; }
.feedback-admin > summary strong { font-size: .86rem; }
.feedback-admin > summary small { color: #6b7a7e; font-size: .76rem; font-weight: 500; }
.feedback-admin > summary i { color: var(--kp-primary, #0b8588); font-style: normal; transition: transform .16s ease; }
.feedback-admin[open] > summary i { transform: rotate(180deg); }
.feedback-admin-body {
    border-top: 1px solid #e2e9ea;
    padding: .9rem;
    background: #fff;
}
.feedback-admin-form { display: grid; gap: .8rem; }
.feedback-admin-fields {
    display: grid;
    grid-template-columns: minmax(150px, .65fr) minmax(180px, 1fr);
    gap: .75rem;
}
.feedback-response-field textarea {
    min-height: 132px;
    resize: vertical;
    line-height: 1.45;
}
.feedback-response-field small { color: #69797d; line-height: 1.35; }
.feedback-admin-actions {
    display: flex;
    justify-content: flex-end;
    gap: .6rem;
}
.feedback-delete-form {
    display: flex;
    justify-content: flex-start;
    border-top: 1px solid #edf1f2;
    margin-top: .8rem;
    padding-top: .8rem;
}


.employee-planning-cell.availability-unavailable {
    background-image: repeating-linear-gradient(-45deg, rgba(73,91,96,.035), rgba(73,91,96,.035) 6px, rgba(255,255,255,.42) 6px, rgba(255,255,255,.42) 12px);
}
.employee-planning-cell.availability-school { background-color: #f5f8fa; }
.employee-planning-cell.availability-structuralleave { background-color: #f8f7f4; }
.employee-planning-cell.availability-free { background-color: #f7f9f9; }
.availability-cell-label {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    max-width: calc(100% - 14px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #839094;
    font-size: .71rem;
    font-weight: 800;
    letter-spacing: .015em;
    pointer-events: none;
}
.availability-exception-badge {
    position: absolute;
    left: 5px;
    bottom: 4px;
    z-index: 3;
    max-width: calc(100% - 10px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid #bfe1de;
    border-radius: 999px;
    background: #f1fbfa;
    color: #276c69;
    padding: .08rem .34rem;
    font-size: .61rem;
    font-weight: 750;
    pointer-events: none;
}
.employee-planning-cell .planning-block { position: relative; z-index: 2; }

.planning-block.shared-assignment {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--project-color, #64748b) 55%, #fff), 0 1px 2px rgba(28,48,54,.08);
}
.shared-assignment-badge {
    flex: 0 0 auto;
    align-self: center;
    border-radius: 999px;
    padding: .08rem .3rem;
    background: rgba(255,255,255,.84);
    color: #31575b;
    font-size: .62rem;
    line-height: 1.25;
    font-weight: 850;
    white-space: nowrap;
}

.planning-shared-dialog .dialog-card { max-width: 620px; }
.shared-choice-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    margin-top: .35rem;
}
.shared-choice-option {
    min-height: 92px;
    display: grid;
    align-content: center;
    gap: .3rem;
    text-align: left;
    border: 1px solid #d8e2e4;
    border-radius: 13px;
    background: #fff;
    color: var(--kp-text, #253539);
    padding: .85rem;
}
.shared-choice-option.primary {
    border-color: color-mix(in srgb, var(--kp-primary, #0b8588) 42%, #d8e2e4);
    background: var(--feature-soft);
}
.shared-choice-option:hover,
.shared-choice-option:focus-visible {
    border-color: var(--kp-primary, #0b8588);
    outline: none;
}
.shared-choice-option strong { font-size: .9rem; }
.shared-choice-option small { color: #647478; line-height: 1.35; }


html[data-text-size="large"] .work-pattern-day,
html[data-text-size="large"] .shared-choice-option { min-height: auto; }
html[data-text-size="large"] .planning-block .block-copy { min-width: 0; }

@media (max-width: 1180px) {
    .work-pattern-days { grid-template-columns: repeat(4, minmax(125px, 1fr)); }
    .availability-exception-form { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .availability-exception-form > :nth-last-child(1) { justify-self: start; }
}

@media (max-width: 760px) {
    .work-pattern-details-body { padding: .75rem; }
    .work-pattern-head { display: grid; }
    .work-pattern-period { justify-self: start; }
    .work-pattern-meta,
    .work-pattern-days,
    .availability-exception-form,
    .work-location-grid,
    .feedback-admin-fields,
    .shared-choice-actions { grid-template-columns: 1fr; }
    .work-pattern-week > header { display: grid; gap: .15rem; }
    .work-pattern-day {
        grid-template-columns: minmax(88px,.7fr) minmax(120px,1.1fr) minmax(75px,.55fr);
        align-items: center;
    }
    .work-pattern-day > strong { font-size: .86rem; }
    .work-pattern-hours { grid-template-columns: 1fr; }
    .work-location-or { padding: 0; }
    .availability-exception-row {
        grid-template-columns: 1fr auto;
        gap: .3rem .7rem;
    }
    .availability-exception-row > :nth-child(4) { grid-column: 1 / -1; }
    .feedback-admin-body { padding: .75rem; }
    .feedback-admin-actions,
    .feedback-delete-form { justify-content: stretch; }
    .feedback-admin-actions button,
    .feedback-delete-form button { width: 100%; }
    .shared-choice-option { min-height: 74px; }
}

@media (max-width: 480px) {
    .work-pattern-day { grid-template-columns: 1fr; }
    .work-pattern-actions { grid-template-columns: 1fr; }
    .work-pattern-actions > span { display: none; }
    .work-pattern-actions button { width: 100%; }
    .availability-cell-label { font-size: .66rem; }
    .shared-assignment-badge { font-size: .58rem; padding-inline: .22rem; }
}


@media (max-width: 760px) {
    .planning-shared-dialog.kp-dialog {
        width: calc(100% - 12px) !important;
        max-width: none !important;
        max-height: calc(100dvh - 12px) !important;
        margin: auto 6px 6px !important;
        overflow: hidden !important;
        border-radius: 22px 22px 16px 16px !important;
    }

    .planning-shared-dialog .dialog-card {
        display: flex;
        flex-direction: column;
        width: 100% !important;
        max-width: none !important;
        max-height: calc(100dvh - 12px) !important;
        padding: 14px 14px 0 !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        border-radius: 22px 22px 16px 16px !important;
    }

    .planning-shared-dialog .dialog-card > header {
        flex: 0 0 auto;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 8px;
    }

    .planning-shared-dialog .dialog-card > header .eyebrow {
        font-size: .7rem;
        line-height: 1.2;
        letter-spacing: .14em;
    }

    .planning-shared-dialog .dialog-card h3 {
        margin-top: 3px;
        font-size: clamp(1.28rem, 5.6vw, 1.55rem) !important;
        line-height: 1.12;
    }

    .planning-shared-dialog .dialog-close {
        flex: 0 0 auto;
        width: 38px;
        height: 38px;
        border-radius: 10px;
        font-size: 1.25rem;
    }

    .planning-shared-dialog .planning-confirm-message {
        flex: 0 0 auto;
        margin: 2px 0 0;
        font-size: .92rem;
        line-height: 1.42;
    }

    .planning-shared-dialog .planning-confirm-details {
        flex: 0 1 auto;
        max-height: 108px;
        margin: 9px 0 0;
        padding: 8px 10px 8px 26px;
        border-radius: 11px;
        font-size: .82rem;
        line-height: 1.38;
    }

    .planning-shared-dialog .planning-confirm-details li + li {
        margin-top: 3px;
    }

    .planning-shared-dialog .shared-choice-actions {
        flex: 0 0 auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 8px;
    }

    .planning-shared-dialog .shared-choice-option,
    html[data-text-size="large"] .planning-shared-dialog .shared-choice-option {
        min-height: 0;
        display: block;
        padding: 11px 12px;
        border-radius: 12px;
    }

    .planning-shared-dialog .shared-choice-option strong {
        display: block;
        font-size: .94rem;
        line-height: 1.25;
    }

    .planning-shared-dialog .shared-choice-option small {
        display: block;
        margin-top: 4px;
        font-size: .8rem;
        line-height: 1.35;
    }

    .planning-shared-dialog .dialog-card > footer {
        position: sticky;
        bottom: 0;
        z-index: 2;
        flex: 0 0 auto;
        display: block;
        margin: 10px -14px 0 !important;
        padding: 10px 14px max(10px, env(safe-area-inset-bottom)) !important;
        background: rgba(255,255,255,.98);
        border-top: 1px solid var(--kp-border);
        box-shadow: 0 -7px 20px rgba(20,45,49,.035);
    }

    .planning-shared-dialog .dialog-card > footer > span {
        display: none;
    }

    .planning-shared-dialog #planningSharedCancel {
        width: 100%;
        min-height: 42px;
        grid-column: auto;
        font-size: .9rem;
    }
}

@media (max-width: 760px) and (max-height: 700px) {
    .planning-shared-dialog .dialog-card {
        padding-top: 10px !important;
    }

    .planning-shared-dialog .dialog-card > header {
        margin-bottom: 5px;
    }

    .planning-shared-dialog .planning-confirm-message {
        font-size: .86rem;
        line-height: 1.34;
    }

    .planning-shared-dialog .planning-confirm-details {
        max-height: 76px;
        margin-top: 6px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .planning-shared-dialog .shared-choice-actions {
        gap: 6px;
        margin-top: 6px;
    }

    .planning-shared-dialog .shared-choice-option,
    html[data-text-size="large"] .planning-shared-dialog .shared-choice-option {
        padding: 8px 10px;
    }

    .planning-shared-dialog .shared-choice-option small {
        margin-top: 2px;
        font-size: .76rem;
        line-height: 1.28;
    }

    .planning-shared-dialog .dialog-card > footer {
        margin-top: 7px !important;
        padding-top: 7px !important;
    }
}




.employee-edit-page {
    width: 100%;
    max-width: 1640px;
    margin: 0 auto;
    display: grid;
    gap: 16px;
}
.employee-edit-page .employee-edit-head {
    margin-bottom: -2px;
    padding-inline: 2px;
}
.employee-edit-page .employee-profile-card {
    position: relative;
    overflow: hidden;
    padding: 0;
    border: 1px solid #dbe5e6;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfd 100%);
    box-shadow: 0 18px 48px rgba(20, 50, 54, .075);
}
.employee-edit-page .employee-profile-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--kp-primary, #0b8588), color-mix(in srgb, var(--kp-primary, #0b8588) 24%, #fff), transparent 82%);
}
.employee-profile-summary {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 20px 22px 17px;
    border-bottom: 1px solid #e7eeee;
    background: linear-gradient(135deg, color-mix(in srgb, var(--kp-primary, #0b8588) 5%, #fff), #fff 58%);
}
.employee-profile-avatar {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid color-mix(in srgb, var(--kp-primary, #0b8588) 18%, #d8e4e5);
    border-radius: 16px;
    background: color-mix(in srgb, var(--kp-primary, #0b8588) 10%, #fff);
    color: var(--kp-primary, #0b8588);
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: .02em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.employee-profile-summary-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}
.employee-profile-summary-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #25383d;
    font-size: 1rem;
    line-height: 1.25;
}
.employee-profile-summary-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #718085;
    font-size: .79rem;
}
.employee-profile-status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 9px;
    border: 1px solid #dbe5e6;
    border-radius: 999px;
    background: #f5f8f8;
    color: #607075;
    font-size: .72rem;
    font-weight: 850;
}
.employee-profile-status.active {
    border-color: #cce7da;
    background: #eef9f3;
    color: #2d7658;
}
.employee-profile-status.inactive {
    border-color: #ead4d5;
    background: #fff4f4;
    color: #9a4d54;
}
.employee-edit-page .employee-profile-grid {
    gap: 16px 18px;
    padding: 21px 22px 3px;
}
.employee-edit-page .employee-profile-card .form-section {
    margin: 18px 22px 0;
}
.employee-edit-page .employee-profile-card .form-actions {
    margin: 20px 0 0;
    padding: 14px 22px 18px;
    border-top: 1px solid #e7eeee;
    background: rgba(248,251,251,.72);
}
.employee-edit-page .employee-profile-card label {
    gap: 7px;
    color: #45585d;
    font-size: .78rem;
    font-weight: 800;
}
.employee-edit-page .employee-profile-card input,
.employee-edit-page .employee-profile-card select,
.employee-edit-page .employee-profile-card textarea {
    min-height: 45px;
    border-color: #cfdbdd;
    border-radius: 11px;
    background: #fff;
    padding: 9px 11px;
    font-size: .92rem;
    box-shadow: inset 0 1px 1px rgba(20,50,54,.018);
}
.employee-edit-page .employee-profile-card textarea {
    min-height: 100px;
}
.employee-edit-page .employee-profile-card .check-field {
    width: fit-content;
    min-width: 150px;
    margin-top: 1px;
    border-radius: 11px;
    background: #f7fafa;
}
.employee-edit-page .employee-profile-card .form-actions .btn-primary-kp {
    min-width: 126px;
}


.employee-edit-page .work-pattern-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    padding-top: 3px;
}
.employee-edit-page .work-pattern-actions > span {
    display: none;
}
.employee-edit-page .work-pattern-actions .btn-primary-kp,
.employee-edit-page .work-pattern-actions .subtle-btn {
    width: auto !important;
    min-width: 142px;
    max-width: 230px;
    min-height: 40px;
}
.employee-edit-page .work-pattern-week {
    border-radius: 15px;
    background: linear-gradient(180deg, #fbfdfd, #f8fbfb);
}
.employee-edit-page .work-pattern-day {
    border-color: #dde7e8;
    border-radius: 13px;
    box-shadow: 0 2px 8px rgba(20,50,54,.025);
}
.employee-edit-page .work-pattern-day select,
.employee-edit-page .work-pattern-day input,
.employee-edit-page .work-pattern-meta input,
.employee-edit-page .work-pattern-meta select {
    border-radius: 10px;
}


.planning-block.shared-assignment {
    position: relative;
    padding-right: 29px !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.34), 0 3px 9px color-mix(in srgb, var(--project-color, #64748b), transparent 78%);
}
.planning-block.shared-assignment .shared-assignment-badge {
    position: absolute !important;
    top: 4px !important;
    right: 4px !important;
    z-index: 8 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: auto;
    min-width: 23px;
    height: 18px;
    margin: 0 !important;
    padding: 0 4px !important;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    color: #176e72;
    line-height: 1;
    box-shadow: 0 2px 7px rgba(17,48,52,.16);
    pointer-events: none;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.planning-block.shared-assignment .shared-assignment-badge svg {
    display: block;
    width: 10px;
    height: 10px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.planning-block.shared-assignment .shared-assignment-badge b {
    display: block;
    margin: 0;
    font-size: .59rem;
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.planning-block.shared-assignment .block-copy {
    min-width: 0;
}

@media (max-width: 760px) {
    .employee-edit-page {
        gap: 11px;
    }
    .employee-edit-page .employee-edit-head {
        align-items: center;
        gap: 8px;
    }
    .employee-edit-page .employee-profile-card {
        border-radius: 16px;
        box-shadow: 0 10px 28px rgba(20,50,54,.065);
    }
    .employee-profile-summary {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 15px 14px 13px;
    }
    .employee-profile-avatar {
        width: 44px;
        height: 44px;
        border-radius: 13px;
        font-size: .9rem;
    }
    .employee-profile-summary-copy strong {
        font-size: .93rem;
    }
    .employee-profile-summary-copy span {
        font-size: .72rem;
    }
    .employee-profile-status {
        min-height: 25px;
        padding: 3px 7px;
        font-size: .66rem;
    }
    .employee-edit-page .employee-profile-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
        padding: 15px 14px 2px;
    }
    .employee-edit-page .employee-profile-card .form-section {
        margin-inline: 14px;
    }
    .employee-edit-page .employee-profile-card .form-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 12px 14px 14px;
    }
    .employee-edit-page .employee-profile-card .form-actions > * {
        width: 100%;
    }
    .employee-edit-page .employee-profile-card .check-field {
        width: 100%;
        min-width: 0;
    }
    .employee-edit-page .settings-card {
        border-radius: 16px;
    }
    .employee-edit-page .work-pattern-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .employee-edit-page .work-pattern-actions .btn-primary-kp,
    .employee-edit-page .work-pattern-actions .subtle-btn {
        width: 100% !important;
        min-width: 0;
        max-width: none;
    }
    .employee-edit-page .work-pattern-day {
        padding: 9px;
    }

    
    .planning-block.shared-assignment {
        padding-right: 26px !important;
    }
    .planning-block.shared-assignment .shared-assignment-badge {
        top: 3px !important;
        right: 3px !important;
        min-width: 22px;
        height: 17px;
        padding-inline: 3px !important;
    }
    .planning-block.shared-assignment .shared-assignment-badge svg {
        width: 9px;
        height: 9px;
    }
    .planning-block.shared-assignment .shared-assignment-badge b {
        font-size: .56rem;
    }
}

@media (max-width: 420px) {
    .employee-profile-summary {
        grid-template-columns: 42px minmax(0, 1fr);
    }
    .employee-profile-status {
        grid-column: 2;
        justify-self: start;
    }
}

.bulk-mobile-help{display:none}
.bulk-add-one{display:none}

@media (max-width: 900px) {
    .planning-v2 .people-drawer .unplan-drop-zone {
        display: none !important;
    }
}

@media (max-width: 700px) {
    .users-page-head {
        align-items: stretch !important;
        gap: 12px !important;
    }

    .users-page-head .kp-btn-primary {
        width: 100%;
        justify-content: center;
    }

    .users-management-card {
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .users-management-table,
    .users-management-table tbody,
    .users-management-table tr,
    .users-management-table td {
        display: block !important;
        width: 100% !important;
    }

    .users-management-table tr {
        margin: 0 0 12px !important;
        padding: 15px !important;
        border: 1px solid var(--kp-border) !important;
        border-radius: 16px !important;
        background: linear-gradient(180deg,#fff 0%,#fbfdfd 100%) !important;
        box-shadow: 0 9px 26px rgba(26,55,59,.055) !important;
    }

    .users-management-table td {
        padding: 8px 0 !important;
        border: 0 !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .users-management-table td + td {
        border-top: 1px solid #eef3f3 !important;
    }

    .users-management-table td::before {
        display: block !important;
        margin: 0 0 3px !important;
        color: #78878b !important;
        font-size: var(--kp-fs-9_5) !important;
        font-weight: 800 !important;
        line-height: 1.25 !important;
        letter-spacing: .015em;
    }

    .users-management-table .user-identity-cell {
        display: grid !important;
        grid-template-columns: 44px minmax(0,1fr) !important;
        gap: 11px !important;
        align-items: center !important;
        padding-top: 0 !important;
        padding-bottom: 12px !important;
    }

    .users-management-table .user-identity-cell::before {
        display: none !important;
    }

    .user-avatar-small {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        border-radius: 13px;
        background: color-mix(in srgb,var(--kp-primary),#fff 88%);
        color: var(--kp-primary);
        font-size: var(--kp-fs-11_5);
        font-weight: 900;
        letter-spacing: .02em;
    }

    .user-identity-copy {
        min-width: 0;
    }

    .user-identity-copy strong {
        display: block;
        color: #26383d;
        font-size: var(--kp-fs-15) !important;
        line-height: 1.2 !important;
        margin: 0 0 4px;
    }

    .user-email {
        display: flex !important;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0;
        color: #68787c !important;
        font-size: var(--kp-fs-10_5) !important;
        line-height: 1.35 !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
    }

    .user-email > span {
        max-width: 100%;
        overflow-wrap: break-word;
    }

    .user-field-value {
        display: block;
        color: #34464b;
        font-size: var(--kp-fs-12) !important;
        line-height: 1.35 !important;
    }

    .user-role-badge,
    .user-status-badge {
        display: inline-flex;
        align-items: center;
        min-height: 27px;
        width: fit-content;
        padding: 4px 9px;
        border-radius: 999px;
        font-size: var(--kp-fs-10) !important;
        font-weight: 850;
        line-height: 1;
    }

    .user-status-badge.enabled {
        color: #17684e;
        background: #eaf7f0;
        border: 1px solid #cfeadd;
    }

    .user-status-badge.disabled {
        color: #65757a;
        background: #f3f6f6;
        border: 1px solid #e1e8e8;
    }

    .users-management-table .user-card-actions {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        padding-top: 12px !important;
        margin-top: 2px !important;
    }

    .users-management-table .user-card-actions::before {
        display: none !important;
    }

    .users-management-table .user-card-actions form,
    .users-management-table .user-card-actions .kp-btn {
        width: 100% !important;
    }

    .users-management-table .user-card-actions .kp-btn {
        min-height: 40px;
        justify-content: center;
    }

    .bulk-mobile-help {
        display: block;
        margin: -5px 0 10px;
        padding: 10px 12px;
        border: 1px solid color-mix(in srgb,var(--kp-primary),#fff 78%);
        border-radius: 12px;
        background: color-mix(in srgb,var(--kp-primary),#fff 96%);
        color: #52666b;
        font-size: var(--kp-fs-10_5);
        line-height: 1.45;
    }

    .bulk-employees-card {
        padding: 0 !important;
        overflow: visible !important;
        border: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .bulk-employees-card .bulk-scroll {
        overflow: visible !important;
    }

    .bulk-employees-table,
    .bulk-employees-table tbody,
    .bulk-employees-table tr,
    .bulk-employees-table td {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .bulk-employees-table thead {
        display: none !important;
    }

    .bulk-employees-table tr {
        position: relative;
        margin: 0 0 12px;
        padding: 42px 13px 13px;
        border: 1px solid var(--kp-border);
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(20,50,54,.05);
    }

    .bulk-employees-table tr[hidden] {
        display: none !important;
    }

    .bulk-employees-table .row-number {
        position: absolute;
        top: 12px;
        left: 13px;
        display: inline-grid !important;
        place-items: center;
        width: 25px !important;
        height: 25px;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 8px;
        background: color-mix(in srgb,var(--kp-primary),#fff 90%);
        color: var(--kp-primary);
        font-size: var(--kp-fs-9_5) !important;
        font-weight: 900;
    }

    .bulk-employees-table td:not(.row-number) {
        padding: 6px 0 !important;
        border: 0 !important;
    }

    .bulk-employees-table td:not(.row-number)::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        color: #6f7f83;
        font-size: var(--kp-fs-9_5);
        font-weight: 800;
        line-height: 1.25;
    }

    .bulk-employees-table input,
    .bulk-employees-table select {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 44px !important;
        padding: 9px 10px !important;
        border-radius: 10px !important;
        font-size: 16px !important;
        background: #fff;
    }

    .bulk-employees-card .bulk-actions {
        position: sticky;
        bottom: max(8px, env(safe-area-inset-bottom));
        left: 0;
        z-index: 20;
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 10px;
        padding: 10px;
        border: 1px solid var(--kp-border);
        border-radius: 15px;
        background: rgba(255,255,255,.96);
        box-shadow: 0 12px 34px rgba(20,50,54,.13);
        backdrop-filter: blur(10px);
    }

    .bulk-employees-card .bulk-actions > * {
        width: 100%;
        min-height: 44px;
        margin: 0;
        justify-content: center;
    }

    .bulk-add-one { display: inline-flex !important; }
    .bulk-add-twenty { display: none !important; }
}

.users-management-table .user-security-status{grid-column:1/-1;white-space:normal;overflow-wrap:anywhere;max-width:100%}
.users-management-table .user-unlock-form{grid-column:1/-1}
.users-management-table .user-unlock-form .kp-btn{white-space:normal}
