.criterion-category-row td {
    background: #f2f4f7;
    font-weight: 600;
    padding-top: 10px;
    padding-bottom: 6px;
}

/* Display order column */
.admin-table th.col-order,
.admin-table td.col-order {
    width: 100px;        /* keep it compact */
    text-align: center;  /* center numbers */
    white-space: nowrap; /* prevent wrapping */
}

/* Description column should expand */
.admin-table th.col-description,
.admin-table td.col-description {
    width: 60%;
}

/* Clickable criterion label */
.criterion-label {
    color: #0b5ed7; /* clean blue (Bootstrap-like) */
    text-decoration: underline;
    cursor: pointer;
}

.criterion-label:hover {
    color: #084298;
}

.admin-table td.col-label {
    white-space: nowrap;
}

/* ----------------------------------------------------------
   Modal form layout
---------------------------------------------------------- */

.modal-content {
    max-width: 520px;
    width: 100%;
    padding: 20px 22px;
}

.modal-content h2 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

/* Form groups */
.form-group {
    margin-bottom: 14px;
}

/* Labels */
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px; /* tighter label-input connection */
    color: #333;
}

/* Inputs & selects */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

/* Textarea improvement */
.form-group textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.4;
    margin-top: 2px;
    font-family: inherit;
}

/* Display order input */
#criterionModalDisplayOrder {
    max-width: 120px;
}

/* Modal actions container */
.modal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.form-error {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 6px;

    background-color: #ffecec;
    border: 1px solid #e0a4a4;

    color: #a94442;
    font-size: 0.9rem;

    display: flex;
    align-items: center;
    gap: 8px;
}

/* Hidden state */
.form-error.hidden {
    display: none;
}

/* Right side buttons */
.modal-actions-right {
    display: flex;
    gap: 10px;
}

/* Buttons */
.primary-btn,
.secondary-btn,
.danger-btn {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Danger button (delete) */
.danger-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
}

.danger-btn:hover {
    background: #c0392b;
}


/* Utility: hidden element */
.hidden {
    display: none;
}