/* Visual modernization of the "Create assignments" modal.
   Scoped to .ca-modern so nothing leaks to the rest of the app.
   No fields, controls, ids or logic change — this is styling + section grouping. */

.ca-modern { color: #232830; }

/* ---- sections ---- */
.ca-modern .ca-section { margin-bottom: 22px; }
.ca-modern .ca-section:last-child { margin-bottom: 4px; }
.ca-modern .ca-section-title {
    font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
    color: #8a929e; font-weight: 700; margin: 0 0 12px;
    display: flex; align-items: center; gap: 8px;
}
.ca-modern .ca-section-title::after { content: ""; flex: 1; height: 1px; background: #e3e7ec; }

/* ---- labels & groups ---- */
.ca-modern .form-group { margin-bottom: 14px; }
.ca-modern label { font-size: 12.5px; font-weight: 600; color: #5b636f; margin-bottom: 5px; }
.ca-modern .ca-optional { color: #a2a9b4; font-weight: 400; }

/* ---- inputs / selects / textareas ---- */
.ca-modern .form-control {
    height: auto; font-size: 13.5px; padding: 8px 11px;
    border: 1px solid #d3d9e0; border-radius: 8px; box-shadow: none;
    color: #232830; background-color: #fff; transition: border-color .12s, box-shadow .12s;
}
.ca-modern textarea.form-control { min-height: 62px; }
.ca-modern .form-control:focus {
    border-color: #4d7ea8; box-shadow: 0 0 0 3px #eaf1f6; outline: none;
}
.ca-modern .form-control::placeholder { color: #a2a9b4; }

/* the "or create new…" inputs read as a secondary option under their dropdown */
.ca-modern .ca-or { position: relative; margin-top: 6px; }
.ca-modern .ca-or::before {
    content: "or"; position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
    font-size: 11px; color: #a2a9b4; pointer-events: none; font-style: italic;
}
.ca-modern .ca-or .form-control { padding-left: 34px; }

/* ---- source count cards (briefcase / refset / query) ---- */
.ca-modern .ca-src { overflow: hidden; }
.ca-modern .ca-src .lead {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    background: #eaf1f6; border: 1px solid rgba(77,126,168,.28); border-radius: 9px;
    padding: 12px 14px; margin: 0 0 8px; font-size: 13.5px; color: #5b636f; font-weight: 400; line-height: 1.4;
}
.ca-modern .ca-src .lead span[id] { font-size: 22px; font-weight: 750; color: #4d7ea8; font-variant-numeric: tabular-nums; }
.ca-modern .ca-src p[id$="name-assignments"] { font-size: 12.5px; color: #8a929e; margin: 0 0 8px; }
.ca-modern .ca-src .btn { margin-bottom: 4px; }

/* ---- buttons ---- */
.ca-modern .btn { border-radius: 8px; font-size: 13px; }
.ca-modern .btn-sm { font-size: 12px; }
.ca-modern .btn-link { padding-left: 0; }

/* "Assign to" multi-select dropdown button styled like a select */
.ca-modern .btn-group.dropdown > .dropdown-toggle {
    text-align: left; background: #fff; border: 1px solid #d3d9e0; border-radius: 8px;
    padding: 8px 11px; font-size: 13.5px; color: #232830;
}
.ca-modern .btn-group.dropdown > .dropdown-toggle .caret { float: right; margin-top: 8px; }
.ca-modern .btn-group.dropdown > .dropdown-toggle:hover { border-color: #4d7ea8; }

/* Assignees list: cap the height and scroll inside the dropdown, so a long
   user list is not clipped by the modal body (which has its own scroll). */
.ca-modern #assignments-users-dropdown {
    max-height: 260px; overflow-y: auto; width: 100%; min-width: 220px;
}
.ca-modern #assignments-users-dropdown > li > a { padding: 5px 14px; }
.ca-modern #assignments-users-dropdown input[type="checkbox"] { margin-right: 8px; }

/* file input */
.ca-modern input[type="file"] { font-size: 13px; padding: 8px 0; }

/* export-template link + type description spacing */
.ca-modern #download-template-wrapper { padding: 6px 0 0 !important; }
.ca-modern #download-template-wrapper a { font-size: 12.5px; color: #4d7ea8; }

/* the jira section uses <br> spacers; neutralize them and rely on group margins */
.ca-modern #jira-select-assignment br,
.ca-modern #predefinedJQLFields br { display: none; }
.ca-modern #predefinedJQLFields label { display: block; margin-top: 10px; }
