/* The Coverage Center (/coveragecenter). Markup from renderCoverageCenter()
   in includes/coveragecenter.php. */

.cc-section {
    margin-bottom: 26px;
}

.cc-section-title {
    margin: 0 0 10px;
    padding-left: 5px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-soft, #6b6b6b);
    text-transform: uppercase;
    letter-spacing: .03em;
}

.cc-section-title i {
    margin-right: 6px;
    color: var(--brand, #d4a017);
}

.cc-count {
    display: inline-block;
    min-width: 22px;
    padding: 1px 7px;
    margin-left: 4px;
    border-radius: 11px;
    background: var(--brand, #d4a017);
    color: #fff;
    font-size: .8rem;
    text-align: center;
}

.cc-none,
.cc-empty p {
    margin: 0;
    padding: 18px;
    border: 1px dashed var(--border-soft, #e6e6e6);
    border-radius: 8px;
    color: var(--text-muted, #8a8a8a);
    text-align: center;
}

.cc-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 14px;
}

@media (max-width: 700px) {
    .cc-cards {
        grid-template-columns: 1fr;
    }
}

/* One order: the script's poster, then the script -- title and author (Ben)
   -- what was bought, and the buttons. */
.cc-card {
    display: flex;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--border-soft, #e6e6e6);
    border-radius: 10px;
    background: var(--bg-card, #fff);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.cc-card--requested,
.cc-card--open {
    border-left: 4px solid var(--brand, #d4a017);
}

.cc-card--in_progress {
    border-left: 4px solid #3a8dde;
}

.cc-card--submitted {
    border-left: 4px solid #6aa84f;
}

.cc-poster {
    flex: 0 0 92px;
    width: 92px;
    height: 138px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--border-soft, #e6e6e6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #8a8a8a);
    font-size: 1.8rem;
}

.cc-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cc-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cc-title {
    font-family: var(--font-title, 'Playfair Display', serif);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main, #2f2f2f);
    line-height: 1.25;
}

.cc-title a {
    color: inherit;
    text-decoration: none;
}

.cc-title a:hover {
    color: var(--brand, #d4a017);
    text-decoration: underline;
}

.cc-author {
    font-size: .9rem;
    color: var(--text-soft, #6b6b6b);
    margin-bottom: 4px;
}

.cc-state {
    font-size: .88rem;
    font-weight: 600;
    color: var(--text-main, #2f2f2f);
    margin-bottom: 4px;
}

.cc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 12px;
    font-size: .82rem;
    color: var(--text-muted, #8a8a8a);
}

.cc-money {
    margin-top: 2px;
}

.cc-money b {
    color: var(--text-main, #2f2f2f);
}

/* Its own line, bold; red at three days or less, overdue included. */
.cc-due {
    margin-top: 4px;
    font-size: .92rem;
    font-weight: 700;
    color: var(--text-main, #2f2f2f);
}

.cc-due--soon {
    color: #c0392b;
}

/* The Zoom call the writer bought with it. */
.cc-call {
    margin-top: 4px;
    font-size: .88rem;
    font-weight: 600;
    color: #2d8cff;
}

.cc-call i {
    margin-right: 4px;
}

.cc-past-call {
    display: block;
    font-size: .8rem;
    color: #2d8cff;
}

.cc-author a,
.cc-past-author a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--border, #ccc);
}

.cc-logline {
    margin: 8px 0 0;
    font-size: .88rem;
    line-height: 1.45;
    color: var(--text-soft, #6b6b6b);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cc-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
}

.cc-actions .btn {
    margin-left: 0;
}

.cc-hold {
    font-size: .85rem;
    color: var(--text-muted, #8a8a8a);
    font-style: italic;
}

/* Past coverage: a list, not cards. */
.cc-past {
    padding: 0;
    overflow-x: auto;
}

.cc-past-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
}

.cc-past-table th {
    padding: 10px 14px;
    text-align: left;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-muted, #8a8a8a);
    border-bottom: 1px solid var(--border-soft, #e6e6e6);
    white-space: nowrap;
}

.cc-past-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-soft, #e6e6e6);
    color: var(--text-soft, #6b6b6b);
    vertical-align: top;
}

.cc-past-table tr:last-child td {
    border-bottom: 0;
}

.cc-past-script a {
    display: block;
    font-family: var(--font-title, 'Playfair Display', serif);
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--text-main, #2f2f2f);
    text-decoration: none;
}

.cc-past-script a:hover {
    color: var(--brand, #d4a017);
    text-decoration: underline;
}

.cc-past-author {
    font-size: .85rem;
}

.cc-past-money {
    text-align: right;
    white-space: nowrap;
}

.cc-assign-select {
    padding: 6px 8px;
    border: 1px solid var(--border, #dbdfea);
    border-radius: 6px;
    background: #fff;
    font-size: .9rem;
    max-width: 220px;
}


/* ── The coverage form (/coveragecenter/{order}) ─────────────────────────
   Markup from renderCoverageForm() in includes/coverageform.php. */

.cf-page {
    max-width: 980px;
}

.cf-back {
    margin-bottom: 10px;
}

.cf-page .card {
    padding: 18px 20px;
    margin-bottom: 14px;
}

.cf-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cf-kicker {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--brand, #d4a017);
}

.cf-title {
    margin: 2px 0;
    font-family: var(--font-title, 'Playfair Display', serif);
    font-size: 1.7rem;
    color: var(--text-main, #2f2f2f);
}

.cf-author,
.cf-status {
    font-size: .95rem;
    color: var(--text-soft, #6b6b6b);
}

.cf-status {
    margin-top: 4px;
}

.cf-read {
    white-space: nowrap;
}

.cf-head-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.cf-message i,
.cc-past-msg i {
    margin-right: 4px;
}

.cc-past-msg {
    display: block;
    margin-top: 6px;
}

.cf-note--call {
    border-left-color: #2d8cff;
    background: rgba(45, 140, 255, .07);
}

.cf-note--call i {
    color: #2d8cff;
}

.cf-note {
    margin: 0 0 14px;
    padding: 10px 14px;
    border-left: 3px solid var(--brand, #d4a017);
    background: rgba(212, 160, 23, .07);
    border-radius: 4px;
    font-size: .95rem;
    color: var(--text-main, #2f2f2f);
}

.cf-note i {
    margin-right: 6px;
    color: var(--brand, #d4a017);
}

.cf-note--new {
    border-left-color: #c0392b;
    background: #fdecea;
}

.cf-note--new i {
    color: #c0392b;
}

.cf-link {
    margin-left: 8px;
    padding: 0;
    border: 0;
    background: none;
    font-weight: 700;
    color: #c0392b;
    text-decoration: underline;
    cursor: pointer;
}

.cf-field {
    margin-bottom: 20px;
}

.cf-field:last-child {
    margin-bottom: 0;
}

.cf-label {
    display: block;
    margin-bottom: 4px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main, #2f2f2f);
}

.cf-optional {
    font-weight: 400;
    color: var(--text-muted, #8a8a8a);
}

.cf-help {
    margin: -2px 0 6px;
    font-size: .88rem;
    color: var(--text-muted, #8a8a8a);
}

.cf-input {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 11px;
    border: 1px solid var(--border, #dbdfea);
    border-radius: 6px;
    background: #fff;
    font: inherit;
    font-size: .98rem;
    color: var(--text-main, #2f2f2f);
}

.cf-input:disabled {
    background: var(--bg-soft, #f7f8fa);
}

select.cf-input {
    max-width: 320px;
}

/* The scores: a grid of sliders, and the verdict they add up to beneath. */
.cf-scores {
    margin-bottom: 20px;
}

.cf-section {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main, #2f2f2f);
}

.cf-score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px 26px;
}

.cf-score-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.cf-score-head .cf-label {
    margin-bottom: 0;
}

.cf-score-val {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--brand, #d4a017);
    min-width: 28px;
    text-align: right;
}

.cf-score-val.is-unset {
    color: var(--text-muted, #8a8a8a);
}

.cf-slider {
    width: 100%;
    accent-color: var(--brand, #d4a017);
}

/* Not yet set: the thumb sits at the middle, greyed, so an untouched slider
   is never mistaken for a considered 5. */
.cf-slider.is-unset {
    opacity: .45;
}

.cf-comment {
    margin-top: 6px;
}

.cf-result {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-soft, #e6e6e6);
}

.cf-result-verdict {
    font-size: 1.3rem;
    font-weight: 700;
}

.cf-result-score b {
    font-size: 1.3rem;
    color: var(--text-main, #2f2f2f);
}

.cf-result-note,
.cf-result-none {
    font-size: .88rem;
    color: var(--text-muted, #8a8a8a);
}

.cf-ai {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 8px;
}

.cf-ai-note {
    font-size: .85rem;
    color: var(--text-muted, #8a8a8a);
}

.cf-foot {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    padding: 12px 0;
    background: linear-gradient(to bottom, rgba(244, 245, 249, 0), var(--bg-page, #f4f5f9) 35%);
}

.cf-foot .btn-script {
    margin-left: 0;
}

.cf-saved {
    font-size: .9rem;
    color: var(--text-muted, #8a8a8a);
}

.cf-saved.is-error {
    color: #c0392b;
    font-weight: 700;
}

/* Sent back: Staff's note, at the top of the analyst's form. */
.cf-note--back {
    border-left-color: #d98a00;
    background: #fff8e6;
}

.cf-note--back i {
    color: #d98a00;
}

.cf-note-body {
    margin-top: 6px;
    white-space: normal;
}

/* Past coverage: paid, or owed with Staff's Mark Paid. */
.cc-past-pay {
    white-space: nowrap;
}

.cc-paid {
    color: #3b7d3b;
    font-weight: 600;
}

.cc-owed {
    color: #b36b00;
    font-weight: 700;
}

.cc-markpaid {
    margin-left: 6px;
    padding: 2px 8px;
    font-size: .8rem;
}
