/* ============================================================
   CashCow: Monthly Close (close-out checklist), 2026-11-26
   Own file so it doesn't collide with app.css edits. Phone-first:
   one column, wrapping buttons, no fixed widths, no horizontal scroll.
   ============================================================ */

.co-period { min-width: 0; max-width: 100%; }
.co-card { overflow-wrap: anywhere; }

/* Status banner */
.co-status-head { font-family: var(--font-head); font-size: 16px; line-height: 1.5; color: var(--text-primary); margin-bottom: 4px; }
.co-pill { display: inline-block; font-family: var(--font-body); font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; margin-right: 6px; vertical-align: 1px; }
.co-pill-ok   { background: var(--green-muted);  color: var(--green); }
.co-pill-wait { background: var(--yellow-muted); color: var(--yellow); }
.co-pill-open { background: var(--charcoal-4);   color: var(--text-primary); }

/* Messages */
.co-msg { border-radius: var(--radius); padding: 10px 14px; margin-bottom: 14px; font-size: 14px; line-height: 1.45; border: 1px solid var(--border-light); background: var(--bg-card); color: var(--text-primary); }
.co-msg-ok   { border-color: rgba(76, 175, 125, 0.45); }
.co-msg-warn { border-color: rgba(224, 160, 48, 0.55); }
.co-lock { border-left: 3px solid var(--yellow); padding-left: 10px; }

/* Steps */
.co-steps { list-style: none; margin: 8px 0 0; padding: 0; }
.co-step { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); min-width: 0; }
.co-step:first-child { border-top: 0; padding-top: 6px; }
.co-check {
    flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%;
    border: 2px solid var(--charcoal-5); color: var(--text-soft);
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-head); font-size: 13px; font-weight: 600;
}
.co-step.is-done .co-check { background: var(--green); border-color: var(--green); color: var(--charcoal); }
.co-step-main { flex: 1 1 auto; min-width: 0; }
.co-step-title { font-family: var(--font-head); font-size: 15px; font-weight: 600; color: var(--text-primary); line-height: 1.4; }
.co-auto { font-family: var(--font-body); font-size: 11.5px; font-weight: 500; color: var(--text-soft); margin-left: 6px; white-space: nowrap; }
.co-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.co-desc { font-size: 13.5px; color: var(--text-soft); line-height: 1.5; margin: 4px 0 8px; }
.co-meta { font-size: 12px; color: var(--text-soft); margin-top: 6px; }
.co-dim { color: var(--text-soft); }

.co-hint { font-size: 13px; line-height: 1.5; color: var(--text-soft); margin: 4px 0; }
.co-hint-ok   { color: var(--green); }
.co-hint-warn { color: var(--yellow); }
.co-checks { list-style: none; padding: 0; margin: 4px 0 0; }

/* Buttons: allow wrapping on a phone (app.css .btn is nowrap) */
.co-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.co-actions .btn { white-space: normal; text-align: center; }
.co-actions-inline { margin-top: 0; }
.co-unsaved { font-size: 12px; color: var(--yellow); }

.co-notes { width: 100%; max-width: 100%; display: block; }
.co-notes[readonly] { opacity: 0.8; }

/* Step 6 */
.co-sub { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; margin: 6px 0 10px; }
.co-sub-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.co-sub-label { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.co-signs { list-style: none; padding: 0; margin: 0; font-size: 14px; line-height: 1.7; color: var(--text-primary); }
.co-confirm { border: 1px solid var(--border-light); border-radius: var(--radius); padding: 12px; margin-top: 10px; background: var(--charcoal-2); color: var(--text-primary); }
.co-confirm-label { display: block; font-size: 14px; line-height: 1.5; color: var(--text-primary); margin-bottom: 8px; }
.co-confirm .form-textarea { width: 100%; max-width: 100%; }

/* Audit trail */
.co-log { list-style: none; padding: 0; margin: 6px 0 0; }
.co-log-row { padding: 9px 0; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--text-primary); line-height: 1.45; }
.co-log-row:first-child { border-top: 0; }
.co-log-detail { font-size: 13px; color: var(--text-soft); margin-top: 3px; }

@media (max-width: 520px) {
    .co-period { width: 100%; }
    .co-step { gap: 10px; }
    .co-actions .btn { flex: 1 1 auto; }
    .co-sub-row { align-items: flex-start; }
}

@media print {
    .co-actions, .co-confirm { display: none; }
}
