


.user-menu-group > summary {
    font-size: var(--kp-fs-11) !important;
    font-weight: 750 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: #3d5054 !important;
}
.user-menu-group[open] > summary {
    background: color-mix(in srgb, var(--kp-primary), #fff 95%) !important;
}

.overview-week.underutilized {
    border-top-color: var(--ov-teal) !important;
}


.employee-centric-grid .employee-planning-cell {
    align-items: flex-start;
    align-content: flex-start;
    gap: 5px;
    padding-top: 7px;
    padding-bottom: 7px;
}
.employee-centric-grid .employee-planning-cell .planning-block {
    box-sizing: border-box;
    height: auto !important;
    min-height: max(var(--plan-block-height), 42px);
    padding: 5px 7px 6px !important;
    align-items: center;
    overflow: hidden;
}
.employee-centric-grid .employee-planning-cell .planning-block .block-copy {
    display: grid;
    align-content: center;
    gap: 1px;
    min-width: 0;
    line-height: 1.05;
}
.employee-centric-grid .employee-planning-cell .planning-block .block-copy strong,
.employee-centric-grid .employee-planning-cell .planning-block .block-copy small {
    line-height: 1.12 !important;
    margin: 0 !important;
}
.employee-centric-grid .employee-planning-cell .planning-block .block-copy strong {
    font-size: var(--kp-fs-10) !important;
}
.employee-centric-grid .employee-planning-cell .planning-block .block-copy small {
    font-size: var(--kp-fs-8_5) !important;
    opacity: .9;
}
.employee-centric-grid .employee-planning-cell .day-capacity-badge {
    top: 2px;
    right: 3px;
    z-index: 5;
    box-shadow: 0 1px 4px rgba(20, 50, 54, .08);
}
html[data-text-size="large"] .employee-centric-grid .employee-planning-cell .planning-block {
    min-height: 48px;
}
html[data-text-size="large"] .employee-centric-grid .employee-planning-cell {
    min-height: 82px;
}
html[data-text-size="small"] .employee-centric-grid .employee-planning-cell .planning-block {
    min-height: 38px;
}
.compact-mode .employee-centric-grid .employee-planning-cell .planning-block {
    min-height: 38px;
}
html[data-text-size="large"] .compact-mode .employee-centric-grid .employee-planning-cell .planning-block {
    min-height: 44px;
}


@media (min-width: 901px) {
    .planning-v2 .planning-workspace {
        height: clamp(560px, calc(100dvh - 235px), 820px);
        min-height: 560px;
        overflow: hidden;
    }
    .planning-v2 .people-drawer {
        display: flex !important;
        flex-direction: column;
        height: 100%;
        min-height: 0;
        overflow: hidden !important;
    }
    .planning-v2 .people-drawer .employee-token-list {
        flex: 1 1 0;
        min-height: 150px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
    }
    .planning-v2 .people-drawer .team-head {
        flex: 0 0 auto;
        margin-top: 0;
        background: #f8fbfb;
    }
    .planning-v2 .people-drawer .team-list {
        flex: 0 0 auto;
        min-height: 68px !important;
        max-height: 138px !important;
        margin-bottom: 2px;
        padding-bottom: 10px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        scrollbar-gutter: stable;
        background: #f8fbfb;
    }
    .planning-v2 .people-drawer .team-token:last-child {
        margin-bottom: 2px;
    }
    .planning-v2 .people-drawer .unplan-drop-zone {
        position: relative;
        z-index: 2;
        flex: 0 0 auto;
        min-height: 92px;
        margin: 8px 9px 10px !important;
        padding: 14px 10px 12px !important;
        background: #fff;
    }
    .planning-v2 .people-drawer .drawer-links {
        flex: 0 0 auto;
        margin-top: 0 !important;
    }
    .planning-v2 .board-shell,
    .planning-v2 .board-scroll {
        height: 100%;
        min-height: 0;
    }
    .planning-v2 .board-scroll {
        max-height: none !important;
    }
}


.team-page {
    max-width: 1500px;
    margin: 0 auto;
}
.team-page-head {
    margin-bottom: 16px;
}
.team-settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(340px, .7fr);
    align-items: start;
    gap: 14px;
}
.team-builder-card,
.team-existing-card {
    padding: 16px !important;
}
.team-builder-card {
    position: sticky;
    top: 92px;
}
.team-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf1f1;
}
.team-card-head.compact {
    margin-bottom: 10px;
}
.team-card-head h2 {
    margin: 3px 0 0;
    color: #26383c;
    font-size: var(--kp-fs-20);
    line-height: 1.15;
    letter-spacing: -.02em;
}
.team-card-head p {
    max-width: 700px;
    margin: 6px 0 0;
    color: #738185;
    font-size: var(--kp-fs-10_5);
    line-height: 1.5;
}
.team-builder-form,
.team-edit-form {
    display: grid;
    gap: 13px;
}
.team-basic-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 155px;
    gap: 10px;
    align-items: end;
}
.team-basic-fields label {
    margin: 0 !important;
}
.team-name-field > span,
.team-color-field > span:first-child,
.team-member-fieldset > legend {
    color: #536267;
    font-size: var(--kp-fs-10);
    font-weight: 800;
}
.team-color-control {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 4px 8px 4px 5px;
    border: 1px solid #cad6d8;
    border-radius: 9px;
    background: #fff;
}
.team-color-control input[type="color"] {
    width: 44px !important;
    min-width: 44px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 7px !important;
    overflow: hidden;
    cursor: pointer;
}
.team-color-control b {
    min-width: 0;
    overflow: hidden;
    color: #68777b;
    font-size: var(--kp-fs-9_5);
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.team-member-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.team-member-fieldset > legend {
    width: auto;
    margin: 0 0 7px;
    padding: 0;
}
.employee-check-list,
.employee-check-list.compact {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    max-height: 330px;
    padding: 7px !important;
    border: 1px solid #dfe7e8;
    border-radius: 11px;
    background: #f7fafa;
    overflow: auto;
    scrollbar-gutter: stable;
}
.employee-check-list.compact {
    max-height: 260px;
}
.employee-check-list > label {
    display: grid !important;
    grid-template-columns: 18px minmax(0, 1fr) !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 9px !important;
    min-width: 0;
    min-height: 48px;
    margin: 0 !important;
    padding: 7px 9px !important;
    border: 1px solid #e7eded !important;
    border-radius: 9px !important;
    background: #fff !important;
    cursor: pointer;
    transition: border-color .14s ease, background .14s ease, box-shadow .14s ease;
}
.employee-check-list > label:hover {
    border-color: color-mix(in srgb, var(--kp-primary), #fff 60%) !important;
    background: color-mix(in srgb, var(--kp-primary), #fff 97%) !important;
}
.employee-check-list > label:has(input:checked) {
    border-color: color-mix(in srgb, var(--kp-primary), #fff 45%) !important;
    background: color-mix(in srgb, var(--kp-primary), #fff 94%) !important;
    box-shadow: inset 3px 0 0 var(--kp-primary);
}
.employee-check-list input[type="checkbox"] {
    width: 17px !important;
    min-width: 17px !important;
    height: 17px !important;
    min-height: 17px !important;
    margin: 0 !important;
    accent-color: var(--kp-primary);
}
.employee-check-list > label > span {
    display: block !important;
    min-width: 0;
}
.employee-check-list > label strong,
.employee-check-list > label small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.employee-check-list > label strong {
    color: #33464a;
    font-size: var(--kp-fs-10_5);
    font-weight: 800;
    line-height: 1.25;
}
.employee-check-list > label small {
    margin-top: 2px;
    color: #839095;
    font-size: var(--kp-fs-8_5);
    font-weight: 550;
    line-height: 1.2;
}
.team-form-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 1px;
}
.team-form-actions .btn-primary-kp {
    min-width: 112px;
}
.team-admin-list-editable {
    display: grid;
    gap: 8px;
}
.team-admin-card {
    overflow: hidden;
    border: 1px solid #dfe7e8 !important;
    border-radius: 11px !important;
    background: #fff;
    box-shadow: 0 4px 14px rgba(20, 50, 54, .035);
}
.team-admin-card > summary {
    min-height: 60px;
    padding: 10px 11px !important;
}
.team-admin-card > summary > i {
    min-height: 36px;
}
.team-admin-body {
    padding: 0 11px 11px !important;
}
.team-edit-form {
    padding-top: 11px !important;
}
.team-admin-actions {
    margin-top: 10px !important;
    padding-top: 10px !important;
}
.team-readonly-members {
    margin: 11px 0 0;
    color: #657479;
    font-size: var(--kp-fs-10_5);
    line-height: 1.5;
}


body.app-authenticated {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body.app-authenticated > .app-header {
    flex: 0 0 auto;
}
body.app-authenticated > .app-main {
    flex: 1 0 auto;
    width: 100%;
}
.app-footer {
    flex: 0 0 auto;
    width: 100%;
    margin-top: 24px;
    padding: 0 24px 24px !important;
    color: #708084;
    text-align: left !important;
}
.app-footer-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    max-width: 1872px;
    min-height: 78px;
    margin: 0 auto;
    padding: 14px 18px;
    overflow: hidden;
    border: 1px solid #dfe8e8;
    border-radius: 16px;
    background:
        radial-gradient(circle at 92% -30%, color-mix(in srgb, var(--kp-primary), transparent 90%) 0, transparent 42%),
        linear-gradient(135deg, rgba(255,255,255,.98), color-mix(in srgb, var(--kp-bg), #fff 48%));
    box-shadow: 0 10px 30px rgba(20, 50, 54, .055);
}
.app-footer-inner::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, var(--kp-primary), color-mix(in srgb, var(--kp-primary), #fff 45%));
}
.app-footer-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.app-footer-brand img {
    width: 94px;
    height: 34px;
    object-fit: contain;
    object-position: left center;
}
.app-footer-brand span {
    min-width: 0;
    padding-left: 12px;
    border-left: 1px solid #dfe7e8;
}
.app-footer-brand strong,
.app-footer-brand small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.app-footer-brand strong {
    color: #31464a;
    font-size: var(--kp-fs-11);
    font-weight: 850;
    letter-spacing: -.01em;
}
.app-footer-brand small {
    margin-top: 2px;
    color: #879397;
    font-size: var(--kp-fs-8_5);
}
.app-footer-signature {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 13px;
    min-width: 0;
    color: #879397;
    font-size: var(--kp-fs-8_5);
    line-height: 1.35;
}
.app-footer-copyright {
    white-space: nowrap;
}
.app-footer-divider {
    width: 1px;
    height: 26px;
    flex: 0 0 auto;
    background: #dce5e6;
}
.app-footer-solvoforce {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid #dce6e6;
    border-radius: 10px;
    background: rgba(255,255,255,.78);
    color: #66777b;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.app-footer-solvoforce strong {
    color: var(--kp-primary);
    font-size: var(--kp-fs-9_5);
    font-weight: 900;
    letter-spacing: -.01em;
}
.app-footer-external {
    color: #8b989b;
    font-size: var(--kp-fs-9);
    transform: translateY(-1px);
}
.app-footer-solvoforce:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--kp-primary), #fff 62%);
    background: #fff;
    box-shadow: 0 7px 18px rgba(20, 50, 54, .08);
}


@media (max-width: 1100px) {
    .team-settings-layout {
        grid-template-columns: 1fr;
    }
    .team-builder-card {
        position: static;
    }
    .team-existing-card {
        order: 2;
    }
    .app-footer-inner {
        gap: 18px;
    }
    .app-footer-signature {
        gap: 10px;
    }
}

@media (max-width: 900px) {
    .user-menu-group > summary {
        font-size: var(--kp-fs-12) !important;
    }
    .team-page-head {
        margin-bottom: 12px;
    }
    .team-builder-card,
    .team-existing-card {
        padding: 13px !important;
    }
    .team-card-head h2 {
        font-size: var(--kp-fs-18);
    }
    .team-basic-fields {
        grid-template-columns: minmax(0, 1fr) 132px;
    }
    .employee-check-list,
    .employee-check-list.compact {
        grid-template-columns: 1fr !important;
        max-height: 390px;
    }
    .employee-check-list > label {
        min-height: 50px;
    }
    .team-form-actions .btn-primary-kp {
        width: 100%;
        min-height: 44px;
    }
    .app-footer {
        padding: 0 10px 14px !important;
    }
    .app-footer-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        min-height: 0;
        padding: 13px 14px;
    }
    .app-footer-brand {
        justify-content: flex-start;
    }
    .app-footer-signature {
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 8px 12px;
        padding-top: 10px;
        border-top: 1px solid #e6ecec;
    }
    .app-footer-divider {
        display: none;
    }
}

@media (max-width: 560px) {
    .team-basic-fields {
        grid-template-columns: 1fr;
    }
    .team-color-field {
        max-width: 180px;
    }
    .team-admin-actions {
        grid-template-columns: 1fr !important;
    }
    .app-footer-brand img {
        width: 78px;
    }
    .app-footer-brand span {
        padding-left: 9px;
    }
    .app-footer-signature {
        display: grid;
        justify-content: stretch;
    }
    .app-footer-copyright {
        white-space: normal;
    }
    .app-footer-solvoforce {
        justify-content: center;
        width: 100%;
    }
}


@media (max-width: 900px) {
    .app-footer {
        margin-top: 18px !important;
        padding: 0 10px 12px !important;
    }

    .app-footer-inner {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: 10px 16px !important;
        min-height: 0 !important;
        padding: 12px 14px !important;
        border-radius: 14px !important;
        background:
            linear-gradient(135deg, rgba(255,255,255,.99), color-mix(in srgb, var(--kp-bg), #fff 72%)) !important;
        box-shadow: 0 8px 24px rgba(20, 50, 54, .045) !important;
    }

    .app-footer-inner::before {
        width: 2px !important;
    }

    .app-footer-brand {
        display: grid !important;
        grid-template-columns: 64px minmax(0, 1fr) !important;
        align-items: center !important;
        gap: 10px !important;
        min-width: 0 !important;
    }

    .app-footer-brand img {
        width: 64px !important;
        height: 28px !important;
        object-fit: contain !important;
        object-position: left center !important;
    }

    .app-footer-brand span {
        min-width: 0 !important;
        padding-left: 10px !important;
        border-left: 1px solid #dde6e7 !important;
    }

    .app-footer-brand strong {
        font-size: var(--kp-fs-11) !important;
        line-height: 1.2 !important;
    }

    .app-footer-brand small {
        margin-top: 2px !important;
        font-size: var(--kp-fs-8_5) !important;
        line-height: 1.25 !important;
    }

    .app-footer-signature {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-end !important;
        justify-content: center !important;
        gap: 4px !important;
        min-width: 0 !important;
        padding: 0 !important;
        border-top: 0 !important;
        text-align: right !important;
    }

    .app-footer-copyright {
        font-size: var(--kp-fs-8_5) !important;
        line-height: 1.3 !important;
        white-space: normal !important;
    }

    .app-footer-divider {
        display: none !important;
    }

    .app-footer-solvoforce {
        display: inline-flex !important;
        width: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        font-size: var(--kp-fs-8_5) !important;
        line-height: 1.25 !important;
        white-space: nowrap !important;
    }

    .app-footer-solvoforce:hover {
        transform: none !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .app-footer-solvoforce strong {
        font-size: var(--kp-fs-9) !important;
    }

    .app-footer-external {
        font-size: var(--kp-fs-8_5) !important;
    }
}

@media (max-width: 620px) {
    .app-footer-inner {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 12px 13px !important;
    }

    .app-footer-brand {
        grid-template-columns: 58px minmax(0, 1fr) !important;
    }

    .app-footer-brand img {
        width: 58px !important;
        height: 26px !important;
    }

    .app-footer-signature {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: center !important;
        gap: 8px 12px !important;
        padding-top: 9px !important;
        border-top: 1px solid #e7eded !important;
        text-align: left !important;
    }

    .app-footer-copyright {
        min-width: 0 !important;
    }

    .app-footer-solvoforce {
        justify-self: end !important;
    }
}

@media (max-width: 430px) {
    .app-footer {
        padding-inline: 8px !important;
    }

    .app-footer-brand {
        grid-template-columns: 52px minmax(0, 1fr) !important;
        gap: 8px !important;
    }

    .app-footer-brand img {
        width: 52px !important;
        height: 24px !important;
    }

    .app-footer-brand span {
        padding-left: 8px !important;
    }

    .app-footer-signature {
        grid-template-columns: 1fr !important;
        gap: 5px !important;
    }

    .app-footer-solvoforce {
        justify-self: start !important;
    }
}




@media (max-width: 900px) {
    .app-header .user-menu > summary {
        position: relative !important;
        display: block !important;
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        padding: 0 !important;
        line-height: 0 !important;
    }
    .app-header .user-menu > summary .user-menu-icon {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        display: block !important;
        width: 20px !important;
        height: 20px !important;
        margin: 0 !important;
        transform: translate(-50%, -50%) !important;
        transform-origin: center !important;
    }
}


@media (min-width: 901px) {
    .planning-v2 .planning-workspace {
        height: clamp(700px, calc(100dvh - 120px), 900px) !important;
        min-height: 700px !important;
        max-height: none !important;
    }
    @supports not (height: 100dvh) {
        .planning-v2 .planning-workspace { height: clamp(700px, calc(100vh - 120px), 900px) !important; }
    }
    .planning-v2 .people-drawer .employee-token-list {
        min-height: 230px !important;
    }
    .planning-v2 .people-drawer .team-list {
        min-height: 62px !important;
        max-height: 92px !important;
    }
    .planning-v2 .people-drawer .unplan-drop-zone {
        min-height: 68px !important;
        margin-top: 5px !important;
        margin-bottom: 6px !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
}


.backup-scope-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: -2px 0 14px;
    padding: 11px 13px;
    border: 1px solid color-mix(in srgb, var(--kp-primary), #fff 74%);
    border-radius: 12px;
    background: color-mix(in srgb, var(--kp-primary), #fff 96%);
    color: #52656a;
    font-size: var(--kp-fs-9_5);
}
.backup-scope-note strong { color: var(--kp-primary); white-space: nowrap; }
.backup-metrics-expanded { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
.backup-bad { color: #a33a45 !important; }
.backup-config-grid .check-field {
    align-items: flex-start !important;
    gap: 9px !important;
    padding: 10px 12px;
    border: 1px solid #e5ebec;
    border-radius: 10px;
    background: #fbfcfc;
}
.backup-config-grid .check-field > span { display: grid; gap: 3px; min-width: 0; }
.backup-config-grid .check-field strong { color: #34484c; font-size: var(--kp-fs-10); }
.backup-config-grid .check-field small { color: #7b898d; font-size: var(--kp-fs-8_5); font-weight: 500; line-height: 1.45; }
.backup-form-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    color: #617176;
    font-size: var(--kp-fs-9);
    font-weight: 850;
    letter-spacing: .02em;
}
.backup-form-divider::before,
.backup-form-divider::after { content: ""; flex: 1; height: 1px; background: #e8eded; }
.backup-restore-explanation {
    display: grid;
    gap: 3px;
    padding: 11px 12px;
    border: 1px solid #cfe7df;
    border-radius: 11px;
    background: #f2faf7;
}
.backup-restore-explanation strong { color: #286f59; font-size: var(--kp-fs-10); }
.backup-restore-explanation span { color: #5e7470; font-size: var(--kp-fs-9); line-height: 1.5; }
.backup-tool-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.backup-tool-actions .backup-test-form { margin: 0; padding: 10px; border: 1px solid #e4ebeb; border-radius: 10px; background: #fafcfc; }
.restore-center-card { margin-bottom: 16px; }
.restore-center-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.restore-option-card {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid #dfe8e8;
    border-radius: 13px;
    background: #fff;
}
.restore-option-card.safe { border-color: #cfe6de; background: linear-gradient(145deg,#fff,#f5fbf9); }
.restore-option-card.upload { background: linear-gradient(145deg,#fff,#f8fbfc); }
.restore-option-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: color-mix(in srgb, var(--kp-primary), #fff 90%);
    color: var(--kp-primary);
    font-size: var(--kp-fs-17);
    font-weight: 900;
}
.restore-option-copy h3 { margin: 1px 0 4px; color: #2e4145; font-size: var(--kp-fs-13); }
.restore-option-copy p { margin: 0; color: #758489; font-size: var(--kp-fs-9); line-height: 1.48; }
.restore-action-form { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; align-items: end; }
.restore-action-form label { margin: 0 !important; }
.restore-action-form button { min-height: 40px; white-space: nowrap; }
.file-picker-label input[type="file"] { padding: 7px 9px !important; background: #fff; }
.production-restore-danger {
    margin-top: 13px;
    border: 1px solid #efcfd3;
    border-radius: 13px;
    background: #fffafa;
    overflow: hidden;
}
.production-restore-danger > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 14px;
    cursor: pointer;
    list-style: none;
}
.production-restore-danger > summary::-webkit-details-marker { display:none; }
.production-restore-danger > summary span { display:grid; gap:2px; }
.production-restore-danger > summary strong { color:#79333b; font-size:var(--kp-fs-11); }
.production-restore-danger > summary small { color:#8a666b; font-size:var(--kp-fs-8_5); }
.production-restore-danger > summary b { padding:4px 8px; border-radius:999px; background:#fbe7e9; color:#a13d48; font-size:var(--kp-fs-8); }
.production-restore-body { padding: 0 14px 14px; border-top: 1px solid #f3dfe1; }
.danger-callout { display:grid; gap:3px; margin:12px 0; padding:10px 11px; border-radius:9px; background:#fff1f2; }
.danger-callout strong { color:#913944; font-size:var(--kp-fs-9_5); }
.danger-callout span { color:#805d62; font-size:var(--kp-fs-8_5); line-height:1.5; }
.production-restore-form { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(220px,.7fr) auto; gap:9px; align-items:end; }
.production-restore-form label { margin:0 !important; }
.danger-btn {
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #b13f4a;
    border-radius: 9px;
    background: #a83c47;
    color: #fff;
    font-weight: 850;
    cursor: pointer;
}
.danger-btn:disabled { opacity:.42; cursor:not-allowed; }
.table-action-link { border:0; background:transparent; padding:3px 0; color:var(--kp-primary); font-size:var(--kp-fs-8_5); font-weight:800; cursor:pointer; }
.restore-validation-cell { max-width: 420px; white-space: normal !important; color:#66787c; font-size:var(--kp-fs-8_5) !important; line-height:1.4; }
.inline-form { margin:0; }

@media (max-width: 1200px) {
    .backup-metrics-expanded { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .production-restore-form { grid-template-columns: 1fr 1fr; }
    .production-restore-form .danger-btn { grid-column: 1 / -1; justify-self: end; }
}
@media (max-width: 900px) {
    .backup-scope-note { align-items:flex-start; flex-direction:column; gap:3px; }
    .backup-metrics-expanded { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .backup-tool-actions,
    .restore-center-grid { grid-template-columns: 1fr; }
    .restore-action-form { grid-template-columns: 1fr; }
    .restore-action-form button { width:100%; }
    .production-restore-danger > summary { align-items:flex-start; }
    .production-restore-form { grid-template-columns: 1fr; }
    .production-restore-form .danger-btn { grid-column:auto; width:100%; justify-self:stretch; }
}
@media (max-width: 520px) {
    .backup-metrics-expanded { grid-template-columns: 1fr 1fr !important; }
    .backup-metrics-expanded .metric-card { padding: 10px !important; }
    .restore-option-card { grid-template-columns: 34px minmax(0,1fr); padding: 12px; }
    .restore-option-icon { width:32px; height:32px; border-radius:9px; }
    .production-restore-danger > summary { flex-direction:column; }
}


.work-location-page .work-location-filter { justify-content:flex-end; }
.work-location-count { display:inline-grid; place-items:center; min-width:32px; height:28px; padding:0 9px; border-radius:999px; background:#edf5f4; color:var(--kp-primary); font-weight:850; }
.work-location-note { margin-top:12px; color:#718085; font-size:var(--kp-fs-9_5); line-height:1.5; }
.work-location-edit-page .linked-work-location-projects { margin-top:14px; }
.work-location-edit-page .check-field.descriptive { align-self:end; }
@media (max-width: 900px) {
    .work-location-page .work-location-filter { justify-content:flex-start; }
    .work-location-page .head-actions { width:100%; }
    .work-location-page .head-actions > * { flex:1 1 auto; }
}
