.cm-table{width:100%;min-width:720px}.cm-table td{vertical-align:middle}.cm-table select{width:180px;max-width:100%}.cm-table .company-name{white-space:normal;text-align:left}.cm-count{display:inline-block;padding:10px 14px;border-radius:7px;background:#edf4ff;color:#195db7;font-weight:700;white-space:nowrap}.cm-targets{display:grid;gap:7px;max-height:230px;overflow:auto;margin:14px 0}.cm-targets button{display:block;text-align:left;white-space:normal}.cm-targets small{display:block}.cm-conflicts{width:100%;table-layout:fixed}.cm-conflicts td{overflow-wrap:anywhere;white-space:pre-line}.cm-check{display:flex;gap:10px;align-items:flex-start;margin:18px 0}.cm-check input{width:auto;flex-shrink:0}.customer-order-filter{display:flex;gap:12px;align-items:center;flex-wrap:wrap}#cm-preview{margin-top:20px}
#dialog:has(#cm-target-search){width:min(880px,calc(100vw - 32px));max-width:calc(100vw - 32px)}.cm-conflicts th{white-space:normal}.cm-check input[type=checkbox]{height:18px;min-height:18px;width:18px;padding:0;margin-top:2px}.cm-audit{padding:14px 0}.cm-audit dl{display:grid;grid-template-columns:100px minmax(0,1fr);gap:7px}.cm-audit dd{margin:0;overflow-wrap:anywhere;white-space:pre-line}
.customer-card-form .vat-input-row{display:flex;gap:8px;align-items:center}.customer-card-form .vat-input-row input{flex:1;min-width:0}.customer-card-form .card-t1{align-self:end;padding-bottom:10px}.customer-card-form textarea{width:100%}

/* Portal klienta w liście i w kartotece (17.10.2026) */
.cm-portal-cell{white-space:nowrap}.cm-portal-none{color:#b3bcc8}.cm-portal-state{font-weight:600;font-size:13px}.cm-portal-state.ok{color:#0d6b3a}.cm-portal-state.wait{color:#8a5a00}.cm-portal-state.warn{color:#a3001f}.cm-portal-state.off{color:var(--muted)}
.cm-portal-activity{margin:18px 0 6px;padding:16px 18px;border:1px solid var(--line);border-radius:10px;background:#f9fbfe}.cm-portal-activity h3{margin:0;font-size:15px}.cm-portal-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:8px}.cm-portal-head small{color:var(--muted);font-size:12px}.cm-portal-activity p.cm-portal-state{margin:0 0 12px}
.cm-portal-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(124px,1fr));gap:10px;margin:0 0 12px}.cm-portal-tiles div{background:#fff;border:1px solid var(--line);border-radius:8px;padding:10px 12px}.cm-portal-tiles span{display:block;font-size:11px;color:var(--muted);margin-bottom:4px}.cm-portal-tiles strong{font-size:16px;font-weight:650}.cm-portal-tiles strong small{font-size:11px;color:var(--muted);font-weight:500}.cm-portal-tiles .warn{color:#a3001f}
.cm-act-list{padding:6px 0 0}.cm-act-list summary{cursor:pointer;font-weight:600;font-size:13px}.cm-act-table{font-size:13px}.cm-act-table td{padding:7px 10px;border-top:1px solid #edf0f5;vertical-align:top}.cm-act-table td:first-child{color:var(--muted);white-space:nowrap;font-size:12px}.cm-act-target{color:var(--muted)}.cm-act-target a{color:var(--blue);font-weight:600}.cm-act-meta{text-align:right;white-space:nowrap}.cm-act-ip{color:#9aa6b6;font-size:11px}.cm-act-fail td:nth-child(2){color:#a3001f}.cm-act-in td:nth-child(2){color:#0d6b3a}.cm-act-view td:nth-child(2){color:var(--muted)}.cm-act-staff td:nth-child(2){color:#5a6b85;font-style:italic}
@media(max-width:720px){.cm-act-meta{display:none}}
