:root{color-scheme:light;--bg: #0f1419;--surface: #1a2332;--border: #2d3a4d;--text: #e8eef7;--muted: #8b9cb3;--accent: #3b82f6;--accent-hover: #2563eb;--danger: #f87171;--radius: 10px;font-family:DM Sans,system-ui,sans-serif}*{box-sizing:border-box}body{margin:0;min-height:100vh;overflow-x:clip;background:radial-gradient(1200px 600px at 10% -10%,#1e3a5f33,transparent),var(--bg);color:var(--text)}#root{min-width:0;max-width:100%}a{color:var(--accent)}.app-shell{max-width:1100px;margin:0 auto;padding:1.5rem 1.25rem 3rem}.top-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1.75rem;flex-wrap:wrap}.brand{font-weight:700;font-size:1.15rem;letter-spacing:-.02em}.nav-tabs{display:flex;gap:.35rem;flex-wrap:wrap}.nav-tabs button{background:transparent;border:1px solid var(--border);color:var(--muted);padding:.45rem .85rem;border-radius:999px;cursor:pointer;font:inherit;font-size:.9rem}.nav-tabs button:hover{color:var(--text);border-color:var(--muted)}.nav-tabs button.active{background:var(--surface);color:var(--text);border-color:var(--accent)}.nav-tab-label{display:inline-flex;align-items:center;gap:.4rem}.nav-tab-badge{display:inline-flex;align-items:center;justify-content:center;min-width:1.15rem;height:1.15rem;padding:0 .3rem;border-radius:999px;background:#f59e0b;color:#1a1200;font-size:.68rem;font-weight:700;line-height:1}.nav-tabs button.active .nav-tab-badge{box-shadow:0 0 0 1px var(--surface)}.nav-tab-badge--info{background:#38bdf8;color:#0c1929}.nav-tab-badge--tenant{background:#a78bfa;color:#1a1029}.btn{background:var(--accent);color:#fff;border:none;padding:.55rem 1rem;border-radius:var(--radius);font:inherit;font-weight:600;cursor:pointer}.btn:hover:not(:disabled){background:var(--accent-hover)}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-ghost{background:transparent;color:var(--muted);border:1px solid var(--border)}.btn-ghost:hover:not(:disabled){color:var(--text);border-color:var(--muted)}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem 1.35rem}.grid-kpi{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem;margin-bottom:1.5rem}.kpi{padding:1rem 1.1rem;border-radius:var(--radius);background:#141c28;border:1px solid var(--border)}.kpi .label{font-size:.8rem;color:var(--muted);margin-bottom:.35rem}.kpi .value{font-size:1.65rem;font-weight:700;letter-spacing:-.03em}.form{display:flex;flex-direction:column;gap:.9rem;max-width:380px}.form label{display:flex;flex-direction:column;gap:.35rem;font-size:.88rem;color:var(--muted)}.form input{padding:.55rem .65rem;border-radius:8px;border:1px solid var(--border);background:#0d1219;color:var(--text);font:inherit}.table-wrap{overflow:auto;border-radius:var(--radius);border:1px solid var(--border)}table{width:100%;border-collapse:collapse;font-size:.88rem}th,td{text-align:left;padding:.65rem .75rem;border-bottom:1px solid var(--border)}th{color:var(--muted);font-weight:600;background:#141c28}tr:last-child td{border-bottom:none}tbody tr{cursor:pointer}tbody tr:hover{background:#1c2636}.badge{display:inline-block;padding:.15rem .45rem;border-radius:6px;font-size:.75rem;font-weight:600;background:#1e3a5f;color:#93c5fd}.msg{font-size:.88rem;margin-top:.75rem}.msg.error{color:var(--danger)}.toolbar{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center;margin-bottom:1rem}.toolbar input[type=search],.toolbar input[type=text]{flex:1;min-width:180px;padding:.45rem .6rem;border-radius:8px;border:1px solid var(--border);background:#0d1219;color:var(--text);font:inherit}.pager{display:flex;gap:.5rem;align-items:center;justify-content:flex-end;margin-top:.75rem;font-size:.85rem;color:var(--muted)}.detail-section{margin-bottom:1.5rem}.detail-section h3{margin:0 0 .65rem;font-size:1rem}.muted{color:var(--muted);font-size:.88rem}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:100;padding:1rem}.modal{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem 1.6rem;min-width:340px;max-width:500px;width:100%;max-height:90vh;overflow-y:auto}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.1rem}.modal-header h3{margin:0;font-size:1rem}.btn-close{background:transparent;border:none;color:var(--muted);font-size:1rem;cursor:pointer;padding:.2rem .4rem;border-radius:6px}.btn-close:hover{color:var(--text);background:var(--border)}.form select{padding:.55rem .65rem;border-radius:8px;border:1px solid var(--border);background:#0d1219;color:var(--text);font:inherit}.toolbar select{padding:.45rem .6rem;border-radius:8px;border:1px solid var(--border);background:#0d1219;color:var(--text);font:inherit;min-width:140px}.btn-compact{padding:.4rem .75rem;font-size:.85rem}.mono{font-family:ui-monospace,Cascadia Code,Consolas,monospace}.report-page{width:100%;max-width:100%;min-width:0;overflow-x:clip}.report-page__head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem;flex-wrap:wrap}.report-page__title{margin:0 0 .25rem;font-size:1.25rem}.report-page__subtitle{margin:0;font-size:.88rem}.report-toolbar{display:flex;flex-wrap:wrap;gap:.75rem 1rem;align-items:flex-end;margin-bottom:1.25rem;padding:1rem 1.1rem}.report-toolbar__field{display:flex;flex-direction:column;gap:.3rem;font-size:.82rem;color:var(--muted);min-width:140px;flex:1}.report-toolbar__field input[type=date]{padding:.5rem .6rem;border-radius:8px;border:1px solid var(--border);background:#0d1219;color:var(--text);font:inherit}.report-toolbar__presets{display:flex;flex-wrap:wrap;gap:.4rem;width:100%}@media(min-width:720px){.report-toolbar__presets{width:auto;margin-left:auto}}.report-section{margin-bottom:1.5rem}.report-section__title{margin:0 0 .75rem;font-size:.9rem;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}.report-kpi-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}@media(min-width:768px){.report-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}.report-kpi .value{font-size:1.45rem}.report-kpi--highlight{border-color:#34d39955}.report-kpi__money{font-size:1.15rem!important;color:#34d399}.report-service-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:.75rem}@media(max-width:640px){.report-service-grid--scroll{display:flex;overflow-x:auto;gap:.65rem;padding-bottom:.35rem;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}.report-service-grid--scroll .report-service-card{flex:0 0 min(82vw,260px);scroll-snap-align:start}}.report-service-card{position:relative;padding:1rem 1.05rem .9rem;border-radius:var(--radius);background:#141c28;border:1px solid var(--border)}.report-service-card h4{margin:0 0 .65rem;font-size:.95rem}.report-service-card__dot{width:8px;height:8px;border-radius:50%;margin-bottom:.45rem}.report-service-card__stats{margin:0;display:grid;gap:.45rem}.report-service-card__stats div{display:flex;justify-content:space-between;gap:.5rem;font-size:.85rem}.report-service-card__stats dt{margin:0;color:var(--muted);font-weight:500}.report-service-card__stats dd{margin:0;font-weight:700}.report-service-card__money{color:#34d399;font-size:.82rem}.report-tenant-cards{display:grid;gap:.75rem;margin-bottom:1rem;min-width:0}.report-tenant-card{padding:1rem 1.05rem;max-width:100%;min-width:0;overflow:hidden}.report-tenant-card__head{display:flex;justify-content:space-between;align-items:flex-start;gap:.5rem;margin-bottom:.55rem;flex-wrap:wrap}.report-tenant-card__head .badge{flex-shrink:0;max-width:100%;white-space:nowrap}.report-tenant-card__id{display:block;font-size:.75rem;margin-top:.15rem;word-break:break-all}.report-tenant-card__title-block{min-width:0;flex:1 1 12rem}.report-tenant-card__title-block strong{display:block;font-size:1rem;line-height:1.35;word-break:break-word;overflow-wrap:anywhere}.report-tenant-card__chips{display:flex;flex-wrap:nowrap;gap:.35rem;margin-bottom:.6rem;overflow-x:auto;padding-bottom:.2rem;-webkit-overflow-scrolling:touch;scrollbar-width:thin}.report-tenant-card__chips .report-chip{flex-shrink:0}.report-chip{font-size:.72rem;font-weight:600;padding:.15rem .45rem;border-radius:999px;border:1px solid var(--border);background:#0d1219}.report-tenant-card__totals{display:grid;grid-template-columns:1fr 1fr;gap:.5rem .75rem;margin-bottom:.65rem}.report-tenant-card__total-item{display:flex;flex-direction:column;gap:.15rem;padding:.55rem .65rem;border-radius:8px;background:#0d1219;border:1px solid var(--border);min-width:0}.report-tenant-card__total-label{font-size:.72rem;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.report-tenant-card__total-item strong{font-size:.95rem;word-break:break-word}.report-tenant-card__total-money{color:#34d399;font-size:.88rem!important}.report-tenant-card__empty{margin:0;font-size:.85rem}.report-tenant-card__single-svc{display:flex;flex-direction:column;gap:.2rem;padding:.55rem .65rem .55rem .75rem;margin-bottom:0;border-left:3px solid var(--accent);border-radius:0 8px 8px 0;background:#0d1219;font-size:.84rem}.report-tenant-card__single-svc-name{font-weight:600;color:var(--text)}.report-tenant-card__single-svc span:last-child{color:var(--muted);font-size:.82rem}.report-tenant-card__detail-btn{display:flex;align-items:center;justify-content:center;gap:.45rem;width:100%;margin-top:.15rem;padding:.55rem .75rem;border-radius:8px;border:1px solid var(--border);background:#141c28;color:var(--text);font:inherit;font-size:.88rem;font-weight:600;cursor:pointer;min-height:44px}.report-tenant-card__detail-btn:hover{border-color:var(--accent);color:var(--accent)}.report-tenant-card__detail-chevron{font-size:.65rem;color:var(--muted)}.report-tenant-detail{display:grid;gap:.5rem}.report-tenant-detail--in-card{margin-top:.65rem;padding-top:.65rem;border-top:1px solid var(--border)}.report-tenant-detail__row{padding:.65rem .7rem .65rem .8rem;border-left:3px solid var(--accent);border-radius:0 8px 8px 0;background:#0d1219;max-width:100%;min-width:0}.report-tenant-detail__name{font-weight:600;font-size:.88rem;margin-bottom:.45rem}.report-tenant-detail__metrics{display:grid;grid-template-columns:1fr 1fr;gap:.45rem}.report-tenant-detail__metric{display:flex;flex-direction:column;gap:.1rem;min-width:0}.report-tenant-detail__metric-label{font-size:.7rem;color:var(--muted);text-transform:uppercase;letter-spacing:.03em}.report-tenant-detail__metric-value{font-weight:700;font-size:.92rem}.report-tenant-detail__metric-value--money{color:#34d399;font-size:.82rem;word-break:break-word}.report-tenant-card__services{list-style:none;margin:0;padding:0;display:grid;gap:.35rem;font-size:.84rem}.report-tenant-card__services li{display:flex;justify-content:space-between;gap:.5rem;color:var(--muted)}.report-tenant-card__services li span:last-child{color:var(--text);font-weight:600;white-space:nowrap}.report-table-wrap{display:none}.report-table__num{text-align:right;white-space:nowrap}.report-table__money{color:#34d399;font-weight:600}.report-table__tenant-id{font-size:.75rem;margin-top:.15rem;word-break:break-all}.report-table__action{width:5.5rem;text-align:right;white-space:nowrap}.report-table__detail-btn{padding:.35rem .65rem;border-radius:6px;border:1px solid var(--border);background:#141c28;color:var(--text);font:inherit;font-size:.82rem;font-weight:600;cursor:pointer}.report-table__detail-btn:hover{border-color:var(--accent);color:var(--accent)}.report-table__no-action{font-size:.85rem}.report-table__svc-tags{display:flex;flex-wrap:wrap;gap:.3rem;align-items:center}.report-chip--table{font-size:.7rem}.report-table__single-line{display:block;width:100%;font-size:.78rem;margin-top:.2rem}.report-table__row--open td{border-bottom-color:transparent}.report-table__detail-row td{padding-top:0;padding-bottom:.85rem;background:#121820}.report-table__detail-row .report-tenant-detail{padding:.5rem 0 .15rem}.report-table tbody tr{cursor:default}.report-table tbody tr:hover{background:#1c2636}@media(min-width:900px){.report-tenant-cards--mobile{display:none}.report-table-wrap{display:block}.report-tenant-detail__metrics{grid-template-columns:repeat(2,minmax(140px,1fr));max-width:480px}}@media(max-width:640px){.app-shell{padding:1rem max(.85rem,env(safe-area-inset-right,0px)) 2.5rem max(.85rem,env(safe-area-inset-left,0px))}.card{padding:1rem .9rem}.top-bar{flex-direction:column;align-items:stretch}.nav-tabs{overflow-x:auto;flex-wrap:nowrap;padding-bottom:.15rem;-webkit-overflow-scrolling:touch}.nav-tabs button{flex-shrink:0}.report-page__head{flex-direction:column;align-items:stretch}.report-page__refresh{width:100%;min-height:44px}.report-toolbar{padding:.85rem .75rem}.report-toolbar__field{min-width:0;width:100%}.report-toolbar__presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}.report-toolbar__presets .btn-compact{width:100%;min-height:40px;padding-left:.25rem;padding-right:.25rem;font-size:.75rem}.report-kpi__money{font-size:.88rem!important}.report-kpi .value{font-size:1.2rem}.report-tenant-card__head{flex-direction:column;align-items:stretch}.report-tenant-card__head .badge{align-self:flex-start}.report-tenant-card__totals,.report-tenant-detail__metrics{grid-template-columns:1fr}.report-tenant-card__detail-btn{font-size:.84rem;padding-left:.5rem;padding-right:.5rem}}.feedback-badge{display:inline-flex;align-items:center;font-size:12px;font-weight:600;line-height:1.3;padding:3px 9px;border-radius:999px;border:1px solid transparent;white-space:nowrap}.feedback-badge--bug{background:#f8717129;color:#fecaca;border-color:#f8717161}.feedback-badge--feature{background:#60a5fa29;color:#bfdbfe;border-color:#60a5fa61}.feedback-badge--other{background:#94a3b829;color:#cbd5e1;border-color:#94a3b859}.feedback-badge--status-new{background:#34d39929;color:#a7f3d0;border-color:#34d39961}.feedback-badge--status-read{background:#fbbf2424;color:#fde68a;border-color:#fbbf2459}.feedback-badge--status-resolved{background:#94a3b824;color:#cbd5e1;border-color:#94a3b852}.feedback-card--new{background:#3b82f612;border-color:#3b82f638!important}.btn-sm{padding:.35rem .65rem;font-size:.82rem}.btn-primary{background:var(--accent);color:#fff}.btn-success{background:#16a34a;color:#fff}.btn-success:hover:not(:disabled){background:#15803d}.msg.ok{color:#34d399}.crm-toast{position:fixed;top:1.25rem;right:1.25rem;z-index:400;margin:0;padding:.7rem 1.05rem;border-radius:8px;background:#065f46;color:#ecfdf5;font-size:.92rem;font-weight:600;box-shadow:0 10px 28px #00000059}.badge-ok{background:#34d39929;color:#6ee7b7}.badge-muted{background:#94a3b829;color:#cbd5e1}.badge-danger{background:#f8717129;color:#fecaca}.badge-info{background:#60a5fa29;color:#bfdbfe}.row-actions{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center}.modal-wide{max-width:560px}.modal-actions{display:flex;gap:.5rem;justify-content:flex-end;margin-top:.5rem}.form-grid-2{display:grid;grid-template-columns:1fr;gap:.75rem}.input{padding:.55rem .65rem;border-radius:8px;border:1px solid var(--border);background:#0d1219;color:var(--text);font:inherit;width:100%}.input-sm{padding:.4rem .55rem;font-size:.85rem}.input--money{text-align:right;font-variant-numeric:tabular-nums}.card-table-wrap{overflow:visible;border:none;border-radius:0}.card-table{min-width:0}.card-table thead{display:none}.card-table tbody{display:flex;flex-direction:column;gap:.75rem}.card-table tbody tr{display:block;border:1px solid var(--border);border-radius:var(--radius);background:#141c28;overflow:hidden;cursor:default}.card-table tbody tr:hover{background:#141c28}.card-table tbody td{display:grid;grid-template-columns:minmax(5.5rem,38%) 1fr;gap:.35rem .75rem;align-items:start;padding:.65rem .85rem;border-bottom:1px solid var(--border);text-align:left}.card-table tbody td:last-child{border-bottom:none}.card-table tbody td:before{content:attr(data-label);font-size:.7rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);line-height:1.35}.card-table tbody td:not([data-label]):before,.card-table tbody td[data-label=""]:before{content:none}.card-table .row-actions{flex-direction:column;align-items:stretch}.card-table .row-actions>div{display:flex;flex-direction:column;gap:.5rem;width:100%}.card-table .row-actions .btn,.card-table .row-actions button{width:100%;min-height:44px}.card-table--clickable tbody tr{cursor:pointer}.card-table--clickable tbody tr:hover{background:#1c2636}.card-table-empty{display:block!important;padding:1.25rem!important;text-align:center}.card-table-empty:before{content:none!important}.mobile-nav-toggle{display:none;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit;font-size:1.25rem;cursor:pointer;flex-shrink:0}.mobile-nav-backdrop,.mobile-nav-drawer{display:none}.top-bar__primary{display:flex;align-items:center;gap:.65rem;min-width:0;flex:1}.top-bar__current{display:none;font-size:.82rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.top-bar__logout{flex-shrink:0}.nav-tabs--desktop{display:flex}@media(min-width:769px){.form-grid-2{grid-template-columns:1fr 1fr}.card-table-wrap{overflow:auto;border:1px solid var(--border);border-radius:var(--radius)}.card-table{display:table;min-width:720px;width:100%}.card-table--pricing{min-width:900px}.card-table--partners{min-width:1100px}.card-table--tenants{min-width:1000px}.card-table thead{display:table-header-group}.card-table tbody{display:table-row-group}.card-table tbody tr{display:table-row;border:none;border-radius:0;background:transparent;overflow:visible}.card-table tbody tr:hover{background:#1c2636}.card-table tbody td{display:table-cell;padding:.65rem .75rem;border-bottom:1px solid var(--border)}.card-table tbody td:before{content:none}.card-table .row-actions{flex-direction:row;flex-wrap:wrap;align-items:center}.card-table .row-actions>div{flex-direction:row;flex-wrap:wrap;width:auto}.card-table .row-actions .btn,.card-table .row-actions button{width:auto;min-height:auto}}@media(max-width:768px){.mobile-nav-toggle{display:flex}.nav-tabs--desktop{display:none}.top-bar{flex-wrap:nowrap;align-items:center;gap:.65rem}.top-bar__current{display:block}.brand{font-size:1rem;white-space:nowrap}.mobile-nav-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;z-index:200;border:none;padding:0;margin:0;background:#000000a6;opacity:0;pointer-events:none;transition:opacity .2s ease}.app-shell.app-menu-open .mobile-nav-backdrop{opacity:1;pointer-events:auto}.mobile-nav-drawer{display:flex;flex-direction:column;position:fixed;z-index:210;left:0;top:0;bottom:0;width:min(300px,88vw);padding:max(1rem,env(safe-area-inset-top,0px)) 1rem max(1rem,env(safe-area-inset-bottom,0px));background:var(--surface);border-right:1px solid var(--border);box-shadow:16px 0 48px #00000073;transform:translate(-100%);transition:transform .22s ease;overflow-y:auto;-webkit-overflow-scrolling:touch}.app-shell.app-menu-open .mobile-nav-drawer{transform:translate(0)}.mobile-nav-drawer__head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:1rem;padding-bottom:.75rem;border-bottom:1px solid var(--border)}.mobile-nav-drawer__title{margin:0;font-size:1rem;font-weight:700}.mobile-nav-drawer__close{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:8px;background:transparent;color:var(--muted);font:inherit;cursor:pointer}.mobile-nav-drawer__list{display:flex;flex-direction:column;gap:.35rem}.mobile-nav-drawer__item{display:flex;align-items:center;justify-content:space-between;gap:.5rem;width:100%;padding:.75rem .85rem;border-radius:var(--radius);border:1px solid transparent;background:transparent;color:var(--text);font:inherit;font-size:.95rem;text-align:left;cursor:pointer;min-height:48px}.mobile-nav-drawer__item:hover{background:#1c2636}.mobile-nav-drawer__item.active{background:#141c28;border-color:var(--accent);color:var(--text)}.toolbar select,.toolbar input[type=search],.toolbar input[type=text]{width:100%;min-width:0}.toolbar label{width:100%}.pager{flex-wrap:wrap;justify-content:space-between}.pager .btn{min-height:44px}.modal{min-width:0;max-width:100%;padding:1.15rem}.form{max-width:none}}.oce-page__head{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1rem}.oce-source{font-size:.75rem;padding:.25rem .6rem;border-radius:999px;border:1px solid var(--border);color:var(--muted);white-space:nowrap}.oce-source--api{color:#34d399;border-color:#34d39955}.oce-subnav{display:flex;flex-wrap:wrap;gap:.35rem;margin-bottom:1rem}.oce-subnav button{background:transparent;border:1px solid var(--border);color:var(--muted);padding:.4rem .8rem;border-radius:999px;cursor:pointer;font:inherit;font-size:.88rem}.oce-subnav button.active{background:var(--surface);color:var(--text);border-color:var(--accent)}.oce-inline-form{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}.oce-inline-form input,.oce-inline-form select{padding:.5rem .65rem;border-radius:8px;border:1px solid var(--border);background:#0d1219;color:var(--text);font:inherit}.oce-check{display:inline-flex;align-items:center;gap:.35rem;color:var(--muted);font-size:.88rem}.oce-actions{display:flex;flex-wrap:wrap;gap:.35rem}.oce-actions .btn{padding:.3rem .55rem;font-size:.78rem}.oce-why ul{margin:0 0 1rem;padding-left:1.1rem}.form textarea,.form select{padding:.55rem .65rem;border-radius:8px;border:1px solid var(--border);background:#0d1219;color:var(--text);font:inherit;width:100%}.app-shell--crm{max-width:none}.crm-tool{--crm-surface: var(--surface);--crm-border: var(--border);--crm-text: var(--text);--crm-muted: var(--muted);--crm-accent: var(--accent);--crm-panel: #161b22;--crm-card: #21262d}.crm-tool__head h2{margin:0 0 .25rem}.crm-tool__tabs{display:flex;flex-wrap:wrap;gap:.35rem;margin:.8rem 0 1rem}.crm-tool__tab{background:transparent;border:1px solid var(--crm-border);color:var(--crm-muted);padding:.45rem .9rem;border-radius:999px;cursor:pointer;font:inherit;font-size:.9rem}.crm-tool__tab:hover{color:var(--crm-text);border-color:var(--crm-muted)}.crm-tool__tab--active{background:#3b82f629;border-color:#3b82f673;color:var(--crm-text);font-weight:600}.crm-tool__row{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin:.6rem 0}.crm-btn{display:inline-flex;align-items:center;justify-content:center;gap:.4em;box-sizing:border-box;font:inherit;line-height:1.2;white-space:nowrap;text-align:center;vertical-align:middle;cursor:pointer}.crm-btn:disabled{opacity:.55;cursor:not-allowed}.crm-tool__inline{margin-top:.8rem;max-width:420px}.crm-tool .crm-list{list-style:none;padding:0;margin:0 0 1rem;display:flex;flex-direction:column;gap:.75rem}.crm-tool .crm-list li{border:1px solid var(--crm-border);border-radius:8px;padding:.75rem}.crm-tool .crm-pre{white-space:pre-wrap;color:var(--crm-muted);font-size:.82rem;margin:.4rem 0}.crm-tool .form textarea,.crm-tool .form select,.crm-tool .crm-list textarea,.crm-tool .crm-list select,.crm-tool .crm-modal select,.crm-tool .crm-modal textarea,.crm-tool .crm-modal input,.crm-board-panel input,.crm-board-panel select,.crm-board-panel textarea{padding:.55rem .65rem;border-radius:8px;border:1px solid var(--crm-border);background:#0d1219;color:var(--crm-text);font:inherit;width:100%}.crm-board-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.crm-board-actions{display:flex;align-items:center;gap:8px}.crm-board-filters{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.crm-search-box{position:relative;min-width:240px}.crm-search-input{width:100%;padding-right:28px!important}.crm-search-clear{position:absolute;right:6px;top:50%;transform:translateY(-50%);background:none;border:none;color:var(--crm-muted);font-size:16px;cursor:pointer;padding:0 4px}.crm-search-clear:hover{color:var(--crm-text)}.crm-filter-group{display:flex;align-items:center;gap:8px}.crm-filter-label{font-size:13px;color:var(--crm-muted);white-space:nowrap}.crm-filter-select{min-width:150px}[data-crm-host=partner] .crm-search-input,[data-crm-host=partner] .crm-filter-select{min-height:44px;border-radius:10px}[data-crm-host=partner] .crm-board-actions{gap:10px}.crm-tool .tour-kanban-scroll-host{min-width:0;width:100%;max-width:100%}.crm-tool .tour-kanban-board-scroll{width:100%;max-width:100%;overflow-x:auto;overflow-y:hidden;padding:4px 4px 14px;margin:0 -4px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}.crm-tool .tour-kanban{display:flex;align-items:stretch;gap:16px;width:max-content;min-width:100%}.crm-tool .tour-kanban.is-dragging{cursor:grabbing}.crm-tool .tour-kanban-column{flex:0 0 300px;width:300px;min-width:300px;max-height:min(78vh,880px);display:flex;flex-direction:column;scroll-snap-align:start;border:1px solid #30363d;border-top-width:4px;border-radius:14px;background:#161b22;box-shadow:0 4px 12px #00000059;min-height:280px}.crm-tool .crm-kanban-column--idx-1{border-top-color:#38bdf8}.crm-tool .crm-kanban-column--idx-2{border-top-color:#f59e0b}.crm-tool .crm-kanban-column--idx-3{border-top-color:#a855f7}.crm-tool .crm-kanban-column--idx-4{border-top-color:#fb923c}.crm-tool .crm-kanban-column--won,.crm-tool .crm-kanban-column--idx-5{border-top-color:#22c55e}.crm-tool .crm-kanban-column--lost,.crm-tool .crm-kanban-column--idx-6{border-top-color:#ef4444}.crm-tool .tour-kanban-column__head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px 10px;background:#ffffff05;border-bottom:1px solid #30363d}.crm-tool .tour-kanban-column__title{margin:0;font-size:15px;font-weight:700;color:#f0f6fc;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-tool .tour-kanban-column__count{min-width:22px;height:22px;padding:2px 8px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;background:#21262d;color:#c9d1d9;border:1px solid #30363d}.crm-tool .tour-kanban-column__list{list-style:none;margin:0;padding:12px;display:flex;flex-direction:column;gap:12px;overflow-y:auto;flex:1;min-height:0}.crm-tool .tour-kanban-empty{margin:8px 0 0;padding:18px 10px;text-align:center;font-size:12px;color:var(--crm-muted);border:1px dashed rgba(255,255,255,.12);border-radius:12px}.crm-tool .crm-lead-card{background:#21262d;border:1px solid #30363d;border-radius:10px;padding:12px 14px;box-shadow:0 2px 6px #00000040;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;display:flex;flex-direction:column;gap:8px;-webkit-user-select:none;user-select:none}.crm-tool .crm-lead-card:hover{background:#28303b;border-color:#58a6ff;transform:translateY(-2px);box-shadow:0 6px 16px #0006}.crm-tool .crm-lead-card__header{display:flex;align-items:center;justify-content:space-between;gap:8px}.crm-tool .crm-lead-card__title{font-size:15px;font-weight:700;color:#fff;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-tool .crm-badge{display:inline-flex;align-items:center;padding:2px 8px;border-radius:12px;font-size:11px;font-weight:700;white-space:nowrap}.crm-tool .crm-badge--hot{background:#ef444438;color:#f87171;border:1px solid rgba(239,68,68,.45)}.crm-tool .crm-badge--warm{background:#f59e0b38;color:#fbbf24;border:1px solid rgba(245,158,11,.45)}.crm-tool .crm-badge--cold{background:#38bdf838;color:#38bdf8;border:1px solid rgba(56,189,248,.45)}.crm-tool .crm-badge--spam{background:#94a3b838;color:#94a3b8;border:1px solid rgba(148,163,184,.45)}.crm-tool .crm-badge--unset,.crm-modal .crm-badge--unset{background:#94a3b81f;color:#94a3b8;border:1px dashed rgba(148,163,184,.4);font-weight:600}.crm-tool .crm-lead-card__tags{display:flex;flex-wrap:wrap;gap:6px}.crm-tool .crm-meta-tag{display:inline-flex;align-items:center;padding:2px 8px;border-radius:6px;font-size:11px;font-weight:600;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-tool .crm-meta-tag--region{background:#38bdf81f;color:#7dd3fc;border:1px solid rgba(56,189,248,.28)}.crm-tool .crm-meta-tag--product{background:#a78bfa24;color:#c4b5fd;border:1px solid rgba(167,139,250,.3)}.crm-tool .crm-meta-tag--partner{background:#fbbf242e;color:#fbbf24;border:1px solid rgba(251,191,36,.35)}.crm-tool .crm-lead-card__phone-row{display:flex;align-items:center;justify-content:space-between;gap:8px}.crm-tool .crm-lead-card__phone{font-size:14px;font-weight:600;color:#38bdf8}.crm-tool .crm-lead-quick-actions{display:inline-flex;align-items:center;gap:6px}.crm-tool .crm-btn-action,.crm-modal .crm-btn-action{display:inline-flex;align-items:center;justify-content:center;gap:.35em;padding:.35rem .7rem;border-radius:var(--radius, 10px);font:inherit;font-size:.82rem;font-weight:600;text-decoration:none;cursor:pointer;line-height:1.2;white-space:nowrap}.crm-tool .crm-btn-action--call{background:#22c55e2e;color:#4ade80;border:1px solid rgba(34,197,94,.35)}.crm-tool .crm-btn-action--zalo{background:#0284c733;color:#38bdf8;border:1px solid rgba(2,132,199,.4)}.crm-tool .crm-lead-card__note{margin:0;font-size:12px;line-height:1.45;color:#8b949e;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.crm-tool .crm-lead-card__footer{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding-top:6px;border-top:1px solid rgba(255,255,255,.08)}.crm-tool .crm-lead-card__actions{display:inline-flex;align-items:center;gap:6px;flex-wrap:wrap}.crm-tool .crm-lead-source-tag{font-size:11px;color:#8b949e}.crm-tool .crm-lead-move-wrap{display:inline-flex;align-items:center;gap:4px}.crm-tool .crm-lead-move-label{font-size:11px;color:#8b949e}.crm-tool .crm-lead-move-select{background:#161b22;color:#c9d1d9;border:1px solid #30363d;border-radius:6px;padding:3px 6px;font-size:11px;max-width:130px;width:auto}.crm-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:3200;background:#0000008c;display:flex;align-items:center;justify-content:center;padding:1rem}.crm-modal-backdrop--scroll{align-items:flex-start;overflow-y:auto}.crm-modal-backdrop--top-layer{z-index:3400;pointer-events:auto}.crm-modal-backdrop--top-layer .crm-modal,.crm-modal-backdrop--top-layer .crm-modal__footer,.crm-modal-backdrop--top-layer .crm-modal__footer .crm-btn{position:relative;z-index:1;pointer-events:auto}.crm-modal{width:min(560px,100%);background:var(--surface, #1a2332);border:1px solid var(--border, #2d3a4d);border-radius:12px;box-shadow:0 20px 50px #00000073;color:var(--text, #e8eef7)}.crm-lead-detail-modal{width:min(680px,95vw)}.crm-modal__header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--border, #2d3a4d);position:sticky;top:0;background:inherit;border-radius:12px 12px 0 0}.crm-modal__header h3{margin:0;font-size:1.05rem}.crm-modal__close{background:transparent;border:0;color:var(--muted, #8b9cb3);font-size:1.4rem;line-height:1;cursor:pointer;padding:0 4px}.crm-modal__body{padding:14px 16px;display:flex;flex-direction:column;gap:10px}.crm-modal__body--scroll{max-height:min(70vh,720px);overflow-y:auto}.crm-modal__footer{display:flex;justify-content:flex-end;gap:8px;padding:12px 16px;border-top:1px solid var(--border, #2d3a4d)}.crm-modal .form{margin:0}.crm-modal .form label{display:flex;flex-direction:column;gap:.35rem;font-size:.85rem;color:var(--muted, #8b9cb3)}.crm-modal .form input,.crm-modal .form select,.crm-modal .form textarea{padding:.55rem .65rem;border-radius:8px;border:1px solid var(--border, #2d3a4d);background:#0d1219;color:var(--text, #e8eef7);font:inherit;width:100%}.crm-detail-call-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:#161b22;border:1px solid #30363d;border-radius:10px;margin-bottom:8px}.crm-detail-stage-control{display:flex;align-items:center;gap:8px}.crm-detail-stage-control select{width:auto;padding:4px 8px;font-size:13px}.crm-lead-info-card{background:#161b22;border:1px solid #30363d;border-radius:10px;padding:14px}.crm-lead-info-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px 16px;font-size:13px}.crm-lead-note-box{margin-top:12px;padding-top:10px;border-top:1px solid rgba(255,255,255,.08);font-size:13px;line-height:1.5}.crm-detail-section-title{font-weight:700;margin-bottom:10px}.crm-activity-form{background:#161b22;border:1px solid #30363d;border-radius:10px;padding:12px;margin-bottom:16px;display:flex;flex-direction:column;gap:10px}.crm-activity-presets{display:flex;flex-wrap:wrap;gap:6px}.crm-preset-chip{background:#21262d;border:1px solid #30363d;border-radius:999px;padding:3px 10px;font-size:11px;font-weight:500;color:#c9d1d9;cursor:pointer}.crm-preset-chip:hover{background:#38bdf826;border-color:#38bdf8;color:#38bdf8}.crm-activity-list{display:flex;flex-direction:column;gap:10px}.crm-activity-item{background:#161b22;border:1px solid #30363d;border-left:3px solid #38bdf8;border-radius:8px;padding:10px 14px;display:flex;flex-direction:column;gap:6px}.crm-activity-item__head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px}.crm-activity-item__type{font-weight:700}.crm-activity-item__result{background:#f59e0b2e;color:#fbbf24;border:1px solid rgba(245,158,11,.35);padding:1px 7px;border-radius:4px;font-weight:600;font-size:11px}.crm-activity-item__time,.crm-activity-item__author{color:#8b949e;font-size:11px}.crm-activity-item__content{font-size:13px;line-height:1.5;white-space:pre-wrap}.crm-lead-footer{justify-content:flex-end}.crm-lead-footer__main{display:flex;gap:8px;align-items:center;margin-left:auto}.crm-lead-booked{font-size:13px;font-weight:700;color:#4ade80}.crm-report-panel h3{margin-top:0}.crm-report-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:20px}.crm-report-stat{padding:12px 14px;border-radius:10px;border:1px solid var(--crm-border);background:#ffffff05;display:flex;flex-direction:column;gap:4px}.crm-report-stat strong{font-size:1.25rem;font-variant-numeric:tabular-nums}.crm-report-subtitle{margin:16px 0 8px;font-size:14px;font-weight:700}.crm-report-list{margin:0;padding-left:1.1rem;line-height:1.6}.crm-modal .crm-badge{display:inline-flex;align-items:center;padding:2px 8px;border-radius:12px;font-size:11px;font-weight:700}.crm-modal .crm-badge--hot{background:#ef444438;color:#f87171;border:1px solid rgba(239,68,68,.45)}.crm-modal .crm-badge--warm{background:#f59e0b38;color:#fbbf24;border:1px solid rgba(245,158,11,.45)}.crm-modal .crm-badge--cold{background:#38bdf838;color:#38bdf8;border:1px solid rgba(56,189,248,.45)}.crm-modal .crm-badge--spam{background:#94a3b838;color:#94a3b8;border:1px solid rgba(148,163,184,.45)}.crm-modal .crm-btn-action--call{background:#22c55e2e;color:#4ade80;border:1px solid rgba(34,197,94,.35)}.crm-modal .crm-btn-action--zalo{background:#0284c733;color:#38bdf8;border:1px solid rgba(2,132,199,.4)}@media(max-width:640px){.crm-tool .tour-kanban-column{flex:0 0 calc(100vw - 44px);width:calc(100vw - 44px);min-width:calc(100vw - 44px)}.crm-board-toolbar{flex-direction:column;align-items:stretch}.crm-board-actions .crm-btn{flex:1}.crm-board-filters{flex-direction:column;align-items:stretch}.crm-search-box{width:100%;min-width:0}.crm-report-stats{grid-template-columns:1fr}.crm-detail-call-bar{flex-direction:column;align-items:stretch}}
