/* GLP-1 resume request overlay — loaded without Mix so the consultation
   modal still centers if main.css was built without this stylesheet. */

#resumeRequestModal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
}

#resumeRequestModal .resume-request-modal-content {
    background-color: #fff;
    margin: 8vh auto;
    padding: 50px;
    border: 1px solid #888;
    width: 480px;
    max-width: calc(100% - 32px);
    position: relative;
    border-radius: 10px;
    box-sizing: border-box;
}

#resumeRequestModal .resume-request-modal-close {
    position: absolute;
    right: 10px;
    top: 5px;
    cursor: pointer;
    font-weight: bold;
    color: #1f577a;
    font-size: 26px;
}

#resumeRequestModal .resume-request-modal-title {
    margin-top: 0;
    margin-bottom: 15px;
}

#resumeRequestModal .resume-request-modal-question {
    margin-bottom: 15px;
}

#resumeRequestModal .resume-request-radio-group {
    margin-bottom: 15px;
}

#resumeRequestModal .resume-request-radio-group label {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
}

#resumeRequestModal .resume-request-radio-group input[type="radio"] {
    margin-right: 8px;
    margin-top: 4px;
}

#resumeRequestModal .resume-request-details {
    margin-bottom: 15px;
    display: none;
}

#resumeRequestModal .resume-request-field {
    margin-bottom: 10px;
}

#resumeRequestModal .resume-request-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#resumeRequestModal .resume-request-field input[type="text"] {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

#resumeRequestModal .resume-request-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.resume-request-message {
    margin-bottom: 15px;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.resume-request-message--error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.resume-request-message--success {
    background-color: #ecfdf3;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.resume-requests,
.my-resume-requests {
    padding: 16px;
}

.resume-requests-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 450px;
    overflow-y: auto;
}

.resume-request-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 380px;
    width: 100%;
    cursor: pointer;
}

.rr-card-header {
    background: #243153;
    margin: -20px -20px 16px;
    padding: 14px 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.rr-product-name {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

.rr-status-badge {
    display: inline-block;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: bold;
    border-radius: 12px;
    padding: 4px 12px;
}

.rr-status-pending {
    background: #fff3cd;
    color: #856404;
}

.rr-status-accepted {
    background: #d4edda;
    color: #155724;
}

.rr-status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.rr-detail-overlay {
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rr-detail-overlay .resume-request-modal,
.rr-detail-modal {
    background: #fff;
    width: 90%;
    max-width: 700px;
    height: 70vh;
    max-height: 70vh;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.resume-request-modal-header {
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.resume-request-modal-body {
    overflow-y: auto;
    flex: 1;
    padding: 0 2rem 2rem;
    min-height: 0;
}

.resume-request-detail-title {
    margin: 0 0 20px;
}

.rr-modal-nav-btn {
    background-color: #243153;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

.rr-modal-nav-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.rr-detail-close {
    cursor: pointer;
    font-size: 24px;
    color: #1f577a;
    line-height: 1;
}

.rr-detail-section {
    margin-bottom: 30px;
}

.rr-detail-section h3 {
    margin-bottom: 15px;
    color: #243153;
    font-size: 18px;
    border-bottom: 2px solid #243153;
    padding-bottom: 8px;
}

.rr-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.rr-detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rr-detail-item label {
    font-weight: bold;
    color: #666;
    font-size: 14px;
}

.rr-modal-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.rr-btn-accept,
.rr-btn-reject {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
}

.rr-btn-accept {
    background: #4caf50;
}

.rr-btn-reject {
    background: #f44336;
}

.rr-btn-accept:disabled,
.rr-btn-reject:disabled {
    background: #ccc;
    cursor: not-allowed;
}
