.wfp-dashboard {
    margin: 24px 0;
}

.wfp-dashboard h2 {
    margin-top: 0;
}

.wfp-dashboard-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(280px, 520px);
    align-items: start;
}

.wfp-dashboard-panel {
    background: #fff;
    border: 1px solid #eee;
    padding: 18px;
}

.wfp-dashboard-message {
    background: #fafafa;
    border: 1px solid #ddd;
    margin: 0 0 16px;
    padding: 12px;
}

.wfp-dashboard-message--error,
.workforce-planner-error {
    border-color: #d9b3b3;
}

.wfp-field {
    margin-bottom: 12px;
}

.wfp-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.wfp-field input,
.wfp-field select {
    box-sizing: border-box;
    max-width: 680px;
    padding: 10px;
    width: 100%;
}

.wfp-check {
    margin: 10px 0 0;
}

.wfp-actions {
    margin-top: 10px;
}

.wfp-submit {
    background: #fff;
    border: 1px solid #ddd;
    color: inherit;
    cursor: pointer;
    display: inline-block;
    padding: 10px 14px;
    text-decoration: none;
}

.wfp-submit:hover,
.wfp-submit:focus {
    border-color: #bbb;
}

.wfp-member-header {
    align-items: center;
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr auto;
}

.wfp-member-header__welcome {
    text-align: left;
}

.wfp-member-header__welcome h2 {
    margin: 0;
}

.wfp-member-header__logout {
    text-align: right;
}

.wfp-logout-form {
    margin: 0;
}

.wfp-member-separator {
    border: 0;
    border-top: 1px solid #e4e4e4;
    margin: 20px 0 22px;
}

.wfp-member-layout {
    align-items: start;
    display: grid;
    gap: 22px;
    grid-template-columns: 25% 1fr;
}

.wfp-member-menu {
    background: #fff;
    border: 1px solid #eee;
    display: grid;
    gap: 4px;
    padding: 10px;
}

.wfp-member-menu a {
    color: inherit;
    display: block;
    padding: 11px 12px;
    text-decoration: none;
}

.wfp-member-menu a:hover,
.wfp-member-menu a:focus,
.wfp-member-menu a.is-active {
    background: #f3f6f7;
    color: inherit;
    text-decoration: none;
}

.wfp-member-menu a.is-active {
    font-weight: 700;
}

.wfp-member-content {
    min-width: 0;
}

.wfp-view h3 {
    margin-top: 0;
}

.wfp-agenda-controls {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}

.wfp-agenda-controls select {
    padding: 10px;
}

.wfp-submit.is-disabled {
    opacity: .45;
    pointer-events: none;
}

.wfp-calendar-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
}

.wfp-calendar {
    overflow-x: auto;
}

.wfp-calendar-grid {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    min-width: 760px;
}

.wfp-calendar-weekdays {
    background: #e4e4e4;
    border: 1px solid #e4e4e4;
    border-bottom: 0;
}

.wfp-calendar-weekdays div {
    background: #f3f6f7;
    font-weight: 700;
    padding: 8px;
    text-align: center;
}

.wfp-calendar-day {
    background: #fff;
    border: 1px solid #e4e4e4;
    min-height: 138px;
    min-width: 0;
    padding: 8px;
}

.wfp-calendar-day.is-empty {
    background: #fafafa;
}

.wfp-calendar-day-number {
    display: block;
    margin-bottom: 8px;
}

.wfp-calendar-event {
    background: #f8fafc;
    border-left: 3px solid #2271b1;
    display: grid;
    gap: 3px;
    margin-top: 6px;
    padding: 7px;
}

.wfp-calendar-event-button {
    border-bottom: 0;
    border-right: 0;
    border-top: 0;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
    width: 100%;
}

.wfp-calendar-event-button:hover,
.wfp-calendar-event-button:focus {
    background: #eef6fc;
    outline: 2px solid #2271b1;
    outline-offset: 1px;
}

.wfp-calendar-event small,
.wfp-calendar-event span {
    color: #555;
    overflow-wrap: anywhere;
}

.wfp-summary-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 22px;
}

