.business-app{min-height:100vh}.business-main{padding:0 28px 40px}.business-topbar{display:flex;align-items:center;justify-content:space-between;padding:22px 0 18px}.business-title-row{display:flex;align-items:center;gap:14px}.business-title-row h1{margin:0;font-size:27px}.business-title-row p{margin:5px 0 0;color:#6b7280}.business-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:22px}.entity-rail{padding:18px;height:max-content;position:sticky;top:18px}.rail-head{padding-bottom:14px;border-bottom:1px solid #e5e7eb}.rail-head small{display:block;color:#6b7280;margin-top:4px}.entity-list{display:grid;gap:8px;margin-top:12px}.entity-choice{display:flex;align-items:center;gap:11px;border:1px solid transparent;background:transparent;border-radius:12px;padding:10px;text-align:left;cursor:pointer;width:100%}.entity-choice:hover{background:#f8fafc}.entity-choice.active{border-color:#c7d2fe;background:#eef2ff}.entity-dot{width:36px;height:36px;border-radius:10px;display:grid;place-items:center;color:white;font-weight:800}.entity-choice span:last-child{min-width:0}.entity-choice b,.entity-choice small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.entity-choice small{color:#6b7280;margin-top:2px}.business-content{min-width:0}.empty-state{padding:55px;text-align:center}.profile-summary{padding:20px;display:flex;align-items:center;gap:16px}.business-logo{width:72px;height:72px;border-radius:18px;background:#eef2ff;display:grid;place-items:center;overflow:hidden;font-size:24px;font-weight:800}.business-logo img{width:100%;height:100%;object-fit:cover}.profile-summary h2{margin:0 0 4px}.profile-summary p{margin:0;color:#6b7280}.upload-link{display:inline-block;color:#4f46e5;font-weight:700;margin-top:8px;cursor:pointer}.type-badge{margin-left:auto;background:#eef2ff;color:#4338ca;border-radius:999px;padding:7px 12px;font-weight:700}.profile-tabs{display:flex;gap:6px;overflow:auto;padding:16px 2px 10px}.profile-tabs button{border:0;background:#fff;padding:10px 14px;border-radius:10px;cursor:pointer;color:#64748b;font-weight:700;white-space:nowrap}.profile-tabs button.active{background:#111827;color:#fff}.business-form{padding:24px}.tab-panel{display:none}.tab-panel.active{display:block}.section-head{margin-bottom:18px}.section-head h2{margin:0 0 5px}.section-head p{margin:0;color:#6b7280}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid label{display:grid;gap:7px}.form-grid label>span{font-weight:700;color:#374151}.form-grid input,.form-grid select,.form-grid textarea,.registration-add input,.registration-add select{width:100%;box-sizing:border-box;border:1px solid #d1d5db;border-radius:10px;padding:11px 12px;background:#fff;font:inherit}.form-grid textarea{resize:vertical}.form-grid .wide{grid-column:1/-1}.form-grid .check{display:flex;align-items:center;gap:10px}.form-grid .check input{width:auto}.form-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-top:24px;padding-top:20px;border-top:1px solid #e5e7eb}.registration-list{display:grid;gap:9px;margin-bottom:14px}.registration-row{display:grid;grid-template-columns:110px 1fr 80px auto;align-items:center;gap:10px;border:1px solid #e5e7eb;border-radius:11px;padding:11px 13px}.registration-row b{color:#4338ca}.registration-row button{border:0;background:#fee2e2;color:#b91c1c;border-radius:8px;padding:7px 10px;cursor:pointer}.registration-add{display:grid;grid-template-columns:120px 1fr 150px auto;gap:10px}.registration-add button{border:0;background:#111827;color:white;border-radius:10px;padding:0 18px;font-weight:700;cursor:pointer}.future-note{margin-top:20px;background:#f8fafc;border:1px dashed #cbd5e1;padding:16px;border-radius:12px;color:#64748b}.toast{position:fixed;right:22px;bottom:22px;background:#111827;color:#fff;padding:12px 16px;border-radius:10px;opacity:0;transform:translateY(8px);pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:none}.profile-loading{display:grid;place-items:center;min-height:100vh;color:#64748b}
@media(max-width:1000px){.business-layout{grid-template-columns:1fr}.entity-rail{position:static}.entity-list{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}}@media(max-width:700px){.business-main{padding:0 15px 30px}.business-topbar{align-items:flex-start}.business-topbar>.soft-btn{display:none}.form-grid,.registration-add{grid-template-columns:1fr}.registration-row{grid-template-columns:80px 1fr auto}.registration-row span:nth-child(3){display:none}}
.rail-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.new-profile-btn{border:0;background:#2563eb;color:#fff;border-radius:9px;padding:9px 12px;font-weight:800;cursor:pointer;white-space:nowrap;box-shadow:0 6px 16px rgba(37,99,235,.18)}.new-profile-btn:hover{background:#1d4ed8}.brand-color-control{display:flex;align-items:center;gap:12px;border:1px solid #d1d5db;border-radius:10px;padding:8px 11px;background:#fff;cursor:pointer}.brand-color-control input[type=color]{width:46px;height:34px;border:0;padding:0;background:transparent;cursor:pointer}.brand-color-control input[type=color]::-webkit-color-swatch-wrapper{padding:0}.brand-color-control input[type=color]::-webkit-color-swatch{border:0;border-radius:8px}.brand-color-copy{display:grid;gap:2px}.brand-color-copy b{font-size:14px}.brand-color-copy small{color:#64748b;font-family:monospace}.profile-modal{position:fixed;inset:0;background:rgba(15,23,42,.46);display:grid;place-items:center;padding:20px;z-index:1000;opacity:0;transition:.18s}.profile-modal.show{opacity:1}.profile-modal-card{width:min(460px,100%);background:#fff;border-radius:16px;box-shadow:0 24px 70px rgba(15,23,42,.28);padding:22px;transform:translateY(10px);transition:.18s}.profile-modal.show .profile-modal-card{transform:none}.profile-modal-head{display:flex;justify-content:space-between;gap:16px;margin-bottom:18px}.profile-modal-head h2{margin:0 0 4px}.profile-modal-head p{margin:0;color:#64748b}.profile-modal-head button{border:0;background:#f1f5f9;width:34px;height:34px;border-radius:9px;font-size:22px;cursor:pointer}.profile-modal form{display:grid;gap:14px}.profile-modal form label{display:grid;gap:7px}.profile-modal form label>span{font-weight:700;color:#374151}.profile-modal input,.profile-modal select{width:100%;box-sizing:border-box;border:1px solid #d1d5db;border-radius:10px;padding:11px 12px;font:inherit;background:#fff}.profile-modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:6px}.profile-modal-actions .save-btn{border:0;border-radius:10px;padding:11px 16px;font-weight:800;cursor:pointer}
@media(max-width:700px){.rail-head{align-items:flex-start}.new-profile-btn{padding:8px 10px}}

.entity-choice{position:relative}.entity-choice.inactive{opacity:.68;background:#f8fafc}.entity-choice.inactive .entity-dot{filter:grayscale(.75)}.entity-status{margin-left:auto;font-style:normal;font-size:11px;font-weight:800;border-radius:999px;padding:4px 7px}.entity-status.active{background:#dcfce7;color:#15803d}.entity-status.inactive{background:#e5e7eb;color:#475569}.profile-status-actions{margin-left:auto;display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}.profile-status-actions .type-badge{margin-left:0}.status-badge{border-radius:999px;padding:7px 11px;font-weight:800}.status-badge.active{background:#dcfce7;color:#15803d}.status-badge.inactive{background:#e5e7eb;color:#475569}.status-toggle-btn{border:1px solid;border-radius:10px;padding:9px 12px;background:#fff;font-weight:800;cursor:pointer}.status-toggle-btn.deactivate{border-color:#fecaca;color:#b91c1c}.status-toggle-btn.deactivate:hover{background:#fef2f2}.status-toggle-btn.activate{border-color:#bbf7d0;color:#15803d}.status-toggle-btn.activate:hover{background:#f0fdf4}.status-toggle-btn:disabled{opacity:.55;cursor:wait}@media(max-width:700px){.profile-summary{align-items:flex-start}.profile-status-actions{width:100%;margin-left:0;justify-content:flex-start}.profile-summary{flex-wrap:wrap}}
.billing-preview{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#eef6ff;border:1px solid #bfdbfe;border-radius:12px;padding:14px 16px;margin-bottom:18px}.billing-preview span{color:#475569;font-weight:700}.billing-preview b{font-size:20px;color:#1d4ed8;letter-spacing:.04em}.billing-number-grid{margin-bottom:24px}.subsection-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin:26px 0 12px;padding-top:22px;border-top:1px solid #e5e7eb}.subsection-head h3{margin:0 0 4px;font-size:18px}.subsection-head p{margin:0;color:#64748b}.payment-account-list{display:grid;gap:10px}.payment-account-card{display:flex;align-items:center;gap:13px;border:1px solid #e2e8f0;border-radius:12px;padding:13px;background:#fff}.payment-account-card.inactive{opacity:.62;background:#f8fafc}.payment-account-icon{width:40px;height:40px;border-radius:10px;background:#eef2ff;display:grid;place-items:center;font-weight:900;color:#4338ca}.payment-account-copy{min-width:0;flex:1}.payment-account-copy>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.payment-account-copy small{display:block;color:#64748b;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.default-pill,.inactive-pill{border-radius:999px;padding:3px 7px;font-size:11px;font-weight:800}.default-pill{background:#dcfce7;color:#15803d}.inactive-pill{background:#e5e7eb;color:#475569}.payment-account-buttons{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.payment-account-buttons button{border:1px solid #dbe3ee;background:#fff;border-radius:8px;padding:7px 9px;font-weight:700;cursor:pointer}.payment-account-buttons button:disabled{opacity:.45;cursor:not-allowed}.payment-account-buttons .account-remove{border-color:#fecaca;color:#b91c1c}.payment-account-add{margin-top:14px;padding:16px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc}.payment-account-actions{display:flex;justify-content:flex-end;margin-top:13px}.payment-account-actions button{border:0;background:#111827;color:#fff;border-radius:10px;padding:10px 14px;font-weight:800;cursor:pointer}.payment-account-actions button:disabled{opacity:.55;cursor:wait}@media(max-width:820px){.payment-account-card{align-items:flex-start;flex-wrap:wrap}.payment-account-buttons{width:100%;justify-content:flex-start;padding-left:53px}}@media(max-width:520px){.billing-preview{align-items:flex-start;flex-direction:column}.payment-account-buttons{padding-left:0}.payment-account-buttons button{flex:1}}
.communication-defaults{margin-bottom:22px}.template-manager{display:grid;grid-template-columns:230px minmax(0,1fr);border:1px solid #dbe3ee;border-radius:14px;overflow:hidden;background:#fff}.template-sidebar{background:#f8fafc;border-right:1px solid #e2e8f0;padding:14px}.template-sidebar-head{display:grid;gap:3px;margin-bottom:10px}.template-sidebar-head small{color:#64748b}.template-list{display:grid;gap:6px}.template-choice{border:1px solid transparent;background:transparent;border-radius:9px;padding:9px 10px;text-align:left;cursor:pointer}.template-choice:hover{background:#fff}.template-choice.active{background:#eef2ff;border-color:#c7d2fe}.template-choice span,.template-choice small{display:block}.template-choice span{font-weight:800;color:#1f2937}.template-choice small{color:#64748b;margin-top:2px}.template-editor{padding:18px;min-width:0}.template-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:15px}.template-editor-head h3{margin:0 0 3px}.template-editor-head p{margin:0;color:#64748b;font-size:12px;font-weight:800}.template-active{display:flex;align-items:center;gap:7px;font-weight:700}.template-field{display:grid;gap:7px;margin-bottom:13px}.template-field>span{font-weight:700;color:#374151}.template-field input,.template-field textarea{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:10px;padding:11px 12px;font:inherit}.template-field textarea{resize:vertical;line-height:1.5}.template-toolbar{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:9px}.template-toolbar button{border:1px solid #dbe3ee;background:#fff;border-radius:8px;padding:7px 10px;cursor:pointer;font-weight:700}.template-toolbar button:hover{background:#f8fafc}.template-save-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px}.template-save-row small{color:#64748b}.template-save-row button{border:0;background:#2563eb;color:#fff;border-radius:9px;padding:10px 14px;font-weight:800;cursor:pointer}.placeholder-panel{border:1px solid #cbd5e1;border-radius:11px;padding:13px;background:#f8fafc;margin:10px 0;max-height:250px;overflow:auto}.placeholder-panel section+section{margin-top:12px}.placeholder-panel section>b{display:block;margin-bottom:7px}.placeholder-panel section>div{display:flex;gap:6px;flex-wrap:wrap}.placeholder-panel button{border:1px solid #c7d2fe;background:#eef2ff;color:#3730a3;border-radius:999px;padding:6px 9px;font-size:12px;cursor:pointer}.template-preview{margin-top:18px;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden}.preview-head{display:flex;justify-content:space-between;background:#f8fafc;border-bottom:1px solid #e2e8f0;padding:10px 12px}.preview-head span{color:#64748b;font-size:12px}.preview-subject{padding:12px 14px;border-bottom:1px solid #e2e8f0;font-weight:800}.template-preview pre{white-space:pre-wrap;word-break:break-word;font:inherit;line-height:1.55;margin:0;padding:15px;min-height:120px}.automation-section{margin-top:28px}.automation-rule-list{display:grid;gap:9px}.automation-rule{display:flex;align-items:center;gap:14px;border:1px solid #e2e8f0;border-radius:11px;padding:11px 13px}.automation-rule.inactive{background:#f8fafc}.automation-rule>div{min-width:0;flex:1}.automation-rule b,.automation-rule small{display:block}.automation-rule small{color:#64748b;margin-top:3px}.automation-rule label{display:flex;gap:6px;align-items:center;font-weight:700}.automation-rule button{border:1px solid #fecaca;background:#fff;color:#b91c1c;border-radius:8px;padding:7px 9px;cursor:pointer}.automation-add{display:grid;grid-template-columns:1.2fr 1.4fr .8fr 90px auto;gap:9px;margin-top:12px}.automation-add select,.automation-add input{width:100%;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:9px;padding:9px 10px;background:#fff}.automation-add button{border:0;background:#111827;color:#fff;border-radius:9px;padding:9px 12px;font-weight:800;cursor:pointer}@media(max-width:900px){.template-manager{grid-template-columns:1fr}.template-sidebar{border-right:0;border-bottom:1px solid #e2e8f0}.template-list{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.automation-add{grid-template-columns:1fr 1fr}}@media(max-width:600px){.automation-add{grid-template-columns:1fr}.template-save-row{align-items:flex-start;flex-direction:column}.automation-rule{align-items:flex-start;flex-wrap:wrap}.automation-rule>div{width:100%}}

/* Business Profile workspace redesign */
.business-layout-workspace{display:block}.business-layout-workspace .business-content{width:100%;max-width:none}.business-main{background:#f7f9fc}.business-topbar{max-width:1440px;margin:0 auto}.profile-workspace-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start;gap:22px;padding:22px 24px 16px;border-bottom-left-radius:0;border-bottom-right-radius:0;margin-bottom:0}.profile-workspace-header .business-logo{width:92px;height:92px;border-radius:50%;overflow:hidden;flex:none}.profile-workspace-header .business-logo img{width:100%;height:100%;object-fit:cover}.profile-summary-copy{min-width:0;padding-top:3px}.profile-name-line{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.profile-name-line h2{margin:0;font-size:25px;line-height:1.2}.profile-summary-copy>p{margin:9px 0;color:#64748b}.profile-contact-line{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin:10px 0 4px;color:#2854b8}.profile-contact-line a{color:#2854b8;text-decoration:none}.profile-contact-line a:before,.profile-contact-line span:before{margin-right:7px;color:#64748b}.profile-contact-line a:first-child:before{content:'◎'}.profile-contact-line span:before{content:'⌕'}.profile-contact-line a:last-child:before{content:'✉'}.profile-header-actions{display:grid;grid-template-columns:repeat(3,max-content);align-items:start;gap:10px}.profile-header-actions .profile-dates{grid-column:1/-1;display:grid;justify-items:end;gap:5px;color:#64748b;font-size:12px;margin-top:26px}.profile-workspace-tabs{margin:0 0 16px;border:1px solid #e1e7f0;border-top:0;border-radius:0 0 14px 14px;background:#fff;padding:0 18px;display:flex;overflow-x:auto}.profile-workspace-tabs button{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;padding:16px 12px 14px;border-bottom:2px solid transparent}.profile-workspace-tabs button img{width:18px;height:18px;opacity:.78}.profile-workspace-tabs button.active{color:#1459e6;border-bottom-color:#1459e6;background:transparent}.profile-workspace-tabs button.active img{filter:brightness(0) saturate(100%) invert(30%) sepia(92%) saturate(2925%) hue-rotate(216deg) brightness(93%) contrast(92%)}
.documents-profile-panel{padding:0!important;background:transparent!important;border:0!important}.document-subtabs{display:flex;align-items:stretch;gap:12px;padding:0 10px;background:#fff;border:1px solid #e1e7f0;border-radius:14px;margin-bottom:14px;overflow-x:auto}.document-subtabs button{min-width:96px;border:0;border-bottom:2px solid transparent;background:transparent;padding:15px 13px 13px;text-align:left;cursor:pointer;color:#17213a}.document-subtabs button span,.document-subtabs button small{display:block}.document-subtabs button span{font-weight:800}.document-subtabs button small{margin-top:7px;font-size:11px;width:max-content;padding:3px 7px;border-radius:999px;background:#f1f5f9;color:#64748b}.document-subtabs button small.published{background:#dcfce7;color:#128143}.document-subtabs button small.draft{background:#fff3cd;color:#b77900}.document-subtabs button.active{color:#1459e6;border-bottom-color:#1459e6}.document-subtabs .new-document-type{margin-left:auto;align-self:center;border:1px solid #bfd2ff;border-radius:9px;padding:10px 14px;min-width:max-content;color:#1459e6;background:#f8fbff;text-align:center}.document-overview{background:#fff;border:1px solid #e1e7f0;border-radius:14px;padding:18px}.document-overview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.document-heading-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.document-heading-row h2{margin:0;font-size:21px}.document-heading-row>span:last-child{color:#64748b}.document-overview-head p{margin:6px 0 0;color:#64748b}.document-overview-actions{display:flex;gap:10px;flex-wrap:wrap}.edit-layout-btn{border:1px solid #a9c6ff;color:#1459e6;background:#f4f8ff;border-radius:10px;padding:10px 18px;font-weight:800;cursor:pointer}.document-status-pill{padding:5px 9px;border-radius:999px;font-size:12px;font-weight:800}.document-status-pill.published{background:#dcfce7;color:#128143}.document-status-pill.draft{background:#fff3cd;color:#a86400}.document-status-pill.empty{background:#eef2f7;color:#64748b}.document-overview-grid{display:grid;grid-template-columns:1.05fr 1fr .9fr;gap:18px}.document-dashboard-card{min-width:0;border:1px solid #e1e7f0;border-radius:12px;padding:16px;background:#fff}.document-dashboard-card h3{margin:0;font-size:15px}.document-dashboard-card p{margin:5px 0 0;color:#64748b;font-size:12px}.preview-card{display:flex;flex-direction:column}.business-document-preview-canvas{height:365px;display:grid;place-items:center;margin:14px 0;border-radius:8px;background:#fbfcfe;overflow:hidden}.business-document-preview-canvas>img{max-width:100%;max-height:100%;object-fit:contain;box-shadow:0 4px 16px rgba(15,23,42,.08)}.empty-document-preview{display:grid;justify-items:center;gap:10px;color:#64748b;text-align:center}.empty-document-preview img{width:42px;height:42px;opacity:.45}.open-designer-btn,.card-footer-btn{width:100%;border:1px solid #dbe4f0;background:#fff;border-radius:9px;padding:11px;font-weight:800;color:#21304d;cursor:pointer}.card-title-line{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.card-title-line>a{color:#1459e6;font-size:12px;font-weight:800}.business-version-list{display:grid;gap:0;margin:14px 0}.business-version-row{display:flex;align-items:center;justify-content:space-between;border:1px solid #e5eaf1;border-bottom:0;padding:13px}.business-version-row:first-child{border-radius:9px 9px 0 0}.business-version-row:last-child{border-bottom:1px solid #e5eaf1;border-radius:0 0 9px 9px}.business-version-row div{display:grid;grid-template-columns:auto auto;align-items:center;gap:6px 9px}.business-version-row small{grid-column:1/-1;color:#64748b}.business-version-row span.published{font-size:10px;background:#dcfce7;color:#128143;border-radius:999px;padding:3px 7px}.business-version-row button{border:0;background:transparent;font-size:20px;cursor:pointer}.business-placeholder-list{display:grid;gap:12px;margin-top:18px}.business-placeholder-list>div{display:flex;align-items:center;gap:9px}.business-placeholder-list>div span{color:#12a661;border:1px solid #12a661;border-radius:50%;width:16px;height:16px;display:grid;place-items:center;font-size:10px}.business-placeholder-list>div b{font-size:13px;font-weight:600}.business-placeholder-list>a{color:#1459e6;font-weight:800}.document-empty-note{padding:26px 12px;text-align:center;color:#64748b}.document-default-settings{position:relative;margin-top:18px;border:1px solid #e1e7f0;border-radius:12px;padding:18px}.document-default-settings h3{margin:0}.document-default-settings p{margin:5px 0 16px;color:#64748b;font-size:12px}.document-settings-grid{display:grid;grid-template-columns:1fr 1.2fr 1fr 1fr 2.3fr;gap:20px;padding-right:130px}.document-settings-grid div{display:grid;gap:6px}.document-settings-grid span{font-size:12px;font-weight:700}.document-settings-grid b{font-size:12px;color:#64748b;font-weight:500}.document-default-settings>button{position:absolute;right:16px;top:16px}.document-designer-shell{background:#fff;border:1px solid #e1e7f0;border-radius:14px;overflow:hidden}.designer-shell-head{display:flex;align-items:center;gap:14px;padding:12px 14px;border-bottom:1px solid #e1e7f0;color:#64748b}.business-document-designer-frame{display:block;width:100%;height:calc(100vh - 260px);min-height:720px;border:0;background:#fff}.workspace-coming-soon{min-height:360px;display:grid;place-items:center;align-content:center;text-align:center;gap:10px;border:1px dashed #cbd5e1;border-radius:14px;background:#f8fafc}.workspace-coming-soon img{width:48px;height:48px}.workspace-coming-soon h3,.workspace-coming-soon p{margin:0}.workspace-coming-soon p{max-width:560px;color:#64748b}.integration-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.integration-grid article{display:grid;gap:7px;border:1px solid #e1e7f0;border-radius:12px;padding:18px}.integration-grid span{color:#64748b}
@media(max-width:1100px){.profile-workspace-header{grid-template-columns:auto 1fr}.profile-header-actions{grid-column:1/-1;margin-left:114px}.document-overview-grid{grid-template-columns:1fr 1fr}.document-overview-grid .document-dashboard-card:last-child{grid-column:1/-1}.document-settings-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.profile-workspace-header{grid-template-columns:1fr}.profile-workspace-header .business-logo{width:74px;height:74px}.profile-header-actions{margin-left:0;grid-template-columns:1fr}.profile-header-actions .profile-dates{justify-items:start;margin-top:6px}.document-overview-head{flex-direction:column}.document-overview-grid{grid-template-columns:1fr}.document-overview-grid .document-dashboard-card:last-child{grid-column:auto}.document-settings-grid{grid-template-columns:1fr;padding-right:0}.document-default-settings>button{position:static;margin-top:14px}.integration-grid{grid-template-columns:1fr}}

/* Approved Business Profile alignment — v11 */
.business-main{padding:0 26px 42px;background:#f7f9fc}
.workspace-toolbar{max-width:1440px;margin:0 auto;padding:18px 0 12px;min-height:46px;display:flex;align-items:center;justify-content:space-between;gap:24px;background:transparent;border:0}
.workspace-toolbar-left{display:flex;align-items:center;gap:18px;min-width:0}
.workspace-breadcrumb{display:flex;align-items:center;gap:10px;min-width:0;font-size:13px;color:#8a98ad}
.workspace-breadcrumb a{color:#66758d;text-decoration:none;font-weight:600}
.workspace-breadcrumb strong{color:#16233d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-switcher{display:flex;align-items:center;gap:10px;color:#68758b;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.profile-switcher select{min-width:220px;max-width:300px;border:1px solid #dce4ef;border-radius:10px;background:#fff;padding:10px 34px 10px 12px;color:#18233b;font-size:13px;font-weight:600;text-transform:none;letter-spacing:0;box-shadow:0 1px 2px rgba(15,23,42,.02)}
.business-layout-workspace{max-width:1440px;margin:0 auto}
.profile-workspace-header{padding:18px 22px 16px;gap:20px;border-color:#e1e7f0;box-shadow:0 1px 2px rgba(15,23,42,.015)}
.profile-workspace-header .business-logo{width:90px;height:90px;background:#f2f5fb}
.profile-summary-copy{padding-top:2px}
.profile-name-line h2{font-size:24px;color:#17213a}
.profile-summary-copy>p{margin:7px 0 8px;font-size:13px}
.profile-contact-line{gap:20px;margin:8px 0 0;font-size:13px}
.profile-header-actions .soft-btn,.profile-header-actions .status-toggle-btn{height:38px;padding:0 17px;border-radius:9px;background:#fff}
.profile-header-actions .profile-dates{margin-top:20px;font-size:11px;line-height:1.45}
.profile-workspace-tabs{margin-bottom:0;border-radius:0;border-left-color:#e1e7f0;border-right-color:#e1e7f0;padding:0 13px;box-shadow:0 1px 2px rgba(15,23,42,.015)}
.profile-workspace-tabs button{flex:1;justify-content:center;padding:15px 9px 13px;font-size:12px;font-weight:700}
.profile-workspace-tabs button img{width:17px;height:17px}
.business-form{margin-top:0;border:0;background:transparent;box-shadow:none;padding:0}
.documents-profile-panel{padding-top:0!important}
.document-subtabs{border-radius:0 0 13px 13px;margin:0 0 14px;padding:0 10px;gap:20px;min-height:86px;align-items:stretch;box-shadow:0 1px 2px rgba(15,23,42,.015)}
.document-subtabs button{min-width:100px;padding:17px 12px 12px;display:flex;flex-direction:column;justify-content:center}
.document-subtabs button span{font-size:13px}
.document-subtabs button small{margin-top:8px}
.document-subtabs .new-document-type{margin-left:auto;margin-right:8px;align-self:center;height:38px;padding:0 16px;display:flex;align-items:center;justify-content:center}
.document-overview{padding:16px 18px 17px;border-radius:13px;box-shadow:0 1px 2px rgba(15,23,42,.015)}
.document-overview-head{margin-bottom:14px;align-items:center}
.document-heading-row h2{font-size:19px}
.document-overview-actions .soft-btn,.edit-layout-btn{height:40px;padding:0 20px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center}
.document-overview-grid{grid-template-columns:1.08fr 1fr .94fr;gap:18px}
.document-dashboard-card{padding:15px;border-radius:11px}
.business-document-preview-canvas{height:350px;margin:12px 0;background:#fff}
.business-version-list{margin:12px 0}
.business-version-row{padding:12px 13px}
.business-placeholder-list{gap:11px;margin-top:15px}
.document-default-settings{margin-top:14px;padding:16px 18px}
.document-default-settings p{margin-bottom:14px}
.document-settings-grid{gap:18px}
@media(max-width:1180px){.profile-workspace-tabs button{flex:0 0 auto}.profile-switcher span{display:none}.profile-switcher select{min-width:190px}.document-overview-grid{grid-template-columns:1fr 1fr}.document-overview-grid .document-dashboard-card:last-child{grid-column:1/-1}}
@media(max-width:760px){.business-main{padding:0 14px 28px}.workspace-toolbar{padding-top:12px}.workspace-breadcrumb a,.workspace-breadcrumb span{display:none}.profile-switcher select{min-width:150px;max-width:190px}.profile-workspace-header{padding:16px}.profile-workspace-tabs{border-radius:0}.document-subtabs{border-radius:0 0 12px 12px}.document-overview-grid{grid-template-columns:1fr}.document-overview-grid .document-dashboard-card:last-child{grid-column:auto}}

/* Pixel alignment pass — approved Documents workspace */
.business-main{padding:0 28px 48px;background:#f7f9fc;overflow-x:hidden}
.workspace-toolbar{max-width:1440px;min-height:43px;padding:14px 0 10px}
.workspace-toolbar .sidebar-toggle{width:42px;height:42px;border-radius:10px}
.workspace-toolbar-left{gap:18px}
.workspace-breadcrumb{font-size:12px;gap:9px}
.profile-switcher{gap:11px}
.profile-switcher select{height:40px;min-width:220px;border-radius:9px}
.business-layout-workspace{max-width:1440px;width:100%}
.profile-workspace-header{min-height:138px;padding:18px 22px 17px;grid-template-columns:96px minmax(0,1fr) auto;gap:20px;border:1px solid #e0e7f0;border-radius:14px 14px 0 0;background:#fff}
.profile-workspace-header .business-logo{width:92px;height:92px;border-radius:50%;align-self:start}
.profile-summary-copy{padding-top:2px;min-width:0}
.profile-name-line{gap:12px}
.profile-name-line h2{font-size:24px;line-height:1.15;letter-spacing:-.02em}
.profile-name-line .status-badge{padding:5px 11px;font-size:11px}
.profile-summary-copy>p{margin:8px 0 10px;font-size:12px;color:#68758c}
.profile-contact-line{display:flex;align-items:center;gap:24px;flex-wrap:wrap;margin-top:9px;font-size:12px}
.profile-contact-line a,.profile-contact-line span{white-space:nowrap}
.profile-summary-copy .upload-link{display:inline-block;margin-top:8px;font-size:12px}
.profile-header-actions{align-self:stretch;display:grid;grid-template-columns:auto auto auto;align-content:start;justify-content:end;gap:10px 12px;min-width:510px}
.profile-header-actions .soft-btn,.profile-header-actions .status-toggle-btn{height:39px;padding:0 20px;border-radius:9px;font-size:12px}
.profile-header-actions .profile-dates{grid-column:1/-1;justify-self:end;display:grid;justify-items:end;gap:5px;margin-top:18px;font-size:10px;color:#64748b}
.profile-workspace-tabs{height:58px;min-height:58px;margin:0;padding:0 16px;border:1px solid #e0e7f0;border-top:0;border-radius:0;background:#fff;overflow-x:auto;overflow-y:hidden}
.profile-workspace-tabs button{height:58px;flex:1 0 auto;min-width:max-content;padding:0 13px;border-radius:0;font-size:12px;gap:8px}
.profile-workspace-tabs button.active{background:transparent;color:#0c5df4;box-shadow:inset 0 -2px 0 #1769ff}
.profile-workspace-tabs button img{width:17px;height:17px}
.business-form{border:0!important;background:transparent!important}
.documents-profile-panel{padding:0!important}
.document-subtabs{height:98px;min-height:98px;margin:0 0 13px;padding:0 14px;border:1px solid #e0e7f0;border-top:0;border-radius:0 0 14px 14px;background:#fff;gap:28px;align-items:stretch;overflow-x:auto;overflow-y:hidden}
.document-subtabs button{position:relative;min-width:90px;height:98px;padding:24px 12px 18px;align-items:flex-start;text-align:left}
.document-subtabs button span{font-size:12px;font-weight:800;color:#15213a}
.document-subtabs button small{margin-top:9px;font-size:10px;padding:3px 7px}
.document-subtabs button.active{background:transparent}
.document-subtabs button.active:after{height:2px;left:0;right:0;bottom:0}
.document-subtabs .new-document-type{height:41px;min-width:178px;margin-left:auto;margin-right:8px;padding:0 18px;align-self:center;align-items:center;justify-content:center;border-radius:9px;font-size:12px;white-space:nowrap}
.document-overview{padding:17px 18px 18px;border:1px solid #e0e7f0;border-radius:14px;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.015)}
.document-overview-head{min-height:55px;margin-bottom:14px;align-items:flex-start}
.document-heading-row{gap:9px}
.document-heading-row h2{font-size:20px;line-height:1.15;letter-spacing:-.015em}
.document-heading-row>span:last-child{font-size:12px}
.document-overview-head p{margin-top:6px;font-size:12px}
.document-overview-actions{gap:10px;align-items:center}
.document-overview-actions .soft-btn,.edit-layout-btn{height:42px;padding:0 22px;border-radius:9px;font-size:12px}
.document-overview-grid{grid-template-columns:1.13fr 1fr .98fr;gap:18px;align-items:stretch}
.document-dashboard-card{min-height:395px;padding:15px 16px 16px;border:1px solid #e0e7f0;border-radius:11px}
.document-dashboard-card h3{font-size:13px}
.document-dashboard-card p{font-size:11px}
.business-document-preview-canvas{height:330px;margin:13px 0 12px;background:#fff;overflow:hidden}
.business-document-preview-canvas>img{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;box-shadow:none}
.open-designer-btn,.card-footer-btn{height:42px;border-radius:9px;font-size:12px}
.business-version-list{margin:13px 0 14px}
.business-version-row{min-height:66px;padding:10px 13px}
.business-version-row div{gap:5px 9px}
.business-version-row b{font-size:12px}
.business-version-row small{font-size:11px}
.business-version-row span.published{font-size:9px;padding:3px 7px}
.business-placeholder-list{gap:12px;margin-top:17px}
.business-placeholder-list>div span{width:16px;height:16px}
.business-placeholder-list>div b{font-size:12px}
.business-placeholder-list>a{font-size:12px;text-decoration:none}
.document-default-settings{margin-top:13px;padding:16px 18px 18px;border-radius:12px}
.document-default-settings h3{font-size:14px}
.document-default-settings p{font-size:11px;margin:5px 0 15px}
.document-settings-grid{grid-template-columns:1fr 1.25fr 1fr 1fr 2.4fr;gap:20px}
.document-settings-grid span,.document-settings-grid b{font-size:11px}
.document-default-settings>button{height:38px;padding:0 18px;border-radius:9px}
@media(max-width:1240px){.profile-header-actions{min-width:430px}.document-subtabs{gap:16px}.document-overview-grid{grid-template-columns:1.08fr 1fr .94fr}}
@media(max-width:1100px){.profile-workspace-header{grid-template-columns:92px minmax(0,1fr)}.profile-header-actions{grid-column:1/-1;min-width:0;margin-left:112px;grid-template-columns:repeat(3,auto);justify-content:start}.profile-header-actions .profile-dates{justify-self:start;justify-items:start}.document-overview-grid{grid-template-columns:1fr 1fr}.document-overview-grid .document-dashboard-card:last-child{grid-column:1/-1}}
@media(max-width:760px){.business-main{padding:0 14px 28px}.workspace-toolbar{gap:12px}.profile-switcher span{display:none}.profile-switcher select{min-width:150px}.profile-workspace-header{grid-template-columns:1fr;min-height:auto;border-radius:12px 12px 0 0}.profile-header-actions{margin-left:0;grid-column:auto;grid-template-columns:1fr}.profile-header-actions .profile-dates{grid-column:auto}.profile-workspace-tabs{height:56px}.profile-workspace-tabs button{height:56px}.document-subtabs{height:88px;min-height:88px}.document-subtabs button{height:88px;padding-top:18px}.document-overview-grid{grid-template-columns:1fr}.document-overview-grid .document-dashboard-card:last-child{grid-column:auto}.document-settings-grid{grid-template-columns:1fr;padding-right:0}}

/* Business Profile tab workspace surfaces
   Keep a consistent visual break below the primary tab bar and place every
   non-Documents tab inside the same white workspace layer used by Documents. */
.business-form{
  margin-top:16px!important;
}
.business-form:has(.tab-panel.active:not(.documents-profile-panel)){
  background:#fff!important;
  border:1px solid #e1e7f0!important;
  border-radius:14px!important;
  box-shadow:0 8px 24px rgba(15,23,42,.035)!important;
  padding:24px!important;
}
.business-form:has(.documents-profile-panel.active){
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:0!important;
}
.business-form:has(.tab-panel.active:not(.documents-profile-panel)) .tab-panel.active{
  margin:0;
}
@media(max-width:760px){
  .business-form{margin-top:14px!important}
  .business-form:has(.tab-panel.active:not(.documents-profile-panel)){padding:18px!important;border-radius:12px!important}
}

/* Business Profiles directory landing page */
.profile-directory{padding:8px 0 28px}
.profile-directory-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:8px 0 22px}
.profile-directory-head h1{margin:0;font-size:28px;line-height:1.15;letter-spacing:-.025em;color:#0f1f3a}
.profile-directory-head p{margin:7px 0 0;color:#66758c;font-size:13px}
.profile-directory-head .new-profile-btn{height:42px;padding:0 18px;border-radius:9px}
.profile-directory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.profile-directory-card{min-width:0;min-height:250px;border:1px solid #dfe6ef;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 5px 18px rgba(15,23,42,.035);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
.profile-directory-card:hover{transform:translateY(-2px);border-color:#b8cdfa;box-shadow:0 10px 26px rgba(15,23,42,.075)}
.profile-directory-card>button{display:flex;flex-direction:column;width:100%;height:100%;min-height:250px;padding:22px;text-align:left;border:0;background:transparent;color:inherit;cursor:pointer}
.profile-directory-logo{width:72px;height:72px;border-radius:50%;overflow:hidden;margin-bottom:18px;background:#eef2ff;display:grid;place-items:center}
.profile-directory-logo img{width:100%;height:100%;object-fit:cover}
.profile-directory-logo>span{display:grid;place-items:center;width:100%;height:100%;color:#fff;font-size:22px;font-weight:800}
.profile-directory-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;width:100%}
.profile-directory-card-head h2{margin:0;font-size:18px;line-height:1.2;color:#10203b}
.profile-directory-card-head p{margin:6px 0 0;font-size:12px;color:#68778d}
.profile-directory-meta{display:flex;flex-wrap:wrap;gap:7px 14px;margin-top:17px;color:#52647c;font-size:11px}
.profile-directory-meta span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-directory-footer{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:auto;padding-top:18px;border-top:1px solid #edf1f6;color:#0b5ff4;font-size:12px}
.profile-directory-card.inactive{opacity:.72}
.profile-directory-create>button{align-items:center;justify-content:center;text-align:center;border:1px dashed #a9c4ff;background:#f8fbff}
.profile-directory-create .profile-directory-plus{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;margin-bottom:14px;background:#eaf1ff;color:#0b5ff4;font-size:30px;font-weight:300}
.profile-directory-create h2{margin:0;font-size:17px;color:#10203b}
.profile-directory-create p{max-width:240px;margin:8px auto 0;color:#68778d;font-size:12px;line-height:1.5}
.profile-directory[hidden],.profile-switcher[hidden]{display:none!important}
@media(max-width:1100px){.profile-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.profile-directory-head{align-items:flex-start;flex-direction:column}.profile-directory-grid{grid-template-columns:1fr}.profile-directory-card,.profile-directory-card>button{min-height:220px}}

/* Full-width application shell alignment
   Match the dashboard content behavior when the sidebar expands/collapses. */
.business-app,
.business-app .business-main{
  width:100%;
  min-width:0;
  max-width:none;
}
.business-app .workspace-toolbar,
.business-app .business-layout-workspace{
  width:100%;
  max-width:none;
  margin-left:0;
  margin-right:0;
}
.business-app .profile-directory,
.business-app .profile-directory-head,
.business-app .profile-directory-grid,
.business-app .profile-workspace-header,
.business-app .profile-workspace-tabs,
.business-app .business-form,
.business-app .document-subtabs,
.business-app .document-overview-shell{
  max-width:none;
}
body.sidebar-collapsed .business-app .business-main,
body:not(.sidebar-collapsed) .business-app .business-main{
  width:100%;
  min-width:0;
}
@media (min-width:801px){
  .business-app .business-main{
    padding-left:28px;
    padding-right:28px;
  }
}
