.company-panel {
    --company-bg:#fff; --company-soft:#f1f5f9; --company-border:#d1dde8;
    --company-ink:#17314c; --company-muted:#556c83;
    padding:clamp(12px,2.2vw,24px); border:1px solid var(--company-border);
    border-radius:12px; background:var(--company-bg); color:var(--company-ink); margin:0 0 14px;
}
body.dark .company-panel {
    --company-bg:#182b3e; --company-soft:#20384e; --company-border:#476179;
    --company-ink:#e5eef7; --company-muted:#bfd0df;
}
.company-panel .company-title {margin:0 0 .7rem;color:var(--company-ink);}
.company-panel h3 {margin:.3rem 0 .65rem;color:var(--company-ink);}
.company-tabs,.company-actions {display:flex;flex-wrap:wrap;gap:.35rem;margin:.65rem 0;}
.company-tabs button {border:1px solid var(--company-border);border-bottom:2px solid transparent;}
.company-tabs button[aria-pressed=true] {background:#24415e;color:#fff;border-bottom-color:#cbb680;}
.company-layout {display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:16px;align-items:start;}
.company-layout > *,.company-fields > * {min-width:0;}
.company-fields,.quote-commercial-options {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;}
.company-panel label {color:var(--company-ink);}
.company-panel input,.company-panel select,.quote-commercial-options input,.quote-commercial-options select {box-sizing:border-box;max-width:100%;}
.company-panel .company-actions button:first-child {background:#24415e;color:white;}
.company-panel .company-caption {color:var(--company-muted);font-weight:700;}
.company-panel .company-bank-list fieldset {border:1px solid var(--company-border);border-radius:8px;padding:.7rem;margin:.5rem 0;min-width:0;}
.company-bank-list legend {font-weight:700;}
.company-heading-preview {background:var(--company-soft);border-radius:10px;padding:.7rem;overflow:hidden;}
.company-preview-paper {padding:.8rem;background:white;color:#14263b;border:1px solid #d1dde8;border-radius:6px;font:10pt Arial,sans-serif;}
body.dark .settings61 .company-preview-paper .company-document-heading {background:#fff;color:#14263b;}
.company-preview-paper h1 {font:700 18pt Arial,sans-serif;color:#14263b;margin:.6rem 0 .3rem;}
.company-document-heading .parties {overflow-wrap:anywhere;min-width:0;}
.company-preview-paper .parties {display:grid;grid-template-columns:1fr 1fr;gap:.7rem;line-height:1.4;margin:.6rem 0;}
.company-preview-paper .meta {display:flex;flex-wrap:wrap;gap:.55rem;justify-content:space-between;background:#eef2f6;padding:.4rem;}
:is(#ald141-paper,.document-paper,.company-preview-paper) .company-document-brand {display:flex;margin-bottom:3mm;}
:is(#ald141-paper,.document-paper,.company-preview-paper) .company-document-brand[data-position=center] {justify-content:center;}
:is(#ald141-paper,.document-paper,.company-preview-paper) .company-document-brand[data-position=right] {justify-content:flex-end;}
:is(#ald141-paper,.document-paper,.company-preview-paper) .company-document-brand img {max-width:100%;max-height:42mm;height:auto;object-fit:contain;object-position:left center;}
:is(#ald141-paper,.document-paper,.company-preview-paper) .company-document-brand[data-position=center] img {object-position:center;}
:is(#ald141-paper,.document-paper,.company-preview-paper) .company-document-brand[data-position=right] img {object-position:right center;}
.quote-commercial-options {margin:.6rem 0;}
@media (max-width:1050px) {.company-layout {grid-template-columns:minmax(0,1fr);}}
@media (max-width:520px) {.company-fields {grid-template-columns:minmax(0,1fr);} .company-tabs button {flex:1 0 auto;}}
@media print {.company-document-heading {break-inside:avoid;}}
