/* CERTCORE DETAIL TUNING ROUND2 - COMPANY PROFILE LIVE CORE v13 */
.cc-company-r2{min-height:0}
.cc-company-r2 .profile-tab-panel{padding-top:10px}
.cc-company-main-grid{grid-template-columns:minmax(215px,.72fr) minmax(380px,1.42fr) minmax(250px,.86fr);gap:12px}
.cc-company-r2 .company-selector-card,.cc-company-r2 .company-form-card,.cc-company-r2 .firma-preview-stack{min-width:0}
.cc-company-helper{margin:10px 0 0;color:#7a8da0;font-size:9px;line-height:1.55}
.cc-company-info-note{margin-top:12px;padding:10px 12px;border:1px solid #dce8f6;border-radius:12px;background:#f7fbff;display:flex;gap:9px;align-items:flex-start;color:#5f7489;font-size:9px;line-height:1.5}
.cc-company-info-note i{color:#2563eb;margin-top:1px}
.cc-company-info-note b{color:#26425f}
.field-help{display:block;margin-top:5px;font-size:8px;color:#8394a6;line-height:1.4}
.cc-company-summary-card{display:flex;align-items:center;gap:12px}
.cc-company-summary-copy{min-width:0;display:flex;flex-direction:column;gap:3px}
.cc-company-summary-copy strong{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cc-company-summary-copy span{font-size:8px;color:#8596a8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cc-company-contact-summary{padding-bottom:12px}
.cc-summary-line{display:grid;grid-template-columns:22px 1fr;gap:8px;align-items:center;padding:7px 0;border-bottom:1px solid #edf2f7;font-size:9px;color:#526a81}
.cc-summary-line:last-child{border-bottom:0}
.cc-summary-line i{width:22px;height:22px;border-radius:7px;background:#eef5ff;color:#2563eb;display:grid;place-items:center;font-size:9px}
.cc-summary-line span{overflow-wrap:anywhere}
.cc-summary-address{align-items:start}
.cc-company-contact-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.05fr)}
.cc-company-address{min-height:118px;resize:vertical}
.cc-company-tab-actions{display:flex;justify-content:flex-end;margin-top:12px}
.cc-company-media-state{margin-top:14px;padding:14px;border:1px dashed #cad7e5;border-radius:14px;background:#fbfdff;display:flex;gap:11px;align-items:flex-start}
.cc-company-media-icon{width:38px;height:38px;border-radius:11px;background:#edf3fb;color:#71879e;display:grid;place-items:center;flex:0 0 auto}
.cc-company-media-state div{display:flex;flex-direction:column;gap:3px}
.cc-company-media-state b{font-size:10px;color:#314c67}
.cc-company-media-state small{font-size:8px;line-height:1.55;color:#7a8da0}
.cc-company-contract-list{display:flex;flex-direction:column;gap:9px}
.cc-company-contract-list>div{display:grid;grid-template-columns:24px 1fr;gap:8px;align-items:start;padding:9px;border-radius:10px;background:#f8fbff;border:1px solid #e6eef6;font-size:8.5px;line-height:1.45;color:#60758a}
.cc-company-contract-list i{width:24px;height:24px;border-radius:8px;background:#eaf8f2;color:#0f9f73;display:grid;place-items:center}
.cc-company-contract-list code{font-size:8px;color:#315a88}
.cc-company-r2 .selector-state{display:flex;align-items:center;gap:6px}
.cc-company-r2 .selector-state.draft{background:#fff8e7;color:#9a6700;border-color:#f3dfab}
.cc-company-r2 .selector-state.draft i{color:#d49a17}
.cc-company-r2 .btn:disabled{opacity:.52;cursor:not-allowed}
.cc-company-r2 .brand-preview{--cc-company-brand:#2563EB}
.cc-company-r2 .brand-preview-logo{background:var(--cc-company-brand)}
.cc-company-r2 .brand-preview strong{max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cc-company-r2 .color-field{align-items:center}
.cc-company-r2 #ccCompanyBrandColor{width:42px;height:36px;border:1px solid #dbe5ef;border-radius:9px;padding:3px;background:#fff}
@media(max-width:1180px){.cc-company-main-grid{grid-template-columns:minmax(210px,.75fr) minmax(360px,1.25fr)}.cc-company-main-grid>.firma-preview-stack{grid-column:1/-1;display:grid;grid-template-columns:1fr 1.3fr;gap:12px}.cc-company-contact-grid{grid-template-columns:1fr}}
@media(max-width:760px){.cc-company-main-grid{grid-template-columns:1fr}.cc-company-main-grid>.firma-preview-stack{display:flex;grid-column:auto}.cc-company-r2 .profile-tabs{overflow-x:auto;gap:8px;padding-bottom:3px}.cc-company-r2 .profile-tab{flex:0 0 auto}.cc-company-tab-actions{justify-content:stretch}.cc-company-tab-actions .btn{width:100%}}

/* v28.3 — canonical company certificate media manager */
.cc-brand-media-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.65fr);gap:16px;align-items:stretch}
.cc-brand-media-card{min-width:0}.cc-company-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}.cc-company-media-item{display:grid;grid-template-columns:74px minmax(0,1fr);grid-template-areas:"preview copy" "preview actions";column-gap:12px;row-gap:8px;padding:12px;border:1px solid #dbe5ef;border-radius:14px;background:#fbfdff;min-width:0}.cc-company-media-preview{grid-area:preview;width:74px;height:74px;border-radius:13px;border:1px dashed #cbd8e6;background:#fff;display:grid;place-items:center;overflow:hidden;color:#7790aa;font-size:22px}.cc-company-media-preview img{width:100%;height:100%;object-fit:contain;padding:5px}.cc-company-stamp-preview img{padding:2px}.cc-company-media-copy{grid-area:copy;min-width:0;display:flex;flex-direction:column;gap:3px}.cc-company-media-copy b{font-size:10.5px;color:#20364e}.cc-company-media-copy small{font-size:8px;line-height:1.45;color:#77899d}.cc-company-media-copy span{margin-top:2px;font-size:8px;font-weight:750;color:#2563eb;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cc-company-media-actions{grid-area:actions;display:flex;gap:6px;flex-wrap:wrap}.cc-company-media-actions .btn{height:30px;padding:0 9px;font-size:8px;border-radius:8px}.cc-company-media-security{display:flex;align-items:center;gap:8px;margin-top:12px;padding:9px 11px;border:1px solid #d8e8df;border-radius:11px;background:#f4fbf7;color:#527060;font-size:8.5px}.cc-company-media-security i{color:#0b9b69}.cc-brand-secondary-settings{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid #edf2f7}.cc-brand-live-preview-card{min-width:0}.cc-brand-preview-logos{display:flex;align-items:center;gap:8px}.cc-brand-preview-logos .brand-preview-logo.secondary{opacity:.82;transform:scale(.88)}.brand-preview-logo img,.cc-brand-preview-stamp img{width:100%;height:100%;object-fit:contain}.cc-brand-preview-stamp{margin-top:11px;width:108px;height:52px;border:1px dashed #d5deea;border-radius:10px;display:flex;align-items:center;justify-content:center;gap:6px;color:#8090a2;font-size:8px;overflow:hidden}.cc-brand-preview-stamp img{padding:3px}.brand-preview.has-company-media .brand-preview-logo{background:#fff!important;border:1px solid #dbe5ef;color:#6b7d90}
@media(max-width:1180px){.cc-company-media-grid{grid-template-columns:1fr}.cc-brand-media-layout{grid-template-columns:1fr}.cc-brand-secondary-settings{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.cc-brand-secondary-settings{grid-template-columns:1fr}.cc-company-media-item{grid-template-columns:62px 1fr}.cc-company-media-preview{width:62px;height:62px}}


/* CertCore v28.11 canonical company mobile finishing */
@media(max-width:760px){
  .firma-profile-page{padding:8px!important}
  .company-profile-shell,.firma-editor-grid{min-width:0!important}
  .cc-company-media-grid,.cc-brand-media-layout,.cc-brand-secondary-settings{grid-template-columns:1fr!important}
  .cc-company-media-item{grid-template-columns:58px minmax(0,1fr)!important;gap:9px!important}
  .cc-company-media-preview{width:58px!important;height:58px!important}
  .company-tab-actions{display:grid!important;grid-template-columns:1fr!important}
  .company-tab-actions .btn{width:100%!important;justify-content:center!important}
}
