/* TOTA Permanent Award Requests – Phase 4 */

.permanent-request-box {
    margin-top: 14px;
    padding: 11px;
    border: 1px solid #d8bd72;
    border-radius: 12px;
    background: #fff9e9;
}

.permanent-request-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 7px;
}

.permanent-request-heading h4 {
    margin: 0;
    color: #082f53;
    font-size: .94rem;
    line-height: 1.25;
}

.permanent-request-heading > span {
    display: inline-flex;
    min-width: 25px;
    min-height: 25px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #0b5f9d;
    color: #fff;
    font-size: .78rem;
    font-weight: 900;
}

.permanent-request-current {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin: 0 0 9px;
    padding: 7px 9px;
    border-radius: 8px;
    background: #f2ead2;
    color: #40586c;
    font-size: .79rem;
    line-height: 1.35;
}

.permanent-request-current b {
    color: #082f53;
}

.permanent-request-levels {
    display: grid;
    gap: 5px;
}

.permanent-request-option {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 6px 8px;
    border: 1px solid #d9c995;
    border-radius: 8px;
    background: #fffef9;
    color: #153c5b;
    cursor: pointer;
}

.permanent-request-option:hover {
    border-color: #3c8ab6;
    background: #f3fbff;
}

.permanent-request-option input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #0b6d9c;
}

.permanent-request-level-name {
    min-width: 0;
    color: #103c5d;
    font-size: .86rem;
    font-weight: 900;
    line-height: 1.2;
}

.permanent-request-option small {
    color: #607689;
    font-size: .74rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.permanent-request-state {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 36px;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: .79rem;
    font-weight: 850;
}

.permanent-request-state span {
    color: #153c5b;
    font-size: .86rem;
    font-weight: 900;
}

.permanent-request-state b {
    text-align: right;
}

.permanent-request-state.requested,
.permanent-request-state.approved,
.permanent-request-state.exported,
.permanent-request-state.generated {
    background: #fff0c8;
    color: #6a4805;
}

.permanent-request-state.sent {
    background: #e2f6e8;
    color: #1d6534;
}

.award-request-bar {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 1000;
    transform: translateX(-50%);
    width: min(760px, calc(100% - 30px));
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #d6ad42;
    border-radius: 14px;
    background: #082f53;
    color: #fff;
    box-shadow: 0 14px 38px rgba(0, 29, 55, .32);
}

.award-request-bar.is-visible {
    display: flex;
}

.award-request-bar strong {
    color: #ffd56d;
}

.award-request-bar .btn {
    white-space: nowrap;
}

.award-request-modal[hidden] {
    display: none !important;
}

.award-request-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 18px;
}

.award-request-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 26, 46, .72);
}

.award-request-dialog {
    position: relative;
    width: min(820px, 100%);
    max-height: min(88vh, 900px);
    overflow: auto;
    border: 1px solid #d6ad42;
    border-radius: 18px;
    background: #fffdf8;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

.award-request-dialog-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
    padding: 18px 20px;
    background: #0b3e68;
    color: #fff;
}

.award-request-dialog-head h2 {
    margin: 0 0 4px;
    color: #fff;
}

.award-request-dialog-head p {
    margin: 0;
    color: #dcecf8;
}

.award-request-close {
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

.award-request-dialog-body {
    padding: 18px 20px 20px;
}

.award-request-account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.award-request-account-item {
    border: 1px solid #ded2a6;
    border-radius: 10px;
    padding: 10px;
    background: #fffaf0;
}

.award-request-account-item span {
    display: block;
    color: #64788a;
    font-size: .82rem;
}

.award-request-account-item b {
    display: block;
    color: #082f53;
    margin-top: 3px;
    overflow-wrap: anywhere;
}

.award-request-selected-section {
    margin: 14px 0 17px;
    border: 1px solid #dacb99;
    border-radius: 12px;
    overflow: hidden;
    background: #fffdf8;
}

.award-request-selected-section h3 {
    margin: 0;
    padding: 9px 12px;
    border-bottom: 1px solid #e4d8b2;
    background: #f7efd8;
    color: #082f53;
    font-size: .94rem;
}

.award-request-selection-list {
    display: grid;
    margin: 0;
}

.award-request-selection-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    background: #fffdf8;
}

