 :root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#172033;background:#f4f7fb;line-height:1.45}*{box-sizing:border-box}html,body,#app{margin:0;min-height:100%;min-height:100vh}body{background:#f4f7fb}.app-shell{min-height:100vh;display:flex}.sidebar{width:216px;flex:0 0 216px;background:#101827;color:#c7d0df;padding:0 7px 10px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;overflow:hidden}.sidebar-brand{flex:0 0 auto;background:#fff;border-radius:0;margin:0 -7px 10px;padding:0;display:flex;align-items:center;justify-content:center;height:68px;overflow:hidden}.sidebar-logo{display:block;width:100%;max-width:none;height:68px;object-fit:contain}.sidebar-nav{flex:1;min-height:0;overflow:auto;padding:0}.nav-group{margin:15px 0 0}.nav-section-button,.nav-section-static{width:100%;border:0;background:transparent;padding:5px 9px;color:#6f82a4;font-size:10px;font-weight:500;letter-spacing:.025em;text-transform:uppercase;text-align:left;line-height:1.2}.nav-section-button{display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-family:inherit}.nav-section-button:hover{color:#9aacc9}.nav-section-static{display:block}.nav-chevron{width:6px;height:6px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg);opacity:.55;transition:transform .15s,opacity .15s}.nav-chevron.open{transform:rotate(225deg);opacity:.75}.nav-subitems{padding:2px 0 0}.nav-item{display:flex;align-items:center;gap:10px;text-decoration:none;color:#d0d8e6;padding:8px 10px;border-radius:6px;margin:1px 0;font-size:14px;font-weight:400;line-height:1.25;min-height:34px}.nav-item:hover{background:#1b263a;color:#f7f9fc}.nav-item.router-link-active{background:#273653;color:#fff}.nav-item-main{margin:0 0 9px;color:#edf2fa;font-weight:400}.nav-icon{position:relative;width:12px;min-width:12px;height:14px;display:inline-flex;align-items:center;justify-content:center;color:#a8b8d2}.nav-item:hover .nav-icon,.nav-item.router-link-active .nav-icon{color:#c5d3ea}.nav-icon-dashboard:before{content:"";width:7px;height:7px;border:1.4px solid currentColor;border-radius:1.5px;display:block}.nav-icon-person:before{content:"";width:5px;height:5px;border:1.2px solid currentColor;border-radius:50%;position:absolute;top:1px}.nav-icon-person:after{content:"";width:9px;height:5px;border:1.2px solid currentColor;border-bottom:0;border-radius:7px 7px 0 0;position:absolute;bottom:1px}.nav-icon-prospect:before{content:"";width:5px;height:5px;border:1.2px solid currentColor;border-radius:50%;position:absolute;top:1px}.nav-icon-prospect:after{content:"";width:8px;height:4px;border:1.2px solid currentColor;border-radius:6px 6px 0 0;position:absolute;bottom:1px}.nav-icon-group:before{content:"♧";font-size:13px;line-height:1}.nav-icon-folder:before{content:"";width:9px;height:7px;border:1.2px solid currentColor;border-radius:1px;display:block}.nav-icon-clock:before{content:"";width:8px;height:8px;border:1.2px solid currentColor;border-radius:50%;display:block}.nav-icon-clock:after{content:"";position:absolute;width:3px;height:1px;background:currentColor;transform:rotate(35deg);top:7px;left:6px}.nav-icon-check:before{content:"✓";font-size:13px;line-height:1}.nav-icon-mail:before{content:"";width:9px;height:6px;border:1.2px solid currentColor;border-radius:1px;display:block}.nav-icon-operation:before{content:"□";font-size:13px;line-height:1}.nav-icon-plus:before{content:"+";font-size:15px;font-weight:300;line-height:1}.nav-icon-cart:before{content:"";width:8px;height:6px;border:1.2px solid currentColor;border-top:0;display:block;transform:skew(-10deg)}.nav-icon-cart:after{content:"••";font-size:9px;letter-spacing:2px;position:absolute;bottom:-4px;left:2px}.nav-icon-document:before{content:"";width:7px;height:9px;border:1.2px solid currentColor;border-radius:1px;display:block}.nav-icon-payment:before{content:"$";font-size:12px;line-height:1}.nav-icon-stock:before{content:"";width:9px;height:8px;border:1.2px solid currentColor;display:block}.nav-icon-movement:before{content:"↕";font-size:14px;line-height:1}.nav-icon-transfer:before{content:"⇄";font-size:13px;line-height:1}.nav-icon-reservation:before{content:"";width:7px;height:8px;border:1.2px solid currentColor;border-radius:1px;display:block}.nav-icon-warehouse:before{content:"";width:9px;height:8px;border:1.2px solid currentColor;display:block}.nav-icon-product:before{content:"";width:8px;height:8px;border:1.2px solid currentColor;display:block}.nav-icon-category:before{content:"☷";font-size:13px;line-height:1}.nav-icon-variant:before{content:"◇";font-size:13px;line-height:1}.nav-icon-price:before{content:"$";font-size:11px;line-height:1}.nav-icon-promotion:before{content:"%";font-size:11px;line-height:1}.nav-icon-tax:before{content:"%";font-size:11px;line-height:1}.nav-icon-bundle:before{content:"⊞";font-size:13px;line-height:1}.nav-icon-branch:before{content:"⌂";font-size:13px;line-height:1}.nav-icon-channel:before{content:"↔";font-size:13px;line-height:1}.nav-icon-delivery:before{content:"›";font-size:17px;line-height:1}.nav-icon-report:before{content:"▥";font-size:12px;line-height:1}.nav-icon-company:before{content:"▥";font-size:11px;line-height:1}.nav-icon-roles:before{content:"◇";font-size:12px;line-height:1}.nav-icon-settings:before{content:"⚙";font-size:12px;line-height:1}.sidebar-footer{flex:0 0 auto;border-top:1px solid #1e293b;margin-top:8px;padding:10px 10px 1px;color:#62718a;font-size:10px}.app-main{min-width:0;flex:1;width:auto}.topbar{height:68px;background:#fff;border-bottom:1px solid #e3e8ef;display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:20}.topbar-spacer{flex:1}.topbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px}.topbar-icon-button,.topbar-help,.topbar-language-option,.topbar-profile-button{border:0;background:transparent;color:#344054;font:inherit;cursor:pointer}.topbar-icon-button{width:34px;height:34px;border-radius:7px;display:grid;place-items:center}.topbar-icon-button:hover,.topbar-help:hover,.topbar-language-option:hover,.topbar-profile-button:hover{background:#f5f7fa}.topbar-bell-emoji{display:block;font-size:18px;line-height:1}.topbar-help{padding:7px 6px;font-size:14px;color:#344054}.topbar-language{display:flex;align-items:center;gap:2px;padding:2px;border-radius:8px}.topbar-language-option{display:flex;align-items:center;justify-content:center;padding:6px 9px;border-radius:7px;font-size:12px;color:#536174}.topbar-language-current{background:#eef3ff;color:#175cd3;font-weight:700;min-width:38px}.topbar-flag{font-size:15px;line-height:1}.topbar-profile{position:relative}.topbar-profile-button{display:flex;align-items:center;gap:9px;padding:4px 7px 4px 4px;border-radius:9px}.topbar-avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#e8edff;color:#315efb;font-size:16px;font-weight:800}.topbar-profile-name{font-size:14px;font-weight:600;color:#344054;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.topbar-profile-chevron{width:6px;height:6px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg);margin:0 2px 3px 1px;transition:transform .15s}.topbar-profile-chevron.open{transform:rotate(225deg);margin-top:5px;margin-bottom:0}.topbar-profile-menu{position:absolute;right:0;top:calc(100% + 7px);min-width:150px;background:#fff;border:1px solid #e3e8ef;border-radius:9px;box-shadow:0 10px 28px rgba(16,24,40,.14);padding:5px;z-index:30}.topbar-profile-menu-item{display:block;width:100%;border:0;background:transparent;text-align:left;padding:9px 10px;border-radius:6px;color:#344054;font:inherit;font-size:13px;cursor:pointer}.topbar-profile-menu-item:hover{background:#f5f7fa;color:#175cd3}.page-content{padding:30px;max-width:none}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}.page-header h1{font-size:26px;line-height:1.2;margin:0 0 6px}.card{background:#fff;border:1px solid #e3e8ef;border-radius:12px;padding:20px;box-shadow:0 1px 2px rgba(16,24,40,.03)}.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:18px}.metric-label{color:#667085;font-size:13px}.metric-value{font-size:28px;font-weight:700;margin-top:8px}.button{border:0;border-radius:7px;padding:9px 15px;font:inherit;font-size:14px;font-weight:600;cursor:pointer;transition:.15s}.button:disabled{opacity:.55;cursor:not-allowed}.button-primary{background:#175cd3;color:#fff}.button-primary:hover:not(:disabled){background:#124db5}.button-secondary{background:#eef1f5;color:#344054}.button-ghost{background:transparent;color:#536174}.login-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:#f4f7fb}.login-card{width:min(430px,100%);padding:34px}.login-brand{margin-bottom:28px}.login-logo{display:block;width:352px;height:auto}.login-title{margin:0 0 5px;font-size:22px}.login-submit{width:100%;margin-top:6px;height:44px}.form-field{margin:0 0 17px}.form-field label{display:block;margin-bottom:7px;font-size:13px;font-weight:700;color:#344054}.form-field input{display:block;width:100%;height:43px;border:1px solid #cfd6df;border-radius:7px;padding:9px 11px;font:inherit;background:#fff}.form-field input:focus{outline:none;border-color:#84aef5;box-shadow:0 0 0 3px rgba(23,92,211,.1)}.alert{padding:11px 13px;border-radius:8px;margin:0 0 17px;font-size:14px}.error{background:#fff0f0;color:#b42318;border:1px solid #fecdca}.state{padding:28px;text-align:center;color:#667085}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;font-size:14px}.data-table th,.data-table td{text-align:left;padding:12px 10px;border-bottom:1px solid #edf0f4;vertical-align:top}.data-table th{font-size:12px;text-transform:uppercase;letter-spacing:.03em;color:#667085;background:#fafbfc}.data-table tr:last-child td{border-bottom:0}.pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:18px}.muted{color:#667085}.info-banner{background:#eef6ff;border:1px solid #cfe2ff;color:#174ea6;padding:12px 14px;border-radius:9px;margin-bottom:18px;font-size:14px}.status-pill{display:inline-flex;padding:3px 8px;border-radius:999px;background:#edf3fb;color:#175cd3;font-size:12px;font-weight:700}@media(max-width:900px){.sidebar{width:210px;flex-basis:210px}.page-content{padding:20px}}@media(max-width:700px){.app-shell{display:block}.sidebar{width:100%;height:auto;position:relative;border-right:0;border-bottom:1px solid #273142}.sidebar-nav{overflow:visible}.topbar{padding:0 16px}.topbar-actions{gap:6px}.topbar-help{display:none}.topbar-profile-name{display:none}.topbar-language-option{padding:6px}.topbar-flag{font-size:14px}.page-content{padding:16px}.dashboard-grid{grid-template-columns:1fr}.page-header{align-items:stretch;flex-direction:column}}
