/* Route suggestions (#1226): the Calendar's Suggestions button beside Route Planner, the fold button of that bar,
   and the "Route suggestions" sheet (week by week, plus the accepted changes that can be undone) with the
   single-suggestion view. Black-and-white like the Route Planner dialog; every rule is scoped under .cp-rs-* or
   .cp-cal-actionbar-*. */

/* ---- Suggestions button (in .cp-cal-actionbar, Calendar.razor) ---- */
/* (The calendar's own Razor <style> sets the bar's grid: Route Planner | 54px round Suggestions | fold.) */

/* Round, with the Route Planner icon (the same as the folded bar's button). When weeks are ready,
   "+N w ready" runs along the inside of the bottom edge and the green badge shows the count. */
.cp-rs-open {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding: 0;
    border: 1px solid #dedede;
    border-radius: 999px;
    background: #fff;
    color: #111;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cp-rs-open.has-new {
    border-color: #20bd75;
}

.cp-rs-open-ring {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.cp-rs-open:hover:not(:disabled) {
    background: #f8f8f8;
    border-color: #c8c8c8;
    transform: translateY(-1px);
}

.cp-rs-open:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cp-rs-open-icon {
    stroke: #9ca3af;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cp-rs-open.has-new .cp-rs-open-icon {
    stroke: #111;
}

.cp-rs-open-edge {
    fill: #15803d;
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.cp-rs-open-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #20bd75;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
}

/* ---- Fold the bar away / bring it back ---- */

.cp-cal-actionbar-fold {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 54px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #9ca3af;
}

.cp-cal-actionbar-fold:hover {
    background: #f3f4f6;
    color: #111;
}

.cp-cal-actionbar-fold svg {
    width: 16px;
    height: 16px;
}

.cp-cal-actionbar-fold path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Folded: only a small round Route Planner button at the right edge, at the bar's height. */
.cp-cal-actionbar.is-collapsed {
    left: auto;
    right: 8px;
    width: auto;
    transform: none;
    grid-template-columns: auto;
    padding: 6px;
    border-radius: 999px;
}

.cp-cal-actionbar-unfold {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #000;
    color: #fff;
}

.cp-cal-actionbar-unfold:hover {
    background: #171717;
}

.cp-cal-actionbar-unfold .route-planner-icon {
    width: 24px;
    height: 24px;
}

.cp-cal-actionbar-unfold-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #20bd75;
    box-shadow: 0 0 0 2px #fff;
}

/* Phones: when the calendar opens (and when the bar is brought back), the bar unfolds from the right
   edge towards the left, starting at the size of the folded round button, so it is clear that it can be
   folded in again. */
@media (max-width: 639px) {
    .cp-cal-actionbar:not(.is-collapsed) {
        animation: cp-cal-actionbar-unfold 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.2s backwards;
    }
}

@keyframes cp-cal-actionbar-unfold {
    from {
        clip-path: inset(0 0 0 calc(100% - 60px) round 999px);
    }

    to {
        clip-path: inset(0 0 0 0 round 16px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cp-cal-actionbar:not(.is-collapsed) {
        animation: none;
    }
}

/* ---- The sheet ---- */

.cp-rs-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(17, 24, 39, 0.48);
    /* #1233: a scroll that reaches the end of the sheet (or starts on the dimmed area) stops here
       instead of scrolling the calendar behind it. */
    overscroll-behavior: contain;
}

/* #1233: while a suggestions sheet is open the calendar behind it stands still: the page and the
   calendar's own scroll areas (the time grid and the employee columns) don't scroll. */
html:has(.cp-rs-backdrop),
body:has(.cp-rs-backdrop),
body:has(.cp-rs-backdrop) #calendar-scheduler-host,
body:has(.cp-rs-backdrop) #calendar-scheduler-host .rz-view-content,
body:has(.cp-rs-backdrop) .cp-cal-datestrip {
    overflow: hidden !important;
    overscroll-behavior: none;
}

.cp-rs-sheet {
    overscroll-behavior: contain;
}

.cp-rs-sheet {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(560px, calc(100vw - var(--main-margin-left, 0px) - 32px));
    max-height: calc(100dvh - 32px);
    border-radius: 22px;
    background: #fff;
    color: #111;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    text-align: left;
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.22);
    transform: translateX(calc(var(--main-margin-left, 0px) / 2));
    overflow: hidden;
}

.cp-rs-sheet--small {
    width: min(440px, calc(100vw - var(--main-margin-left, 0px) - 32px));
}

.cp-rs-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 22px 20px 12px 24px;
}

.cp-rs-header-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.cp-rs-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.cp-rs-header p {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 13.5px;
    line-height: 1.4;
}