.award-request-selection-row + .award-request-selection-row {
    border-top: 1px solid #eee4c6;
}

.award-request-selection-content {
    min-width: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.award-request-selection-content strong {
    min-width: 0;
    color: #082f53;
    line-height: 1.35;
}

.award-request-selection-content small {
    flex: 0 0 auto;
    color: #607689;
    font-weight: 750;
    white-space: nowrap;
}

.award-request-remove {
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid #bd5b5b !important;
    border-radius: 8px;
    background: #fff5f5 !important;
    color: #8a2020 !important;
    font: inherit;
    font-size: .84rem;
    font-weight: 900;
    text-shadow: none !important;
    box-shadow: none !important;
    cursor: pointer;
    white-space: nowrap;
}

.award-request-remove:hover,
.award-request-remove:focus-visible {
    border-color: #8f2020 !important;
    background: #a62d2d !important;
    color: #ffffff !important;
    outline: none;
}

.award-request-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 3px;
}

.award-request-back,
.award-request-submit {
    min-height: 42px;
    padding: 9px 16px;
    border-radius: 10px;
    font: inherit;
    font-weight: 900;
    text-shadow: none !important;
    cursor: pointer;
}

.award-request-back {
    border: 1px solid #0b5f9d !important;
    background: #ffffff !important;
    color: #083d68 !important;
}

.award-request-back:hover,
.award-request-back:focus-visible {
    border-color: #083d68 !important;
    background: #0b5f9d !important;
    color: #ffffff !important;
    outline: none;
}

.award-request-submit {
    border: 1px solid #ae7b0d !important;
    background: linear-gradient(180deg, #f5d779, #d39c26) !important;
    color: #082f53 !important;
    box-shadow: 0 3px 9px rgba(70, 49, 0, .13);
}

.award-request-submit:hover,
.award-request-submit:focus-visible {
    border-color: #815a07 !important;
    background: linear-gradient(180deg, #ffe59b, #d9a632) !important;
    color: #061f36 !important;
    outline: none;
    transform: translateY(-1px);
}

.award-request-language {
    margin-bottom: 14px;
}

.award-request-language label {
    display: block;
    margin-bottom: 5px;
    color: #082f53;
    font-weight: 900;
}

.award-request-language select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #aebfd0;
    border-radius: 9px;
    padding: 8px 11px;
    background: #fff;
}

.award-request-history {
    display: grid;
    gap: 12px;
}

.award-request-history-card {
    border: 1px solid #dac47b;
    border-radius: 14px;
    background: #fffdf8;
    padding: 15px;
}

.award-request-history-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.award-request-history-head span {
    display: block;
    color: #687b8b;
    font-size: .82rem;
}

.award-request-history-head strong {
    color: #082f53;
}

.award-request-status {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff0c8;
    color: #684807;
    font-weight: 900;
    font-size: .82rem;
}

.award-request-status.status-sent {
    background: #def4e4;
    color: #1c6533;
}

.award-request-status.status-cancelled {
    background: #f6dddd;
    color: #772525;
}

.award-request-history-meta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin: 10px 0;
    color: #405c72;
    font-size: .9rem;
}

.award-request-history-items {
    display: grid;
    gap: 6px;
}

.award-request-history-items > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #eee3c3;
    padding-top: 7px;
}

body.has-award-request-selection {
    padding-bottom: 92px;
}

@media (max-width: 680px) {
    .permanent-request-option {
        grid-template-columns: 18px minmax(0, 1fr);
    }

    .permanent-request-option small {
        grid-column: 2;
        white-space: normal;
    }

    .permanent-request-state {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .permanent-request-state b {
        text-align: left;
    }

    .award-request-account-grid {
        grid-template-columns: 1fr;
    }

    .award-request-selection-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .award-request-selection-content {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .award-request-selection-content small {
        white-space: normal;
    }

    .award-request-remove {
        justify-self: start;
    }

    .award-request-dialog-actions {
        flex-direction: column-reverse;
    }

    .award-request-back,
    .award-request-submit {
        width: 100%;
    }

    .award-request-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .award-request-bar .btn {
        width: 100%;
    }

    .award-request-history-items > div {
        flex-direction: column;
        gap: 2px;
    }
}
