/**
 * Learning Agreement Popup Styles
 * Styles for the LA creation popup dialog on the portal
 */

/* Popup container */
.popupMod {
    overflow-y: scroll !important;
    overflow-x: hidden !important;
}

.popupMod.popupModNomination {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Main content container */
.stayWishContent {
    font-size: 13px;
    padding: 15px;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Step description */
.sw-step-description {
    color: #555;
    font-size: 12px;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

/* Form row */
.la-form-row {
    margin-bottom: 14px;
}

/* Field labels */
.la-field-label {
    font-weight: 600;
    font-size: 13px;
}

.la-field-label-inline {
    font-size: 13px;
    white-space: nowrap;
}

.la-required {
    color: red;
}

/* Select input */
.la-select {
    margin-left: 10px;
    padding: 5px 8px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 160px;
}

/* Text input */
.la-text-input {
    padding: 5px 8px;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 33%;
}

/* Checkbox */
.la-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Inline field row (label + input side by side) */
.la-inline-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Action row for buttons */
.la-action-row {
    margin-top: 20px;
}

/* Results container and cards */
.sw-results-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 2px;
    max-width: 100%;
    box-sizing: border-box;
}

.sw-card {
    display: flex;
    border: 2px solid #d0d7de;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.sw-card:hover {
    border-color: #e8881c;
    box-shadow: 0 1px 6px rgba(232, 136, 28, 0.15);
}

.sw-card-selected {
    border-color: #e8881c;
    background: #fff;
    box-shadow: 0 0 0 1px #e8881c;
}

.sw-card-body {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
}

.sw-card-checkbox-wrap {
    display: flex;
    align-items: flex-start;
    padding: 10px 10px 0 0;
    flex-shrink: 0;
}

.sw-card-checkbox-wrap input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #e8881c;
}

.sw-card-row {
    font-size: 12px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 2px;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.sw-card-label {
    font-weight: 700;
    color: #111;
}

/* LA option sections */
.la-option-section {
    margin-top: 16px;
}

.la-option-label {
    font-weight: 700;
    font-size: 13px;
    margin: 0 0 8px 0;
}

/* Loading / error / no-results states */
.la-loading-indicator {
    text-align: center;
    padding: 20px;
    color: #555;
}

.la-loading-img {
    display: block;
    margin: 0 auto 8px;
    width: 32px;
    height: 32px;
}

.la-error-message {
    display: none;
    color: #b71c1c;
    text-align: center;
    padding: 10px;
}

.la-no-results {
    display: none;
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Create LA button */
.la-create-btn {
    background: #e8881c;
    color: #fff;
    padding: 8px 22px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

.la-create-btn:hover {
    background: #d07518;
}

/* Dialog dimensions */
.sw-popup-dialog {
    max-width: 90vw;
}

.sw-popup-dialog .ui-dialog-content {
    overflow-y: auto !important;
}

@media only screen and (max-width: 768px) {
    .sw-results-container {
        grid-template-columns: 1fr;
    }

    .sw-popup-dialog {
        width: 95vw !important;
    }
}

.la-create-btn:hover {
    background: #d07518;
}

/* Dialog dimensions */
.sw-popup-dialog {
    max-width: 90vw;
}

.sw-popup-dialog .ui-dialog-content {
    overflow-y: auto !important;
}

@media only screen and (max-width: 768px) {
    .sw-results-container {
        grid-template-columns: 1fr;
    }

    .sw-popup-dialog {
        width: 95vw !important;
    }
}