.wfp-summary-card {
    background: #fff;
    border: 1px solid #eee;
    padding: 16px;
}

.wfp-summary-card span {
    color: #555;
    display: block;
    font-size: 14px;
    margin-bottom: 8px;
}

.wfp-summary-card strong {
    display: block;
    font-size: 30px;
    line-height: 1;
}

.wfp-member-area--flexpool .wfp-summary-card--availability {
    display: none;
}

.wfp-event-filter-form {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 14px;
}

.wfp-event-filter-form label {
    align-items: center;
    display: inline-flex;
    gap: 7px;
}

.wfp-event-list {
    display: grid;
    gap: 10px;
}

.wfp-event-row {
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px;
}

.wfp-event-row strong,
.wfp-event-row span {
    display: block;
}

.wfp-event-title-row {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.wfp-briefing-button {
    align-items: center;
    background: #fff;
    border: 1px solid #d7dde2;
    border-radius: 999px;
    color: #2271b1;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 18px;
    height: 34px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 34px;
}

.wfp-briefing-button:hover,
.wfp-briefing-button:focus {
    background: #f3f6f7;
    border-color: #2271b1;
}

.wfp-event-row span {
    color: #666;
    font-size: 14px;
    margin-top: 4px;
}

.wfp-event-assignments {
    display: grid;
    gap: 4px;
    margin: 10px 0 0;
}

.wfp-event-assignments li {
    background: #f8fafc;
    border-left: 3px solid #2271b1;
    color: #1d2327;
    font-size: 14px;
    margin: 0;
    padding: 6px 8px;
}

.wfp-availability-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.wfp-availability-options label {
    align-items: center;
    display: inline-flex;
    gap: 6px;
    white-space: nowrap;
}

.wfp-availability-assigned {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.wfp-availability-assigned-badge {
    background: #e0f2fe;
    border-radius: 4px;
    color: #075985;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    justify-self: start;
    line-height: 1;
    padding: 6px 8px;
}

.wfp-availability-choice {
    border-radius: 4px;
    display: inline-flex;
    font-weight: 700;
    line-height: 1;
    padding: 8px 12px;
}

.wfp-availability-choice-available {
    background: #dcfce7;
    color: #166534;
}

.wfp-availability-choice-unavailable {
    background: #fee2e2;
    color: #991b1b;
}

.wfp-profile-list {
    background: #fff;
    border: 1px solid #eee;
    display: grid;
    gap: 0;
    grid-template-columns: max-content minmax(0, 1fr);
    margin: 0;
}

.wfp-profile-list dt,
.wfp-profile-list dd {
    border-bottom: 1px solid #eee;
    margin: 0;
    padding: 12px 14px;
}

.wfp-profile-list dt {
    font-weight: 700;
}

.wfp-profile-list dd {
    overflow-wrap: anywhere;
}

.wfp-profile-list dt:nth-last-child(2),
.wfp-profile-list dd:last-child {
    border-bottom: 0;
}

.wfp-profile-language-form {
    background: #fff;
    border: 1px solid #eee;
    margin-top: 14px;
    padding: 14px;
}

.wfp-profile-actions {
    margin: 14px 0 0;
}

.wfp-profile-details-panel {
    background: #fff;
    border: 1px solid #eee;
    margin-top: 14px;
    padding: 14px;
}

.wfp-profile-details-panel h4 {
    margin: 0 0 12px;
}

.wfp-profile-details-layout {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: 180px minmax(0, 1fr);
}

.wfp-profile-photo-form {
    margin: 0;
}

.wfp-profile-photo-upload {
    cursor: pointer;
    display: block;
    margin: 0;
    position: relative;
    width: 100%;
}

.wfp-profile-photo-upload img,
.wfp-profile-photo-placeholder {
    aspect-ratio: 2 / 3;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    box-sizing: border-box;
    display: flex;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.wfp-profile-photo-placeholder {
    align-items: center;
    color: #646970;
    font-weight: 700;
    justify-content: center;
    padding: 16px;
    text-align: center;
}

.wfp-profile-photo-hint {
    background: rgba(0, 0, 0, .68);
    bottom: 0;
    color: #fff;
    font-size: 13px;
    left: 0;
    padding: 8px;
    position: absolute;
    right: 0;
    text-align: center;
}

.wfp-profile-photo-input {
    height: 1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.wfp-profile-modal[hidden] {
    display: none;
}

.wfp-profile-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    position: fixed;
    z-index: 100000;
}

.wfp-profile-modal__backdrop {
    background: rgba(0, 0, 0, .55);
    inset: 0;
    position: absolute;
}

.wfp-profile-modal__dialog {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 20px;
    position: relative;
    width: min(760px, calc(100vw - 32px));
    z-index: 1;
}

.wfp-profile-modal__close {
    align-items: center;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    font-size: 24px;
    height: 36px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 14px;
    top: 14px;
    width: 36px;
}

.wfp-profile-modal h3 {
    margin: 0 46px 18px 0;
}

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

.wfp-profile-equipment-list {
    margin-bottom: 0;
}

.wfp-profile-equipment-row {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 2fr) minmax(130px, 1fr) minmax(130px, 1fr);
}

.wfp-profile-checkbox {
    align-items: center;
    display: flex;
    gap: 8px;
    margin: 0;
}

.wfp-profile-fieldset {
    border: 1px solid #eee;
    margin: 0 0 14px;
    padding: 14px;
}

.wfp-profile-fieldset legend {
    font-weight: 700;
    padding: 0 6px;
}

.wfp-button-secondary {
    background: #fff;
    border: 1px solid #dcdcde;
    color: #1d2327;
    cursor: pointer;
    display: inline-flex;
    padding: 10px 14px;
}

.wfp-copy-calendar {
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    color: inherit;
    cursor: pointer;
    display: inline-flex;
    gap: 8px;
    padding: 8px 10px;
    text-decoration: none;
}

.wfp-calendar-actions {
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
    padding: 14px;
}

.wfp-reset-calendar-form {
    margin: 0;
}

.wfp-copy-calendar:hover,
.wfp-copy-calendar:focus {
    border-color: #bbb;
}

.wfp-copy-calendar__icon {
    font-size: 18px;
    line-height: 1;
}

.wfp-copy-calendar__message {
    color: #555;
    display: inline-block;
}

.wfp-briefing-open {
    overflow: hidden;
}

.wfp-briefing-modal[hidden] {
    display: none;
}

.wfp-briefing-modal {
    inset: 0;
    position: fixed;
    z-index: 9999;
}

.wfp-briefing-modal__backdrop {
    background: rgba(18, 24, 31, .58);
    inset: 0;
    position: absolute;
}

.wfp-briefing-modal__dialog {
    background: #fff;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .25);
    box-sizing: border-box;
    left: 50%;
    max-height: min(86vh, 900px);
    max-width: 1180px;
    overflow: auto;
    padding: 24px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 64px);
}

.wfp-briefing-modal__close {
    align-items: center;
    background: #fff;
    border: 1px solid #d7dde2;
    cursor: pointer;
    display: inline-flex;
    font-size: 24px;
    height: 36px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 16px;
    top: 16px;
    width: 36px;
}

.wfp-briefing__header {
    background: #f3f6f7;
    border: 1px solid #dfe5e8;
    padding: 22px;
}

.wfp-briefing__label {
    color: #51616a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.wfp-briefing__header h2 {
    margin: 0 48px 18px 0;
}

.wfp-briefing__meta {
    display: grid;
    gap: 10px 22px;
    grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
    margin: 0;
}

.wfp-briefing__meta dt,
.wfp-briefing__meta dd {
    margin: 0;
}

.wfp-briefing__meta dt {
    font-weight: 700;
}

.wfp-briefing__divider {
    border: 0;
    border-top: 1px solid #dfe5e8;
    margin: 24px 0;
}

.wfp-briefing__section h3 {
    margin-top: 0;
}

.wfp-briefing-assignment-group + .wfp-briefing-assignment-group {
    margin-top: 22px;
}

.wfp-briefing-assignment-group h4 {
    margin: 0 0 10px;
}

.wfp-briefing-table {
    border-collapse: collapse;
    table-layout: fixed;
    width: 100%;
}

.wfp-briefing-table th,
.wfp-briefing-table td {
    border: 1px solid #dfe5e8;
    overflow-wrap: anywhere;
    padding: 9px;
    text-align: left;
    vertical-align: top;
}

.wfp-briefing-table th {
    background: #f8fafc;
}

.wfp-briefing__details > :last-child {
    margin-bottom: 0;
}

.wfp-briefing-actions {
    align-items: center;
    border-top: 1px solid #dfe5e8;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 16px;
}

.wfp-briefing-email-form {
    margin: 0;
}

.wfp-message-list {
    display: grid;
    gap: 8px;
}

.wfp-message-filter-form {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 14px;
}

.wfp-message-row {
    align-items: stretch;
    background: #fff;
    border: 1px solid #e5e7eb;
    display: grid;
    gap: 0;
    grid-template-columns: minmax(0, 1fr) auto;
}

.wfp-message-row.is-new {
    border-color: #93c5fd;
    box-shadow: inset 4px 0 0 #2563eb;
}

.wfp-message-row.is-filter-hidden {
    display: none !important;
}

.wfp-message-open {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: grid;
    gap: 10px;
    grid-template-columns: 86px minmax(0, 1fr) auto;
    padding: 13px 14px;
    text-align: left;
    width: 100%;
}

.wfp-message-open strong {
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wfp-message-open time,
.wfp-message-modal time {
    color: #667085;
    font-size: 13px;
}

.wfp-message-status {
    background: #f3f4f6;
    border-radius: 999px;
    color: #475569;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    justify-content: center;
    padding: 4px 8px;
}

.wfp-message-row.is-new .wfp-message-status {
    background: #dbeafe;
    color: #1d4ed8;
}

.wfp-message-delete-form {
    align-items: center;
    border-left: 1px solid #e5e7eb;
    display: flex;
    margin: 0;
}

.wfp-message-delete {
    background: transparent;
    border: 0;
    color: #b42318;
    cursor: pointer;
    font-weight: 700;
    padding: 0 14px;
}

.wfp-message-modal[hidden] {
    display: none;
}

.wfp-message-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 99999;
}

.wfp-message-modal__backdrop {
    background: rgba(15, 23, 42, .58);
    inset: 0;
    position: absolute;
}

.wfp-message-modal__dialog {
    background: #fff;
    box-shadow: 0 20px 70px rgba(15, 23, 42, .28);
    box-sizing: border-box;
    max-height: calc(100vh - 48px);
    max-width: 1040px;
    overflow: auto;
    padding: 24px;
    position: relative;
    width: min(1040px, calc(100vw - 32px));
    z-index: 1;
}

.wfp-message-modal__close {
    background: transparent;
    border: 0;
    color: #475569;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
    position: absolute;
    right: 14px;
    top: 12px;
}

.wfp-message-modal header {
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 18px;
    padding: 0 36px 14px 0;
}

.wfp-message-modal h3 {
    margin: 0 0 8px;
}

.wfp-message-content > :last-child {
    margin-bottom: 0;
}

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

    .wfp-member-layout {
        grid-template-columns: 1fr;
    }

    .wfp-member-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .wfp-member-header {
        grid-template-columns: 1fr;
    }

    .wfp-member-header__logout {
        text-align: left;
    }

    .wfp-summary-grid,
    .wfp-event-row,
    .wfp-profile-list,
    .wfp-profile-details-layout,
    .wfp-profile-equipment-row,
    .wfp-profile-grid,
    .wfp-briefing__meta {
        grid-template-columns: 1fr;
    }

    .wfp-briefing-modal__dialog {
        max-height: calc(100vh - 24px);
        padding: 18px;
        width: calc(100% - 18px);
    }

    .wfp-member-menu {
        grid-template-columns: 1fr;
    }

    .wfp-availability-options {
        justify-content: flex-start;
    }

    .wfp-profile-list dt {
        border-bottom: 0;
        padding-bottom: 4px;
    }

    .wfp-profile-list dd {
        padding-top: 0;
    }
}
