body { background: #f4f6f9; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--bs-primary); color: #fff;
              display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.page-card { background: #fff; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.08); padding: 2rem; }
.auth-card { max-width: 440px; margin-top: 4vh; }
.section-heading { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
                   color: #6c757d; margin-bottom: .75rem; }

/* New contract form */
.lines-table th { font-size: .8rem; font-weight: 600; background: #f8f9fa; }
.lines-table td { vertical-align: top; }
.lines-table input, .lines-table textarea { font-size: .875rem; }
.sub-badge { font-size: .75rem; display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.lines-table td.sub-cell { max-width: 180px; overflow: hidden; }
.lines-table th.desc-col, .lines-table td.desc-col { min-width: 220px; }
.spinner-overlay { display: none; position: fixed; inset: 0; background: rgba(255,255,255,.75);
                   z-index: 9999; align-items: center; justify-content: center; }
.spinner-overlay.active { display: flex; }

/* Customer autocomplete */
.ac-wrap { position: relative; }
.ac-list { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; max-height: 300px; overflow: auto;
           background: #fff; border: 1px solid #dee2e6; border-top: 0; border-radius: 0 0 .375rem .375rem;
           box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.ac-item { padding: .45rem .75rem; cursor: pointer; }
.ac-item:hover, .ac-item.active { background: #e9f2ff; }
.ac-item small { color: #6c757d; }
.ac-empty { padding: .45rem .75rem; color: #6c757d; font-size: .875rem; }

/* Attachments drop zone */
.dropzone { border: 2px dashed #c3cad5; border-radius: 10px; padding: 1.25rem; text-align: center;
            color: #6c757d; background: #fafbfc; cursor: pointer; transition: background .15s, border-color .15s; }
.dropzone.drag { background: #e9f2ff; border-color: var(--bs-primary); color: var(--bs-primary); }
.file-row { display: flex; align-items: center; gap: .5rem; padding: .35rem .5rem; border: 1px solid #e5e7eb;
            border-radius: 6px; margin-top: .4rem; background: #fff; font-size: .875rem; }
.file-row .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Help page */
.help-toc a { text-decoration: none; }
.help h2 { font-size: 1.15rem; font-weight: 700; margin-top: 2rem; }
.help h3 { font-size: 1rem; font-weight: 600; margin-top: 1.25rem; }
.help code { font-size: .85em; }
