*{box-sizing:border-box}@media (width<=900px){.crm-topbar,.crm-shell.is-sidebar-collapsed .crm-topbar{left:0;right:0}.crm-content{padding-top:92px}}@media (width<=620px){.crm-dashboard-page{flex-direction:column;display:flex}.crm-dashboard-page>.crm-quick-panel{order:1}.crm-dashboard-page>.crm-page-heading{order:2}.crm-dashboard-page>.alert{order:3}.crm-dashboard-page>.crm-kpi-grid{order:4}.crm-dashboard-page>.crm-dashboard-overview{order:5}.crm-dashboard-page>.crm-recent-grid{order:6}.crm-dashboard-page .crm-page-heading .crm-primary-action{display:none}.crm-dashboard-page .crm-page-heading{margin:4px 2px 18px}.crm-dashboard-page .crm-page-heading h1{font-size:28px}.crm-dashboard-page .crm-quick-panel{background:#ffffffeb;border:1px solid #e2e8f0f2;border-radius:16px;margin:0 0 20px;padding:6px;overflow:hidden;box-shadow:0 7px 22px #0f172a0f}.crm-dashboard-page .crm-quick-panel .crm-panel-heading{display:none}.crm-dashboard-page .crm-quick-grid{grid-template-columns:repeat(4,minmax(72px,1fr));gap:4px;display:grid}.crm-dashboard-page .crm-quick-link{text-align:center;min-height:67px;box-shadow:none;border:0;border-radius:12px;flex-direction:column;justify-content:center;gap:5px;padding:7px 4px;display:flex}.crm-dashboard-page .crm-quick-link:active{background:#eff6ff;transform:scale(.97)}.crm-dashboard-page .crm-quick-link>span{border-radius:9px;flex:0 0 29px;width:29px;height:29px}.crm-dashboard-page .crm-quick-link>span svg{width:17px;height:17px}.crm-dashboard-page .crm-quick-link strong{text-overflow:clip;white-space:normal;width:100%;font-size:9px;line-height:1.15;overflow:visible}.crm-dashboard-page .crm-quick-link>svg{display:none}.crm-dashboard-page .crm-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:16px}.crm-dashboard-page .crm-kpi-card{border-radius:16px;flex-direction:column;gap:9px;min-height:132px;padding:13px;display:flex}.crm-dashboard-page .crm-kpi-icon{border-radius:11px;flex-basis:35px;width:35px;height:35px}.crm-dashboard-page .crm-kpi-icon svg{width:18px;height:18px}.crm-dashboard-page .crm-kpi-copy>span{text-overflow:clip;white-space:normal;min-height:28px;font-size:10px;line-height:1.35;overflow:visible}.crm-dashboard-page .crm-kpi-copy>strong{text-overflow:clip;white-space:normal;overflow-wrap:anywhere;margin:2px 0;font-size:clamp(17px,5vw,21px);overflow:visible}.crm-dashboard-page .crm-kpi-copy>small{text-overflow:clip;white-space:normal;font-size:9px;line-height:1.3;overflow:visible}}:root{--crm-primary:#2563eb;--crm-primary-dark:#1d4ed8;--crm-primary-soft:#eff6ff;--crm-ink:#172033;--crm-muted:#6b7280;--crm-border:#e5e9f2;--crm-surface:#fff;--crm-background:#f6f8fc;--crm-sidebar:#101827;--crm-sidebar-muted:#8e9aaf;--crm-shadow:0 12px 35px #19264412}.crm-shell{background:var(--crm-background);min-height:100vh}.crm-sidebar{z-index:220;color:#fff;background:radial-gradient(circle at 15% 0%, #2563eb33, transparent 30%), var(--crm-sidebar);flex-direction:column;width:260px;padding:24px 18px;transition:width .22s,transform .22s;display:flex;position:fixed;inset:0 auto 0 0}.crm-sidebar-brand{align-items:center;gap:12px;min-height:48px;padding:0 8px;display:flex}.crm-brand-mark{background:linear-gradient(135deg,#3b82f6,#1d4ed8);border-radius:13px;flex:0 0 40px;place-items:center;width:40px;height:40px;font-size:18px;font-weight:900;display:grid;box-shadow:0 9px 22px #2563eb52}.crm-brand-copy{white-space:nowrap;flex-direction:column;gap:3px;min-width:0;display:flex;overflow:hidden}.crm-brand-copy strong{color:#fff;text-overflow:ellipsis;font-size:16px;line-height:1.2;overflow:hidden}.crm-brand-copy span{color:var(--crm-sidebar-muted);font-size:12px}.crm-sidebar-label{color:#64748b;letter-spacing:.12em;text-transform:uppercase;white-space:nowrap;margin:33px 12px 10px;font-size:10px;font-weight:800}.crm-sidebar-nav{flex-direction:column;gap:6px;display:flex}.crm-nav-link,.crm-collapse-button{color:#aeb8c9;white-space:nowrap;background:0 0;border:0;border-radius:12px;align-items:center;gap:13px;min-height:45px;padding:11px 13px;font-size:14px;font-weight:700;transition:color .16s,background .16s,transform .16s;display:flex}.crm-nav-link:hover,.crm-nav-link.is-active{color:#fff;background:#ffffff16}.crm-nav-link.is-active{box-shadow:inset 3px 0 #60a5fa}.crm-nav-link svg,.crm-collapse-button svg{flex:none}.crm-sidebar-footer{margin-top:auto;padding-top:24px}.crm-collapse-button{cursor:pointer;width:100%}.crm-collapse-button:hover{color:#fff;background:#ffffff0f}.crm-mobile-close,.crm-menu-button,.crm-sidebar-overlay{display:none}.crm-workspace{min-height:100vh;margin-left:260px;transition:margin-left .22s}.crm-topbar{z-index:120;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#ffffffeb;border-bottom:1px solid #e2e8f0e6;justify-content:space-between;align-items:center;gap:20px;min-height:76px;padding:0 34px;display:flex;position:sticky;top:0}.crm-topbar-left{align-items:center;gap:14px;display:flex}.crm-topbar-left>div{flex-direction:column;gap:2px;display:flex}.crm-company-kicker{color:#8a94a7;letter-spacing:.05em;text-transform:uppercase;font-size:11px;font-weight:800}.crm-topbar-left strong{color:var(--crm-ink);font-size:16px}.crm-profile-wrap{position:relative}.crm-profile-button{color:var(--crm-ink);background:0 0;border:1px solid #0000;border-radius:13px;align-items:center;gap:10px;padding:7px 9px;display:flex}.crm-profile-button:hover{border-color:var(--crm-border);background:#f8fafc}.crm-profile-button>svg{color:#9ca3af;transform:rotate(90deg)}.crm-avatar{color:#1d4ed8;background:#dbeafe;border-radius:12px;place-items:center;width:38px;height:38px;font-size:13px;font-weight:900;display:grid}.crm-profile-copy{flex-direction:column;align-items:flex-start;gap:2px;min-width:125px;display:flex}.crm-profile-copy strong{text-overflow:ellipsis;white-space:nowrap;max-width:170px;font-size:13px;overflow:hidden}.crm-profile-copy small{color:#8a94a7;text-overflow:ellipsis;white-space:nowrap;max-width:170px;font-size:11px;overflow:hidden}.crm-profile-menu{border:1px solid var(--crm-border);background:#fff;border-radius:16px;width:225px;position:absolute;top:calc(100% + 10px);right:0;overflow:hidden;box-shadow:0 18px 45px #0f172a24}.crm-profile-menu-heading{border-bottom:1px solid var(--crm-border);flex-direction:column;gap:3px;padding:15px 16px;display:flex}.crm-profile-menu-heading strong{color:var(--crm-ink);font-size:13px}.crm-profile-menu-heading span{color:var(--crm-muted);font-size:12px}.crm-profile-menu button{color:#b91c1c;background:#fff;border:0;align-items:center;gap:10px;width:100%;padding:13px 16px;font-size:13px;font-weight:800;display:flex}.crm-profile-menu button:hover{background:#fef2f2}.crm-content{width:100%;max-width:1600px;margin:0 auto;padding:30px 34px 48px}.crm-shell.is-sidebar-collapsed .crm-sidebar{width:82px}.crm-shell.is-sidebar-collapsed .crm-workspace{margin-left:82px}.crm-shell.is-sidebar-collapsed .crm-brand-copy,.crm-shell.is-sidebar-collapsed .crm-sidebar-label,.crm-shell.is-sidebar-collapsed .crm-nav-link span,.crm-shell.is-sidebar-collapsed .crm-collapse-button span{opacity:0;width:0;overflow:hidden}.crm-shell.is-sidebar-collapsed .crm-nav-link,.crm-shell.is-sidebar-collapsed .crm-collapse-button{justify-content:center;padding-left:0;padding-right:0}.crm-shell.is-sidebar-collapsed .crm-sidebar-brand{justify-content:center;padding:0}.crm-page-heading{justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:24px;display:flex}.crm-eyebrow{color:var(--crm-primary);letter-spacing:.08em;text-transform:uppercase;margin-bottom:7px;font-size:11px;font-weight:900;display:block}.crm-page-heading h1{color:var(--crm-ink);letter-spacing:-.035em;margin:0;font-size:clamp(28px,3vw,38px)}.crm-page-heading p{color:var(--crm-muted);margin:7px 0 0;font-size:14px}.crm-primary-action,.crm-secondary-action{border:0;border-radius:12px;justify-content:center;align-items:center;gap:9px;min-height:44px;padding:10px 16px;font-size:13px;font-weight:850;display:inline-flex}.crm-primary-action{color:#fff;background:var(--crm-primary);box-shadow:0 9px 20px #2563eb33}.crm-primary-action:hover{background:var(--crm-primary-dark);transform:translateY(-1px)}.crm-secondary-action{color:#344054;background:#f3f5f9}.crm-secondary-action:hover{background:#e9edf4}.crm-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px;display:grid}.crm-kpi-card{border:1px solid var(--crm-border);background:var(--crm-surface);border-radius:17px;align-items:flex-start;gap:14px;min-width:0;padding:20px;display:flex;box-shadow:0 7px 22px #1926440a}.crm-kpi-icon{width:43px;height:43px;color:var(--crm-primary);background:var(--crm-primary-soft);border-radius:13px;flex:0 0 43px;place-items:center;display:grid}.crm-kpi-card.is-danger .crm-kpi-icon{color:#dc2626;background:#fef2f2}.crm-kpi-card.is-warning .crm-kpi-icon{color:#d97706;background:#fffbeb}.crm-kpi-card.is-success .crm-kpi-icon{color:#059669;background:#ecfdf5}.crm-kpi-copy{flex-direction:column;min-width:0;display:flex}.crm-kpi-copy>span{color:var(--crm-muted);text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:700;overflow:hidden}.crm-kpi-copy>strong{color:var(--crm-ink);letter-spacing:-.035em;text-overflow:ellipsis;white-space:nowrap;margin:6px 0 3px;font-size:clamp(20px,2vw,26px);overflow:hidden}.crm-kpi-copy>small{color:#97a0af;text-overflow:ellipsis;white-space:nowrap;font-size:11px;overflow:hidden}.crm-dashboard-overview{grid-template-columns:minmax(0,1.65fr) minmax(280px,.75fr);gap:18px;margin-bottom:18px;display:grid}.crm-panel{border:1px solid var(--crm-border);background:var(--crm-surface);min-width:0;box-shadow:var(--crm-shadow);border-radius:18px;padding:22px}.crm-panel-heading{justify-content:space-between;align-items:flex-start;gap:16px;min-height:44px;margin-bottom:20px;display:flex}.crm-panel-heading h2{color:var(--crm-ink);letter-spacing:-.015em;margin:0;font-size:17px}.crm-panel-heading p{color:var(--crm-muted);margin:5px 0 0;font-size:12px}.crm-panel-heading a{color:var(--crm-primary);white-space:nowrap;align-items:center;gap:3px;font-size:12px;font-weight:850;display:inline-flex}.crm-billing-content{grid-template-columns:185px minmax(0,1fr);align-items:center;gap:30px;min-height:180px;display:grid}.crm-donut{--paid:0%;--pending:0%;background:conic-gradient(#10b981 0 var(--paid), #3b82f6 var(--paid) var(--pending), #dce2ea var(--pending) 100%);border-radius:50%;place-items:center;width:162px;height:162px;display:grid;box-shadow:inset 0 0 0 1px #0f172a08}.crm-donut:before{content:"";background:#fff;border-radius:50%;width:112px;height:112px;position:absolute}.crm-donut{position:relative}.crm-donut>div{z-index:1;flex-direction:column;align-items:center;display:flex;position:relative}.crm-donut strong{color:var(--crm-ink);letter-spacing:-.04em;font-size:26px}.crm-donut span{color:var(--crm-muted);font-size:11px}.crm-chart-legend{flex-direction:column;display:flex}.crm-chart-legend>div{border-bottom:1px solid #eef1f5;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:50px;display:grid}.crm-chart-legend>div:last-child{border-bottom:0}.crm-chart-legend>div>span{border-radius:50%;width:9px;height:9px}.crm-chart-legend .is-green{background:#10b981}.crm-chart-legend .is-blue{background:#3b82f6}.crm-chart-legend .is-gray{background:#cbd5e1}.crm-chart-legend p{color:#344054;flex-direction:column;margin:0;font-size:12px;font-weight:800;display:flex}.crm-chart-legend small{color:#98a2b3;margin-top:2px;font-size:10px;font-weight:500}.crm-chart-legend strong{color:var(--crm-ink);font-size:15px}.crm-company-card{flex-direction:column;align-items:flex-start;display:flex}.crm-company-icon{color:#fff;background:linear-gradient(135deg,#172033,#31405f);border-radius:15px;place-items:center;width:48px;height:48px;margin-bottom:20px;display:grid}.crm-company-card h2{color:var(--crm-ink);margin:0;font-size:22px}.crm-company-card>p{color:var(--crm-muted);margin:8px 0 18px;font-size:12px;line-height:1.55}.crm-company-details{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;margin-bottom:18px;display:grid}.crm-company-details>div{background:#f7f9fc;border-radius:12px;flex-direction:column;gap:4px;padding:12px;display:flex}.crm-company-details span{color:#8a94a7;font-size:10px;font-weight:700}.crm-company-details strong{color:var(--crm-ink);font-size:14px}.crm-company-card .crm-secondary-action{width:100%;margin-top:auto}.crm-recent-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px;display:grid}.crm-recent-panel{padding-bottom:12px}.crm-table-wrap{width:100%;overflow-x:auto}.crm-table{border-collapse:collapse;table-layout:fixed;width:100%}.crm-table th,.crm-table td{text-align:left;text-overflow:ellipsis;white-space:nowrap;border-bottom:1px solid #edf0f4;padding:12px 8px;overflow:hidden}.crm-table th{color:#98a2b3;letter-spacing:.04em;text-transform:uppercase;font-size:10px;font-weight:850}.crm-table td{color:#4b5565;font-size:12px}.crm-table td strong{color:var(--crm-ink);font-weight:800}.crm-table .is-numeric{text-align:right}.crm-table th:first-child{width:24%}.crm-table th:nth-child(2){width:27%}.crm-table th:nth-child(3){width:25%}.crm-table th:nth-child(4){width:24%}.crm-table .status-badge{text-overflow:ellipsis;white-space:nowrap;max-width:100%;padding:5px 8px;font-size:9px;overflow:hidden}.crm-empty-state{color:#98a2b3;place-items:center;min-height:150px;font-size:13px;display:grid}.crm-quick-panel .crm-panel-heading{margin-bottom:14px}.crm-quick-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}.crm-quick-link{border:1px solid var(--crm-border);min-width:0;color:var(--crm-ink);background:#fff;border-radius:13px;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px;transition:border-color .16s,box-shadow .16s,transform .16s;display:grid}.crm-quick-link:hover{border-color:#bfdbfe;transform:translateY(-1px);box-shadow:0 8px 18px #2563eb14}.crm-quick-link>span{width:38px;height:38px;color:var(--crm-primary);background:var(--crm-primary-soft);border-radius:11px;place-items:center;display:grid}.crm-quick-link strong{text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.crm-quick-link>svg{color:#a5adba}.crm-dashboard-loading{min-height:calc(100vh - 170px);color:var(--crm-muted);justify-content:center;align-items:center;gap:11px;font-size:14px;display:flex}.crm-spinner{border:3px solid #dbeafe;border-top-color:var(--crm-primary);border-radius:50%;width:22px;height:22px;animation:.75s linear infinite crm-spin}@keyframes crm-spin{to{transform:rotate(360deg)}}@media (width<=1180px){.crm-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.crm-dashboard-overview{grid-template-columns:minmax(0,1.35fr) minmax(260px,.8fr)}.crm-recent-grid{grid-template-columns:1fr}}@media (width<=900px){.crm-sidebar{width:min(290px,86vw);transform:translate(-102%)}.crm-sidebar.is-mobile-open{transform:translate(0)}.crm-sidebar.is-collapsed{width:min(290px,86vw)}.crm-sidebar-overlay{z-index:210;opacity:0;pointer-events:none;background:#0f172a80;border:0;transition:opacity .2s;display:block;position:fixed;inset:0}.crm-sidebar-overlay.is-visible{opacity:1;pointer-events:auto}.crm-mobile-close,.crm-menu-button{border:0;border-radius:11px;place-items:center;width:40px;height:40px;display:grid}.crm-mobile-close{color:#aeb8c9;background:#ffffff0f;margin-left:auto}.crm-menu-button{color:var(--crm-ink);background:#f1f5f9}.crm-workspace,.crm-shell.is-sidebar-collapsed .crm-workspace{margin-left:0}.crm-shell.is-sidebar-collapsed .crm-brand-copy,.crm-shell.is-sidebar-collapsed .crm-sidebar-label,.crm-shell.is-sidebar-collapsed .crm-nav-link span,.crm-shell.is-sidebar-collapsed .crm-collapse-button span{opacity:1;width:auto;overflow:visible}.crm-shell.is-sidebar-collapsed .crm-nav-link,.crm-shell.is-sidebar-collapsed .crm-collapse-button{justify-content:flex-start;padding:11px 13px}.crm-shell.is-sidebar-collapsed .crm-sidebar-brand{justify-content:flex-start;padding:0 8px}.crm-collapse-button{display:none}.crm-topbar{min-height:68px;padding:0 18px}.crm-content{padding:24px 18px 40px}.crm-profile-copy{display:none}.crm-dashboard-overview{grid-template-columns:1fr}.crm-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=620px){.crm-topbar-left>div{display:none}.crm-content{padding:20px 14px 34px}.crm-page-heading{flex-direction:column;align-items:flex-start;gap:16px}.crm-page-heading p{line-height:1.5}.crm-primary-action{width:100%}.crm-kpi-grid{grid-template-columns:1fr;gap:12px}.crm-kpi-card{padding:16px}.crm-billing-content{grid-template-columns:1fr;justify-items:center;gap:20px}.crm-chart-legend{width:100%}.crm-company-details,.crm-quick-grid{grid-template-columns:1fr}.crm-panel{padding:17px}.crm-panel-heading{align-items:flex-start}.crm-table{min-width:570px}}html,body,#root{width:100%;min-height:100%}html,body{overflow-x:hidden}body{color:#111827;background:#f4f6f8;margin:0;font-family:Inter,system-ui,Arial,sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font-family:inherit}button{cursor:pointer}.alert{border-radius:12px;margin-bottom:18px;padding:12px 14px;font-size:14px}.alert.error{color:#991b1b;background:#fee2e2}.alert.success{color:#166534;background:#dcfce7}.loading-page{color:#374151;place-items:center;min-height:100vh;font-size:18px;display:grid}.auth-page{background:radial-gradient(circle at 0 0,#dbeafe,#0000 35%),linear-gradient(135deg,#f8fafc,#eef2ff);justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex}.auth-card{background:#fff;border-radius:22px;width:100%;max-width:430px;padding:32px;box-shadow:0 24px 70px #0f172a1f}.auth-card.large{max-width:850px}.auth-header{margin-bottom:24px}.auth-header h1{color:#111827;margin:0;font-size:32px}.auth-header p{color:#6b7280;margin:8px 0 0}.auth-footer{text-align:center;color:#6b7280;margin-top:22px}.auth-footer a{color:#2563eb;font-weight:700}.form{flex-direction:column;gap:18px;display:flex}.form h3{color:#374151;margin:10px 0 0}.form label,.form-grid label{color:#374151;margin-bottom:6px;font-size:14px;font-weight:600;display:block}.form input,.form select,.form textarea,.form-grid input,.form-grid select,.form-grid textarea,.toolbar input,.toolbar-select,.settings-section input[type=text],.settings-section input[type=number],.settings-section input[type=email],.settings-section select,.settings-section textarea{background:#fff;border:1px solid #d1d5db;border-radius:12px;outline:none;width:100%;padding:12px 14px;font-size:15px}.form textarea,.form-grid textarea,.settings-section textarea{resize:vertical;min-height:95px}.form input:focus,.form select:focus,.form textarea:focus,.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,.toolbar input:focus,.toolbar-select:focus,.settings-section input[type=text]:focus,.settings-section input[type=number]:focus,.settings-section input[type=email]:focus,.settings-section select:focus,.settings-section textarea:focus{border-color:#2563eb;box-shadow:0 0 0 4px #2563eb1f}.grid,.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;display:grid}.form-grid .full{grid-column:1/-1}.form-section-title{color:#111827;border-top:1px solid #e5e7eb;grid-column:1/-1;margin-top:6px;padding-top:18px;font-size:14px;font-weight:900}.form-section-title:first-child{border-top:none;margin-top:0;padding-top:0}.checkbox-row label{color:#111827;align-items:center;gap:10px;font-weight:800;display:flex}.checkbox-row input{width:auto}.form button,.primary-btn,.secondary-btn,.danger-btn,.logout-btn,.action-link,.toolbar button,.pagination button,.modal-actions button,.quick-actions button,.quick-actions .action-link,.quote-items-header button,.convert-btn,.accept-btn,.reject-btn,.pay-btn,.icon-action-btn{cursor:pointer;border:none;border-radius:12px;justify-content:center;align-items:center;gap:8px;padding:12px 16px;font-size:14px;font-weight:800;text-decoration:none;transition:transform .15s,box-shadow .15s,background .15s,opacity .15s;display:inline-flex}.form button,.primary-btn,.action-link,.toolbar button,.pagination button,.quick-actions button,.quick-actions .action-link,.quote-items-header button{color:#fff;background:#2563eb}.form button:hover,.primary-btn:hover,.action-link:hover,.toolbar button:hover,.pagination button:hover,.quick-actions button:hover,.quick-actions .action-link:hover,.quote-items-header button:hover{background:#1d4ed8;transform:translateY(-1px);box-shadow:0 8px 18px #2563eb2e}.form button:disabled,.primary-btn:disabled,.secondary-btn:disabled,.danger-btn:disabled,.toolbar button:disabled,.pagination button:disabled,.modal-actions button:disabled,.quick-actions button:disabled,.icon-action-btn:disabled{opacity:.65;cursor:not-allowed;box-shadow:none;transform:none}.secondary-btn{color:#111827;background:#e5e7eb}.secondary-btn:hover{background:#d1d5db}.danger-btn{color:#991b1b;background:#fee2e2}.danger-btn:hover{background:#fecaca}.logout-btn{color:#fff;background:#111827}.logout-btn:hover{background:#020617}.convert-btn,.accept-btn,.pay-btn{color:#fff;background:#16a34a}.convert-btn:hover,.accept-btn:hover,.pay-btn:hover{background:#15803d}.reject-btn{color:#fff;background:#dc2626}.reject-btn:hover{background:#b91c1c}.close-btn{color:#111827;cursor:pointer;background:#f3f4f6;border:none;border-radius:999px;flex-shrink:0;width:36px;height:36px;padding:0;font-size:24px}.admin-layout{min-height:100vh;display:flex}.sidebar{color:#fff;background:#0f172a;flex-shrink:0;width:260px;padding:24px}.brand h2{margin:0;font-size:26px}.brand span{color:#94a3b8;font-size:14px}.sidebar nav{flex-direction:column;gap:8px;margin-top:35px;display:flex}.sidebar nav a{color:#cbd5e1;cursor:pointer;border-radius:12px;padding:13px 14px}.sidebar nav a.active,.sidebar nav a:hover{color:#fff;background:#1e293b}.main{flex:1;min-width:0;padding:28px}.topbar{justify-content:space-between;align-items:center;gap:16px;margin-bottom:28px;display:flex}.topbar h1{margin:0;font-size:30px}.topbar p{color:#6b7280;margin:6px 0 0}.cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:24px;display:grid}.card,.panel{background:#fff;border-radius:18px;padding:22px;box-shadow:0 12px 35px #0f172a0f}.card span{color:#6b7280;font-size:14px}.card h2{text-transform:capitalize;margin:10px 0 6px;font-size:24px}.card p{color:#6b7280;margin:0}.dashboard-hero{color:#fff;background:linear-gradient(135deg,#111827,#2563eb);border-radius:24px;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px;padding:28px;display:flex;box-shadow:0 20px 45px #0f172a2e}.dashboard-hero span{opacity:.85;margin-bottom:8px;font-size:14px;display:block}.dashboard-hero h2{letter-spacing:-1px;margin:0;font-size:38px}.dashboard-hero p{opacity:.85;margin:8px 0 0}.hero-action{color:#111827;white-space:nowrap;background:#fff;border-radius:14px;padding:12px 16px;font-weight:900}.dashboard-cards{margin-bottom:20px}.metric-card{border:1px solid #e5e7eb;position:relative;overflow:hidden}.metric-card:before{content:"";background:#2563eb;width:5px;position:absolute;inset:0 auto 0 0}.danger-metric:before{background:#dc2626}.warning-metric:before{background:#f59e0b}.quote-metric:before{background:#7c3aed}.success-metric:before{background:#16a34a}.small-metrics .card h2{font-size:26px}.dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-bottom:24px;display:grid}.dashboard-grid .panel{min-width:0;margin:0}.dashboard-grid .table-wrapper{overflow-x:hidden}.dashboard-grid .data-table{table-layout:fixed;width:100%}.dashboard-grid .data-table th,.dashboard-grid .data-table td{white-space:nowrap;text-overflow:ellipsis;padding-left:8px;padding-right:8px;overflow:hidden}.dashboard-grid .data-table th{font-size:12px}.dashboard-grid .data-table th:first-child,.dashboard-grid .data-table td:first-child{width:27%}.dashboard-grid .data-table th:nth-child(2),.dashboard-grid .data-table td:nth-child(2){width:29%}.dashboard-grid .data-table th:nth-child(3),.dashboard-grid .data-table td:nth-child(3){width:20%}.dashboard-grid .data-table th:nth-child(4),.dashboard-grid .data-table td:nth-child(4){width:24%}.quick-actions{flex-wrap:wrap;gap:12px;margin-top:22px;display:flex}.panel h2{margin-top:0}.panel p{color:#6b7280}.panel-header{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:22px;display:flex}.panel-header h2{margin:0}.panel-header p{margin:8px 0 0}.toolbar{align-items:center;gap:12px;margin-bottom:18px;display:flex}.toolbar input{flex:1 1 0;min-width:0}.toolbar-select{flex:0 0 210px;width:210px}.toolbar button{white-space:nowrap;flex:none}.table-wrapper{width:100%;overflow-x:auto}.data-table{border-collapse:collapse;width:100%}.data-table th,.data-table td{text-align:left;border-bottom:1px solid #e5e7eb;padding:14px 12px}.data-table th{color:#6b7280;text-transform:uppercase;letter-spacing:.04em;font-size:13px}.data-table td{color:#111827}.table-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.table-empty{color:#6b7280;text-align:center;background:#f9fafb;border-radius:14px;padding:28px}.pagination{justify-content:flex-end;align-items:center;gap:14px;margin-top:18px;display:flex}.muted-small{color:#64748b;font-size:12px}.icon-action-btn{white-space:nowrap;border-radius:10px;padding:8px 11px;font-size:13px}.icon-action-btn span{font-size:13px;line-height:1}.icon-action-btn:hover{transform:translateY(-1px);box-shadow:0 8px 18px #0f172a1f}.icon-action-btn:active{box-shadow:none;transform:translateY(0)}.view-action,.view-btn{color:#075985;background:#e0f2fe}.edit-action,.edit-btn{color:#5b21b6;background:#ede9fe}.delete-action,.delete-btn{color:#991b1b;background:#fee2e2}.accept-action,.convert-action,.pay-action{color:#166534;background:#dcfce7}.reject-action{color:#991b1b;background:#fee2e2}.pdf-action{color:#92400e;background:#fef3c7}.locked-label{border-radius:999px;align-items:center;padding:9px 12px;font-size:12px;font-weight:900;display:inline-flex}.invoice-locked{color:#166534;background:#dcfce7}.cancel-locked{color:#991b1b;background:#fee2e2}.status-badge,.payment-status{text-transform:capitalize;color:#374151;background:#e5e7eb;border-radius:999px;align-items:center;padding:6px 10px;font-size:12px;font-weight:800;display:inline-flex}.status-badge.draft{color:#075985;background:#e0f2fe}.status-badge.sent,.status-badge.suspended,.status-badge.overdue{color:#92400e;background:#fef3c7}.status-badge.accepted,.status-badge.active,.status-badge.paid,.payment-status.completed{color:#166534;background:#dcfce7}.status-badge.partial{color:#1d4ed8;background:#dbeafe}.status-badge.rejected,.status-badge.expired,.status-badge.cancelled,.status-badge.inactive,.payment-status.void{color:#991b1b;background:#fee2e2}.status-badge.converted,.status-badge.trial{color:#5b21b6;background:#ede9fe}.modal-backdrop{z-index:1000;background:#0f172a8c;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.modal{background:#fff;border-radius:22px;width:100%;max-width:620px;padding:28px;box-shadow:0 28px 80px #0f172a40}.large-modal{width:min(980px,96vw);max-width:980px;max-height:92vh;overflow-y:auto}.quote-modal{max-width:1050px;max-height:90vh;overflow-y:auto}.quote-detail-modal{max-width:1000px;max-height:90vh;overflow-y:auto}.modal-header{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:22px;display:flex}.modal-header h2{margin:0}.modal-header p{color:#6b7280;margin:8px 0 0}.modal-actions{justify-content:flex-end;gap:12px;display:flex}.settings-layout{grid-template-columns:minmax(0,1.5fr) 420px;align-items:start;gap:24px;display:grid}.settings-panel{margin:0}.settings-tabs{border-bottom:1px solid #e5e7eb;flex-wrap:wrap;gap:10px;margin-bottom:24px;padding-bottom:18px;display:flex}.settings-tabs button{color:#374151;cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:999px;padding:11px 16px;font-weight:800}.settings-tabs button.active{color:#fff;background:#2563eb;border-color:#2563eb}.settings-section{border-top:1px solid #e5e7eb;margin-top:22px;padding-top:22px}.settings-section.no-border{border-top:none;margin-top:0;padding-top:0}.settings-section h3{color:#111827;margin:0 0 16px}.color-input{grid-template-columns:58px 1fr;gap:10px;display:grid}.color-input input[type=color]{background:#fff;border:1px solid #d1d5db;border-radius:12px;width:58px;height:46px;padding:4px}.checkbox-grid{grid-template-columns:repeat(2,1fr);gap:14px;display:grid}.checkbox-card{cursor:pointer;background:#f9fafb;border:1px solid #e5e7eb;border-radius:14px;align-items:center;gap:10px;padding:14px;display:flex}.checkbox-card input{width:18px;height:18px}.checkbox-card span{color:#374151;font-weight:600}.logo-upload-box{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:18px;align-items:center;gap:20px;margin-bottom:22px;padding:18px;display:flex}.logo-upload-box input[type=file]{width:100%;margin-top:8px}.logo-upload-box p{color:#6b7280;margin:8px 0 12px;font-size:13px}.logo-preview{color:#fff;background:#2563eb;border-radius:20px;flex-shrink:0;place-items:center;width:92px;height:92px;font-size:34px;font-weight:900;display:grid;overflow:hidden}.logo-preview img,.preview-logo img{object-fit:contain;background:#fff;width:100%;height:100%}.logo-preview img{padding:8px}.preview-logo img{border-radius:10px;padding:4px}.pdf-preview-panel{background:#fff;border-radius:18px;padding:22px;position:sticky;top:24px;box-shadow:0 12px 35px #0f172a0f}.pdf-preview-panel h2{margin:0}.pdf-preview-panel p{color:#6b7280;font-size:14px}.pdf-preview{background:#fff;border:1px solid #e5e7eb;border-radius:12px;min-height:560px;margin-top:18px;padding:20px;font-size:13px;box-shadow:0 20px 60px #0f172a1f}.preview-header{border-bottom:3px solid var(--primary);justify-content:space-between;gap:18px;padding-bottom:18px;display:flex}.preview-header>div:first-child{flex-direction:column;gap:6px;display:flex}.preview-header span,.preview-client span,.preview-totals span{color:#6b7280;font-size:12px}.preview-logo{background:var(--primary);color:#fff;border-radius:14px;place-items:center;width:54px;height:54px;font-size:22px;font-weight:800;display:grid}.preview-title{text-align:right;color:var(--secondary);font-size:24px;font-weight:900}.preview-title small{color:#6b7280;margin-top:6px;font-size:12px;display:block}.preview-client{justify-content:space-between;gap:16px;margin:22px 0;display:flex}.preview-client div{flex-direction:column;gap:5px;display:flex}.preview-table{border:1px solid #e5e7eb;border-radius:10px;overflow:hidden}.preview-row{border-bottom:1px solid #e5e7eb;grid-template-columns:1fr 50px 90px;gap:10px;padding:11px 12px;display:grid}.preview-row:last-child{border-bottom:none}.preview-row.head{background:var(--primary);color:#fff;font-weight:800}.preview-totals{width:190px;margin-top:20px;margin-left:auto}.preview-totals div{border-bottom:1px solid #e5e7eb;justify-content:space-between;padding:8px 0;display:flex}.preview-total-final{background:var(--primary);color:#fff;border-bottom:none;border-radius:8px;margin-top:8px;padding:10px}.preview-total-final span{color:#fff}.preview-terms{color:#374151;background:#f3f4f6;border-radius:10px;margin-top:22px;padding:12px}.preview-footer{text-align:center;color:#6b7280;margin-top:24px;font-size:12px}.pdf-preview.classic .preview-header{text-align:center;flex-direction:column;align-items:center}.pdf-preview.classic .preview-title{text-align:center}.pdf-preview.classic .preview-row.head,.pdf-preview.classic .preview-total-final{background:var(--secondary)}.pdf-preview.compact{border-top:10px solid var(--primary)}.pdf-preview.compact .preview-header{border-bottom:1px solid #e5e7eb}.pdf-preview.compact .preview-title{background:var(--primary);color:#fff;border-radius:10px;padding:14px}.pdf-preview.compact .preview-title small{color:#fff}.number-preview{color:#111827;background:#f9fafb;border:1px solid #d1d5db;border-radius:12px;width:100%;padding:12px 14px;font-size:15px;font-weight:800}.quote-items-box{background:#f9fafb;border:1px solid #e5e7eb;border-radius:16px;padding:16px}.quote-items-header{justify-content:space-between;align-items:center;gap:14px;margin-bottom:14px;display:flex}.quote-items-header h3{margin:0}.quote-item-row{grid-template-columns:minmax(220px,1fr) 110px 130px 130px 42px;align-items:end;gap:10px;margin-bottom:12px;display:grid}.quote-item-row:last-child{margin-bottom:0}.line-total{background:#fff;border:1px solid #d1d5db;border-radius:12px;padding:12px 14px;font-weight:800}.item-remove-btn{height:43px;padding:0;font-size:20px}.item-remove-btn:disabled{opacity:.4;cursor:not-allowed}.quote-summary{background:#f9fafb;border:1px solid #e5e7eb;border-radius:16px;width:100%;max-width:420px;margin-left:auto;padding:16px}.quote-summary div{border-bottom:1px solid #e5e7eb;justify-content:space-between;padding:9px 0;display:flex}.quote-summary div:last-child{border-bottom:none}.quote-summary span{color:#6b7280}.quote-summary-total{color:#fff;background:#2563eb;border-radius:12px;margin-top:8px;padding:13px}.quote-summary-total span{color:#fff}.quote-detail-header{grid-template-columns:1.5fr 1fr 1fr 1fr;gap:16px;margin-bottom:22px;display:grid}.quote-detail-header>div{background:#f9fafb;border:1px solid #e5e7eb;border-radius:16px;padding:16px}.quote-detail-header span{color:#6b7280;margin-bottom:8px;font-size:13px;display:block}.quote-detail-header strong{color:#111827;font-size:17px;display:block}.quote-detail-header p{color:#6b7280;margin:6px 0 0}.quote-detail-bottom{grid-template-columns:1fr 380px;align-items:start;gap:22px;margin-top:22px;display:grid}.quote-detail-notes{background:#f9fafb;border:1px solid #e5e7eb;border-radius:16px;padding:18px}.quote-detail-notes h3{margin:0 0 8px}.quote-detail-notes p{color:#6b7280;margin:0 0 18px}.detail-summary{max-width:100%}.invoice-balance-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0;display:grid}.invoice-balance-cards div{background:#f8fafc;border:1px solid #e5e7eb;border-radius:16px;padding:16px}.invoice-balance-cards span{color:#6b7280;margin-bottom:8px;font-size:13px;display:block}.invoice-balance-cards strong{color:#111827;font-size:22px;display:block}.payments-section{border-top:1px solid #e5e7eb;margin-top:24px;padding-top:20px}.payments-header{justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px;display:flex}@media (width<=1100px){.settings-layout{grid-template-columns:1fr}.pdf-preview-panel{position:static}}@media (width<=1000px){.dashboard-grid{grid-template-columns:1fr}.dashboard-hero{flex-direction:column;align-items:flex-start}}@media (width<=900px){.admin-layout{background:#f8fafc;flex-direction:column}.sidebar{z-index:100;border-radius:0 0 22px 22px;width:100%;height:auto;min-height:0;padding:14px 14px 12px;position:sticky;top:0;box-shadow:0 12px 30px #0f172a38}.brand{margin-bottom:12px;padding:0 4px}.brand h2{margin:0;font-size:22px;line-height:1.1}.brand span{opacity:.75;font-size:12px}.sidebar nav{scrollbar-width:none;-webkit-overflow-scrolling:touch;flex-direction:row;align-items:center;gap:8px;margin:0;padding:0 2px 4px;display:flex;overflow:auto hidden}.sidebar nav::-webkit-scrollbar{display:none}.sidebar nav a{white-space:nowrap;border-radius:999px;flex:none;justify-content:center;align-items:center;width:auto;min-width:auto;padding:10px 14px;font-size:13px;font-weight:800;display:inline-flex}.sidebar nav a.active{color:#fff;background:#2563eb}.main{width:100%;padding:16px}.topbar{flex-direction:column;align-items:flex-start;gap:12px;margin-bottom:16px}.topbar h1{font-size:24px;line-height:1.15}.topbar p{font-size:13px;line-height:1.4}.logout-btn{align-self:flex-start;width:auto;min-width:120px;padding:10px 16px;font-size:13px}.panel{border-radius:18px;padding:16px;overflow:hidden}.panel-header{flex-direction:column;align-items:flex-start;gap:14px}.panel-header h2{font-size:20px}.panel-header p{font-size:13px}.panel-header .primary-btn,.panel-header button,.primary-btn,.secondary-btn,.danger-btn,.settings-panel button[type=submit],.settings-section button[type=submit]{width:auto;min-width:120px;padding:10px 16px;font-size:13px}.toolbar{flex-direction:column;align-items:flex-start;gap:10px}.toolbar input,.toolbar select{flex:none;width:100%}.toolbar button{width:auto;min-width:120px;padding:10px 16px;font-size:13px}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.card{border-radius:18px;padding:16px}.card h2{font-size:24px}.dashboard-hero{border-radius:18px;margin-bottom:14px;padding:16px;box-shadow:0 12px 28px #0f172a24}.dashboard-hero span{margin-bottom:6px;font-size:13px}.dashboard-hero h2{word-break:break-word;margin:0;font-size:24px}.dashboard-hero p{margin-top:6px;font-size:13px}.hero-action{border-radius:12px;width:auto;margin-top:10px;padding:10px 14px;font-size:13px;display:inline-flex}.dashboard-cards,.small-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px}.dashboard-cards .card{border-radius:16px;min-height:118px;padding:14px}.dashboard-cards .card span{font-size:12px;line-height:1.25}.dashboard-cards .card h2{word-break:break-word;margin:8px 0 6px;font-size:22px;line-height:1.1}.dashboard-cards .card p{margin:0;font-size:12px;line-height:1.3}.metric-card:before{width:4px}.dashboard-grid{grid-template-columns:1fr;gap:14px;margin-bottom:14px}.dashboard-grid .panel{padding:14px}.dashboard-grid .panel-header{margin-bottom:10px}.dashboard-grid .panel-header h2{font-size:18px}.dashboard-grid .panel-header p{font-size:12px}.quick-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.quick-actions .action-link{text-align:center;padding:11px 10px;font-size:13px}.table-wrapper{-webkit-overflow-scrolling:touch;border-radius:14px;max-width:100%;overflow-x:auto}.data-table{min-width:720px}.data-table th,.data-table td{padding:12px;font-size:13px}.table-actions{flex-wrap:nowrap;gap:8px}.table-actions button,.table-actions a,.data-table button,.data-table a.icon-action-btn{white-space:nowrap;border:none;border-radius:10px;justify-content:center;align-items:center;gap:5px;padding:8px 12px;font-size:12px;font-weight:800;text-decoration:none;display:inline-flex}.pagination{flex-direction:column;gap:10px}.pagination button{width:100%}.modal-backdrop{align-items:flex-start;padding:12px;overflow-y:auto}.modal,.large-modal,.quote-detail-modal{border-radius:18px;width:100%;max-width:100%;max-height:none;margin:12px 0;padding:18px}.modal-header{align-items:flex-start;gap:12px}.modal-header h2{font-size:22px}.form-grid,.grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.modal-actions{flex-direction:column-reverse;gap:10px}.modal-actions button{width:100%}input,select,textarea{font-size:16px}.quote-item-row,.quote-detail-header,.quote-detail-bottom{grid-template-columns:1fr}.item-remove-btn,.quote-summary{width:100%;max-width:100%}.settings-layout,.checkbox-grid{grid-template-columns:1fr}.preview-header,.preview-client{flex-direction:column}.preview-title{text-align:left}.logo-upload-box{flex-direction:column;align-items:flex-start}.invoice-balance-cards{grid-template-columns:1fr}}@media (width<=700px){.auth-page{align-items:flex-start;padding:18px}.auth-card{border-radius:20px;width:100%;margin-top:20px;padding:24px 20px}.auth-card h1{font-size:28px}.auth-card p{font-size:14px}.auth-card button{width:100%}}@media (width<=430px){.sidebar{padding:12px 12px 10px}.brand h2{font-size:20px}.sidebar nav a{padding:9px 12px;font-size:12px}.main{padding:12px}.topbar h1{font-size:24px}.panel{padding:14px}.dashboard-hero h2{font-size:22px}.dashboard-cards,.small-metrics{gap:10px}.dashboard-cards .card{min-height:108px;padding:12px}.dashboard-cards .card h2,.card h2{font-size:20px}.dashboard-cards .card p{font-size:11px}.data-table{min-width:680px}.status-badge,.payment-status,.locked-label{padding:5px 8px;font-size:11px}.logout-btn,.toolbar button,.primary-btn,.secondary-btn,.danger-btn,.panel-header button,.settings-panel button[type=submit],.settings-section button[type=submit]{min-width:110px;padding:9px 14px;font-size:12px}.table-actions button,.table-actions a,.data-table button,.data-table a.icon-action-btn{padding:7px 10px;font-size:11px}}@media (width<=900px){.quote-modal{border-radius:22px;flex-direction:column;width:100%;max-width:100%;max-height:95dvh;padding:0;display:flex;overflow:hidden}.quote-modal .modal-header{z-index:20;background:#fff;border-bottom:1px solid #e5e7eb;margin:0;padding:12px 14px 8px;position:sticky;top:0}.quote-modal .modal-header h2{margin:0;font-size:21px;line-height:1.1}.quote-modal .modal-header p{margin:5px 0 0;font-size:12px;line-height:1.25}.quote-modal .close-btn{width:32px;height:32px;font-size:21px}.quote-modal .form-grid{-webkit-overflow-scrolling:touch;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 10px;padding:10px 12px 12px;display:grid;overflow-y:auto}.quote-modal .form-grid>div,.quote-modal .form-grid .full{min-width:0;margin:0}.quote-modal .form-grid>div:first-child,.quote-modal .quote-items-box,.quote-modal .quote-summary,.quote-modal .modal-actions,.quote-modal textarea,.quote-modal .full{grid-column:1/-1}.quote-modal label{color:#374151;margin-bottom:3px;font-size:11px;line-height:1.15;display:block}.quote-modal input,.quote-modal select,.quote-modal textarea{border-radius:10px;width:100%;min-height:34px;padding:6px 10px;font-size:14px}.quote-modal input[type=date]{height:34px;min-height:34px;padding:5px 9px;font-size:13px;line-height:1}.quote-modal textarea{min-height:64px}.quote-items-box{border-radius:16px;max-height:none;margin-top:6px;padding:12px;overflow:visible}.quote-items-header{z-index:10;background:#f9fafb;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px;padding:0 0 10px;display:flex;position:sticky;top:0}.quote-items-header h3{margin:0;font-size:18px}.quote-items-header button{border-radius:11px;min-width:auto;padding:8px 11px;font-size:12px}.quote-item-row{background:#fff;border:1px solid #e5e7eb;border-radius:14px;grid-template-columns:1fr 84px;gap:8px;margin-bottom:10px;padding:10px;display:grid}.quote-item-row>div:first-child,.quote-item-row>div:nth-child(4){grid-column:1/-1}.quote-item-row .line-total{min-height:34px;padding:7px 10px;font-size:13px}.item-remove-btn{border-radius:10px;justify-self:start;width:auto;min-width:38px;height:34px;padding:0}.quote-summary{z-index:15;background:#fff;border-radius:14px;width:100%;max-width:100%;margin-top:4px;padding:10px;position:sticky;bottom:58px;box-shadow:0 -8px 24px #0f172a14}.quote-summary div{padding:4px 0;font-size:11px}.quote-summary-total{margin-top:5px;padding:9px!important;font-size:14px!important}.quote-modal .modal-actions{z-index:25;background:#fff;border-top:1px solid #e5e7eb;grid-template-columns:1fr 1fr;gap:8px;margin-top:6px;padding:9px 0 0;display:grid;position:sticky;bottom:0}.quote-modal .modal-actions button{width:100%;min-width:0;min-height:38px;padding:9px 10px;font-size:12px}}@media (width<=430px){.quote-modal{border-radius:20px;max-height:96dvh}.quote-modal .modal-header{padding:10px 12px 8px}.quote-modal .modal-header h2{font-size:20px}.quote-modal .form-grid{gap:8px;padding:8px 10px 10px}.quote-modal input,.quote-modal select,.quote-modal textarea{min-height:32px;padding:6px 9px;font-size:14px}.quote-modal input[type=date]{height:32px;min-height:32px;padding:5px 8px;font-size:13px}.quote-item-row{grid-template-columns:1fr 80px;gap:8px;padding:9px}.quote-summary{bottom:56px}}.quote-top-fields{grid-column:1/-1;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;display:grid}@media (width<=900px){.quote-top-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:8px}.quote-top-fields label{margin-bottom:4px;font-size:10.5px;line-height:1.15}.quote-top-fields input,.quote-top-fields select{border-radius:10px;width:100%;height:36px;min-height:36px;padding:6px 8px;font-size:12px}.quote-top-fields input[type=date]{padding:6px;font-size:11px}}@media (width<=430px){.quote-top-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.quote-top-fields input,.quote-top-fields select{height:34px;min-height:34px;font-size:11px}.quote-top-fields input[type=date]{font-size:10.5px}}@media (width<=900px){.quote-detail-modal{-webkit-overflow-scrolling:touch;flex-direction:column;max-height:95dvh;padding:0;display:flex;overflow-y:auto}.quote-detail-modal .modal-header{border-bottom:1px solid #e5e7eb;flex-shrink:0;margin:0;padding:16px 18px 12px}.quote-detail-modal .modal-header h2{margin:0;font-size:22px;line-height:1.1}.quote-detail-modal .modal-header p{margin:6px 0 0;font-size:13px}.quote-detail-modal>.quote-detail-header,.quote-detail-header{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;margin:14px 18px!important;display:grid!important}.quote-detail-header>div{min-height:94px;border-radius:14px!important;padding:13px!important}.quote-detail-header span{margin-bottom:6px!important;font-size:11px!important}.quote-detail-header strong{word-break:break-word;font-size:15px!important;line-height:1.2!important}.quote-detail-header p{word-break:break-word;margin-top:5px!important;font-size:12px!important}.quote-detail-header .status-badge{justify-content:center;width:100%;padding:6px 10px!important;font-size:12px!important}.quote-detail-modal .table-wrapper,.quote-detail-modal .quote-detail-bottom{margin-left:18px;margin-right:18px}.quote-detail-bottom{grid-template-columns:1fr!important;gap:12px!important;margin-top:14px!important}}@media (width<=430px){.quote-detail-modal .modal-header{padding:14px 16px 10px}.quote-detail-modal>.quote-detail-header,.quote-detail-header{gap:8px!important;margin:12px 16px!important}.quote-detail-header>div{min-height:86px;padding:11px!important}.quote-detail-header strong{font-size:14px!important}.quote-detail-header p{font-size:11px!important}}@media (width<=900px){.quote-detail-modal .modal-actions{z-index:40;background:#fff;border-top:1px solid #e5e7eb;margin:12px 18px 0;padding:10px 0 0;position:sticky;bottom:0;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;display:grid!important}.quote-detail-modal .modal-actions button,.quote-detail-modal .modal-actions a{white-space:normal!important;text-align:center!important;border-radius:11px!important;width:100%!important;min-width:0!important;min-height:38px!important;padding:8px 10px!important;font-size:12px!important;line-height:1.15!important}.quote-detail-modal .modal-actions .secondary-btn,.quote-detail-modal .modal-actions .primary-btn,.quote-detail-modal .modal-actions .danger-btn,.quote-detail-modal .modal-actions .accept-btn,.quote-detail-modal .modal-actions .reject-btn{justify-content:center!important}}@media (width<=430px){.quote-detail-modal .modal-actions{margin:10px 16px 0;gap:7px!important}.quote-detail-modal .modal-actions button,.quote-detail-modal .modal-actions a{min-height:36px!important;padding:7px 8px!important;font-size:11px!important}}@media (width<=900px){.quote-detail-modal .table-wrapper{border-radius:14px;margin:10px 18px 0!important;overflow-x:visible!important}.quote-detail-modal .data-table{border-collapse:separate;border-spacing:0 10px;width:100%!important;min-width:0!important}.quote-detail-modal .data-table thead{display:none}.quote-detail-modal .data-table tbody{display:block}.quote-detail-modal .data-table tr{background:#f9fafb;border:1px solid #e5e7eb;border-radius:14px;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:10px;padding:12px;display:grid}.quote-detail-modal .data-table td{color:#111827;flex-direction:column;gap:4px;min-width:0;display:flex;border-bottom:none!important;padding:0!important;font-size:13px!important}.quote-detail-modal .data-table td:first-child{grid-column:1/-1}.quote-detail-modal .data-table td:before{color:#64748b;text-transform:uppercase;letter-spacing:.04em;font-size:10px;font-weight:900}.quote-detail-modal .data-table td:first-child:before{content:"Descripción"}.quote-detail-modal .data-table td:nth-child(2):before{content:"Cantidad"}.quote-detail-modal .data-table td:nth-child(3):before{content:"Precio"}.quote-detail-modal .data-table td:nth-child(4):before{content:"Total"}.quote-detail-modal .data-table td:first-child{word-break:break-word;font-weight:800;line-height:1.35}.quote-detail-modal .data-table td.text-right{align-items:flex-start;font-weight:800;text-align:left!important}}@media (width<=430px){.quote-detail-modal .table-wrapper{margin:8px 16px 0!important}.quote-detail-modal .data-table tr{gap:7px;padding:10px}.quote-detail-modal .data-table td{font-size:12px!important}}.payment-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.payment-form .full{grid-column:1/-1}.payment-form textarea{min-height:90px}@media (width<=900px){.payment-modal{flex-direction:column;max-height:94dvh;padding:0;display:flex;overflow:hidden}.payment-modal .modal-header{border-bottom:1px solid #e5e7eb;flex-shrink:0;margin:0;padding:16px 18px 12px}.payment-modal .modal-header h2{margin:0;font-size:22px;line-height:1.1}.payment-modal .modal-header p{margin:6px 0 0;font-size:13px;line-height:1.35}.payment-modal .close-btn{flex-shrink:0;width:34px;height:34px;font-size:22px}.payment-form{-webkit-overflow-scrolling:touch;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px 18px 14px;display:grid;overflow-y:auto}.payment-form>div{min-width:0}.payment-form label{margin-bottom:4px;font-size:11px;line-height:1.15}.payment-form input,.payment-form select,.payment-form textarea{border-radius:10px;width:100%;height:36px;min-height:36px;padding:6px 8px;font-size:12px}.payment-form input[type=date]{padding:6px;font-size:11px}.payment-form textarea{resize:vertical;height:auto;min-height:62px}.payment-form .payment-reference-field,.payment-form .payment-notes-field,.payment-form .modal-actions{grid-column:1/-1}.payment-modal .modal-actions{z-index:30;background:#fff;border-top:1px solid #e5e7eb;grid-template-columns:1fr 1fr;gap:8px;margin:4px 0 0;padding:10px 0 0;display:grid;position:sticky;bottom:0}.payment-modal .modal-actions button{width:100%;min-width:0;min-height:40px;padding:9px 10px;font-size:12px}}@media (width<=430px){.payment-modal .modal-header{padding:14px 16px 10px}.payment-form{gap:7px;padding:10px 16px 12px}.payment-form input,.payment-form select,.payment-form textarea{height:34px;min-height:34px;padding:6px 7px;font-size:11px}.payment-form input[type=date]{font-size:10.5px}.payment-form textarea{min-height:58px}}@media (width<=900px){.settings-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;margin-bottom:18px!important;padding-bottom:14px!important;display:grid!important;overflow:visible!important}.settings-tabs button{text-align:center!important;white-space:normal!important;border-radius:999px!important;width:100%!important;min-width:0!important;padding:9px 7px!important;font-size:11px!important;font-weight:900!important;line-height:1.15!important}.settings-layout{grid-template-columns:1fr!important;gap:14px!important}.settings-panel{border-radius:18px!important;padding:16px!important}.settings-panel h2{margin-bottom:6px!important;font-size:21px!important;line-height:1.15!important}.settings-panel p{margin-top:0!important;font-size:13px!important;line-height:1.35!important}.settings-panel .primary-btn,.settings-panel button[type=submit],.settings-section button[type=submit]{border-radius:12px!important;width:auto!important;min-width:130px!important;margin:4px 0 14px!important;padding:10px 14px!important;font-size:12px!important}.settings-section{margin-top:16px!important;padding-top:16px!important}.settings-section h3{margin-bottom:12px!important;font-size:18px!important}.settings-section label{color:#374151!important;margin-bottom:5px!important;font-size:12px!important}.settings-section input[type=text],.settings-section input[type=number],.settings-section input[type=email],.settings-section select,.settings-section textarea{border-radius:12px!important;min-height:40px!important;padding:9px 11px!important;font-size:13px!important}.settings-section textarea{min-height:72px!important}.settings-section select{height:42px!important}.color-input{grid-template-columns:46px minmax(0,1fr)!important;align-items:center!important;gap:8px!important;margin-bottom:12px!important;display:grid!important}.color-input input[type=color]{border-radius:12px!important;width:46px!important;height:42px!important;padding:3px!important}.color-input input[type=text]{height:42px!important}.checkbox-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;display:grid!important}.checkbox-card{border-radius:14px!important;gap:8px!important;min-height:52px!important;padding:11px 10px!important}.checkbox-card input{flex-shrink:0!important;width:16px!important;height:16px!important}.checkbox-card span{font-size:12px!important;font-weight:800!important;line-height:1.2!important}.pdf-preview-panel{display:none!important}.logo-upload-box{border-radius:16px!important;gap:12px!important;padding:13px!important}.logo-preview{border-radius:16px!important;width:72px!important;height:72px!important;font-size:26px!important}.logo-upload-box p{margin:6px 0 10px!important;font-size:12px!important}}@media (width<=430px){.settings-tabs{gap:6px!important}.settings-tabs button{padding:8px 5px!important;font-size:10px!important;line-height:1.1!important}.settings-panel{padding:14px!important}.settings-panel h2{font-size:20px!important}.settings-section h3{font-size:17px!important}.settings-section input[type=text],.settings-section input[type=number],.settings-section input[type=email],.settings-section select,.settings-section textarea{min-height:38px!important;padding:8px 10px!important;font-size:12px!important}.checkbox-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}.checkbox-card{padding:10px 9px!important}.checkbox-card span{font-size:11px!important}}@media (width>=901px){.app-shell{background:#f3f4f6!important;grid-template-columns:260px minmax(0,1fr)!important;min-height:100vh!important;display:grid!important}.sidebar{color:#fff!important;background:#111827!important;border-radius:0!important;align-self:start!important;width:260px!important;height:100vh!important;min-height:100vh!important;padding:28px 24px!important;position:sticky!important;top:0!important}.sidebar-logo{flex-direction:column!important;gap:4px!important;margin-bottom:34px!important;display:flex!important}.sidebar-logo strong{font-size:17px!important;font-weight:900!important;line-height:1.1!important}.sidebar-logo span{color:#94a3b8!important;font-size:12px!important;display:block!important}.sidebar nav{flex-direction:column!important;gap:10px!important;display:flex!important}.sidebar nav a{color:#e5e7eb!important;border-radius:12px!important;align-items:center!important;min-height:46px!important;padding:12px 14px!important;font-size:15px!important;font-weight:700!important;text-decoration:none!important;display:flex!important}.sidebar nav a:hover,.sidebar nav a.active{color:#fff!important;background:#1f2937!important}.main-content{background:#f3f4f6!important;width:100%!important;min-width:0!important;padding:28px 32px 40px!important}.topbar{box-shadow:none!important;background:0 0!important;border-radius:0!important;justify-content:space-between!important;align-items:center!important;gap:20px!important;margin-bottom:28px!important;padding:0!important;display:flex!important}.topbar h1{margin:0 0 8px!important;font-size:30px!important;line-height:1.1!important}.topbar p{color:#64748b!important;margin:0!important;font-size:15px!important}.topbar .secondary-btn{width:auto!important;min-width:120px!important;padding:12px 18px!important}.card{background:#fff!important;border:1px solid #e5e7eb!important;border-radius:20px!important;margin-bottom:24px!important;padding:22px!important;box-shadow:0 10px 30px #0f172a0f!important}.section-header{justify-content:space-between!important;align-items:flex-start!important;gap:16px!important;margin-bottom:18px!important;display:flex!important}.section-header h2{margin:0 0 8px!important;font-size:24px!important}.section-header p{color:#64748b!important;margin:0!important;font-size:14px!important}.form .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;display:grid!important}.form label{color:#1f2937!important;margin-bottom:6px!important;font-size:13px!important;font-weight:800!important}.form input,.form select,.form textarea{border:1px solid #cbd5e1!important;border-radius:13px!important;width:100%!important;min-height:46px!important;padding:11px 14px!important;font-size:14px!important}.form textarea{min-height:90px!important}.table-wrapper{border-radius:16px!important;width:100%!important;overflow-x:auto!important}.data-table{border-collapse:collapse!important;width:100%!important;min-width:900px!important}.data-table th,.data-table td{vertical-align:middle!important;border-bottom:1px solid #e5e7eb!important;padding:14px 12px!important}.data-table th{text-transform:uppercase!important;letter-spacing:.04em!important;color:#64748b!important;text-align:left!important;background:#f8fafc!important;font-size:12px!important}.table-actions{flex-wrap:wrap!important;justify-content:flex-end!important;align-items:center!important;gap:8px!important;display:flex!important}.table-actions button{border-radius:10px!important;min-height:36px!important;padding:8px 12px!important;font-size:12px!important}}.crm-topbar{z-index:200;position:fixed;top:0;left:260px;right:0}.crm-shell.is-sidebar-collapsed .crm-topbar{left:82px}.crm-content{padding-top:106px}@media (width<=900px){.crm-topbar,.crm-shell.is-sidebar-collapsed .crm-topbar{left:0;right:0}.crm-content{padding-top:92px}}@media (width<=620px){.crm-dashboard-page{flex-direction:column;display:flex}.crm-dashboard-page>.crm-quick-panel{order:1}.crm-dashboard-page>.crm-page-heading{order:2}.crm-dashboard-page>.alert{order:3}.crm-dashboard-page>.crm-kpi-grid{order:4}.crm-dashboard-page>.crm-dashboard-overview{order:5}.crm-dashboard-page>.crm-recent-grid{order:6}.crm-dashboard-page .crm-page-heading .crm-primary-action{display:none}.crm-dashboard-page .crm-page-heading{margin:4px 2px 18px}.crm-dashboard-page .crm-page-heading h1{font-size:28px}.crm-dashboard-page .crm-quick-panel{background:#ffffffeb;border:1px solid #e2e8f0f2;border-radius:16px;margin:0 0 20px;padding:6px;overflow:hidden;box-shadow:0 7px 22px #0f172a0f}.crm-dashboard-page .crm-quick-panel .crm-panel-heading{display:none}.crm-dashboard-page .crm-quick-grid{grid-template-columns:repeat(4,minmax(72px,1fr));gap:4px;display:grid}.crm-dashboard-page .crm-quick-link{text-align:center;min-height:67px;box-shadow:none;border:0;border-radius:12px;flex-direction:column;justify-content:center;gap:5px;padding:7px 4px;display:flex}.crm-dashboard-page .crm-quick-link:active{background:#eff6ff;transform:scale(.97)}.crm-dashboard-page .crm-quick-link>span{border-radius:9px;flex:0 0 29px;width:29px;height:29px}.crm-dashboard-page .crm-quick-link>span svg{width:17px;height:17px}.crm-dashboard-page .crm-quick-link strong{text-overflow:clip;white-space:normal;width:100%;font-size:9px;line-height:1.15;overflow:visible}.crm-dashboard-page .crm-quick-link>svg{display:none}.crm-dashboard-page .crm-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:16px}.crm-dashboard-page .crm-kpi-card{border-radius:16px;flex-direction:column;gap:9px;min-height:132px;padding:13px;display:flex}.crm-dashboard-page .crm-kpi-icon{border-radius:11px;flex-basis:35px;width:35px;height:35px}.crm-dashboard-page .crm-kpi-icon svg{width:18px;height:18px}.crm-dashboard-page .crm-kpi-copy>span{text-overflow:clip;white-space:normal;min-height:28px;font-size:10px;line-height:1.35;overflow:visible}.crm-dashboard-page .crm-kpi-copy>strong{text-overflow:clip;white-space:normal;overflow-wrap:anywhere;margin:2px 0;font-size:clamp(17px,5vw,21px);overflow:visible}.crm-dashboard-page .crm-kpi-copy>small{text-overflow:clip;white-space:normal;font-size:9px;line-height:1.3;overflow:visible}}.crm-customers-page{width:100%}.crm-customers-heading{margin-bottom:24px}.crm-customers-heading .crm-primary-action{cursor:pointer;border:0}.crm-customers-panel{padding:0;overflow:hidden}.crm-customers-panel-head{justify-content:space-between;align-items:flex-start;gap:20px;padding:24px 26px 18px;display:flex}.crm-customers-panel-head h2{color:#14213d;margin:9px 0 5px;font-size:20px;line-height:1.25}.crm-customers-panel-head p{color:#718096;margin:0;font-size:13px}.crm-customer-count{color:#2563eb;align-items:center;gap:7px;font-size:12px;font-weight:800;display:inline-flex}.crm-customers-toolbar{align-items:center;gap:10px;padding:0 26px 22px;display:flex}.crm-search-field{color:#8b98aa;background:#f8fafc;border:1px solid #dce4ef;border-radius:12px;flex:1;align-items:center;gap:10px;min-width:0;max-width:560px;height:45px;padding:0 14px;transition:border-color .2s,box-shadow .2s,background .2s;display:flex}.crm-search-field:focus-within{background:#fff;border-color:#8bb5ff;box-shadow:0 0 0 3px #2563eb17}.crm-search-field input{color:#18243c;width:100%;min-width:0;height:100%;font:inherit;background:0 0;border:0;outline:0;padding:0;font-size:14px}.crm-search-field input::placeholder{color:#98a4b5}.crm-search-button,.crm-clear-button{cursor:pointer;border-radius:12px;min-height:45px;padding:0 18px;font-size:13px;font-weight:800}.crm-search-button{color:#fff;background:#2563eb;border:1px solid #2563eb}.crm-search-button:hover{background:#1d4ed8;border-color:#1d4ed8}.crm-clear-button{color:#5d6b7e;background:#fff;border:1px solid #dce4ef}.crm-customers-table-wrap{border-top:1px solid #edf1f6;width:100%;overflow-x:auto}.crm-customers-table{border-collapse:collapse;table-layout:fixed;width:100%}.crm-customers-table th{color:#79879a;letter-spacing:.055em;text-align:left;text-transform:uppercase;background:#f8fafc;padding:12px 18px;font-size:11px;font-weight:800}.crm-customers-table td{color:#536176;vertical-align:middle;border-top:1px solid #edf1f6;padding:16px 18px;font-size:13px}.crm-customers-table tbody tr{transition:background .2s}.crm-customers-table tbody tr:hover{background:#fbfdff}.crm-customers-table th:first-child{width:24%}.crm-customers-table th:nth-child(2),.crm-customers-table th:nth-child(3){width:29%}.crm-customers-table th:nth-child(4){width:18%}.crm-customer-identity{align-items:center;gap:11px;min-width:0;display:flex}.crm-customer-identity>span{color:#2563eb;background:#eaf2ff;border-radius:11px;flex:0 0 36px;place-items:center;width:36px;height:36px;font-size:14px;font-weight:900;display:grid}.crm-customer-identity strong{color:#19253c;text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;overflow:hidden}.crm-customer-contact{flex-direction:column;gap:6px;display:flex}.crm-customer-contact span,.crm-customer-address{align-items:center;gap:7px;min-width:0;display:flex}.crm-customer-contact svg,.crm-customer-address svg{color:#8b99ac;flex:none}.crm-customer-contact span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.crm-customer-address{line-height:1.45}.crm-customer-actions{justify-content:flex-end;align-items:center;gap:7px;display:flex}.crm-customer-actions button{cursor:pointer;background:#fff;border-radius:9px;justify-content:center;align-items:center;gap:6px;min-height:34px;padding:7px 10px;font-size:11px;font-weight:800;display:inline-flex}.crm-customer-actions .is-edit{color:#2563eb;border:1px solid #cfe0ff}.crm-customer-actions .is-edit:hover{background:#eff6ff}.crm-customer-actions .is-delete{color:#dc3545;border:1px solid #ffd8dc}.crm-customer-actions .is-delete:hover{background:#fff5f5}.crm-customers-loading,.crm-customers-empty{color:#718096;justify-content:center;align-items:center;min-height:280px;display:flex}.crm-customers-loading{gap:10px;font-size:13px}.crm-customers-empty{text-align:center;flex-direction:column;padding:36px 20px}.crm-customers-empty>span{color:#2563eb;background:#edf4ff;border-radius:17px;place-items:center;width:56px;height:56px;margin-bottom:13px;display:grid}.crm-customers-empty h3{color:#1b2941;margin:0 0 7px;font-size:17px}.crm-customers-empty p{color:#7c899b;max-width:370px;margin:0;font-size:13px}.crm-customers-empty button{color:#fff;cursor:pointer;background:#2563eb;border:0;border-radius:11px;align-items:center;gap:7px;min-height:40px;margin-top:17px;padding:0 15px;font-weight:800;display:inline-flex}.crm-customers-pagination{color:#758297;border-top:1px solid #edf1f6;justify-content:space-between;align-items:center;gap:18px;padding:18px 26px;font-size:12px;display:flex}.crm-customers-pagination button{color:#40506a;cursor:pointer;background:#fff;border:1px solid #dce4ef;border-radius:10px;align-items:center;gap:5px;min-height:38px;padding:0 12px;font-size:12px;font-weight:800;display:inline-flex}.crm-customers-pagination button:disabled{cursor:not-allowed;opacity:.45}.crm-modal-backdrop{z-index:1000;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#0b14248f;place-items:center;padding:22px;display:grid;position:fixed;inset:0;overflow-y:auto}.crm-customer-modal{background:#fff;border:1px solid #e2e8f0e6;border-radius:20px;width:min(620px,100%);overflow:hidden;box-shadow:0 24px 70px #0a162d3d}.crm-customer-modal-head{border-bottom:1px solid #edf1f6;justify-content:space-between;align-items:flex-start;gap:16px;padding:22px 24px;display:flex}.crm-customer-modal-head>div:first-child{align-items:center;gap:13px;display:flex}.crm-modal-icon{color:#2563eb;background:#eaf2ff;border-radius:13px;flex:0 0 42px;place-items:center;width:42px;height:42px;display:grid}.crm-customer-modal-head h2{color:#17233a;margin:0 0 4px;font-size:19px}.crm-customer-modal-head p{color:#7c899b;margin:0;font-size:12px}.crm-modal-close{color:#66758a;cursor:pointer;background:#f2f5f9;border:0;border-radius:10px;flex:0 0 36px;place-items:center;width:36px;height:36px;display:grid}.crm-customer-form{padding:24px}.crm-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0;display:grid}.crm-form-field{flex-direction:column;gap:7px;display:flex}.crm-form-field>span{color:#36445a;font-size:12px;font-weight:800}.crm-form-field>span b{color:#dc3545}.crm-form-field input{color:#17233a;width:100%;min-height:46px;font:inherit;background:#fff;border:1px solid #d8e1ec;border-radius:11px;outline:0;padding:0 13px;font-size:13px;transition:border-color .2s,box-shadow .2s}.crm-form-field input:focus{border-color:#77a8ff;box-shadow:0 0 0 3px #2563eb17}.crm-customer-modal-actions{border-top:1px solid #edf1f6;justify-content:flex-end;gap:10px;margin-top:24px;padding-top:20px;display:flex}.crm-customer-modal-actions button{cursor:pointer;border-radius:11px;justify-content:center;align-items:center;gap:7px;min-height:43px;padding:0 17px;font-size:12px;font-weight:800;display:inline-flex}.crm-modal-cancel{color:#536176;background:#fff;border:1px solid #dce4ef}.crm-modal-save{color:#fff;background:#2563eb;border:1px solid #2563eb}.crm-customer-modal-actions button:disabled{cursor:not-allowed;opacity:.65}.crm-button-spinner{border:2px solid #ffffff73;border-top-color:#fff;border-radius:50%;width:15px;height:15px;animation:.75s linear infinite crm-spin}@media (width<=760px){.crm-customers-heading{flex-direction:row;align-items:center;margin-bottom:16px}.crm-customers-heading h1{font-size:27px}.crm-customers-heading p{max-width:210px;font-size:12px}.crm-customers-heading .crm-primary-action{flex:none;width:auto;min-height:42px;padding:0 13px;font-size:12px}.crm-customers-panel{border-radius:17px}.crm-customers-panel-head{padding:18px 16px 14px}.crm-customers-panel-head h2{font-size:17px}.crm-customers-panel-head p{display:none}.crm-customers-toolbar{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:0 16px 16px;display:grid}.crm-search-field{width:100%;height:42px}.crm-search-button,.crm-clear-button{min-height:42px;padding:0 13px}.crm-clear-button{grid-column:1/-1}.crm-customers-table-wrap{background:#f5f7fb;padding:10px 12px 3px;overflow:visible}.crm-customers-table,.crm-customers-table tbody,.crm-customers-table tr,.crm-customers-table td{width:100%;display:block}.crm-customers-table{table-layout:auto}.crm-customers-table thead{display:none}.crm-customers-table tbody tr{background:#fff;border:1px solid #e4eaf2;border-radius:15px;margin-bottom:9px;padding:14px;position:relative;box-shadow:0 4px 13px #14223d0a}.crm-customers-table td{border:0;padding:0}.crm-customers-table td[data-label=Cliente]{padding-right:70px}.crm-customer-identity>span{flex-basis:38px;width:38px;height:38px}.crm-customer-identity strong{font-size:14px}.crm-customers-table td[data-label=Contacto]{border-top:1px solid #edf1f6;margin-top:12px;padding-top:11px}.crm-customer-contact{grid-template-columns:minmax(0,1.25fr) minmax(0,.9fr);gap:8px;display:grid}.crm-customer-contact span,.crm-customer-address{font-size:11px}.crm-customers-table td[data-label=Dirección]{margin-top:9px}.crm-customer-address{align-items:flex-start}.crm-customers-table td[data-label=Acciones]{position:absolute;top:13px;right:12px}.crm-customer-actions{gap:5px}.crm-customer-actions button{border-radius:9px;width:31px;height:31px;min-height:31px;padding:0}.crm-customer-actions button span{display:none}.crm-customers-pagination{padding:14px 12px}.crm-customers-pagination button{min-height:36px;padding:0 8px;font-size:11px}.crm-customers-pagination>span{text-align:center;font-size:10px}.crm-customers-loading,.crm-customers-empty{min-height:230px}.crm-modal-backdrop{align-items:end;padding:0}.crm-customer-modal{border-width:1px 0 0;border-radius:22px 22px 0 0;width:100%;max-height:calc(100dvh - 18px);overflow-y:auto;box-shadow:0 -18px 55px #0a162d38}.crm-customer-modal:before{content:"";background:#d7dee8;border-radius:10px;width:42px;height:4px;margin:8px auto 0;display:block}.crm-customer-modal-head{padding:14px 17px 15px}.crm-modal-icon{flex-basis:38px;width:38px;height:38px}.crm-customer-modal-head h2{font-size:17px}.crm-customer-modal-head p{font-size:11px}.crm-customer-form{padding:17px}.crm-form-grid{grid-template-columns:1fr;gap:13px;margin:13px 0}.crm-form-field{gap:6px}.crm-form-field input{min-height:44px;font-size:16px}.crm-customer-modal-actions{padding:13px 17px calc(13px + env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fffffff5;margin:19px -17px -17px;position:sticky;bottom:0}.crm-customer-modal-actions button{flex:1}}@media (width<=390px){.crm-customers-heading p{display:none}.crm-customers-heading .crm-primary-action{padding:0 11px}.crm-customers-heading .crm-primary-action svg{width:17px;height:17px}.crm-customer-contact{grid-template-columns:1fr}}.crm-quotes-page{width:100%}.crm-quotes-heading{margin-bottom:24px}.crm-quotes-heading .crm-primary-action{cursor:pointer;border:0}.crm-quotes-panel{padding:0;overflow:hidden}.crm-quotes-panel-head{justify-content:space-between;align-items:flex-start;gap:20px;padding:24px 26px 18px;display:flex}.crm-quotes-panel-head h2{color:#14213d;margin:9px 0 5px;font-size:20px;line-height:1.25}.crm-quotes-panel-head p{color:#718096;margin:0;font-size:13px}.crm-quote-count{color:#2563eb;align-items:center;gap:7px;font-size:12px;font-weight:800;display:inline-flex}.crm-quotes-alert{margin:0 26px 16px}.crm-quotes-toolbar{grid-template-columns:minmax(240px,1fr) minmax(175px,210px) auto;align-items:center;gap:10px;padding:0 26px 22px;display:grid}.crm-quotes-toolbar .crm-search-field{max-width:none}.crm-quotes-status-filter{color:#40506a;width:100%;min-height:45px;font:inherit;background:#f8fafc;border:1px solid #dce4ef;border-radius:12px;outline:0;padding:0 38px 0 13px;font-size:13px;font-weight:700}.crm-quotes-status-filter:focus{background:#fff;border-color:#8bb5ff;box-shadow:0 0 0 3px #2563eb17}.crm-quotes-table-wrap{border-top:1px solid #edf1f6;width:100%;overflow-x:auto}.crm-quotes-table{border-collapse:collapse;table-layout:fixed;width:100%}.crm-quotes-table th{color:#79879a;letter-spacing:.055em;text-align:left;text-transform:uppercase;background:#f8fafc;padding:12px 16px;font-size:11px;font-weight:800}.crm-quotes-table td{color:#536176;vertical-align:middle;border-top:1px solid #edf1f6;padding:15px 16px;font-size:13px}.crm-quotes-table tbody tr{transition:background .2s}.crm-quotes-table tbody tr:hover{background:#fbfdff}.crm-quotes-table th:first-child{width:14%}.crm-quotes-table th:nth-child(2){width:20%}.crm-quotes-table th:nth-child(3),.crm-quotes-table th:nth-child(4){width:13%}.crm-quotes-table th:nth-child(5){width:14%}.crm-quotes-table th:nth-child(6){width:26%}.crm-quote-number,.crm-quote-total{color:#1b2941;font-size:13px}.crm-quote-customer{align-items:center;gap:10px;min-width:0;display:flex}.crm-quote-customer>span{color:#2563eb;background:#eaf2ff;border-radius:10px;flex:0 0 34px;place-items:center;width:34px;height:34px;font-size:13px;font-weight:900;display:grid}.crm-quote-customer strong{color:#27354c;text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.crm-quote-actions{justify-content:flex-end;align-items:center;gap:5px;display:flex}.crm-quote-actions button{cursor:pointer;background:#fff;border-radius:9px;justify-content:center;align-items:center;gap:5px;min-height:32px;padding:6px 8px;font-size:10px;font-weight:800;display:inline-flex}.crm-quote-actions .is-view,.crm-quote-actions .is-edit{color:#2563eb;border:1px solid #cfe0ff}.crm-quote-actions .is-accept{color:#0b8a55;border:1px solid #bce9d2}.crm-quote-actions .is-reject{color:#dc3545;border:1px solid #ffd8dc}.crm-quote-actions button:hover{background:#f8fafc}.crm-quote-actions .locked-label{margin:0;font-size:10px}.crm-quotes-empty{color:#718096;text-align:center;border-top:1px solid #edf1f6;flex-direction:column;justify-content:center;align-items:center;min-height:280px;padding:36px 20px;display:flex}.crm-quotes-empty>span{color:#2563eb;background:#edf4ff;border-radius:17px;place-items:center;width:56px;height:56px;margin-bottom:13px;display:grid}.crm-quotes-empty h3{color:#1b2941;margin:0 0 7px;font-size:17px}.crm-quotes-empty p{color:#7c899b;max-width:390px;margin:0;font-size:13px}.crm-quotes-empty button{color:#fff;cursor:pointer;background:#2563eb;border:0;border-radius:11px;align-items:center;gap:7px;min-height:40px;margin-top:17px;padding:0 15px;font-weight:800;display:inline-flex}.crm-quotes-pagination{color:#758297;border-top:1px solid #edf1f6;justify-content:space-between;align-items:center;gap:18px;padding:18px 26px;font-size:12px;display:flex}.crm-quotes-pagination button{color:#40506a;cursor:pointer;background:#fff;border:1px solid #dce4ef;border-radius:10px;align-items:center;gap:5px;min-height:38px;padding:0 12px;font-size:12px;font-weight:800;display:inline-flex}.crm-quotes-pagination button:disabled{cursor:not-allowed;opacity:.45}.crm-quotes-page .modal-backdrop{z-index:1100;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#0b142494;padding:22px}.crm-quotes-page .quote-modal,.crm-quotes-page .quote-detail-modal{border:1px solid #e2e8f0e6;border-radius:20px;box-shadow:0 24px 70px #0a162d3d}.crm-quotes-page .modal-header{border-bottom-color:#edf1f6}.crm-quotes-page .quote-customer-search-row{grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:8px;display:grid}.crm-quotes-page .quote-customer-search-row input{width:100%;min-width:0}.crm-quotes-page .quote-create-customer-btn{white-space:nowrap;width:auto;min-width:82px;padding-left:14px;padding-right:14px}@media (width<=1080px){.crm-quotes-table th:nth-child(6){width:20%}.crm-quote-actions button{width:31px;padding:0}.crm-quote-actions button span{display:none}}@media (width<=760px){.crm-quotes-heading{flex-direction:row;align-items:center;margin-bottom:16px}.crm-quotes-heading h1{font-size:27px}.crm-quotes-heading p{max-width:210px;font-size:12px}.crm-quotes-heading .crm-primary-action{flex:none;width:auto;min-height:42px;padding:0 13px;font-size:12px}.crm-quotes-panel{border-radius:17px}.crm-quotes-panel-head{padding:18px 16px 14px}.crm-quotes-panel-head h2{font-size:17px}.crm-quotes-panel-head p{display:none}.crm-quotes-alert{margin:0 16px 14px}.crm-quotes-toolbar{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:0 16px 16px}.crm-quotes-toolbar .crm-search-field{grid-column:1/-1;width:100%;height:42px}.crm-quotes-status-filter,.crm-quotes-toolbar .crm-search-button{min-height:42px}.crm-quotes-table-wrap{background:#f5f7fb;padding:10px 12px 3px;overflow:visible}.crm-quotes-table,.crm-quotes-table tbody,.crm-quotes-table tr,.crm-quotes-table td{width:100%;display:block}.crm-quotes-table{table-layout:auto}.crm-quotes-table thead{display:none}.crm-quotes-table tbody tr{background:#fff;border:1px solid #e4eaf2;border-radius:15px;grid-template-columns:minmax(0,1fr) auto;gap:8px 13px;margin-bottom:9px;padding:14px;display:grid;position:relative;box-shadow:0 4px 13px #14223d0a}.crm-quotes-table td{border:0;padding:0}.crm-quotes-table td[data-label=Número]{grid-area:1/1}.crm-quotes-table td[data-label=Estado]{text-align:right;grid-area:1/2}.crm-quotes-table td[data-label=Cliente]{border-top:1px solid #edf1f6;border-bottom:1px solid #edf1f6;grid-area:2/1/auto/-1;padding:9px 0}.crm-quotes-table td[data-label=Fecha],.crm-quotes-table td[data-label=Total]{padding-top:2px}.crm-quotes-table td[data-label=Fecha]:before,.crm-quotes-table td[data-label=Total]:before{color:#8a96a8;letter-spacing:.05em;text-transform:uppercase;content:attr(data-label);margin-bottom:3px;font-size:9px;font-weight:800;display:block}.crm-quotes-table td[data-label=Total]{text-align:right}.crm-quotes-table td[data-label=Acciones]{border-top:1px solid #edf1f6;grid-column:1/-1;padding-top:9px}.crm-quote-actions{justify-content:flex-end}.crm-quote-actions button{width:auto;min-width:34px;height:34px;padding:0 9px}.crm-quote-actions button span{display:inline}.crm-quotes-pagination{padding:14px 12px}.crm-quotes-pagination button{min-height:36px;padding:0 8px;font-size:11px}.crm-quotes-pagination>span{text-align:center;font-size:10px}.crm-quotes-page .modal-backdrop{align-items:end;padding:0}.crm-quotes-page .quote-modal,.crm-quotes-page .quote-detail-modal{border-width:1px 0 0;border-radius:22px 22px 0 0;width:100%;max-width:none;max-height:calc(100dvh - 18px);margin:0;overflow-y:auto;box-shadow:0 -18px 55px #0a162d38}.crm-quotes-page .quote-modal:before,.crm-quotes-page .quote-detail-modal:before{content:"";background:#d7dee8;border-radius:10px;width:42px;height:4px;margin:8px auto 0;display:block}.crm-quotes-page .modal-header{padding:14px 17px 15px}.crm-quotes-page .modal-header h2{font-size:17px}.crm-quotes-page .modal-header p{font-size:11px}.crm-quotes-page .quote-form{padding:17px}.crm-quotes-page .quote-top-fields,.crm-quotes-page .quote-extra-fields{grid-template-columns:1fr 1fr;gap:12px}.crm-quotes-page .quote-customer-field{grid-column:1/-1}.crm-quotes-page .form input,.crm-quotes-page .form select,.crm-quotes-page .form textarea{font-size:16px}.crm-quotes-page .quote-item-row{border:1px solid #e4eaf2;border-radius:13px;grid-template-columns:minmax(0,1fr) minmax(74px,.38fr);gap:10px;padding:13px}.crm-quotes-page .quote-item-description{grid-column:1/-1}.crm-quotes-page .quote-item-total{grid-column:1}.crm-quotes-page .item-remove-btn{grid-column:2;place-self:end}.crm-quotes-page .quote-detail-header{grid-template-columns:1fr 1fr;gap:9px;padding:14px 17px}.crm-quotes-page .quote-detail-header>div{border:1px solid #e4eaf2;border-radius:12px;padding:11px}.crm-quotes-page .quote-detail-modal>.table-wrapper{margin:0 17px}.crm-quotes-page .quote-detail-bottom{grid-template-columns:1fr;padding:15px 17px}.crm-quotes-page .modal-actions{z-index:5;padding:13px 17px calc(13px + env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fffffff5;flex-wrap:wrap;margin:0;position:sticky;bottom:0}.crm-quotes-page .modal-actions button{flex:calc(50% - 8px)}}@media (width<=430px){.crm-quotes-heading p{display:none}.crm-quotes-heading .crm-primary-action{padding:0 11px}.crm-quote-actions button{width:34px;min-width:34px;padding:0}.crm-quote-actions button span{display:none}.crm-quotes-page .quote-top-fields,.crm-quotes-page .quote-extra-fields{grid-template-columns:1fr}.crm-quotes-page .quote-customer-field{grid-column:auto}}.crm-invoices-page{width:100%}.crm-invoices-heading{margin-bottom:24px}.crm-invoices-panel{padding:0;overflow:hidden}.crm-invoices-panel-head{justify-content:space-between;align-items:flex-start;gap:20px;padding:24px 26px 18px;display:flex}.crm-invoices-panel-head h2{color:#14213d;margin:9px 0 5px;font-size:20px;line-height:1.25}.crm-invoices-panel-head p{color:#718096;margin:0;font-size:13px}.crm-invoice-count{color:#2563eb;align-items:center;gap:7px;font-size:12px;font-weight:800;display:inline-flex}.crm-invoices-alert{margin:0 26px 16px}.crm-invoices-toolbar{grid-template-columns:minmax(260px,1fr) minmax(175px,210px) auto;align-items:center;gap:10px;padding:0 26px 22px;display:grid}.crm-invoices-toolbar .crm-search-field{max-width:none}.crm-invoices-status-filter{color:#40506a;width:100%;min-height:45px;font:inherit;background:#f8fafc;border:1px solid #dce4ef;border-radius:12px;outline:0;padding:0 38px 0 13px;font-size:13px;font-weight:700}.crm-invoices-status-filter:focus{background:#fff;border-color:#8bb5ff;box-shadow:0 0 0 3px #2563eb17}.crm-invoices-table-wrap{border-top:1px solid #edf1f6;width:100%;overflow-x:auto}.crm-invoices-table{border-collapse:collapse;width:100%;min-width:1040px}.crm-invoices-table th{color:#79879a;letter-spacing:.05em;text-align:left;text-transform:uppercase;white-space:nowrap;background:#f8fafc;padding:12px 13px;font-size:10px;font-weight:800}.crm-invoices-table td{color:#536176;vertical-align:middle;white-space:nowrap;border-top:1px solid #edf1f6;padding:15px 13px;font-size:12px}.crm-invoices-table tbody tr{transition:background .2s}.crm-invoices-table tbody tr:hover{background:#fbfdff}.crm-invoice-number,.crm-invoice-balance{color:#1b2941}.crm-invoice-customer{align-items:center;gap:9px;min-width:0;display:flex}.crm-invoice-customer>span{color:#2563eb;background:#eaf2ff;border-radius:10px;flex:0 0 34px;place-items:center;width:34px;height:34px;font-size:13px;font-weight:900;display:grid}.crm-invoice-customer strong{color:#27354c;text-overflow:ellipsis;max-width:150px;overflow:hidden}.crm-invoice-actions{justify-content:flex-end;align-items:center;gap:5px;display:flex}.crm-invoice-actions button{cursor:pointer;background:#fff;border-radius:9px;justify-content:center;align-items:center;gap:5px;min-height:32px;padding:6px 8px;font-size:10px;font-weight:800;display:inline-flex}.crm-invoice-actions .is-view,.crm-invoice-actions .is-pdf{color:#2563eb;border:1px solid #cfe0ff}.crm-invoice-actions .is-pay{color:#0b8a55;border:1px solid #bce9d2}.crm-invoice-actions button:hover{background:#f8fafc}.crm-invoice-actions .locked-label{margin:0;font-size:10px}.crm-invoices-empty{color:#718096;text-align:center;border-top:1px solid #edf1f6;flex-direction:column;justify-content:center;align-items:center;min-height:280px;padding:36px 20px;display:flex}.crm-invoices-empty>span{color:#2563eb;background:#edf4ff;border-radius:17px;place-items:center;width:56px;height:56px;margin-bottom:13px;display:grid}.crm-invoices-empty h3{color:#1b2941;margin:0 0 7px;font-size:17px}.crm-invoices-empty p{color:#7c899b;max-width:430px;margin:0;font-size:13px}.crm-invoices-pagination{color:#758297;border-top:1px solid #edf1f6;justify-content:space-between;align-items:center;gap:18px;padding:18px 26px;font-size:12px;display:flex}.crm-invoices-pagination button{color:#40506a;cursor:pointer;background:#fff;border:1px solid #dce4ef;border-radius:10px;align-items:center;gap:5px;min-height:38px;padding:0 12px;font-size:12px;font-weight:800;display:inline-flex}.crm-invoices-pagination button:disabled{cursor:not-allowed;opacity:.45}.crm-invoices-page .modal-backdrop{z-index:1100;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#0b142494;padding:22px}.crm-invoices-page .quote-detail-modal,.crm-invoices-page .payment-modal{border:1px solid #e2e8f0e6;border-radius:20px;box-shadow:0 24px 70px #0a162d3d}.crm-invoices-page .invoice-balance-cards{gap:12px;padding:17px 20px}.crm-invoices-page .invoice-balance-cards>div{background:#f8fafc;border:1px solid #e3eaf3;border-radius:13px}.crm-invoices-page .invoice-balance-cards>div:last-child{background:#edf4ff;border-color:#cfe0ff}.crm-invoices-page .payments-section{border-top-color:#edf1f6}@media (width<=1180px){.crm-invoices-table{min-width:960px}.crm-invoice-actions button{width:31px;padding:0}.crm-invoice-actions button span{display:none}}.crm-payments-page{flex-direction:column;gap:19px;display:flex}.crm-payments-heading{justify-content:space-between;align-items:flex-end;gap:20px;display:flex}.crm-payments-heading h1{color:#17243b;letter-spacing:-.035em;margin:3px 0 6px;font-size:clamp(27px,3vw,36px);line-height:1.08}.crm-payments-heading p{color:#758297;max-width:590px;margin:0;font-size:13px}.crm-payments-panel{background:#fff;border:1px solid #e5eaf1;border-radius:19px;overflow:hidden;box-shadow:0 10px 30px #1220390b}.crm-payments-panel-head{justify-content:space-between;align-items:center;gap:20px;padding:22px 26px 17px;display:flex}.crm-payments-panel-head h2{color:#1c2940;letter-spacing:-.015em;margin:0 0 4px;font-size:18px}.crm-payments-panel-head p{color:#8692a3;margin:0;font-size:12px}.crm-payments-head-icon{color:#2563eb;background:#edf4ff;border-radius:13px;flex:none;place-items:center;width:42px;height:42px;display:grid}.crm-payments-alert{margin:0 26px 16px}.crm-payments-toolbar{grid-template-columns:minmax(270px,1fr) minmax(165px,.38fr) minmax(185px,.42fr) auto;gap:10px;padding:0 26px 20px;display:grid}.crm-payments-toolbar .crm-search-field{color:#8a96a8;background:#f9fbfd;border:1px solid #dfe6ef;border-radius:11px;align-items:center;gap:9px;height:43px;padding:0 13px;transition:border-color .18s,box-shadow .18s,background .18s;display:flex}.crm-payments-toolbar .crm-search-field:focus-within{background:#fff;border-color:#8bb5f5;box-shadow:0 0 0 3px #2563eb17}.crm-payments-toolbar .crm-search-field input{color:#27364d;background:0 0;border:0;outline:0;width:100%;min-width:0;font-size:13px}.crm-payments-toolbar .crm-search-field input::placeholder{color:#a1aaba}.crm-payments-filter{color:#4e5d73;background-color:#f9fbfd;border:1px solid #dfe6ef;border-radius:11px;outline:0;min-width:0;min-height:43px;padding:0 35px 0 12px;font-size:12px;font-weight:700}.crm-payments-filter:focus{border-color:#8bb5f5;box-shadow:0 0 0 3px #2563eb17}.crm-payments-toolbar .crm-search-button{color:#fff;cursor:pointer;background:#2563eb;border:0;border-radius:11px;justify-content:center;align-items:center;gap:7px;min-height:43px;padding:0 16px;font-size:12px;font-weight:800;display:inline-flex;box-shadow:0 7px 15px #2563eb2e}.crm-payments-table-wrap{border-top:1px solid #edf1f6;overflow-x:auto}.crm-payments-table{border-collapse:collapse;table-layout:auto;width:100%;min-width:1110px}.crm-payments-table th{color:#7a8799;letter-spacing:.055em;text-align:left;text-transform:uppercase;white-space:nowrap;background:#f8fafc;border-bottom:1px solid #e8edf3;padding:12px 14px;font-size:10px;font-weight:850}.crm-payments-table th:first-child,.crm-payments-table td:first-child{padding-left:26px}.crm-payments-table th:last-child,.crm-payments-table td:last-child{padding-right:26px}.crm-payments-table td{color:#536178;vertical-align:middle;white-space:nowrap;border-bottom:1px solid #edf1f6;padding:15px 14px;font-size:12px}.crm-payments-table tbody tr{transition:background .16s}.crm-payments-table tbody tr:hover{background:#fbfcfe}.crm-payments-table tbody tr:last-child td{border-bottom:0}.crm-payment-number{color:#23334d;font-size:12px}.crm-payment-invoice{color:#2563eb;font-weight:800}.crm-payment-customer{color:#36465e;text-overflow:ellipsis;max-width:190px;font-weight:750;display:block;overflow:hidden}.crm-payment-method{color:#526176;background:#f8fafc;border:1px solid #e1e7ef;border-radius:8px;align-items:center;min-height:27px;padding:0 9px;font-size:10px;font-weight:800;display:inline-flex}.crm-payment-reference{color:#667489;text-overflow:ellipsis;max-width:145px;display:block;overflow:hidden}.crm-payment-status{border-radius:999px;align-items:center;min-height:25px;padding:0 9px;font-size:10px;font-weight:850;display:inline-flex}.crm-payment-status.completed{color:#168557;background:#eaf8f1}.crm-payment-status.void{color:#c44b58;background:#fff0f1}.crm-payment-amount{color:#192b46;font-size:12px}.crm-payment-actions{justify-content:flex-end;align-items:center;gap:6px;display:flex}.crm-payment-action{cursor:pointer;border:1px solid #0000;border-radius:9px;justify-content:center;align-items:center;gap:5px;min-height:32px;padding:0 9px;font-family:inherit;font-size:10px;font-weight:850;text-decoration:none;display:inline-flex}.crm-payment-action.view{color:#2563eb;background:#f1f6ff;border-color:#d8e5fa}.crm-payment-action.void{color:#c24453;background:#fff6f7;border-color:#f3d5d9}.crm-payment-action:disabled{cursor:wait;opacity:.55}.crm-payment-locked{color:#98a2b1;background:#f2f4f7;border-radius:8px;align-items:center;min-height:30px;padding:0 9px;font-size:10px;font-weight:800;display:inline-flex}.crm-payments-empty{text-align:center;border-top:1px solid #edf1f6;flex-direction:column;justify-content:center;align-items:center;min-height:285px;padding:36px 20px;display:flex}.crm-payments-empty>span{color:#2563eb;background:#edf4ff;border-radius:17px;place-items:center;width:56px;height:56px;margin-bottom:13px;display:grid}.crm-payments-empty h3{color:#1b2941;margin:0 0 7px;font-size:17px}.crm-payments-empty p{color:#7c899b;max-width:430px;margin:0;font-size:13px}.crm-payments-pagination{color:#758297;border-top:1px solid #edf1f6;justify-content:space-between;align-items:center;gap:18px;padding:18px 26px;font-size:12px;display:flex}.crm-payments-pagination button{color:#40506a;cursor:pointer;background:#fff;border:1px solid #dce4ef;border-radius:10px;align-items:center;gap:5px;min-height:38px;padding:0 12px;font-size:12px;font-weight:800;display:inline-flex}.crm-payments-pagination button:disabled{cursor:not-allowed;opacity:.45}@media (width<=1180px){.crm-payments-toolbar{grid-template-columns:minmax(250px,1fr) repeat(2,minmax(155px,.45fr)) auto}.crm-payments-table{min-width:1040px}.crm-payment-action{width:32px;padding:0}.crm-payment-action span{display:none}}@media (width<=760px){.crm-payments-heading{margin-bottom:0}.crm-payments-heading h1{font-size:27px}.crm-payments-heading p{max-width:310px;font-size:12px}.crm-payments-panel{border-radius:17px}.crm-payments-panel-head{padding:18px 16px 14px}.crm-payments-panel-head h2{font-size:17px}.crm-payments-panel-head p{font-size:11px}.crm-payments-head-icon{border-radius:12px;width:38px;height:38px}.crm-payments-alert{margin:0 16px 14px}.crm-payments-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:0 16px 16px}.crm-payments-toolbar .crm-search-field{grid-column:1/-1;width:100%;height:42px}.crm-payments-filter{width:100%;min-height:42px;padding-right:27px;font-size:11px}.crm-payments-method-filter{min-width:0}.crm-payments-toolbar .crm-search-button{grid-column:1/-1;min-height:40px}.crm-payments-table-wrap{background:#f5f7fb;border-top:1px solid #edf1f6;padding:10px 12px 3px;overflow:visible}.crm-payments-table,.crm-payments-table tbody,.crm-payments-table tr,.crm-payments-table td{width:100%;min-width:0;display:block}.crm-payments-table thead{display:none}.crm-payments-table tbody tr{background:#fff;border:1px solid #e4eaf2;border-radius:15px;grid-template-columns:minmax(0,1fr) auto;gap:8px 13px;margin-bottom:9px;padding:14px;display:grid;box-shadow:0 4px 13px #14223d0a}.crm-payments-table td,.crm-payments-table td:first-child,.crm-payments-table td:last-child{white-space:normal;border:0;padding:0}.crm-payments-table td[data-label=Pago]{grid-area:1/1}.crm-payments-table td[data-label=Estado]{text-align:right;grid-area:1/2}.crm-payments-table td[data-label=Cliente]{border-top:1px solid #edf1f6;border-bottom:1px solid #edf1f6;grid-area:2/1/auto/-1;padding:9px 0}.crm-payment-customer,.crm-payment-reference{max-width:none}.crm-payments-table td[data-label=Fecha],.crm-payments-table td[data-label=Factura],.crm-payments-table td[data-label=Método],.crm-payments-table td[data-label=Referencia],.crm-payments-table td[data-label=Monto]{padding-top:2px}.crm-payments-table td[data-label=Fecha]:before,.crm-payments-table td[data-label=Factura]:before,.crm-payments-table td[data-label=Método]:before,.crm-payments-table td[data-label=Referencia]:before,.crm-payments-table td[data-label=Monto]:before{color:#8a96a8;letter-spacing:.05em;text-transform:uppercase;content:attr(data-label);margin-bottom:3px;font-size:9px;font-weight:800;display:block}.crm-payments-table td[data-label=Factura],.crm-payments-table td[data-label=Referencia],.crm-payments-table td[data-label=Monto]{text-align:right}.crm-payments-table td[data-label=Acciones]{border-top:1px solid #edf1f6;grid-column:1/-1;padding-top:9px}.crm-payment-actions{justify-content:flex-end}.crm-payment-action{width:auto;min-width:34px;height:34px;padding:0 10px}.crm-payment-action span{display:inline}.crm-payments-pagination{padding:14px 12px}.crm-payments-pagination button{min-height:36px;padding:0 8px;font-size:11px}.crm-payments-pagination>span{text-align:center;font-size:10px}}@media (width<=430px){.crm-payments-heading p{display:none}.crm-payments-panel-head p{max-width:210px}.crm-payments-table tbody tr{grid-template-columns:1fr 1fr}.crm-payment-actions{grid-template-columns:1fr 1fr;display:grid}.crm-payment-action{width:100%}.crm-payment-locked{justify-content:center}}@media (width<=760px){.crm-invoices-heading{margin-bottom:16px}.crm-invoices-heading h1{font-size:27px}.crm-invoices-heading p{max-width:290px;font-size:12px}.crm-invoices-panel{border-radius:17px}.crm-invoices-panel-head{padding:18px 16px 14px}.crm-invoices-panel-head h2{font-size:17px}.crm-invoices-panel-head p{display:none}.crm-invoices-alert{margin:0 16px 14px}.crm-invoices-toolbar{grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:0 16px 16px}.crm-invoices-toolbar .crm-search-field{grid-column:1/-1;width:100%;height:42px}.crm-invoices-status-filter,.crm-invoices-toolbar .crm-search-button{min-height:42px}.crm-invoices-table-wrap{background:#f5f7fb;padding:10px 12px 3px;overflow:visible}.crm-invoices-table,.crm-invoices-table tbody,.crm-invoices-table tr,.crm-invoices-table td{width:100%;min-width:0;display:block}.crm-invoices-table thead{display:none}.crm-invoices-table tbody tr{background:#fff;border:1px solid #e4eaf2;border-radius:15px;grid-template-columns:minmax(0,1fr) auto;gap:8px 13px;margin-bottom:9px;padding:14px;display:grid;position:relative;box-shadow:0 4px 13px #14223d0a}.crm-invoices-table td{white-space:normal;border:0;padding:0}.crm-invoices-table td[data-label=Número]{grid-area:1/1}.crm-invoices-table td[data-label=Estado]{text-align:right;grid-area:1/2}.crm-invoices-table td[data-label=Cliente]{border-top:1px solid #edf1f6;border-bottom:1px solid #edf1f6;grid-area:2/1/auto/-1;padding:9px 0}.crm-invoices-table td[data-label=Fecha],.crm-invoices-table td[data-label=Vence],.crm-invoices-table td[data-label=Total],.crm-invoices-table td[data-label=Pagado],.crm-invoices-table td[data-label=Saldo]{padding-top:2px}.crm-invoices-table td[data-label=Fecha]:before,.crm-invoices-table td[data-label=Vence]:before,.crm-invoices-table td[data-label=Total]:before,.crm-invoices-table td[data-label=Pagado]:before,.crm-invoices-table td[data-label=Saldo]:before{color:#8a96a8;letter-spacing:.05em;text-transform:uppercase;content:attr(data-label);margin-bottom:3px;font-size:9px;font-weight:800;display:block}.crm-invoices-table td[data-label=Vence],.crm-invoices-table td[data-label=Pagado],.crm-invoices-table td[data-label=Saldo]{text-align:right}.crm-invoices-table td[data-label=Acciones]{border-top:1px solid #edf1f6;grid-column:1/-1;padding-top:9px}.crm-invoice-actions{justify-content:flex-end}.crm-invoice-actions button{width:auto;min-width:34px;height:34px;padding:0 9px}.crm-invoice-actions button span{display:inline}.crm-invoices-pagination{padding:14px 12px}.crm-invoices-pagination button{min-height:36px;padding:0 8px;font-size:11px}.crm-invoices-pagination>span{text-align:center;font-size:10px}.crm-invoices-page .modal-backdrop{align-items:end;padding:0}.crm-invoices-page .quote-detail-modal,.crm-invoices-page .payment-modal{border-width:1px 0 0;border-radius:22px 22px 0 0;width:100%;max-width:none;max-height:calc(100dvh - 18px);margin:0;overflow-y:auto;box-shadow:0 -18px 55px #0a162d38}.crm-invoices-page .quote-detail-modal:before,.crm-invoices-page .payment-modal:before{content:"";background:#d7dee8;border-radius:10px;width:42px;height:4px;margin:8px auto 0;display:block}.crm-invoices-page .modal-header{padding:14px 17px 15px}.crm-invoices-page .modal-header h2{font-size:17px}.crm-invoices-page .modal-header p{font-size:11px}.crm-invoices-page .quote-detail-header{grid-template-columns:1fr 1fr;gap:9px;padding:14px 17px}.crm-invoices-page .quote-detail-header>div{border:1px solid #e4eaf2;border-radius:12px;padding:11px}.crm-invoices-page .invoice-balance-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:0 17px 15px}.crm-invoices-page .invoice-balance-cards>div{min-width:0;padding:10px 8px}.crm-invoices-page .invoice-balance-cards span{font-size:9px}.crm-invoices-page .invoice-balance-cards strong{overflow-wrap:anywhere;font-size:12px}.crm-invoices-page .quote-detail-modal>.table-wrapper,.crm-invoices-page .payments-section .table-wrapper{margin-left:17px;margin-right:17px;overflow-x:auto}.crm-invoices-page .quote-detail-bottom{grid-template-columns:1fr;padding:15px 17px}.crm-invoices-page .payments-section{padding-left:0;padding-right:0}.crm-invoices-page .payments-header{padding-left:17px;padding-right:17px}.crm-invoices-page .payment-form{padding:17px}.crm-invoices-page .payment-form .grid{grid-template-columns:1fr;gap:12px}.crm-invoices-page .payment-form input,.crm-invoices-page .payment-form select,.crm-invoices-page .payment-form textarea{font-size:16px}.crm-invoices-page .modal-actions{z-index:5;padding:13px 17px calc(13px + env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fffffff5;flex-wrap:wrap;margin:0;position:sticky;bottom:0}.crm-invoices-page .modal-actions button{flex:calc(50% - 8px)}}@media (width<=430px){.crm-invoices-heading p{display:none}.crm-invoices-table tbody tr{grid-template-columns:1fr 1fr}.crm-invoice-actions button{width:34px;min-width:34px;padding:0}.crm-invoice-actions button span{display:none}}.crm-settings-page{gap:22px;min-width:0;display:grid}.crm-settings-heading{justify-content:space-between;align-items:flex-end;gap:18px;display:flex}.crm-settings-heading h1{color:#172033;letter-spacing:-.035em;margin:4px 0 5px;font-size:clamp(25px,2.5vw,34px);line-height:1.08}.crm-settings-heading p{color:#758196;max-width:720px;margin:0;font-size:14px;line-height:1.55}.crm-settings-page .settings-layout{grid-template-columns:minmax(0,1.5fr) minmax(320px,420px)}.crm-settings-page .settings-layout.is-subscription{grid-template-columns:minmax(0,1fr)}.crm-settings-page .settings-panel{background:#fff;border:1px solid #e5eaf1;border-radius:18px;min-width:0;padding:24px;box-shadow:0 8px 24px #1926410d}.crm-settings-page .settings-tabs{background:#f2f5f9;border:0;border-radius:14px;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 22px;padding:5px;display:grid}.crm-settings-page .settings-tabs button{color:#667286;background:0 0;border:0;border-radius:10px;min-height:42px;padding:9px 12px;font-size:12px;font-weight:800;line-height:1.2}.crm-settings-page .settings-tabs button:hover{color:#1d4ed8;background:#ffffffb3}.crm-settings-page .settings-tabs button.active{color:#fff;background:#2563eb;box-shadow:0 5px 13px #2563eb3d}.crm-settings-page .panel-header{align-items:flex-start;gap:18px}.crm-settings-page .panel-header>div{min-width:0}.crm-settings-page .panel-header h2{color:#172033;letter-spacing:-.02em}.crm-settings-page .panel-header>button[type=submit]{color:#fff;cursor:pointer;background:#2563eb;border:0;border-radius:11px;flex:none;min-height:42px;margin:0;padding:0 17px;font-weight:800}.crm-settings-page .panel-header>button[type=submit]:disabled{cursor:not-allowed;opacity:.65}.crm-subscription-content{gap:16px;margin-top:20px;display:grid}.crm-billing-loading{color:#6c788d;text-align:center;background:#f8fafc;border:1px solid #e5eaf1;border-radius:16px;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-height:220px;display:flex}.crm-billing-loading p{color:#8994a6;margin:0;font-size:13px}.crm-billing-spinner{border:3px solid #d9e2f0;border-top-color:#2563eb;border-radius:50%;width:28px;height:28px;animation:.75s linear infinite crm-settings-spin}@keyframes crm-settings-spin{to{transform:rotate(360deg)}}.crm-billing-card{background:#fff;border:1px solid #e3e9f1;border-radius:16px;padding:20px}.crm-billing-card-heading,.crm-billing-card-title{justify-content:space-between;align-items:flex-start;gap:18px;display:flex}.crm-billing-card-heading h3,.crm-billing-card-title h3{color:#172033;letter-spacing:-.02em;margin:4px 0 5px;font-size:19px}.crm-billing-card-heading p,.crm-billing-card-title p,.crm-plan-card p{color:#738096;margin:0;font-size:13px;line-height:1.5}.crm-billing-eyebrow{color:#2563eb;letter-spacing:.09em;text-transform:uppercase;font-size:10px;font-weight:900}.crm-billing-badge{color:#556175;letter-spacing:.04em;text-transform:uppercase;background:#e9edf3;border-radius:999px;flex:none;padding:7px 10px;font-size:10px;font-weight:900}.crm-billing-badge.active{color:#166534;background:#dcfce7}.crm-billing-badge.pending{color:#92400e;background:#fef3c7}.crm-billing-badge.cancelled,.crm-billing-badge.suspended,.crm-billing-badge.expired,.crm-billing-badge.payment_failed{color:#991b1b;background:#fee2e2}.crm-billing-details{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px;display:grid}.crm-billing-detail{background:#f8fafc;border:1px solid #e5eaf1;border-radius:12px;min-width:0;padding:13px 14px}.crm-billing-detail span,.crm-billing-detail strong{display:block}.crm-billing-detail span{color:#8a96a8;letter-spacing:.06em;text-transform:uppercase;margin-bottom:4px;font-size:10px;font-weight:900}.crm-billing-detail strong{color:#263248;overflow-wrap:anywhere;font-size:13px}.crm-billing-actions{flex-wrap:wrap;gap:9px;margin-top:16px;display:flex}.crm-billing-refresh,.crm-billing-cancel,.crm-paypal-button{cursor:pointer;border-radius:11px;min-height:42px;padding:0 15px;font-size:12px;font-weight:850}.crm-billing-refresh{color:#344055;background:#fff;border:1px solid #cfd7e4}.crm-billing-cancel{color:#b91c1c;background:#fff;border:1px solid #fecaca}.crm-paypal-button{color:#fff;background:#0070ba;border:0;width:100%;margin-top:15px}.crm-billing-refresh:disabled,.crm-billing-cancel:disabled,.crm-paypal-button:disabled{cursor:not-allowed;opacity:.58}.crm-plan-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:16px;display:grid}.crm-plan-card{cursor:pointer;background:#fff;border:2px solid #e1e7ef;border-radius:14px;grid-template-columns:minmax(0,1fr) auto;gap:14px;min-width:0;padding:15px;transition:border-color .18s,box-shadow .18s;display:grid;position:relative}.crm-plan-card:hover{border-color:#a9c3f8}.crm-plan-card.selected{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1a}.crm-plan-card input{opacity:0;pointer-events:none;position:absolute}.crm-plan-card strong{color:#172033;margin-bottom:4px;font-size:14px;display:block}.crm-plan-price{color:#172033;white-space:nowrap;font-size:16px;font-weight:900}.crm-plan-price small{color:#7c8799;font-size:10px;font-weight:700}.crm-billing-note{color:#526178;background:#f4f8ff;border:1px solid #dce7f9;border-radius:11px;margin-top:14px;padding:12px 13px;font-size:12px;line-height:1.5}@media (width<=900px){.crm-settings-page{gap:14px}.crm-settings-heading p{font-size:12px}.crm-settings-page .settings-tabs{overscroll-behavior-inline:contain;scrollbar-width:none;scroll-snap-type:x proximity;grid-template-columns:none!important;gap:7px!important;margin:0 -4px 18px!important;padding:5px!important;display:flex!important;overflow-x:auto!important}.crm-settings-page .settings-tabs::-webkit-scrollbar{display:none}.crm-settings-page .settings-tabs button{scroll-snap-align:start;flex:none;white-space:nowrap!important;width:auto!important;min-width:112px!important;padding:9px 10px!important}.crm-settings-page .settings-panel{padding:16px!important}.crm-settings-page .panel-header{align-items:flex-start}.crm-settings-page .panel-header>button[type=submit]{width:auto!important;min-width:128px!important;margin:0!important}.crm-plan-list{grid-template-columns:1fr}}@media (width<=620px){.crm-settings-heading h1{font-size:24px}.crm-settings-heading p{display:none}.crm-settings-page .settings-panel{border-radius:15px!important;padding:13px!important}.crm-settings-page .panel-header{grid-template-columns:1fr;gap:10px;display:grid}.crm-settings-page .panel-header h2{font-size:18px!important}.crm-settings-page .panel-header p{margin-bottom:0!important;font-size:11px!important}.crm-settings-page .panel-header>button[type=submit]{justify-self:start}.crm-billing-card{border-radius:14px;padding:14px}.crm-billing-card-heading{grid-template-columns:1fr;gap:10px;display:grid}.crm-billing-badge{justify-self:start}.crm-billing-details{grid-template-columns:1fr}.crm-billing-actions{grid-template-columns:1fr;display:grid}.crm-billing-refresh,.crm-billing-cancel,.crm-paypal-button{width:100%}.crm-plan-card{grid-template-columns:1fr;gap:8px}.crm-plan-price{justify-self:start}}