.cp-rs-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cp-rs-close {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    padding: 10px;
    border: 0;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111;
}

.cp-rs-close:hover:not(:disabled) {
    background: #e5e7eb;
}

.cp-rs-close svg {
    display: block;
    width: 100%;
    height: 100%;
}

.cp-rs-close path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

/* New / Accepted */
.cp-rs-tabs {
    display: flex;
    gap: 4px;
    margin: 0 24px 4px;
    padding: 4px;
    border-radius: 12px;
    background: #f3f4f6;
}

.cp-rs-tabs button {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #6b7280;
    font-weight: 600;
}

.cp-rs-tabs button.is-active {
    background: #fff;
    color: #111;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.cp-rs-tab-count {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #20bd75;
    color: #fff;
    font-size: 11px;
    line-height: 20px;
}

.cp-rs-tab-count.is-quiet {
    background: #e5e7eb;
    color: #374151;
}

.cp-rs-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 12px 24px 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.cp-rs-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 0;
    color: #6b7280;
}

.cp-rs-intro {
    margin: 0 0 12px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.45;
}

/* The headline: how much driving the suggestions save. */
.cp-rs-hero {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 14px;
    padding: 16px 18px;
    border-radius: 16px;
    background: #f6f6f8;
}

.cp-rs-hero.has-new {
    background: #111;
    color: #fff;
}

.cp-rs-hero-eyebrow {
    color: #9ca3af;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cp-rs-hero strong {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.cp-rs-hero > span:last-child {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.45;
}

.cp-rs-hero.has-new > span:last-child {
    color: #d1d5db;
}

/* ---- Weeks ---- */

.cp-rs-weeks {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cp-rs-week {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #fff;
}

.cp-rs-week.is-open {
    border-color: #111;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.cp-rs-week.is-quiet {
    border-style: dashed;
    background: #fafafa;
}

.cp-rs-week-head {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 56px;
    padding: 12px 14px 12px 16px;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: inherit;
    text-align: left;
}

button.cp-rs-week-head:hover {
    background: #f9fafb;
}

.cp-rs-week-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 8px;
    row-gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
}

.cp-rs-week-name {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
}

.cp-rs-week-dates {
    color: #6b7280;
    font-size: 13px;
    white-space: nowrap;
}

.cp-rs-week-meta {
    flex-basis: 100%;
    color: #6b7280;
    font-size: 12.5px;
}

.cp-rs-week-gain {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex: 0 0 auto;
    text-align: right;
}

.cp-rs-week-saving {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.01em;
    white-space: nowrap;
    color: #15803d;
}

.cp-rs-week-saving-label {
    margin-top: -4px;
    color: #6b7280;
    font-size: 11px;
}

/* Under 15 minutes: not important, so it doesn't stand out. */
.cp-rs-week.is-minor .cp-rs-week-saving,
.cp-rs-week-saving.is-none {
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
}

/* Importance: 5 dots, under 15 min none filled. */
.cp-rs-dots {
    display: inline-flex;
    gap: 3px;
}

.cp-rs-dots i {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #e5e7eb;
}

.cp-rs-dots i.is-on {
    background: #111;
}

