:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#1f2933;background:#f4f7fa;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}.eyebrow{color:#5b3cc4;font-size:.75rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.eyebrow.light{color:#b8c6ff}h1,h2,p{margin-top:0}.auth-shell{min-height:100vh;display:grid;place-items:center;padding:2rem;background:radial-gradient(circle at top left,#ebe5ff,#f7f9fc 45%)}.auth-card{width:min(100%,430px);padding:2.5rem;border-radius:24px;background:#fff;box-shadow:0 24px 70px #1f2d3d1f;border:1px solid #e7ebf0}.auth-card h1{font-size:2rem;margin:.5rem 0}.auth-card p{color:#65717e}form{display:grid;gap:1rem;margin-top:1.5rem}label{display:grid;gap:.4rem;font-size:.88rem;font-weight:700;color:#394553}input,select,textarea{width:100%;border:1px solid #cdd5df;border-radius:10px;padding:.8rem .9rem;background:#fff}input:focus,select:focus,textarea:focus{outline:3px solid #e1d9ff;border-color:#6941c6}button{border:0;border-radius:10px;padding:.8rem 1rem;color:#fff;background:#5b3cc4;font-weight:750}button:hover{background:#4930a0}.oauth-row{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin-top:1rem}button.secondary{color:#384250;background:#eef1f5}button.danger{background:#a61b1b}button.link{color:#5b3cc4;background:transparent;width:100%;margin-top:.6rem}.message,.error{margin-top:1rem;padding:.75rem;border-radius:8px;background:#f3f0ff}.test-badge{display:inline-block;margin-bottom:.75rem;padding:.25rem .55rem;border-radius:999px;color:#6941c6;background:#f0ebff;font-size:.75rem;font-weight:800;text-transform:uppercase}.verified{padding:.8rem;border-radius:8px;color:#17663a;background:#edf9f1}code{padding:.1rem .25rem;border-radius:4px;background:#eef1f5}.app-shell{min-height:100vh;display:grid;grid-template-columns:260px 1fr}aside{color:#fff;background:#243b53;padding:2rem 1.25rem;display:flex;flex-direction:column;gap:1.25rem}aside h2{margin:.5rem 0 0}.crm-navigation,.organization-navigation{display:grid;gap:.35rem}.crm-navigation{padding-bottom:1.25rem;border-bottom:1px solid #486581}.crm-navigation button,.organization-navigation button{display:grid;text-align:left;color:#dce6ef;background:transparent}.crm-navigation button.active,.organization-navigation button.active,.crm-navigation button:hover,.organization-navigation button:hover{background:#334e68}.organization-navigation small{color:#9fb3c8;margin-top:.2rem}.sidebar-user{color:#b9c6d4;font-size:.8rem;overflow-wrap:anywhere}.signout{margin-top:auto;background:#334e68}.workspace{padding:2.5rem}.workspace header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:2rem;gap:1rem}.workspace h1{margin:.4rem 0 0}.user{color:#52606d;font-size:.9rem}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}.panel{background:#fff;border:1px solid #dfe5eb;border-radius:16px;padding:1.5rem;box-shadow:0 8px 24px #1f2d3d0d}.panel.narrow{max-width:620px}dl{display:grid;gap:1rem}dl div{display:grid;grid-template-columns:120px 1fr;border-bottom:1px solid #edf1f5;padding-bottom:.75rem}dt{color:#65717e}dd{margin:0;font-weight:750}.error{color:#8a1c1c;background:#fff0f0}.loading{min-height:100vh;display:grid;place-items:center}.owner-transfer-panel{grid-column:1 / -1;border-color:#efc7c7}.owner-transfer-panel>button{margin-top:1rem}.owner-transfer-confirmation{margin-top:1rem;padding:1rem;border:1px solid #e6a8a8;border-radius:10px;color:#711717;background:#fff4f4}.owner-transfer-confirmation p{margin-bottom:1rem}.confirmation-actions{display:flex;flex-wrap:wrap;gap:.75rem}button:disabled{cursor:not-allowed;opacity:.55}.members-panel{grid-column:1 / -1}.crm-view-dashboard>:not(.dashboard-panel),.crm-view-customers>:not(.customers-panel):not(.activities-panel):not(.customer-form-panel):not(.customer-tags-panel):not(.customer-overlay),.crm-view-follow-ups>:not(.follow-ups-panel),.crm-view-sales>:not(.opportunities-panel),.crm-view-quotes>:not(.quotes-panel):not(.quote-settings-panel):not(.quote-detail-overlay),.crm-view-management>:not(.management-overview-panel):not(.management-invitation-panel):not(.owner-transfer-panel):not(.members-panel):not(.quote-settings-panel){display:none}.dashboard-panel{grid-column:1 / -1}.dashboard-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.9rem;margin-top:1.25rem}.metric-card{display:grid;gap:.35rem;min-height:112px;align-content:center;padding:1rem;border-radius:12px;background:#f7f5ff}.metric-card span,.metric-card small{color:#65717e}.metric-card strong{color:#243b53;font-size:1.55rem}.metric-card small{font-size:.82rem}.follow-ups-panel{grid-column:1 / -1}.follow-up-filters{display:flex;flex-wrap:wrap;gap:.6rem;margin:1rem 0}.follow-up-query-filters{display:grid;grid-template-columns:2fr repeat(3,minmax(150px,1fr));gap:.75rem;margin:0 0 1rem}.follow-up-list{display:grid;gap:.75rem}.follow-up-card{display:flex;justify-content:space-between;gap:1rem;padding:1rem;border-left:4px solid #5b3cc4;border-radius:8px;background:#f7f9fc}.follow-up-card.overdue{border-left-color:#b42318;background:#fff4f4}.follow-up-card strong,.follow-up-card small{display:block;margin-top:.3rem}.follow-up-card small{color:#65717e}.follow-up-card p{margin:.65rem 0 0;white-space:pre-wrap}.customers-panel,.customer-form-panel{grid-column:1 / -1}.activities-panel{grid-column:1 / -1;border-color:#cfc4f3}.opportunities-panel,.quotes-panel{grid-column:1 / -1}.quote-list{display:grid;gap:.75rem;margin:1.25rem 0}.quote-card{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1rem;border:1px solid #dfe5eb;border-radius:12px}.quote-card strong,.quote-card small{display:block;margin-top:.35rem}.quote-card small{color:#65717e}.quote-card select{width:auto;min-width:150px}.quote-actions{display:flex;align-items:center;gap:.65rem}.quote-detail-overlay{position:fixed;z-index:20;top:0;right:0;bottom:0;left:0;overflow-y:auto;padding:2rem;background:#161f2ab8}.quote-detail-document{width:min(900px,100%);min-height:1000px;margin:0 auto;padding:3rem;background:#fff;box-shadow:0 24px 70px #00000040}.quote-detail-actions{display:flex;justify-content:flex-end;gap:.65rem;margin-bottom:2rem}.quote-document-header,.quote-parties{display:flex;justify-content:space-between;gap:2rem}.quote-document-header{align-items:flex-start;padding-bottom:1.5rem;border-bottom:2px solid #5b3cc4}.quote-document-header h2{margin:.3rem 0;font-size:2rem}.quote-document-header>div:last-child{display:grid;gap:.25rem;text-align:right}.quote-document-header span,.quote-parties span{color:#65717e;font-size:.8rem;text-transform:uppercase;letter-spacing:.08em}.quote-parties{margin:2rem 0}.quote-parties>div{display:grid;gap:.35rem;min-width:220px}.quote-parties small{color:#52606d}.quote-table-wrap{overflow-x:auto}.quote-detail-table{width:100%;margin-top:1rem;border-collapse:collapse}.quote-detail-table th,.quote-detail-table td{padding:.75rem .5rem;border-bottom:1px solid #dfe5eb;text-align:right}.quote-detail-table th:first-child,.quote-detail-table td:first-child{text-align:left}.quote-totals{width:min(360px,100%);margin:2rem 0 2rem auto}.quote-totals div{grid-template-columns:1fr auto;padding:.6rem 0}.quote-totals .quote-total{border-bottom:0;border-top:2px solid #243b53;font-size:1.15rem}.quote-notes{margin-top:2rem;padding-top:1rem;border-top:1px solid #dfe5eb}.quote-notes p{white-space:pre-wrap}.quote-footer{display:flex;flex-wrap:wrap;gap:.5rem 1.25rem;margin-top:2rem;padding-top:1rem;border-top:1px solid #dfe5eb;color:#52606d;font-size:.82rem}.quote-settings-panel{grid-column:1 / -1}.quote-settings-form{grid-template-columns:repeat(2,minmax(0,1fr))}.quote-settings-form .wide{grid-column:1 / -1}.quote-form{grid-template-columns:repeat(2,minmax(0,1fr));padding:1rem;border-radius:12px;background:#f7f5ff}.quote-form .wide{grid-column:1 / -1}.quote-lines{border:1px solid #d8d0f3;border-radius:10px;padding:1rem}.quote-lines legend{padding:0 .4rem;font-weight:700}.quote-line{display:grid;grid-template-columns:2fr .7fr 1fr .7fr auto;gap:.75rem;align-items:end;margin-bottom:1rem}.quote-line label{margin:0}.pipeline-board{display:grid;grid-template-columns:repeat(5,minmax(180px,1fr));gap:.75rem;margin:1.25rem 0;overflow-x:auto}.pipeline-column{min-height:150px;padding:.75rem;border-radius:12px;background:#f4f7fa}.pipeline-column h3{margin:0 0 .75rem;font-size:.9rem}.opportunity-card{display:grid;gap:.45rem;margin-bottom:.65rem;padding:.75rem;border:1px solid #dfe5eb;border-radius:10px;background:#fff}.opportunity-card small{color:#65717e}.opportunity-form{grid-template-columns:repeat(2,minmax(0,1fr));padding:1rem;border-radius:12px;background:#f7f5ff}.opportunity-form .wide{grid-column:1 / -1}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}.panel-heading h2{margin:.25rem 0 0}.customer-filters{display:grid;grid-template-columns:2fr 1fr;gap:1rem;margin:1.25rem 0}.customer-list{display:grid;gap:.75rem}.customer-card{display:flex;justify-content:space-between;gap:1rem;padding:1rem;border:1px solid #e3e8ee;border-radius:12px}.customer-card strong{margin-right:.6rem}.customer-card small{display:block;color:#65717e;margin-top:.35rem}.customer-actions,.form-actions{display:flex;align-items:flex-start;gap:.6rem}.status{display:inline-block;padding:.2rem .5rem;border-radius:999px;font-size:.72rem;font-weight:800;text-transform:uppercase}.status-prospect{color:#6941c6;background:#f0ebff}.status-active{color:#17663a;background:#edf9f1}.status-inactive{color:#52606d;background:#eef1f5}.status-high{color:#9b1c1c;background:#fff0f0}.status-normal{color:#52606d;background:#eef1f5}.status-low{color:#17663a;background:#edf9f1}.customer-form{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-form .wide{grid-column:1 / -1}.activity-form{grid-template-columns:repeat(2,minmax(0,1fr));padding:1rem;border-radius:12px;background:#f7f5ff}.contacts-section{margin:1.25rem 0;padding:1rem;border:1px solid #d8d0f3;border-radius:12px;background:#faf9ff}.contact-list{display:grid;gap:.65rem}.contact-card{display:flex;justify-content:space-between;gap:1rem;padding:.85rem;border:1px solid #e3e8ee;border-radius:10px;background:#fff}.contact-card strong,.contact-card small{display:block;margin-top:.25rem}.contact-card small{color:#65717e;white-space:pre-wrap}.contact-card .status{margin-left:.5rem}.contact-form{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:1rem;padding-top:1rem;border-top:1px solid #d8d0f3}.contact-form h4{grid-column:1 / -1;margin:0}.contact-form .wide{grid-column:1 / -1}.checkbox{display:flex;align-items:center;gap:.6rem}.checkbox input{width:auto}.activity-form .wide{grid-column:1 / -1}.activity-list{display:grid;gap:.75rem;margin-top:1.25rem}.activity-card{display:flex;justify-content:space-between;gap:1rem;padding:1rem;border-left:4px solid #6941c6;border-radius:8px;background:#f7f9fc}.activity-card strong{display:block;margin:.35rem 0}.activity-card small{color:#65717e}.activity-card p{margin:.65rem 0;white-space:pre-wrap}.activity-type{color:#6941c6;font-size:.72rem;font-weight:800;text-transform:uppercase}.member-list{display:grid;gap:.75rem}.member-row{display:grid;grid-template-columns:minmax(220px,1fr) 160px repeat(3,auto);gap:.75rem;align-items:center;padding:.75rem 0;border-bottom:1px solid #edf1f5}.member-row small{display:block;color:#65717e;margin-top:.2rem}@media (max-width: 760px){.app-shell{grid-template-columns:1fr}aside{min-height:auto}.grid,.dashboard-grid,.customer-filters,.follow-up-query-filters,.customer-form,.contact-form,.activity-form,.opportunity-form,.quote-form,.quote-line{grid-template-columns:1fr}.workspace{padding:1.5rem}.workspace header,.customer-card,.contact-card,.activity-card,.follow-up-card,.quote-card,.quote-document-header,.quote-parties{flex-direction:column;align-items:stretch}.quote-actions{align-items:stretch}.quote-actions select{flex:1}.quote-detail-overlay{padding:0}.quote-detail-document{min-height:100vh;padding:1.25rem}.member-row{grid-template-columns:1fr}.customer-form .wide,.contact-form .wide,.activity-form .wide,.opportunity-form .wide,.quote-form .wide{grid-column:auto}}@media print{body{background:#fff}.app-shell>aside,.workspace>header,.workspace>section>:not(.quote-detail-overlay),.quote-detail-actions{display:none!important}.app-shell,.workspace,.workspace>section{display:block;padding:0}.quote-detail-overlay{position:static;overflow:visible;padding:0;background:#fff}.quote-detail-document{width:100%;min-height:0;padding:0;box-shadow:none}}.quote-document-header small{display:block;margin-top:.2rem;color:#52606d}.compact-customers{grid-column:1 / -1}.customer-header-actions,.customer-actions{display:flex;flex-wrap:wrap;gap:.5rem}.compact-customers .panel-heading small{color:#65717e}.compact-customers .customer-filters{display:flex;align-items:end;gap:.75rem;margin:1.25rem 0}.compact-customers .customer-filters label:first-child{flex:1 1 260px}.compact-customers .customer-filters label:not(:first-child){min-width:150px}.customer-table{width:100%;border-collapse:collapse}.customer-table th,.customer-table td{padding:.8rem .65rem;border-bottom:1px solid #edf1f5;text-align:left;vertical-align:middle}.customer-table th{color:#65717e;font-size:.75rem;text-transform:uppercase;letter-spacing:.06em}.customer-table td small,.customer-mobile-card small,.contact-card small{display:block;color:#65717e;margin-top:.2rem}.customer-tag-list{display:flex;flex-wrap:wrap;gap:.35rem}.customer-card-list{display:none}.customers-empty{padding:2.25rem 1rem;color:#65717e;text-align:center}.customer-overlay{position:fixed;z-index:60;top:0;right:0;bottom:0;left:0;display:flex;justify-content:flex-end;background:#1f2d3d7a}.customer-drawer,.customer-dialog{display:flex;flex-direction:column;width:min(560px,100vw);height:100dvh;overflow:auto;padding:1.25rem;background:#fff;box-shadow:-12px 0 32px #1f2d3d33}.customer-dialog{width:min(520px,calc(100vw - 2rem));height:auto;max-height:calc(100dvh - 2rem);margin:auto;border-radius:16px;box-shadow:0 18px 44px #1f2d3d40}.customer-drawer>header,.customer-dialog>header{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding-bottom:1rem;border-bottom:1px solid #edf1f5}.customer-drawer form{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-drawer form .wide{grid-column:1 / -1}.customer-drawer form footer{grid-column:1 / -1;display:flex;gap:.75rem}.customer-drawer.customer-dossier{width:min(760px,100vw);padding:0}.customer-dossier>header{padding:1.25rem}.dossier-tabs{display:flex;gap:.25rem;padding:0 1.25rem;border-bottom:1px solid #edf1f5}.dossier-tabs button{color:#52606d;background:transparent;border-radius:0;border-bottom:3px solid transparent}.dossier-tabs button[aria-selected=true]{color:#5b3cc4;border-bottom-color:#5b3cc4}.dossier-body{padding:1.25rem}.dossier-body dl{gap:.75rem}.dossier-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.dossier-form{margin-top:1rem;padding:1rem;border:1px solid #d8d0f3;border-radius:12px;background:#faf9ff}.tag-manager-list{display:grid;gap:.5rem;margin-top:1rem}.tag-manager-list>div{display:flex;align-items:center;gap:.5rem;padding-bottom:.5rem;border-bottom:1px solid #edf1f5}@media (max-width: 760px){.compact-customers .customer-filters{display:grid;grid-template-columns:1fr;align-items:stretch}.compact-customers .customer-filters label:first-child,.compact-customers .customer-filters label:not(:first-child){min-width:0}.customer-table{display:none}.customer-card-list{display:grid;gap:.75rem}.customer-mobile-card{display:grid;gap:.55rem;padding:1rem;border:1px solid #dfe5eb;border-radius:12px}.customer-mobile-card .customer-actions{margin-top:.25rem}.customer-drawer form{grid-template-columns:1fr}.customer-drawer form .wide{grid-column:auto}.customer-drawer.customer-dossier{width:100vw}.dossier-toolbar{align-items:stretch;flex-direction:column}}@media print{@page{size:A4;margin:10mm}.quote-detail-document{font-size:10pt}.quote-document-header{padding-bottom:1rem}.quote-document-header h2{font-size:1.7rem}.quote-parties{margin:1rem 0}.quote-detail-table{margin-top:.5rem}.quote-detail-table th,.quote-detail-table td{padding:.45rem .35rem}.quote-totals{margin:1rem 0 1rem auto}.quote-notes{margin-top:1rem;padding-top:.5rem}.quote-footer{break-inside:avoid;margin-top:1rem;padding-top:.5rem}}:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;color:#182c3f;background:#f3f6f9;--crm-ink: #182c3f;--crm-muted: #647589;--crm-line: #e0e7ee;--crm-accent: #087d78;--crm-accent-dark: #06645f}@media screen{body{color:var(--crm-ink)}h1,h2,h3{letter-spacing:-.035em}h1{font-size:1.7rem}h2{font-size:1.2rem}h3{font-size:1rem}button{background:var(--crm-accent);border-radius:7px;padding:.65rem .9rem;font-weight:650;font-size:.85rem;transition:background .15s,box-shadow .15s}button:hover{background:var(--crm-accent-dark)}button:focus-visible{outline:3px solid #63b9b4;outline-offset:3px}button.secondary{border:1px solid var(--crm-line);background:#fff;color:#31465a}button.secondary:hover{background:#f0f5f8;border-color:#b7c6d1}button.danger{background:#fff3f2;color:#9e2823;border:1px solid #f2d5d3}button.danger:hover{background:#ffe7e5}button.link{color:var(--crm-accent)}input,select,textarea{border-color:#cdd7e0;border-radius:7px;padding:.65rem .75rem;color:var(--crm-ink);min-height:40px}input:focus,select:focus,textarea:focus{outline:3px solid #d5eeeb;border-color:var(--crm-accent)}label{color:#405467;font-size:.8rem;font-weight:650;gap:.35rem}.eyebrow{color:var(--crm-accent);font-size:.67rem;letter-spacing:.1em;font-weight:700}.app-shell{grid-template-columns:236px minmax(0,1fr)}aside.crm-sidebar{background:#142b3d;padding:1.55rem 1rem;gap:1.2rem}.crm-brand{display:flex;gap:.75rem;align-items:center;padding:.15rem .5rem 1.1rem}.crm-brand-mark{display:grid;place-items:center;width:36px;height:36px;flex:0 0 36px;border-radius:10px;background:#0c837d;color:#fff}.crm-brand .eyebrow{color:#fff;letter-spacing:-.025em;text-transform:none;font-size:1.05rem}.crm-brand p{color:#9bb1c1;margin:.2rem 0 0;font-size:.72rem}.crm-navigation{border-color:#294355;gap:.3rem;padding-bottom:1.25rem}.crm-navigation button{display:flex;align-items:center;gap:.8rem;min-height:44px;padding:.7rem .85rem;font-size:.83rem;font-weight:550;color:#afc2d0;border:1px solid transparent}.crm-navigation button.active{background:#20485a;color:#fff;border-color:#2c5b68}.crm-navigation button:hover{background:#203d50;color:#fff}.crm-nav-icon{width:18px;height:18px;opacity:.9;flex-shrink:0}.crm-navigation button.active .crm-nav-icon{color:#5cdbca}.crm-sidebar-label{color:#8ea8ba;font-size:.64rem;letter-spacing:.12em;text-transform:uppercase;padding:.15rem .8rem}.organization-navigation{gap:.35rem}.organization-navigation button{font-weight:600;padding:.7rem .85rem;color:#b9cad6;border:1px solid transparent}.organization-navigation button.active{color:#fff;background:#1c394d;border-color:#2b4a5e}.organization-navigation small{font-size:.68rem;color:#9bb1c1;font-weight:450}.sidebar-user{padding:0 .8rem;font-size:.69rem;color:#9bb1c1}.signout{color:#c5d3dc;background:transparent;border:1px solid #345064;font-size:.77rem}.signout:hover{background:#203d50}.workspace{padding:1.7rem 2rem 2.2rem;min-width:0}.workspace>header{align-items:center;padding-bottom:1.25rem;margin-bottom:1.25rem;border-bottom:1px solid var(--crm-line)}.workspace h1{margin-top:.3rem}.user{font-size:.78rem;color:var(--crm-muted)}.grid{gap:1rem}.panel{border-color:var(--crm-line);border-radius:12px;padding:1.25rem;box-shadow:0 2px 5px #182c3f06}.panel-heading{gap:1rem}.panel-heading>span,.panel-heading small{color:var(--crm-muted);font-size:.76rem;font-weight:450}.dashboard-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:.85rem}.metric-card{background:#f9fbfc;border:1px solid var(--crm-line);min-height:118px;padding:1.2rem;border-radius:10px;position:relative}.metric-card:before{content:"";height:3px;width:26px;background:var(--crm-accent);border-radius:2px;position:absolute;top:0;left:1.2rem}.metric-card span{font-size:.8rem;color:#657589}.metric-card strong{font-size:1.85rem;font-weight:650;letter-spacing:-.045em;color:var(--crm-ink)}form{gap:.85rem;margin-top:1.2rem}.compact-customers .customer-filters{padding:.95rem;margin:1.1rem 0;background:#f7f9fb;border:1px solid #e8eef3;border-radius:9px}.customer-table th{background:#f9fbfc;font-size:.65rem;color:#738397;font-weight:650;letter-spacing:.08em;padding:.7rem .65rem}.customer-table td{padding:.85rem .65rem;font-size:.82rem}.customer-table tbody tr:hover{background:#fafcfd}.customer-table td strong{font-weight:650}.customer-actions button{padding:.45rem .65rem;font-size:.74rem}.status{font-size:.62rem;font-weight:650;letter-spacing:.025em;padding:.28rem .5rem}.status-prospect{color:#376da0;background:#edf4fc}.status-active{color:#166b51;background:#eaf7f0}.quote-card{border-radius:9px;padding:.95rem 1rem}.quote-card strong{font-size:.9rem;font-weight:650}.quote-card small{font-size:.76rem}.quote-card:hover{border-color:#bbcbd7;background:#fcfdfd}.quote-form,.opportunity-form,.activity-form,.dossier-form{background:#f6f9fb;border:1px solid var(--crm-line);border-radius:9px;padding:1.1rem}.quote-lines{background:#fff;border-color:var(--crm-line);border-radius:8px}.quote-lines legend{color:#405467;font-size:.8rem}.quote-line{gap:.6rem}.quote-form>button{justify-self:start}.quote-settings-form>button{justify-self:start}.quote-detail-overlay{background:#0e233399;padding:2rem}.quote-detail-document{border-radius:12px;min-height:auto;padding:2.5rem}.quote-document-header{border-bottom-color:var(--crm-accent)}.quote-document-header h2{font-size:1.85rem}.quote-parties{margin:1.7rem 0}.quote-detail-table th{color:#647589;background:#f7f9fb;font-size:.75rem}.quote-detail-table td{font-size:.83rem}.quote-totals .quote-total{color:var(--crm-accent-dark);border-top-color:var(--crm-accent)}.follow-up-filters button{border-radius:6px;font-size:.77rem}.follow-up-query-filters{grid-template-columns:repeat(3,minmax(0,1fr))}.follow-up-query-filters>label:first-child{grid-column:span 2}.follow-up-card,.activity-card{background:#f7fafb;border-left-color:var(--crm-accent);border-radius:8px;font-size:.85rem}.activity-type{color:var(--crm-accent);font-size:.64rem}.pipeline-board{grid-template-columns:repeat(5,minmax(160px,1fr));gap:.7rem}.pipeline-column{background:#f3f6f9;border:1px solid #e8edf2;border-radius:9px}.pipeline-column h3{color:#546779;font-size:.77rem;font-weight:650}.opportunity-card{border-radius:8px;box-shadow:0 2px 3px #182c3f09;font-size:.79rem}.opportunity-card select{min-height:32px;padding:.35rem .55rem;font-size:.75rem}.customer-overlay{background:#0e233380}.customer-drawer>header,.customer-dialog>header{margin-bottom:0}.customer-drawer{box-shadow:-8px 0 30px #142b3d1f}.dossier-tabs button{font-size:.8rem;padding:.9rem .7rem}.dossier-tabs button[aria-selected=true]{color:var(--crm-accent);border-bottom-color:var(--crm-accent);background:#f5faf9}.dossier-body{padding:1.5rem}.dossier-toolbar h3{margin-bottom:0}.contacts-section{border-color:var(--crm-line);background:#f7fafb}.contact-form{border-top-color:var(--crm-line)}.message{color:#146358;background:#edf8f4;border:1px solid #d5ebe2;font-size:.82rem}.error{color:#8a1c1c;background:#fff0f0;border-color:#f2d5d3}.preview-banner{background:#eaf3f5;border-bottom:1px solid #d1e2e6;color:#345469;padding:.65rem 1.25rem;gap:.85rem;font-size:.72rem}.preview-banner strong{font-size:.75rem;font-weight:650}.preview-banner span{min-width:160px}.preview-banner button{background:transparent;color:#285568;padding:.35rem .55rem;border:1px solid #bdced6;font-size:.7rem}.preview-banner button:hover{background:#dbeaec}.preview-guide{color:#52697c;font-size:.76rem!important;padding:.6rem 1.25rem!important;background:#f9fbfc!important}.preview-guide summary{cursor:pointer;font-weight:550}.auth-shell{background:#f3f6f9}.auth-card{border-radius:14px;box-shadow:0 12px 35px #182c3f12}}@media screen and (max-width: 1000px) and (min-width: 761px){.app-shell{grid-template-columns:210px minmax(0,1fr)}.workspace{padding:1.35rem}.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quote-line{grid-template-columns:2fr 1fr 1fr}.quote-line label:first-child{grid-column:1 / -1}.member-row{grid-template-columns:minmax(0,1fr) 140px}}@media screen and (max-width: 760px){.app-shell{grid-template-columns:minmax(0,1fr)}aside.crm-sidebar{padding:1rem;gap:.7rem}.crm-brand{padding:0 0 .4rem}.crm-brand p{margin-top:.1rem}.crm-navigation{grid-template-columns:repeat(3,minmax(0,1fr));gap:.35rem;padding-bottom:.6rem}.crm-navigation button{padding:.55rem .3rem;min-height:40px;gap:.35rem;font-size:.67rem;justify-content:center;white-space:normal}.crm-nav-icon{width:15px;height:15px}.crm-sidebar-label{display:none}.organization-navigation{grid-template-columns:repeat(2,minmax(0,1fr))}.organization-navigation button{padding:.5rem .7rem;font-size:.74rem}.organization-navigation small{font-size:.61rem}.sidebar-user{display:none}.signout{padding:.4rem .7rem;margin-top:0;width:auto;justify-self:end;align-self:flex-end;font-size:.67rem}.workspace{padding:1.1rem .85rem}.workspace>header{flex-direction:row;align-items:center;gap:.6rem;padding-bottom:.9rem;margin-bottom:.9rem}.workspace h1{font-size:1.35rem}.user{font-size:.65rem;overflow-wrap:anywhere;text-align:right;max-width:130px}.panel{padding:1rem;border-radius:10px}.panel-heading{align-items:flex-start;flex-wrap:wrap;gap:.65rem}.customer-header-actions{width:100%}.customer-header-actions button{flex:1}.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.metric-card{min-height:96px;padding:.85rem}.metric-card:before{left:.85rem}.metric-card span{font-size:.66rem}.metric-card strong{font-size:1.4rem}.follow-up-query-filters,.quote-settings-form{grid-template-columns:minmax(0,1fr)}.follow-up-query-filters>label:first-child{grid-column:auto}.quote-settings-form .wide{grid-column:auto}.quote-actions{width:100%;flex-wrap:wrap}.quote-card select{min-width:0}.quote-form,.opportunity-form,.activity-form{padding:.85rem}.quote-line{grid-template-columns:minmax(0,1fr)}.quote-detail-overlay{padding:.6rem}.quote-detail-document{padding:1.1rem;border-radius:9px;min-height:auto}.quote-parties>div{min-width:0}.quote-parties{gap:1rem}.quote-detail-table{min-width:410px}.quote-detail-actions{flex-wrap:wrap}.quote-detail-actions button{font-size:.75rem}.customer-drawer form{grid-template-columns:minmax(0,1fr)}.customer-drawer form .wide{grid-column:auto}.contact-card,.activity-card,.follow-up-card{min-width:0}.member-row{grid-template-columns:minmax(0,1fr)}.preview-banner{padding:.6rem .85rem;gap:.5rem}.preview-banner strong{width:100%}.preview-banner span{flex-basis:100%;font-size:.68rem}}@media print{.preview-banner,.preview-guide{display:none!important}}@media (prefers-reduced-motion: reduce){button{transition:none}}.crm-view-appointments>:not(.appointments-panel){display:none}.appointments-panel{grid-column:1/-1}.appointment-filters,.appointment-form{display:flex;flex-wrap:wrap;gap:16px;align-items:end}.appointment-form{padding:20px;background:#f4f7f9;border:1px solid #dce4e9;border-radius:8px;margin:20px 0}.appointment-form h3{width:100%;margin:0}.appointment-form label{flex:1;min-width:180px}.appointment-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.appointment-card{border:1px solid #dce4e9;border-radius:8px;padding:20px;background:#fff}.appointment-card h3{margin:0}.appointment-card p{margin:10px 0}.appointment-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.appointment-notice{padding:12px;background:#fff8e8;border-left:3px solid #c59030}@media (max-width:700px){.appointment-list{grid-template-columns:1fr}.appointment-filters>*{max-width:100%}.appointment-form{padding:14px}}
