/**
 * Case Priority field (`Catalyst:fields/priority-matrix`) + Set Priority
 * modal (`Catalyst:modals/set-priority`) styles, per DESIGN_SPEC.md.
 * Registered in Resources/metadata/app/client.json under "cssList".
 */

.modal.set-priority-dialog .modal-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 580px;
    margin: 0 !important;
    overflow: hidden;
    background-color: #fcfcfc;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border-radius: var(--10px);
}

.modal.set-priority-dialog .modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #e4e7f2;
}

/* `.btn-group`'s own layout keeps centering the two groups despite
   `justify-content: space-between` above; auto margin forces them apart
   regardless. */
.modal.set-priority-dialog .modal-footer .main-btn-group {
    margin-right: auto;
}

.modal.set-priority-dialog .modal-footer .resulting-priority-footer-item {
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: default !important;
    opacity: 1 !important;
}

.case-priority-field {
    /* Plain inline/block flow, not flex: a `flex-wrap` container sized
       `flex-basis: 100%` on the summary to force it onto its own line
       also makes the container's shrink-to-fit width the sum of the
       unwrapped badge+summary widths, not the wider of the two wrapped
       lines - the same oversized-container bug the Approval pills had. */
}

.case-priority-none {
    font-size: 14px;
    color: var(--text-muted-color);
}

.case-priority-set-btn {
    height: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
}

.case-priority-summary {
    margin-top: 2px;
    font-size: 13px;
    color: var(--text-muted-color);
}

/* Set Priority modal */

.set-priority-section {
    margin-bottom: 18px;
}

.set-priority-section + .set-priority-section {
    margin-top: 18px;
}

.set-priority-heading {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.set-priority-heading-title {
    font-size: 13px;
    color: var(--text-color);
}

.set-priority-heading-help {
    font-size: 13px;
    color: var(--text-label-color);
}

.set-priority-choices {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.set-priority-choice {
    padding: 8px 12px;
    border-radius: var(--border-radius);
    border: 1px solid var(--input-border);
    background-color: var(--input-bg);
    cursor: pointer;
    transition: var(--transition-fast);
}

.set-priority-choice:hover {
    background-color: var(--btn-default-hover-bg);
}

.set-priority-choice.is-selected {
    border-color: var(--btn-primary-bg);
    background-color: var(--state-primary-bg);
}

.set-priority-choice-title {
    font-size: 14px;
}

.set-priority-choice-description {
    font-size: 13px;
    color: var(--text-gray-color);
}

.set-priority-footer-label {
    font-size: 13px;
    color: #a4a4a4;
    margin-right: 8px;
    font-weight: normal;
}
