.cm-banner{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.cm-banner h3{margin:4px 0}.cm-banner p{margin:8px 0}.cm-fields{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:16px}.cm-fields label,.cm-stamp-editor label,#cmForm>details>label{display:flex;flex-direction:column;gap:7px}.cm-fields input,.cm-fields select,#cmForm textarea{width:100%;box-sizing:border-box}.cm-table-wrap{overflow:auto}.cm-table{width:100%;border-collapse:collapse}.cm-table th,.cm-table td{padding:12px 10px;text-align:left;border-bottom:1px solid #e2e8f0;vertical-align:top}.cm-table th{background:#f6f8fb;color:#475569;font-size:13px}.cm-items{min-width:1050px}.cm-items input{box-sizing:border-box;width:100%;min-width:70px;margin-bottom:6px}.cm-items td:first-child{min-width:150px}.cm-items td:nth-child(2),.cm-items td:nth-child(3){min-width:160px}.cm-doc-grid{display:grid;grid-template-columns:repeat(3,minmax(200px,1fr));gap:16px}.cm-doc-grid .panel{margin-bottom:16px}.cm-totals{display:inline-block;padding:16px;color:#1e40af;font-weight:600}#cmForm summary{cursor:pointer;font-weight:600;margin-bottom:20px}#cmForm textarea{margin-bottom:15px}.cm-wide-modal{width:min(1200px,96vw)!important;max-width:1200px!important}.cm-stamp-editor{display:grid;grid-template-columns:230px 1fr;gap:22px}.cm-stamp-editor aside{display:flex;flex-direction:column;gap:14px}.cm-paper-scroll{max-height:74vh;overflow:auto;background:#dfe4eb;padding:16px}.cm-paper{position:relative;background:white;box-shadow:0 3px 18px #0002}.cm-paper>img:first-child{width:100%;display:block}.cm-paper>img:nth-child(2){position:absolute;cursor:move;touch-action:none;user-select:none;box-sizing:border-box;outline:1px dashed #b91c1c}.cm-actual{display:block;width:100%;height:auto}.cm-pdf-frame{width:100%;height:75vh;border:0}@media(max-width:950px){.cm-fields,.cm-doc-grid{grid-template-columns:1fr 1fr}.cm-stamp-editor{grid-template-columns:1fr}.cm-stamp-editor aside{display:grid;grid-template-columns:1fr 1fr}.cm-paper-scroll{max-height:65vh}}@media(max-width:600px){.cm-fields,.cm-doc-grid{grid-template-columns:1fr}}
.cm-banner button:not(.primary),.cm-table button:not(.primary),.cm-doc-grid button:not(.primary),#cmForm button:not(.primary),.cm-stamp-editor button:not(.primary){border:1px solid #dbe2ee;border-radius:7px;background:#f3f6fc;color:#25436b;padding:8px 12px;cursor:pointer}.cm-banner button:hover,.cm-table button:hover,.cm-doc-grid button:hover{filter:brightness(.97)}.cm-paper{width:min(100%,48vh);margin:0 auto}.cm-stamp-editor button:disabled{opacity:.5;cursor:default}
.cm-seal-overlay{position:absolute;cursor:move;touch-action:none;user-select:none;outline:1px dashed #b91c1c;box-sizing:border-box}.cm-stamp-editor aside{max-height:74vh;overflow:auto;padding-right:8px}.cm-stamp-editor [hidden]{display:none!important}.cm-stamp-editor input[type=checkbox]{width:auto;align-self:flex-start}.cm-stamp-editor details label{margin-top:10px}
.ct-section{display:flex;flex-direction:column;gap:8px;margin:18px 0}.ct-section textarea{width:100%;box-sizing:border-box}.ct-field label,#ctForm .cm-fields label{display:flex;flex-direction:column;gap:8px}.ct-field input[type=checkbox]{align-self:flex-start}.ct-field{background:#f8fafc}

.cm-auth-dialog{max-width:420px;width:calc(100% - 32px);border:0;border-radius:16px;padding:24px}.cm-auth-dialog::backdrop{background:#17203399}.cm-auth-dialog label{display:grid;gap:6px;margin:12px 0}.cm-auth-dialog input{padding:10px}.cm-auth-error{color:#b91c1c}

.cm-delivery .cm-items th:nth-child(6),.cm-delivery .cm-items th:nth-child(7),.cm-delivery .cm-items td:nth-child(6),.cm-delivery .cm-items td:nth-child(7){display:none}
.cm-delivery .cm-items{min-width:680px}
.cm-delivery .cm-items td:first-child{min-width:110px}.cm-delivery .cm-items td:nth-child(2),.cm-delivery .cm-items td:nth-child(3){min-width:125px}.cm-delivery .cm-items input{min-width:45px}.cm-delivery .cm-items th,.cm-delivery .cm-items td{padding:10px 8px}
