#closeout-dialog { width:min(920px,94vw); max-height:90dvh; overflow:auto; padding:24px; border:1px solid var(--line); border-radius:14px; background:var(--paper,#fff); color:var(--ink); box-shadow:0 24px 80px #0006; }
#closeout-dialog::backdrop { background:#0009; backdrop-filter:blur(2px); }
#closeout-dialog[open] { animation:upload-float-in .2s ease-out; }
.closeout-dismiss { float:right; min-width:36px; min-height:36px; padding:4px; }
.closeout-tabs { margin-bottom:18px; }
.closeout-document h2 { margin-top:0; }
.worksheet-editor { padding-left:24px; }
.worksheet-editor li { display:list-item; margin:8px 0; }
.worksheet-editor input[name=quantity] { width:100px; display:inline-block; }
.worksheet-editor input[name=item] { width:calc(100% - 160px); display:inline-block; }
.worksheet-editor button { min-width:32px; padding:4px; }
.qc-row { padding:12px 0; border-bottom:1px solid var(--line); }
.qc-row form { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:8px; }
.qc-row input[name=initials] { max-width:100px; }
.qc-row input[name=reason] { flex:1; min-width:180px; }
.closeout-history { margin-top:20px; }
.closeout-alert { color:#a71919 !important; background:#ffe7e7 !important; }
@media (prefers-reduced-motion:reduce) { #closeout-dialog[open] { animation:none; } }

.project-workspace .project-workflow-actions .project-complete-action { background:#25633f; border-color:#25633f; color:#fff; background-image:none; }
.project-workspace .project-workflow-actions .project-invoice-action { background:#60378a; border-color:#60378a; color:#fff; background-image:none; text-decoration:none; }
.project-workspace .project-workflow-actions .project-complete-action:hover { background:#1b4b2f; }
.project-workspace .project-workflow-actions .project-invoice-action:hover { background:#492769; }

.project-print-options .button { text-decoration:none; text-align:left; white-space:normal; }
.qc-row { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.qc-question { flex:1; min-width:200px; }
.qc-question p { margin:6px 0 0; font-size:.9em; }
.qc-row .qc-clear { margin-left:auto; }
.qc-row button { padding:6px 12px; min-height:34px; }
[data-qc-question] { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }
[data-qc-question]>label:first-child { flex:1 1 320px; min-width:0; }
[data-qc-question] input[name=question_text] { width:100%; max-width:100%; box-sizing:border-box; }
[data-qc-editor]>.actions { margin-top:16px; }