.cp-rs-chevron {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.cp-rs-chevron path {
    fill: none;
    stroke: #6b7280;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cp-rs-week.is-open .cp-rs-chevron {
    transform: rotate(180deg);
}

.cp-rs-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.cp-rs-status svg {
    width: 14px;
    height: 14px;
}

.cp-rs-status path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* "Route planned": neutral, it does not claim there is nothing left to improve (PR #1227 review). */
.cp-rs-status.is-planned {
    background: #eef1f5;
    color: #1f2937;
}

.cp-rs-status.is-unplanned {
    background: #f3f4f6;
    color: #6b7280;
}

.cp-rs-week-body {
    padding: 0 16px 16px;
    border-top: 1px solid #f0f0f0;
}

.cp-rs-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 12px;
}

.cp-rs-chips button {
    min-height: 32px;
    padding: 4px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #374151;
    font-size: 12.5px;
    font-weight: 600;
}

.cp-rs-chips button.is-active {
    border-color: #111;
    background: #111;
    color: #fff;
}

.cp-rs-plan + .cp-rs-plan,
.cp-rs-plan + .cp-rs-changes {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.cp-rs-plan-summary {
    margin: 12px 0 4px;
    color: #374151;
    font-size: 13px;
    line-height: 1.45;
}

.cp-rs-plan-note {
    margin: 10px 0 0;
    color: #6b7280;
    font-size: 12px;
}

/* ---- One change ---- */

.cp-rs-changes {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cp-rs-change {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cp-rs-changes > .cp-rs-change:last-child {
    border-bottom: 0;
}

/* A change of a weekly plan that does not match the chosen filter: still listed, because accepting
   applies the whole plan (PR #1227 review), but faded so the matching ones stand out. */
.cp-rs-change.is-filtered-out {
    opacity: 0.45;
}

.cp-rs-change.is-focus {
    padding: 14px 16px;
    border: 0;
    border-radius: 14px;
    background: #f6f6f8;
}

.cp-rs-change-who {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cp-rs-change-who strong {
    overflow: hidden;
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cp-rs-change-who span {
    overflow: hidden;
    color: #6b7280;
    font-size: 12.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cp-rs-change-move {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 6px;
    margin-top: 4px;
    font-size: 13px;
}

.cp-rs-label {
    color: #9ca3af;
    font-size: 12px;
}

.cp-rs-date {
    font-weight: 600;
    white-space: nowrap;
}

.cp-rs-date.is-old {
    color: #6b7280;
    font-weight: 500;
}

.cp-rs-arrow {
    width: 14px;
    height: 14px;
}

.cp-rs-arrow path {
    fill: none;
    stroke: #111;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cp-rs-time {
    color: #6b7280;
    white-space: nowrap;
}

.cp-rs-tag {
    padding: 2px 8px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}

.cp-rs-tag.is-danger {
    background: #fee2e2;
    color: #b91c1c;
}

.cp-rs-change-reason {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
}

.cp-rs-show-all {
    display: block;
    width: 100%;
    min-height: 40px;
    margin-top: 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #111;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cp-rs-show-all:hover:not(:disabled) {
    background: #f3f4f6;
}

/* Accepted changes */
.cp-rs-accepted-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
    margin: 0;
    cursor: pointer;
}

.cp-rs-accepted-row input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #111;
}

.cp-rs-accepted-row .cp-rs-change-move {
    grid-column: 2;
}

.cp-rs-attention {
    margin-top: 18px;
}

.cp-rs-attention h3 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
}

/* Single suggestion: the saving and its importance. */
.cp-rs-single-gain {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 12px 0;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.cp-rs-single-gain > div {
    display: flex;
    flex-direction: column;
}

.cp-rs-single-gain strong {
    color: #15803d;
    font-size: 16px;
    font-weight: 800;
}

.cp-rs-single-gain.is-minor strong {
    color: #374151;
}

.cp-rs-single-gain span {
    color: #6b7280;
    font-size: 12.5px;
}

.cp-rs-single-list {
    max-height: 220px;
    margin-top: 6px;
    overflow-y: auto;
}

/* ---- Buttons ---- */

.cp-rs-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.cp-rs-actions.is-compact {
    margin-top: 8px;
}

.cp-rs-btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #111;
    font-weight: 600;
    transition: background-color 0.15s ease;
}

.cp-rs-btn:hover:not(:disabled) {
    background: #f3f4f6;
}

.cp-rs-btn.is-primary {
    border-color: #111;
    background: #111;
    color: #fff;
}

.cp-rs-btn.is-primary:hover:not(:disabled) {
    background: #343434;
}

.cp-rs-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cp-rs-actions.is-compact .cp-rs-btn {
    min-height: 38px;
}

.cp-rs-footer {
    display: flex;
    gap: 8px;
    padding: 12px 24px 18px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
}

.cp-rs-footer.is-stacked {
    flex-direction: column;
}

.cp-rs-footer.is-stacked .cp-rs-actions {
    margin-top: 0;
}

.cp-rs-footer .cp-rs-show-all {
    margin-top: 0;
}

/* ---- Phones: a bottom sheet ---- */

@media (max-width: 640px) {
    .cp-rs-sheet,
    .cp-rs-sheet--small {
        width: 100%;
        transform: none;
    }
}

@media (max-width: 540px) {
    .cp-rs-backdrop {
        align-items: flex-end;
        padding: 0;
    }

    .cp-rs-sheet,
    .cp-rs-sheet--small {
        max-height: calc(100dvh - 24px);
        border-radius: 22px 22px 0 0;
    }

    .cp-rs-header {
        padding: 18px 16px 10px 18px;
    }

    .cp-rs-header h2 {
        font-size: 21px;
    }

    .cp-rs-tabs {
        margin: 0 18px 4px;
    }

    .cp-rs-body {
        padding: 10px 18px 18px;
    }

    .cp-rs-footer {
        padding: 10px 18px calc(14px + env(safe-area-inset-bottom, 0px));
    }

    .cp-rs-week-head {
        gap: 8px;
        padding: 12px;
    }

    .cp-rs-week-body {
        padding: 0 12px 14px;
    }
}

/* ---- PR #1192: per-change decisions, history, clearer texts ---- */

/* "3 weeks ready" in full along the round button's edge. */
.cp-rs-open-edge {
    font-size: 7px;
    letter-spacing: 0;
}

/* Scrolling inside a sheet never scrolls the calendar behind it: the backdrop is a scroll container
   that always overflows by 1px and keeps the scroll to itself, and the page is locked while it is open. */
.cp-rs-backdrop {
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
}

.cp-rs-backdrop::-webkit-scrollbar {
    display: none;
}

.cp-rs-backdrop::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: calc(100% + 1px);
    pointer-events: none;
}

html:has(.cp-rs-backdrop),
body:has(.cp-rs-backdrop) {
    overflow: hidden;
}

.cp-rs-sheet {
    flex-shrink: 0;
}

/* The lock question opens over the sheet it was asked from. */
.cp-rs-backdrop--top {
    z-index: 1095;
}

/* Week head: the extra visits a week gets planned, the saving, and the importance caption. */
.cp-rs-week-extra {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-size: 12px;
    font-weight: 700;
}

.cp-rs-week-saved {
    flex-basis: 100%;
    margin-top: 2px;
    color: #15803d;
    font-size: 12.5px;
    font-weight: 700;
}

.cp-rs-dots-wrap {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.cp-rs-dots-label,
.cp-rs-single-gain .cp-rs-dots-label {
    color: #9ca3af;
    font-size: 10.5px;
    line-height: 1;
}

/* A change with a tick (and ✓ / ✕ in the sheet). */
.cp-rs-change.is-pickable {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.cp-rs-pick {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: #111;
    cursor: pointer;
}

.cp-rs-change-main {
    flex: 1 1 auto;
    min-width: 0;
}

.cp-rs-change.is-unticked .cp-rs-change-main {
    opacity: 0.5;
}

.cp-rs-decide {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
}

.cp-rs-decide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    color: #374151;
}

.cp-rs-decide-btn svg {
    width: 16px;
    height: 16px;
}

.cp-rs-decide-btn path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cp-rs-decide-btn.is-accept:hover:not(:disabled) {
    border-color: #15803d;
    background: #dcfce7;
    color: #15803d;
}

.cp-rs-decide-btn.is-reject:hover:not(:disabled) {
    border-color: #b91c1c;
    background: #fee2e2;
    color: #b91c1c;
}

.cp-rs-decide-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Single suggestion: the week's apply button first and full width; the clicked order highlighted. */
.cp-rs-btn-block {
    width: 100%;
    flex: 0 0 auto;
    min-height: 48px;
    margin-top: 4px;
}

.cp-rs-btn.is-accept {
    border-color: #15803d;
    color: #15803d;
}

.cp-rs-btn.is-accept:hover:not(:disabled) {
    background: #dcfce7;
}

.cp-rs-single-list-title {
    margin: 16px 0 4px;
    color: #374151;
    font-size: 12.5px;
    font-weight: 700;
}

.cp-rs-change.is-this-order {
    margin: 0 -10px;
    padding: 10px;
    border-left: 4px solid #111;
    border-radius: 10px;
    background: #f6f6f8;
}

.cp-rs-tag.is-this-order {
    display: inline-block;
    margin-bottom: 4px;
    background: #111;
    color: #fff;
}

/* "Needs your attention": each visit opens on its day in the calendar. */
.cp-rs-change.is-link {
    padding: 0;
}

.cp-rs-change-open {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 10px 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    text-align: left;
}

.cp-rs-change-open:hover:not(:disabled) {
    background: #f6f6f8;
}

.cp-rs-change-open .cp-rs-change-reason {
    display: block;
    color: #374151;
    font-size: 12.5px;
}

.cp-rs-change-find {
    margin-top: 6px;
    color: #111;
    font-size: 12.5px;
    font-weight: 600;
}

/* A planned week's history. */
.cp-rs-history-title {
    margin: 12px 0 6px;
    font-size: 13px;
    font-weight: 700;
}

.cp-rs-history {
    margin: 0 0 8px;
    padding: 0;
    list-style: none;
}

.cp-rs-history li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
}

.cp-rs-history li strong {
    margin-left: auto;
    color: #15803d;
}

.cp-rs-history-when {
    color: #6b7280;
    font-size: 12px;
}

.cp-rs-week.is-history .cp-rs-week-head {
    cursor: pointer;
}

@media (max-width: 400px) {
    .cp-rs-decide-btn {
        width: 32px;
        height: 32px;
    }

    .cp-rs-change.is-pickable {
        gap: 8px;
    }
}