.login-version{margin-top:18px;text-align:center;color:#8b95a7;font-size:11px}.navigation-placeholder{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.navigation-placeholder-icon{font-size:34px;color:#175cd3;margin-bottom:8px}.navigation-placeholder h2{margin:0 0 6px;font-size:18px}.navigation-placeholder p{margin:0;max-width:560px;color:#667085}
/* CoreFlow CRM shared UI primitives — Clientes */
.module-filters{display:flex;gap:10px;align-items:center;margin-bottom:16px}.module-search{flex:1;min-width:180px;height:40px;border:1px solid #cfd6df;border-radius:7px;padding:8px 11px;font:inherit;background:#fff}.module-search:focus{outline:none;border-color:#84aef5;box-shadow:0 0 0 3px rgba(23,92,211,.1)}.person-cell{display:flex;align-items:center;gap:10px}.person-avatar{width:36px;height:36px;min-width:36px;border-radius:50%;display:grid;place-items:center;background:#e8edff;color:#315efb;font-weight:700;font-size:12px}.person-avatar-large{width:46px;height:46px;min-width:46px;font-size:14px}.small-text{font-size:11px}.actions-cell{white-space:nowrap}.button-small{padding:6px 9px;font-size:12px;margin-left:4px}.status-active{background:#e4f7f0;color:#11765a}.status-inactive{background:#eef1f5;color:#687386}.ui-modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.52);display:flex;align-items:center;justify-content:center;padding:20px;z-index:100}.ui-modal{width:min(560px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fff;border:1px solid #e3e8ef;border-radius:12px;box-shadow:0 20px 60px rgba(16,24,40,.22)}.ui-modal-wide{width:min(720px,100%)}.ui-modal-confirm{width:min(460px,100%)}.ui-modal-message{width:min(440px,100%);text-align:center;padding:26px}.ui-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:20px 22px 10px}.ui-modal-header h3{margin:0;font-size:18px}.ui-modal-header p{margin:4px 0 0}.ui-modal-close{border:0;background:transparent;color:#667085;font-size:25px;line-height:1;cursor:pointer;padding:0 3px}.ui-modal-body{padding:10px 22px 20px}.ui-modal-footer{display:flex;justify-content:flex-end;gap:9px;padding:14px 22px 20px;border-top:1px solid #edf0f4}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-field{margin:0}.form-field label{display:block;margin-bottom:6px;font-size:12px;font-weight:700;color:#344054}.form-field input,.form-field select,.form-field textarea{display:block;width:100%;border:1px solid #cfd6df;border-radius:7px;padding:9px 10px;font:inherit;background:#fff}.form-field textarea{resize:vertical}.form-field input:focus,.form-field select:focus,.form-field textarea:focus{outline:none;border-color:#84aef5;box-shadow:0 0 0 3px rgba(23,92,211,.1)}.form-field-full{grid-column:1 / -1}.person-detail-head{display:flex;align-items:center;gap:12px}.person-detail-head h3{margin:0}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.detail-grid>div{padding-bottom:12px;border-bottom:1px solid #edf0f4}.detail-grid span,.detail-notes>span{display:block;color:#667085;font-size:11px;margin-bottom:4px}.detail-grid strong{font-size:14px}.detail-notes{margin-top:18px;padding:14px;background:#f8fafc;border:1px solid #edf0f4;border-radius:8px}.ui-message-icon{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;margin:0 auto 12px;font-weight:800;font-size:20px}.message-success{background:#e4f7f0;color:#11765a}.message-error{background:#fde8eb;color:#b22f40}.message-warning{background:#fff2d6;color:#94600b}.message-info{background:#e9edff;color:#315efb}.button-danger{background:#b42318;color:#fff}.button-danger:hover:not(:disabled){background:#912018}.ui-modal-message .ui-modal-footer{border-top:0;padding-bottom:0}.ui-modal-confirm .ui-modal-body{padding-top:16px}@media(max-width:700px){.form-grid,.detail-grid{grid-template-columns:1fr}.form-field-full{grid-column:auto}.module-filters{align-items:stretch;flex-direction:column}.module-search{width:100%}.actions-cell{white-space:normal}.button-small{margin:2px 2px 2px 0}}

.dashboard-page{width:100%}.dashboard-period{display:flex;align-items:center;gap:10px;margin:-4px 0 18px;color:#667085;font-size:13px}.dashboard-period strong{color:#344054;font-weight:600}.dashboard-metrics{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:16px;margin-bottom:18px}.dashboard-metric{display:flex;align-items:center;gap:14px;padding:18px}.dashboard-metric-icon{width:42px;height:42px;border-radius:10px;display:grid;place-items:center;background:#eef3ff;color:#315efb;font-weight:800}.dashboard-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.dashboard-section-header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding-bottom:14px;border-bottom:1px solid #edf0f4}.dashboard-section-header h2{margin:0 0 3px;font-size:17px}.dashboard-section-header p{margin:0;font-size:12px}.dashboard-list{display:flex;flex-direction:column}.dashboard-list-item{display:flex;align-items:flex-start;gap:11px;padding:13px 0;border-bottom:1px solid #edf0f4}.dashboard-list-item:last-child{border-bottom:0}.dashboard-list-dot{width:8px;height:8px;min-width:8px;margin-top:6px;border-radius:50%;background:#315efb}.dashboard-list-dot-warning{background:#d98a00}.dashboard-list-content{display:flex;flex-direction:column;gap:2px;min-width:0}.dashboard-list-content strong{font-size:13px;color:#344054;font-weight:600}.dashboard-list-content span{font-size:11px}.dashboard-empty{padding:24px 10px}@media(max-width:1000px){.dashboard-metrics{grid-template-columns:repeat(2,minmax(180px,1fr))}.dashboard-columns{grid-template-columns:1fr}}@media(max-width:700px){.dashboard-metrics{grid-template-columns:1fr}}
.group-members-section{margin-top:22px;border-top:1px solid #edf0f4;padding-top:18px}.group-members-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.group-members-header h4{margin:0;font-size:15px}.group-members-header p{margin:3px 0 0}

/* CoreFlow Reports — shared report UI */
.reports-page{width:100%}.report-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(170px,1fr));gap:16px;margin-bottom:18px}.report-kpi-card{display:flex;align-items:center;gap:14px;padding:18px}.report-kpi-icon{width:42px;height:42px;border-radius:10px;display:grid;place-items:center;background:#eef3ff;color:#315efb;font-weight:800}.report-kpi-content{min-width:0}.report-filters{margin-bottom:18px}.report-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(160px,1fr));gap:14px}.report-filter-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:14px}.report-period-spacer{height:0}.report-chart-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}.report-chart-grid-single{grid-template-columns:1fr}.report-chart{min-width:0}.report-chart .dashboard-section-header{margin-bottom:14px}.report-bars{display:flex;flex-direction:column;gap:11px;padding-top:6px}.report-bar-row{display:grid;grid-template-columns:minmax(100px,160px) 1fr minmax(55px,90px);gap:10px;align-items:center}.report-bar-label{font-size:12px;color:#344054;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.report-bar-track{height:11px;background:#edf1f6;border-radius:99px;overflow:hidden}.report-bar-fill{height:100%;background:#175cd3;border-radius:99px;min-width:3px}.report-bar-value{text-align:right;font-size:12px;font-weight:700;color:#344054}.report-donut-wrap{display:flex;align-items:center;justify-content:center;gap:28px;min-height:220px}.report-donut{width:190px;height:190px;border-radius:50%;display:grid;place-items:center;flex:0 0 190px}.report-donut-hole{width:112px;height:112px;border-radius:50%;background:#fff;display:grid;place-items:center;font-size:22px;font-weight:700;color:#344054}.report-legend{min-width:180px;display:flex;flex-direction:column;gap:9px}.report-legend-row{display:grid;grid-template-columns:10px 1fr auto;align-items:center;gap:8px;font-size:12px}.report-legend-dot{width:8px;height:8px;border-radius:50%;display:block}.report-legend-label{color:#667085}.report-financial-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.report-financial-grid>div{background:#f8fafc;border:1px solid #edf0f4;border-radius:9px;padding:14px;display:flex;flex-direction:column;gap:5px}.report-financial-grid span{font-size:11px}.report-financial-grid strong{font-size:17px}.report-line-chart{overflow:hidden}.report-line-chart svg{width:100%;height:250px;display:block}.report-chart-axis{stroke:#d9e0e8;stroke-width:1}.report-line{stroke:#175cd3;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.report-line-point{fill:#fff;stroke:#175cd3;stroke-width:3}.report-line-labels{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:#667085;overflow:hidden}.report-line-labels span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.report-empty-state{min-height:120px;display:flex;align-items:center;justify-content:center}.report-summary-card{margin-bottom:18px}
@media(max-width:1100px){.report-kpi-grid{grid-template-columns:repeat(2,minmax(170px,1fr))}.report-filter-grid{grid-template-columns:repeat(2,minmax(160px,1fr))}.report-financial-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.report-kpi-grid,.report-chart-grid,.report-filter-grid,.report-financial-grid{grid-template-columns:1fr}.report-filter-actions{justify-content:stretch}.report-filter-actions .button{flex:1}.report-donut-wrap{flex-direction:column}.report-bar-row{grid-template-columns:90px 1fr 65px}}

/* Administration — Users / Roles */
.ui-modal textarea{display:block;width:100%;border:1px solid #cfd6df;border-radius:7px;padding:9px 11px;font:inherit;background:#fff;resize:vertical}.check-grid{display:grid;grid-template-columns:repeat(2,minmax(220px,1fr));gap:8px 12px}.check-item{display:flex;align-items:flex-start;gap:8px;padding:9px 10px;border:1px solid #edf0f4;border-radius:7px;background:#fafbfc;font-size:13px;color:#344054}.check-item input{margin-top:3px}.check-item span{display:flex;flex-direction:column;gap:2px}.check-item small{font-size:11px;color:#667085}.permission-groups{display:flex;flex-direction:column;gap:14px}.permission-group{border:1px solid #edf0f4;border-radius:9px;padding:12px}.permission-group h4{margin:0 0 9px;font-size:12px;color:#667085;text-transform:uppercase;letter-spacing:.04em}.tag-pill{display:inline-flex;margin:0 4px 4px 0;padding:3px 7px;border-radius:999px;background:#eef3ff;color:#315efb;font-size:11px;font-weight:700}.status-pill-inactive{background:#f2f4f7;color:#667085}.admin-danger{background:#fff0f0;color:#b42318}.admin-danger:hover:not(:disabled){background:#ffe1e1}.small-state{padding:12px;text-align:left}.actions-cell{white-space:nowrap}.actions-cell .button{margin:0 4px 4px 0}
@media(max-width:760px){.check-grid{grid-template-columns:1fr}.actions-cell{white-space:normal}}

/* Appointments calendar */
.appointments-header-actions{display:flex;gap:8px;align-items:center}.appointments-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px;align-items:start}.appointments-calendar-card,.appointments-day-card,.appointments-list-card{min-width:0}.calendar-toolbar,.appointments-day-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.calendar-toolbar h2,.appointments-day-head h2,.section-card-title{font-size:17px;margin:0 0 4px;text-transform:capitalize}.calendar-nav{display:flex;gap:5px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid #e8edf3;border-left:1px solid #e8edf3}.calendar-weekday{padding:9px 4px;text-align:center;background:#f8fafc;color:#667085;font-size:11px;font-weight:700;border-right:1px solid #e8edf3;border-bottom:1px solid #e8edf3}.calendar-day{appearance:none;display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:4px;min-height:91px;padding:7px 6px;border:0;border-right:1px solid #e8edf3;border-bottom:1px solid #e8edf3;background:#fff;cursor:pointer;overflow:hidden;color:#344054;font:inherit}.calendar-day:hover{background:#f8faff}.calendar-day-outside{background:#fafbfc;color:#98a2b3}.calendar-day-selected{background:#eff4ff;box-shadow:inset 0 0 0 2px #315efb}.calendar-day-today .calendar-day-number{background:#315efb;color:#fff}.calendar-day-number{width:24px;height:24px;display:grid;place-items:center;border-radius:50%;font-size:12px;font-weight:700}.calendar-day-count{font-size:10px;color:#315efb;font-weight:700}.calendar-event{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border-radius:4px;background:#e8efff;color:#2549a6;padding:3px 4px;font-size:10px;cursor:pointer}.calendar-more{font-size:10px;color:#667085}.calendar-legend{display:flex;align-items:center;gap:7px;margin-top:12px;font-size:11px}.calendar-legend-dot{width:8px;height:8px;border-radius:50%;background:#315efb}.appointments-day-card{padding:18px}.appointments-day-head{align-items:flex-start}.appointments-day-head p{margin:0}.appointments-empty{padding:28px 10px}.appointment-list-item{display:flex;flex-direction:column;align-items:flex-start;gap:5px;width:100%;padding:12px 0;border:0;border-top:1px solid #edf0f4;background:transparent;text-align:left;cursor:pointer;color:#344054}.appointment-list-item:hover strong{color:#315efb}.appointment-time{font-size:11px;font-weight:700;color:#315efb}.appointment-list-item>span:not(.appointment-time):not(.appointment-item-actions){font-size:12px}.appointment-list-item small{color:#667085}.appointment-location{color:#667085}.appointment-item-actions{display:flex;gap:5px;margin-top:5px}.appointments-list-card{margin-top:18px}.appointments-list-card .module-filters>div{min-width:220px}.appointments-list-card .module-search{max-width:420px}.appointments-list-card .section-card-title{margin-bottom:3px}.appointments-view .form-field small{display:block;margin-top:5px;font-size:10px;line-height:1.4}
@media(max-width:1050px){.appointments-layout{grid-template-columns:minmax(0,1fr)}.appointments-day-card{order:2}.calendar-day{min-height:76px}}
@media(max-width:650px){.appointments-header-actions{flex-direction:column;align-items:stretch}.calendar-day{min-height:58px;padding:4px 3px}.calendar-event{font-size:9px}.calendar-day-count{font-size:9px}.calendar-toolbar{align-items:flex-start;flex-direction:column}.appointments-list-card .module-filters{flex-direction:column}.appointments-list-card .module-search{max-width:none}}

/* CoreFlow 0.4.37 appointments calendar refinements */
.calendar-view-toggle{display:flex;gap:3px;margin-right:6px}.appointment-time{font-size:15px!important;font-weight:800!important;line-height:1.35}.appointment-list-item>strong{font-size:14px;font-weight:750}.calendar-grid-week{grid-template-rows:auto minmax(130px,auto)}.calendar-grid-week .calendar-day{min-height:130px}


/* Tasks module */
.task-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}.task-summary{padding:18px 20px;display:flex;flex-direction:column;gap:8px}.task-summary span{font-size:.9rem;color:var(--text-muted,#687386)}.task-summary strong{font-size:1.8rem;line-height:1.1}.task-filters{align-items:end;flex-wrap:wrap}.task-filters select,.task-status-select{min-height:38px;border:1px solid var(--border-color,#d9dee7);border-radius:8px;padding:7px 10px;background:var(--surface,#fff);color:inherit}.task-priority{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:.78rem;font-weight:700;white-space:nowrap}.priority-low{background:#edf2f7;color:#526174}.priority-normal{background:#e8f1ff;color:#2458a6}.priority-high{background:#fff1d6;color:#8b5700}.priority-urgent{background:#ffe5e5;color:#a51d1d}.task-status-select{max-width:150px;font-size:.86rem}@media(max-width:900px){.task-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.task-filters{align-items:stretch}.task-filters .module-search{min-width:180px}}@media(max-width:520px){.task-summary-grid{grid-template-columns:1fr 1fr;gap:10px}.task-summary{padding:14px}}

/* Communications and Operations */
.communications-layout{display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr);gap:16px;align-items:stretch}.communications-sidebar,.communications-main{min-width:0;overflow:hidden}.communications-list-header{padding:16px;border-bottom:1px solid var(--border-color,#e5e7eb);display:grid;gap:12px}.conversation-item{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:5px;padding:14px 16px;border:0;border-bottom:1px solid var(--border-color,#e5e7eb);background:transparent;text-align:left;cursor:pointer;color:inherit}.conversation-item:hover,.conversation-selected{background:var(--surface-hover,#f3f4f6)}.conversation-item strong{font-size:14px}.conversation-item span{font-size:12px}.conversation-detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px;border-bottom:1px solid var(--border-color,#e5e7eb)}.conversation-detail-header h2{margin:0 0 6px}.message-list{padding:16px;display:flex;flex-direction:column;gap:12px;min-height:220px;max-height:460px;overflow:auto}.message-entry{border:1px solid var(--border-color,#e5e7eb);border-radius:10px;padding:12px 14px;background:var(--surface,#fff)}.message-entry p{white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0}.message-entry-header{display:flex;justify-content:space-between;gap:12px}.message-compose{border-top:1px solid var(--border-color,#e5e7eb);padding:16px}.message-compose-actions{display:flex;justify-content:flex-end;margin-top:12px}.communications-empty{min-height:400px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:24px}.communications-empty h3{margin-bottom:4px}@media(max-width:900px){.communications-layout{grid-template-columns:1fr}.communications-sidebar{max-height:360px;overflow:auto}.conversation-detail-header{flex-direction:column}}

/* Sales: carts, orders and payments */
.sales-view .sales-header-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.sales-view .sales-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:18px}.sales-view .sales-summary-grid>div{border:1px solid #edf0f4;border-radius:8px;padding:12px;background:#fafbfc;min-width:0}.sales-view .sales-summary-grid span{display:block;color:#667085;font-size:11px;margin-bottom:5px}.sales-view .sales-summary-grid strong{font-size:14px;overflow-wrap:anywhere}.sales-view .sales-subheading{font-size:14px;margin:18px 0 10px}.sales-view .sales-add-line{display:grid;grid-template-columns:minmax(0,2fr) minmax(100px,1fr) auto;gap:12px;align-items:end;padding:14px 0 4px}.sales-view .sales-quantity{width:88px;min-width:72px;padding:7px;border:1px solid #cfd6df;border-radius:6px;font:inherit}.sales-view .sales-notice{background:#fff7e6;border:1px solid #f4d79b;color:#7a5200;border-radius:8px;padding:12px;margin-bottom:16px;font-size:13px}.sales-view .sales-reason{margin-top:14px}.sales-view .sales-footnote{margin:12px 0 0}.sales-cart-modal{width:min(1050px,100%)}.sales-view .pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:14px 16px}.sales-view .pagination span{font-size:12px;color:#667085}@media(max-width:760px){.sales-view .sales-summary-grid{grid-template-columns:1fr 1fr}.sales-view .sales-add-line{grid-template-columns:1fr}.sales-view .sales-header-actions{width:100%}.sales-view .sales-header-actions .button{flex:1}}

/* Sales status semantics */
.status-pill-success{background:#dcfae6;color:#067647;border:1px solid #abefc6}.status-pill-danger{background:#fee4e2;color:#b42318;border:1px solid #fecdca}.status-pill-warning{background:#fef0c7;color:#93370d;border:1px solid #fedf89}

.assignment-limit-input{width:100px;min-width:90px;height:36px;border:1px solid #cfd6df;border-radius:7px;padding:7px 8px;font:inherit;background:#fff}.assignment-limit-input:focus{outline:none;border-color:#84aef5;box-shadow:0 0 0 3px rgba(23,92,211,.1)}
